Releases: diegopeixoto/unicornstudio-react
Releases · diegopeixoto/unicornstudio-react
Release list
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
v1.4.27
What's Changed
- Bump SDK to v1.4.27
This update integrates SDK version 1.4.27, which includes a fix for an issue whereappeareffects on element layers would not initialize properly.
#6 by @GeorgeHastings
New Contributors
- @GeorgeHastings made their first contribution in #6
Full Changelog: v1.4.26-next...v1.4.27
v1.4.26-next
What's Changed
- Implements optional placeholder option for Unicorn component by @diegopeixoto in #3
- Fix Infinite Retry Loop When JSON File Not Found or Invalid by @diegopeixoto in #4
- Fixes for Next below 14, add full support for Vanilla React by @diegopeixoto in #5
New Contributors
- @diegopeixoto made their first contribution in #3
Full Changelog: v1.4.26...v1.4.26-next
v1.4.26
🦄 unicornstudio-next v1.4.26 - Initial Release
🎯 Version Alignment
This package version v1.4.26 aligns with Unicorn.Studio script v1.4.26 for maximum compatibility.
A modern React/Next.js component for embedding Unicorn.Studio interactive scenes with full TypeScript support.
✨ Features
- 🚀 Easy Integration - Simple React component for Next.js projects
- 🎨 Full TypeScript Support - Complete type definitions included
- ⚡ Performance Optimized - Lazy loading and efficient resource management
- 📱 Responsive - Works seamlessly across devices
- 🛡️ Error Handling - Comprehensive error states and fallbacks
- 🧹 Clean Architecture - Proper cleanup and memory management
Full Changelog: https://github.com/diegopeixoto/unicornstudio-next/commits/v1.4.26