Repository navigation
fix(recharts): expose strict consumer types - #730
Closed
jonkwheeler wants to merge 2 commits into
Closed
jonkwheeler wants to merge 2 commits into
jonkwheeler wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.
Reviewed by Cursor Bugbot for commit a2e1d1d. Configure here.
4 of 5 tasks
This was referenced Aug 12, 2026
trueadm
added a commit
that referenced
this pull request
Aug 12, 2026
* fix(bindings): validate strict packed TSRX consumers (#721) * fix(recharts): expose strict consumer types (#726) * fix(recharts): align public type exports (#730) * test(packages): enforce strict TSRX source consumers (#721) * Address PR review feedback (#733) - install the complete packed workspace dependency closure - allow pnpm to install required external peers * Clarify deferred strict binding coverage (#733) - defer Recharts source compilation until tsrx-tsc resolves extensionless TSRX imports * Address PR review feedback (#733) - keep precise API probe packages installed when source validation is deferred * Fix packed TSRX consumer dependency graph --------- Co-authored-by: Dominic Gannaway <[email protected]>
Collaborator
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
Strict TypeScript apps can now import
@octanejs/rechartswithout compiling its internal TSRX and vendored JavaScript source graph. The package selects its existing Octane-native public declarations for type resolution while preserving the source entry for runtime compilation.The packed-consumer canary now imports and renders a Recharts bar chart and verifies that its exported component props remain typed.
Fixes #726.
Validation
pnpm format:checkpnpm typecheckpnpm testnode --test scripts/package-pack-canaries.test.mjs scripts/typecheck-files.test.mjs(21 passed)@octanejs/rechartsinstalled in an external strict TypeScript project withtypes: [];tsc --noEmitpassedgit diff --checkpassedRisk / follow-ups
The full package-pack canary and Recharts Vitest project could not run locally. This shell uses Node 22.14.0, below the repository's required 22.22.2, and the isolated filtered install lacks unrelated root Vitest configuration dependencies. CI should run both with the supported toolchain.
Provenance
agent-authored)Note
Low Risk
Packaging and declaration-only changes with no runtime logic edits; main consumer impact is clearer typings and fewer accidental deep source compiles.
Overview
@octanejs/rechartsnow resolves TypeScript throughsrc/index.d.tsinstead of the source entry, so strict consumers no longer typecheck the full internal TSRX and vendored JS graph. Runtime still usessrc/index.tsvia conditionalexports.The public declaration file is expanded with additional components (e.g.
Cell,Layer,Surface,ErrorBar), chart hooks (useChartWidth, axis/scale helpers), andAnimationControllerProvider.BrushandTreemapare removed from the declared surface (aligned with the Octane port gaps); the packed type probe expects@ts-expect-errorwhen importing them.Packed TSRX canary coverage now includes Recharts: a sample
BarChartin the consumer fixture and strictAssertNotAnychecks onBarPropsand related exports, plus an updated changeset and validation messaging.Reviewed by Cursor Bugbot for commit ef52d8c. Bugbot is set up for automated code reviews on this repo. Configure here.