Skip to content

Commit

Permalink
[v3] make react 18 as minimal requirement (#3260)
Browse files Browse the repository at this point in the history
  • Loading branch information
87xie authored Sep 18, 2024
1 parent 5c56294 commit 237c345
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 26 deletions.
7 changes: 7 additions & 0 deletions .changeset/tasty-worms-fry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'nextra-theme-blog': patch
'nextra-theme-docs': patch
'nextra': patch
---

Make React 18 as minimal requirement
4 changes: 2 additions & 2 deletions packages/nextra-theme-blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
"peerDependencies": {
"next": ">=13",
"nextra": "workspace:*",
"react": ">=16.13.1",
"react": ">=18.0.0",
"react-cusdis": "^2.1.3",
"react-dom": ">=16.13.1"
"react-dom": ">=18.0.0"
},
"peerDependenciesMeta": {
"react-cusdis": {
Expand Down
5 changes: 2 additions & 3 deletions packages/nextra-theme-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,11 @@
"peerDependencies": {
"next": ">=13",
"nextra": "workspace:*",
"react": ">=16.13.1",
"react-dom": ">=16.13.1"
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
"dependencies": {
"@headlessui/react": "^2.1.2",
"@popperjs/core": "^2.11.8",
"clsx": "^2.0.0",
"escape-string-regexp": "^5.0.0",
"flexsearch": "^0.7.43",
Expand Down
4 changes: 2 additions & 2 deletions packages/nextra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@
},
"peerDependencies": {
"next": ">=13",
"react": ">=16.13.1",
"react-dom": ">=16.13.1"
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
"dependencies": {
"@headlessui/react": "^2.1.2",
Expand Down
30 changes: 11 additions & 19 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 237c345

Please sign in to comment.