Skip to content

Conversation

@AliT3
Copy link
Collaborator

@AliT3 AliT3 commented Nov 18, 2024

V 5.13.0

  • FIX: rollup config updated to prevent lottie-web from running in Server-Side Rendering contexts (Using Node v21 not supported: breaks on typeof navigator check #3047)
  • FIX: fixed renderGradient() cache invalidation issue so that both start and end points are checked for changes
  • IMPROVEMENT: avoid recalculating static transform matrices, results in a significant performance improvement
  • FIX: reloadShapes() no longer has the side effect of creating duplicate styles
  • FEATURE: Web Worker supports resetSegments
  • FIX: hidden styles were forcibly set as visible when using searchShapes()
  • IMPROVEMENT: expressions can access unidimensional values by index
  • IMPROVEMENT: expression support for thisProperty.name

@AliT3 AliT3 merged commit bede03d into airbnb:master Nov 19, 2024
1 check failed
@tuckergordon
Copy link

@AliT3 or @bodymovin or any other maintainer, can you please merge #3135 so that v5.13.0 gets published to npm?

cvan added a commit to Pinecast/www that referenced this pull request Sep 29, 2025
…ocument is not defined`

the release of Node v21 (in 2023) added a [`navigator` API](https://nodejs.org/api/globals.html#navigator)
(a lightweight version of `window.navigator`) by the same name. unfortunately,
`lottie-react`](https://github.com/Gamote/lottie-react) imports
[`lottie-web`](https://github.com/airbnb/lottie-web), which at the
time had client-side guards that checked for
`typeof navigator !== "undefined"` instead of for `window`.

```
ReferenceError: document is not defined
    at createTag
(node_modules/lottie-web/build/player/lottie.js:30:5)
```

it was first reported in 2023:

- airbnb/lottie-web#3047
- airbnb/lottie-web#2739

it was fixed the following year, airbnb/lottie-web#3133, but the maintainer of `lottie-react` still
hasn't released a new version that bumps the `lottie-web` dependency. it's either fork the project
or this not-terrible workaround. regardless, it would be a wise performance improvement for
lightening page loads.
cvan added a commit to Pinecast/www that referenced this pull request Sep 29, 2025
…ocument is not defined`

the release of Node v21 (in 2023) added a [`navigator` API](https://nodejs.org/api/globals.html#navigator)
(a lightweight version of `window.navigator`) by the same name. unfortunately,
`lottie-react`](https://github.com/Gamote/lottie-react) imports
[`lottie-web`](https://github.com/airbnb/lottie-web), which at the
time had client-side guards that checked for
`typeof navigator !== "undefined"` instead of for `window`.

```
ReferenceError: document is not defined
    at createTag
(node_modules/lottie-web/build/player/lottie.js:30:5)
```

it was first reported in 2023:

- airbnb/lottie-web#3047
- airbnb/lottie-web#2739

it was fixed the following year, airbnb/lottie-web#3133, but the maintainer of `lottie-react` still
hasn't released a new version that bumps the `lottie-web` dependency. it's either fork the project
or this not-terrible workaround. regardless, it would be a wise performance improvement for
lightening page loads.
cvan added a commit to Pinecast/www that referenced this pull request Sep 29, 2025
…ocument is not defined`

the release of Node v21 (in 2023) added a [`navigator` API](https://nodejs.org/api/globals.html#navigator)
(a lightweight version of `window.navigator`) by the same name. unfortunately,
`lottie-react`](https://github.com/Gamote/lottie-react) imports
[`lottie-web`](https://github.com/airbnb/lottie-web), which at the
time had client-side guards that checked for
`typeof navigator !== "undefined"` instead of for `window`.

```
ReferenceError: document is not defined
    at createTag
(node_modules/lottie-web/build/player/lottie.js:30:5)
```

it was first reported in 2023:

- airbnb/lottie-web#3047
- airbnb/lottie-web#2739

it was fixed the following year, airbnb/lottie-web#3133, but the maintainer of `lottie-react` still
hasn't released a new version that bumps the `lottie-web` dependency. it's either fork the project
or this not-terrible workaround. regardless, it would be a wise performance improvement for
lightening page loads.
cvan added a commit to Pinecast/www that referenced this pull request Sep 29, 2025
…document is not defined`

the release of Node v21 (in 2023) added a [`navigator` API](https://nodejs.org/api/globals.html#navigator)
(a lightweight version of `window.navigator`) by the same name. unfortunately,
`lottie-react`](https://github.com/Gamote/lottie-react) imports
[`lottie-web`](https://github.com/airbnb/lottie-web), which at the
time had client-side guards that checked for
`typeof navigator !== "undefined"` instead of for `window`.

```
ReferenceError: document is not defined
    at createTag
(node_modules/lottie-web/build/player/lottie.js:30:5)
```

it was first reported in 2023:

- airbnb/lottie-web#3047
- airbnb/lottie-web#2739

it was fixed the following year, airbnb/lottie-web#3133, but the maintainer of `lottie-react` still
hasn't released a new version that bumps the `lottie-web` dependency. it's either fork the project
or this not-terrible workaround. regardless, it would be a wise performance improvement for
lightening page loads.
cvan added a commit to Pinecast/www that referenced this pull request Sep 29, 2025
…document is not defined`

the release of Node v21 (in 2023) added a [`navigator` API](https://nodejs.org/api/globals.html#navigator)
(a lightweight version of `window.navigator`) by the same name. unfortunately,
`lottie-react`](https://github.com/Gamote/lottie-react) imports
[`lottie-web`](https://github.com/airbnb/lottie-web), which at the
time had client-side guards that checked for
`typeof navigator !== "undefined"` instead of for `window`.

```
ReferenceError: document is not defined
    at createTag
(node_modules/lottie-web/build/player/lottie.js:30:5)
```

it was first reported in 2023:

- airbnb/lottie-web#3047
- airbnb/lottie-web#2739

it was fixed the following year, airbnb/lottie-web#3133, but the maintainer of `lottie-react` still
hasn't released a new version that bumps the `lottie-web` dependency. it's either fork the project
or this not-terrible workaround. regardless, it would be a wise performance improvement for
lightening page loads.
cvan added a commit to Pinecast/www that referenced this pull request Sep 29, 2025
…document is not defined`

the release of Node v21 (in 2023) added a [`navigator` API](https://nodejs.org/api/globals.html#navigator)
(a lightweight version of `window.navigator`) by the same name. unfortunately,
[`lottie-react`](https://github.com/Gamote/lottie-react) imports
[`lottie-web`](https://github.com/airbnb/lottie-web), which at the
time had client-side guards that checked for
`typeof navigator !== "undefined"` instead of for `window`.

```
ReferenceError: document is not defined
    at createTag
(node_modules/lottie-web/build/player/lottie.js:30:5)
```

it was first reported in 2023:

- airbnb/lottie-web#3047
- airbnb/lottie-web#2739

it was fixed the following year, airbnb/lottie-web#3133, but the maintainer of `lottie-react` still
hasn't released a new version that bumps the `lottie-web` dependency. it's either fork the project
or this not-terrible workaround. regardless, it would be a wise performance improvement for
lightening page loads.
cvan added a commit to Pinecast/www that referenced this pull request Sep 29, 2025
…document is not defined`

the release of Node v21 (in 2023) added a [`navigator` API](https://nodejs.org/api/globals.html#navigator)
(a lightweight version of `window.navigator`) by the same name. unfortunately,
[`lottie-react`](https://github.com/Gamote/lottie-react) imports
[`lottie-web`](https://github.com/airbnb/lottie-web), which at the
time had client-side guards that checked for
`typeof navigator !== "undefined"` instead of for `window`.

```
ReferenceError: document is not defined
    at createTag
(node_modules/lottie-web/build/player/lottie.js:30:5)
```

it was first reported in 2023:

- airbnb/lottie-web#3047
- airbnb/lottie-web#2739

it was fixed the following year, airbnb/lottie-web#3133, but the maintainer of `lottie-react` still
hasn't released a new version that bumps the `lottie-web` dependency. it's either fork the project
or this not-terrible workaround. regardless, it would be a wise performance improvement for
lightening page loads.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants