Publish the experimental React Native chart host - #11
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
ed7bcde to
059faf0
Compare
f4bc158 to
81ddc12
Compare
6913ceb to
2fa8bbb
Compare
2fa8bbb to
e14545a
Compare
ab003d6 to
6e66997
Compare
e14545a to
ef21c79
Compare
6e66997 to
952e219
Compare
ef21c79 to
04cad52
Compare
952e219 to
0c743f2
Compare
04cad52 to
b7e4085
Compare
521392c to
a0fb632
Compare
b7e4085 to
0cd6b8f
Compare
0cd6b8f to
287fdff
Compare
Summary
@tanstack/react-native-chartsa public experimental package with compiled ESM, declarations, provenance, andreact-nativeconditional exports/tooltip@tanstack/charts/universalInstall contract
After publication, a React Native application can install and import the adapter normally:
The tested lanes are Expo 57 / React Native 0.86.2 with
react-native-svg15.15.4 and bare React Native 0.86.2 withreact-native-svg15.15.5. The published peer range is React^19.2.3, React Native^0.86.0, andreact-native-svg>=15.15.4 <16.The packed-consumer gate forces the adapter's transitive core dependency to the packed core tarball, uses each consumer's own TypeScript installation, and asserts that Metro resolves only installed
distmodules. It bundles iOS and Android through both default Metro configurations. A separate base-entry bundle proves that importing the root does not retain the optional tooltip implementation.Compatibility and support boundary
Existing browser imports and behavior are unchanged. The browser-first
@tanstack/chartsroot remains the normal web entry;/universalis the cross-runtime barrel, and granular entries remain the bundle-sensitive path.This PR makes package installation, imports, declarations, and Metro production bundles work. It does not claim supported device parity yet: simulator and physical-device visuals, gestures, VoiceOver/TalkBack, Hermes runtime profiling, memory, startup, and installed binary size remain unverified.
Bundle evidence
/universalover the equivalent granular entry: 119.06 KiB minified / 28.91 KiB gzip / 102 modules on both platformsRelease prerequisite
@tanstack/react-native-chartsis still absent from npm. Before the fixed changeset publishes0.4.0, a maintainer must directly publish the checked0.3.1tarball with public access and 2FA, then configureTanStack/chartsandrelease.ymlas its trusted publisher. Normal aggregate releases can use OIDC after that one-time bootstrap.Validation
pnpm validate— all 17 CI targets; 126 test files and 667 testspnpm react-native:poc:typespnpm release:artifacts— 12 validated0.3.1artifacts