From b8dcf8dec72217b89fdd2219c41c725dbf37ee3e Mon Sep 17 00:00:00 2001 From: mofeiZ Date: Wed, 30 Apr 2025 12:57:02 -0700 Subject: [PATCH] [compiler][bugfix] Returned functions are not always frozen (#33047) Fixes an edge case in React Compiler's effects inference model. Returned values should only be typed as 'frozen' if they are (1) local and (2) not a function expression which may capture and mutate this function's outer context. See test fixtures for details --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/33047). * #32765 * #32747 * __->__ #33047 DiffTrain build for [12f4cb85c5847758ece81fc95b7eaedc1fb9ebd0](https://github.com/facebook/react/commit/12f4cb85c5847758ece81fc95b7eaedc1fb9ebd0) --- compiled/eslint-plugin-react-hooks/index.js | 25 ++++++++++++------- compiled/facebook-www/REVISION | 2 +- compiled/facebook-www/REVISION_TRANSFORMS | 2 +- compiled/facebook-www/React-dev.classic.js | 2 +- compiled/facebook-www/React-dev.modern.js | 2 +- compiled/facebook-www/React-prod.classic.js | 2 +- compiled/facebook-www/React-prod.modern.js | 2 +- .../facebook-www/React-profiling.classic.js | 2 +- .../facebook-www/React-profiling.modern.js | 2 +- compiled/facebook-www/ReactART-dev.classic.js | 6 ++--- compiled/facebook-www/ReactART-dev.modern.js | 6 ++--- .../facebook-www/ReactART-prod.classic.js | 6 ++--- compiled/facebook-www/ReactART-prod.modern.js | 6 ++--- compiled/facebook-www/ReactDOM-dev.classic.js | 10 ++++---- compiled/facebook-www/ReactDOM-dev.modern.js | 10 ++++---- .../facebook-www/ReactDOM-prod.classic.js | 10 ++++---- compiled/facebook-www/ReactDOM-prod.modern.js | 10 ++++---- .../ReactDOM-profiling.classic.js | 10 ++++---- .../facebook-www/ReactDOM-profiling.modern.js | 10 ++++---- .../ReactDOMServer-dev.classic.js | 2 +- .../facebook-www/ReactDOMServer-dev.modern.js | 2 +- .../ReactDOMServer-prod.classic.js | 2 +- .../ReactDOMServer-prod.modern.js | 2 +- .../ReactDOMTesting-dev.classic.js | 10 ++++---- .../ReactDOMTesting-dev.modern.js | 10 ++++---- .../ReactDOMTesting-prod.classic.js | 10 ++++---- .../ReactDOMTesting-prod.modern.js | 10 ++++---- .../ReactReconciler-dev.classic.js | 2 +- .../ReactReconciler-dev.modern.js | 2 +- .../ReactReconciler-prod.classic.js | 2 +- .../ReactReconciler-prod.modern.js | 2 +- .../ReactTestRenderer-dev.classic.js | 6 ++--- .../ReactTestRenderer-dev.modern.js | 6 ++--- compiled/facebook-www/VERSION_CLASSIC | 2 +- compiled/facebook-www/VERSION_MODERN | 2 +- 35 files changed, 102 insertions(+), 95 deletions(-) diff --git a/compiled/eslint-plugin-react-hooks/index.js b/compiled/eslint-plugin-react-hooks/index.js index e9dcd6e045..54b8d42fdb 100644 --- a/compiled/eslint-plugin-react-hooks/index.js +++ b/compiled/eslint-plugin-react-hooks/index.js @@ -45941,7 +45941,7 @@ function getWriteErrorReason(abstractValue) { } } -var _InferenceState_values, _InferenceState_variables; +var _InferenceState_isFunctionExpression, _InferenceState_values, _InferenceState_variables; const UndefinedValue = { kind: 'Primitive', loc: GeneratedSource, @@ -45949,7 +45949,7 @@ const UndefinedValue = { }; function inferReferenceEffects(fn, options = { isFunctionExpression: false }) { var _a; - const initialState = InferenceState.empty(fn.env); + const initialState = InferenceState.empty(fn.env, options.isFunctionExpression); const value = { kind: 'Primitive', loc: fn.loc, @@ -46070,15 +46070,20 @@ function inferReferenceEffects(fn, options = { isFunctionExpression: false }) { } } class InferenceState { - constructor(env, values, variables) { + constructor(env, isFunctionExpression, values, variables) { + _InferenceState_isFunctionExpression.set(this, void 0); _InferenceState_values.set(this, void 0); _InferenceState_variables.set(this, void 0); this.env = env; + __classPrivateFieldSet(this, _InferenceState_isFunctionExpression, isFunctionExpression, "f"); __classPrivateFieldSet(this, _InferenceState_values, values, "f"); __classPrivateFieldSet(this, _InferenceState_variables, variables, "f"); } - static empty(env) { - return new InferenceState(env, new Map(), new Map()); + static empty(env, isFunctionExpression) { + return new InferenceState(env, isFunctionExpression, new Map(), new Map()); + } + get isFunctionExpression() { + return __classPrivateFieldGet(this, _InferenceState_isFunctionExpression, "f"); } initialize(value, kind) { CompilerError.invariant(value.kind !== 'LoadLocal', { @@ -46332,11 +46337,11 @@ class InferenceState { return null; } else { - return new InferenceState(this.env, nextValues !== null && nextValues !== void 0 ? nextValues : new Map(__classPrivateFieldGet(this, _InferenceState_values, "f")), nextVariables !== null && nextVariables !== void 0 ? nextVariables : new Map(__classPrivateFieldGet(this, _InferenceState_variables, "f"))); + return new InferenceState(this.env, __classPrivateFieldGet(this, _InferenceState_isFunctionExpression, "f"), nextValues !== null && nextValues !== void 0 ? nextValues : new Map(__classPrivateFieldGet(this, _InferenceState_values, "f")), nextVariables !== null && nextVariables !== void 0 ? nextVariables : new Map(__classPrivateFieldGet(this, _InferenceState_variables, "f"))); } } clone() { - return new InferenceState(this.env, new Map(__classPrivateFieldGet(this, _InferenceState_values, "f")), new Map(__classPrivateFieldGet(this, _InferenceState_variables, "f"))); + return new InferenceState(this.env, __classPrivateFieldGet(this, _InferenceState_isFunctionExpression, "f"), new Map(__classPrivateFieldGet(this, _InferenceState_values, "f")), new Map(__classPrivateFieldGet(this, _InferenceState_variables, "f"))); } debug() { const result = { values: {}, variables: {} }; @@ -46373,7 +46378,7 @@ class InferenceState { } } } -_InferenceState_values = new WeakMap(), _InferenceState_variables = new WeakMap(); +_InferenceState_isFunctionExpression = new WeakMap(), _InferenceState_values = new WeakMap(), _InferenceState_variables = new WeakMap(); function inferParam(param, initialState, paramKind) { let value; let place; @@ -47064,7 +47069,9 @@ function inferBlock(env, state, block, functionEffects) { let effect; if (block.terminal.kind === 'return' || block.terminal.kind === 'throw') { if (state.isDefined(operand) && - state.kind(operand).kind === ValueKind.Context) { + ((operand.identifier.type.kind === 'Function' && + state.isFunctionExpression) || + state.kind(operand).kind === ValueKind.Context)) { effect = Effect.ConditionallyMutate; } else { diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index 7a2bc1470e..0e7f46eabd 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -49ea8bf5698f017022517be79f5f53e6f6a4dad3 +12f4cb85c5847758ece81fc95b7eaedc1fb9ebd0 diff --git a/compiled/facebook-www/REVISION_TRANSFORMS b/compiled/facebook-www/REVISION_TRANSFORMS index 7a2bc1470e..0e7f46eabd 100644 --- a/compiled/facebook-www/REVISION_TRANSFORMS +++ b/compiled/facebook-www/REVISION_TRANSFORMS @@ -1 +1 @@ -49ea8bf5698f017022517be79f5f53e6f6a4dad3 +12f4cb85c5847758ece81fc95b7eaedc1fb9ebd0 diff --git a/compiled/facebook-www/React-dev.classic.js b/compiled/facebook-www/React-dev.classic.js index d280af0248..a015bf7fa2 100644 --- a/compiled/facebook-www/React-dev.classic.js +++ b/compiled/facebook-www/React-dev.classic.js @@ -1538,7 +1538,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.2.0-www-classic-49ea8bf5-20250430"; + exports.version = "19.2.0-www-classic-12f4cb85-20250430"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-dev.modern.js b/compiled/facebook-www/React-dev.modern.js index 824610a449..69304783d9 100644 --- a/compiled/facebook-www/React-dev.modern.js +++ b/compiled/facebook-www/React-dev.modern.js @@ -1538,7 +1538,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.2.0-www-modern-49ea8bf5-20250430"; + exports.version = "19.2.0-www-modern-12f4cb85-20250430"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-prod.classic.js b/compiled/facebook-www/React-prod.classic.js index 481c870808..7ecd95748a 100644 --- a/compiled/facebook-www/React-prod.classic.js +++ b/compiled/facebook-www/React-prod.classic.js @@ -636,4 +636,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.2.0-www-classic-49ea8bf5-20250430"; +exports.version = "19.2.0-www-classic-12f4cb85-20250430"; diff --git a/compiled/facebook-www/React-prod.modern.js b/compiled/facebook-www/React-prod.modern.js index a0d1dc0268..9fd5173eb0 100644 --- a/compiled/facebook-www/React-prod.modern.js +++ b/compiled/facebook-www/React-prod.modern.js @@ -636,4 +636,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.2.0-www-modern-49ea8bf5-20250430"; +exports.version = "19.2.0-www-modern-12f4cb85-20250430"; diff --git a/compiled/facebook-www/React-profiling.classic.js b/compiled/facebook-www/React-profiling.classic.js index 0a5164115c..995c352807 100644 --- a/compiled/facebook-www/React-profiling.classic.js +++ b/compiled/facebook-www/React-profiling.classic.js @@ -640,7 +640,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.2.0-www-classic-49ea8bf5-20250430"; +exports.version = "19.2.0-www-classic-12f4cb85-20250430"; "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 c050aabf88..4cb706d452 100644 --- a/compiled/facebook-www/React-profiling.modern.js +++ b/compiled/facebook-www/React-profiling.modern.js @@ -640,7 +640,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.2.0-www-modern-49ea8bf5-20250430"; +exports.version = "19.2.0-www-modern-12f4cb85-20250430"; "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 f4dc46ae55..b7500020fc 100644 --- a/compiled/facebook-www/ReactART-dev.classic.js +++ b/compiled/facebook-www/ReactART-dev.classic.js @@ -19014,10 +19014,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.2.0-www-classic-49ea8bf5-20250430", + version: "19.2.0-www-classic-12f4cb85-20250430", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-www-classic-49ea8bf5-20250430" + reconcilerVersion: "19.2.0-www-classic-12f4cb85-20250430" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -19051,7 +19051,7 @@ __DEV__ && exports.Shape = Shape; exports.Surface = Surface; exports.Text = Text; - exports.version = "19.2.0-www-classic-49ea8bf5-20250430"; + exports.version = "19.2.0-www-classic-12f4cb85-20250430"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-dev.modern.js b/compiled/facebook-www/ReactART-dev.modern.js index 737c03fa26..862be92fa5 100644 --- a/compiled/facebook-www/ReactART-dev.modern.js +++ b/compiled/facebook-www/ReactART-dev.modern.js @@ -18786,10 +18786,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.2.0-www-modern-49ea8bf5-20250430", + version: "19.2.0-www-modern-12f4cb85-20250430", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-www-modern-49ea8bf5-20250430" + reconcilerVersion: "19.2.0-www-modern-12f4cb85-20250430" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -18823,7 +18823,7 @@ __DEV__ && exports.Shape = Shape; exports.Surface = Surface; exports.Text = Text; - exports.version = "19.2.0-www-modern-49ea8bf5-20250430"; + exports.version = "19.2.0-www-modern-12f4cb85-20250430"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-prod.classic.js b/compiled/facebook-www/ReactART-prod.classic.js index e804bee99d..cc1bdcc4c1 100644 --- a/compiled/facebook-www/ReactART-prod.classic.js +++ b/compiled/facebook-www/ReactART-prod.classic.js @@ -11412,10 +11412,10 @@ var slice = Array.prototype.slice, })(React.Component); var internals$jscomp$inline_1619 = { bundleType: 0, - version: "19.2.0-www-classic-49ea8bf5-20250430", + version: "19.2.0-www-classic-12f4cb85-20250430", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-www-classic-49ea8bf5-20250430" + reconcilerVersion: "19.2.0-www-classic-12f4cb85-20250430" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1620 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -11441,4 +11441,4 @@ exports.RadialGradient = RadialGradient; exports.Shape = TYPES.SHAPE; exports.Surface = Surface; exports.Text = Text; -exports.version = "19.2.0-www-classic-49ea8bf5-20250430"; +exports.version = "19.2.0-www-classic-12f4cb85-20250430"; diff --git a/compiled/facebook-www/ReactART-prod.modern.js b/compiled/facebook-www/ReactART-prod.modern.js index 407d47b4ae..c185c6ce24 100644 --- a/compiled/facebook-www/ReactART-prod.modern.js +++ b/compiled/facebook-www/ReactART-prod.modern.js @@ -11125,10 +11125,10 @@ var slice = Array.prototype.slice, })(React.Component); var internals$jscomp$inline_1592 = { bundleType: 0, - version: "19.2.0-www-modern-49ea8bf5-20250430", + version: "19.2.0-www-modern-12f4cb85-20250430", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-www-modern-49ea8bf5-20250430" + reconcilerVersion: "19.2.0-www-modern-12f4cb85-20250430" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1593 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -11154,4 +11154,4 @@ exports.RadialGradient = RadialGradient; exports.Shape = TYPES.SHAPE; exports.Surface = Surface; exports.Text = Text; -exports.version = "19.2.0-www-modern-49ea8bf5-20250430"; +exports.version = "19.2.0-www-modern-12f4cb85-20250430"; diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index 5aeb0309cf..b3251fd76b 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -31126,11 +31126,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.2.0-www-classic-49ea8bf5-20250430" !== isomorphicReactPackageVersion) + if ("19.2.0-www-classic-12f4cb85-20250430" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.2.0-www-classic-49ea8bf5-20250430\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.2.0-www-classic-12f4cb85-20250430\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -31173,10 +31173,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.2.0-www-classic-49ea8bf5-20250430", + version: "19.2.0-www-classic-12f4cb85-20250430", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-www-classic-49ea8bf5-20250430" + reconcilerVersion: "19.2.0-www-classic-12f4cb85-20250430" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -31774,7 +31774,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.2.0-www-classic-49ea8bf5-20250430"; + exports.version = "19.2.0-www-classic-12f4cb85-20250430"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-dev.modern.js b/compiled/facebook-www/ReactDOM-dev.modern.js index 42dab45bdb..0cd2d0aaec 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -30912,11 +30912,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.2.0-www-modern-49ea8bf5-20250430" !== isomorphicReactPackageVersion) + if ("19.2.0-www-modern-12f4cb85-20250430" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.2.0-www-modern-49ea8bf5-20250430\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.2.0-www-modern-12f4cb85-20250430\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -30959,10 +30959,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.2.0-www-modern-49ea8bf5-20250430", + version: "19.2.0-www-modern-12f4cb85-20250430", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-www-modern-49ea8bf5-20250430" + reconcilerVersion: "19.2.0-www-modern-12f4cb85-20250430" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -31560,7 +31560,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.2.0-www-modern-49ea8bf5-20250430"; + exports.version = "19.2.0-www-modern-12f4cb85-20250430"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-prod.classic.js b/compiled/facebook-www/ReactDOM-prod.classic.js index f834b65909..963dfc6fcd 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -19446,14 +19446,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_2029 = React.version; if ( - "19.2.0-www-classic-49ea8bf5-20250430" !== + "19.2.0-www-classic-12f4cb85-20250430" !== isomorphicReactPackageVersion$jscomp$inline_2029 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2029, - "19.2.0-www-classic-49ea8bf5-20250430" + "19.2.0-www-classic-12f4cb85-20250430" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -19471,10 +19471,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2635 = { bundleType: 0, - version: "19.2.0-www-classic-49ea8bf5-20250430", + version: "19.2.0-www-classic-12f4cb85-20250430", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-www-classic-49ea8bf5-20250430" + reconcilerVersion: "19.2.0-www-classic-12f4cb85-20250430" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2636 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -19838,4 +19838,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.2.0-www-classic-49ea8bf5-20250430"; +exports.version = "19.2.0-www-classic-12f4cb85-20250430"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index aa37d9c85d..2c87cff391 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -19175,14 +19175,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_2019 = React.version; if ( - "19.2.0-www-modern-49ea8bf5-20250430" !== + "19.2.0-www-modern-12f4cb85-20250430" !== isomorphicReactPackageVersion$jscomp$inline_2019 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2019, - "19.2.0-www-modern-49ea8bf5-20250430" + "19.2.0-www-modern-12f4cb85-20250430" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -19200,10 +19200,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2617 = { bundleType: 0, - version: "19.2.0-www-modern-49ea8bf5-20250430", + version: "19.2.0-www-modern-12f4cb85-20250430", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-www-modern-49ea8bf5-20250430" + reconcilerVersion: "19.2.0-www-modern-12f4cb85-20250430" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2618 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -19567,4 +19567,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.2.0-www-modern-49ea8bf5-20250430"; +exports.version = "19.2.0-www-modern-12f4cb85-20250430"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index 7e54bbfc41..36523d7e16 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -21420,14 +21420,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_2273 = React.version; if ( - "19.2.0-www-classic-49ea8bf5-20250430" !== + "19.2.0-www-classic-12f4cb85-20250430" !== isomorphicReactPackageVersion$jscomp$inline_2273 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2273, - "19.2.0-www-classic-49ea8bf5-20250430" + "19.2.0-www-classic-12f4cb85-20250430" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -21445,10 +21445,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2275 = { bundleType: 0, - version: "19.2.0-www-classic-49ea8bf5-20250430", + version: "19.2.0-www-classic-12f4cb85-20250430", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-www-classic-49ea8bf5-20250430" + reconcilerVersion: "19.2.0-www-classic-12f4cb85-20250430" }; enableSchedulingProfiler && ((internals$jscomp$inline_2275.getLaneLabelMap = getLaneLabelMap), @@ -21815,7 +21815,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.2.0-www-classic-49ea8bf5-20250430"; +exports.version = "19.2.0-www-classic-12f4cb85-20250430"; "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 9a25d705e1..db44afff80 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -21218,14 +21218,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_2263 = React.version; if ( - "19.2.0-www-modern-49ea8bf5-20250430" !== + "19.2.0-www-modern-12f4cb85-20250430" !== isomorphicReactPackageVersion$jscomp$inline_2263 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2263, - "19.2.0-www-modern-49ea8bf5-20250430" + "19.2.0-www-modern-12f4cb85-20250430" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -21243,10 +21243,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2265 = { bundleType: 0, - version: "19.2.0-www-modern-49ea8bf5-20250430", + version: "19.2.0-www-modern-12f4cb85-20250430", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-www-modern-49ea8bf5-20250430" + reconcilerVersion: "19.2.0-www-modern-12f4cb85-20250430" }; enableSchedulingProfiler && ((internals$jscomp$inline_2265.getLaneLabelMap = getLaneLabelMap), @@ -21613,7 +21613,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.2.0-www-modern-49ea8bf5-20250430"; +exports.version = "19.2.0-www-modern-12f4cb85-20250430"; "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 ad9fe492bc..8d45cb8605 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.classic.js +++ b/compiled/facebook-www/ReactDOMServer-dev.classic.js @@ -9511,5 +9511,5 @@ __DEV__ && '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 = "19.2.0-www-classic-49ea8bf5-20250430"; + exports.version = "19.2.0-www-classic-12f4cb85-20250430"; })(); diff --git a/compiled/facebook-www/ReactDOMServer-dev.modern.js b/compiled/facebook-www/ReactDOMServer-dev.modern.js index be31ac52c1..2a8d928116 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServer-dev.modern.js @@ -9440,5 +9440,5 @@ __DEV__ && '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 = "19.2.0-www-modern-49ea8bf5-20250430"; + exports.version = "19.2.0-www-modern-12f4cb85-20250430"; })(); diff --git a/compiled/facebook-www/ReactDOMServer-prod.classic.js b/compiled/facebook-www/ReactDOMServer-prod.classic.js index 88b39f4664..4cecfb1852 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.classic.js +++ b/compiled/facebook-www/ReactDOMServer-prod.classic.js @@ -6268,4 +6268,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 = "19.2.0-www-classic-49ea8bf5-20250430"; +exports.version = "19.2.0-www-classic-12f4cb85-20250430"; diff --git a/compiled/facebook-www/ReactDOMServer-prod.modern.js b/compiled/facebook-www/ReactDOMServer-prod.modern.js index 8bd7203eab..c7251e6de4 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServer-prod.modern.js @@ -6180,4 +6180,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 = "19.2.0-www-modern-49ea8bf5-20250430"; +exports.version = "19.2.0-www-modern-12f4cb85-20250430"; diff --git a/compiled/facebook-www/ReactDOMTesting-dev.classic.js b/compiled/facebook-www/ReactDOMTesting-dev.classic.js index b7e3fd0278..e6347ab3ee 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.classic.js @@ -31447,11 +31447,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.2.0-www-classic-49ea8bf5-20250430" !== isomorphicReactPackageVersion) + if ("19.2.0-www-classic-12f4cb85-20250430" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.2.0-www-classic-49ea8bf5-20250430\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.2.0-www-classic-12f4cb85-20250430\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -31494,10 +31494,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.2.0-www-classic-49ea8bf5-20250430", + version: "19.2.0-www-classic-12f4cb85-20250430", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-www-classic-49ea8bf5-20250430" + reconcilerVersion: "19.2.0-www-classic-12f4cb85-20250430" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -32261,5 +32261,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.2.0-www-classic-49ea8bf5-20250430"; + exports.version = "19.2.0-www-classic-12f4cb85-20250430"; })(); diff --git a/compiled/facebook-www/ReactDOMTesting-dev.modern.js b/compiled/facebook-www/ReactDOMTesting-dev.modern.js index 9ff155cf60..615d767c75 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.modern.js @@ -31233,11 +31233,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.2.0-www-modern-49ea8bf5-20250430" !== isomorphicReactPackageVersion) + if ("19.2.0-www-modern-12f4cb85-20250430" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.2.0-www-modern-49ea8bf5-20250430\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.2.0-www-modern-12f4cb85-20250430\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -31280,10 +31280,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.2.0-www-modern-49ea8bf5-20250430", + version: "19.2.0-www-modern-12f4cb85-20250430", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-www-modern-49ea8bf5-20250430" + reconcilerVersion: "19.2.0-www-modern-12f4cb85-20250430" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -32047,5 +32047,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.2.0-www-modern-49ea8bf5-20250430"; + exports.version = "19.2.0-www-modern-12f4cb85-20250430"; })(); diff --git a/compiled/facebook-www/ReactDOMTesting-prod.classic.js b/compiled/facebook-www/ReactDOMTesting-prod.classic.js index 6c0f1dd02a..593c80e130 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.classic.js @@ -19762,14 +19762,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_2058 = React.version; if ( - "19.2.0-www-classic-49ea8bf5-20250430" !== + "19.2.0-www-classic-12f4cb85-20250430" !== isomorphicReactPackageVersion$jscomp$inline_2058 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2058, - "19.2.0-www-classic-49ea8bf5-20250430" + "19.2.0-www-classic-12f4cb85-20250430" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -19787,10 +19787,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2669 = { bundleType: 0, - version: "19.2.0-www-classic-49ea8bf5-20250430", + version: "19.2.0-www-classic-12f4cb85-20250430", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-www-classic-49ea8bf5-20250430" + reconcilerVersion: "19.2.0-www-classic-12f4cb85-20250430" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2670 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -20305,4 +20305,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.2.0-www-classic-49ea8bf5-20250430"; +exports.version = "19.2.0-www-classic-12f4cb85-20250430"; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.modern.js b/compiled/facebook-www/ReactDOMTesting-prod.modern.js index f3c9ffa362..886ca5afe2 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.modern.js @@ -19491,14 +19491,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_2048 = React.version; if ( - "19.2.0-www-modern-49ea8bf5-20250430" !== + "19.2.0-www-modern-12f4cb85-20250430" !== isomorphicReactPackageVersion$jscomp$inline_2048 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2048, - "19.2.0-www-modern-49ea8bf5-20250430" + "19.2.0-www-modern-12f4cb85-20250430" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -19516,10 +19516,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2651 = { bundleType: 0, - version: "19.2.0-www-modern-49ea8bf5-20250430", + version: "19.2.0-www-modern-12f4cb85-20250430", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-www-modern-49ea8bf5-20250430" + reconcilerVersion: "19.2.0-www-modern-12f4cb85-20250430" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2652 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -20034,4 +20034,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.2.0-www-modern-49ea8bf5-20250430"; +exports.version = "19.2.0-www-modern-12f4cb85-20250430"; diff --git a/compiled/facebook-www/ReactReconciler-dev.classic.js b/compiled/facebook-www/ReactReconciler-dev.classic.js index 1d76d49891..4f1b68f851 100644 --- a/compiled/facebook-www/ReactReconciler-dev.classic.js +++ b/compiled/facebook-www/ReactReconciler-dev.classic.js @@ -21845,7 +21845,7 @@ __DEV__ && version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-www-classic-49ea8bf5-20250430" + reconcilerVersion: "19.2.0-www-classic-12f4cb85-20250430" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-dev.modern.js b/compiled/facebook-www/ReactReconciler-dev.modern.js index 90640a658a..64085cacb2 100644 --- a/compiled/facebook-www/ReactReconciler-dev.modern.js +++ b/compiled/facebook-www/ReactReconciler-dev.modern.js @@ -21626,7 +21626,7 @@ __DEV__ && version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-www-modern-49ea8bf5-20250430" + reconcilerVersion: "19.2.0-www-modern-12f4cb85-20250430" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-prod.classic.js b/compiled/facebook-www/ReactReconciler-prod.classic.js index c38c45184b..e817db1ce2 100644 --- a/compiled/facebook-www/ReactReconciler-prod.classic.js +++ b/compiled/facebook-www/ReactReconciler-prod.classic.js @@ -14088,7 +14088,7 @@ module.exports = function ($$$config) { version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-www-classic-49ea8bf5-20250430" + reconcilerVersion: "19.2.0-www-classic-12f4cb85-20250430" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-prod.modern.js b/compiled/facebook-www/ReactReconciler-prod.modern.js index 6796d956f9..f1dadbeb18 100644 --- a/compiled/facebook-www/ReactReconciler-prod.modern.js +++ b/compiled/facebook-www/ReactReconciler-prod.modern.js @@ -13805,7 +13805,7 @@ module.exports = function ($$$config) { version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-www-modern-49ea8bf5-20250430" + reconcilerVersion: "19.2.0-www-modern-12f4cb85-20250430" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactTestRenderer-dev.classic.js b/compiled/facebook-www/ReactTestRenderer-dev.classic.js index ef443257c0..709605f180 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.classic.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.classic.js @@ -15341,10 +15341,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.2.0-www-classic-49ea8bf5-20250430", + version: "19.2.0-www-classic-12f4cb85-20250430", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-www-classic-49ea8bf5-20250430" + reconcilerVersion: "19.2.0-www-classic-12f4cb85-20250430" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -15479,5 +15479,5 @@ __DEV__ && exports.unstable_batchedUpdates = function (fn, a) { return fn(a); }; - exports.version = "19.2.0-www-classic-49ea8bf5-20250430"; + exports.version = "19.2.0-www-classic-12f4cb85-20250430"; })(); diff --git a/compiled/facebook-www/ReactTestRenderer-dev.modern.js b/compiled/facebook-www/ReactTestRenderer-dev.modern.js index 8ca0c56cab..8d3a77e8fe 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.modern.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.modern.js @@ -15341,10 +15341,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.2.0-www-modern-49ea8bf5-20250430", + version: "19.2.0-www-modern-12f4cb85-20250430", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-www-modern-49ea8bf5-20250430" + reconcilerVersion: "19.2.0-www-modern-12f4cb85-20250430" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -15479,5 +15479,5 @@ __DEV__ && exports.unstable_batchedUpdates = function (fn, a) { return fn(a); }; - exports.version = "19.2.0-www-modern-49ea8bf5-20250430"; + exports.version = "19.2.0-www-modern-12f4cb85-20250430"; })(); diff --git a/compiled/facebook-www/VERSION_CLASSIC b/compiled/facebook-www/VERSION_CLASSIC index 80a19af27b..c956b86d31 100644 --- a/compiled/facebook-www/VERSION_CLASSIC +++ b/compiled/facebook-www/VERSION_CLASSIC @@ -1 +1 @@ -19.2.0-www-classic-49ea8bf5-20250430 \ No newline at end of file +19.2.0-www-classic-12f4cb85-20250430 \ No newline at end of file diff --git a/compiled/facebook-www/VERSION_MODERN b/compiled/facebook-www/VERSION_MODERN index 623a9f49dd..3bf5102429 100644 --- a/compiled/facebook-www/VERSION_MODERN +++ b/compiled/facebook-www/VERSION_MODERN @@ -1 +1 @@ -19.2.0-www-modern-49ea8bf5-20250430 \ No newline at end of file +19.2.0-www-modern-12f4cb85-20250430 \ No newline at end of file