nextjs-themes
Advanced tools
Comparing version 3.1.6 to 3.1.7
@@ -5,3 +5,3 @@ { | ||
"private": false, | ||
"version": "3.1.6", | ||
"version": "3.1.7", | ||
"description": "Unleash the Power of React Server Components! Use multiple themes on your site with confidence, without losing any advantages of React Server Components.", | ||
@@ -47,2 +47,22 @@ "license": "MPL-2.0", | ||
}, | ||
"./client/force-color-scheme": { | ||
"require": "./client/force-color-scheme/index.js", | ||
"import": "./client/force-color-scheme/index.mjs", | ||
"types": "./client/force-color-scheme/index.d.ts" | ||
}, | ||
"./force-color-scheme": { | ||
"require": "./client/force-color-scheme/index.js", | ||
"import": "./client/force-color-scheme/index.mjs", | ||
"types": "./client/force-color-scheme/index.d.ts" | ||
}, | ||
"./client/force-theme": { | ||
"require": "./client/force-theme/index.js", | ||
"import": "./client/force-theme/index.mjs", | ||
"types": "./client/force-theme/index.d.ts" | ||
}, | ||
"./force-theme": { | ||
"require": "./client/force-theme/index.js", | ||
"import": "./client/force-theme/index.mjs", | ||
"types": "./client/force-theme/index.d.ts" | ||
}, | ||
"./server": { | ||
@@ -89,3 +109,3 @@ "require": "./server/index.js", | ||
"@testing-library/react": "^16.0.0", | ||
"@types/node": "^20.14.6", | ||
"@types/node": "^20.14.8", | ||
"@types/react": "^18.3.3", | ||
@@ -102,3 +122,3 @@ "@types/react-dom": "^18.3.0", | ||
"tsup": "^8.1.0", | ||
"typescript": "^5.4.5", | ||
"typescript": "^5.5.2", | ||
"vite-tsconfig-paths": "^4.3.2", | ||
@@ -108,3 +128,3 @@ "vitest": "^1.6.0" | ||
"dependencies": { | ||
"r18gs": "^1.1.2" | ||
"r18gs": "^2.0.0-alpha.0" | ||
}, | ||
@@ -111,0 +131,0 @@ "peerDependencies": { |
@@ -162,3 +162,3 @@ # Next.js Themes <img src="https://github.com/react18-tools/turborepo-template/blob/main/popper.png?raw=true" style="height: 40px"/> | ||
```jsx | ||
```ts | ||
import Image from "next/image"; | ||
@@ -224,3 +224,3 @@ import { useTheme } from "nextjs-themes"; | ||
```tsx | ||
import { ForceTheme } from "nextjs-themes"; | ||
import { ForceTheme } from "nextjs-themes/force-theme"; | ||
@@ -239,2 +239,4 @@ function MyPage() { | ||
> If you are using TypeScript and have not set nodeResolution to `Bundler` or `Node16` or `NodeNext`, you need to import from `nextjs-themes/client/force-theme` | ||
### Next.js Pages Router | ||
@@ -354,2 +356,4 @@ | ||
![Repo stats](https://repobeats.axiom.co/api/embed/3cc219825aee3c38bad8829fb9da0dd6301a1867.svg "Repobeats analytics image") | ||
## License | ||
@@ -356,0 +360,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
65661
364
+ Addedr18gs@2.0.0(transitive)
- Removedr18gs@1.1.3(transitive)
Updatedr18gs@^2.0.0-alpha.0