Skip to content

Release chartgpu-react 0.3.0 (ChartGPU 0.3.6 + TypeScript 7)#18

Merged
hunterg325 merged 1 commit into
mainfrom
release/0.3.0-chartgpu-react
Jul 22, 2026
Merged

Release chartgpu-react 0.3.0 (ChartGPU 0.3.6 + TypeScript 7)#18
hunterg325 merged 1 commit into
mainfrom
release/0.3.0-chartgpu-react

Conversation

@hunterg325

Copy link
Copy Markdown
Member

Summary

Pre-release of chartgpu-react 0.3.0, aligned with @chartgpu/chartgpu ^0.3.6.

  • Peer bump to ChartGPU ^0.3.6 and package version 0.3.0; package name restored to chartgpu-react for npmjs.org
  • Expand 0.3.x API surface: appendData + { maxPoints }, setZoomRange source, type re-exports (heatmap, band, 3D, etc.)
  • TypeScript 7.0 (typescript ^7.0.2), Vite 7, Vitest 4, React 19 types in dev; Node ≥20
  • Build: Vite ESM bundle + tsc declaration emitvite-plugin-dts removed (incompatible with TypeScript 7’s slim package API)
  • useGPUContext StrictMode fix: shared initPromiseRef so remount reuses one GPU init
  • Examples redesigned (Hallmark / ChartGPU dev-site DNA) with modern demos including 3D
  • GitHub Actions CI: typecheck + test + build on PR/push to main
  • Mock-based unit coverage for handle forwarding, useConnectCharts, useGPUContext, events, and package exports

TypeScript 7 upgrade

Item Detail
Version typescript ^7.0.2 (was ^5.3.3)
Declarations tsc -p tsconfig.build.json after Vite build
Removed vite-plugin-dts (does not work with TS 7’s slim package API)
Related Vite 7, Vitest 4, @types/react 19, engines node >= 20

Test plan

  • npm ci && npm run typecheck && npm test && npm run build green locally and in CI
  • Smoke examples (npm run dev) — line, candlestick, multi-chart, 3D demos load on WebGPU Chrome
  • Confirm peer resolution against @chartgpu/chartgpu@0.3.6
  • Review CHANGELOG 0.3.0 for release notes accuracy before npm publish

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.
@hunterg325
hunterg325 merged commit 8cebb5d into main Jul 22, 2026
1 check passed
@hunterg325
hunterg325 deleted the release/0.3.0-chartgpu-react branch July 22, 2026 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant