From dd5e4fd26c596852cf58b5ef7c380316a58b4c19 Mon Sep 17 00:00:00 2001 From: josephsavona Date: Fri, 15 Aug 2025 15:33:47 -0700 Subject: [PATCH] [compiler] Remove now-unused FunctionEffect type (#34029) The new mutation/aliasing model significantly expands on the idea of FunctionEffect. The type (and its usage in HIRFunction.effects) was only necessary for the now-deleted old inference model so we can clean up this code now. DiffTrain build for [5063b3283fcae4bb43756d0d18d32008e3910bea](https://github.com/facebook/react/commit/5063b3283fcae4bb43756d0d18d32008e3910bea) --- compiled-rn/VERSION_NATIVE_FB | 2 +- .../react/react-dom/cjs/ReactDOM-dev.js | 4 +- .../react/react-dom/cjs/ReactDOM-prod.js | 4 +- .../react/react-dom/cjs/ReactDOM-profiling.js | 4 +- .../react/react-dom/cjs/ReactDOMClient-dev.js | 12 ++--- .../react-dom/cjs/ReactDOMClient-prod.js | 12 ++--- .../react-dom/cjs/ReactDOMClient-profiling.js | 12 ++--- .../react-dom/cjs/ReactDOMProfiling-dev.js | 12 ++--- .../react-dom/cjs/ReactDOMProfiling-prod.js | 12 ++--- .../cjs/ReactDOMProfiling-profiling.js | 12 ++--- .../cjs/ReactTestRenderer-dev.js | 8 +-- .../cjs/ReactTestRenderer-prod.js | 8 +-- .../cjs/ReactTestRenderer-profiling.js | 8 +-- .../vendor/react/react/cjs/React-dev.js | 4 +- .../vendor/react/react/cjs/React-prod.js | 4 +- .../vendor/react/react/cjs/React-profiling.js | 4 +- .../Libraries/Renderer/REVISION | 2 +- .../implementations/ReactFabric-dev.fb.js | 6 +-- .../implementations/ReactFabric-prod.fb.js | 6 +-- .../ReactFabric-profiling.fb.js | 6 +-- .../ReactNativeRenderer-dev.fb.js | 10 ++-- .../ReactNativeRenderer-prod.fb.js | 10 ++-- .../ReactNativeRenderer-profiling.fb.js | 10 ++-- .../eslint-plugin-react-hooks.development.js | 50 ++++--------------- .../eslint-plugin-react-hooks.production.js | 50 ++++--------------- .../eslint-plugin-react-hooks/package.json | 2 +- 26 files changed, 109 insertions(+), 165 deletions(-) diff --git a/compiled-rn/VERSION_NATIVE_FB b/compiled-rn/VERSION_NATIVE_FB index 8d106073f2..ef74c9b092 100644 --- a/compiled-rn/VERSION_NATIVE_FB +++ b/compiled-rn/VERSION_NATIVE_FB @@ -1 +1 @@ -19.2.0-native-fb-eaf6adb1-20250815 \ No newline at end of file +19.2.0-native-fb-5063b328-20250815 \ No newline at end of file diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-dev.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-dev.js index 0490461189..4bce031323 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-dev.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-dev.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<39974f5d0ad2b7cf25131f51ea25accb>> + * @generated SignedSource<<90a8d185d9cef24ff667513ed992553c>> */ "use strict"; @@ -404,5 +404,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.2.0-native-fb-eaf6adb1-20250815"; + exports.version = "19.2.0-native-fb-5063b328-20250815"; })(); diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-prod.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-prod.js index 5c69cec746..b6a2579591 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-prod.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-prod.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<8ca64d636b2f3919d301286154f2f88d>> + * @generated SignedSource<<55fbd0c70773881b975d20fd0ffb23bf>> */ "use strict"; @@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.2.0-native-fb-eaf6adb1-20250815"; +exports.version = "19.2.0-native-fb-5063b328-20250815"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-profiling.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-profiling.js index 5c69cec746..b6a2579591 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-profiling.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-profiling.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<8ca64d636b2f3919d301286154f2f88d>> + * @generated SignedSource<<55fbd0c70773881b975d20fd0ffb23bf>> */ "use strict"; @@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.2.0-native-fb-eaf6adb1-20250815"; +exports.version = "19.2.0-native-fb-5063b328-20250815"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-dev.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-dev.js index b6ec5a21b7..432a01f1a7 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-dev.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-dev.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<> */ /* @@ -29362,11 +29362,11 @@ __DEV__ && }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.2.0-native-fb-eaf6adb1-20250815" !== isomorphicReactPackageVersion) + if ("19.2.0-native-fb-5063b328-20250815" !== 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-native-fb-eaf6adb1-20250815\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.2.0-native-fb-5063b328-20250815\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -29403,10 +29403,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.2.0-native-fb-eaf6adb1-20250815", + version: "19.2.0-native-fb-5063b328-20250815", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-eaf6adb1-20250815" + reconcilerVersion: "19.2.0-native-fb-5063b328-20250815" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -29545,5 +29545,5 @@ __DEV__ && listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; - exports.version = "19.2.0-native-fb-eaf6adb1-20250815"; + exports.version = "19.2.0-native-fb-5063b328-20250815"; })(); diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-prod.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-prod.js index b1202f417f..7d8065a8fe 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-prod.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-prod.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<6dfc1cf24d81dd574b100fe760100cdd>> + * @generated SignedSource<<9dadb2439881b754d7a1d1e251c01b4f>> */ /* @@ -17189,14 +17189,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { }; var isomorphicReactPackageVersion$jscomp$inline_2023 = React.version; if ( - "19.2.0-native-fb-eaf6adb1-20250815" !== + "19.2.0-native-fb-5063b328-20250815" !== isomorphicReactPackageVersion$jscomp$inline_2023 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2023, - "19.2.0-native-fb-eaf6adb1-20250815" + "19.2.0-native-fb-5063b328-20250815" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -17218,10 +17218,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { }; var internals$jscomp$inline_2554 = { bundleType: 0, - version: "19.2.0-native-fb-eaf6adb1-20250815", + version: "19.2.0-native-fb-5063b328-20250815", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-eaf6adb1-20250815" + reconcilerVersion: "19.2.0-native-fb-5063b328-20250815" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2555 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17319,4 +17319,4 @@ exports.hydrateRoot = function (container, initialChildren, options) { listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; -exports.version = "19.2.0-native-fb-eaf6adb1-20250815"; +exports.version = "19.2.0-native-fb-5063b328-20250815"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-profiling.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-profiling.js index aa10479c78..a421f3b277 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-profiling.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-profiling.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<<56f1d6a600baac9c016dff4f35b0915b>> */ /* @@ -19199,14 +19199,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { }; var isomorphicReactPackageVersion$jscomp$inline_2274 = React.version; if ( - "19.2.0-native-fb-eaf6adb1-20250815" !== + "19.2.0-native-fb-5063b328-20250815" !== isomorphicReactPackageVersion$jscomp$inline_2274 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2274, - "19.2.0-native-fb-eaf6adb1-20250815" + "19.2.0-native-fb-5063b328-20250815" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -19228,10 +19228,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { }; var internals$jscomp$inline_2281 = { bundleType: 0, - version: "19.2.0-native-fb-eaf6adb1-20250815", + version: "19.2.0-native-fb-5063b328-20250815", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-eaf6adb1-20250815", + reconcilerVersion: "19.2.0-native-fb-5063b328-20250815", getLaneLabelMap: function () { for ( var map = new Map(), lane = 1, index$321 = 0; @@ -19345,4 +19345,4 @@ exports.hydrateRoot = function (container, initialChildren, options) { listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; -exports.version = "19.2.0-native-fb-eaf6adb1-20250815"; +exports.version = "19.2.0-native-fb-5063b328-20250815"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-dev.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-dev.js index 3678ec5e09..62bea63b09 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-dev.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-dev.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<> */ /* @@ -29418,11 +29418,11 @@ __DEV__ && }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.2.0-native-fb-eaf6adb1-20250815" !== isomorphicReactPackageVersion) + if ("19.2.0-native-fb-5063b328-20250815" !== 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-native-fb-eaf6adb1-20250815\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.2.0-native-fb-5063b328-20250815\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -29459,10 +29459,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.2.0-native-fb-eaf6adb1-20250815", + version: "19.2.0-native-fb-5063b328-20250815", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-eaf6adb1-20250815" + reconcilerVersion: "19.2.0-native-fb-5063b328-20250815" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -29917,7 +29917,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.2.0-native-fb-eaf6adb1-20250815"; + exports.version = "19.2.0-native-fb-5063b328-20250815"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-prod.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-prod.js index 687ffdcbce..a555789f49 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-prod.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-prod.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<9271180dab04bd3b10a326b7d0c80552>> + * @generated SignedSource<<3e45668b4587a4853f8609947e4eb6de>> */ /* @@ -17200,14 +17200,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { }; var isomorphicReactPackageVersion$jscomp$inline_2024 = React.version; if ( - "19.2.0-native-fb-eaf6adb1-20250815" !== + "19.2.0-native-fb-5063b328-20250815" !== isomorphicReactPackageVersion$jscomp$inline_2024 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2024, - "19.2.0-native-fb-eaf6adb1-20250815" + "19.2.0-native-fb-5063b328-20250815" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -17229,10 +17229,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { }; var internals$jscomp$inline_2557 = { bundleType: 0, - version: "19.2.0-native-fb-eaf6adb1-20250815", + version: "19.2.0-native-fb-5063b328-20250815", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-eaf6adb1-20250815" + reconcilerVersion: "19.2.0-native-fb-5063b328-20250815" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2558 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17483,4 +17483,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.2.0-native-fb-eaf6adb1-20250815"; +exports.version = "19.2.0-native-fb-5063b328-20250815"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-profiling.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-profiling.js index 34fe9b5328..608d7e81d4 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-profiling.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-profiling.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<0c7baf3b3bfaa08e73e234d6a81b5be5>> + * @generated SignedSource<> */ /* @@ -19214,14 +19214,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { }; var isomorphicReactPackageVersion$jscomp$inline_2275 = React.version; if ( - "19.2.0-native-fb-eaf6adb1-20250815" !== + "19.2.0-native-fb-5063b328-20250815" !== isomorphicReactPackageVersion$jscomp$inline_2275 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2275, - "19.2.0-native-fb-eaf6adb1-20250815" + "19.2.0-native-fb-5063b328-20250815" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -19243,10 +19243,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { }; var internals$jscomp$inline_2282 = { bundleType: 0, - version: "19.2.0-native-fb-eaf6adb1-20250815", + version: "19.2.0-native-fb-5063b328-20250815", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-eaf6adb1-20250815", + reconcilerVersion: "19.2.0-native-fb-5063b328-20250815", getLaneLabelMap: function () { for ( var map = new Map(), lane = 1, index$321 = 0; @@ -19513,7 +19513,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.2.0-native-fb-eaf6adb1-20250815"; +exports.version = "19.2.0-native-fb-5063b328-20250815"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-dev.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-dev.js index 0817ff9ac4..f3406c6859 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-dev.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-dev.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<7f420b8eb0133eb90ba75d53f6a1fe1b>> + * @generated SignedSource<> */ "use strict"; @@ -15758,10 +15758,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.2.0-native-fb-eaf6adb1-20250815", + version: "19.2.0-native-fb-5063b328-20250815", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-eaf6adb1-20250815" + reconcilerVersion: "19.2.0-native-fb-5063b328-20250815" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -15906,5 +15906,5 @@ __DEV__ && flushSyncWorkAcrossRoots_impl(0, !0)); } }; - exports.version = "19.2.0-native-fb-eaf6adb1-20250815"; + exports.version = "19.2.0-native-fb-5063b328-20250815"; })(); diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-prod.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-prod.js index 176da2faad..e0cf811148 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-prod.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-prod.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<509fe690a2ab4635da843760c87a770d>> + * @generated SignedSource<> */ "use strict"; @@ -9924,10 +9924,10 @@ function wrapFiber(fiber) { } var internals$jscomp$inline_1428 = { bundleType: 0, - version: "19.2.0-native-fb-eaf6adb1-20250815", + version: "19.2.0-native-fb-5063b328-20250815", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-eaf6adb1-20250815" + reconcilerVersion: "19.2.0-native-fb-5063b328-20250815" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1429 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -10063,4 +10063,4 @@ exports.unstable_batchedUpdates = function (fn, a) { flushSyncWorkAcrossRoots_impl(0, !0)); } }; -exports.version = "19.2.0-native-fb-eaf6adb1-20250815"; +exports.version = "19.2.0-native-fb-5063b328-20250815"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-profiling.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-profiling.js index ccba3344d5..2a36310e29 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-profiling.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-profiling.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<<05666693612d8000b010e3e5571f4010>> */ "use strict"; @@ -10544,10 +10544,10 @@ function wrapFiber(fiber) { } var internals$jscomp$inline_1236 = { bundleType: 0, - version: "19.2.0-native-fb-eaf6adb1-20250815", + version: "19.2.0-native-fb-5063b328-20250815", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-eaf6adb1-20250815", + reconcilerVersion: "19.2.0-native-fb-5063b328-20250815", getLaneLabelMap: function () { for ( var map = new Map(), lane = 1, index$142 = 0; @@ -10698,4 +10698,4 @@ exports.unstable_batchedUpdates = function (fn, a) { flushSyncWorkAcrossRoots_impl(0, !0)); } }; -exports.version = "19.2.0-native-fb-eaf6adb1-20250815"; +exports.version = "19.2.0-native-fb-5063b328-20250815"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-dev.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-dev.js index 0c39e496e0..a09a40739c 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-dev.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-dev.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<<4e1bf35761e479e3139297341b2144d5>> */ "use strict"; @@ -1388,7 +1388,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.2.0-native-fb-eaf6adb1-20250815"; + exports.version = "19.2.0-native-fb-5063b328-20250815"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-prod.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-prod.js index c757c3e784..4c8909200b 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-prod.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-prod.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<> */ "use strict"; @@ -579,4 +579,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.2.0-native-fb-eaf6adb1-20250815"; +exports.version = "19.2.0-native-fb-5063b328-20250815"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-profiling.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-profiling.js index b26351ca95..d2cc67bd6e 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-profiling.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-profiling.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<6d5198173e44a3227083fa167021dbbd>> + * @generated SignedSource<> */ "use strict"; @@ -583,7 +583,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.2.0-native-fb-eaf6adb1-20250815"; +exports.version = "19.2.0-native-fb-5063b328-20250815"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/REVISION b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/REVISION index c82ad08c1b..6eb51122c6 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/REVISION +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/REVISION @@ -1 +1 @@ -eaf6adb1277e4cb4f91d1b7f687f773657a5751b +5063b3283fcae4bb43756d0d18d32008e3910bea diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js index 599f3c271f..9b5ae0b244 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<1ad4e231a67bf1885fba33c53efe5ffa>> + * @generated SignedSource<> */ "use strict"; @@ -19593,10 +19593,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.2.0-native-fb-eaf6adb1-20250815", + version: "19.2.0-native-fb-5063b328-20250815", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-eaf6adb1-20250815" + reconcilerVersion: "19.2.0-native-fb-5063b328-20250815" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-prod.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-prod.fb.js index 4620e7821c..fc5e0a980a 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-prod.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<> */ "use strict"; @@ -11107,10 +11107,10 @@ batchedUpdatesImpl = function (fn, a) { var roots = new Map(), internals$jscomp$inline_1260 = { bundleType: 0, - version: "19.2.0-native-fb-eaf6adb1-20250815", + version: "19.2.0-native-fb-5063b328-20250815", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-eaf6adb1-20250815" + reconcilerVersion: "19.2.0-native-fb-5063b328-20250815" }; null !== extraDevToolsConfig && (internals$jscomp$inline_1260.rendererConfig = extraDevToolsConfig); diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js index 726b0b1ffa..5e5d8e7174 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<> */ "use strict"; @@ -13058,10 +13058,10 @@ batchedUpdatesImpl = function (fn, a) { var roots = new Map(), internals$jscomp$inline_1504 = { bundleType: 0, - version: "19.2.0-native-fb-eaf6adb1-20250815", + version: "19.2.0-native-fb-5063b328-20250815", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-eaf6adb1-20250815" + reconcilerVersion: "19.2.0-native-fb-5063b328-20250815" }; null !== extraDevToolsConfig && (internals$jscomp$inline_1504.rendererConfig = extraDevToolsConfig); diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js index 3a2b340467..26997f0255 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<<1863ee3244418510c537252c3820d830>> */ "use strict"; @@ -19878,11 +19878,11 @@ __DEV__ && shouldSuspendImpl = newShouldSuspendImpl; }; var isomorphicReactPackageVersion = React.version; - if ("19.2.0-native-fb-eaf6adb1-20250815" !== isomorphicReactPackageVersion) + if ("19.2.0-native-fb-5063b328-20250815" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-native-renderer: 19.2.0-native-fb-eaf6adb1-20250815\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-native-renderer: 19.2.0-native-fb-5063b328-20250815\nLearn more: https://react.dev/warnings/version-mismatch") ); if ( "function" !== @@ -19908,10 +19908,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.2.0-native-fb-eaf6adb1-20250815", + version: "19.2.0-native-fb-5063b328-20250815", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-eaf6adb1-20250815" + reconcilerVersion: "19.2.0-native-fb-5063b328-20250815" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js index 09c6d53e55..b3125e6e68 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<81a24ca107cdf2948d3f361c18a61403>> + * @generated SignedSource<> */ "use strict"; @@ -11254,11 +11254,11 @@ function updateContainer(element, container, parentComponent, callback) { return lane; } var isomorphicReactPackageVersion = React.version; -if ("19.2.0-native-fb-eaf6adb1-20250815" !== isomorphicReactPackageVersion) +if ("19.2.0-native-fb-5063b328-20250815" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-native-renderer: 19.2.0-native-fb-eaf6adb1-20250815\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-native-renderer: 19.2.0-native-fb-5063b328-20250815\nLearn more: https://react.dev/warnings/version-mismatch") ); if ( "function" !== @@ -11308,10 +11308,10 @@ batchedUpdatesImpl = function (fn, a) { var roots = new Map(), internals$jscomp$inline_1290 = { bundleType: 0, - version: "19.2.0-native-fb-eaf6adb1-20250815", + version: "19.2.0-native-fb-5063b328-20250815", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-eaf6adb1-20250815" + reconcilerVersion: "19.2.0-native-fb-5063b328-20250815" }; null !== extraDevToolsConfig && (internals$jscomp$inline_1290.rendererConfig = extraDevToolsConfig); diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js index 7cebae3061..55888756cf 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<2fe5d0b8d8ce55fb29e28d8730e328a4>> + * @generated SignedSource<<91fbe8a4e651a0ceb274d86d2e0056bc>> */ "use strict"; @@ -13194,11 +13194,11 @@ function updateContainer(element, container, parentComponent, callback) { return lane; } var isomorphicReactPackageVersion = React.version; -if ("19.2.0-native-fb-eaf6adb1-20250815" !== isomorphicReactPackageVersion) +if ("19.2.0-native-fb-5063b328-20250815" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-native-renderer: 19.2.0-native-fb-eaf6adb1-20250815\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-native-renderer: 19.2.0-native-fb-5063b328-20250815\nLearn more: https://react.dev/warnings/version-mismatch") ); if ( "function" !== @@ -13248,10 +13248,10 @@ batchedUpdatesImpl = function (fn, a) { var roots = new Map(), internals$jscomp$inline_1534 = { bundleType: 0, - version: "19.2.0-native-fb-eaf6adb1-20250815", + version: "19.2.0-native-fb-5063b328-20250815", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-eaf6adb1-20250815" + reconcilerVersion: "19.2.0-native-fb-5063b328-20250815" }; null !== extraDevToolsConfig && (internals$jscomp$inline_1534.rendererConfig = extraDevToolsConfig); diff --git a/compiled-rn/facebook-fbsource/xplat/js/tools/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.development.js b/compiled-rn/facebook-fbsource/xplat/js/tools/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.development.js index 734117f057..46b1665545 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/tools/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.development.js +++ b/compiled-rn/facebook-fbsource/xplat/js/tools/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.development.js @@ -12,7 +12,7 @@ * @lightSyntaxTransform * @preventMunge * @oncall react_core - * @generated SignedSource<<43f3fe48d517809b8a8f771d8f3defc2>> + * @generated SignedSource<<1e90801ea127ad3fe2ca6a45c8672610>> */ 'use strict'; @@ -18824,7 +18824,7 @@ function printObjectPropertyKey(key) { } } function printInstructionValue(instrValue) { - var _a, _b, _c, _d, _e, _f, _g; + var _a, _b, _c, _d, _e; let value = ''; switch (instrValue.kind) { case 'ArrayExpression': { @@ -18997,18 +18997,8 @@ function printInstructionValue(instrValue) { const context = instrValue.loweredFunc.func.context .map(dep => printPlace(dep)) .join(','); - const effects = (_b = (_a = instrValue.loweredFunc.func.effects) === null || _a === void 0 ? void 0 : _a.map(effect => { - if (effect.kind === 'ContextMutation') { - return `ContextMutation places=[${[...effect.places] - .map(place => printPlace(place)) - .join(', ')}] effect=${effect.effect}`; - } - else { - return `GlobalMutation`; - } - }).join(', ')) !== null && _b !== void 0 ? _b : ''; - const aliasingEffects = (_e = (_d = (_c = instrValue.loweredFunc.func.aliasingEffects) === null || _c === void 0 ? void 0 : _c.map(printAliasingEffect)) === null || _d === void 0 ? void 0 : _d.join(', ')) !== null && _e !== void 0 ? _e : ''; - value = `${kind} ${name} @context[${context}] @effects[${effects}] @aliasingEffects=[${aliasingEffects}]\n${fn}`; + const aliasingEffects = (_c = (_b = (_a = instrValue.loweredFunc.func.aliasingEffects) === null || _a === void 0 ? void 0 : _a.map(printAliasingEffect)) === null || _b === void 0 ? void 0 : _b.join(', ')) !== null && _c !== void 0 ? _c : ''; + value = `${kind} ${name} @context[${context}] @aliasingEffects=[${aliasingEffects}]\n${fn}`; break; } case 'TaggedTemplateExpression': { @@ -19124,7 +19114,7 @@ function printInstructionValue(instrValue) { break; } case 'StartMemoize': { - value = `StartMemoize deps=${(_g = (_f = instrValue.deps) === null || _f === void 0 ? void 0 : _f.map(dep => printManualMemoDependency(dep, false))) !== null && _g !== void 0 ? _g : '(none)'}`; + value = `StartMemoize deps=${(_e = (_d = instrValue.deps) === null || _d === void 0 ? void 0 : _d.map(dep => printManualMemoDependency(dep, false))) !== null && _e !== void 0 ? _e : '(none)'}`; break; } case 'FinishMemoize': { @@ -48506,7 +48496,6 @@ function emitSelectorFn(env, keys) { returnTypeAnnotation: null, returns: createTemporaryPlace(env, GeneratedSource), context: [], - effects: null, body: { entry: block.id, blocks: new Map([[block.id, block]]), @@ -48514,6 +48503,7 @@ function emitSelectorFn(env, keys) { generator: false, async: false, directives: [], + aliasingEffects: [], }; reversePostorderBlocks(fn.body); markInstructionIds(fn.body); @@ -48938,7 +48928,6 @@ function emitOutlinedFn(env, jsx, oldProps, globals) { returnTypeAnnotation: null, returns: createTemporaryPlace(env, GeneratedSource), context: [], - effects: null, body: { entry: block.id, blocks: new Map([[block.id, block]]), @@ -48946,6 +48935,7 @@ function emitOutlinedFn(env, jsx, oldProps, globals) { generator: false, async: false, directives: [], + aliasingEffects: [], }; return fn; } @@ -49602,14 +49592,13 @@ function validateStaticComponents(fn) { } function validateNoFreezingKnownMutableFunctions(fn) { - var _a; const errors = new CompilerError(); const contextMutationEffects = new Map(); function visitOperand(operand) { if (operand.effect === Effect.Freeze) { const effect = contextMutationEffects.get(operand.identifier.id); if (effect != null) { - const place = [...effect.places][0]; + const place = effect.value; const variable = place != null && place.identifier.name != null && place.identifier.name.kind === 'named' @@ -49627,7 +49616,7 @@ function validateNoFreezingKnownMutableFunctions(fn) { }) .withDetail({ kind: 'error', - loc: effect.loc, + loc: effect.value.loc, message: `This modifies ${variable}`, })); } @@ -49653,19 +49642,7 @@ function validateNoFreezingKnownMutableFunctions(fn) { break; } case 'FunctionExpression': { - const knownMutation = ((_a = value.loweredFunc.func.effects) !== null && _a !== void 0 ? _a : []).find(effect => { - return (effect.kind === 'ContextMutation' && - (effect.effect === Effect.Store || - effect.effect === Effect.Mutate) && - Iterable_some(effect.places, place => { - return (isMutableEffect(place.effect, place.loc) && - !isRefOrRefLikeMutableType(place.identifier.type)); - })); - }); - if (knownMutation && knownMutation.kind === 'ContextMutation') { - contextMutationEffects.set(lvalue.identifier.id, knownMutation); - } - else if (value.loweredFunc.func.aliasingEffects != null) { + if (value.loweredFunc.func.aliasingEffects != null) { const context = new Set(value.loweredFunc.func.context.map(p => p.identifier.id)); effects: for (const effect of value.loweredFunc.func .aliasingEffects) { @@ -49678,12 +49655,7 @@ function validateNoFreezingKnownMutableFunctions(fn) { } else if (context.has(effect.value.identifier.id) && !isRefOrRefLikeMutableType(effect.value.identifier.type)) { - contextMutationEffects.set(lvalue.identifier.id, { - kind: 'ContextMutation', - effect: Effect.Mutate, - loc: effect.value.loc, - places: new Set([effect.value]), - }); + contextMutationEffects.set(lvalue.identifier.id, effect); break effects; } break; diff --git a/compiled-rn/facebook-fbsource/xplat/js/tools/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.production.js b/compiled-rn/facebook-fbsource/xplat/js/tools/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.production.js index 3de42a43fc..0bbf66f61a 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/tools/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.production.js +++ b/compiled-rn/facebook-fbsource/xplat/js/tools/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.production.js @@ -6,7 +6,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - * @generated SignedSource<> + * @generated SignedSource<<3e8071675ac8848c762ee884ed9f093c>> */ 'use strict'; @@ -18809,7 +18809,7 @@ function printObjectPropertyKey(key) { } } function printInstructionValue(instrValue) { - var _a, _b, _c, _d, _e, _f, _g; + var _a, _b, _c, _d, _e; let value = ''; switch (instrValue.kind) { case 'ArrayExpression': { @@ -18982,18 +18982,8 @@ function printInstructionValue(instrValue) { const context = instrValue.loweredFunc.func.context .map(dep => printPlace(dep)) .join(','); - const effects = (_b = (_a = instrValue.loweredFunc.func.effects) === null || _a === void 0 ? void 0 : _a.map(effect => { - if (effect.kind === 'ContextMutation') { - return `ContextMutation places=[${[...effect.places] - .map(place => printPlace(place)) - .join(', ')}] effect=${effect.effect}`; - } - else { - return `GlobalMutation`; - } - }).join(', ')) !== null && _b !== void 0 ? _b : ''; - const aliasingEffects = (_e = (_d = (_c = instrValue.loweredFunc.func.aliasingEffects) === null || _c === void 0 ? void 0 : _c.map(printAliasingEffect)) === null || _d === void 0 ? void 0 : _d.join(', ')) !== null && _e !== void 0 ? _e : ''; - value = `${kind} ${name} @context[${context}] @effects[${effects}] @aliasingEffects=[${aliasingEffects}]\n${fn}`; + const aliasingEffects = (_c = (_b = (_a = instrValue.loweredFunc.func.aliasingEffects) === null || _a === void 0 ? void 0 : _a.map(printAliasingEffect)) === null || _b === void 0 ? void 0 : _b.join(', ')) !== null && _c !== void 0 ? _c : ''; + value = `${kind} ${name} @context[${context}] @aliasingEffects=[${aliasingEffects}]\n${fn}`; break; } case 'TaggedTemplateExpression': { @@ -19109,7 +19099,7 @@ function printInstructionValue(instrValue) { break; } case 'StartMemoize': { - value = `StartMemoize deps=${(_g = (_f = instrValue.deps) === null || _f === void 0 ? void 0 : _f.map(dep => printManualMemoDependency(dep, false))) !== null && _g !== void 0 ? _g : '(none)'}`; + value = `StartMemoize deps=${(_e = (_d = instrValue.deps) === null || _d === void 0 ? void 0 : _d.map(dep => printManualMemoDependency(dep, false))) !== null && _e !== void 0 ? _e : '(none)'}`; break; } case 'FinishMemoize': { @@ -48285,7 +48275,6 @@ function emitSelectorFn(env, keys) { returnTypeAnnotation: null, returns: createTemporaryPlace(env, GeneratedSource), context: [], - effects: null, body: { entry: block.id, blocks: new Map([[block.id, block]]), @@ -48293,6 +48282,7 @@ function emitSelectorFn(env, keys) { generator: false, async: false, directives: [], + aliasingEffects: [], }; reversePostorderBlocks(fn.body); markInstructionIds(fn.body); @@ -48717,7 +48707,6 @@ function emitOutlinedFn(env, jsx, oldProps, globals) { returnTypeAnnotation: null, returns: createTemporaryPlace(env, GeneratedSource), context: [], - effects: null, body: { entry: block.id, blocks: new Map([[block.id, block]]), @@ -48725,6 +48714,7 @@ function emitOutlinedFn(env, jsx, oldProps, globals) { generator: false, async: false, directives: [], + aliasingEffects: [], }; return fn; } @@ -49381,14 +49371,13 @@ function validateStaticComponents(fn) { } function validateNoFreezingKnownMutableFunctions(fn) { - var _a; const errors = new CompilerError(); const contextMutationEffects = new Map(); function visitOperand(operand) { if (operand.effect === Effect.Freeze) { const effect = contextMutationEffects.get(operand.identifier.id); if (effect != null) { - const place = [...effect.places][0]; + const place = effect.value; const variable = place != null && place.identifier.name != null && place.identifier.name.kind === 'named' @@ -49406,7 +49395,7 @@ function validateNoFreezingKnownMutableFunctions(fn) { }) .withDetail({ kind: 'error', - loc: effect.loc, + loc: effect.value.loc, message: `This modifies ${variable}`, })); } @@ -49432,19 +49421,7 @@ function validateNoFreezingKnownMutableFunctions(fn) { break; } case 'FunctionExpression': { - const knownMutation = ((_a = value.loweredFunc.func.effects) !== null && _a !== void 0 ? _a : []).find(effect => { - return (effect.kind === 'ContextMutation' && - (effect.effect === Effect.Store || - effect.effect === Effect.Mutate) && - Iterable_some(effect.places, place => { - return (isMutableEffect(place.effect, place.loc) && - !isRefOrRefLikeMutableType(place.identifier.type)); - })); - }); - if (knownMutation && knownMutation.kind === 'ContextMutation') { - contextMutationEffects.set(lvalue.identifier.id, knownMutation); - } - else if (value.loweredFunc.func.aliasingEffects != null) { + if (value.loweredFunc.func.aliasingEffects != null) { const context = new Set(value.loweredFunc.func.context.map(p => p.identifier.id)); effects: for (const effect of value.loweredFunc.func .aliasingEffects) { @@ -49457,12 +49434,7 @@ function validateNoFreezingKnownMutableFunctions(fn) { } else if (context.has(effect.value.identifier.id) && !isRefOrRefLikeMutableType(effect.value.identifier.type)) { - contextMutationEffects.set(lvalue.identifier.id, { - kind: 'ContextMutation', - effect: Effect.Mutate, - loc: effect.value.loc, - places: new Set([effect.value]), - }); + contextMutationEffects.set(lvalue.identifier.id, effect); break effects; } break; diff --git a/compiled-rn/facebook-fbsource/xplat/js/tools/eslint-plugin-react-hooks/package.json b/compiled-rn/facebook-fbsource/xplat/js/tools/eslint-plugin-react-hooks/package.json index fe5de04333..5e6a906388 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/tools/eslint-plugin-react-hooks/package.json +++ b/compiled-rn/facebook-fbsource/xplat/js/tools/eslint-plugin-react-hooks/package.json @@ -1,7 +1,7 @@ { "name": "eslint-plugin-react-hooks", "description": "ESLint rules for React Hooks", - "version": "0.0.0-experimental-eaf6adb1-20250815", + "version": "0.0.0-experimental-5063b328-20250815", "repository": { "type": "git", "url": "https://github.com/facebook/react.git",