next-themes
0.4.6 · 11 Mar 2025MIT36.6M / weekRepositoryHomepagenpmAtom feed
Upgrading next-themes From 0.0.8 to 0.4.6
20 releases in betweennotes for 9
- 2+
- changes to make
- 0
- advisories fixed
- 4+
- new
- 11+
- fixes
Counted from 9 of 20 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
- Fixed
Add null check for value in updateDOM function to prevent runtime errors and flashing
- Fixed
- Fixed
Map theme to class using ValueObject in injected script
- Fixed
- Fixed
Infinite loop theme flicker
- Fixed
0.4.2 – 0.4.32 releases, nothing new or fixed in the notes
- New
Add dynamic loading as a way to avoid hydration mismatch in README
- New
Add
scriptPropsprop to prevent Cloudflare Rocket Loader deferring script - Fixed
Support multiple attributes in the injection script
- New
- New
Allow Multiple Attributes
- New
Add react v19 to peer deps
- Fixed
Manually type ThemeProvider to fix type errors
- Fixed
Make
childrenoptional - Fixed
setTheme now works correctly when a function is passed.
- New
0.2.1 – 0.3.02 releases, nothing new or fixed; 1 without a note
- Breaking
Switches from
next/scriptto a regularscripttag 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
nonceagain because the injected script is no longer base64 encdoed - Fixed
Types are once again bundled in the published version
- Fixed
Fixes #107
- Breaking
8 other lines we could not sort, mostly version bumps
- 0.4.5
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.3
Pass
nonceto inline style tag when usingdisableTransitionOnChange - 0.4.2
Re-export types from
next-themes - 0.4.0
Improved inline script minification
- 0.4.0
Mention
next-themesis react agnostic - 0.3.0
"use client"was added to the library output so that you can use it as a React Client component without creating a wrapper.
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.