Packages

next-themes

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

Upgrading next-themes From 0.0.15 to 0.4.6

13 releases in betweennotes for 9

  1. 0.0.15yours
  2. 1 release
  3. 0.1.0major
  4. 1 release
  5. 0.2.0major
  6. 1 release
  7. 0.3.0major
  8. 0.4.0major
  9. 5 releases
  10. 0.4.6target
2+
changes to make
0
advisories fixed
4+
new
11+
fixes

Counted from 9 of 13 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Breaking0.2.0
  • Breaking0.2.0

Release by release

  1. 0.4.6

    11 Mar 20251 fix
    • Fixed

      Add null check for value in updateDOM function to prevent runtime errors and flashing

  2. 0.4.5

    9 Mar 20251 fix
    • Fixed

      Map theme to class using ValueObject in injected script

  3. 0.4.4

    5 Dec 20241 fix
    • Fixed

      Infinite loop theme flicker

  4. 0.4.2 – 0.4.32 releases, nothing new or fixed in the notes

  5. 0.4.1

    4 Nov 20242 new · 1 fix
    • New

      Add dynamic loading as a way to avoid hydration mismatch in README

    • New

      Add scriptProps prop to prevent Cloudflare Rocket Loader deferring script

    • Fixed

      Support multiple attributes in the injection script

  6. 0.4.0

    4 Nov 20242 new · 3 fixes
    • New

      Allow Multiple Attributes

    • New

      Add react v19 to peer deps

    • Fixed

      Manually type ThemeProvider to fix type errors

    • Fixed

      Make children optional

    • Fixed

      setTheme now works correctly when a function is passed.

  7. 0.2.1 – 0.3.02 releases, nothing new or fixed; 1 without a note

  8. 0.2.0

    Migration needed5 May 20224 fixes
    • 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

    • Fixed

      Fixes a bug with undefined references in the injected script

    • Fixed

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

    • Fixed

      Types are once again bundled in the published version

    • Fixed

      Fixes #107

8 other lines we could not sort, mostly version bumps
  • Reduce number of renders by pre-setting resolvedTheme

    0.4.5
  • Bump next from 14.2.10 to 14.2.15 in the npm_and_yarn group across 1 directory

    0.4.5
  • Bump the npm_and_yarn group across 1 directory with 7 updates

    0.4.5
  • Pass nonce to inline style tag when using disableTransitionOnChange

    0.4.3
  • Re-export types from next-themes

    0.4.2
  • Improved inline script minification

    0.4.0
  • Mention next-themes is react agnostic

    0.4.0
  • "use client" was added to the library output so that you can use it as a React Client component without creating a wrapper.

    0.3.0

3 internal lines (docs, tests, tooling) left out.

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.