From 10e3d0b7ffeecc185fafe8455f114de2f69b0655 Mon Sep 17 00:00:00 2001 From: sebmarkbage Date: Wed, 1 Feb 2023 04:41:25 +0000 Subject: [PATCH] Move the Webpack manifest config to one level deeper (#26083) This frees up the Webpack manifest to contain a `serverManifest` part too. @shuding DiffTrain build for [8c234c0de9be40dcb95f33fcefb57aed845d324b](https://github.com/facebook/react/commit/8c234c0de9be40dcb95f33fcefb57aed845d324b) [View git log for this commit](https://github.com/facebook/react/commits/8c234c0de9be40dcb95f33fcefb57aed845d324b) --- compiled/facebook-www/REVISION | 2 +- compiled/facebook-www/REVISION_TRANSFORMS | 2 +- compiled/facebook-www/React-dev.classic.js | 2 +- compiled/facebook-www/React-dev.modern.js | 2 +- compiled/facebook-www/React-prod.classic.js | 2 +- compiled/facebook-www/React-prod.modern.js | 2 +- .../facebook-www/React-profiling.classic.js | 2 +- .../facebook-www/React-profiling.modern.js | 2 +- compiled/facebook-www/ReactART-dev.classic.js | 2 +- compiled/facebook-www/ReactART-dev.modern.js | 2 +- .../facebook-www/ReactART-prod.classic.js | 4 +- compiled/facebook-www/ReactART-prod.modern.js | 4 +- compiled/facebook-www/ReactDOM-dev.classic.js | 2 +- compiled/facebook-www/ReactDOM-dev.modern.js | 2 +- .../facebook-www/ReactDOM-prod.classic.js | 6 +- compiled/facebook-www/ReactDOM-prod.modern.js | 6 +- .../ReactDOM-profiling.classic.js | 6 +- .../facebook-www/ReactDOM-profiling.modern.js | 6 +- .../ReactDOMServer-dev.classic.js | 2 +- .../facebook-www/ReactDOMServer-dev.modern.js | 2 +- .../ReactDOMServer-prod.classic.js | 2 +- .../ReactDOMServer-prod.modern.js | 2 +- .../ReactDOMTesting-dev.classic.js | 2 +- .../ReactDOMTesting-dev.modern.js | 2 +- .../ReactDOMTesting-prod.classic.js | 6 +- .../ReactDOMTesting-prod.modern.js | 6 +- .../ReactFlightDOMRelayClient-dev.classic.js | 96 ++++++++------- .../ReactFlightDOMRelayClient-dev.modern.js | 96 ++++++++------- .../ReactFlightDOMRelayClient-prod.classic.js | 111 ++++++++++-------- .../ReactFlightDOMRelayClient-prod.modern.js | 111 ++++++++++-------- .../ReactFlightDOMRelayServer-dev.classic.js | 31 +++-- .../ReactFlightDOMRelayServer-dev.modern.js | 31 +++-- .../ReactFlightDOMRelayServer-prod.classic.js | 21 ++-- .../ReactFlightDOMRelayServer-prod.modern.js | 21 ++-- .../ReactTestRenderer-dev.classic.js | 2 +- .../ReactTestRenderer-dev.modern.js | 2 +- 36 files changed, 338 insertions(+), 264 deletions(-) diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index 12c44edddd307..c608d4661e731 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -8b9ac8175fb3052ba5c82f99003bb8ff667e1e68 +8c234c0de9be40dcb95f33fcefb57aed845d324b diff --git a/compiled/facebook-www/REVISION_TRANSFORMS b/compiled/facebook-www/REVISION_TRANSFORMS index 12c44edddd307..c608d4661e731 100644 --- a/compiled/facebook-www/REVISION_TRANSFORMS +++ b/compiled/facebook-www/REVISION_TRANSFORMS @@ -1 +1 @@ -8b9ac8175fb3052ba5c82f99003bb8ff667e1e68 +8c234c0de9be40dcb95f33fcefb57aed845d324b diff --git a/compiled/facebook-www/React-dev.classic.js b/compiled/facebook-www/React-dev.classic.js index d363148fe707a..b980910282906 100644 --- a/compiled/facebook-www/React-dev.classic.js +++ b/compiled/facebook-www/React-dev.classic.js @@ -27,7 +27,7 @@ if ( } "use strict"; -var ReactVersion = "18.3.0-www-classic-8b9ac8175-20230131"; +var ReactVersion = "18.3.0-www-classic-8c234c0de-20230131"; // ATTENTION // When adding new symbols to this file, diff --git a/compiled/facebook-www/React-dev.modern.js b/compiled/facebook-www/React-dev.modern.js index 717a0293f0e63..5b0762a242fc2 100644 --- a/compiled/facebook-www/React-dev.modern.js +++ b/compiled/facebook-www/React-dev.modern.js @@ -27,7 +27,7 @@ if ( } "use strict"; -var ReactVersion = "18.3.0-www-modern-8b9ac8175-20230131"; +var ReactVersion = "18.3.0-www-modern-8c234c0de-20230131"; // ATTENTION // When adding new symbols to this file, diff --git a/compiled/facebook-www/React-prod.classic.js b/compiled/facebook-www/React-prod.classic.js index ab75501e8ea61..fceffae029863 100644 --- a/compiled/facebook-www/React-prod.classic.js +++ b/compiled/facebook-www/React-prod.classic.js @@ -646,4 +646,4 @@ exports.useSyncExternalStore = function ( ); }; exports.useTransition = useTransition; -exports.version = "18.3.0-www-classic-8b9ac8175-20230131"; +exports.version = "18.3.0-www-classic-8c234c0de-20230131"; diff --git a/compiled/facebook-www/React-prod.modern.js b/compiled/facebook-www/React-prod.modern.js index 7446f4e198a2f..5141ce8fbd89a 100644 --- a/compiled/facebook-www/React-prod.modern.js +++ b/compiled/facebook-www/React-prod.modern.js @@ -638,4 +638,4 @@ exports.useSyncExternalStore = function ( ); }; exports.useTransition = useTransition; -exports.version = "18.3.0-www-modern-8b9ac8175-20230131"; +exports.version = "18.3.0-www-modern-8c234c0de-20230131"; diff --git a/compiled/facebook-www/React-profiling.classic.js b/compiled/facebook-www/React-profiling.classic.js index f2cfd9ef9d7f1..3b30790f8b058 100644 --- a/compiled/facebook-www/React-profiling.classic.js +++ b/compiled/facebook-www/React-profiling.classic.js @@ -657,7 +657,7 @@ exports.useSyncExternalStore = function ( ); }; exports.useTransition = useTransition; -exports.version = "18.3.0-www-classic-8b9ac8175-20230131"; +exports.version = "18.3.0-www-classic-8c234c0de-20230131"; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( diff --git a/compiled/facebook-www/React-profiling.modern.js b/compiled/facebook-www/React-profiling.modern.js index e8ec3925c3fe8..97a2556b0a6cd 100644 --- a/compiled/facebook-www/React-profiling.modern.js +++ b/compiled/facebook-www/React-profiling.modern.js @@ -649,7 +649,7 @@ exports.useSyncExternalStore = function ( ); }; exports.useTransition = useTransition; -exports.version = "18.3.0-www-modern-8b9ac8175-20230131"; +exports.version = "18.3.0-www-modern-8c234c0de-20230131"; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( diff --git a/compiled/facebook-www/ReactART-dev.classic.js b/compiled/facebook-www/ReactART-dev.classic.js index 3444bb32d80d7..f41389fc16e79 100644 --- a/compiled/facebook-www/ReactART-dev.classic.js +++ b/compiled/facebook-www/ReactART-dev.classic.js @@ -69,7 +69,7 @@ function _assertThisInitialized(self) { return self; } -var ReactVersion = "18.3.0-www-classic-8b9ac8175-20230131"; +var ReactVersion = "18.3.0-www-classic-8c234c0de-20230131"; var LegacyRoot = 0; var ConcurrentRoot = 1; diff --git a/compiled/facebook-www/ReactART-dev.modern.js b/compiled/facebook-www/ReactART-dev.modern.js index 1285dd7affefa..c00861fc2429e 100644 --- a/compiled/facebook-www/ReactART-dev.modern.js +++ b/compiled/facebook-www/ReactART-dev.modern.js @@ -69,7 +69,7 @@ function _assertThisInitialized(self) { return self; } -var ReactVersion = "18.3.0-www-modern-8b9ac8175-20230131"; +var ReactVersion = "18.3.0-www-modern-8c234c0de-20230131"; var LegacyRoot = 0; var ConcurrentRoot = 1; diff --git a/compiled/facebook-www/ReactART-prod.classic.js b/compiled/facebook-www/ReactART-prod.classic.js index 4fc60c710e0ab..00e879b8334a2 100644 --- a/compiled/facebook-www/ReactART-prod.classic.js +++ b/compiled/facebook-www/ReactART-prod.classic.js @@ -9846,7 +9846,7 @@ var slice = Array.prototype.slice, return null; }, bundleType: 0, - version: "18.3.0-www-classic-8b9ac8175-20230131", + version: "18.3.0-www-classic-8c234c0de-20230131", rendererPackageName: "react-art" }; var internals$jscomp$inline_1318 = { @@ -9877,7 +9877,7 @@ var internals$jscomp$inline_1318 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-8b9ac8175-20230131" + reconcilerVersion: "18.3.0-next-8c234c0de-20230131" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1319 = __REACT_DEVTOOLS_GLOBAL_HOOK__; diff --git a/compiled/facebook-www/ReactART-prod.modern.js b/compiled/facebook-www/ReactART-prod.modern.js index 782f9b9b92039..9193529bf61e1 100644 --- a/compiled/facebook-www/ReactART-prod.modern.js +++ b/compiled/facebook-www/ReactART-prod.modern.js @@ -9511,7 +9511,7 @@ var slice = Array.prototype.slice, return null; }, bundleType: 0, - version: "18.3.0-www-modern-8b9ac8175-20230131", + version: "18.3.0-www-modern-8c234c0de-20230131", rendererPackageName: "react-art" }; var internals$jscomp$inline_1309 = { @@ -9542,7 +9542,7 @@ var internals$jscomp$inline_1309 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-8b9ac8175-20230131" + reconcilerVersion: "18.3.0-next-8c234c0de-20230131" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1310 = __REACT_DEVTOOLS_GLOBAL_HOOK__; diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index 451b2638de499..11258f9d67af2 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -42689,7 +42689,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-classic-8b9ac8175-20230131"; +var ReactVersion = "18.3.0-www-classic-8c234c0de-20230131"; function createPortal( children, diff --git a/compiled/facebook-www/ReactDOM-dev.modern.js b/compiled/facebook-www/ReactDOM-dev.modern.js index bf2cfb12f79a8..b6d22c1b8e7b4 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -42413,7 +42413,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-modern-8b9ac8175-20230131"; +var ReactVersion = "18.3.0-www-modern-8c234c0de-20230131"; function createPortal( children, diff --git a/compiled/facebook-www/ReactDOM-prod.classic.js b/compiled/facebook-www/ReactDOM-prod.classic.js index dc299250d7c2f..871268091804b 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -15577,7 +15577,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1750 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-8b9ac8175-20230131", + version: "18.3.0-www-classic-8c234c0de-20230131", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2134 = { @@ -15607,7 +15607,7 @@ var internals$jscomp$inline_2134 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-8b9ac8175-20230131" + reconcilerVersion: "18.3.0-next-8c234c0de-20230131" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2135 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -15855,4 +15855,4 @@ exports.unstable_renderSubtreeIntoContainer = function ( ); }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-next-8b9ac8175-20230131"; +exports.version = "18.3.0-next-8c234c0de-20230131"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index 7d2315749300a..99f3e668f6161 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -15137,7 +15137,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1718 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-8b9ac8175-20230131", + version: "18.3.0-www-modern-8c234c0de-20230131", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2109 = { @@ -15168,7 +15168,7 @@ var internals$jscomp$inline_2109 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-8b9ac8175-20230131" + reconcilerVersion: "18.3.0-next-8c234c0de-20230131" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2110 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -15356,4 +15356,4 @@ exports.unstable_flushControlled = function (fn) { } }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-next-8b9ac8175-20230131"; +exports.version = "18.3.0-next-8c234c0de-20230131"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index 795f75cd975ec..95e179eeda849 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -16347,7 +16347,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1824 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-8b9ac8175-20230131", + version: "18.3.0-www-classic-8c234c0de-20230131", rendererPackageName: "react-dom" }; (function (internals) { @@ -16391,7 +16391,7 @@ var devToolsConfig$jscomp$inline_1824 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-8b9ac8175-20230131" + reconcilerVersion: "18.3.0-next-8c234c0de-20230131" }); assign(Internals, { ReactBrowserEventEmitter: { @@ -16626,7 +16626,7 @@ exports.unstable_renderSubtreeIntoContainer = function ( ); }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-next-8b9ac8175-20230131"; +exports.version = "18.3.0-next-8c234c0de-20230131"; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( diff --git a/compiled/facebook-www/ReactDOM-profiling.modern.js b/compiled/facebook-www/ReactDOM-profiling.modern.js index 8fb8865abcdde..4bbcb17af8298 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -15897,7 +15897,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1792 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-8b9ac8175-20230131", + version: "18.3.0-www-modern-8c234c0de-20230131", rendererPackageName: "react-dom" }; (function (internals) { @@ -15942,7 +15942,7 @@ var devToolsConfig$jscomp$inline_1792 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-8b9ac8175-20230131" + reconcilerVersion: "18.3.0-next-8c234c0de-20230131" }); exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; exports.createPortal = function (children, container) { @@ -16117,7 +16117,7 @@ exports.unstable_flushControlled = function (fn) { } }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-next-8b9ac8175-20230131"; +exports.version = "18.3.0-next-8c234c0de-20230131"; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( diff --git a/compiled/facebook-www/ReactDOMServer-dev.classic.js b/compiled/facebook-www/ReactDOMServer-dev.classic.js index c8469ba8dd388..bdb3e4c46a59e 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.classic.js +++ b/compiled/facebook-www/ReactDOMServer-dev.classic.js @@ -19,7 +19,7 @@ if (__DEV__) { var React = require("react"); var ReactDOM = require("react-dom"); -var ReactVersion = "18.3.0-www-classic-8b9ac8175-20230131"; +var ReactVersion = "18.3.0-www-classic-8c234c0de-20230131"; // This refers to a WWW module. var warningWWW = require("warning"); diff --git a/compiled/facebook-www/ReactDOMServer-dev.modern.js b/compiled/facebook-www/ReactDOMServer-dev.modern.js index d3b93de03cad8..de209010a5107 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServer-dev.modern.js @@ -19,7 +19,7 @@ if (__DEV__) { var React = require("react"); var ReactDOM = require("react-dom"); -var ReactVersion = "18.3.0-www-modern-8b9ac8175-20230131"; +var ReactVersion = "18.3.0-www-modern-8c234c0de-20230131"; // This refers to a WWW module. var warningWWW = require("warning"); diff --git a/compiled/facebook-www/ReactDOMServer-prod.classic.js b/compiled/facebook-www/ReactDOMServer-prod.classic.js index 89f924ef2f0ae..dd788ecde2b5f 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.classic.js +++ b/compiled/facebook-www/ReactDOMServer-prod.classic.js @@ -3634,4 +3634,4 @@ exports.renderToString = function (children, options) { 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; -exports.version = "18.3.0-www-classic-8b9ac8175-20230131"; +exports.version = "18.3.0-www-classic-8c234c0de-20230131"; diff --git a/compiled/facebook-www/ReactDOMServer-prod.modern.js b/compiled/facebook-www/ReactDOMServer-prod.modern.js index 99c120cc0acd8..5721fc247b423 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServer-prod.modern.js @@ -3548,4 +3548,4 @@ exports.renderToString = function (children, options) { 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; -exports.version = "18.3.0-www-modern-8b9ac8175-20230131"; +exports.version = "18.3.0-www-modern-8c234c0de-20230131"; diff --git a/compiled/facebook-www/ReactDOMTesting-dev.classic.js b/compiled/facebook-www/ReactDOMTesting-dev.classic.js index bdec6bc403a77..267d30bba20e5 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.classic.js @@ -31206,7 +31206,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-classic-8b9ac8175-20230131"; +var ReactVersion = "18.3.0-www-classic-8c234c0de-20230131"; function createPortal( children, diff --git a/compiled/facebook-www/ReactDOMTesting-dev.modern.js b/compiled/facebook-www/ReactDOMTesting-dev.modern.js index b62c73a2e1781..bc11934a6da35 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.modern.js @@ -38508,7 +38508,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-modern-8b9ac8175-20230131"; +var ReactVersion = "18.3.0-www-modern-8c234c0de-20230131"; function createPortal( children, diff --git a/compiled/facebook-www/ReactDOMTesting-prod.classic.js b/compiled/facebook-www/ReactDOMTesting-prod.classic.js index 7b4b8bb883b35..f4d6c1d327ff6 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.classic.js @@ -11374,7 +11374,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1518 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-8b9ac8175-20230131", + version: "18.3.0-www-classic-8c234c0de-20230131", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2047 = { @@ -11404,7 +11404,7 @@ var internals$jscomp$inline_2047 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-8b9ac8175-20230131" + reconcilerVersion: "18.3.0-next-8c234c0de-20230131" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2048 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -14905,4 +14905,4 @@ exports.unstable_renderSubtreeIntoContainer = function ( ); }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-next-8b9ac8175-20230131"; +exports.version = "18.3.0-next-8c234c0de-20230131"; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.modern.js b/compiled/facebook-www/ReactDOMTesting-prod.modern.js index 87f8c9675a5dd..9bded385066b3 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.modern.js @@ -14008,7 +14008,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1673 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-8b9ac8175-20230131", + version: "18.3.0-www-modern-8c234c0de-20230131", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2072 = { @@ -14039,7 +14039,7 @@ var internals$jscomp$inline_2072 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-8b9ac8175-20230131" + reconcilerVersion: "18.3.0-next-8c234c0de-20230131" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2073 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -14370,4 +14370,4 @@ exports.unstable_flushControlled = function (fn) { } }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-next-8b9ac8175-20230131"; +exports.version = "18.3.0-next-8c234c0de-20230131"; diff --git a/compiled/facebook-www/ReactFlightDOMRelayClient-dev.classic.js b/compiled/facebook-www/ReactFlightDOMRelayClient-dev.classic.js index 072b29fe1e64b..a9e789e1c7204 100644 --- a/compiled/facebook-www/ReactFlightDOMRelayClient-dev.classic.js +++ b/compiled/facebook-www/ReactFlightDOMRelayClient-dev.classic.js @@ -80,11 +80,24 @@ function parseModel(response, json) { // The Symbol used to tag the ReactElement-like types. var REACT_ELEMENT_TYPE = Symbol.for("react.element"); var REACT_LAZY_TYPE = Symbol.for("react.lazy"); +var REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol.for( + "react.default_value" +); var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; var ContextRegistry = ReactSharedInternals.ContextRegistry; +function getOrCreateServerContext(globalName) { + if (!ContextRegistry[globalName]) { + ContextRegistry[globalName] = React.createServerContext( + globalName, // $FlowFixMe function signature doesn't reflect the symbol value + REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED + ); + } + + return ContextRegistry[globalName]; +} var PENDING = "pending"; var BLOCKED = "blocked"; @@ -194,11 +207,6 @@ function createErrorChunk(response, error) { return new Chunk(ERRORED, null, error, response); } -function createInitializedChunk(response, value) { - // $FlowFixMe Flow doesn't support functions as constructors - return new Chunk(INITIALIZED, value, null, response); -} - function wakeChunk(listeners, value) { for (var i = 0; i < listeners.length; i++) { var listener = listeners[i]; @@ -459,54 +467,71 @@ function createModelReject(chunk) { } function parseModelString(response, parentObject, key, value) { - switch (value[0]) { - case "$": { - if (value === "$") { - return REACT_ELEMENT_TYPE; - } else if (value[1] === "$" || value[1] === "@") { + if (value[0] === "$") { + if (value === "$") { + // A very common symbol. + return REACT_ELEMENT_TYPE; + } + + switch (value[1]) { + case "$": { // This was an escaped string value. return value.substring(1); - } else { - var id = parseInt(value.substring(1), 16); - var chunk = getChunk(response, id); + } + + case "L": { + // Lazy node + var id = parseInt(value.substring(2), 16); + var chunk = getChunk(response, id); // We create a React.lazy wrapper around any lazy values. + // When passed into React, we'll know how to suspend on this. - switch (chunk.status) { + return createLazyChunkWrapper(chunk); + } + + case "S": { + return Symbol.for(value.substring(2)); + } + + case "P": { + return getOrCreateServerContext(value.substring(2)).Provider; + } + + default: { + // We assume that anything else is a reference ID. + var _id = parseInt(value.substring(1), 16); + + var _chunk = getChunk(response, _id); + + switch (_chunk.status) { case RESOLVED_MODEL: - initializeModelChunk(chunk); + initializeModelChunk(_chunk); break; case RESOLVED_MODULE: - initializeModuleChunk(chunk); + initializeModuleChunk(_chunk); break; } // The status might have changed after initialization. - switch (chunk.status) { + switch (_chunk.status) { case INITIALIZED: - return chunk.value; + return _chunk.value; case PENDING: case BLOCKED: var parentChunk = initializingChunk; - chunk.then( + + _chunk.then( createModelResolver(parentChunk, parentObject, key), createModelReject(parentChunk) ); + return null; default: - throw chunk.reason; + throw _chunk.reason; } } } - - case "@": { - var _id = parseInt(value.substring(1), 16); - - var _chunk = getChunk(response, _id); // We create a React.lazy wrapper around any lazy values. - // When passed into React, we'll know how to suspend on this. - - return createLazyChunkWrapper(_chunk); - } } return value; @@ -587,12 +612,6 @@ function resolveModule(response, id, model) { } } } -function resolveSymbol(response, id, name) { - var chunks = response._chunks; // We assume that we'll always emit the symbol before anything references it - // to save a few bytes. - - chunks.set(id, createInitializedChunk(response, Symbol.for(name))); -} function resolveErrorDev(response, id, digest, message, stack) { var error = new Error( message || @@ -619,15 +638,12 @@ function close(response) { } function resolveRow(response, chunk) { - if (chunk[0] === "J") { + if (chunk[0] === "O") { // $FlowFixMe unable to refine on array indices resolveModel(response, chunk[1], chunk[2]); - } else if (chunk[0] === "M") { + } else if (chunk[0] === "I") { // $FlowFixMe unable to refine on array indices resolveModule(response, chunk[1], chunk[2]); - } else if (chunk[0] === "S") { - // $FlowFixMe: Flow doesn't support disjoint unions on tuples. - resolveSymbol(response, chunk[1], chunk[2]); } else { { resolveErrorDev( diff --git a/compiled/facebook-www/ReactFlightDOMRelayClient-dev.modern.js b/compiled/facebook-www/ReactFlightDOMRelayClient-dev.modern.js index 072b29fe1e64b..a9e789e1c7204 100644 --- a/compiled/facebook-www/ReactFlightDOMRelayClient-dev.modern.js +++ b/compiled/facebook-www/ReactFlightDOMRelayClient-dev.modern.js @@ -80,11 +80,24 @@ function parseModel(response, json) { // The Symbol used to tag the ReactElement-like types. var REACT_ELEMENT_TYPE = Symbol.for("react.element"); var REACT_LAZY_TYPE = Symbol.for("react.lazy"); +var REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol.for( + "react.default_value" +); var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; var ContextRegistry = ReactSharedInternals.ContextRegistry; +function getOrCreateServerContext(globalName) { + if (!ContextRegistry[globalName]) { + ContextRegistry[globalName] = React.createServerContext( + globalName, // $FlowFixMe function signature doesn't reflect the symbol value + REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED + ); + } + + return ContextRegistry[globalName]; +} var PENDING = "pending"; var BLOCKED = "blocked"; @@ -194,11 +207,6 @@ function createErrorChunk(response, error) { return new Chunk(ERRORED, null, error, response); } -function createInitializedChunk(response, value) { - // $FlowFixMe Flow doesn't support functions as constructors - return new Chunk(INITIALIZED, value, null, response); -} - function wakeChunk(listeners, value) { for (var i = 0; i < listeners.length; i++) { var listener = listeners[i]; @@ -459,54 +467,71 @@ function createModelReject(chunk) { } function parseModelString(response, parentObject, key, value) { - switch (value[0]) { - case "$": { - if (value === "$") { - return REACT_ELEMENT_TYPE; - } else if (value[1] === "$" || value[1] === "@") { + if (value[0] === "$") { + if (value === "$") { + // A very common symbol. + return REACT_ELEMENT_TYPE; + } + + switch (value[1]) { + case "$": { // This was an escaped string value. return value.substring(1); - } else { - var id = parseInt(value.substring(1), 16); - var chunk = getChunk(response, id); + } + + case "L": { + // Lazy node + var id = parseInt(value.substring(2), 16); + var chunk = getChunk(response, id); // We create a React.lazy wrapper around any lazy values. + // When passed into React, we'll know how to suspend on this. - switch (chunk.status) { + return createLazyChunkWrapper(chunk); + } + + case "S": { + return Symbol.for(value.substring(2)); + } + + case "P": { + return getOrCreateServerContext(value.substring(2)).Provider; + } + + default: { + // We assume that anything else is a reference ID. + var _id = parseInt(value.substring(1), 16); + + var _chunk = getChunk(response, _id); + + switch (_chunk.status) { case RESOLVED_MODEL: - initializeModelChunk(chunk); + initializeModelChunk(_chunk); break; case RESOLVED_MODULE: - initializeModuleChunk(chunk); + initializeModuleChunk(_chunk); break; } // The status might have changed after initialization. - switch (chunk.status) { + switch (_chunk.status) { case INITIALIZED: - return chunk.value; + return _chunk.value; case PENDING: case BLOCKED: var parentChunk = initializingChunk; - chunk.then( + + _chunk.then( createModelResolver(parentChunk, parentObject, key), createModelReject(parentChunk) ); + return null; default: - throw chunk.reason; + throw _chunk.reason; } } } - - case "@": { - var _id = parseInt(value.substring(1), 16); - - var _chunk = getChunk(response, _id); // We create a React.lazy wrapper around any lazy values. - // When passed into React, we'll know how to suspend on this. - - return createLazyChunkWrapper(_chunk); - } } return value; @@ -587,12 +612,6 @@ function resolveModule(response, id, model) { } } } -function resolveSymbol(response, id, name) { - var chunks = response._chunks; // We assume that we'll always emit the symbol before anything references it - // to save a few bytes. - - chunks.set(id, createInitializedChunk(response, Symbol.for(name))); -} function resolveErrorDev(response, id, digest, message, stack) { var error = new Error( message || @@ -619,15 +638,12 @@ function close(response) { } function resolveRow(response, chunk) { - if (chunk[0] === "J") { + if (chunk[0] === "O") { // $FlowFixMe unable to refine on array indices resolveModel(response, chunk[1], chunk[2]); - } else if (chunk[0] === "M") { + } else if (chunk[0] === "I") { // $FlowFixMe unable to refine on array indices resolveModule(response, chunk[1], chunk[2]); - } else if (chunk[0] === "S") { - // $FlowFixMe: Flow doesn't support disjoint unions on tuples. - resolveSymbol(response, chunk[1], chunk[2]); } else { { resolveErrorDev( diff --git a/compiled/facebook-www/ReactFlightDOMRelayClient-prod.classic.js b/compiled/facebook-www/ReactFlightDOMRelayClient-prod.classic.js index 3298c3db32d21..c35be1902f829 100644 --- a/compiled/facebook-www/ReactFlightDOMRelayClient-prod.classic.js +++ b/compiled/facebook-www/ReactFlightDOMRelayClient-prod.classic.js @@ -11,7 +11,8 @@ */ "use strict"; -var ReactFlightDOMRelayClientIntegration = require("ReactFlightDOMRelayClientIntegration"); +var ReactFlightDOMRelayClientIntegration = require("ReactFlightDOMRelayClientIntegration"), + React = require("react"); function formatProdErrorMessage(code) { for ( var url = "https://reactjs.org/docs/error-decoder.html?invariant=" + code, @@ -69,7 +70,12 @@ function parseModelRecursively(response, parentObj, key, value) { } var dummy = {}, REACT_ELEMENT_TYPE = Symbol.for("react.element"), - REACT_LAZY_TYPE = Symbol.for("react.lazy"); + REACT_LAZY_TYPE = Symbol.for("react.lazy"), + REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol.for( + "react.default_value" + ), + ContextRegistry = + React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry; function Chunk(status, value, reason, response) { this.status = status; this.value = value; @@ -118,9 +124,6 @@ function readChunk(chunk) { throw chunk.reason; } } -function createInitializedChunk(response, value) { - return new Chunk("fulfilled", value, null, response); -} function wakeChunk(listeners, value) { for (var i = 0; i < listeners.length; i++) (0, listeners[i])(value); } @@ -224,41 +227,60 @@ function createModelReject(chunk) { }; } function parseModelString(response, parentObject, key, value) { - switch (value[0]) { - case "$": - if ("$" === value) return REACT_ELEMENT_TYPE; - if ("$" === value[1] || "@" === value[1]) return value.substring(1); - value = parseInt(value.substring(1), 16); - response = getChunk(response, value); - switch (response.status) { - case "resolved_model": - initializeModelChunk(response); - break; - case "resolved_module": - initializeModuleChunk(response); - } - switch (response.status) { - case "fulfilled": - return response.value; - case "pending": - case "blocked": - return ( - (value = initializingChunk), - response.then( - createModelResolver(value, parentObject, key), - createModelReject(value) - ), - null - ); - default: - throw response.reason; - } - case "@": - return ( - (parentObject = parseInt(value.substring(1), 16)), - (parentObject = getChunk(response, parentObject)), - { $$typeof: REACT_LAZY_TYPE, _payload: parentObject, _init: readChunk } - ); + if ("$" === value[0]) { + if ("$" === value) return REACT_ELEMENT_TYPE; + switch (value[1]) { + case "$": + return value.substring(1); + case "L": + return ( + (parentObject = parseInt(value.substring(2), 16)), + (parentObject = getChunk(response, parentObject)), + { + $$typeof: REACT_LAZY_TYPE, + _payload: parentObject, + _init: readChunk + } + ); + case "S": + return Symbol.for(value.substring(2)); + case "P": + return ( + (parentObject = value.substring(2)), + ContextRegistry[parentObject] || + (ContextRegistry[parentObject] = React.createServerContext( + parentObject, + REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED + )), + ContextRegistry[parentObject].Provider + ); + default: + value = parseInt(value.substring(1), 16); + response = getChunk(response, value); + switch (response.status) { + case "resolved_model": + initializeModelChunk(response); + break; + case "resolved_module": + initializeModuleChunk(response); + } + switch (response.status) { + case "fulfilled": + return response.value; + case "pending": + case "blocked": + return ( + (value = initializingChunk), + response.then( + createModelResolver(value, parentObject, key), + createModelReject(value) + ), + null + ); + default: + throw response.reason; + } + } } return value; } @@ -305,7 +327,7 @@ exports.getRoot = function (response) { return getChunk(response, 0); }; exports.resolveRow = function (response, chunk) { - if ("J" === chunk[0]) { + if ("O" === chunk[0]) { var id = chunk[1], model = chunk[2], chunks = response._chunks; @@ -320,13 +342,8 @@ exports.resolveRow = function (response, chunk) { wakeChunkIfInitialized(chunk, response, id))) : chunks.set(id, new Chunk("resolved_model", model, null, response)); } else - "M" === chunk[0] + "I" === chunk[0] ? resolveModule(response, chunk[1], chunk[2]) - : "S" === chunk[0] - ? response._chunks.set( - chunk[1], - createInitializedChunk(response, Symbol.for(chunk[2])) - ) : ((model = chunk[1]), (id = chunk[2].digest), (chunk = Error(formatProdErrorMessage(441))), diff --git a/compiled/facebook-www/ReactFlightDOMRelayClient-prod.modern.js b/compiled/facebook-www/ReactFlightDOMRelayClient-prod.modern.js index 3298c3db32d21..c35be1902f829 100644 --- a/compiled/facebook-www/ReactFlightDOMRelayClient-prod.modern.js +++ b/compiled/facebook-www/ReactFlightDOMRelayClient-prod.modern.js @@ -11,7 +11,8 @@ */ "use strict"; -var ReactFlightDOMRelayClientIntegration = require("ReactFlightDOMRelayClientIntegration"); +var ReactFlightDOMRelayClientIntegration = require("ReactFlightDOMRelayClientIntegration"), + React = require("react"); function formatProdErrorMessage(code) { for ( var url = "https://reactjs.org/docs/error-decoder.html?invariant=" + code, @@ -69,7 +70,12 @@ function parseModelRecursively(response, parentObj, key, value) { } var dummy = {}, REACT_ELEMENT_TYPE = Symbol.for("react.element"), - REACT_LAZY_TYPE = Symbol.for("react.lazy"); + REACT_LAZY_TYPE = Symbol.for("react.lazy"), + REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol.for( + "react.default_value" + ), + ContextRegistry = + React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry; function Chunk(status, value, reason, response) { this.status = status; this.value = value; @@ -118,9 +124,6 @@ function readChunk(chunk) { throw chunk.reason; } } -function createInitializedChunk(response, value) { - return new Chunk("fulfilled", value, null, response); -} function wakeChunk(listeners, value) { for (var i = 0; i < listeners.length; i++) (0, listeners[i])(value); } @@ -224,41 +227,60 @@ function createModelReject(chunk) { }; } function parseModelString(response, parentObject, key, value) { - switch (value[0]) { - case "$": - if ("$" === value) return REACT_ELEMENT_TYPE; - if ("$" === value[1] || "@" === value[1]) return value.substring(1); - value = parseInt(value.substring(1), 16); - response = getChunk(response, value); - switch (response.status) { - case "resolved_model": - initializeModelChunk(response); - break; - case "resolved_module": - initializeModuleChunk(response); - } - switch (response.status) { - case "fulfilled": - return response.value; - case "pending": - case "blocked": - return ( - (value = initializingChunk), - response.then( - createModelResolver(value, parentObject, key), - createModelReject(value) - ), - null - ); - default: - throw response.reason; - } - case "@": - return ( - (parentObject = parseInt(value.substring(1), 16)), - (parentObject = getChunk(response, parentObject)), - { $$typeof: REACT_LAZY_TYPE, _payload: parentObject, _init: readChunk } - ); + if ("$" === value[0]) { + if ("$" === value) return REACT_ELEMENT_TYPE; + switch (value[1]) { + case "$": + return value.substring(1); + case "L": + return ( + (parentObject = parseInt(value.substring(2), 16)), + (parentObject = getChunk(response, parentObject)), + { + $$typeof: REACT_LAZY_TYPE, + _payload: parentObject, + _init: readChunk + } + ); + case "S": + return Symbol.for(value.substring(2)); + case "P": + return ( + (parentObject = value.substring(2)), + ContextRegistry[parentObject] || + (ContextRegistry[parentObject] = React.createServerContext( + parentObject, + REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED + )), + ContextRegistry[parentObject].Provider + ); + default: + value = parseInt(value.substring(1), 16); + response = getChunk(response, value); + switch (response.status) { + case "resolved_model": + initializeModelChunk(response); + break; + case "resolved_module": + initializeModuleChunk(response); + } + switch (response.status) { + case "fulfilled": + return response.value; + case "pending": + case "blocked": + return ( + (value = initializingChunk), + response.then( + createModelResolver(value, parentObject, key), + createModelReject(value) + ), + null + ); + default: + throw response.reason; + } + } } return value; } @@ -305,7 +327,7 @@ exports.getRoot = function (response) { return getChunk(response, 0); }; exports.resolveRow = function (response, chunk) { - if ("J" === chunk[0]) { + if ("O" === chunk[0]) { var id = chunk[1], model = chunk[2], chunks = response._chunks; @@ -320,13 +342,8 @@ exports.resolveRow = function (response, chunk) { wakeChunkIfInitialized(chunk, response, id))) : chunks.set(id, new Chunk("resolved_model", model, null, response)); } else - "M" === chunk[0] + "I" === chunk[0] ? resolveModule(response, chunk[1], chunk[2]) - : "S" === chunk[0] - ? response._chunks.set( - chunk[1], - createInitializedChunk(response, Symbol.for(chunk[2])) - ) : ((model = chunk[1]), (id = chunk[2].digest), (chunk = Error(formatProdErrorMessage(441))), diff --git a/compiled/facebook-www/ReactFlightDOMRelayServer-dev.classic.js b/compiled/facebook-www/ReactFlightDOMRelayServer-dev.classic.js index 5ffb44d0b54b5..07927ebcf4fb8 100644 --- a/compiled/facebook-www/ReactFlightDOMRelayServer-dev.classic.js +++ b/compiled/facebook-www/ReactFlightDOMRelayServer-dev.classic.js @@ -137,17 +137,14 @@ function convertModelToJSON(request, parent, key, model) { function processModelChunk(request, id, model) { // $FlowFixMe no good way to define an empty exact object var json = convertModelToJSON(request, {}, "", model); - return ["J", id, json]; + return ["O", id, json]; +} +function processReferenceChunk(request, id, reference) { + return ["O", id, reference]; } function processModuleChunk(request, id, moduleMetaData) { // The moduleMetaData is already a JSON serializable value. - return ["M", id, moduleMetaData]; -} -function processProviderChunk(request, id, contextName) { - return ["P", id, contextName]; -} -function processSymbolChunk(request, id, name) { - return ["S", id, name]; + return ["I", id, moduleMetaData]; } function scheduleWork(callback) { callback(); @@ -1535,7 +1532,15 @@ function serializeByValueID(id) { } function serializeByRefID(id) { - return "@" + id.toString(16); + return "$L" + id.toString(16); +} + +function serializeSymbolReference(name) { + return "$S" + name; +} + +function serializeProviderReference(name) { + return "$P" + name; } function serializeClientReference(request, parent, key, moduleReference) { @@ -1594,7 +1599,7 @@ function serializeClientReference(request, parent, key, moduleReference) { } function escapeStringValue(value) { - if (value[0] === "$" || value[0] === "@") { + if (value[0] === "$") { // We need to escape $ or @ prefixed strings since we use those to encode // references to IDs and as special symbol values. return "$" + value; @@ -2263,12 +2268,14 @@ function emitModuleChunk(request, id, moduleMetaData) { } function emitSymbolChunk(request, id, name) { - var processedChunk = processSymbolChunk(request, id, name); + var symbolReference = serializeSymbolReference(name); + var processedChunk = processReferenceChunk(request, id, symbolReference); request.completedModuleChunks.push(processedChunk); } function emitProviderChunk(request, id, contextName) { - var processedChunk = processProviderChunk(request, id, contextName); + var contextReference = serializeProviderReference(contextName); + var processedChunk = processReferenceChunk(request, id, contextReference); request.completedJSONChunks.push(processedChunk); } diff --git a/compiled/facebook-www/ReactFlightDOMRelayServer-dev.modern.js b/compiled/facebook-www/ReactFlightDOMRelayServer-dev.modern.js index bea83d2802d09..948fbf000948a 100644 --- a/compiled/facebook-www/ReactFlightDOMRelayServer-dev.modern.js +++ b/compiled/facebook-www/ReactFlightDOMRelayServer-dev.modern.js @@ -137,17 +137,14 @@ function convertModelToJSON(request, parent, key, model) { function processModelChunk(request, id, model) { // $FlowFixMe no good way to define an empty exact object var json = convertModelToJSON(request, {}, "", model); - return ["J", id, json]; + return ["O", id, json]; +} +function processReferenceChunk(request, id, reference) { + return ["O", id, reference]; } function processModuleChunk(request, id, moduleMetaData) { // The moduleMetaData is already a JSON serializable value. - return ["M", id, moduleMetaData]; -} -function processProviderChunk(request, id, contextName) { - return ["P", id, contextName]; -} -function processSymbolChunk(request, id, name) { - return ["S", id, name]; + return ["I", id, moduleMetaData]; } function scheduleWork(callback) { callback(); @@ -1539,7 +1536,15 @@ function serializeByValueID(id) { } function serializeByRefID(id) { - return "@" + id.toString(16); + return "$L" + id.toString(16); +} + +function serializeSymbolReference(name) { + return "$S" + name; +} + +function serializeProviderReference(name) { + return "$P" + name; } function serializeClientReference(request, parent, key, moduleReference) { @@ -1598,7 +1603,7 @@ function serializeClientReference(request, parent, key, moduleReference) { } function escapeStringValue(value) { - if (value[0] === "$" || value[0] === "@") { + if (value[0] === "$") { // We need to escape $ or @ prefixed strings since we use those to encode // references to IDs and as special symbol values. return "$" + value; @@ -2267,12 +2272,14 @@ function emitModuleChunk(request, id, moduleMetaData) { } function emitSymbolChunk(request, id, name) { - var processedChunk = processSymbolChunk(request, id, name); + var symbolReference = serializeSymbolReference(name); + var processedChunk = processReferenceChunk(request, id, symbolReference); request.completedModuleChunks.push(processedChunk); } function emitProviderChunk(request, id, contextName) { - var processedChunk = processProviderChunk(request, id, contextName); + var contextReference = serializeProviderReference(contextName); + var processedChunk = processReferenceChunk(request, id, contextReference); request.completedJSONChunks.push(processedChunk); } diff --git a/compiled/facebook-www/ReactFlightDOMRelayServer-prod.classic.js b/compiled/facebook-www/ReactFlightDOMRelayServer-prod.classic.js index 8a41416e903c7..c82415509e918 100644 --- a/compiled/facebook-www/ReactFlightDOMRelayServer-prod.classic.js +++ b/compiled/facebook-www/ReactFlightDOMRelayServer-prod.classic.js @@ -630,7 +630,7 @@ function serializeClientReference(request, parent, key, moduleReference) { existingId = writtenModules.get(moduleReference); if (void 0 !== existingId) return parent[0] === REACT_ELEMENT_TYPE && "1" === key - ? "@" + existingId.toString(16) + ? "$L" + existingId.toString(16) : "$" + existingId.toString(16); try { var moduleMetaData = @@ -640,10 +640,10 @@ function serializeClientReference(request, parent, key, moduleReference) { ); request.pendingChunks++; var moduleId = request.nextChunkId++; - request.completedModuleChunks.push(["M", moduleId, moduleMetaData]); + request.completedModuleChunks.push(["I", moduleId, moduleMetaData]); writtenModules.set(moduleReference, moduleId); return parent[0] === REACT_ELEMENT_TYPE && "1" === key - ? "@" + moduleId.toString(16) + ? "$L" + moduleId.toString(16) : "$" + moduleId.toString(16); } catch (x) { return ( @@ -806,13 +806,13 @@ function resolveModelToJSON(request, parent, key, value) { (value = request.ping), key.then(value, value), (request.thenableState = getThenableStateAfterSuspending()), - "@" + request.id.toString(16) + "$L" + request.id.toString(16) ); request.pendingChunks++; value = request.nextChunkId++; key = logRecoverableError(request, key); emitErrorChunkProd(request, value, key); - return "@" + value.toString(16); + return "$L" + value.toString(16); } if (null === value) return null; if ("object" === typeof value) { @@ -827,7 +827,7 @@ function resolveModelToJSON(request, parent, key, value) { (request.pendingChunks++, (key = request.nextChunkId++), parent.set(value, key), - request.completedJSONChunks.push(["P", key, value])), + request.completedJSONChunks.push(["O", key, "$P" + value])), "$" + key.toString(16) ); if (value === POP) { @@ -847,10 +847,7 @@ function resolveModelToJSON(request, parent, key, value) { return value; } if ("string" === typeof value) - return ( - (request = "$" === value[0] || "@" === value[0] ? "$" + value : value), - request - ); + return (request = "$" === value[0] ? "$" + value : value), request; if ( "boolean" === typeof value || "number" === typeof value || @@ -884,7 +881,7 @@ function resolveModelToJSON(request, parent, key, value) { ); request.pendingChunks++; key = request.nextChunkId++; - request.completedModuleChunks.push(["S", key, init]); + request.completedModuleChunks.push(["O", key, "$S" + init]); element.set(value, key); return "$" + key.toString(16); } @@ -972,7 +969,7 @@ function performWork(request$jscomp$0) { } var id = task.id, json = convertModelToJSON(request, {}, "", value); - request.completedJSONChunks.push(["J", id, json]); + request.completedJSONChunks.push(["O", id, json]); request.abortableTasks.delete(task); task.status = 1; } catch (thrownValue) { diff --git a/compiled/facebook-www/ReactFlightDOMRelayServer-prod.modern.js b/compiled/facebook-www/ReactFlightDOMRelayServer-prod.modern.js index 5db43457ef770..7f794ac957c95 100644 --- a/compiled/facebook-www/ReactFlightDOMRelayServer-prod.modern.js +++ b/compiled/facebook-www/ReactFlightDOMRelayServer-prod.modern.js @@ -633,7 +633,7 @@ function serializeClientReference(request, parent, key, moduleReference) { existingId = writtenModules.get(moduleReference); if (void 0 !== existingId) return parent[0] === REACT_ELEMENT_TYPE && "1" === key - ? "@" + existingId.toString(16) + ? "$L" + existingId.toString(16) : "$" + existingId.toString(16); try { var moduleMetaData = @@ -643,10 +643,10 @@ function serializeClientReference(request, parent, key, moduleReference) { ); request.pendingChunks++; var moduleId = request.nextChunkId++; - request.completedModuleChunks.push(["M", moduleId, moduleMetaData]); + request.completedModuleChunks.push(["I", moduleId, moduleMetaData]); writtenModules.set(moduleReference, moduleId); return parent[0] === REACT_ELEMENT_TYPE && "1" === key - ? "@" + moduleId.toString(16) + ? "$L" + moduleId.toString(16) : "$" + moduleId.toString(16); } catch (x) { return ( @@ -809,13 +809,13 @@ function resolveModelToJSON(request, parent, key, value) { (value = request.ping), key.then(value, value), (request.thenableState = getThenableStateAfterSuspending()), - "@" + request.id.toString(16) + "$L" + request.id.toString(16) ); request.pendingChunks++; value = request.nextChunkId++; key = logRecoverableError(request, key); emitErrorChunkProd(request, value, key); - return "@" + value.toString(16); + return "$L" + value.toString(16); } if (null === value) return null; if ("object" === typeof value) { @@ -830,7 +830,7 @@ function resolveModelToJSON(request, parent, key, value) { (request.pendingChunks++, (key = request.nextChunkId++), parent.set(value, key), - request.completedJSONChunks.push(["P", key, value])), + request.completedJSONChunks.push(["O", key, "$P" + value])), "$" + key.toString(16) ); if (value === POP) { @@ -850,10 +850,7 @@ function resolveModelToJSON(request, parent, key, value) { return value; } if ("string" === typeof value) - return ( - (request = "$" === value[0] || "@" === value[0] ? "$" + value : value), - request - ); + return (request = "$" === value[0] ? "$" + value : value), request; if ( "boolean" === typeof value || "number" === typeof value || @@ -887,7 +884,7 @@ function resolveModelToJSON(request, parent, key, value) { ); request.pendingChunks++; key = request.nextChunkId++; - request.completedModuleChunks.push(["S", key, init]); + request.completedModuleChunks.push(["O", key, "$S" + init]); element.set(value, key); return "$" + key.toString(16); } @@ -975,7 +972,7 @@ function performWork(request$jscomp$0) { } var id = task.id, json = convertModelToJSON(request, {}, "", value); - request.completedJSONChunks.push(["J", id, json]); + request.completedJSONChunks.push(["O", id, json]); request.abortableTasks.delete(task); task.status = 1; } catch (thrownValue) { diff --git a/compiled/facebook-www/ReactTestRenderer-dev.classic.js b/compiled/facebook-www/ReactTestRenderer-dev.classic.js index dc5b634da2f53..b8b4eb2460e85 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.classic.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.classic.js @@ -23905,7 +23905,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-classic-8b9ac8175-20230131"; +var ReactVersion = "18.3.0-www-classic-8c234c0de-20230131"; // Might add PROFILE later. diff --git a/compiled/facebook-www/ReactTestRenderer-dev.modern.js b/compiled/facebook-www/ReactTestRenderer-dev.modern.js index f7427623fbf72..dc5967d4e8926 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.modern.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.modern.js @@ -23905,7 +23905,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-modern-8b9ac8175-20230131"; +var ReactVersion = "18.3.0-www-modern-8c234c0de-20230131"; // Might add PROFILE later.