From 8a728a15a89d5a397cb2edf1e7cd161015ab36b4 Mon Sep 17 00:00:00 2001 From: mofeiZ <34200447+mofeiZ@users.noreply.github.com> Date: Thu, 13 Mar 2025 09:07:02 -0700 Subject: [PATCH] [compiler] Patch array and argument spread mutability (#32521) Array and argument spreads may mutate stateful iterables. Spread sites should have `ConditionallyMutate` effects (e.g. mutate if the ValueKind is mutable, otherwise read). See - [ecma spec (13.2.4.1 Runtime Semantics: ArrayAccumulation. SpreadElement : ... AssignmentExpression)](https://tc39.es/ecma262/multipage/ecmascript-language-expressions.html#sec-runtime-semantics-arrayaccumulation). - [ecma spec 13.3.8.1 Runtime Semantics: ArgumentListEvaluation](https://tc39.es/ecma262/multipage/ecmascript-language-expressions.html#sec-runtime-semantics-argumentlistevaluation) Note that - Object and JSX Attribute spreads do not evaluate iterables (srcs [mozilla](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax#description), [ecma](https://tc39.es/ecma262/multipage/ecmascript-language-expressions.html#sec-runtime-semantics-propertydefinitionevaluation)) - An ideal mutability inference system could model known collections (i.e. Arrays or Sets) as a "mutated collection of non-mutable objects" (see `todo-granular-iterator-semantics`), but this is not what we do today. As such, an array / argument spread will always extend the range of built-in arrays, sets, etc - Due to HIR limitations, call expressions with argument spreads may cause unnecessary bailouts and/or scope merging when we know the call itself has `freeze`, `capture`, or `read` semantics (e.g. `useHook(...mutableValue)`) We can deal with this by rewriting these call instructions to (1) create an intermediate array to consume the iterator and (2) capture and spread the array at the callsite --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/32521). * #32596 * #32595 * #32594 * #32593 * #32522 * __->__ #32521 DiffTrain build for [ed1264f07701e092ac1a8466611372613d1a0102](https://github.com/facebook/react/commit/ed1264f07701e092ac1a8466611372613d1a0102) --- 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 +- compiled/facebook-www/React-profiling.classic.js | 2 +- compiled/facebook-www/React-profiling.modern.js | 2 +- compiled/facebook-www/ReactART-dev.classic.js | 6 +++--- compiled/facebook-www/ReactART-dev.modern.js | 6 +++--- compiled/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 +++++----- compiled/facebook-www/ReactDOM-prod.classic.js | 10 +++++----- compiled/facebook-www/ReactDOM-prod.modern.js | 10 +++++----- .../facebook-www/ReactDOM-profiling.classic.js | 10 +++++----- compiled/facebook-www/ReactDOM-profiling.modern.js | 10 +++++----- .../facebook-www/ReactDOMServer-dev.classic.js | 2 +- compiled/facebook-www/ReactDOMServer-dev.modern.js | 2 +- .../facebook-www/ReactDOMServer-prod.classic.js | 2 +- .../facebook-www/ReactDOMServer-prod.modern.js | 2 +- .../facebook-www/ReactDOMTesting-dev.classic.js | 10 +++++----- .../facebook-www/ReactDOMTesting-dev.modern.js | 10 +++++----- .../facebook-www/ReactDOMTesting-prod.classic.js | 10 +++++----- .../facebook-www/ReactDOMTesting-prod.modern.js | 10 +++++----- .../facebook-www/ReactReconciler-dev.classic.js | 2 +- .../facebook-www/ReactReconciler-dev.modern.js | 2 +- .../facebook-www/ReactReconciler-prod.classic.js | 2 +- .../facebook-www/ReactReconciler-prod.modern.js | 2 +- .../facebook-www/ReactTestRenderer-dev.classic.js | 6 +++--- .../facebook-www/ReactTestRenderer-dev.modern.js | 6 +++--- compiled/facebook-www/VERSION_CLASSIC | 2 +- compiled/facebook-www/VERSION_MODERN | 2 +- compiled/facebook-www/eslint-plugin-react-hooks.js | 14 -------------- 33 files changed, 84 insertions(+), 98 deletions(-) diff --git a/compiled/facebook-www/React-dev.classic.js b/compiled/facebook-www/React-dev.classic.js index 776d38c432..80feb88c07 100644 --- a/compiled/facebook-www/React-dev.classic.js +++ b/compiled/facebook-www/React-dev.classic.js @@ -1532,7 +1532,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.1.0-www-classic-38a76009-20250313"; + exports.version = "19.1.0-www-classic-ed1264f0-20250313"; "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 649de34c4b..39a385c711 100644 --- a/compiled/facebook-www/React-dev.modern.js +++ b/compiled/facebook-www/React-dev.modern.js @@ -1532,7 +1532,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.1.0-www-modern-38a76009-20250313"; + exports.version = "19.1.0-www-modern-ed1264f0-20250313"; "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 c10c1cd4fe..84a50876d7 100644 --- a/compiled/facebook-www/React-prod.classic.js +++ b/compiled/facebook-www/React-prod.classic.js @@ -641,4 +641,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.1.0-www-classic-38a76009-20250313"; +exports.version = "19.1.0-www-classic-ed1264f0-20250313"; diff --git a/compiled/facebook-www/React-prod.modern.js b/compiled/facebook-www/React-prod.modern.js index 6fe50efefa..d0e3dab5aa 100644 --- a/compiled/facebook-www/React-prod.modern.js +++ b/compiled/facebook-www/React-prod.modern.js @@ -641,4 +641,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.1.0-www-modern-38a76009-20250313"; +exports.version = "19.1.0-www-modern-ed1264f0-20250313"; diff --git a/compiled/facebook-www/React-profiling.classic.js b/compiled/facebook-www/React-profiling.classic.js index bf4ad16377..d21c99fd8e 100644 --- a/compiled/facebook-www/React-profiling.classic.js +++ b/compiled/facebook-www/React-profiling.classic.js @@ -645,7 +645,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.1.0-www-classic-38a76009-20250313"; +exports.version = "19.1.0-www-classic-ed1264f0-20250313"; "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 13ff323927..0d97f34e78 100644 --- a/compiled/facebook-www/React-profiling.modern.js +++ b/compiled/facebook-www/React-profiling.modern.js @@ -645,7 +645,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.1.0-www-modern-38a76009-20250313"; +exports.version = "19.1.0-www-modern-ed1264f0-20250313"; "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 7cfa99cb12..a76bcaeb02 100644 --- a/compiled/facebook-www/ReactART-dev.classic.js +++ b/compiled/facebook-www/ReactART-dev.classic.js @@ -18546,10 +18546,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.1.0-www-classic-38a76009-20250313", + version: "19.1.0-www-classic-ed1264f0-20250313", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-38a76009-20250313" + reconcilerVersion: "19.1.0-www-classic-ed1264f0-20250313" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -18583,7 +18583,7 @@ __DEV__ && exports.Shape = Shape; exports.Surface = Surface; exports.Text = Text; - exports.version = "19.1.0-www-classic-38a76009-20250313"; + exports.version = "19.1.0-www-classic-ed1264f0-20250313"; "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 fd4c7388a8..d05027db32 100644 --- a/compiled/facebook-www/ReactART-dev.modern.js +++ b/compiled/facebook-www/ReactART-dev.modern.js @@ -18318,10 +18318,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.1.0-www-modern-38a76009-20250313", + version: "19.1.0-www-modern-ed1264f0-20250313", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-38a76009-20250313" + reconcilerVersion: "19.1.0-www-modern-ed1264f0-20250313" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -18355,7 +18355,7 @@ __DEV__ && exports.Shape = Shape; exports.Surface = Surface; exports.Text = Text; - exports.version = "19.1.0-www-modern-38a76009-20250313"; + exports.version = "19.1.0-www-modern-ed1264f0-20250313"; "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 662c2623ed..58a7a6709d 100644 --- a/compiled/facebook-www/ReactART-prod.classic.js +++ b/compiled/facebook-www/ReactART-prod.classic.js @@ -11341,10 +11341,10 @@ var slice = Array.prototype.slice, })(React.Component); var internals$jscomp$inline_1587 = { bundleType: 0, - version: "19.1.0-www-classic-38a76009-20250313", + version: "19.1.0-www-classic-ed1264f0-20250313", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-38a76009-20250313" + reconcilerVersion: "19.1.0-www-classic-ed1264f0-20250313" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1588 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -11370,4 +11370,4 @@ exports.RadialGradient = RadialGradient; exports.Shape = TYPES.SHAPE; exports.Surface = Surface; exports.Text = Text; -exports.version = "19.1.0-www-classic-38a76009-20250313"; +exports.version = "19.1.0-www-classic-ed1264f0-20250313"; diff --git a/compiled/facebook-www/ReactART-prod.modern.js b/compiled/facebook-www/ReactART-prod.modern.js index f9dfd7ac0d..403ab21f91 100644 --- a/compiled/facebook-www/ReactART-prod.modern.js +++ b/compiled/facebook-www/ReactART-prod.modern.js @@ -11056,10 +11056,10 @@ var slice = Array.prototype.slice, })(React.Component); var internals$jscomp$inline_1560 = { bundleType: 0, - version: "19.1.0-www-modern-38a76009-20250313", + version: "19.1.0-www-modern-ed1264f0-20250313", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-38a76009-20250313" + reconcilerVersion: "19.1.0-www-modern-ed1264f0-20250313" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1561 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -11085,4 +11085,4 @@ exports.RadialGradient = RadialGradient; exports.Shape = TYPES.SHAPE; exports.Surface = Surface; exports.Text = Text; -exports.version = "19.1.0-www-modern-38a76009-20250313"; +exports.version = "19.1.0-www-modern-ed1264f0-20250313"; diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index 524a2ce10f..65ca8e73a4 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -30197,11 +30197,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-www-classic-38a76009-20250313" !== isomorphicReactPackageVersion) + if ("19.1.0-www-classic-ed1264f0-20250313" !== 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.1.0-www-classic-38a76009-20250313\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-www-classic-ed1264f0-20250313\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -30244,10 +30244,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-www-classic-38a76009-20250313", + version: "19.1.0-www-classic-ed1264f0-20250313", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-38a76009-20250313" + reconcilerVersion: "19.1.0-www-classic-ed1264f0-20250313" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -30845,7 +30845,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-www-classic-38a76009-20250313"; + exports.version = "19.1.0-www-classic-ed1264f0-20250313"; "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 80e5371123..c5920a9f6d 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -29983,11 +29983,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-www-modern-38a76009-20250313" !== isomorphicReactPackageVersion) + if ("19.1.0-www-modern-ed1264f0-20250313" !== 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.1.0-www-modern-38a76009-20250313\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-www-modern-ed1264f0-20250313\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -30030,10 +30030,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-www-modern-38a76009-20250313", + version: "19.1.0-www-modern-ed1264f0-20250313", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-38a76009-20250313" + reconcilerVersion: "19.1.0-www-modern-ed1264f0-20250313" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -30631,7 +30631,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-www-modern-38a76009-20250313"; + exports.version = "19.1.0-www-modern-ed1264f0-20250313"; "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 7c60e138f3..f8f7ed3234 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -18935,14 +18935,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1925 = React.version; if ( - "19.1.0-www-classic-38a76009-20250313" !== + "19.1.0-www-classic-ed1264f0-20250313" !== isomorphicReactPackageVersion$jscomp$inline_1925 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1925, - "19.1.0-www-classic-38a76009-20250313" + "19.1.0-www-classic-ed1264f0-20250313" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -18960,10 +18960,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2505 = { bundleType: 0, - version: "19.1.0-www-classic-38a76009-20250313", + version: "19.1.0-www-classic-ed1264f0-20250313", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-38a76009-20250313" + reconcilerVersion: "19.1.0-www-classic-ed1264f0-20250313" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2506 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -19327,4 +19327,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-classic-38a76009-20250313"; +exports.version = "19.1.0-www-classic-ed1264f0-20250313"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index f502a24a00..c04c55989a 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -18666,14 +18666,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1915 = React.version; if ( - "19.1.0-www-modern-38a76009-20250313" !== + "19.1.0-www-modern-ed1264f0-20250313" !== isomorphicReactPackageVersion$jscomp$inline_1915 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1915, - "19.1.0-www-modern-38a76009-20250313" + "19.1.0-www-modern-ed1264f0-20250313" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -18691,10 +18691,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2487 = { bundleType: 0, - version: "19.1.0-www-modern-38a76009-20250313", + version: "19.1.0-www-modern-ed1264f0-20250313", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-38a76009-20250313" + reconcilerVersion: "19.1.0-www-modern-ed1264f0-20250313" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2488 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -19058,4 +19058,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-modern-38a76009-20250313"; +exports.version = "19.1.0-www-modern-ed1264f0-20250313"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index a37665300b..78d100d2fd 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -20677,14 +20677,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_2085 = React.version; if ( - "19.1.0-www-classic-38a76009-20250313" !== + "19.1.0-www-classic-ed1264f0-20250313" !== isomorphicReactPackageVersion$jscomp$inline_2085 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2085, - "19.1.0-www-classic-38a76009-20250313" + "19.1.0-www-classic-ed1264f0-20250313" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -20702,10 +20702,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2087 = { bundleType: 0, - version: "19.1.0-www-classic-38a76009-20250313", + version: "19.1.0-www-classic-ed1264f0-20250313", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-38a76009-20250313" + reconcilerVersion: "19.1.0-www-classic-ed1264f0-20250313" }; enableSchedulingProfiler && ((internals$jscomp$inline_2087.getLaneLabelMap = getLaneLabelMap), @@ -21072,7 +21072,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-classic-38a76009-20250313"; +exports.version = "19.1.0-www-classic-ed1264f0-20250313"; "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 1c68a84602..252044aa0b 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -20475,14 +20475,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_2075 = React.version; if ( - "19.1.0-www-modern-38a76009-20250313" !== + "19.1.0-www-modern-ed1264f0-20250313" !== isomorphicReactPackageVersion$jscomp$inline_2075 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2075, - "19.1.0-www-modern-38a76009-20250313" + "19.1.0-www-modern-ed1264f0-20250313" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -20500,10 +20500,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2077 = { bundleType: 0, - version: "19.1.0-www-modern-38a76009-20250313", + version: "19.1.0-www-modern-ed1264f0-20250313", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-38a76009-20250313" + reconcilerVersion: "19.1.0-www-modern-ed1264f0-20250313" }; enableSchedulingProfiler && ((internals$jscomp$inline_2077.getLaneLabelMap = getLaneLabelMap), @@ -20870,7 +20870,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-modern-38a76009-20250313"; +exports.version = "19.1.0-www-modern-ed1264f0-20250313"; "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 260ed9eac5..f9f94ab2a1 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.classic.js +++ b/compiled/facebook-www/ReactDOMServer-dev.classic.js @@ -9412,5 +9412,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.1.0-www-classic-38a76009-20250313"; + exports.version = "19.1.0-www-classic-ed1264f0-20250313"; })(); diff --git a/compiled/facebook-www/ReactDOMServer-dev.modern.js b/compiled/facebook-www/ReactDOMServer-dev.modern.js index 8782f85cb5..2f2ba70971 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServer-dev.modern.js @@ -9238,5 +9238,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.1.0-www-modern-38a76009-20250313"; + exports.version = "19.1.0-www-modern-ed1264f0-20250313"; })(); diff --git a/compiled/facebook-www/ReactDOMServer-prod.classic.js b/compiled/facebook-www/ReactDOMServer-prod.classic.js index 5f66b9f308..1bf22c8aa2 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.classic.js +++ b/compiled/facebook-www/ReactDOMServer-prod.classic.js @@ -6196,4 +6196,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.1.0-www-classic-38a76009-20250313"; +exports.version = "19.1.0-www-classic-ed1264f0-20250313"; diff --git a/compiled/facebook-www/ReactDOMServer-prod.modern.js b/compiled/facebook-www/ReactDOMServer-prod.modern.js index 7b228fd560..d20f3014c7 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServer-prod.modern.js @@ -6108,4 +6108,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.1.0-www-modern-38a76009-20250313"; +exports.version = "19.1.0-www-modern-ed1264f0-20250313"; diff --git a/compiled/facebook-www/ReactDOMTesting-dev.classic.js b/compiled/facebook-www/ReactDOMTesting-dev.classic.js index 64141586cf..6ef4937d86 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.classic.js @@ -30518,11 +30518,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-www-classic-38a76009-20250313" !== isomorphicReactPackageVersion) + if ("19.1.0-www-classic-ed1264f0-20250313" !== 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.1.0-www-classic-38a76009-20250313\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-www-classic-ed1264f0-20250313\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -30565,10 +30565,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-www-classic-38a76009-20250313", + version: "19.1.0-www-classic-ed1264f0-20250313", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-38a76009-20250313" + reconcilerVersion: "19.1.0-www-classic-ed1264f0-20250313" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -31332,5 +31332,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-www-classic-38a76009-20250313"; + exports.version = "19.1.0-www-classic-ed1264f0-20250313"; })(); diff --git a/compiled/facebook-www/ReactDOMTesting-dev.modern.js b/compiled/facebook-www/ReactDOMTesting-dev.modern.js index 567953b65e..d0bfcfde7c 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.modern.js @@ -30304,11 +30304,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-www-modern-38a76009-20250313" !== isomorphicReactPackageVersion) + if ("19.1.0-www-modern-ed1264f0-20250313" !== 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.1.0-www-modern-38a76009-20250313\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-www-modern-ed1264f0-20250313\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -30351,10 +30351,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-www-modern-38a76009-20250313", + version: "19.1.0-www-modern-ed1264f0-20250313", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-38a76009-20250313" + reconcilerVersion: "19.1.0-www-modern-ed1264f0-20250313" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -31118,5 +31118,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-www-modern-38a76009-20250313"; + exports.version = "19.1.0-www-modern-ed1264f0-20250313"; })(); diff --git a/compiled/facebook-www/ReactDOMTesting-prod.classic.js b/compiled/facebook-www/ReactDOMTesting-prod.classic.js index 19610b0ffa..d9b3615c92 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.classic.js @@ -19251,14 +19251,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1954 = React.version; if ( - "19.1.0-www-classic-38a76009-20250313" !== + "19.1.0-www-classic-ed1264f0-20250313" !== isomorphicReactPackageVersion$jscomp$inline_1954 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1954, - "19.1.0-www-classic-38a76009-20250313" + "19.1.0-www-classic-ed1264f0-20250313" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -19276,10 +19276,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2539 = { bundleType: 0, - version: "19.1.0-www-classic-38a76009-20250313", + version: "19.1.0-www-classic-ed1264f0-20250313", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-38a76009-20250313" + reconcilerVersion: "19.1.0-www-classic-ed1264f0-20250313" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2540 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -19794,4 +19794,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-classic-38a76009-20250313"; +exports.version = "19.1.0-www-classic-ed1264f0-20250313"; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.modern.js b/compiled/facebook-www/ReactDOMTesting-prod.modern.js index 25327a6580..baf99737f3 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.modern.js @@ -18982,14 +18982,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1944 = React.version; if ( - "19.1.0-www-modern-38a76009-20250313" !== + "19.1.0-www-modern-ed1264f0-20250313" !== isomorphicReactPackageVersion$jscomp$inline_1944 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1944, - "19.1.0-www-modern-38a76009-20250313" + "19.1.0-www-modern-ed1264f0-20250313" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -19007,10 +19007,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2521 = { bundleType: 0, - version: "19.1.0-www-modern-38a76009-20250313", + version: "19.1.0-www-modern-ed1264f0-20250313", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-38a76009-20250313" + reconcilerVersion: "19.1.0-www-modern-ed1264f0-20250313" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2522 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -19525,4 +19525,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-modern-38a76009-20250313"; +exports.version = "19.1.0-www-modern-ed1264f0-20250313"; diff --git a/compiled/facebook-www/ReactReconciler-dev.classic.js b/compiled/facebook-www/ReactReconciler-dev.classic.js index e19c0f51ec..696d1b1ac7 100644 --- a/compiled/facebook-www/ReactReconciler-dev.classic.js +++ b/compiled/facebook-www/ReactReconciler-dev.classic.js @@ -21261,7 +21261,7 @@ __DEV__ && version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-38a76009-20250313" + reconcilerVersion: "19.1.0-www-classic-ed1264f0-20250313" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-dev.modern.js b/compiled/facebook-www/ReactReconciler-dev.modern.js index 0647137308..d35789c208 100644 --- a/compiled/facebook-www/ReactReconciler-dev.modern.js +++ b/compiled/facebook-www/ReactReconciler-dev.modern.js @@ -21042,7 +21042,7 @@ __DEV__ && version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-38a76009-20250313" + reconcilerVersion: "19.1.0-www-modern-ed1264f0-20250313" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-prod.classic.js b/compiled/facebook-www/ReactReconciler-prod.classic.js index e23348d64b..1f3204cf79 100644 --- a/compiled/facebook-www/ReactReconciler-prod.classic.js +++ b/compiled/facebook-www/ReactReconciler-prod.classic.js @@ -13950,7 +13950,7 @@ module.exports = function ($$$config) { version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-38a76009-20250313" + reconcilerVersion: "19.1.0-www-classic-ed1264f0-20250313" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-prod.modern.js b/compiled/facebook-www/ReactReconciler-prod.modern.js index bd38ebcba1..8a50501d7d 100644 --- a/compiled/facebook-www/ReactReconciler-prod.modern.js +++ b/compiled/facebook-www/ReactReconciler-prod.modern.js @@ -13669,7 +13669,7 @@ module.exports = function ($$$config) { version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-38a76009-20250313" + reconcilerVersion: "19.1.0-www-modern-ed1264f0-20250313" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactTestRenderer-dev.classic.js b/compiled/facebook-www/ReactTestRenderer-dev.classic.js index 2ecb4a2bb3..4ebecd871a 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.classic.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.classic.js @@ -15076,10 +15076,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.1.0-www-classic-38a76009-20250313", + version: "19.1.0-www-classic-ed1264f0-20250313", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-38a76009-20250313" + reconcilerVersion: "19.1.0-www-classic-ed1264f0-20250313" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -15214,5 +15214,5 @@ __DEV__ && exports.unstable_batchedUpdates = function (fn, a) { return fn(a); }; - exports.version = "19.1.0-www-classic-38a76009-20250313"; + exports.version = "19.1.0-www-classic-ed1264f0-20250313"; })(); diff --git a/compiled/facebook-www/ReactTestRenderer-dev.modern.js b/compiled/facebook-www/ReactTestRenderer-dev.modern.js index e8e1ee4e2f..f58281719c 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.modern.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.modern.js @@ -15076,10 +15076,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.1.0-www-modern-38a76009-20250313", + version: "19.1.0-www-modern-ed1264f0-20250313", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-38a76009-20250313" + reconcilerVersion: "19.1.0-www-modern-ed1264f0-20250313" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -15214,5 +15214,5 @@ __DEV__ && exports.unstable_batchedUpdates = function (fn, a) { return fn(a); }; - exports.version = "19.1.0-www-modern-38a76009-20250313"; + exports.version = "19.1.0-www-modern-ed1264f0-20250313"; })(); diff --git a/compiled/facebook-www/VERSION_CLASSIC b/compiled/facebook-www/VERSION_CLASSIC index 025ba56e05..21df41263c 100644 --- a/compiled/facebook-www/VERSION_CLASSIC +++ b/compiled/facebook-www/VERSION_CLASSIC @@ -1 +1 @@ -19.1.0-www-classic-38a76009-20250313 \ No newline at end of file +19.1.0-www-classic-ed1264f0-20250313 \ No newline at end of file diff --git a/compiled/facebook-www/VERSION_MODERN b/compiled/facebook-www/VERSION_MODERN index 631f8e38b8..9146cdf648 100644 --- a/compiled/facebook-www/VERSION_MODERN +++ b/compiled/facebook-www/VERSION_MODERN @@ -1 +1 @@ -19.1.0-www-modern-38a76009-20250313 \ No newline at end of file +19.1.0-www-modern-ed1264f0-20250313 \ No newline at end of file diff --git a/compiled/facebook-www/eslint-plugin-react-hooks.js b/compiled/facebook-www/eslint-plugin-react-hooks.js index 6d96beac41..4b10b57ecc 100644 --- a/compiled/facebook-www/eslint-plugin-react-hooks.js +++ b/compiled/facebook-www/eslint-plugin-react-hooks.js @@ -42530,20 +42530,6 @@ PERFORMANCE OF THIS SOFTWARE. returnValueKind: ValueKind.Primitive }) ], - [ - "from", - addFunction(DEFAULT_SHAPES, [], { - positionalParams: [ - Effect.ConditionallyMutate, - Effect.ConditionallyMutate, - Effect.ConditionallyMutate - ], - restParam: Effect.Read, - returnType: { kind: "Object", shapeId: BuiltInArrayId }, - calleeEffect: Effect.Read, - returnValueKind: ValueKind.Mutable - }) - ], [ "of", addFunction(DEFAULT_SHAPES, [], {