Skip to content

Commit 6381e29

Browse files
authored
[core] Bump React to 19 (2.0) (#44672)
1 parent 7594e39 commit 6381e29

File tree

36 files changed

+881
-980
lines changed

36 files changed

+881
-980
lines changed

apps/pigment-css-next-app/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,24 @@
99
"clean": "rimraf .next"
1010
},
1111
"dependencies": {
12-
"@mui/material-pigment-css": "workspace:^",
13-
"@mui/utils": "workspace:^",
12+
"@emotion/cache": "latest",
1413
"@mui/base": "workspace:^",
1514
"@mui/icons-material": "workspace:^",
1615
"@mui/lab": "workspace:^",
1716
"@mui/material": "workspace:^",
1817
"@mui/material-nextjs": "workspace:^",
18+
"@mui/material-pigment-css": "workspace:^",
1919
"@mui/system": "workspace:^",
20-
"@emotion/cache": "latest",
20+
"@mui/utils": "workspace:^",
2121
"next": "latest",
22-
"react": "^18.3.1",
23-
"react-dom": "^18.3.1"
22+
"react": "^19.0.0",
23+
"react-dom": "^19.0.0"
2424
},
2525
"devDependencies": {
2626
"@pigment-css/nextjs-plugin": "0.0.28",
2727
"@types/node": "^20.17.9",
28-
"@types/react": "^18.3.12",
29-
"@types/react-dom": "^18.3.1",
28+
"@types/react": "^19.0.0",
29+
"@types/react-dom": "^19.0.0",
3030
"eslint": "^8.57.1",
3131
"typescript": "^5.7.2"
3232
},

apps/pigment-css-vite-app/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"@mui/utils": "workspace:^",
1919
"clsx": "^2.1.1",
2020
"playwright": "^1.48.2",
21-
"react": "^18.3.1",
22-
"react-dom": "^18.3.1",
21+
"react": "^19.0.0",
22+
"react-dom": "^19.0.0",
2323
"react-error-boundary": "^4.1.2",
2424
"react-router-dom": "^6.28.0",
2525
"webfontloader": "^1.6.28"
@@ -28,8 +28,8 @@
2828
"@babel/preset-react": "^7.25.9",
2929
"@babel/preset-typescript": "^7.26.0",
3030
"@pigment-css/vite-plugin": "0.0.28",
31-
"@types/react": "^18.3.12",
32-
"@types/react-dom": "^18.3.1",
31+
"@types/react": "^19.0.0",
32+
"@types/react-dom": "^19.0.0",
3333
"@types/webfontloader": "^1.6.38",
3434
"@vitejs/plugin-react": "^4.3.4",
3535
"postcss": "^8.4.49",

benchmark/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
"jss": "^10.10.0",
2828
"playwright": "^1.48.2",
2929
"prop-types": "^15.8.1",
30-
"react": "^18.3.1",
31-
"react-dom": "^18.3.1",
32-
"react-is": "^18.3.1",
30+
"react": "^19.0.0",
31+
"react-dom": "^19.0.0",
32+
"react-is": "^19.0.0",
3333
"react-jss": "^10.10.0",
3434
"react-redux": "^9.1.2",
3535
"redux": "^5.0.1",

docs/data/base/getting-started/quickstart/quickstart.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ Please note that [react](https://www.npmjs.com/package/react) and [react-dom](ht
3434

3535
```json
3636
"peerDependencies": {
37-
"react": "^17.0.0 || ^18.0.0",
38-
"react-dom": "^17.0.0 || ^18.0.0"
37+
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
38+
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
3939
},
4040
```
4141

docs/data/joy/getting-started/installation/installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ Please note that [react](https://www.npmjs.com/package/react) and [react-dom](ht
3030

3131
```json
3232
"peerDependencies": {
33-
"react": "^17.0.0 || ^18.0.0",
34-
"react-dom": "^17.0.0 || ^18.0.0"
33+
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
34+
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
3535
},
3636
```
3737

docs/data/material/getting-started/installation/installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ Please note that [react](https://www.npmjs.com/package/react) and [react-dom](ht
3232

3333
```json
3434
"peerDependencies": {
35-
"react": "^17.0.0 || ^18.0.0",
36-
"react-dom": "^17.0.0 || ^18.0.0"
35+
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
36+
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
3737
},
3838
```
3939

docs/data/system/getting-started/installation/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Please note that [react](https://www.npmjs.com/package/react) is a peer dependen
3030

3131
```json
3232
"peerDependencies": {
33-
"react": "^17.0.0 || ^18.0.0"
33+
"react": "^17.0.0 || ^18.0.0 || ^19.0.0"
3434
},
3535
```
3636

docs/nextConfigDocsInfra.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function withDocsInfra(nextConfig) {
7777
experimental: {
7878
scrollRestoration: true,
7979
esmExternals: false,
80-
workerThreads: true,
80+
workerThreads: false,
8181
cpus: 3,
8282
...nextConfig.experimental,
8383
},

docs/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,19 @@
8282
"lz-string": "^1.5.0",
8383
"markdown-to-jsx": "^7.7.0",
8484
"material-ui-popup-state": "^5.3.1",
85-
"next": "^14.2.18",
85+
"next": "^15.0.4",
8686
"notistack": "3.0.1",
8787
"nprogress": "^0.2.0",
8888
"postcss": "^8.4.49",
8989
"postcss-import": "^16.1.0",
9090
"prop-types": "^15.8.1",
91-
"react": "^18.3.1",
92-
"react-dom": "^18.3.1",
91+
"react": "^19.0.0",
92+
"react-dom": "^19.0.0",
9393
"react-draggable": "^4.4.6",
9494
"react-final-form": "^6.5.9",
9595
"react-imask": "^7.6.1",
9696
"react-intersection-observer": "^9.13.1",
97-
"react-is": "^18.3.1",
97+
"react-is": "^19.0.0",
9898
"react-number-format": "^5.4.2",
9999
"react-router": "^7.0.1",
100100
"react-runner": "^1.0.5",
@@ -126,8 +126,8 @@
126126
"@types/json2mq": "^0.2.2",
127127
"@types/node": "^20.17.9",
128128
"@types/prop-types": "^15.7.13",
129-
"@types/react": "^18.3.12",
130-
"@types/react-dom": "^18.3.1",
129+
"@types/react": "^19.0.0",
130+
"@types/react-dom": "^19.0.0",
131131
"@types/react-swipeable-views": "^0.13.5",
132132
"@types/react-transition-group": "^4.4.11",
133133
"@types/react-window": "^1.8.8",

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
"@types/lodash": "^4.17.13",
133133
"@types/mocha": "^10.0.10",
134134
"@types/node": "^20.17.9",
135-
"@types/react": "^18.3.12",
135+
"@types/react": "^19.0.0",
136136
"@types/yargs": "^17.0.33",
137137
"@typescript-eslint/eslint-plugin": "^7.18.0",
138138
"@typescript-eslint/parser": "^7.18.0",
@@ -217,8 +217,6 @@
217217
"@definitelytyped/typescript-versions": "^0.1.6",
218218
"@definitelytyped/utils": "^0.1.8",
219219
"@types/node": "^20.17.9",
220-
"@types/react": "^18.3.12",
221-
"@types/react-dom": "18.3.1",
222220
"cross-fetch": "^4.0.0",
223221
"@pigment-css/react": "0.0.28",
224222
"@pigment-css/unplugin": "0.0.28",

0 commit comments

Comments
 (0)