Skip to content

Commit

Permalink
feat: upgrade react to latest experimental (#113)
Browse files Browse the repository at this point in the history
Upgrade React to latest experimental version
`0.0.0-experimental-de1eaa26-20250124`
Add missing server function tests for `ReadableStream` and async
generator function
  • Loading branch information
lazarv authored Jan 25, 2025
1 parent 44033c0 commit 9ed2d6f
Show file tree
Hide file tree
Showing 12 changed files with 179 additions and 109 deletions.
20 changes: 10 additions & 10 deletions docs/src/pages/en/(pages)/framework/micro-frontends.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -148,29 +148,29 @@ export default {
...(process.env.NODE_ENV !== "production"
? {
react:
"https://esm.sh/react@0.0.0-experimental-204a551e-20240926?dev",
"https://esm.sh/react@0.0.0-experimental-de1eaa26-20250124?dev",
"react/jsx-dev-runtime":
"https://esm.sh/react@0.0.0-experimental-204a551e-20240926/jsx-dev-runtime?dev",
"https://esm.sh/react@0.0.0-experimental-de1eaa26-20250124/jsx-dev-runtime?dev",
"react-dom":
"https://esm.sh/react-dom@0.0.0-experimental-204a551e-20240926?dev",
"https://esm.sh/react-dom@0.0.0-experimental-de1eaa26-20250124?dev",
"react-dom/client":
"https://esm.sh/react-dom@0.0.0-experimental-204a551e-20240926/client?dev",
"https://esm.sh/react-dom@0.0.0-experimental-de1eaa26-20250124/client?dev",
"react-server-dom-webpack/client.browser":
"https://esm.sh/react-server-dom-webpack@0.0.0-experimental-204a551e-20240926/client.browser?dev",
"https://esm.sh/react-server-dom-webpack@0.0.0-experimental-de1eaa26-20250124/client.browser?dev",
"http://localhost:3001/": "/",
"http://localhost:3003/": "/",
}
: {
react:
"https://esm.sh/react@0.0.0-experimental-204a551e-20240926",
"https://esm.sh/react@0.0.0-experimental-de1eaa26-20250124",
"react/jsx-runtime":
"https://esm.sh/react@0.0.0-experimental-204a551e-20240926/jsx-runtime",
"https://esm.sh/react@0.0.0-experimental-de1eaa26-20250124/jsx-runtime",
"react-dom":
"https://esm.sh/react-dom@0.0.0-experimental-204a551e-20240926",
"https://esm.sh/react-dom@0.0.0-experimental-de1eaa26-20250124",
"react-dom/client":
"https://esm.sh/react-dom@0.0.0-experimental-204a551e-20240926/client",
"https://esm.sh/react-dom@0.0.0-experimental-de1eaa26-20250124/client",
"react-server-dom-webpack/client.browser":
"https://esm.sh/react-server-dom-webpack@0.0.0-experimental-204a551e-20240926/client.browser",
"https://esm.sh/react-server-dom-webpack@0.0.0-experimental-de1eaa26-20250124/client.browser",
"http://localhost:3003/client/node_modules/@lazarv/react-server/":
"/client/node_modules/@lazarv/react-server/",
}),
Expand Down
12 changes: 6 additions & 6 deletions examples/remote/react-server.development.config.mjs
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
export default {
importMap: {
imports: {
react: "https://esm.sh/react@0.0.0-experimental-204a551e-20240926?dev",
react: "https://esm.sh/react@0.0.0-experimental-de1eaa26-20250124?dev",
"react/jsx-dev-runtime":
"https://esm.sh/react@0.0.0-experimental-204a551e-20240926/jsx-dev-runtime?dev",
"https://esm.sh/react@0.0.0-experimental-de1eaa26-20250124/jsx-dev-runtime?dev",
"react/jsx-runtime":
"https://esm.sh/react@0.0.0-experimental-204a551e-20240926/jsx-runtime?dev",
"https://esm.sh/react@0.0.0-experimental-de1eaa26-20250124/jsx-runtime?dev",
"react-dom":
"https://esm.sh/react-dom@0.0.0-experimental-204a551e-20240926?dev",
"https://esm.sh/react-dom@0.0.0-experimental-de1eaa26-20250124?dev",
"react-dom/client":
"https://esm.sh/react-dom@0.0.0-experimental-204a551e-20240926/client?dev",
"https://esm.sh/react-dom@0.0.0-experimental-de1eaa26-20250124/client?dev",
"react-server-dom-webpack/client.browser":
"https://esm.sh/react-server-dom-webpack@0.0.0-experimental-204a551e-20240926/client.browser?dev",
"https://esm.sh/react-server-dom-webpack@0.0.0-experimental-de1eaa26-20250124/client.browser?dev",
"http://[::1]:3001/": "/",
"http://localhost:3003/": "/",
},
Expand Down
10 changes: 5 additions & 5 deletions examples/remote/react-server.production.config.mjs
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
export default {
importMap: {
imports: {
react: "https://esm.sh/react@0.0.0-experimental-204a551e-20240926",
react: "https://esm.sh/react@0.0.0-experimental-de1eaa26-20250124",
"react/jsx-runtime":
"https://esm.sh/react@0.0.0-experimental-204a551e-20240926/jsx-runtime",
"https://esm.sh/react@0.0.0-experimental-de1eaa26-20250124/jsx-runtime",
"react-dom":
"https://esm.sh/react-dom@0.0.0-experimental-204a551e-20240926",
"https://esm.sh/react-dom@0.0.0-experimental-de1eaa26-20250124",
"react-dom/client":
"https://esm.sh/react-dom@0.0.0-experimental-204a551e-20240926/client",
"https://esm.sh/react-dom@0.0.0-experimental-de1eaa26-20250124/client",
"react-server-dom-webpack/client.browser":
"https://esm.sh/react-server-dom-webpack@0.0.0-experimental-204a551e-20240926/client.browser",
"https://esm.sh/react-server-dom-webpack@0.0.0-experimental-de1eaa26-20250124/client.browser",
"http://localhost:3003/client/__/__/packages/react-server/":
"/client/__/__/packages/react-server/",
},
Expand Down
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,23 +67,23 @@
},
"pnpm": {
"overrides": {
"react-click-away-listener>react": "0.0.0-experimental-204a551e-20240926",
"react-click-away-listener>react-dom": "0.0.0-experimental-204a551e-20240926",
"react-router-dom>react": "0.0.0-experimental-204a551e-20240926",
"react-router-dom>react-dom": "0.0.0-experimental-204a551e-20240926",
"react-router>react": "0.0.0-experimental-204a551e-20240926",
"@tanstack/react-router>react": "0.0.0-experimental-204a551e-20240926",
"@tanstack/react-router>react-dom": "0.0.0-experimental-204a551e-20240926",
"@tanstack/react-store>react": "0.0.0-experimental-204a551e-20240926",
"@tanstack/react-store>react-dom": "0.0.0-experimental-204a551e-20240926",
"use-sync-external-store>react": "0.0.0-experimental-204a551e-20240926",
"@tanstack/router-devtools>react": "0.0.0-experimental-204a551e-20240926",
"@tanstack/router-devtools>react-dom": "0.0.0-experimental-204a551e-20240926",
"@docsearch/react>react": "0.0.0-experimental-204a551e-20240926",
"@uidotdev/usehooks>react": "0.0.0-experimental-204a551e-20240926",
"@uidotdev/usehooks>react-dom": "0.0.0-experimental-204a551e-20240926",
"@vercel/analytics>react": "0.0.0-experimental-204a551e-20240926",
"@vercel/speed-insights>react": "0.0.0-experimental-204a551e-20240926",
"react-click-away-listener>react": "0.0.0-experimental-de1eaa26-20250124",
"react-click-away-listener>react-dom": "0.0.0-experimental-de1eaa26-20250124",
"react-router-dom>react": "0.0.0-experimental-de1eaa26-20250124",
"react-router-dom>react-dom": "0.0.0-experimental-de1eaa26-20250124",
"react-router>react": "0.0.0-experimental-de1eaa26-20250124",
"@tanstack/react-router>react": "0.0.0-experimental-de1eaa26-20250124",
"@tanstack/react-router>react-dom": "0.0.0-experimental-de1eaa26-20250124",
"@tanstack/react-store>react": "0.0.0-experimental-de1eaa26-20250124",
"@tanstack/react-store>react-dom": "0.0.0-experimental-de1eaa26-20250124",
"use-sync-external-store>react": "0.0.0-experimental-de1eaa26-20250124",
"@tanstack/router-devtools>react": "0.0.0-experimental-de1eaa26-20250124",
"@tanstack/router-devtools>react-dom": "0.0.0-experimental-de1eaa26-20250124",
"@docsearch/react>react": "0.0.0-experimental-de1eaa26-20250124",
"@uidotdev/usehooks>react": "0.0.0-experimental-de1eaa26-20250124",
"@uidotdev/usehooks>react-dom": "0.0.0-experimental-de1eaa26-20250124",
"@vercel/analytics>react": "0.0.0-experimental-de1eaa26-20250124",
"@vercel/speed-insights>react": "0.0.0-experimental-de1eaa26-20250124",
"vite-plugin-svgr>vite": "6.0.0-alpha.18",
"@vitejs/plugin-react>vite": "6.0.0-alpha.18",
"@vitejs/plugin-react-swc>vite": "6.0.0-alpha.18",
Expand Down
8 changes: 4 additions & 4 deletions packages/react-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@
"parse5": "^7.1.2",
"picocolors": "^1.0.1",
"pino": "^8.14.1",
"react": "0.0.0-experimental-204a551e-20240926",
"react-dom": "0.0.0-experimental-204a551e-20240926",
"react-is": "0.0.0-experimental-204a551e-20240926",
"react": "0.0.0-experimental-de1eaa26-20250124",
"react-dom": "0.0.0-experimental-de1eaa26-20250124",
"react-is": "0.0.0-experimental-de1eaa26-20250124",
"react-property": "^2.0.2",
"react-server-dom-webpack": "0.0.0-experimental-204a551e-20240926",
"react-server-dom-webpack": "0.0.0-experimental-de1eaa26-20250124",
"remark-frontmatter": "^5.0.0",
"remark-mdx-frontmatter": "^4.0.0",
"sass": "^1.63.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-server/server/RemoteComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async function RemoteComponentLoader({
throw e;
}),
{
ssrManifest: {
serverConsumerManifest: {
moduleMap: new Proxy(
{},
{
Expand Down
2 changes: 1 addition & 1 deletion packages/react-server/server/dom-flight.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default function visit(node, context) {
? `$${children}`
: children;
}
return ["$", node.nodeName, null, props, "", "", 1];
return ["$", node.nodeName, null, props, null, null, 1];
}
}
}
2 changes: 1 addition & 1 deletion packages/react-server/server/ssr-manifest.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const ssrManifest = {
ssrManifest: {
serverConsumerManifest: {
moduleMap: new Proxy(
{},
{
Expand Down
Loading

0 comments on commit 9ed2d6f

Please sign in to comment.