Skip to content

Commit

Permalink
fix(repo): Use same react, react-dom peer semver (#4758)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekradko authored Dec 11, 2024
1 parent 7ad473e commit 66ad299
Show file tree
Hide file tree
Showing 12 changed files with 62 additions and 37 deletions.
13 changes: 13 additions & 0 deletions .changeset/chatty-walls-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
'@clerk/chrome-extension': patch
'@clerk/tanstack-start': patch
'@clerk/react-router': patch
'@clerk/clerk-js': patch
'@clerk/elements': patch
'@clerk/nextjs': patch
'@clerk/shared': patch
'@clerk/clerk-react': patch
'@clerk/remix': patch
---

Using the same peerDependencies semver for react and react-dom
4 changes: 2 additions & 2 deletions packages/chrome-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
"typescript": "catalog:repo"
},
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18"
"react": "catalog:peer-react",
"react-dom": "catalog:peer-react"
},
"engines": {
"node": ">=18.17.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/clerk-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@
"webpack-merge": "^5.9.0"
},
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18"
"react": "catalog:peer-react",
"react-dom": "catalog:peer-react"
},
"engines": {
"node": ">=18.17.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/elements/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@
},
"peerDependencies": {
"next": "^13.5.4 || ^14.0.3 || ^15",
"react": "^18.0.0 || ^19.0.0-beta",
"react-dom": "^18.0.0 || ^19.0.0-beta"
"react": "catalog:peer-react",
"react-dom": "catalog:peer-react"
},
"peerDependenciesMeta": {
"next": {
Expand Down
4 changes: 2 additions & 2 deletions packages/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@
},
"peerDependencies": {
"next": "^13.5.4 || ^14.0.3 || ^15.0.0",
"react": "^18 || ^19.0.0-0",
"react-dom": "^18 || ^19.0.0-0"
"react": "catalog:peer-react",
"react-dom": "catalog:peer-react"
},
"engines": {
"node": ">=18.17.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/react-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@
"typescript": "catalog:repo"
},
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18",
"react": "catalog:peer-react",
"react-dom": "catalog:peer-react",
"react-router": "^7.0.2"
},
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@
"typescript": "catalog:repo"
},
"peerDependencies": {
"react": "^18 || ^19.0.0-0",
"react-dom": "^18 || ^19.0.0-0"
"react": "catalog:peer-react",
"react-dom": "catalog:peer-react"
},
"engines": {
"node": ">=18.17.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/remix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@
"peerDependencies": {
"@remix-run/react": "^2.0.0",
"@remix-run/server-runtime": "^2.0.0",
"react": ">=18",
"react-dom": ">=18",
"react": "catalog:peer-react",
"react-dom": "catalog:peer-react",
"react-router": "^6.0.0"
},
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@
"typescript": "catalog:repo"
},
"peerDependencies": {
"react": "^18 || ^19.0.0-0",
"react-dom": "^18 || ^19.0.0-0"
"react": "catalog:peer-react",
"react-dom": "catalog:peer-react"
},
"peerDependenciesMeta": {
"react": {
Expand Down
4 changes: 2 additions & 2 deletions packages/tanstack-start/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@
"peerDependencies": {
"@tanstack/react-router": ">=1.81.9",
"@tanstack/start": ">=1.81.9",
"react": ">=18 || >=19.0.0-beta",
"react-dom": ">=18 || >=19.0.0-beta"
"react": "catalog:peer-react",
"react-dom": "catalog:peer-react"
},
"engines": {
"node": ">=18.17.0"
Expand Down
45 changes: 26 additions & 19 deletions pnpm-lock.yaml

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

5 changes: 5 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ catalogs:
'@types/react': 18.3.12
'@types/react-dom': 18.3.1

# Can be referenced through "catalog:peer-react"
peer-react:
react: ^18.0.0 || ^19.0.0 || ^19.0.0-0
react-dom: ^18.0.0 || ^19.0.0 || ^19.0.0-0

# Can be referenced through "catalog:repo"
repo:
tslib: 2.4.1
Expand Down

0 comments on commit 66ad299

Please sign in to comment.