Packages

next-themes

0.4.6 · 11 Mar 2025MIT36.6M / weekRepositoryHomepagenpmAtom feed

Your version

0.2.0

5 May 2022Where it was published

0.4.6 is the newest release of 0.2.x.

In short

2 breaking4 fixed

  • Breaking

    Switches from next/script to a regular script tag inserted at the top of the <body>

  • Breaking

    Replaces the base64 encoded script contents with a regular string again

Release note

Mildly Breaking Changes

These changes shouldn't affect 99% of usage of this library, but they're good to be aware of.

  • Breaking

    Switches from next/script to a regular script tag inserted at the top of the <body>

  • Breaking

    Replaces the base64 encoded script contents with a regular string again

Fixes

  • Fixes a bug with undefined references in the injected script

  • Supports CSP nonce again because the injected script is no longer base64 encdoed

  • Types are once again bundled in the published version

  • Fixes #107

  • Fixes #106

  • Fixes #99

  • Fixes #94

  • Fixes #90

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.