From 981b703a40c6f57616dec9efbc0f8b9a0031d787 Mon Sep 17 00:00:00 2001 From: josephsavona Date: Tue, 15 Jul 2025 12:02:20 -0700 Subject: [PATCH] [compiler] Check TSAsExpression and TSNonNullExpression reorderability (#33788) ## Summary The `TSAsExpression` and `TSNonNullExpression` nodes are supported by `lowerExpression()` but `isReorderableExpression()` does not check if they can be reordered. This PR updates `isReorderableExpression()` to handle these two node types by adding cases that fall through to the existing `TypeCastExpression` case. We ran `react-compiler-healthcheck` at scale on several of our repos and found dozens of `` (BuildHIR::node.lowerReorderableExpression) Expression type `TSAsExpression` cannot be safely reordered`` errors and a handful for `TSNonNullExpression`. ## How did you test this change? In this case I added two fixture tests DiffTrain build for [fe813143e23675963f92d25fa1fb35b39db40272](https://github.com/facebook/react/commit/fe813143e23675963f92d25fa1fb35b39db40272) --- compiled-rn/VERSION_NATIVE_FB | 2 +- .../vendor/react/react-dom/cjs/ReactDOM-dev.js | 4 ++-- .../vendor/react/react-dom/cjs/ReactDOM-prod.js | 4 ++-- .../vendor/react/react-dom/cjs/ReactDOM-profiling.js | 4 ++-- .../vendor/react/react-dom/cjs/ReactDOMClient-dev.js | 12 ++++++------ .../react/react-dom/cjs/ReactDOMClient-prod.js | 12 ++++++------ .../react/react-dom/cjs/ReactDOMClient-profiling.js | 12 ++++++------ .../react/react-dom/cjs/ReactDOMProfiling-dev.js | 12 ++++++------ .../react/react-dom/cjs/ReactDOMProfiling-prod.js | 12 ++++++------ .../react-dom/cjs/ReactDOMProfiling-profiling.js | 12 ++++++------ .../react-test-renderer/cjs/ReactTestRenderer-dev.js | 8 ++++---- .../cjs/ReactTestRenderer-prod.js | 8 ++++---- .../cjs/ReactTestRenderer-profiling.js | 8 ++++---- .../RKJSModules/vendor/react/react/cjs/React-dev.js | 4 ++-- .../RKJSModules/vendor/react/react/cjs/React-prod.js | 4 ++-- .../vendor/react/react/cjs/React-profiling.js | 4 ++-- .../react-native-github/Libraries/Renderer/REVISION | 2 +- .../Renderer/implementations/ReactFabric-dev.fb.js | 6 +++--- .../Renderer/implementations/ReactFabric-prod.fb.js | 6 +++--- .../implementations/ReactFabric-profiling.fb.js | 6 +++--- .../implementations/ReactNativeRenderer-dev.fb.js | 10 +++++----- .../implementations/ReactNativeRenderer-prod.fb.js | 10 +++++----- .../ReactNativeRenderer-profiling.fb.js | 10 +++++----- .../cjs/eslint-plugin-react-hooks.development.js | 4 +++- .../cjs/eslint-plugin-react-hooks.production.js | 4 +++- .../js/tools/eslint-plugin-react-hooks/package.json | 2 +- 26 files changed, 93 insertions(+), 89 deletions(-) diff --git a/compiled-rn/VERSION_NATIVE_FB b/compiled-rn/VERSION_NATIVE_FB index 52d2d5d5cd..f04dfbbb2e 100644 --- a/compiled-rn/VERSION_NATIVE_FB +++ b/compiled-rn/VERSION_NATIVE_FB @@ -1 +1 @@ -19.2.0-native-fb-97cdd5d3-20250710 \ No newline at end of file +19.2.0-native-fb-fe813143-20250715 \ 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 b250197641..c6fa01b824 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<> + * @generated SignedSource<> */ "use strict"; @@ -404,5 +404,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.2.0-native-fb-97cdd5d3-20250710"; + exports.version = "19.2.0-native-fb-fe813143-20250715"; })(); 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 f2390ca63e..75e2938a36 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<<2ade998e2c2a0dc89117fbb76a26a2eb>> + * @generated SignedSource<<62ae8072c8b4ccd14bfb2b8130c3dce9>> */ "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-97cdd5d3-20250710"; +exports.version = "19.2.0-native-fb-fe813143-20250715"; 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 f2390ca63e..75e2938a36 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<<2ade998e2c2a0dc89117fbb76a26a2eb>> + * @generated SignedSource<<62ae8072c8b4ccd14bfb2b8130c3dce9>> */ "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-97cdd5d3-20250710"; +exports.version = "19.2.0-native-fb-fe813143-20250715"; 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 95bb4fbf5a..011af4e1d5 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<<17b41f9b2a609ec1fb0d9d149a346e01>> + * @generated SignedSource<> */ /* @@ -29006,11 +29006,11 @@ __DEV__ && }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.2.0-native-fb-97cdd5d3-20250710" !== isomorphicReactPackageVersion) + if ("19.2.0-native-fb-fe813143-20250715" !== 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-97cdd5d3-20250710\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.2.0-native-fb-fe813143-20250715\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -29047,10 +29047,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.2.0-native-fb-97cdd5d3-20250710", + version: "19.2.0-native-fb-fe813143-20250715", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-97cdd5d3-20250710" + reconcilerVersion: "19.2.0-native-fb-fe813143-20250715" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -29188,5 +29188,5 @@ __DEV__ && listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; - exports.version = "19.2.0-native-fb-97cdd5d3-20250710"; + exports.version = "19.2.0-native-fb-fe813143-20250715"; })(); 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 2cbd1c992e..b9bc1f8ebf 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<> + * @generated SignedSource<> */ /* @@ -17123,14 +17123,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { }; var isomorphicReactPackageVersion$jscomp$inline_2004 = React.version; if ( - "19.2.0-native-fb-97cdd5d3-20250710" !== + "19.2.0-native-fb-fe813143-20250715" !== isomorphicReactPackageVersion$jscomp$inline_2004 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2004, - "19.2.0-native-fb-97cdd5d3-20250710" + "19.2.0-native-fb-fe813143-20250715" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -17152,10 +17152,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { }; var internals$jscomp$inline_2523 = { bundleType: 0, - version: "19.2.0-native-fb-97cdd5d3-20250710", + version: "19.2.0-native-fb-fe813143-20250715", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-97cdd5d3-20250710" + reconcilerVersion: "19.2.0-native-fb-fe813143-20250715" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2524 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17253,4 +17253,4 @@ exports.hydrateRoot = function (container, initialChildren, options) { listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; -exports.version = "19.2.0-native-fb-97cdd5d3-20250710"; +exports.version = "19.2.0-native-fb-fe813143-20250715"; 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 f1836786ca..b15cf493f4 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<> */ /* @@ -19080,14 +19080,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { }; var isomorphicReactPackageVersion$jscomp$inline_2244 = React.version; if ( - "19.2.0-native-fb-97cdd5d3-20250710" !== + "19.2.0-native-fb-fe813143-20250715" !== isomorphicReactPackageVersion$jscomp$inline_2244 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2244, - "19.2.0-native-fb-97cdd5d3-20250710" + "19.2.0-native-fb-fe813143-20250715" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -19109,10 +19109,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { }; var internals$jscomp$inline_2251 = { bundleType: 0, - version: "19.2.0-native-fb-97cdd5d3-20250710", + version: "19.2.0-native-fb-fe813143-20250715", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-97cdd5d3-20250710", + reconcilerVersion: "19.2.0-native-fb-fe813143-20250715", getLaneLabelMap: function () { for ( var map = new Map(), lane = 1, index$319 = 0; @@ -19225,4 +19225,4 @@ exports.hydrateRoot = function (container, initialChildren, options) { listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; -exports.version = "19.2.0-native-fb-97cdd5d3-20250710"; +exports.version = "19.2.0-native-fb-fe813143-20250715"; 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 710a9cfe98..d3a2aaf9c0 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<<7e54731647e2a535d2105702d1ea8208>> */ /* @@ -29062,11 +29062,11 @@ __DEV__ && }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.2.0-native-fb-97cdd5d3-20250710" !== isomorphicReactPackageVersion) + if ("19.2.0-native-fb-fe813143-20250715" !== 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-97cdd5d3-20250710\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.2.0-native-fb-fe813143-20250715\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -29103,10 +29103,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.2.0-native-fb-97cdd5d3-20250710", + version: "19.2.0-native-fb-fe813143-20250715", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-97cdd5d3-20250710" + reconcilerVersion: "19.2.0-native-fb-fe813143-20250715" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -29560,7 +29560,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.2.0-native-fb-97cdd5d3-20250710"; + exports.version = "19.2.0-native-fb-fe813143-20250715"; "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 5f16929c0d..979930e59e 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<<51223ca10c541710ebf7753f56ccd2eb>> + * @generated SignedSource<<3ef373a70ccc148dcaadd636c6b7cc04>> */ /* @@ -17134,14 +17134,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { }; var isomorphicReactPackageVersion$jscomp$inline_2005 = React.version; if ( - "19.2.0-native-fb-97cdd5d3-20250710" !== + "19.2.0-native-fb-fe813143-20250715" !== isomorphicReactPackageVersion$jscomp$inline_2005 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2005, - "19.2.0-native-fb-97cdd5d3-20250710" + "19.2.0-native-fb-fe813143-20250715" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -17163,10 +17163,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { }; var internals$jscomp$inline_2526 = { bundleType: 0, - version: "19.2.0-native-fb-97cdd5d3-20250710", + version: "19.2.0-native-fb-fe813143-20250715", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-97cdd5d3-20250710" + reconcilerVersion: "19.2.0-native-fb-fe813143-20250715" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2527 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17417,4 +17417,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.2.0-native-fb-97cdd5d3-20250710"; +exports.version = "19.2.0-native-fb-fe813143-20250715"; 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 fa15fc35b7..94ce495c26 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<<5d506356eaed59dd393f2704ae6b6d19>> + * @generated SignedSource<> */ /* @@ -19095,14 +19095,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { }; var isomorphicReactPackageVersion$jscomp$inline_2245 = React.version; if ( - "19.2.0-native-fb-97cdd5d3-20250710" !== + "19.2.0-native-fb-fe813143-20250715" !== isomorphicReactPackageVersion$jscomp$inline_2245 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2245, - "19.2.0-native-fb-97cdd5d3-20250710" + "19.2.0-native-fb-fe813143-20250715" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -19124,10 +19124,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { }; var internals$jscomp$inline_2252 = { bundleType: 0, - version: "19.2.0-native-fb-97cdd5d3-20250710", + version: "19.2.0-native-fb-fe813143-20250715", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-97cdd5d3-20250710", + reconcilerVersion: "19.2.0-native-fb-fe813143-20250715", getLaneLabelMap: function () { for ( var map = new Map(), lane = 1, index$319 = 0; @@ -19393,7 +19393,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.2.0-native-fb-97cdd5d3-20250710"; +exports.version = "19.2.0-native-fb-fe813143-20250715"; "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 74f656e5be..d6e9a4d9bf 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<<83950976b3a7862f9b90815c18fde22b>> + * @generated SignedSource<<6c07fc5fca639b6512b4c92d3f322852>> */ "use strict"; @@ -15727,10 +15727,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.2.0-native-fb-97cdd5d3-20250710", + version: "19.2.0-native-fb-fe813143-20250715", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-97cdd5d3-20250710" + reconcilerVersion: "19.2.0-native-fb-fe813143-20250715" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -15875,5 +15875,5 @@ __DEV__ && flushSyncWorkAcrossRoots_impl(0, !0)); } }; - exports.version = "19.2.0-native-fb-97cdd5d3-20250710"; + exports.version = "19.2.0-native-fb-fe813143-20250715"; })(); 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 18958235d6..c7af83bad3 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<<553884dfed71acb1b5f0201d9cea8a00>> + * @generated SignedSource<> */ "use strict"; @@ -9907,10 +9907,10 @@ function wrapFiber(fiber) { } var internals$jscomp$inline_1434 = { bundleType: 0, - version: "19.2.0-native-fb-97cdd5d3-20250710", + version: "19.2.0-native-fb-fe813143-20250715", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-97cdd5d3-20250710" + reconcilerVersion: "19.2.0-native-fb-fe813143-20250715" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1435 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -10046,4 +10046,4 @@ exports.unstable_batchedUpdates = function (fn, a) { flushSyncWorkAcrossRoots_impl(0, !0)); } }; -exports.version = "19.2.0-native-fb-97cdd5d3-20250710"; +exports.version = "19.2.0-native-fb-fe813143-20250715"; 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 0d895b62bc..92ff81827c 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<<961f7058833934550a318b0c5b056b0c>> + * @generated SignedSource<<9e3c5f14f00c9f994c04edb413e122c9>> */ "use strict"; @@ -10527,10 +10527,10 @@ function wrapFiber(fiber) { } var internals$jscomp$inline_1241 = { bundleType: 0, - version: "19.2.0-native-fb-97cdd5d3-20250710", + version: "19.2.0-native-fb-fe813143-20250715", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-97cdd5d3-20250710", + reconcilerVersion: "19.2.0-native-fb-fe813143-20250715", getLaneLabelMap: function () { for ( var map = new Map(), lane = 1, index$143 = 0; @@ -10681,4 +10681,4 @@ exports.unstable_batchedUpdates = function (fn, a) { flushSyncWorkAcrossRoots_impl(0, !0)); } }; -exports.version = "19.2.0-native-fb-97cdd5d3-20250710"; +exports.version = "19.2.0-native-fb-fe813143-20250715"; 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 b7ba97609d..6319128a93 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<<32481c5f240453d085fc8f50be4b287b>> + * @generated SignedSource<> */ "use strict"; @@ -1413,7 +1413,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.2.0-native-fb-97cdd5d3-20250710"; + exports.version = "19.2.0-native-fb-fe813143-20250715"; "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 48d8e86df4..2779f40e5b 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<<9a7cfd7488de54869eb7f06164ea054e>> */ "use strict"; @@ -589,4 +589,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.2.0-native-fb-97cdd5d3-20250710"; +exports.version = "19.2.0-native-fb-fe813143-20250715"; 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 a5e298b72e..c7582b8277 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<<8a69f4168349f454b1d6627459e84524>> + * @generated SignedSource<> */ "use strict"; @@ -593,7 +593,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.2.0-native-fb-97cdd5d3-20250710"; +exports.version = "19.2.0-native-fb-fe813143-20250715"; "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 8d6b94ae03..14e06bb39b 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 @@ -97cdd5d3c33eda77be4f96a43f72d6916d3badbb +fe813143e23675963f92d25fa1fb35b39db40272 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 2915955894..59cf7758bb 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<> + * @generated SignedSource<<625e55c74316d708af9bc3a958a25f1a>> */ "use strict"; @@ -19236,10 +19236,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.2.0-native-fb-97cdd5d3-20250710", + version: "19.2.0-native-fb-fe813143-20250715", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-97cdd5d3-20250710" + reconcilerVersion: "19.2.0-native-fb-fe813143-20250715" }; 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 4364c78eed..c6c2647d0f 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<<98a7d005996a58b166a3231f23d68d9b>> + * @generated SignedSource<<46569f751fdaf60f28e8909e665eb005>> */ "use strict"; @@ -11031,10 +11031,10 @@ batchedUpdatesImpl = function (fn, a) { var roots = new Map(), internals$jscomp$inline_1238 = { bundleType: 0, - version: "19.2.0-native-fb-97cdd5d3-20250710", + version: "19.2.0-native-fb-fe813143-20250715", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-97cdd5d3-20250710" + reconcilerVersion: "19.2.0-native-fb-fe813143-20250715" }; null !== extraDevToolsConfig && (internals$jscomp$inline_1238.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 f4e34036cf..4ab5fb1de5 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"; @@ -12959,10 +12959,10 @@ batchedUpdatesImpl = function (fn, a) { var roots = new Map(), internals$jscomp$inline_1473 = { bundleType: 0, - version: "19.2.0-native-fb-97cdd5d3-20250710", + version: "19.2.0-native-fb-fe813143-20250715", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-97cdd5d3-20250710" + reconcilerVersion: "19.2.0-native-fb-fe813143-20250715" }; null !== extraDevToolsConfig && (internals$jscomp$inline_1473.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 bfb6da9e0c..439344c355 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<<70d7bd0807383a9e00b204ff63b365ec>> + * @generated SignedSource<<9b2378089b75a3d1475a632d2f670939>> */ "use strict"; @@ -19569,11 +19569,11 @@ __DEV__ && shouldSuspendImpl = newShouldSuspendImpl; }; var isomorphicReactPackageVersion = React.version; - if ("19.2.0-native-fb-97cdd5d3-20250710" !== isomorphicReactPackageVersion) + if ("19.2.0-native-fb-fe813143-20250715" !== 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-97cdd5d3-20250710\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-native-renderer: 19.2.0-native-fb-fe813143-20250715\nLearn more: https://react.dev/warnings/version-mismatch") ); if ( "function" !== @@ -19599,10 +19599,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.2.0-native-fb-97cdd5d3-20250710", + version: "19.2.0-native-fb-fe813143-20250715", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-97cdd5d3-20250710" + reconcilerVersion: "19.2.0-native-fb-fe813143-20250715" }; 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 5eadae2f34..7254e1eaf2 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<<5ee22ac2771685511adc19eae9b2bf6f>> + * @generated SignedSource<<43b6df7ce81fed98b80ea91013174a44>> */ "use strict"; @@ -11223,11 +11223,11 @@ function updateContainer(element, container, parentComponent, callback) { return lane; } var isomorphicReactPackageVersion = React.version; -if ("19.2.0-native-fb-97cdd5d3-20250710" !== isomorphicReactPackageVersion) +if ("19.2.0-native-fb-fe813143-20250715" !== 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-97cdd5d3-20250710\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-native-renderer: 19.2.0-native-fb-fe813143-20250715\nLearn more: https://react.dev/warnings/version-mismatch") ); if ( "function" !== @@ -11277,10 +11277,10 @@ batchedUpdatesImpl = function (fn, a) { var roots = new Map(), internals$jscomp$inline_1294 = { bundleType: 0, - version: "19.2.0-native-fb-97cdd5d3-20250710", + version: "19.2.0-native-fb-fe813143-20250715", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-97cdd5d3-20250710" + reconcilerVersion: "19.2.0-native-fb-fe813143-20250715" }; null !== extraDevToolsConfig && (internals$jscomp$inline_1294.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 ac9720efcb..f334b8064b 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<> + * @generated SignedSource<<65db8583c57dae51e6d18c209b31aba0>> */ "use strict"; @@ -13140,11 +13140,11 @@ function updateContainer(element, container, parentComponent, callback) { return lane; } var isomorphicReactPackageVersion = React.version; -if ("19.2.0-native-fb-97cdd5d3-20250710" !== isomorphicReactPackageVersion) +if ("19.2.0-native-fb-fe813143-20250715" !== 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-97cdd5d3-20250710\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-native-renderer: 19.2.0-native-fb-fe813143-20250715\nLearn more: https://react.dev/warnings/version-mismatch") ); if ( "function" !== @@ -13194,10 +13194,10 @@ batchedUpdatesImpl = function (fn, a) { var roots = new Map(), internals$jscomp$inline_1529 = { bundleType: 0, - version: "19.2.0-native-fb-97cdd5d3-20250710", + version: "19.2.0-native-fb-fe813143-20250715", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-97cdd5d3-20250710" + reconcilerVersion: "19.2.0-native-fb-fe813143-20250715" }; null !== extraDevToolsConfig && (internals$jscomp$inline_1529.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 a947fad0b0..950c47631a 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<> + * @generated SignedSource<<24d58c7f3edf4b1587a53208b9c60643>> */ 'use strict'; @@ -24222,6 +24222,8 @@ function isReorderableExpression(builder, expr, allowLocalIdentifiers) { } } } + case 'TSAsExpression': + case 'TSNonNullExpression': case 'TypeCastExpression': { return isReorderableExpression(builder, expr.get('expression'), allowLocalIdentifiers); } 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 52417414c4..a49ea791fb 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<<30d570b42bb03e2b1bd6df9e6d3061fd>> + * @generated SignedSource<<618e2853cef55247b33a01f301cbe446>> */ 'use strict'; @@ -24207,6 +24207,8 @@ function isReorderableExpression(builder, expr, allowLocalIdentifiers) { } } } + case 'TSAsExpression': + case 'TSNonNullExpression': case 'TypeCastExpression': { return isReorderableExpression(builder, expr.get('expression'), allowLocalIdentifiers); } 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 b52f0b8cb7..548880db31 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-97cdd5d3-20250710", + "version": "0.0.0-experimental-fe813143-20250715", "repository": { "type": "git", "url": "https://github.com/facebook/react.git",