Skip to content

Commit 6828e72

Browse files
committed
refactor: upgrade to react 19
Let's give it a try.
1 parent 1f3e8a6 commit 6828e72

File tree

21 files changed

+1197
-1221
lines changed

21 files changed

+1197
-1221
lines changed

apps/builder/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@
9999
"nanostores": "^0.11.3",
100100
"picocolors": "^1.1.0",
101101
"pretty-bytes": "^6.1.1",
102-
"react": "18.3.0-canary-14898b6a9-20240318",
102+
"react": "19.0.0",
103103
"react-colorful": "^5.6.1",
104-
"react-dom": "18.3.0-canary-14898b6a9-20240318",
104+
"react-dom": "19.0.0",
105105
"react-error-boundary": "^4.1.2",
106106
"react-script-hook": "^1.7.2",
107107
"remix-auth": "^3.7.0",
@@ -126,12 +126,12 @@
126126
"@remix-run/dev": "^2.15.0",
127127
"@types/debug": "^4.1.12",
128128
"@types/dom-navigation": "^1.0.4",
129-
"@types/react": "^18.2.70",
130-
"@types/react-dom": "^18.2.25",
129+
"@types/react": "^19.0.1",
130+
"@types/react-dom": "^19.0.2",
131131
"@webstudio-is/tsconfig": "workspace:*",
132132
"html-tags": "^4.0.0",
133133
"react-router-dom": "^6.28.0",
134-
"react-test-renderer": "18.3.0-canary-14898b6a9-20240318",
134+
"react-test-renderer": "19.0.0",
135135
"type-fest": "^4.28.0",
136136
"typescript": "5.7.2",
137137
"vite": "^5.4.11",

fixtures/ssg-netlify-by-project-id/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"private": true,
2323
"sideEffects": false,
2424
"devDependencies": {
25-
"@types/react": "^18.2.70",
26-
"@types/react-dom": "^18.2.25",
25+
"@types/react": "^19.0.1",
26+
"@types/react-dom": "^19.0.2",
2727
"@vitejs/plugin-react": "^4.3.4",
2828
"prettier": "3.4.2",
2929
"typescript": "5.7.2",
@@ -37,8 +37,8 @@
3737
"@webstudio-is/sdk-components-react": "workspace:*",
3838
"@webstudio-is/sdk-components-react-radix": "workspace:*",
3939
"@webstudio-is/sdk-components-react-remix": "workspace:*",
40-
"react": "18.3.0-canary-14898b6a9-20240318",
41-
"react-dom": "18.3.0-canary-14898b6a9-20240318",
40+
"react": "^19.0.0",
41+
"react-dom": "^19.0.0",
4242
"vike": "^0.4.206"
4343
}
4444
}

fixtures/ssg/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"private": true,
2323
"sideEffects": false,
2424
"devDependencies": {
25-
"@types/react": "^18.2.70",
26-
"@types/react-dom": "^18.2.25",
25+
"@types/react": "^19.0.1",
26+
"@types/react-dom": "^19.0.2",
2727
"@vitejs/plugin-react": "^4.3.4",
2828
"prettier": "3.4.2",
2929
"typescript": "5.7.2",
@@ -37,8 +37,8 @@
3737
"@webstudio-is/sdk-components-react": "workspace:*",
3838
"@webstudio-is/sdk-components-react-radix": "workspace:*",
3939
"@webstudio-is/sdk-components-react-remix": "workspace:*",
40-
"react": "18.3.0-canary-14898b6a9-20240318",
41-
"react-dom": "18.3.0-canary-14898b6a9-20240318",
40+
"react": "^19.0.0",
41+
"react-dom": "^19.0.0",
4242
"vike": "^0.4.206"
4343
}
4444
}

fixtures/webstudio-cloudflare-template/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@
3939
"@webstudio-is/sdk-components-react-radix": "workspace:*",
4040
"@webstudio-is/sdk-components-react-remix": "workspace:*",
4141
"isbot": "^5.1.17",
42-
"react": "18.3.0-canary-14898b6a9-20240318",
43-
"react-dom": "18.3.0-canary-14898b6a9-20240318",
42+
"react": "^19.0.0",
43+
"react-dom": "^19.0.0",
4444
"webstudio": "workspace:*",
4545
"worktop": "0.8.0-next.18",
4646
"zod": "^3.22.4"
4747
},
4848
"devDependencies": {
4949
"@cloudflare/workers-types": "^4.20240620.0",
5050
"@remix-run/dev": "2.15.0",
51-
"@types/react": "^18.2.70",
52-
"@types/react-dom": "^18.2.25",
51+
"@types/react": "^19.0.1",
52+
"@types/react-dom": "^19.0.2",
5353
"typescript": "5.7.2",
5454
"vite": "^5.4.11",
5555
"wrangler": "^3.63.2"

fixtures/webstudio-custom-template/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
"@webstudio-is/sdk-components-react-radix": "workspace:*",
2323
"@webstudio-is/sdk-components-react-remix": "workspace:*",
2424
"isbot": "^5.1.17",
25-
"react": "18.3.0-canary-14898b6a9-20240318",
26-
"react-dom": "18.3.0-canary-14898b6a9-20240318",
25+
"react": "^19.0.0",
26+
"react-dom": "^19.0.0",
2727
"web-vitals": "^3.5.2"
2828
},
2929
"devDependencies": {
3030
"@remix-run/dev": "2.15.0",
31-
"@types/react": "^18.2.70",
32-
"@types/react-dom": "^18.2.25",
31+
"@types/react": "^19.0.1",
32+
"@types/react-dom": "^19.0.2",
3333
"typescript": "5.7.2",
3434
"vite": "^5.4.11",
3535
"webstudio": "workspace:*"

fixtures/webstudio-remix-netlify-edge-functions/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323
"@webstudio-is/sdk-components-react-radix": "workspace:*",
2424
"@webstudio-is/sdk-components-react-remix": "workspace:*",
2525
"isbot": "^5.1.17",
26-
"react": "18.3.0-canary-14898b6a9-20240318",
27-
"react-dom": "18.3.0-canary-14898b6a9-20240318"
26+
"react": "^19.0.0",
27+
"react-dom": "^19.0.0"
2828
},
2929
"private": true,
3030
"sideEffects": false,
3131
"devDependencies": {
3232
"@remix-run/dev": "2.15.0",
33-
"@types/react": "^18.2.70",
34-
"@types/react-dom": "^18.2.25",
33+
"@types/react": "^19.0.1",
34+
"@types/react-dom": "^19.0.2",
3535
"typescript": "5.7.2",
3636
"vite": "^5.4.11",
3737
"webstudio": "workspace:*"

fixtures/webstudio-remix-netlify-functions/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@
2222
"@webstudio-is/sdk-components-react-radix": "workspace:*",
2323
"@webstudio-is/sdk-components-react-remix": "workspace:*",
2424
"isbot": "^5.1.17",
25-
"react": "18.3.0-canary-14898b6a9-20240318",
26-
"react-dom": "18.3.0-canary-14898b6a9-20240318"
25+
"react": "^19.0.0",
26+
"react-dom": "^19.0.0"
2727
},
2828
"private": true,
2929
"sideEffects": false,
3030
"devDependencies": {
3131
"@remix-run/dev": "2.15.0",
32-
"@types/react": "^18.2.70",
33-
"@types/react-dom": "^18.2.25",
32+
"@types/react": "^19.0.1",
33+
"@types/react-dom": "^19.0.2",
3434
"typescript": "5.7.2",
3535
"vite": "^5.4.11",
3636
"webstudio": "workspace:*"

fixtures/webstudio-remix-vercel/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
"@webstudio-is/sdk-components-react-radix": "workspace:*",
2323
"@webstudio-is/sdk-components-react-remix": "workspace:*",
2424
"isbot": "^5.1.17",
25-
"react": "18.3.0-canary-14898b6a9-20240318",
26-
"react-dom": "18.3.0-canary-14898b6a9-20240318"
25+
"react": "^19.0.0",
26+
"react-dom": "^19.0.0"
2727
},
2828
"devDependencies": {
2929
"@remix-run/dev": "2.15.0",
30-
"@types/react": "^18.2.70",
31-
"@types/react-dom": "^18.2.25",
30+
"@types/react": "^19.0.1",
31+
"@types/react-dom": "^19.0.2",
3232
"typescript": "5.7.2",
3333
"vite": "^5.4.11",
3434
"webstudio": "workspace:*"

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@
3838
"@types/css-tree": "^2.3.1",
3939
"@types/eslint__js": "^8.42.3",
4040
"@types/node": "^22.9.3",
41-
"@types/react": "^18.2.70",
41+
"@types/react": "^19.0.1",
4242
"esbuild": "^0.24.0",
4343
"eslint": "^9.16.0",
44-
"eslint-plugin-react-hooks": "^5.0.0",
44+
"eslint-plugin-react-hooks": "^5.1.0",
4545
"eslint-plugin-unicorn": "^56.0.1",
4646
"nano-staged": "^0.8.0",
4747
"prettier": "3.4.2",
48-
"react": "18.3.0-canary-14898b6a9-20240318",
49-
"react-dom": "18.3.0-canary-14898b6a9-20240318",
48+
"react": "19.0.0",
49+
"react-dom": "19.0.0",
5050
"simple-git-hooks": "^2.11.1",
5151
"storybook": "^8.4.6",
5252
"tsx": "^4.19.2",
@@ -78,10 +78,10 @@
7878
},
7979
"pnpm": {
8080
"overrides": {
81-
"@types/react": "^18.2.70",
82-
"@types/react-dom": "^18.2.25",
83-
"react": "18.3.0-canary-14898b6a9-20240318",
84-
"react-dom": "18.3.0-canary-14898b6a9-20240318"
81+
"@types/react": "19.0.1",
82+
"@types/react-dom": "19.0.2",
83+
"react": "19.0.0",
84+
"react-dom": "19.0.0"
8585
},
8686
"patchedDependencies": {
8787
"@stitches/[email protected]": "patches/@[email protected]",

packages/cli/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@
6060
"@remix-run/react": "^2.15.0",
6161
"@remix-run/server-runtime": "^2.15.0",
6262
"@types/node": "^22.9.3",
63-
"@types/react": "^18.2.70",
64-
"@types/react-dom": "^18.2.25",
63+
"@types/react": "^19.0.1",
64+
"@types/react-dom": "^19.0.2",
6565
"@types/yargs": "^17.0.33",
6666
"@vitejs/plugin-react": "^4.3.4",
6767
"@webstudio-is/tsconfig": "workspace:*",
6868
"prettier": "3.4.2",
69-
"react": "18.3.0-canary-14898b6a9-20240318",
70-
"react-dom": "18.3.0-canary-14898b6a9-20240318",
69+
"react": "19.0.0",
70+
"react-dom": "19.0.0",
7171
"ts-expect": "^1.3.0",
7272
"vike": "^0.4.206",
7373
"vite": "^5.4.11",

0 commit comments

Comments
 (0)