Breaking Changes
- React 18+ required —
peerDependenciesnow enforcesreact: ">=18". Older versions are no longer supported. - Legacy context API removed (#443) —
childContextTypes/getChildContextreplaced withReact.createContext. Fixes the React 19 error "Surface uses the legacy childContextTypes API". loseGLremoved (#443)- Flow types removed — the codebase is now TypeScript-only (#446)
What's New
- React 19 compatibility — fully compatible with React 19 strict mode
- StrictMode fix (#443) — dependencies are no longer incorrectly updated in StrictMode double-invocation
- TypeScript (#446) — migrated from Flow to TypeScript, improved type declarations
- Node 24 + headless-gl 9 (#447)
- npm Trusted Publisher — releases are now published via GitHub Actions using OIDC (no token stored)
Upgrading from v5
npm install gl-react@6 gl-react-dom@6No API changes — only the React version requirement and removed internals listed above.