Full release history for the next-live2d package.
v2.1.0
2026-09-03โจ Added
- โข Live2DWidget now renders inside a self-contained iframe, so consumers no longer need to hand-roll their own isolated widget wrapper.
- โข Added scale and bottomOffset props to control widget sizing/position without extra CSS.
๐ Fixed
- โข Eliminated "Cannot read properties of null (reading 'removeChild')" crashes by no longer mutating the host document's DOM; all widget DOM lives inside the iframe document.
v2.0.5
2026-07-31๐ Fixed
- โข Hardened DOM cleanup during widget lifecycle transitions to reduce removeChild race crashes.
๐งช Test App
- โข Reworked the demo runtime to isolate Live2D execution from App Router UI updates.
- โข Restored demo interactions for model switch and mouse tracking in the isolated widget.
- โข Increased isolated widget viewport sizing so taller models are less likely to be clipped.
v2.0.4
2026-07-27๐ Fixed
- โข Fixed model switching where only the first model persisted after selection changes.
- โข Reset Live2D widget runtime config before each re-initialization so jsonPath updates correctly.
- โข Updated script loading flow to include both L2Dwidget.min.js and L2Dwidget.0.min.js, preventing partial runtime initialization.
v2.0.3
2026-07-27๐ Fixed
- โข Fixed Live2D initialization context binding (this) to prevent runtime failures such as "Cannot read properties of undefined (reading 'emit')".
- โข Added preflight model JSON validation before widget initialization to fail fast with actionable errors.
โ๏ธ Dev Experience
- โข Added dev:test:clean and test app dev:clean scripts to clear stale .next artifacts.
v2.0.2
2026-07-27๐ง Changed
- โข Updated default model host URL to use the new GitHub username 2hjaito.
- โข Updated package metadata links (repository, bugs) to the new GitHub profile.
v2.0.1
2026-07-27๐ Fixed
- โข Hardened Live2D script loading to avoid duplicate injection during React StrictMode remounts.
- โข Improved initialization flow to reduce async race conditions in Next.js App Router projects.
- โข Added timeout guard while waiting for #live2d-widget to prevent long-running render loops.
v2.0.0
2026-03-07๐ Major Release
- โข Custom baseUrl for self-hosted models.
- โข Position, size, opacity, hoverOpacity controls.
- โข Random model mode and loading fallback.
- โข React 18/19 support with stronger TypeScript exports.
v1.4.1
2025-06-24๐ Fixed
- โข Avoided unsafe global delete operation.
- โข Improved unmount cleanup safety.
v1.0.0
2025-06-03๐ฃ Initial release
- โข Simple <Live2DWidget modelName="..." /> component.
- โข Injects live2d-widget from CDN.
- โข Supports 20+ Live2D models.