next-themes
0.4.6 · 11 Mar 2025MIT36.6M / weekRepositoryHomepagenpmAtom feed
28 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 0.4.x · latest line
0.4.6
11 Mar 2025Add null check for value in updateDOM function to prevent runtime errors and flashing
0.4.5
9 Mar 2025Map 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
What's Changed
Map theme to class using ValueObject in injected script
Reduce number of renders by pre-setting resolvedTheme
Bump next from 14.2.10 to 14.2.15 in the npm_and_yarn group across 1 directory
Bump the npm_and_yarn group across 1 directory with 7 updates
0.4.4
5 Dec 2024Infinite loop theme flicker
0.4.3
4 Nov 2024Pass
nonceto inline style tag when usingdisableTransitionOnChange
0.4.2
4 Nov 2024Re-export types from
next-themes
0.4.1
4 Nov 2024Support multiple attributes in the injection script
Add dynamic loading as a way to avoid hydration mismatch in README
Add
scriptPropsprop to prevent Cloudflare Rocket Loader deferring script
What's Changed
Support multiple attributes in the injection script
Add dynamic loading as a way to avoid hydration mismatch in README
Add
scriptPropsprop to prevent Cloudflare Rocket Loader deferring script
0.4.0
4 Nov 2024Improved inline script minification
Manually type ThemeProvider to fix type errors
Mention
next-themesis react agnostic
What's Changed
Improved inline script minification
Manually type ThemeProvider to fix type errors
Mention
next-themesis react agnosticMake
childrenoptionalAllow Multiple Attributes
setTheme now works correctly when a function is passed.
Add react v19 to peer deps
- 0.3.x
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.
- 0.2.x
0.2.1
8 Sep 20220.2.0
5 May 2022- 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
Fixes a bug with undefined references in the injected script
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/scriptto a regularscripttag inserted at the top of the<body> - Breaking
Replaces the base64 encoded script contents with a regular string again
Fixes
- 0.1.x
- 0.0.x
0.0.1 – 0.0.1616 releases without a noteShow each
- 0.0.1620 Feb 2022no note
- 0.0.1526 Jun 2021no note
- 0.0.1419 Mar 2021no note
- 0.0.1319 Mar 2021no note
- 0.0.1223 Feb 2021no note
- 0.0.1123 Feb 2021no note
- 0.0.103 Nov 2020no note
- 0.0.92 Nov 2020no note
- 0.0.830 Oct 2020no note
- 0.0.730 Oct 2020no note
- 0.0.625 Oct 2020no note
- 0.0.523 Oct 2020no note
- 0.0.412 Oct 2020no note
- 0.0.310 Oct 2020no note
- 0.0.210 Oct 2020no note
- 0.0.110 Oct 2020no note
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.