Skip to content

Commit 93459f9

Browse files
jtoarTobbe
andauthored
chore(rsc): upgrade to react canary (#10194)
Want to see how CI reacts to upgrading to React canary. ~I may have over-upgraded (i.e. some fixtures and maybe the docs don't need to be upgraded), but let's see what happens.~ This upgrade was complicated by facebook/react#27436 which added a poisoned import to `react-server-dom-webpack/server`, meaning that if you tried to import from that entry point without the "react-server" condition, it would throw. In a much-earlier PR, Sebastian mentions there generally being two ways to do things: > Either you can have the server code prebundled using Webpack (what Next.js does in practice) or you can use an unbundled Node.js server (what the reference implementation does). See facebook/react#26172. This PR goes with the former, prebundling `react-server-dom-webpack/server` with the "react-server" condition so that we can avoid having to specify it at runtime. It's hard to tell if this the better option long-term, but since we're keen on getting rid of the worker right now, this moves us closer in that direction. The alternative solution was to move decoding the reply into the worker where the condition is specified. --------- Co-authored-by: Tobbe Lundberg <tobbe@tlundberg.com>
1 parent acbc56d commit 93459f9

File tree

34 files changed

+241
-152
lines changed

34 files changed

+241
-152
lines changed

.github/renovate.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,7 @@
6969
"enabled": false,
7070

7171
"matchPackageNames": [
72-
"@apollo/experimental-nextjs-app-support",
73-
"react",
74-
"react-dom",
75-
"react-server-dom-webpack"
72+
"@apollo/experimental-nextjs-app-support"
7673
]
7774
}
7875
]

__fixtures__/fragment-test-project/web/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"@redwoodjs/router": "7.0.0",
1717
"@redwoodjs/web": "7.0.0",
1818
"humanize-string": "2.1.0",
19-
"react": "0.0.0-experimental-e5205658f-20230913",
20-
"react-dom": "0.0.0-experimental-e5205658f-20230913"
19+
"react": "18.3.0-canary-a870b2d54-20240314",
20+
"react-dom": "18.3.0-canary-a870b2d54-20240314"
2121
},
2222
"devDependencies": {
2323
"@redwoodjs/vite": "7.0.0",

__fixtures__/test-project-rsa/web/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"@redwoodjs/forms": "8.0.0-canary.144",
1616
"@redwoodjs/router": "8.0.0-canary.144",
1717
"@redwoodjs/web": "8.0.0-canary.144",
18-
"react": "0.0.0-experimental-e5205658f-20230913",
19-
"react-dom": "0.0.0-experimental-e5205658f-20230913"
18+
"react": "18.3.0-canary-a870b2d54-20240314",
19+
"react-dom": "18.3.0-canary-a870b2d54-20240314"
2020
},
2121
"devDependencies": {
2222
"@redwoodjs/vite": "8.0.0-canary.144",

__fixtures__/test-project-rsc-external-packages-and-cells/web/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"@redwoodjs/web": "7.0.0-canary.1011",
1919
"@tobbe.dev/rsc-test": "0.0.5",
2020
"client-only": "0.0.1",
21-
"react": "0.0.0-experimental-e5205658f-20230913",
22-
"react-dom": "0.0.0-experimental-e5205658f-20230913"
21+
"react": "18.3.0-canary-a870b2d54-20240314",
22+
"react-dom": "18.3.0-canary-a870b2d54-20240314"
2323
},
2424
"devDependencies": {
2525
"@redwoodjs/vite": "7.0.0-canary.1011",

__fixtures__/test-project/web/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"@redwoodjs/router": "7.0.0",
1717
"@redwoodjs/web": "7.0.0",
1818
"humanize-string": "2.1.0",
19-
"react": "0.0.0-experimental-e5205658f-20230913",
20-
"react-dom": "0.0.0-experimental-e5205658f-20230913"
19+
"react": "18.3.0-canary-a870b2d54-20240314",
20+
"react-dom": "18.3.0-canary-a870b2d54-20240314"
2121
},
2222
"devDependencies": {
2323
"@redwoodjs/vite": "7.0.0",

packages/auth-providers/auth0/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"@babel/cli": "7.23.9",
3333
"@babel/core": "^7.22.20",
3434
"@types/react": "^18.2.55",
35-
"react": "0.0.0-experimental-e5205658f-20230913",
35+
"react": "18.3.0-canary-a870b2d54-20240314",
3636
"typescript": "5.3.3",
3737
"vitest": "1.3.1"
3838
},

packages/auth-providers/azureActiveDirectory/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"@babel/core": "^7.22.20",
3434
"@types/netlify-identity-widget": "1.9.6",
3535
"@types/react": "^18.2.55",
36-
"react": "0.0.0-experimental-e5205658f-20230913",
36+
"react": "18.3.0-canary-a870b2d54-20240314",
3737
"typescript": "5.3.3",
3838
"vitest": "1.3.1"
3939
},

packages/auth-providers/clerk/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"@clerk/clerk-react": "4.30.7",
3434
"@clerk/types": "3.60.0",
3535
"@types/react": "^18.2.55",
36-
"react": "0.0.0-experimental-e5205658f-20230913",
36+
"react": "18.3.0-canary-a870b2d54-20240314",
3737
"typescript": "5.3.3",
3838
"vitest": "1.3.1"
3939
},

packages/auth-providers/dbAuth/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@types/react": "^18.2.55",
3737
"jest": "29.7.0",
3838
"jest-environment-jsdom": "29.7.0",
39-
"react": "0.0.0-experimental-e5205658f-20230913",
39+
"react": "18.3.0-canary-a870b2d54-20240314",
4040
"typescript": "5.3.3"
4141
},
4242
"gitHead": "3905ed045508b861b495f8d5630d76c7a157d8f1"

packages/auth-providers/firebase/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"firebase": "10.7.0",
3535
"jest": "29.7.0",
3636
"jest-environment-jsdom": "29.7.0",
37-
"react": "0.0.0-experimental-e5205658f-20230913",
37+
"react": "18.3.0-canary-a870b2d54-20240314",
3838
"typescript": "5.3.3"
3939
},
4040
"peerDependencies": {

0 commit comments

Comments
 (0)