Release chartgpu-react 0.3.0 (ChartGPU 0.3.6 + TypeScript 7)#18
Merged
Conversation
Align the React bindings with @chartgpu/chartgpu ^0.3.6, expand 0.3.x handle/hook surface and types, modernize the examples demo site, and add CI plus mock-based unit coverage for forwarding and multi-chart hooks. Tooling: upgrade to TypeScript 7.0 (^7.0.2), Vite 7, and Vitest 4; drop vite-plugin-dts (incompatible with TS 7's slim package API) and emit declarations via tsc. Fix useGPUContext StrictMode init via a shared promise. Package name restored to chartgpu-react for npmjs.org.
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
Pre-release of chartgpu-react 0.3.0, aligned with @chartgpu/chartgpu ^0.3.6.
chartgpu-reactfor npmjs.orgappendData+{ maxPoints },setZoomRangesource, type re-exports (heatmap, band, 3D, etc.)typescript^7.0.2), Vite 7, Vitest 4, React 19 types in dev; Node ≥20tscdeclaration emit —vite-plugin-dtsremoved (incompatible with TypeScript 7’s slim package API)useGPUContextStrictMode fix: sharedinitPromiseRefso remount reuses one GPU initmainuseConnectCharts,useGPUContext, events, and package exportsTypeScript 7 upgrade
typescript^7.0.2 (was ^5.3.3)tsc -p tsconfig.build.jsonafter Vite buildvite-plugin-dts(does not work with TS 7’s slim package API)@types/react19, enginesnode >= 20Test plan
npm ci && npm run typecheck && npm test && npm run buildgreen locally and in CInpm run dev) — line, candlestick, multi-chart, 3D demos load on WebGPU Chrome@chartgpu/chartgpu@0.3.6