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: