Skip to content

Commit 354f5a0

Browse files
[1.x] feat: support react 19 (#2121)
* feat: support react 19 * chore: use react 19 in playground * chore: unable to build due to ts issues in older type definitions * Align React dependencies --------- Co-authored-by: Jonathan Reinink <[email protected]>
1 parent 4737a05 commit 354f5a0

File tree

3 files changed

+61
-42
lines changed

3 files changed

+61
-42
lines changed

package-lock.json

+53-34
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/react/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@
4949
"prepublishOnly": "npm run build"
5050
},
5151
"devDependencies": {
52-
"@types/react": "^16.9.1",
53-
"@types/react-dom": "^16.9.17",
52+
"@types/react": "^16.9.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
53+
"@types/react-dom": "^16.9.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
5454
"esbuild": "^0.16.13",
55-
"react": "^16.9.0 || ^17.0.0 || ^18.0.0",
55+
"react": "^16.9.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
5656
"typescript": "^4.9.4"
5757
},
5858
"peerDependencies": {
59-
"react": "^16.9.0 || ^17.0.0 || ^18.0.0"
59+
"react": "^16.9.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
6060
},
6161
"dependencies": {
6262
"@inertiajs/core": "1.3.0-beta.2",

playgrounds/react/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
},
88
"devDependencies": {
99
"@inertiajs/react": "1.3.0-beta.2",
10-
"@types/react": "^16.14.35",
11-
"@types/react-dom": "^16.9.18",
10+
"@types/react": "^19.0.0",
11+
"@types/react-dom": "^19.0.0",
1212
"@vitejs/plugin-react": "^3.0.0",
1313
"autoprefixer": "^10.4.13",
1414
"axios": "^1.6.0",
1515
"laravel-vite-plugin": "^0.7.2",
1616
"lodash": "^4.17.19",
1717
"postcss": "^8.4.31",
18-
"react": "^18.2.0",
19-
"react-dom": "^18.2.0",
18+
"react": "^19.0.0",
19+
"react-dom": "^19.0.0",
2020
"tailwindcss": "^3.2.4",
2121
"typescript": "^4.9.5",
2222
"vite": "^4.5.3"

0 commit comments

Comments
 (0)