Skip to content

Commit

Permalink
feat(react): upgrade react from 18 to 19 (#2000)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Philibeaux <[email protected]>
  • Loading branch information
philibea authored Dec 16, 2024
1 parent de94e6a commit 35d9932
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@
"pnpm": {
"peerDependencyRules": {
"allowedVersions": {
"react": "18",
"react-dom": "18",
"@types/react": "18"
"react": "18 || 19",
"react-dom": "18 || 19",
"@types/react": "18 || 19"
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions packages/cookie-consent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@scaleway/use-segment": "workspace:*"
},
"peerDependencies": {
"react": "18.x || 18",
"@scaleway/use-segment": "^1.1.6"
"react": "18.x || 19.x",
"@scaleway/use-segment": "1.x"
}
}
2 changes: 1 addition & 1 deletion packages/use-dataloader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@
"react": "18.3.1"
},
"peerDependencies": {
"react": "18.x"
"react": "18.x || 19.x"
}
}
2 changes: 1 addition & 1 deletion packages/use-growthbook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@
"react": "18.3.1"
},
"peerDependencies": {
"react": "18.x"
"react": "18.x || 19.x"
}
}
4 changes: 2 additions & 2 deletions packages/use-i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
},
"peerDependencies": {
"date-fns": "3.x || 4.x",
"react": "18.x || 18",
"react-dom": "18.x || 18"
"react": "18.x || 19.x",
"react-dom": "18.x || 19.x"
}
}
2 changes: 1 addition & 1 deletion packages/use-media/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"media queries"
],
"peerDependencies": {
"react": "18.x"
"react": "18.x || 19.x"
},
"devDependencies": {
"react": "18.3.1"
Expand Down
4 changes: 2 additions & 2 deletions packages/use-query-params/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
"query-string": "9.1.1"
},
"peerDependencies": {
"react": "18.x || 18",
"react-dom": "18.x || 18",
"react": "18.x || 19.x",
"react-dom": "18.x || 19.x",
"react-router-dom": "^6.0.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/use-segment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@
"react": "18.3.1"
},
"peerDependencies": {
"react": "18.x || 18"
"react": "18.x || 19.x"
}
}
2 changes: 1 addition & 1 deletion packages/use-storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"access": "public"
},
"scripts": {
"prebuild": "shx rm -rf dist",
"prebuild": "shx rm -rf dist",
"typecheck": "tsc --noEmit",
"type:generate": "tsc --declaration -p tsconfig.build.json",
"build": "vite build --config vite.config.ts && pnpm run type:generate",
Expand Down
4 changes: 2 additions & 2 deletions packages_deprecated/jest-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@jest/globals": "29.7.0"
},
"devDependencies": {
"react": "18.2.0",
"react-dom": "18.2.0"
"react": "18.3.1",
"react-dom": "18.3.1"
}
}
2 changes: 1 addition & 1 deletion packages_deprecated/use-gtm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@
"gtm"
],
"peerDependencies": {
"react": "18.x || 18"
"react": "18.x || 19.x"
}
}

0 comments on commit 35d9932

Please sign in to comment.