Changelog

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.