Repository navigation
fix(bindings): make published TSRX sources pass strict consumer typechecks - #345
Merged
trueadm merged 3 commits intoJul 28, 2026
Conversation
|
@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. |
22 of 29 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@octanejs/cmdk,@octanejs/sonner, and@octanejs/tiptapsource packages.tsrx-tsc --noEmitwith full strict diagnostics.Why
Closes #332.
These bindings publish
src/index.tsand raw.tsrxcomponents, so those components become part of an external consumer's TypeScript program. Checking only workspace-local projects or runningtsgodoes not establish that the actual packed source packages passtsrx-tsc.Changes
Toastercomponent without widening them toany..tsrxcomponents and negative type assertions proving invalid positions, callbacks, editor ownership, and CSS values remain rejected.octane/compiler/volar, the exact pinned TypeScript and TSRX tooling, one physical Octane runtime, and packed Floating UI/Radix dependency tarballs; reject workspace fallback.declare module '*.tsrx'is added.Validation
node --test scripts/package-pack-canaries.test.mjs scripts/npm-release-preflight.test.mjs— 17 tests pass.node scripts/check-tsrx-module-decls.mjs.node scripts/check-changesets.js.node scripts/check-test-markers.mjs.node scripts/workspace-packages.mjs --check.node --check scripts/check-package-packs.mjsand both packed-canary modules.3.9.6checks for changed JavaScript, TypeScript declarations, and JSON.git verify-commit HEAD— verified SSH signature.ERR_PNPM_FETCH_403for the protected@tsrx/[email protected]tarball. No credentials are bypassed, lockfile is altered, or parser is substituted.pnpm format:check,pnpm typecheck,pnpm test, andpnpm packages:pack:check, including the new real-tarball strict TSRX consumer.Risk / follow-ups
Note
Low Risk
Changes are typing and validation gates on binding packages; runtime behavior is limited to
ref ?? nullcoalescing with no auth or data-path impact.Overview
Makes
@octanejs/cmdk,@octanejs/sonner, and@octanejs/tiptaptypecheck under stricttsrx-tscwhen consumers install the published tarballs, not only from workspace projects.Cmdk normalizes optional public refs with
props.ref ?? null(including multi-ref arrays) so strict ref typing stays sound without changing runtime behavior.Sonner replaces
anywithOctaneNode, aCSSPropertiestype that allows--*custom properties, typed icon/class lookups, and a preciseToasterJSX return in declarations; Sonner’stsconfigdropsskipLibCheck.Tiptap adds explicit props/return types for provider, consumer,
EditorContent, portal registry, anduseTiptapState, plus the same ref normalization on the editor host.CI/gates: root
bindings:typecheckrunstsrx-tscon Sonner and Tiptap;packages:pack:checkspins up an external consumer from real packed archives (cmdk, sonner, tiptap, floating-ui, radix, octane), runstsrx-tscwith@tsrx/typescript-pluginandskipLibCheck: false, and includes compile-time probes that reject erased props and invalid API usage. Patch changesets cover the three bindings.Reviewed by Cursor Bugbot for commit 9096bf9. Bugbot is set up for automated code reviews on this repo. Configure here.