diff --git a/apps/cloudflare-app/package.json b/apps/cloudflare-app/package.json index 0c65b9d..65ad114 100644 --- a/apps/cloudflare-app/package.json +++ b/apps/cloudflare-app/package.json @@ -19,8 +19,8 @@ "@mfng/core": "*", "@mfng/shared-app": "*", "history": "^5.3.0", - "react": "18.3.0-next-39a3b72c6-20230414", - "react-dom": "18.3.0-next-39a3b72c6-20230414" + "react": "18.3.0-next-d962f35ca-20230418", + "react-dom": "18.3.0-next-d962f35ca-20230418" }, "devDependencies": { "@cloudflare/workers-types": "^4.20230221.0", @@ -36,7 +36,7 @@ "mini-css-extract-plugin": "^2.7.5", "postcss": "^8.4.21", "postcss-loader": "^7.0.2", - "react-server-dom-webpack": "18.3.0-next-39a3b72c6-20230414", + "react-server-dom-webpack": "18.3.0-next-d962f35ca-20230418", "resolve-typescript-plugin": "^2.0.0", "swc-loader": "^0.2.3", "tailwindcss": "^3.2.7", diff --git a/apps/shared-app/package.json b/apps/shared-app/package.json index caf2eb7..2f80278 100644 --- a/apps/shared-app/package.json +++ b/apps/shared-app/package.json @@ -21,7 +21,7 @@ "clsx": "^1.2.1", "countries-list": "^2.6.1", "fuse.js": "^6.6.2", - "react": "18.3.0-next-39a3b72c6-20230414", + "react": "18.3.0-next-d962f35ca-20230418", "react-markdown": "^8.0.5", "server-only": "^0.0.1" }, diff --git a/apps/vercel-app/package.json b/apps/vercel-app/package.json index cec6caf..0a81b6e 100644 --- a/apps/vercel-app/package.json +++ b/apps/vercel-app/package.json @@ -19,8 +19,8 @@ "@mfng/shared-app": "*", "@vercel/analytics": "^0.1.11", "history": "^5.3.0", - "react": "18.3.0-next-39a3b72c6-20230414", - "react-dom": "18.3.0-next-39a3b72c6-20230414", + "react": "18.3.0-next-d962f35ca-20230418", + "react-dom": "18.3.0-next-d962f35ca-20230418", "web-vitals": "^3.3.1" }, "devDependencies": { diff --git a/package-lock.json b/package-lock.json index d8086c8..e283c63 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31,7 +31,7 @@ "jest-config": "^29.5.0", "prettier": "^2.8.7", "prettier-plugin-tailwindcss": "^0.2.4", - "react-dom": "18.3.0-next-39a3b72c6-20230414", + "react-dom": "18.3.0-next-d962f35ca-20230418", "rimraf": "^4.4.1", "turbo": "^1.8.8", "typescript": "^4.9.5" @@ -46,8 +46,8 @@ "@mfng/core": "*", "@mfng/shared-app": "*", "history": "^5.3.0", - "react": "18.3.0-next-39a3b72c6-20230414", - "react-dom": "18.3.0-next-39a3b72c6-20230414" + "react": "18.3.0-next-d962f35ca-20230418", + "react-dom": "18.3.0-next-d962f35ca-20230418" }, "devDependencies": { "@cloudflare/workers-types": "^4.20230221.0", @@ -63,7 +63,7 @@ "mini-css-extract-plugin": "^2.7.5", "postcss": "^8.4.21", "postcss-loader": "^7.0.2", - "react-server-dom-webpack": "18.3.0-next-39a3b72c6-20230414", + "react-server-dom-webpack": "18.3.0-next-d962f35ca-20230418", "resolve-typescript-plugin": "^2.0.0", "swc-loader": "^0.2.3", "tailwindcss": "^3.2.7", @@ -122,7 +122,7 @@ "clsx": "^1.2.1", "countries-list": "^2.6.1", "fuse.js": "^6.6.2", - "react": "18.3.0-next-39a3b72c6-20230414", + "react": "18.3.0-next-d962f35ca-20230418", "react-markdown": "^8.0.5", "server-only": "^0.0.1" }, @@ -146,8 +146,8 @@ "@mfng/shared-app": "*", "@vercel/analytics": "^0.1.11", "history": "^5.3.0", - "react": "18.3.0-next-39a3b72c6-20230414", - "react-dom": "18.3.0-next-39a3b72c6-20230414", + "react": "18.3.0-next-d962f35ca-20230418", + "react-dom": "18.3.0-next-d962f35ca-20230418", "web-vitals": "^3.3.1" }, "devDependencies": { @@ -16308,9 +16308,9 @@ } }, "node_modules/react": { - "version": "18.3.0-next-39a3b72c6-20230414", - "resolved": "https://registry.npmjs.org/react/-/react-18.3.0-next-39a3b72c6-20230414.tgz", - "integrity": "sha512-7lAq8yabg268nJlT6U95sG3ed6AmDcO+0SXOcKdPclItXgSklk8nRMw2vY7yx552hY+p2Odw+DusnWvqfWcNEA==", + "version": "18.3.0-next-d962f35ca-20230418", + "resolved": "https://registry.npmjs.org/react/-/react-18.3.0-next-d962f35ca-20230418.tgz", + "integrity": "sha512-oWi7eKbjk8wdGSv3rkvyWvQczq0ISdh/UBpiU9/V5ZE3Mm5tdGxpd/1Bi7ZhXR8+ogqM7pJ1jpZPicx4coQtLQ==", "dependencies": { "loose-envify": "^1.1.0" }, @@ -16319,21 +16319,21 @@ } }, "node_modules/react-dom": { - "version": "18.3.0-next-39a3b72c6-20230414", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.0-next-39a3b72c6-20230414.tgz", - "integrity": "sha512-EvYOPBV0tJ/HGunfadbEl+F1hR7P0LXdlQ9ksfDsQzta0JYc+XX8mEor9vRVhFR8TlEdRDISlSu2u16TIO+VhQ==", + "version": "18.3.0-next-d962f35ca-20230418", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.0-next-d962f35ca-20230418.tgz", + "integrity": "sha512-sTXyrLTxP6HEM6pGbJBH+K9nrulyOSjABwX/zByl4unrTJO7c51Pl4sOEl9mymR2t1u4UwHhKYR7D9ZjE+cXXA==", "dependencies": { "loose-envify": "^1.1.0", - "scheduler": "0.24.0-next-39a3b72c6-20230414" + "scheduler": "0.24.0-next-d962f35ca-20230418" }, "peerDependencies": { - "react": "18.3.0-next-39a3b72c6-20230414" + "react": "18.3.0-next-d962f35ca-20230418" } }, "node_modules/react-dom/node_modules/scheduler": { - "version": "0.24.0-next-39a3b72c6-20230414", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.24.0-next-39a3b72c6-20230414.tgz", - "integrity": "sha512-UvG14yKTH146Ygr94EBfjtpB4BJoWNgEWTeerMaB3KHDEO3yEeh8By7Aj27Gmy7u+AeZSin3zeAWO7sxnEOrEA==", + "version": "0.24.0-next-d962f35ca-20230418", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.24.0-next-d962f35ca-20230418.tgz", + "integrity": "sha512-/gDGFb0D8ItqoqBcuNp7eqzPArgPy403oFbZ/W4tEzekHfqvrX+LdCN9XdPVejDaIf9CmnSg6f5YxS2GPQIYkA==", "dependencies": { "loose-envify": "^1.1.0" } @@ -16383,9 +16383,9 @@ } }, "node_modules/react-server-dom-webpack": { - "version": "18.3.0-next-39a3b72c6-20230414", - "resolved": "https://registry.npmjs.org/react-server-dom-webpack/-/react-server-dom-webpack-18.3.0-next-39a3b72c6-20230414.tgz", - "integrity": "sha512-IxARpEsxGQhcZNYwARFSroZCCxzdb4D7H/DDogojM8CLvOOmRnnWrgdyGKJJYJeS5gIuOqYlgR5Ww7arPyGxFA==", + "version": "18.3.0-next-d962f35ca-20230418", + "resolved": "https://registry.npmjs.org/react-server-dom-webpack/-/react-server-dom-webpack-18.3.0-next-d962f35ca-20230418.tgz", + "integrity": "sha512-HSBeC6uVeykWMMKd9IZOh8Az2TeTFGc1bnObSvEUvFQOE6KOHtl6/snwm4yfxBPLP2QbqesgRVFedMvgRfK2BA==", "dev": true, "dependencies": { "acorn-loose": "^8.3.0", @@ -16396,8 +16396,8 @@ "node": ">=0.10.0" }, "peerDependencies": { - "react": "18.3.0-next-39a3b72c6-20230414", - "react-dom": "18.3.0-next-39a3b72c6-20230414", + "react": "18.3.0-next-d962f35ca-20230418", + "react-dom": "18.3.0-next-d962f35ca-20230418", "webpack": "^5.59.0" } }, @@ -20107,9 +20107,9 @@ "@types/htmlescape": "^1.1.1", "@types/react": "^18.0.28", "@types/react-dom": "^18.0.11", - "react": "18.3.0-next-39a3b72c6-20230414", - "react-dom": "18.3.0-next-39a3b72c6-20230414", - "react-server-dom-webpack": "18.3.0-next-39a3b72c6-20230414", + "react": "18.3.0-next-d962f35ca-20230418", + "react-dom": "18.3.0-next-d962f35ca-20230418", + "react-server-dom-webpack": "18.3.0-next-d962f35ca-20230418", "typescript": "^4.9.5" }, "peerDependencies": { @@ -20120,7 +20120,7 @@ }, "packages/webpack-rsc": { "name": "@mfng/webpack-rsc", - "version": "2.0.2", + "version": "2.1.0", "license": "MIT", "dependencies": { "@babel/core": "^7.21.3", @@ -20137,8 +20137,8 @@ "@types/memory-fs": "^0.3.3", "memory-fs": "^0.5.0", "prettier": "^2.8.7", - "react": "18.3.0-next-39a3b72c6-20230414", - "react-server-dom-webpack": "18.3.0-next-39a3b72c6-20230414", + "react": "18.3.0-next-d962f35ca-20230418", + "react-server-dom-webpack": "18.3.0-next-d962f35ca-20230418", "typescript": "^4.9.5", "webpack": "^5.75.0" }, diff --git a/package.json b/package.json index 6b48c63..d56c046 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "jest-config": "^29.5.0", "prettier": "^2.8.7", "prettier-plugin-tailwindcss": "^0.2.4", - "react-dom": "18.3.0-next-39a3b72c6-20230414", + "react-dom": "18.3.0-next-d962f35ca-20230418", "rimraf": "^4.4.1", "turbo": "^1.8.8", "typescript": "^4.9.5" diff --git a/packages/core/package.json b/packages/core/package.json index e1dc785..8f8d240 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -34,9 +34,9 @@ "@types/htmlescape": "^1.1.1", "@types/react": "^18.0.28", "@types/react-dom": "^18.0.11", - "react": "18.3.0-next-39a3b72c6-20230414", - "react-dom": "18.3.0-next-39a3b72c6-20230414", - "react-server-dom-webpack": "18.3.0-next-39a3b72c6-20230414", + "react": "18.3.0-next-d962f35ca-20230418", + "react-dom": "18.3.0-next-d962f35ca-20230418", + "react-server-dom-webpack": "18.3.0-next-d962f35ca-20230418", "typescript": "^4.9.5" }, "peerDependencies": { diff --git a/packages/webpack-rsc/package.json b/packages/webpack-rsc/package.json index e1536b9..ad12d59 100644 --- a/packages/webpack-rsc/package.json +++ b/packages/webpack-rsc/package.json @@ -35,8 +35,8 @@ "@types/memory-fs": "^0.3.3", "memory-fs": "^0.5.0", "prettier": "^2.8.7", - "react": "18.3.0-next-39a3b72c6-20230414", - "react-server-dom-webpack": "18.3.0-next-39a3b72c6-20230414", + "react": "18.3.0-next-d962f35ca-20230418", + "react-server-dom-webpack": "18.3.0-next-d962f35ca-20230418", "typescript": "^4.9.5", "webpack": "^5.75.0" }, diff --git a/types/react-server-dom-webpack-client.browser.d.ts b/types/react-server-dom-webpack-client.browser.d.ts index 572799a..3992e43 100644 --- a/types/react-server-dom-webpack-client.browser.d.ts +++ b/types/react-server-dom-webpack-client.browser.d.ts @@ -28,4 +28,9 @@ declare module 'react-server-dom-webpack/client.browser' { export function encodeReply( value: ReactServerValue, ): Promise; + + export function createServerReference( + id: string, + callServer: CallServerCallback, + ): (...args: unknown[]) => Promise; }