Repository navigation
fix: restore strict consumer types for published bindings - #834
Merged
domgan-oai merged 4 commits intoAug 24, 2026
Merged
domgan-oai merged 4 commits into
domgan-oai merged 4 commits into
Conversation
domgan-oai
marked this pull request as ready for review
August 23, 2026 23:05
9 of 10 tasks
o-alexandrov
added a commit
that referenced
this pull request
Oct 2, 2026
…d helper Keep the #834 contract that an index-signature spread composed with an explicit ref is rejected, and declare ref?: undefined on the seven binding bags that never carry a ref. Point the .tsrx check scripts at octane-tsc.
1 task done
trueadm
pushed a commit
that referenced
this pull request
Oct 2, 2026
* ci: typecheck every project with TypeScript 7.1 in one parallel build * style: format octane-tsc and spread typetest * fix: mark binding spread bags ref-free instead of loosening the spread helper Keep the #834 contract that an index-signature spread composed with an explicit ref is rejected, and declare ref?: undefined on the seven binding bags that never carry a ref. Point the .tsrx check scripts at octane-tsc. * chore: add xyflow Panel ref changeset
2 of 5 tasks
5 of 7 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
Closes #726.
Closes #721.
Earlier fixes left Recharts implementations unchecked and retained packed-source exceptions for all five reported bindings. This PR repairs the authored source and validates the actual published compiler and tarballs.
.tsrximports explicitly, and remove declaration facades and published-source exclusions.useImperativeHandlerefs. Correct native chart event/ref handling and missing radial geometry, with regressions at their owning boundaries.tsrx-tscbackend. Add strict ESNext packed browser coverage, negative Node-global/public-prop probes, public JS/TS subpaths, canonical implementation roots, and parser-diagnostic enforcement.@tsrx/core0.1.60 and remove the obsolete repository-only compiler patch. Bundle the standalone Volar compiler's tested parser/printer graph while keeping Octane helpers shared; check its public declaration against source JSDoc. This protects installed consumers from esrap 2.3.6's typed-tuple incompatibility.Iteratordeclaration.Validation
pnpm typecheckon Node 24.pnpm format:check; the upstream license file is retained byte-for-byte.pnpm exec vitest run --shard=N/4 --maxWorkers=2 --silent=passed-only. The original unsharded 4 GiB run exhausted its heap and is not counted as a pass.pnpm packages:pack:check: 101 tarballs, 792 preserved TSRX files, and strict Node/browser checks for 37 bindings. The five reported bindings pass ESNext browser checking with external esrap 2.3.6. A focused seven-tarball install also checks all 60 public binding imports and all 348 shipped TSRX implementations, with active negative Node-global/prop/ref/event/generic/tuple probes and no workspace paths, patches, or overrides.a8c5bbb50; no actionable review threads remain.Risk / follow-ups
The Volar-only compiler bundle isolates the tested dependency graph without changing application output. It adds 214,549 gzip bytes (about 209.5 KiB) of compiler JavaScript, plus 1,171 gzip bytes of notices for its eight MIT dependencies. Octane's own compiler modules remain shared, and no compiler source map is added. The declaration gate checks TypeScript emit from authored JSDoc, not full compiler-graph
checkJs.The private parser/printer graph also initializes alongside external compiler dependencies reached through the shared helpers, including through the public compiler index. On Node 24.19 / Apple M5 Max, 32 balanced fresh-process pairs per scenario (warm filesystem cache, disabled disk compile cache) measured median added import time of 7.63 ms for standalone Volar and 8.47 ms for the public compiler index. After preloading the runtime compiler, incremental Volar import added 7.81 ms (paired IQR 7.62–8.03 ms), 0.55 MiB retained heap, and 3.25 MiB post-GC RSS. Source/published code and mapping controls matched. These are local compiler-startup costs of current authored versus published code, not application-rendering, peak-memory, first-compilation, or whole-PR measurements.
Recharts' private RTK 2.10 / Immer 10 dependency family can require an additional installed copy in applications using newer families. Other pre-existing packed-source exceptions remain explicit; all five bindings reported in #721 are now enrolled.
The Recharts source pin and MIT notice are preserved. This repair does not upgrade its upstream version or claim complete upstream parity; the existing
recorded-unverifiedstatus and unsupported Brush/Treemap runtime surface remain explicit.The new imperative-array path adds no work to unchanged-dependency renders. Existing static/state-hook production bundles are byte-identical; the imperative-handle fixture adds 156 gzip bytes on Node 24. Scalar source-level closure/array creation counts are unchanged. These are bundle and deterministic creation-event measurements, not browser timing or heap-allocation claims.
Provenance
agent-authored)Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
High Risk
Touches published compiler packaging, runtime ref attachment, and public types for Recharts/Visx/Remix Router/RTK. A bad printer pin or ref-array change would break installed consumers and chart event/ref behavior.
Overview
Fixes strict browser TypeScript for source-published bindings (Recharts, Visx, Remix Router, Redux Toolkit) and stops relying on a workspace-only TSRX patch.
Recharts now ships authored TypeScript, explicit component imports, and real component prop types. Chart runtime also defers native events, keeps imperative/
Cellrefs off unrelated hosts, and restores missing radial geometry without dropping rows. Visx typechecks without Node globals; Remix Router keeps nativea/formrefs; RTK query hooks type a bundler env.Octane composed refs accept optional entries and nested arrays in
useImperativeHandle(callback cleanup and primitive handles). Spread-ref typing preserves generic Pie props and polar-axis native group targets.The Volar compiler is bundled with its tested parser/printer graph and checked public declarations so newer transitive printers (esrap) cannot double-print typed tuple parameters in installed consumers. Typecheck for jotai/recharts/visx/redux now goes through
tsrx-tsc.Reviewed by Cursor Bugbot for commit a8c5bbb. Bugbot is set up for automated code reviews on this repo. Configure here.