Skip to content

Releases: diegopeixoto/unicornstudio-react

v1.5.2

Choose a tag to compare

@diegopeixoto diegopeixoto released this 03 Dec 20:45
e135563

What's Changed

New Contributors

Full Changelog: v1.4.33...v1.5.2

v1.4.33

Choose a tag to compare

@diegopeixoto diegopeixoto released this 06 Oct 18:21
0adff28

What's Changed

Full Changelog: v1.4.31...v1.4.33

v1.4.31

Choose a tag to compare

@diegopeixoto diegopeixoto released this 21 Sep 09:20
7231c19

What's Changed

Full Changelog: v1.4.30...v1.4.31

v1.4.30

Choose a tag to compare

@diegopeixoto diegopeixoto released this 17 Sep 18:25
3826b39

What's Changed

Full Changelog: v1.4.29...v1.4.30

v1.4.29-1

Choose a tag to compare

@diegopeixoto diegopeixoto released this 15 Aug 15:46
6239856

Changelog

[1.4.29-1] - 2025-08-15

Fixed

Next.js App Router Compatibility

  • Prevented duplicate script initialization: Modified useUnicornStudioScript hook 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 useEffect hook 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 isLoaded state when script loading fails

Scene Initialization Improvements

  • Prevented concurrent initializations: Added isInitializingRef flag 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 useEffect to 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

@GeorgeHastings in #11

v1.4.29

Choose a tag to compare

@diegopeixoto diegopeixoto released this 23 Jul 17:02
620523d

What's Changed

Full Changelog: v1.4.28...v1.4.29

v1.4.28

Choose a tag to compare

@diegopeixoto diegopeixoto released this 23 Jul 16:55
d50fe52

What's Changed

Full Changelog: v1.4.27...v1.4.28

v1.4.27

Choose a tag to compare

@diegopeixoto diegopeixoto released this 04 Jul 19:11
015f06a

What's Changed

  • Bump SDK to v1.4.27
    This update integrates SDK version 1.4.27, which includes a fix for an issue where appear effects on element layers would not initialize properly.
    #6 by @GeorgeHastings

New Contributors

Full Changelog: v1.4.26-next...v1.4.27

v1.4.26-next

Choose a tag to compare

@diegopeixoto diegopeixoto released this 03 Jul 00:47
5c21968

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

Full Changelog: v1.4.26...v1.4.26-next

v1.4.26

Choose a tag to compare

@diegopeixoto diegopeixoto released this 02 Jul 21:00
88ae5b5

🦄 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