Skip to content

Releases: playcanvas/react

v0.3.0

10 Apr 13:06
b6b2094
Compare
Choose a tag to compare

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.

image

📦 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
image

Other fixes and update

We've also included a range of other updates and fixes to the library and documentation...

Full Changelog: v0.2.4...v0.3.0

v0.2.4

19 Feb 15:27
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.2.2...v0.2.4

v0.2.2

14 Feb 16:21
221ba90
Compare
Choose a tag to compare

📚 Docs release

What's Changed

Full Changelog: v0.2.1...v0.2.2

v0.2.1

14 Jan 17:35
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.2.0...v0.2.1

v0.2.0

20 Dec 09:53
Compare
Choose a tag to compare

What's Changed

Full Changelog: https://github.com/playcanvas/react/commits/v0.2.0