Releases: diegopeixoto/unicornstudio-react
Releases · diegopeixoto/unicornstudio-react
2.1.4-1
What's Changed
- Add scene ref and bump by @GeorgeHastings in #36
- 📝 Add docstrings to
feat/tests-conduct-claudeby @coderabbitai[bot] in #39 - Feat/tests conduct claude by @diegopeixoto in #38
- Fix Duplicated Canvas on React Strict Mode by @diegopeixoto in #41
- Add ResizeObserver support to useUnicornScene hook by @diegopeixoto in #42
New Contributors
- @coderabbitai[bot] made their first contribution in #39
Full Changelog: 2.1.1...2.1.4-1
2.0.1-1
What's Changed
- add pause flag by @GeorgeHastings in #26
- docs: Add comprehensive JSDoc documentation to shared utilities by @diegopeixoto in #27
Full Changelog: 2.0.1...2.0.1-1
2.0.1
v1.5.2
What's Changed
- bump to v1.5.2 by @GeorgeHastings in #21
New Contributors
- @schellenbergk made their first contribution in #19
Full Changelog: v1.4.33...v1.5.2
v1.4.33
v1.4.31
v1.4.30
What's Changed
- Next.js + App Router Mounting Bugfix by @GeorgeHastings in #11
- Create stale.yml by @diegopeixoto in #13
- bump to 1.4.30 by @GeorgeHastings in #14
Full Changelog: v1.4.29...v1.4.30
v1.4.29-1
Changelog
[1.4.29-1] - 2025-08-15
Fixed
Next.js App Router Compatibility
- Prevented duplicate script initialization: Modified
useUnicornStudioScripthook to check if UnicornStudio is already loaded before setting the loaded state, preventing duplicate triggers in Next.js App Router environments - Added mount-time script detection: Added
useEffecthook to detect if UnicornStudio is already available when the component mounts, ensuring proper initialization in server-side rendered contexts - Improved error handling: Updated error handler to properly reset the
isLoadedstate when script loading fails
Scene Initialization Improvements
- Prevented concurrent initializations: Added
isInitializingRefflag to prevent multiple simultaneous scene initialization attempts, which could occur during React's strict mode or rapid re-renders - Optimized re-initialization logic: Improved detection of already initialized scenes with the same configuration to avoid unnecessary re-initializations
- Better cleanup handling: Separated cleanup logic into its own
useEffectto ensure proper resource management on component unmount - Fixed initialization key reset: Added proper reset of initialization key when projectId or jsonFilePath changes, allowing fresh initialization with new parameters
v1.4.29
What's Changed
- Bump default version to v1.4.29 by @GeorgeHastings in #9
Full Changelog: v1.4.28...v1.4.29
v1.4.28
What's Changed
- Allow query params in project ID by @GeorgeHastings in #8
Full Changelog: v1.4.27...v1.4.28