Skip to content

Commit

Permalink
chore(repo): Drop support for deprecated React versions (#2164)
Browse files Browse the repository at this point in the history
* chore(repo): Upgrade minimum version of react to >=18

* chore(repo): Add react-dom@>=18 peer dependency to resolve issue

GH issue: #2107

* chore(repo): Add changeset

* chore(localizations): Fix formatting of ru-RU
  • Loading branch information
dimkl authored Nov 20, 2023
1 parent 9f54913 commit 52ff8fe
Show file tree
Hide file tree
Showing 12 changed files with 112 additions and 79 deletions.
14 changes: 14 additions & 0 deletions .changeset/new-points-train.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
'@clerk/chrome-extension': major
'@clerk/localizations': major
'@clerk/clerk-js': major
'@clerk/nextjs': major
'@clerk/shared': major
'@clerk/themes': major
'@clerk/clerk-react': major
'@clerk/remix': major
'@clerk/clerk-expo': major
---

Upgrade React version to >=18 and add react-dom as peer dependency
to fix issues with vite & rollup building.
127 changes: 67 additions & 60 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion packages/chrome-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
"typescript": "*"
},
"peerDependencies": {
"react": ">=16"
"react": ">=18",
"react-dom": ">=18"
},
"engines": {
"node": ">=18.17.0"
Expand Down
3 changes: 2 additions & 1 deletion packages/clerk-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@
"webpack-merge": "^5.9.0"
},
"peerDependencies": {
"react": ">=18"
"react": ">=18",
"react-dom": ">=18"
},
"engines": {
"node": ">=18.17.0"
Expand Down
3 changes: 2 additions & 1 deletion packages/expo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@
"peerDependencies": {
"expo-auth-session": ">=4",
"expo-web-browser": ">=12",
"react": ">=16"
"react": ">=18",
"react-dom": ">=18"
},
"engines": {
"node": ">=18.17.0"
Expand Down
3 changes: 2 additions & 1 deletion packages/localizations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
"typescript": "*"
},
"peerDependencies": {
"react": ">=16"
"react": ">=18",
"react-dom": ">=18"
},
"engines": {
"node": ">=18.17.0"
Expand Down
Loading

0 comments on commit 52ff8fe

Please sign in to comment.