Skip to content

fix(pack): finish strict published TSRX consumer validation - #348

Merged
trueadm merged 2 commits into
octanejs:mainfrom
openai-oss-forks:fix/published-tsrx-strict-consumer-332-ci
Jul 28, 2026
Merged

trueadm merged 2 commits into
octanejs:mainfrom
openai-oss-forks:fix/published-tsrx-strict-consumer-332-ci

Conversation

@domgan-oai

@domgan-oai domgan-oai commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #345 and #332. The original issue PR was merged before its final CI completed; this repairs the two actionable failures without changing the lockfile or weakening the consumer boundary.

  • Select the published octane/compiler/volar compiler in the external strict tsrx-tsc consumer and regression-test the exact setting.
  • Format the three Tiptap TSRX source files with the exact pinned upstream @tsrx/[email protected] and @tsrx/[email protected].
  • Preserve strongly typed editor-state slot forwarding using the authoritative UseEditorStateOptions equality type and a named typed selector; add no ambient TSRX declarations.
  • Retain the patch changeset for Cmdk, Sonner, and Tiptap already merged by fix(bindings): make published TSRX sources pass strict consumer typechecks #345.

Validation

  • Exact pinned TSRX formatter: all three changed .tsrx files pass.
  • node --test scripts/package-pack-canaries.test.mjs scripts/npm-release-preflight.test.mjs: 17 passed.
  • node scripts/check-tsrx-module-decls.mjs.
  • node scripts/check-changesets.js.
  • node scripts/check-test-markers.mjs.
  • node scripts/workspace-packages.mjs --check.
  • git diff --check.
  • The original PR upstream typecheck job passed, including the strict Cmdk, Sonner, and Tiptap tsrx-tsc checks. Full external packed-consumer validation will run in this upstream PR because the normal local frozen installation of @tsrx/[email protected] encounters the protected-registry HTTP 403.

Note

Low Risk
Changes are limited to pack-canary TypeScript config, tests, and TSRX formatting with no auth, data, or core runtime logic touched.

Overview
Completes strict external tsrx-tsc validation for packed published bindings by wiring the consumer tsconfig to octane/compiler/volar and locking that in package-pack-canaries tests.

The Tiptap .tsrx sources (Context, EditorContent, Tiptap) are reformatted to match the pinned TSRX Prettier rules (mostly type-alias layout and useTiptapState equality-fn typing); there is no intended runtime or API behavior change beyond what the formatter enforces (e.g. export default Tiptap without a trailing semicolon).

Reviewed by Cursor Bugbot for commit ff0cf5b. Bugbot is set up for automated code reviews on this repo. Configure here.

Configure packed strict TSRX consumers with the published Octane Volar compiler and format Tiptap sources using the exact pinned TSRX formatter. Preserve strongly typed editor-state slot forwarding without formatter-unstable function casts.
@vercel

vercel Bot commented Jul 28, 2026

Copy link
Copy Markdown

@domgan-oai is attempting to deploy a commit to the Ripple Team Team on Vercel.

A member of the Team first needs to authorize it.

Accept the exact authoritative Tiptap TSRX formatting already merged on octanejs/octane main, while preserving the strict published-consumer Volar compiler configuration and regression coverage.
@trueadm
trueadm merged commit 3bc347d into octanejs:main Jul 28, 2026
12 checks passed
trueadm added a commit that referenced this pull request Oct 15, 2026
Brings in #2047-#2051 (Strong literal stabilisation), #2054 (checked
compiled boundaries and a compiled router entry), #2055/#2057 (Strong
rejects descriptor APIs and .tsx/.jsx), #2056/#2060/#2061 (CLI Strong
reports), #2062 (Strong in the website and devtools), #2065 (no
browser-translation DOM accommodations) and Version Packages.

Conflicts, resolved so main's behaviour lands on the redesign's commit model:
- runtime.ts, #2065: setText keeps main's legacy host-only convention and the
  redesign's hydration writeText. The translator recovery is gone from
  renderText/commitText, setRenderText/commitSetText, commitHole,
  childTextHoleUpdate, recordHole and bindSignalChild; removeOnlyChildText
  still removes a committed Text at commit. resetOnlyChildHost and
  PENDING_HOST_TEXTS (which served only the host-only text writes) are deleted.
- compile.js, #2065: text updates call setRenderText(_txt, v), commit
  functions setText(_txt, v), and commitHole takes no host.
- runtime.server.ts, #2054: a compiled-only frame checks its output;
  ordinary frames keep the redesign's returned-value normalization.
- codes.json: main's 344-346 (CompiledContext, CompiledOutlet) keep their
  numbers; the redesign's codes move to 347 (server boundary error), 348
  (hydration protocol skew) and 349 (frontier rehome). Generated tables and
  CLI data are regenerated; docs/ssr.md names #348.

Adaptations:
- compiled-boundaries.test.ts: the server runs no error boundary (React's
  model), so an invalid CompiledOutlet under a catch-only @Try fails
  renderToString with the CompiledOutlet error; the client still shows the
  catch arm.
- scripts/render-writers.mjs drops resetOnlyChildHost.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants