Packages

next-themes

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

Your version

28 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 0.4.x · latest line
  2. 0.4.6

    11 Mar 2025
    • Add null check for value in updateDOM function to prevent runtime errors and flashing

  3. 0.4.5

    9 Mar 2025
    • Map theme to class using ValueObject in injected script

    • Reduce number of renders by pre-setting resolvedTheme

    • Bump the npm_and_yarn group across 1 directory with 7 updates

  4. 0.4.4

    5 Dec 2024
    • Infinite loop theme flicker

  5. 0.4.3

    4 Nov 2024
    • Pass nonce to inline style tag when using disableTransitionOnChange

  6. 0.4.2

    4 Nov 2024
    • Re-export types from next-themes

  7. 0.4.1

    4 Nov 2024
    • Support multiple attributes in the injection script

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

    • Add scriptProps prop to prevent Cloudflare Rocket Loader deferring script

  8. 0.4.0

    4 Nov 2024
    • Improved inline script minification

    • Manually type ThemeProvider to fix type errors

    • Mention next-themes is react agnostic

  9. 0.3.x
  10. 0.3.0

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

  11. 0.2.x
  12. 0.2.1

    8 Sep 2022
  13. 0.2.0

    5 May 2022
    • 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 a bug with undefined references in the injected script

  14. 0.1.x
  15. 0.1.0 – 0.1.12 releases without a noteShow each
  16. 0.0.x
  17. 0.0.1 – 0.0.1616 releases without a noteShow each

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.