Releases: playcanvas/react
v0.3.0
Whats new?
The latest release of @playcanvas/react ships with some important updates for the library and developer experience.
✨ Now with React 19 #95
One of the most important updates - You can now use React 19 with @playcanvas/react! React 18.x will continue to be supported for the foreseeable future.
📦 Smaller bundle size with lazy Physics #86
We now lazy load and split the physics library from the build. This means for projects that don't need physics, you'll no longer see inflated build sizes, and even when you do require physics, the library will be lazily loaded, allowing you to code split it out from your main build. See the <Application/>
and <RigidBody/>
docs for more information.
🪝 New Asset hooks #97
By popular demand we've included some default asset loading hooks for loading splats, models, textures and more. The fetchAsset
util still provides a low level mechanic for using query libs, but we've shipped some simple non-caching hooks to get you up to speed. Docs to follow.
📚 Improved Developer Experience #87
We've massively overhauled our docs and types to provide a better developer experience with helpful information.
- Types from the underlying PlayCanvas engine are now automatically surfaced in your components no matter the engine version.
- In addition we've now also validate props at run-time, falling back to sensible defaults. This gives you important and timely feedback on what's gone wrong and where without crashing your project. Run time validation is scoped to development builds only.
- The API docs now include the underlying PlayCanvas types.
Props are now validated at runtime
Other fixes and update
We've also included a range of other updates and fixes to the library and documentation...
- Limit PlayCanvas versions to patch range by @marklundin in #91
- Resizes picker on Window Resize by @marklundin in #79
- Add Splat Viewer example by @marklundin in #78
- Limit PlayCanvas versions to patch range by @marklundin in #91
- Update dependencies and improve project structure by @marklundin in #89
- Refactor component props and enhance type safety by @marklundin in #87
- Adds TSDoc to Component docs by @marklundin in #98
- Improve Docs metadata by @marklundin in #100
Full Changelog: v0.2.4...v0.3.0
v0.2.4
v0.2.2
📚 Docs release
What's Changed
- Update dependency next to v15.1.2 [SECURITY] by @renovate in #37
- Update dependency @tailwindcss/postcss to v4.0.0-beta.9 by @renovate in #38
- Update dependency monaco-editor to v0.52.2 by @renovate in #44
- Update dependency eslint-plugin-react to v7.37.4 by @renovate in #42
- Update dependency @types/node to v22.10.6 by @renovate in #41
- Update renovate.json by @marklundin in #55
- Update dependency next-mdx-remote-client to v1.0.6 by @renovate in #45
- Update dependency @tanstack/react-query to v5.64.1 by @renovate in #50
- Update dependency typescript to v5.7.3 by @renovate in #47
- Update renovate.json by @marklundin in #57
- Pin dependencies by @renovate in #58
- Update all npm dependencies by @renovate in #59
- Docs update by @marklundin in #61
- Update all npm dependencies by @renovate in #62
- Update all npm dependencies by @renovate in #66
- Add context menu prevention in Playground component by @marklundin in #68
- Docs update by @marklundin in #70
Full Changelog: v0.2.1...v0.2.2
v0.2.1
What's Changed
- Refactor documentation structure and improve styles by @marklundin in #27
- Docs improvements by @marklundin in #30
- Implement Pointer Events Context for Enhanced Interaction Handling by @marklundin in #28
- Enhance Hello World Documentation and Update Meta Configuration by @marklundin in #31
- Add Model Animation Example by @marklundin in #32
- Enhance GSplat component to support custom vertex and fragment shaders by @marklundin in #33
- Add Primitives Example by @marklundin in #34
- Configure Renovate by @renovate in #36
- Update dependencies and enhance documentation for @playcanvas/react by @marklundin in #40
- Update README.md by @marklundin in #43
New Contributors
Full Changelog: v0.2.0...v0.2.1
v0.2.0
What's Changed
- Converts repo to TypeScript by @marklundin in #1
- Updated to Functional TS React Compoenents by @marklundin in #2
- Support Pointer Events by @marklundin in #3
- Fix Script cleanup in useScript hook by @marklundin in #4
- Updates by @marklundin in #5
- CSS Color Support by @marklundin in #6
- ESLint + Types by @marklundin in #7
- Add's ESLint React compiler by @marklundin in #9
- Various Fixes + Updates by @marklundin in #11
- Layout updates by @marklundin in #16
- Add MIT License by @marklundin in #22
- Remove internal
CameraFrame
Script. Update PC peer dep by @marklundin in #24
Full Changelog: https://github.com/playcanvas/react/commits/v0.2.0