diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index 1d517ca641ce5..c034c1966ca8a 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -527ed72bfd9f5c0045da468ad01db968a9961ad7 +5a75f9e78544fa6d052aff7fe99607e48f35b979 diff --git a/compiled/facebook-www/React-dev.classic.js b/compiled/facebook-www/React-dev.classic.js index c4b53fd5100db..656fe5be17ce1 100644 --- a/compiled/facebook-www/React-dev.classic.js +++ b/compiled/facebook-www/React-dev.classic.js @@ -24,7 +24,7 @@ if (__DEV__) { ) { __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); } - var ReactVersion = "18.3.0-www-classic-e33483b4"; + var ReactVersion = "18.3.0-www-classic-1c9d7bd1"; // ATTENTION // When adding new symbols to this file, @@ -399,7 +399,8 @@ if (__DEV__) { // Re-export dynamic flags from the www version. var dynamicFeatureFlags = require("ReactFeatureFlags"); - var enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, + var enableBigIntSupport = dynamicFeatureFlags.enableBigIntSupport, + enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp; @@ -2359,9 +2360,10 @@ if (__DEV__) { invokeCallback = true; } else { switch (type) { - case "bigint": { - break; - } + case "bigint": + if (!enableBigIntSupport) { + break; + } // fallthrough for enabled BigInt support diff --git a/compiled/facebook-www/React-dev.modern.js b/compiled/facebook-www/React-dev.modern.js index 122c831ccbd05..71399bd7bf409 100644 --- a/compiled/facebook-www/React-dev.modern.js +++ b/compiled/facebook-www/React-dev.modern.js @@ -24,7 +24,7 @@ if (__DEV__) { ) { __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); } - var ReactVersion = "18.3.0-www-modern-5840c08e"; + var ReactVersion = "18.3.0-www-modern-bbec48f4"; // ATTENTION // When adding new symbols to this file, @@ -399,7 +399,8 @@ if (__DEV__) { // Re-export dynamic flags from the www version. var dynamicFeatureFlags = require("ReactFeatureFlags"); - var enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, + var enableBigIntSupport = dynamicFeatureFlags.enableBigIntSupport, + enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp; @@ -2315,9 +2316,10 @@ if (__DEV__) { invokeCallback = true; } else { switch (type) { - case "bigint": { - break; - } + case "bigint": + if (!enableBigIntSupport) { + break; + } // fallthrough for enabled BigInt support diff --git a/compiled/facebook-www/React-prod.classic.js b/compiled/facebook-www/React-prod.classic.js index 0d74b2939d4d1..34fb2ba0f4ed9 100644 --- a/compiled/facebook-www/React-prod.classic.js +++ b/compiled/facebook-www/React-prod.classic.js @@ -83,6 +83,7 @@ assign(pureComponentPrototype, Component.prototype); pureComponentPrototype.isPureReactComponent = !0; var isArrayImpl = Array.isArray, dynamicFeatureFlags = require("ReactFeatureFlags"), + enableBigIntSupport = dynamicFeatureFlags.enableBigIntSupport, enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, @@ -246,6 +247,8 @@ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) { if (null === children) invokeCallback = !0; else switch (type) { + case "bigint": + if (!enableBigIntSupport) break; case "string": case "number": invokeCallback = !0; @@ -640,4 +643,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactCurrentDispatcher.current.useTransition(); }; -exports.version = "18.3.0-www-classic-af285d7f"; +exports.version = "18.3.0-www-classic-3f1a7fba"; diff --git a/compiled/facebook-www/React-prod.modern.js b/compiled/facebook-www/React-prod.modern.js index 588f2825df3b8..1fb1d21247b77 100644 --- a/compiled/facebook-www/React-prod.modern.js +++ b/compiled/facebook-www/React-prod.modern.js @@ -82,6 +82,7 @@ assign(pureComponentPrototype, Component.prototype); pureComponentPrototype.isPureReactComponent = !0; var isArrayImpl = Array.isArray, dynamicFeatureFlags = require("ReactFeatureFlags"), + enableBigIntSupport = dynamicFeatureFlags.enableBigIntSupport, enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, @@ -207,6 +208,8 @@ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) { if (null === children) invokeCallback = !0; else switch (type) { + case "bigint": + if (!enableBigIntSupport) break; case "string": case "number": invokeCallback = !0; @@ -632,4 +635,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactCurrentDispatcher.current.useTransition(); }; -exports.version = "18.3.0-www-modern-6932c29f"; +exports.version = "18.3.0-www-modern-e00f2544"; diff --git a/compiled/facebook-www/React-profiling.classic.js b/compiled/facebook-www/React-profiling.classic.js index e2f168d80e14c..43a2431da62aa 100644 --- a/compiled/facebook-www/React-profiling.classic.js +++ b/compiled/facebook-www/React-profiling.classic.js @@ -87,6 +87,7 @@ assign(pureComponentPrototype, Component.prototype); pureComponentPrototype.isPureReactComponent = !0; var isArrayImpl = Array.isArray, dynamicFeatureFlags = require("ReactFeatureFlags"), + enableBigIntSupport = dynamicFeatureFlags.enableBigIntSupport, enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, @@ -250,6 +251,8 @@ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) { if (null === children) invokeCallback = !0; else switch (type) { + case "bigint": + if (!enableBigIntSupport) break; case "string": case "number": invokeCallback = !0; @@ -644,7 +647,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactCurrentDispatcher.current.useTransition(); }; -exports.version = "18.3.0-www-classic-07a53cb8"; +exports.version = "18.3.0-www-classic-b4c99f99"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-profiling.modern.js b/compiled/facebook-www/React-profiling.modern.js index dc9c98b9b75a5..e240b0f37c6b7 100644 --- a/compiled/facebook-www/React-profiling.modern.js +++ b/compiled/facebook-www/React-profiling.modern.js @@ -86,6 +86,7 @@ assign(pureComponentPrototype, Component.prototype); pureComponentPrototype.isPureReactComponent = !0; var isArrayImpl = Array.isArray, dynamicFeatureFlags = require("ReactFeatureFlags"), + enableBigIntSupport = dynamicFeatureFlags.enableBigIntSupport, enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, @@ -211,6 +212,8 @@ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) { if (null === children) invokeCallback = !0; else switch (type) { + case "bigint": + if (!enableBigIntSupport) break; case "string": case "number": invokeCallback = !0; @@ -636,7 +639,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactCurrentDispatcher.current.useTransition(); }; -exports.version = "18.3.0-www-modern-d0117e88"; +exports.version = "18.3.0-www-modern-ef66ad17"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-dev.classic.js b/compiled/facebook-www/ReactART-dev.classic.js index e278c03a1b9db..0f38933c21176 100644 --- a/compiled/facebook-www/ReactART-dev.classic.js +++ b/compiled/facebook-www/ReactART-dev.classic.js @@ -66,7 +66,7 @@ if (__DEV__) { return self; } - var ReactVersion = "18.3.0-www-classic-c5031154"; + var ReactVersion = "18.3.0-www-classic-df608462"; var LegacyRoot = 0; var ConcurrentRoot = 1; @@ -163,7 +163,8 @@ if (__DEV__) { // Re-export dynamic flags from the www version. var dynamicFeatureFlags = require("ReactFeatureFlags"); - var enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, + var enableBigIntSupport = dynamicFeatureFlags.enableBigIntSupport, + enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, enableUseRefAccessWarning = dynamicFeatureFlags.enableUseRefAccessWarning, enableLazyContextPropagation = dynamicFeatureFlags.enableLazyContextPropagation, @@ -197,7 +198,6 @@ if (__DEV__) { var enableAsyncActions = true; // Logs additional User Timing API marks for use with an experimental profiling tool. var enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler; - var enableBigIntSupport = false; // TODO: Roll out with GK. Don't keep as dynamic flag for too long, though, var FunctionComponent = 0; var ClassComponent = 1; @@ -6865,7 +6865,7 @@ if (__DEV__) { if ( (typeof newChild === "string" && newChild !== "") || typeof newChild === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof newChild === "bigint") ) { // Text nodes don't have keys. If the previous node is implicitly keyed // we can continue to replace it without aborting even if it is not a text @@ -7000,7 +7000,7 @@ if (__DEV__) { if ( (typeof newChild === "string" && newChild !== "") || typeof newChild === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof newChild === "bigint") ) { // Text nodes don't have keys. If the previous node is implicitly keyed // we can continue to replace it without aborting even if it is not a text @@ -7127,7 +7127,7 @@ if (__DEV__) { if ( (typeof newChild === "string" && newChild !== "") || typeof newChild === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof newChild === "bigint") ) { // Text nodes don't have keys, so we neither have to check the old nor // new node for the key. If both are text nodes, they match. @@ -7976,7 +7976,7 @@ if (__DEV__) { if ( (typeof newChild === "string" && newChild !== "") || typeof newChild === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof newChild === "bigint") ) { return placeSingleChild( reconcileSingleTextNode( diff --git a/compiled/facebook-www/ReactART-dev.modern.js b/compiled/facebook-www/ReactART-dev.modern.js index bbd3ac00e17fa..3e03079b84791 100644 --- a/compiled/facebook-www/ReactART-dev.modern.js +++ b/compiled/facebook-www/ReactART-dev.modern.js @@ -66,7 +66,7 @@ if (__DEV__) { return self; } - var ReactVersion = "18.3.0-www-modern-f907edbd"; + var ReactVersion = "18.3.0-www-modern-b2ca28f2"; var LegacyRoot = 0; var ConcurrentRoot = 1; @@ -163,7 +163,8 @@ if (__DEV__) { // Re-export dynamic flags from the www version. var dynamicFeatureFlags = require("ReactFeatureFlags"); - var enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, + var enableBigIntSupport = dynamicFeatureFlags.enableBigIntSupport, + enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, enableUseRefAccessWarning = dynamicFeatureFlags.enableUseRefAccessWarning, enableLazyContextPropagation = dynamicFeatureFlags.enableLazyContextPropagation, @@ -197,7 +198,6 @@ if (__DEV__) { var enableAsyncActions = true; // Logs additional User Timing API marks for use with an experimental profiling tool. var enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler; - var enableBigIntSupport = false; // TODO: Roll out with GK. Don't keep as dynamic flag for too long, though, var FunctionComponent = 0; var ClassComponent = 1; @@ -6630,7 +6630,7 @@ if (__DEV__) { if ( (typeof newChild === "string" && newChild !== "") || typeof newChild === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof newChild === "bigint") ) { // Text nodes don't have keys. If the previous node is implicitly keyed // we can continue to replace it without aborting even if it is not a text @@ -6765,7 +6765,7 @@ if (__DEV__) { if ( (typeof newChild === "string" && newChild !== "") || typeof newChild === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof newChild === "bigint") ) { // Text nodes don't have keys. If the previous node is implicitly keyed // we can continue to replace it without aborting even if it is not a text @@ -6892,7 +6892,7 @@ if (__DEV__) { if ( (typeof newChild === "string" && newChild !== "") || typeof newChild === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof newChild === "bigint") ) { // Text nodes don't have keys, so we neither have to check the old nor // new node for the key. If both are text nodes, they match. @@ -7741,7 +7741,7 @@ if (__DEV__) { if ( (typeof newChild === "string" && newChild !== "") || typeof newChild === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof newChild === "bigint") ) { return placeSingleChild( reconcileSingleTextNode( diff --git a/compiled/facebook-www/ReactART-prod.classic.js b/compiled/facebook-www/ReactART-prod.classic.js index 219c32269283b..c337e401b9871 100644 --- a/compiled/facebook-www/ReactART-prod.classic.js +++ b/compiled/facebook-www/ReactART-prod.classic.js @@ -62,6 +62,7 @@ function formatProdErrorMessage(code) { var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, dynamicFeatureFlags = require("ReactFeatureFlags"), + enableBigIntSupport = dynamicFeatureFlags.enableBigIntSupport, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, enableUseRefAccessWarning = dynamicFeatureFlags.enableUseRefAccessWarning, enableLazyContextPropagation = @@ -2032,7 +2033,8 @@ function createChildReconciler(shouldTrackSideEffects) { function createChild(returnFiber, newChild, lanes) { if ( ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild + "number" === typeof newChild || + (enableBigIntSupport && "bigint" === typeof newChild) ) return ( (newChild = createFiberFromText( @@ -2100,7 +2102,8 @@ function createChildReconciler(shouldTrackSideEffects) { var key = null !== oldFiber ? oldFiber.key : null; if ( ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild + "number" === typeof newChild || + (enableBigIntSupport && "bigint" === typeof newChild) ) return null !== key ? null @@ -2152,7 +2155,8 @@ function createChildReconciler(shouldTrackSideEffects) { ) { if ( ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild + "number" === typeof newChild || + (enableBigIntSupport && "bigint" === typeof newChild) ) return ( (existingChildren = existingChildren.get(newIdx) || null), @@ -2529,7 +2533,8 @@ function createChildReconciler(shouldTrackSideEffects) { throwOnInvalidObjectType(returnFiber, newChild); } return ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild + "number" === typeof newChild || + (enableBigIntSupport && "bigint" === typeof newChild) ? ((newChild = "" + newChild), null !== currentFirstChild && 6 === currentFirstChild.tag ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), @@ -10636,7 +10641,7 @@ var slice = Array.prototype.slice, return null; }, bundleType: 0, - version: "18.3.0-www-classic-4a28a0e2", + version: "18.3.0-www-classic-0830bd6c", rendererPackageName: "react-art" }; var internals$jscomp$inline_1320 = { @@ -10667,7 +10672,7 @@ var internals$jscomp$inline_1320 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-classic-4a28a0e2" + reconcilerVersion: "18.3.0-www-classic-0830bd6c" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1321 = __REACT_DEVTOOLS_GLOBAL_HOOK__; diff --git a/compiled/facebook-www/ReactART-prod.modern.js b/compiled/facebook-www/ReactART-prod.modern.js index 861baf9cb082e..2a8a69a85ae8f 100644 --- a/compiled/facebook-www/ReactART-prod.modern.js +++ b/compiled/facebook-www/ReactART-prod.modern.js @@ -62,6 +62,7 @@ function formatProdErrorMessage(code) { var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, dynamicFeatureFlags = require("ReactFeatureFlags"), + enableBigIntSupport = dynamicFeatureFlags.enableBigIntSupport, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, enableUseRefAccessWarning = dynamicFeatureFlags.enableUseRefAccessWarning, enableLazyContextPropagation = @@ -1828,7 +1829,8 @@ function createChildReconciler(shouldTrackSideEffects) { function createChild(returnFiber, newChild, lanes) { if ( ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild + "number" === typeof newChild || + (enableBigIntSupport && "bigint" === typeof newChild) ) return ( (newChild = createFiberFromText( @@ -1896,7 +1898,8 @@ function createChildReconciler(shouldTrackSideEffects) { var key = null !== oldFiber ? oldFiber.key : null; if ( ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild + "number" === typeof newChild || + (enableBigIntSupport && "bigint" === typeof newChild) ) return null !== key ? null @@ -1948,7 +1951,8 @@ function createChildReconciler(shouldTrackSideEffects) { ) { if ( ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild + "number" === typeof newChild || + (enableBigIntSupport && "bigint" === typeof newChild) ) return ( (existingChildren = existingChildren.get(newIdx) || null), @@ -2325,7 +2329,8 @@ function createChildReconciler(shouldTrackSideEffects) { throwOnInvalidObjectType(returnFiber, newChild); } return ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild + "number" === typeof newChild || + (enableBigIntSupport && "bigint" === typeof newChild) ? ((newChild = "" + newChild), null !== currentFirstChild && 6 === currentFirstChild.tag ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), @@ -10291,7 +10296,7 @@ var slice = Array.prototype.slice, return null; }, bundleType: 0, - version: "18.3.0-www-modern-258ee101", + version: "18.3.0-www-modern-c6c114f4", rendererPackageName: "react-art" }; var internals$jscomp$inline_1300 = { @@ -10322,7 +10327,7 @@ var internals$jscomp$inline_1300 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-modern-258ee101" + reconcilerVersion: "18.3.0-www-modern-c6c114f4" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1301 = __REACT_DEVTOOLS_GLOBAL_HOOK__; diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index 7c3f729e36bd5..c9a011fcf5897 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -125,6 +125,7 @@ if (__DEV__) { var disableInputAttributeSyncing = dynamicFeatureFlags.disableInputAttributeSyncing, disableIEWorkarounds = dynamicFeatureFlags.disableIEWorkarounds, + enableBigIntSupport = dynamicFeatureFlags.enableBigIntSupport, enableTrustedTypesIntegration = dynamicFeatureFlags.enableTrustedTypesIntegration, enableLegacyFBSupport = dynamicFeatureFlags.enableLegacyFBSupport, @@ -165,7 +166,6 @@ if (__DEV__) { var enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler; var enableSuspenseCallback = true; - var enableBigIntSupport = false; // TODO: Roll out with GK. Don't keep as dynamic flag for too long, though, var FunctionComponent = 0; var ClassComponent = 1; @@ -3834,10 +3834,11 @@ if (__DEV__) { } function getToStringValue(value) { switch (typeof value) { - case "bigint": { - // bigint is assigned as empty string - return ""; - } + case "bigint": + if (!enableBigIntSupport) { + // bigint is assigned as empty string + return ""; + } // fallthrough for BigInt support @@ -4463,7 +4464,7 @@ if (__DEV__) { if ( typeof child === "string" || typeof child === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof child === "bigint") ) { return; } @@ -11609,7 +11610,7 @@ if (__DEV__) { if ( (typeof newChild === "string" && newChild !== "") || typeof newChild === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof newChild === "bigint") ) { // Text nodes don't have keys. If the previous node is implicitly keyed // we can continue to replace it without aborting even if it is not a text @@ -11744,7 +11745,7 @@ if (__DEV__) { if ( (typeof newChild === "string" && newChild !== "") || typeof newChild === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof newChild === "bigint") ) { // Text nodes don't have keys. If the previous node is implicitly keyed // we can continue to replace it without aborting even if it is not a text @@ -11871,7 +11872,7 @@ if (__DEV__) { if ( (typeof newChild === "string" && newChild !== "") || typeof newChild === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof newChild === "bigint") ) { // Text nodes don't have keys, so we neither have to check the old nor // new node for the key. If both are text nodes, they match. @@ -12750,7 +12751,7 @@ if (__DEV__) { if ( (typeof newChild === "string" && newChild !== "") || typeof newChild === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof newChild === "bigint") ) { return placeSingleChild( reconcileSingleTextNode( @@ -35848,7 +35849,7 @@ if (__DEV__) { return root; } - var ReactVersion = "18.3.0-www-classic-a4741cbf"; + var ReactVersion = "18.3.0-www-classic-316f7f5a"; function createPortal$1( children, @@ -40671,7 +40672,10 @@ if (__DEV__) { if (canSetTextContent) { setTextContent(domElement, value); } - } else if (typeof value === "number" || enableBigIntSupport) { + } else if ( + typeof value === "number" || + (enableBigIntSupport && typeof value === "bigint") + ) { { // $FlowFixMe[unsafe-addition] Flow doesn't want us to use `+` operator with string and bigint validateTextNesting("" + value, tag); @@ -41329,7 +41333,10 @@ if (__DEV__) { case "children": { if (typeof value === "string") { setTextContent(domElement, value); - } else if (typeof value === "number" || enableBigIntSupport) { + } else if ( + typeof value === "number" || + (enableBigIntSupport && typeof value === "bigint") + ) { // $FlowFixMe[unsafe-addition] Flow doesn't want us to use `+` operator with string and bigint setTextContent(domElement, "" + value); } @@ -43506,7 +43513,7 @@ if (__DEV__) { if ( typeof children === "string" || typeof children === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof children === "bigint") ) { // $FlowFixMe[unsafe-addition] Flow doesn't want us to use `+` operator with string and bigint if (domElement.textContent !== "" + children) { @@ -44135,7 +44142,7 @@ if (__DEV__) { type === "noscript" || typeof props.children === "string" || typeof props.children === "number" || - enableBigIntSupport || + (enableBigIntSupport && typeof props.children === "bigint") || (typeof props.dangerouslySetInnerHTML === "object" && props.dangerouslySetInnerHTML !== null && props.dangerouslySetInnerHTML.__html != null) diff --git a/compiled/facebook-www/ReactDOM-dev.modern.js b/compiled/facebook-www/ReactDOM-dev.modern.js index 9f84754d2ba7c..2fd2ad4edc4b6 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -120,6 +120,7 @@ if (__DEV__) { var disableInputAttributeSyncing = dynamicFeatureFlags.disableInputAttributeSyncing, disableIEWorkarounds = dynamicFeatureFlags.disableIEWorkarounds, + enableBigIntSupport = dynamicFeatureFlags.enableBigIntSupport, enableTrustedTypesIntegration = dynamicFeatureFlags.enableTrustedTypesIntegration, enableLegacyFBSupport = dynamicFeatureFlags.enableLegacyFBSupport, @@ -160,7 +161,6 @@ if (__DEV__) { var enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler; var enableSuspenseCallback = true; - var enableBigIntSupport = false; // TODO: Roll out with GK. Don't keep as dynamic flag for too long, though, var assign = Object.assign; @@ -3688,10 +3688,11 @@ if (__DEV__) { } function getToStringValue(value) { switch (typeof value) { - case "bigint": { - // bigint is assigned as empty string - return ""; - } + case "bigint": + if (!enableBigIntSupport) { + // bigint is assigned as empty string + return ""; + } // fallthrough for BigInt support @@ -4317,7 +4318,7 @@ if (__DEV__) { if ( typeof child === "string" || typeof child === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof child === "bigint") ) { return; } @@ -11571,7 +11572,7 @@ if (__DEV__) { if ( (typeof newChild === "string" && newChild !== "") || typeof newChild === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof newChild === "bigint") ) { // Text nodes don't have keys. If the previous node is implicitly keyed // we can continue to replace it without aborting even if it is not a text @@ -11706,7 +11707,7 @@ if (__DEV__) { if ( (typeof newChild === "string" && newChild !== "") || typeof newChild === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof newChild === "bigint") ) { // Text nodes don't have keys. If the previous node is implicitly keyed // we can continue to replace it without aborting even if it is not a text @@ -11833,7 +11834,7 @@ if (__DEV__) { if ( (typeof newChild === "string" && newChild !== "") || typeof newChild === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof newChild === "bigint") ) { // Text nodes don't have keys, so we neither have to check the old nor // new node for the key. If both are text nodes, they match. @@ -12712,7 +12713,7 @@ if (__DEV__) { if ( (typeof newChild === "string" && newChild !== "") || typeof newChild === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof newChild === "bigint") ) { return placeSingleChild( reconcileSingleTextNode( @@ -35695,7 +35696,7 @@ if (__DEV__) { return root; } - var ReactVersion = "18.3.0-www-modern-b40b205c"; + var ReactVersion = "18.3.0-www-modern-55f668d0"; function createPortal$1( children, @@ -41324,7 +41325,10 @@ if (__DEV__) { if (canSetTextContent) { setTextContent(domElement, value); } - } else if (typeof value === "number" || enableBigIntSupport) { + } else if ( + typeof value === "number" || + (enableBigIntSupport && typeof value === "bigint") + ) { { // $FlowFixMe[unsafe-addition] Flow doesn't want us to use `+` operator with string and bigint validateTextNesting("" + value, tag); @@ -41982,7 +41986,10 @@ if (__DEV__) { case "children": { if (typeof value === "string") { setTextContent(domElement, value); - } else if (typeof value === "number" || enableBigIntSupport) { + } else if ( + typeof value === "number" || + (enableBigIntSupport && typeof value === "bigint") + ) { // $FlowFixMe[unsafe-addition] Flow doesn't want us to use `+` operator with string and bigint setTextContent(domElement, "" + value); } @@ -44151,7 +44158,7 @@ if (__DEV__) { if ( typeof children === "string" || typeof children === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof children === "bigint") ) { // $FlowFixMe[unsafe-addition] Flow doesn't want us to use `+` operator with string and bigint if (domElement.textContent !== "" + children) { @@ -44761,7 +44768,7 @@ if (__DEV__) { type === "noscript" || typeof props.children === "string" || typeof props.children === "number" || - enableBigIntSupport || + (enableBigIntSupport && typeof props.children === "bigint") || (typeof props.dangerouslySetInnerHTML === "object" && props.dangerouslySetInnerHTML !== null && props.dangerouslySetInnerHTML.__html != null) diff --git a/compiled/facebook-www/ReactDOM-prod.classic.js b/compiled/facebook-www/ReactDOM-prod.classic.js index 3ede038e824f7..21d1bc0042ef3 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -38,6 +38,7 @@ var ReactSharedInternals = disableInputAttributeSyncing = dynamicFeatureFlags.disableInputAttributeSyncing, disableIEWorkarounds = dynamicFeatureFlags.disableIEWorkarounds, + enableBigIntSupport = dynamicFeatureFlags.enableBigIntSupport, enableTrustedTypesIntegration = dynamicFeatureFlags.enableTrustedTypesIntegration, enableLegacyFBSupport = dynamicFeatureFlags.enableLegacyFBSupport, @@ -1020,7 +1021,7 @@ function getStackByFiberInDevAndProd(workInProgress) { function getToStringValue(value) { switch (typeof value) { case "bigint": - return ""; + if (!enableBigIntSupport) return ""; case "boolean": case "number": case "string": @@ -2766,7 +2767,8 @@ function createChildReconciler(shouldTrackSideEffects) { function createChild(returnFiber, newChild, lanes) { if ( ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild + "number" === typeof newChild || + (enableBigIntSupport && "bigint" === typeof newChild) ) return ( (newChild = createFiberFromText( @@ -2834,7 +2836,8 @@ function createChildReconciler(shouldTrackSideEffects) { var key = null !== oldFiber ? oldFiber.key : null; if ( ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild + "number" === typeof newChild || + (enableBigIntSupport && "bigint" === typeof newChild) ) return null !== key ? null @@ -2886,7 +2889,8 @@ function createChildReconciler(shouldTrackSideEffects) { ) { if ( ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild + "number" === typeof newChild || + (enableBigIntSupport && "bigint" === typeof newChild) ) return ( (existingChildren = existingChildren.get(newIdx) || null), @@ -3273,7 +3277,8 @@ function createChildReconciler(shouldTrackSideEffects) { throwOnInvalidObjectType(returnFiber, newChild); } return ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild + "number" === typeof newChild || + (enableBigIntSupport && "bigint" === typeof newChild) ? ((newChild = "" + newChild), null !== currentFirstChild && 6 === currentFirstChild.tag ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), @@ -14380,7 +14385,8 @@ function setProp(domElement, tag, key, value, props, prevValue) { ? "body" === tag || ("textarea" === tag && "" === value) || setTextContent(domElement, value) - : "number" === typeof value && + : ("number" === typeof value || + (enableBigIntSupport && "bigint" === typeof value)) && "body" !== tag && setTextContent(domElement, "" + value); break; @@ -14712,7 +14718,9 @@ function setPropOnCustomElement(domElement, tag, key, value, props, prevValue) { case "children": "string" === typeof value ? setTextContent(domElement, value) - : "number" === typeof value && setTextContent(domElement, "" + value); + : ("number" === typeof value || + (enableBigIntSupport && "bigint" === typeof value)) && + setTextContent(domElement, "" + value); break; case "onScroll": null != value && listenToNonDelegatedEvent("scroll", domElement); @@ -15359,6 +15367,7 @@ function shouldSetTextContent(type, props) { "noscript" === type || "string" === typeof props.children || "number" === typeof props.children || + (enableBigIntSupport && "bigint" === typeof props.children) || ("object" === typeof props.dangerouslySetInnerHTML && null !== props.dangerouslySetInnerHTML && null != props.dangerouslySetInnerHTML.__html) @@ -15634,9 +15643,10 @@ function hydrateInstance( track(instance); } internalInstanceHandle = props.children; - ("string" !== typeof internalInstanceHandle && - "number" !== typeof internalInstanceHandle) || - instance.textContent === "" + internalInstanceHandle || + ("string" === typeof internalInstanceHandle || + "number" === typeof internalInstanceHandle || + (enableBigIntSupport && "bigint" === typeof internalInstanceHandle)) && + instance.textContent !== "" + internalInstanceHandle && (!0 !== props.suppressHydrationWarning && checkForUnmatchedText( instance.textContent, @@ -17244,7 +17254,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1816 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-6f877b24", + version: "18.3.0-www-classic-08f7844e", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2175 = { @@ -17274,7 +17284,7 @@ var internals$jscomp$inline_2175 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-classic-6f877b24" + reconcilerVersion: "18.3.0-www-classic-08f7844e" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2176 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17605,4 +17615,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactCurrentDispatcher$2.current.useHostTransitionStatus(); }; -exports.version = "18.3.0-www-classic-6f877b24"; +exports.version = "18.3.0-www-classic-08f7844e"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index 5012cfdf2df65..9515a40b4f328 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -51,6 +51,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), disableInputAttributeSyncing = dynamicFeatureFlags.disableInputAttributeSyncing, disableIEWorkarounds = dynamicFeatureFlags.disableIEWorkarounds, + enableBigIntSupport = dynamicFeatureFlags.enableBigIntSupport, enableTrustedTypesIntegration = dynamicFeatureFlags.enableTrustedTypesIntegration, enableLegacyFBSupport = dynamicFeatureFlags.enableLegacyFBSupport, @@ -875,7 +876,7 @@ Symbol.for("react.client.reference"); function getToStringValue(value) { switch (typeof value) { case "bigint": - return ""; + if (!enableBigIntSupport) return ""; case "boolean": case "number": case "string": @@ -2660,7 +2661,8 @@ function createChildReconciler(shouldTrackSideEffects) { function createChild(returnFiber, newChild, lanes) { if ( ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild + "number" === typeof newChild || + (enableBigIntSupport && "bigint" === typeof newChild) ) return ( (newChild = createFiberFromText( @@ -2728,7 +2730,8 @@ function createChildReconciler(shouldTrackSideEffects) { var key = null !== oldFiber ? oldFiber.key : null; if ( ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild + "number" === typeof newChild || + (enableBigIntSupport && "bigint" === typeof newChild) ) return null !== key ? null @@ -2780,7 +2783,8 @@ function createChildReconciler(shouldTrackSideEffects) { ) { if ( ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild + "number" === typeof newChild || + (enableBigIntSupport && "bigint" === typeof newChild) ) return ( (existingChildren = existingChildren.get(newIdx) || null), @@ -3167,7 +3171,8 @@ function createChildReconciler(shouldTrackSideEffects) { throwOnInvalidObjectType(returnFiber, newChild); } return ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild + "number" === typeof newChild || + (enableBigIntSupport && "bigint" === typeof newChild) ? ((newChild = "" + newChild), null !== currentFirstChild && 6 === currentFirstChild.tag ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), @@ -14684,7 +14689,8 @@ function setProp(domElement, tag, key, value, props, prevValue) { ? "body" === tag || ("textarea" === tag && "" === value) || setTextContent(domElement, value) - : "number" === typeof value && + : ("number" === typeof value || + (enableBigIntSupport && "bigint" === typeof value)) && "body" !== tag && setTextContent(domElement, "" + value); break; @@ -15016,7 +15022,9 @@ function setPropOnCustomElement(domElement, tag, key, value, props, prevValue) { case "children": "string" === typeof value ? setTextContent(domElement, value) - : "number" === typeof value && setTextContent(domElement, "" + value); + : ("number" === typeof value || + (enableBigIntSupport && "bigint" === typeof value)) && + setTextContent(domElement, "" + value); break; case "onScroll": null != value && listenToNonDelegatedEvent("scroll", domElement); @@ -15646,6 +15654,7 @@ function shouldSetTextContent(type, props) { "noscript" === type || "string" === typeof props.children || "number" === typeof props.children || + (enableBigIntSupport && "bigint" === typeof props.children) || ("object" === typeof props.dangerouslySetInnerHTML && null !== props.dangerouslySetInnerHTML && null != props.dangerouslySetInnerHTML.__html) @@ -15907,9 +15916,10 @@ function hydrateInstance( track(instance); } internalInstanceHandle = props.children; - ("string" !== typeof internalInstanceHandle && - "number" !== typeof internalInstanceHandle) || - instance.textContent === "" + internalInstanceHandle || + ("string" === typeof internalInstanceHandle || + "number" === typeof internalInstanceHandle || + (enableBigIntSupport && "bigint" === typeof internalInstanceHandle)) && + instance.textContent !== "" + internalInstanceHandle && (!0 !== props.suppressHydrationWarning && checkForUnmatchedText( instance.textContent, @@ -16760,7 +16770,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1775 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-b4cc6665", + version: "18.3.0-www-modern-751684a1", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2139 = { @@ -16791,7 +16801,7 @@ var internals$jscomp$inline_2139 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-modern-b4cc6665" + reconcilerVersion: "18.3.0-www-modern-751684a1" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2140 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17050,4 +17060,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactCurrentDispatcher$2.current.useHostTransitionStatus(); }; -exports.version = "18.3.0-www-modern-b4cc6665"; +exports.version = "18.3.0-www-modern-751684a1"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index 3d35544f77424..00c1e88f8d9df 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -42,6 +42,7 @@ var ReactSharedInternals = disableInputAttributeSyncing = dynamicFeatureFlags.disableInputAttributeSyncing, disableIEWorkarounds = dynamicFeatureFlags.disableIEWorkarounds, + enableBigIntSupport = dynamicFeatureFlags.enableBigIntSupport, enableTrustedTypesIntegration = dynamicFeatureFlags.enableTrustedTypesIntegration, enableLegacyFBSupport = dynamicFeatureFlags.enableLegacyFBSupport, @@ -1156,7 +1157,7 @@ function getStackByFiberInDevAndProd(workInProgress) { function getToStringValue(value) { switch (typeof value) { case "bigint": - return ""; + if (!enableBigIntSupport) return ""; case "boolean": case "number": case "string": @@ -2904,7 +2905,8 @@ function createChildReconciler(shouldTrackSideEffects) { function createChild(returnFiber, newChild, lanes) { if ( ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild + "number" === typeof newChild || + (enableBigIntSupport && "bigint" === typeof newChild) ) return ( (newChild = createFiberFromText( @@ -2972,7 +2974,8 @@ function createChildReconciler(shouldTrackSideEffects) { var key = null !== oldFiber ? oldFiber.key : null; if ( ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild + "number" === typeof newChild || + (enableBigIntSupport && "bigint" === typeof newChild) ) return null !== key ? null @@ -3024,7 +3027,8 @@ function createChildReconciler(shouldTrackSideEffects) { ) { if ( ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild + "number" === typeof newChild || + (enableBigIntSupport && "bigint" === typeof newChild) ) return ( (existingChildren = existingChildren.get(newIdx) || null), @@ -3411,7 +3415,8 @@ function createChildReconciler(shouldTrackSideEffects) { throwOnInvalidObjectType(returnFiber, newChild); } return ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild + "number" === typeof newChild || + (enableBigIntSupport && "bigint" === typeof newChild) ? ((newChild = "" + newChild), null !== currentFirstChild && 6 === currentFirstChild.tag ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), @@ -15127,7 +15132,8 @@ function setProp(domElement, tag, key, value, props, prevValue) { ? "body" === tag || ("textarea" === tag && "" === value) || setTextContent(domElement, value) - : "number" === typeof value && + : ("number" === typeof value || + (enableBigIntSupport && "bigint" === typeof value)) && "body" !== tag && setTextContent(domElement, "" + value); break; @@ -15459,7 +15465,9 @@ function setPropOnCustomElement(domElement, tag, key, value, props, prevValue) { case "children": "string" === typeof value ? setTextContent(domElement, value) - : "number" === typeof value && setTextContent(domElement, "" + value); + : ("number" === typeof value || + (enableBigIntSupport && "bigint" === typeof value)) && + setTextContent(domElement, "" + value); break; case "onScroll": null != value && listenToNonDelegatedEvent("scroll", domElement); @@ -16106,6 +16114,7 @@ function shouldSetTextContent(type, props) { "noscript" === type || "string" === typeof props.children || "number" === typeof props.children || + (enableBigIntSupport && "bigint" === typeof props.children) || ("object" === typeof props.dangerouslySetInnerHTML && null !== props.dangerouslySetInnerHTML && null != props.dangerouslySetInnerHTML.__html) @@ -16381,9 +16390,10 @@ function hydrateInstance( track(instance); } internalInstanceHandle = props.children; - ("string" !== typeof internalInstanceHandle && - "number" !== typeof internalInstanceHandle) || - instance.textContent === "" + internalInstanceHandle || + ("string" === typeof internalInstanceHandle || + "number" === typeof internalInstanceHandle || + (enableBigIntSupport && "bigint" === typeof internalInstanceHandle)) && + instance.textContent !== "" + internalInstanceHandle && (!0 !== props.suppressHydrationWarning && checkForUnmatchedText( instance.textContent, @@ -17991,7 +18001,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1901 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-46238c27", + version: "18.3.0-www-classic-433eac99", rendererPackageName: "react-dom" }; (function (internals) { @@ -18035,7 +18045,7 @@ var devToolsConfig$jscomp$inline_1901 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-classic-46238c27" + reconcilerVersion: "18.3.0-www-classic-433eac99" }); assign(Internals, { ReactBrowserEventEmitter: { @@ -18353,7 +18363,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactCurrentDispatcher$2.current.useHostTransitionStatus(); }; -exports.version = "18.3.0-www-classic-46238c27"; +exports.version = "18.3.0-www-classic-433eac99"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-profiling.modern.js b/compiled/facebook-www/ReactDOM-profiling.modern.js index 03dd751411075..bf28d010da35d 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -55,6 +55,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), disableInputAttributeSyncing = dynamicFeatureFlags.disableInputAttributeSyncing, disableIEWorkarounds = dynamicFeatureFlags.disableIEWorkarounds, + enableBigIntSupport = dynamicFeatureFlags.enableBigIntSupport, enableTrustedTypesIntegration = dynamicFeatureFlags.enableTrustedTypesIntegration, enableLegacyFBSupport = dynamicFeatureFlags.enableLegacyFBSupport, @@ -1011,7 +1012,7 @@ Symbol.for("react.client.reference"); function getToStringValue(value) { switch (typeof value) { case "bigint": - return ""; + if (!enableBigIntSupport) return ""; case "boolean": case "number": case "string": @@ -2798,7 +2799,8 @@ function createChildReconciler(shouldTrackSideEffects) { function createChild(returnFiber, newChild, lanes) { if ( ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild + "number" === typeof newChild || + (enableBigIntSupport && "bigint" === typeof newChild) ) return ( (newChild = createFiberFromText( @@ -2866,7 +2868,8 @@ function createChildReconciler(shouldTrackSideEffects) { var key = null !== oldFiber ? oldFiber.key : null; if ( ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild + "number" === typeof newChild || + (enableBigIntSupport && "bigint" === typeof newChild) ) return null !== key ? null @@ -2918,7 +2921,8 @@ function createChildReconciler(shouldTrackSideEffects) { ) { if ( ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild + "number" === typeof newChild || + (enableBigIntSupport && "bigint" === typeof newChild) ) return ( (existingChildren = existingChildren.get(newIdx) || null), @@ -3305,7 +3309,8 @@ function createChildReconciler(shouldTrackSideEffects) { throwOnInvalidObjectType(returnFiber, newChild); } return ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild + "number" === typeof newChild || + (enableBigIntSupport && "bigint" === typeof newChild) ? ((newChild = "" + newChild), null !== currentFirstChild && 6 === currentFirstChild.tag ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), @@ -15425,7 +15430,8 @@ function setProp(domElement, tag, key, value, props, prevValue) { ? "body" === tag || ("textarea" === tag && "" === value) || setTextContent(domElement, value) - : "number" === typeof value && + : ("number" === typeof value || + (enableBigIntSupport && "bigint" === typeof value)) && "body" !== tag && setTextContent(domElement, "" + value); break; @@ -15757,7 +15763,9 @@ function setPropOnCustomElement(domElement, tag, key, value, props, prevValue) { case "children": "string" === typeof value ? setTextContent(domElement, value) - : "number" === typeof value && setTextContent(domElement, "" + value); + : ("number" === typeof value || + (enableBigIntSupport && "bigint" === typeof value)) && + setTextContent(domElement, "" + value); break; case "onScroll": null != value && listenToNonDelegatedEvent("scroll", domElement); @@ -16387,6 +16395,7 @@ function shouldSetTextContent(type, props) { "noscript" === type || "string" === typeof props.children || "number" === typeof props.children || + (enableBigIntSupport && "bigint" === typeof props.children) || ("object" === typeof props.dangerouslySetInnerHTML && null !== props.dangerouslySetInnerHTML && null != props.dangerouslySetInnerHTML.__html) @@ -16648,9 +16657,10 @@ function hydrateInstance( track(instance); } internalInstanceHandle = props.children; - ("string" !== typeof internalInstanceHandle && - "number" !== typeof internalInstanceHandle) || - instance.textContent === "" + internalInstanceHandle || + ("string" === typeof internalInstanceHandle || + "number" === typeof internalInstanceHandle || + (enableBigIntSupport && "bigint" === typeof internalInstanceHandle)) && + instance.textContent !== "" + internalInstanceHandle && (!0 !== props.suppressHydrationWarning && checkForUnmatchedText( instance.textContent, @@ -17501,7 +17511,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1860 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-f907edbd", + version: "18.3.0-www-modern-b2ca28f2", rendererPackageName: "react-dom" }; (function (internals) { @@ -17546,7 +17556,7 @@ var devToolsConfig$jscomp$inline_1860 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-modern-f907edbd" + reconcilerVersion: "18.3.0-www-modern-b2ca28f2" }); exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; exports.createPortal = function (children, container) { @@ -17792,7 +17802,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactCurrentDispatcher$2.current.useHostTransitionStatus(); }; -exports.version = "18.3.0-www-modern-f907edbd"; +exports.version = "18.3.0-www-modern-b2ca28f2"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOMServer-dev.classic.js b/compiled/facebook-www/ReactDOMServer-dev.classic.js index 3ba82f93861de..095cf551256bc 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-b2ade37f"; + var ReactVersion = "18.3.0-www-classic-93a59024"; // This refers to a WWW module. var warningWWW = require("warning"); @@ -675,14 +675,14 @@ if (__DEV__) { // Re-export dynamic flags from the www version. var dynamicFeatureFlags = require("ReactFeatureFlags"); - var enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, + var enableBigIntSupport = dynamicFeatureFlags.enableBigIntSupport, + enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, enableUseDeferredValueInitialArg = dynamicFeatureFlags.enableUseDeferredValueInitialArg, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, enableNewBooleanProps = dynamicFeatureFlags.enableNewBooleanProps; // On WWW, false is used for a new modern build. - var enableBigIntSupport = false; // TODO: Roll out with GK. Don't keep as dynamic flag for too long, though, // $FlowFixMe[method-unbinding] var hasOwnProperty = Object.prototype.hasOwnProperty; @@ -2286,7 +2286,7 @@ if (__DEV__) { if ( typeof text === "boolean" || typeof text === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof text === "bigint") ) { // this shortcircuit helps perf for types that we know will never have // special characters, especially given that this function is used often @@ -3880,7 +3880,8 @@ if (__DEV__) { !didWarnInvalidOptionChildren && typeof child !== "string" && typeof child !== "number" && - !enableBigIntSupport + ((enableBigIntSupport && typeof child !== "bigint") || + !enableBigIntSupport) ) { didWarnInvalidOptionChildren = true; @@ -5261,7 +5262,7 @@ if (__DEV__) { " which is why Arrays of length greater than 1 are not supported. When using JSX it can be commong to combine text nodes and value nodes." + " For example: hello {nameOfUser}. While not immediately apparent, `children` in this case is an Array with length 2. If your `children` prop" + " is using this form try rewriting it using a template string: {`hello ${nameOfUser}`}.", - "", + enableBigIntSupport ? ", bigint" : "", children.length ); } else if (typeof child === "function" || typeof child === "symbol") { @@ -5272,7 +5273,7 @@ if (__DEV__) { "React expect children of tags to be a string, number%s, or object with a novel `toString` method but found %s instead." + " Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title>" + " tags to a single string value.", - "", + enableBigIntSupport ? ", bigint" : "", childType ); } else if (child && child.toString === {}.toString) { @@ -5282,7 +5283,7 @@ if (__DEV__) { " a React element which never implements a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to" + " be able to convert children of <title> tags to a single string value which is why rendering React elements is not supported. If the `children` of <title> is" + " a React Component try moving the <title> tag into that component. If the `children` of <title> is some HTML markup change it to be Text only to be valid HTML.", - "" + enableBigIntSupport ? ", bigint" : "" ); } else { error( @@ -5290,7 +5291,7 @@ if (__DEV__) { " a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags" + " to a single string value. Using the default `toString` method available on every object is almost certainly an error. Consider whether the `children` of this <title>" + " is an object in error and change it to a string or number value if so. Otherwise implement a `toString` method that React can use to produce a valid <title>.", - "" + enableBigIntSupport ? ", bigint" : "" ); } } @@ -12932,7 +12933,10 @@ if (__DEV__) { return; } - if (typeof node === "number" || enableBigIntSupport) { + if ( + typeof node === "number" || + (enableBigIntSupport && typeof node === "bigint") + ) { var _segment = task.blockedSegment; if (_segment === null); diff --git a/compiled/facebook-www/ReactDOMServer-dev.modern.js b/compiled/facebook-www/ReactDOMServer-dev.modern.js index 9cd3ef7647090..3a94545c6cd11 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-3bc7e633"; + var ReactVersion = "18.3.0-www-modern-f1a2b78e"; // This refers to a WWW module. var warningWWW = require("warning"); @@ -675,14 +675,14 @@ if (__DEV__) { // Re-export dynamic flags from the www version. var dynamicFeatureFlags = require("ReactFeatureFlags"); - var enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, + var enableBigIntSupport = dynamicFeatureFlags.enableBigIntSupport, + enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, enableUseDeferredValueInitialArg = dynamicFeatureFlags.enableUseDeferredValueInitialArg, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, enableNewBooleanProps = dynamicFeatureFlags.enableNewBooleanProps; // On WWW, true is used for a new modern build. - var enableBigIntSupport = false; // TODO: Roll out with GK. Don't keep as dynamic flag for too long, though, // $FlowFixMe[method-unbinding] var hasOwnProperty = Object.prototype.hasOwnProperty; @@ -2286,7 +2286,7 @@ if (__DEV__) { if ( typeof text === "boolean" || typeof text === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof text === "bigint") ) { // this shortcircuit helps perf for types that we know will never have // special characters, especially given that this function is used often @@ -3880,7 +3880,8 @@ if (__DEV__) { !didWarnInvalidOptionChildren && typeof child !== "string" && typeof child !== "number" && - !enableBigIntSupport + ((enableBigIntSupport && typeof child !== "bigint") || + !enableBigIntSupport) ) { didWarnInvalidOptionChildren = true; @@ -5261,7 +5262,7 @@ if (__DEV__) { " which is why Arrays of length greater than 1 are not supported. When using JSX it can be commong to combine text nodes and value nodes." + " For example: <title>hello {nameOfUser}. While not immediately apparent, `children` in this case is an Array with length 2. If your `children` prop" + " is using this form try rewriting it using a template string: {`hello ${nameOfUser}`}.", - "", + enableBigIntSupport ? ", bigint" : "", children.length ); } else if (typeof child === "function" || typeof child === "symbol") { @@ -5272,7 +5273,7 @@ if (__DEV__) { "React expect children of tags to be a string, number%s, or object with a novel `toString` method but found %s instead." + " Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title>" + " tags to a single string value.", - "", + enableBigIntSupport ? ", bigint" : "", childType ); } else if (child && child.toString === {}.toString) { @@ -5282,7 +5283,7 @@ if (__DEV__) { " a React element which never implements a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to" + " be able to convert children of <title> tags to a single string value which is why rendering React elements is not supported. If the `children` of <title> is" + " a React Component try moving the <title> tag into that component. If the `children` of <title> is some HTML markup change it to be Text only to be valid HTML.", - "" + enableBigIntSupport ? ", bigint" : "" ); } else { error( @@ -5290,7 +5291,7 @@ if (__DEV__) { " a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags" + " to a single string value. Using the default `toString` method available on every object is almost certainly an error. Consider whether the `children` of this <title>" + " is an object in error and change it to a string or number value if so. Otherwise implement a `toString` method that React can use to produce a valid <title>.", - "" + enableBigIntSupport ? ", bigint" : "" ); } } @@ -12842,7 +12843,10 @@ if (__DEV__) { return; } - if (typeof node === "number" || enableBigIntSupport) { + if ( + typeof node === "number" || + (enableBigIntSupport && typeof node === "bigint") + ) { var _segment = task.blockedSegment; if (_segment === null); diff --git a/compiled/facebook-www/ReactDOMServer-prod.classic.js b/compiled/facebook-www/ReactDOMServer-prod.classic.js index 7f6564fbc847d..2470724012fcc 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.classic.js +++ b/compiled/facebook-www/ReactDOMServer-prod.classic.js @@ -129,6 +129,7 @@ function murmurhash3_32_gc(key, seed) { } var assign = Object.assign, dynamicFeatureFlags = require("ReactFeatureFlags"), + enableBigIntSupport = dynamicFeatureFlags.enableBigIntSupport, enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, enableUseDeferredValueInitialArg = dynamicFeatureFlags.enableUseDeferredValueInitialArg, @@ -237,7 +238,12 @@ var unitlessNumbers = new Set( ]), matchHtmlRegExp = /["'&<>]/; function escapeTextForBrowser(text) { - if ("boolean" === typeof text || "number" === typeof text) return "" + text; + if ( + "boolean" === typeof text || + "number" === typeof text || + (enableBigIntSupport && "bigint" === typeof text) + ) + return "" + text; text = "" + text; var match = matchHtmlRegExp.exec(text); if (match) { @@ -4540,24 +4546,27 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) { ) ); } - "string" === typeof node$jscomp$0 - ? ((childIndex = task.blockedSegment), + if ("string" === typeof node$jscomp$0) + (childIndex = task.blockedSegment), null !== childIndex && (childIndex.lastPushedText = pushTextInstance( childIndex.chunks, node$jscomp$0, request.renderState, childIndex.lastPushedText - ))) - : "number" === typeof node$jscomp$0 && - ((childIndex = task.blockedSegment), + )); + else if ( + "number" === typeof node$jscomp$0 || + (enableBigIntSupport && "bigint" === typeof node$jscomp$0) + ) + (childIndex = task.blockedSegment), null !== childIndex && (childIndex.lastPushedText = pushTextInstance( childIndex.chunks, "" + node$jscomp$0, request.renderState, childIndex.lastPushedText - ))); + )); } } function renderChildrenArray(request, task, children, childIndex) { @@ -5727,4 +5736,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-3c68b335"; +exports.version = "18.3.0-www-classic-48572e12"; diff --git a/compiled/facebook-www/ReactDOMServer-prod.modern.js b/compiled/facebook-www/ReactDOMServer-prod.modern.js index 84437a1834478..009d479fa9992 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServer-prod.modern.js @@ -129,6 +129,7 @@ function murmurhash3_32_gc(key, seed) { } var assign = Object.assign, dynamicFeatureFlags = require("ReactFeatureFlags"), + enableBigIntSupport = dynamicFeatureFlags.enableBigIntSupport, enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, enableUseDeferredValueInitialArg = dynamicFeatureFlags.enableUseDeferredValueInitialArg, @@ -237,7 +238,12 @@ var unitlessNumbers = new Set( ]), matchHtmlRegExp = /["'&<>]/; function escapeTextForBrowser(text) { - if ("boolean" === typeof text || "number" === typeof text) return "" + text; + if ( + "boolean" === typeof text || + "number" === typeof text || + (enableBigIntSupport && "bigint" === typeof text) + ) + return "" + text; text = "" + text; var match = matchHtmlRegExp.exec(text); if (match) { @@ -4481,24 +4487,27 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) { ) ); } - "string" === typeof node$jscomp$0 - ? ((childIndex = task.blockedSegment), + if ("string" === typeof node$jscomp$0) + (childIndex = task.blockedSegment), null !== childIndex && (childIndex.lastPushedText = pushTextInstance( childIndex.chunks, node$jscomp$0, request.renderState, childIndex.lastPushedText - ))) - : "number" === typeof node$jscomp$0 && - ((childIndex = task.blockedSegment), + )); + else if ( + "number" === typeof node$jscomp$0 || + (enableBigIntSupport && "bigint" === typeof node$jscomp$0) + ) + (childIndex = task.blockedSegment), null !== childIndex && (childIndex.lastPushedText = pushTextInstance( childIndex.chunks, "" + node$jscomp$0, request.renderState, childIndex.lastPushedText - ))); + )); } } function renderChildrenArray(request, task, children, childIndex) { @@ -5668,4 +5677,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-91f48587"; +exports.version = "18.3.0-www-modern-dfe73ea3"; diff --git a/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js b/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js index c6578602ade4b..ae6db8c16acc1 100644 --- a/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js @@ -672,14 +672,14 @@ if (__DEV__) { // Re-export dynamic flags from the www version. var dynamicFeatureFlags = require("ReactFeatureFlags"); - var enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, + var enableBigIntSupport = dynamicFeatureFlags.enableBigIntSupport, + enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, enableUseDeferredValueInitialArg = dynamicFeatureFlags.enableUseDeferredValueInitialArg, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, enableNewBooleanProps = dynamicFeatureFlags.enableNewBooleanProps; // On WWW, true is used for a new modern build. - var enableBigIntSupport = false; // TODO: Roll out with GK. Don't keep as dynamic flag for too long, though, // $FlowFixMe[method-unbinding] var hasOwnProperty = Object.prototype.hasOwnProperty; @@ -2283,7 +2283,7 @@ if (__DEV__) { if ( typeof text === "boolean" || typeof text === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof text === "bigint") ) { // this shortcircuit helps perf for types that we know will never have // special characters, especially given that this function is used often @@ -3877,7 +3877,8 @@ if (__DEV__) { !didWarnInvalidOptionChildren && typeof child !== "string" && typeof child !== "number" && - !enableBigIntSupport + ((enableBigIntSupport && typeof child !== "bigint") || + !enableBigIntSupport) ) { didWarnInvalidOptionChildren = true; @@ -5258,7 +5259,7 @@ if (__DEV__) { " which is why Arrays of length greater than 1 are not supported. When using JSX it can be commong to combine text nodes and value nodes." + " For example: <title>hello {nameOfUser}. While not immediately apparent, `children` in this case is an Array with length 2. If your `children` prop" + " is using this form try rewriting it using a template string: {`hello ${nameOfUser}`}.", - "", + enableBigIntSupport ? ", bigint" : "", children.length ); } else if (typeof child === "function" || typeof child === "symbol") { @@ -5269,7 +5270,7 @@ if (__DEV__) { "React expect children of tags to be a string, number%s, or object with a novel `toString` method but found %s instead." + " Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title>" + " tags to a single string value.", - "", + enableBigIntSupport ? ", bigint" : "", childType ); } else if (child && child.toString === {}.toString) { @@ -5279,7 +5280,7 @@ if (__DEV__) { " a React element which never implements a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to" + " be able to convert children of <title> tags to a single string value which is why rendering React elements is not supported. If the `children` of <title> is" + " a React Component try moving the <title> tag into that component. If the `children` of <title> is some HTML markup change it to be Text only to be valid HTML.", - "" + enableBigIntSupport ? ", bigint" : "" ); } else { error( @@ -5287,7 +5288,7 @@ if (__DEV__) { " a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags" + " to a single string value. Using the default `toString` method available on every object is almost certainly an error. Consider whether the `children` of this <title>" + " is an object in error and change it to a string or number value if so. Otherwise implement a `toString` method that React can use to produce a valid <title>.", - "" + enableBigIntSupport ? ", bigint" : "" ); } } @@ -12723,7 +12724,10 @@ if (__DEV__) { return; } - if (typeof node === "number" || enableBigIntSupport) { + if ( + typeof node === "number" || + (enableBigIntSupport && typeof node === "bigint") + ) { var _segment = task.blockedSegment; if (_segment === null); diff --git a/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js b/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js index 6a4345603fb24..e9ab804b84465 100644 --- a/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js @@ -121,6 +121,7 @@ function writeChunkAndReturn(destination, chunk) { } var assign = Object.assign, dynamicFeatureFlags = require("ReactFeatureFlags"), + enableBigIntSupport = dynamicFeatureFlags.enableBigIntSupport, enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, enableUseDeferredValueInitialArg = dynamicFeatureFlags.enableUseDeferredValueInitialArg, @@ -229,7 +230,12 @@ var unitlessNumbers = new Set( ]), matchHtmlRegExp = /["'&<>]/; function escapeTextForBrowser(text) { - if ("boolean" === typeof text || "number" === typeof text) return "" + text; + if ( + "boolean" === typeof text || + "number" === typeof text || + (enableBigIntSupport && "bigint" === typeof text) + ) + return "" + text; text = "" + text; var match = matchHtmlRegExp.exec(text); if (match) { @@ -4314,24 +4320,27 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) { "). If you meant to render a collection of children, use an array instead." ); } - "string" === typeof node$jscomp$0 - ? ((childIndex = task.blockedSegment), + if ("string" === typeof node$jscomp$0) + (childIndex = task.blockedSegment), null !== childIndex && (childIndex.lastPushedText = pushTextInstance( childIndex.chunks, node$jscomp$0, request.renderState, childIndex.lastPushedText - ))) - : "number" === typeof node$jscomp$0 && - ((childIndex = task.blockedSegment), + )); + else if ( + "number" === typeof node$jscomp$0 || + (enableBigIntSupport && "bigint" === typeof node$jscomp$0) + ) + (childIndex = task.blockedSegment), null !== childIndex && (childIndex.lastPushedText = pushTextInstance( childIndex.chunks, "" + node$jscomp$0, request.renderState, childIndex.lastPushedText - ))); + )); } } function renderChildrenArray(request, task, children, childIndex) { diff --git a/compiled/facebook-www/ReactDOMTesting-dev.classic.js b/compiled/facebook-www/ReactDOMTesting-dev.classic.js index 30f0fbee97e86..9ff939c492981 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.classic.js @@ -117,6 +117,7 @@ if (__DEV__) { var disableInputAttributeSyncing = dynamicFeatureFlags.disableInputAttributeSyncing, disableIEWorkarounds = dynamicFeatureFlags.disableIEWorkarounds, + enableBigIntSupport = dynamicFeatureFlags.enableBigIntSupport, enableTrustedTypesIntegration = dynamicFeatureFlags.enableTrustedTypesIntegration, enableLegacyFBSupport = dynamicFeatureFlags.enableLegacyFBSupport, @@ -157,7 +158,6 @@ if (__DEV__) { var enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler; var enableSuspenseCallback = true; - var enableBigIntSupport = false; // TODO: Roll out with GK. Don't keep as dynamic flag for too long, though, var FunctionComponent = 0; var ClassComponent = 1; @@ -3971,10 +3971,11 @@ if (__DEV__) { } function getToStringValue(value) { switch (typeof value) { - case "bigint": { - // bigint is assigned as empty string - return ""; - } + case "bigint": + if (!enableBigIntSupport) { + // bigint is assigned as empty string + return ""; + } // fallthrough for BigInt support @@ -4600,7 +4601,7 @@ if (__DEV__) { if ( typeof child === "string" || typeof child === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof child === "bigint") ) { return; } @@ -11746,7 +11747,7 @@ if (__DEV__) { if ( (typeof newChild === "string" && newChild !== "") || typeof newChild === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof newChild === "bigint") ) { // Text nodes don't have keys. If the previous node is implicitly keyed // we can continue to replace it without aborting even if it is not a text @@ -11881,7 +11882,7 @@ if (__DEV__) { if ( (typeof newChild === "string" && newChild !== "") || typeof newChild === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof newChild === "bigint") ) { // Text nodes don't have keys. If the previous node is implicitly keyed // we can continue to replace it without aborting even if it is not a text @@ -12008,7 +12009,7 @@ if (__DEV__) { if ( (typeof newChild === "string" && newChild !== "") || typeof newChild === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof newChild === "bigint") ) { // Text nodes don't have keys, so we neither have to check the old nor // new node for the key. If both are text nodes, they match. @@ -12887,7 +12888,7 @@ if (__DEV__) { if ( (typeof newChild === "string" && newChild !== "") || typeof newChild === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof newChild === "bigint") ) { return placeSingleChild( reconcileSingleTextNode( @@ -36472,7 +36473,7 @@ if (__DEV__) { return root; } - var ReactVersion = "18.3.0-www-classic-af285d7f"; + var ReactVersion = "18.3.0-www-classic-3f1a7fba"; function createPortal$1( children, @@ -41295,7 +41296,10 @@ if (__DEV__) { if (canSetTextContent) { setTextContent(domElement, value); } - } else if (typeof value === "number" || enableBigIntSupport) { + } else if ( + typeof value === "number" || + (enableBigIntSupport && typeof value === "bigint") + ) { { // $FlowFixMe[unsafe-addition] Flow doesn't want us to use `+` operator with string and bigint validateTextNesting("" + value, tag); @@ -41953,7 +41957,10 @@ if (__DEV__) { case "children": { if (typeof value === "string") { setTextContent(domElement, value); - } else if (typeof value === "number" || enableBigIntSupport) { + } else if ( + typeof value === "number" || + (enableBigIntSupport && typeof value === "bigint") + ) { // $FlowFixMe[unsafe-addition] Flow doesn't want us to use `+` operator with string and bigint setTextContent(domElement, "" + value); } @@ -44130,7 +44137,7 @@ if (__DEV__) { if ( typeof children === "string" || typeof children === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof children === "bigint") ) { // $FlowFixMe[unsafe-addition] Flow doesn't want us to use `+` operator with string and bigint if (domElement.textContent !== "" + children) { @@ -44759,7 +44766,7 @@ if (__DEV__) { type === "noscript" || typeof props.children === "string" || typeof props.children === "number" || - enableBigIntSupport || + (enableBigIntSupport && typeof props.children === "bigint") || (typeof props.dangerouslySetInnerHTML === "object" && props.dangerouslySetInnerHTML !== null && props.dangerouslySetInnerHTML.__html != null) diff --git a/compiled/facebook-www/ReactDOMTesting-dev.modern.js b/compiled/facebook-www/ReactDOMTesting-dev.modern.js index b8bd055883ad9..2ec878d8ab572 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.modern.js @@ -112,6 +112,7 @@ if (__DEV__) { var disableInputAttributeSyncing = dynamicFeatureFlags.disableInputAttributeSyncing, disableIEWorkarounds = dynamicFeatureFlags.disableIEWorkarounds, + enableBigIntSupport = dynamicFeatureFlags.enableBigIntSupport, enableTrustedTypesIntegration = dynamicFeatureFlags.enableTrustedTypesIntegration, enableLegacyFBSupport = dynamicFeatureFlags.enableLegacyFBSupport, @@ -152,7 +153,6 @@ if (__DEV__) { var enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler; var enableSuspenseCallback = true; - var enableBigIntSupport = false; // TODO: Roll out with GK. Don't keep as dynamic flag for too long, though, var assign = Object.assign; @@ -3825,10 +3825,11 @@ if (__DEV__) { } function getToStringValue(value) { switch (typeof value) { - case "bigint": { - // bigint is assigned as empty string - return ""; - } + case "bigint": + if (!enableBigIntSupport) { + // bigint is assigned as empty string + return ""; + } // fallthrough for BigInt support @@ -4454,7 +4455,7 @@ if (__DEV__) { if ( typeof child === "string" || typeof child === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof child === "bigint") ) { return; } @@ -11708,7 +11709,7 @@ if (__DEV__) { if ( (typeof newChild === "string" && newChild !== "") || typeof newChild === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof newChild === "bigint") ) { // Text nodes don't have keys. If the previous node is implicitly keyed // we can continue to replace it without aborting even if it is not a text @@ -11843,7 +11844,7 @@ if (__DEV__) { if ( (typeof newChild === "string" && newChild !== "") || typeof newChild === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof newChild === "bigint") ) { // Text nodes don't have keys. If the previous node is implicitly keyed // we can continue to replace it without aborting even if it is not a text @@ -11970,7 +11971,7 @@ if (__DEV__) { if ( (typeof newChild === "string" && newChild !== "") || typeof newChild === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof newChild === "bigint") ) { // Text nodes don't have keys, so we neither have to check the old nor // new node for the key. If both are text nodes, they match. @@ -12849,7 +12850,7 @@ if (__DEV__) { if ( (typeof newChild === "string" && newChild !== "") || typeof newChild === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof newChild === "bigint") ) { return placeSingleChild( reconcileSingleTextNode( @@ -36319,7 +36320,7 @@ if (__DEV__) { return root; } - var ReactVersion = "18.3.0-www-modern-50614d36"; + var ReactVersion = "18.3.0-www-modern-faf170e5"; function createPortal$1( children, @@ -41948,7 +41949,10 @@ if (__DEV__) { if (canSetTextContent) { setTextContent(domElement, value); } - } else if (typeof value === "number" || enableBigIntSupport) { + } else if ( + typeof value === "number" || + (enableBigIntSupport && typeof value === "bigint") + ) { { // $FlowFixMe[unsafe-addition] Flow doesn't want us to use `+` operator with string and bigint validateTextNesting("" + value, tag); @@ -42606,7 +42610,10 @@ if (__DEV__) { case "children": { if (typeof value === "string") { setTextContent(domElement, value); - } else if (typeof value === "number" || enableBigIntSupport) { + } else if ( + typeof value === "number" || + (enableBigIntSupport && typeof value === "bigint") + ) { // $FlowFixMe[unsafe-addition] Flow doesn't want us to use `+` operator with string and bigint setTextContent(domElement, "" + value); } @@ -44775,7 +44782,7 @@ if (__DEV__) { if ( typeof children === "string" || typeof children === "number" || - enableBigIntSupport + (enableBigIntSupport && typeof children === "bigint") ) { // $FlowFixMe[unsafe-addition] Flow doesn't want us to use `+` operator with string and bigint if (domElement.textContent !== "" + children) { @@ -45385,7 +45392,7 @@ if (__DEV__) { type === "noscript" || typeof props.children === "string" || typeof props.children === "number" || - enableBigIntSupport || + (enableBigIntSupport && typeof props.children === "bigint") || (typeof props.dangerouslySetInnerHTML === "object" && props.dangerouslySetInnerHTML !== null && props.dangerouslySetInnerHTML.__html != null) diff --git a/compiled/facebook-www/ReactDOMTesting-prod.classic.js b/compiled/facebook-www/ReactDOMTesting-prod.classic.js index ae2824239eb22..56a43b4dfd736 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.classic.js @@ -38,6 +38,7 @@ var ReactSharedInternals = disableInputAttributeSyncing = dynamicFeatureFlags.disableInputAttributeSyncing, disableIEWorkarounds = dynamicFeatureFlags.disableIEWorkarounds, + enableBigIntSupport = dynamicFeatureFlags.enableBigIntSupport, enableTrustedTypesIntegration = dynamicFeatureFlags.enableTrustedTypesIntegration, enableLegacyFBSupport = dynamicFeatureFlags.enableLegacyFBSupport, @@ -1106,7 +1107,7 @@ function getStackByFiberInDevAndProd(workInProgress) { function getToStringValue(value) { switch (typeof value) { case "bigint": - return ""; + if (!enableBigIntSupport) return ""; case "boolean": case "number": case "string": @@ -2852,7 +2853,8 @@ function createChildReconciler(shouldTrackSideEffects) { function createChild(returnFiber, newChild, lanes) { if ( ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild + "number" === typeof newChild || + (enableBigIntSupport && "bigint" === typeof newChild) ) return ( (newChild = createFiberFromText( @@ -2920,7 +2922,8 @@ function createChildReconciler(shouldTrackSideEffects) { var key = null !== oldFiber ? oldFiber.key : null; if ( ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild + "number" === typeof newChild || + (enableBigIntSupport && "bigint" === typeof newChild) ) return null !== key ? null @@ -2972,7 +2975,8 @@ function createChildReconciler(shouldTrackSideEffects) { ) { if ( ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild + "number" === typeof newChild || + (enableBigIntSupport && "bigint" === typeof newChild) ) return ( (existingChildren = existingChildren.get(newIdx) || null), @@ -3359,7 +3363,8 @@ function createChildReconciler(shouldTrackSideEffects) { throwOnInvalidObjectType(returnFiber, newChild); } return ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild + "number" === typeof newChild || + (enableBigIntSupport && "bigint" === typeof newChild) ? ((newChild = "" + newChild), null !== currentFirstChild && 6 === currentFirstChild.tag ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), @@ -14652,7 +14657,8 @@ function setProp(domElement, tag, key, value, props, prevValue) { ? "body" === tag || ("textarea" === tag && "" === value) || setTextContent(domElement, value) - : "number" === typeof value && + : ("number" === typeof value || + (enableBigIntSupport && "bigint" === typeof value)) && "body" !== tag && setTextContent(domElement, "" + value); break; @@ -14984,7 +14990,9 @@ function setPropOnCustomElement(domElement, tag, key, value, props, prevValue) { case "children": "string" === typeof value ? setTextContent(domElement, value) - : "number" === typeof value && setTextContent(domElement, "" + value); + : ("number" === typeof value || + (enableBigIntSupport && "bigint" === typeof value)) && + setTextContent(domElement, "" + value); break; case "onScroll": null != value && listenToNonDelegatedEvent("scroll", domElement); @@ -15631,6 +15639,7 @@ function shouldSetTextContent(type, props) { "noscript" === type || "string" === typeof props.children || "number" === typeof props.children || + (enableBigIntSupport && "bigint" === typeof props.children) || ("object" === typeof props.dangerouslySetInnerHTML && null !== props.dangerouslySetInnerHTML && null != props.dangerouslySetInnerHTML.__html) @@ -15906,9 +15915,10 @@ function hydrateInstance( track(instance); } internalInstanceHandle = props.children; - ("string" !== typeof internalInstanceHandle && - "number" !== typeof internalInstanceHandle) || - instance.textContent === "" + internalInstanceHandle || + ("string" === typeof internalInstanceHandle || + "number" === typeof internalInstanceHandle || + (enableBigIntSupport && "bigint" === typeof internalInstanceHandle)) && + instance.textContent !== "" + internalInstanceHandle && (!0 !== props.suppressHydrationWarning && checkForUnmatchedText( instance.textContent, @@ -17573,7 +17583,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1821 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-07a53cb8", + version: "18.3.0-www-classic-b4c99f99", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2187 = { @@ -17603,7 +17613,7 @@ var internals$jscomp$inline_2187 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-classic-07a53cb8" + reconcilerVersion: "18.3.0-www-classic-b4c99f99" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2188 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -18085,4 +18095,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactCurrentDispatcher$2.current.useHostTransitionStatus(); }; -exports.version = "18.3.0-www-classic-07a53cb8"; +exports.version = "18.3.0-www-classic-b4c99f99"; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.modern.js b/compiled/facebook-www/ReactDOMTesting-prod.modern.js index 7e6177e73f9db..9527c619ddac1 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.modern.js @@ -51,6 +51,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), disableInputAttributeSyncing = dynamicFeatureFlags.disableInputAttributeSyncing, disableIEWorkarounds = dynamicFeatureFlags.disableIEWorkarounds, + enableBigIntSupport = dynamicFeatureFlags.enableBigIntSupport, enableTrustedTypesIntegration = dynamicFeatureFlags.enableTrustedTypesIntegration, enableLegacyFBSupport = dynamicFeatureFlags.enableLegacyFBSupport, @@ -1022,7 +1023,7 @@ function getComponentNameFromType(type) { function getToStringValue(value) { switch (typeof value) { case "bigint": - return ""; + if (!enableBigIntSupport) return ""; case "boolean": case "number": case "string": @@ -2807,7 +2808,8 @@ function createChildReconciler(shouldTrackSideEffects) { function createChild(returnFiber, newChild, lanes) { if ( ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild + "number" === typeof newChild || + (enableBigIntSupport && "bigint" === typeof newChild) ) return ( (newChild = createFiberFromText( @@ -2875,7 +2877,8 @@ function createChildReconciler(shouldTrackSideEffects) { var key = null !== oldFiber ? oldFiber.key : null; if ( ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild + "number" === typeof newChild || + (enableBigIntSupport && "bigint" === typeof newChild) ) return null !== key ? null @@ -2927,7 +2930,8 @@ function createChildReconciler(shouldTrackSideEffects) { ) { if ( ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild + "number" === typeof newChild || + (enableBigIntSupport && "bigint" === typeof newChild) ) return ( (existingChildren = existingChildren.get(newIdx) || null), @@ -3314,7 +3318,8 @@ function createChildReconciler(shouldTrackSideEffects) { throwOnInvalidObjectType(returnFiber, newChild); } return ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild + "number" === typeof newChild || + (enableBigIntSupport && "bigint" === typeof newChild) ? ((newChild = "" + newChild), null !== currentFirstChild && 6 === currentFirstChild.tag ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), @@ -15017,7 +15022,8 @@ function setProp(domElement, tag, key, value, props, prevValue) { ? "body" === tag || ("textarea" === tag && "" === value) || setTextContent(domElement, value) - : "number" === typeof value && + : ("number" === typeof value || + (enableBigIntSupport && "bigint" === typeof value)) && "body" !== tag && setTextContent(domElement, "" + value); break; @@ -15349,7 +15355,9 @@ function setPropOnCustomElement(domElement, tag, key, value, props, prevValue) { case "children": "string" === typeof value ? setTextContent(domElement, value) - : "number" === typeof value && setTextContent(domElement, "" + value); + : ("number" === typeof value || + (enableBigIntSupport && "bigint" === typeof value)) && + setTextContent(domElement, "" + value); break; case "onScroll": null != value && listenToNonDelegatedEvent("scroll", domElement); @@ -15979,6 +15987,7 @@ function shouldSetTextContent(type, props) { "noscript" === type || "string" === typeof props.children || "number" === typeof props.children || + (enableBigIntSupport && "bigint" === typeof props.children) || ("object" === typeof props.dangerouslySetInnerHTML && null !== props.dangerouslySetInnerHTML && null != props.dangerouslySetInnerHTML.__html) @@ -16240,9 +16249,10 @@ function hydrateInstance( track(instance); } internalInstanceHandle = props.children; - ("string" !== typeof internalInstanceHandle && - "number" !== typeof internalInstanceHandle) || - instance.textContent === "" + internalInstanceHandle || + ("string" === typeof internalInstanceHandle || + "number" === typeof internalInstanceHandle || + (enableBigIntSupport && "bigint" === typeof internalInstanceHandle)) && + instance.textContent !== "" + internalInstanceHandle && (!0 !== props.suppressHydrationWarning && checkForUnmatchedText( instance.textContent, @@ -17150,7 +17160,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1780 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-5490b2e4", + version: "18.3.0-www-modern-b06bf11a", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2150 = { @@ -17181,7 +17191,7 @@ var internals$jscomp$inline_2150 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-modern-5490b2e4" + reconcilerVersion: "18.3.0-www-modern-b06bf11a" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2151 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17590,4 +17600,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactCurrentDispatcher$2.current.useHostTransitionStatus(); }; -exports.version = "18.3.0-www-modern-5490b2e4"; +exports.version = "18.3.0-www-modern-b06bf11a"; diff --git a/compiled/facebook-www/ReactServer-dev.modern.js b/compiled/facebook-www/ReactServer-dev.modern.js index 7a6c36c8e166d..71201f74b8d51 100644 --- a/compiled/facebook-www/ReactServer-dev.modern.js +++ b/compiled/facebook-www/ReactServer-dev.modern.js @@ -82,7 +82,8 @@ if (__DEV__) { // Re-export dynamic flags from the www version. var dynamicFeatureFlags = require("ReactFeatureFlags"); - var enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, + var enableBigIntSupport = dynamicFeatureFlags.enableBigIntSupport, + enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp; @@ -2028,9 +2029,10 @@ if (__DEV__) { invokeCallback = true; } else { switch (type) { - case "bigint": { - break; - } + case "bigint": + if (!enableBigIntSupport) { + break; + } // fallthrough for enabled BigInt support @@ -2816,7 +2818,7 @@ if (__DEV__) { console["error"](error); }; - var ReactVersion = "18.3.0-www-modern-55553c83"; + var ReactVersion = "18.3.0-www-modern-72047d6a"; // Patch fetch var Children = { diff --git a/compiled/facebook-www/ReactServer-prod.modern.js b/compiled/facebook-www/ReactServer-prod.modern.js index 51f1ecfbac65c..f1c50ed97776e 100644 --- a/compiled/facebook-www/ReactServer-prod.modern.js +++ b/compiled/facebook-www/ReactServer-prod.modern.js @@ -13,6 +13,7 @@ "use strict"; var assign = Object.assign, dynamicFeatureFlags = require("ReactFeatureFlags"), + enableBigIntSupport = dynamicFeatureFlags.enableBigIntSupport, enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, ReactCurrentCache = { current: null }, @@ -168,6 +169,8 @@ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) { if (null === children) invokeCallback = !0; else switch (type) { + case "bigint": + if (!enableBigIntSupport) break; case "string": case "number": invokeCallback = !0; @@ -531,4 +534,4 @@ exports.useId = function () { exports.useMemo = function (create, deps) { return ReactCurrentDispatcher.current.useMemo(create, deps); }; -exports.version = "18.3.0-www-modern-f7a50bfd"; +exports.version = "18.3.0-www-modern-45ed407b"; diff --git a/compiled/facebook-www/ReactTestRenderer-dev.classic.js b/compiled/facebook-www/ReactTestRenderer-dev.classic.js index 3ddca213f1a5d..312fd632d010f 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.classic.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.classic.js @@ -144,7 +144,6 @@ if (__DEV__) { var enableLegacyHidden = false; var enableAsyncActions = true; var alwaysThrottleRetries = true; - var enableBigIntSupport = false; // Flow magic to verify the exports of this file match the original version. var FunctionComponent = 0; var ClassComponent = 1; @@ -5773,7 +5772,7 @@ if (__DEV__) { if ( (typeof newChild === "string" && newChild !== "") || typeof newChild === "number" || - enableBigIntSupport + typeof newChild === "bigint" ) { // Text nodes don't have keys. If the previous node is implicitly keyed // we can continue to replace it without aborting even if it is not a text @@ -5908,7 +5907,7 @@ if (__DEV__) { if ( (typeof newChild === "string" && newChild !== "") || typeof newChild === "number" || - enableBigIntSupport + typeof newChild === "bigint" ) { // Text nodes don't have keys. If the previous node is implicitly keyed // we can continue to replace it without aborting even if it is not a text @@ -6035,7 +6034,7 @@ if (__DEV__) { if ( (typeof newChild === "string" && newChild !== "") || typeof newChild === "number" || - enableBigIntSupport + typeof newChild === "bigint" ) { // Text nodes don't have keys, so we neither have to check the old nor // new node for the key. If both are text nodes, they match. @@ -6884,7 +6883,7 @@ if (__DEV__) { if ( (typeof newChild === "string" && newChild !== "") || typeof newChild === "number" || - enableBigIntSupport + typeof newChild === "bigint" ) { return placeSingleChild( reconcileSingleTextNode( @@ -26121,7 +26120,7 @@ if (__DEV__) { return root; } - var ReactVersion = "18.3.0-www-classic-b4e20a4e"; + var ReactVersion = "18.3.0-www-classic-eec8ae64"; // Might add PROFILE later. diff --git a/compiled/facebook-www/ReactTestRenderer-dev.modern.js b/compiled/facebook-www/ReactTestRenderer-dev.modern.js index adfe0941c5664..d9da77ace8a04 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.modern.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.modern.js @@ -144,7 +144,6 @@ if (__DEV__) { var enableLegacyHidden = false; var enableAsyncActions = true; var alwaysThrottleRetries = true; - var enableBigIntSupport = false; // Flow magic to verify the exports of this file match the original version. var FunctionComponent = 0; var ClassComponent = 1; @@ -5773,7 +5772,7 @@ if (__DEV__) { if ( (typeof newChild === "string" && newChild !== "") || typeof newChild === "number" || - enableBigIntSupport + typeof newChild === "bigint" ) { // Text nodes don't have keys. If the previous node is implicitly keyed // we can continue to replace it without aborting even if it is not a text @@ -5908,7 +5907,7 @@ if (__DEV__) { if ( (typeof newChild === "string" && newChild !== "") || typeof newChild === "number" || - enableBigIntSupport + typeof newChild === "bigint" ) { // Text nodes don't have keys. If the previous node is implicitly keyed // we can continue to replace it without aborting even if it is not a text @@ -6035,7 +6034,7 @@ if (__DEV__) { if ( (typeof newChild === "string" && newChild !== "") || typeof newChild === "number" || - enableBigIntSupport + typeof newChild === "bigint" ) { // Text nodes don't have keys, so we neither have to check the old nor // new node for the key. If both are text nodes, they match. @@ -6884,7 +6883,7 @@ if (__DEV__) { if ( (typeof newChild === "string" && newChild !== "") || typeof newChild === "number" || - enableBigIntSupport + typeof newChild === "bigint" ) { return placeSingleChild( reconcileSingleTextNode( @@ -26121,7 +26120,7 @@ if (__DEV__) { return root; } - var ReactVersion = "18.3.0-www-modern-a232ff0d"; + var ReactVersion = "18.3.0-www-modern-40ae5516"; // Might add PROFILE later.