# What changed in @lottiefiles/dotlottie-react

> 11 changes in @lottiefiles/dotlottie-react 0.18 to 0.20 from its official release notes, upgrade guides and advisories: 2 breaking, 1 security, 2 new APIs and options. Each one cited. Sources checked 2026-10-18. HTML: https://unstale.sh/npm/@lottiefiles/dotlottie-react/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @lottiefiles/dotlottie-react 0.20

### Security

- Adds setWorkerUrl(url) and ships dist/dotlottie.worker.js as a standalone file, allowing consumers to self-host the worker and avoid requiring worker-src: blob: in Content-Security-Policy. (0.20.0) — [release notes](https://github.com/LottieFiles/dotlottie-web/releases/tag/%40lottiefiles/dotlottie-react%400.20.0)

### Behavior and default changes

- Relative src paths are resolved against the page before reaching the worker. (0.20.0) — [release notes](https://github.com/LottieFiles/dotlottie-web/releases/tag/%40lottiefiles/dotlottie-react%400.20.0)

### Fixes and other changes

- The regular and worker players no longer load the initial src twice on mount; later src changes still call load. (0.20.0) — [release notes](https://github.com/LottieFiles/dotlottie-web/releases/tag/%40lottiefiles/dotlottie-react%400.20.0)

## @lottiefiles/dotlottie-react 0.19

### Breaking changes

- Declares Node.js >=18.17.0 as the package engine requirement so downstream installs use a toolchain capable of verifying npm provenance attestations. (0.19.3) — [release notes](https://github.com/LottieFiles/dotlottie-web/releases/tag/%40lottiefiles/dotlottie-react%400.19.3)
- Declares npm >=9.5.0 as the package engine requirement so downstream installs use a toolchain capable of verifying npm provenance attestations. (0.19.3) — [release notes](https://github.com/LottieFiles/dotlottie-web/releases/tag/%40lottiefiles/dotlottie-react%400.19.3)

### New APIs and options

- Adds a WebGL renderer component via a subpath export. (0.19.0) — [release notes](https://github.com/LottieFiles/dotlottie-web/releases/tag/%40lottiefiles/dotlottie-react%400.19.0)
- Adds a WebGPU renderer component via a subpath export, with an optional `device` prop. (0.19.0) — [release notes](https://github.com/LottieFiles/dotlottie-web/releases/tag/%40lottiefiles/dotlottie-react%400.19.0)

### Fixes and other changes

- Fixed support for React StrictMode. (0.19.10) — [release notes](https://github.com/LottieFiles/dotlottie-web/releases/tag/%40lottiefiles/dotlottie-react%400.19.10)
- React, Vue, Svelte, Solid, and Web Component wrappers now forward loopCount on initialization, load(), and prop changes, so configured values control animation looping. (0.19.6) — [release notes](https://github.com/LottieFiles/dotlottie-web/releases/tag/%40lottiefiles/dotlottie-react%400.19.6)

## @lottiefiles/dotlottie-react 0.18

### Fixes and other changes

- Fixed loadAnimation being called multiple times for the same animationId during rerender. (0.18.10) — [release notes](https://github.com/LottieFiles/dotlottie-web/releases/tag/%40lottiefiles/dotlottie-react%400.18.10)
- Adjusts the return type for React 19. (0.18.4) — [release notes](https://github.com/LottieFiles/dotlottie-web/releases/tag/%40lottiefiles/dotlottie-react%400.18.4)
