From d0c88dba51f4bd9b89a2368c3d64f0b007374331 Mon Sep 17 00:00:00 2001 From: sebmarkbage Date: Wed, 25 Jun 2025 13:40:13 -0700 Subject: [PATCH] [Flight] Log aborted await and component renders (#33641) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Screenshot 2025-06-25 at 1 02 14 PM The I/O entry doesn't show as aborted in the Server Request track because technically it wasn't. The end time is just made up. It's still going. It's not aborted until the abort signal propagates and if we do get that signal wired up before it emits, it instead would show up as rejected. --------- Co-authored-by: Hendrik Liebau DiffTrain build for [bb6c9d521e7f44eb9a9754a14cde62c8e6439e5e](https://github.com/facebook/react/commit/bb6c9d521e7f44eb9a9754a14cde62c8e6439e5e) --- 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 | 30 +++++++++---------- .../eslint-plugin-react-hooks.production.js | 30 +++++++++---------- .../eslint-plugin-react-hooks/package.json | 2 +- 26 files changed, 117 insertions(+), 117 deletions(-) diff --git a/compiled-rn/VERSION_NATIVE_FB b/compiled-rn/VERSION_NATIVE_FB index ae196a48c4..0190707a74 100644 --- a/compiled-rn/VERSION_NATIVE_FB +++ b/compiled-rn/VERSION_NATIVE_FB @@ -1 +1 @@ -19.2.0-native-fb-9894c488-20250625 \ No newline at end of file +19.2.0-native-fb-bb6c9d52-20250625 \ 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 aa9148be8a..73412965bb 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<<7aa7f8cead56b79b2800cf27ea3aee1f>> + * @generated SignedSource<> */ "use strict"; @@ -404,5 +404,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.2.0-native-fb-9894c488-20250625"; + exports.version = "19.2.0-native-fb-bb6c9d52-20250625"; })(); 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 0b2f55bb73..079f77d90c 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<<86f6e52b601c9212c0a2df00969cfc08>> + * @generated SignedSource<<787db512fb5d2eb4006cc8f0bda193d6>> */ "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-9894c488-20250625"; +exports.version = "19.2.0-native-fb-bb6c9d52-20250625"; 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 0b2f55bb73..079f77d90c 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<<86f6e52b601c9212c0a2df00969cfc08>> + * @generated SignedSource<<787db512fb5d2eb4006cc8f0bda193d6>> */ "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-9894c488-20250625"; +exports.version = "19.2.0-native-fb-bb6c9d52-20250625"; 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 0de5296350..43c1d44a85 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<<8e074ca71cd180d0d1552d9f50c8a2ee>> + * @generated SignedSource<> */ /* @@ -28651,11 +28651,11 @@ __DEV__ && }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.2.0-native-fb-9894c488-20250625" !== isomorphicReactPackageVersion) + if ("19.2.0-native-fb-bb6c9d52-20250625" !== 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-9894c488-20250625\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.2.0-native-fb-bb6c9d52-20250625\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -28692,10 +28692,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.2.0-native-fb-9894c488-20250625", + version: "19.2.0-native-fb-bb6c9d52-20250625", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-9894c488-20250625" + reconcilerVersion: "19.2.0-native-fb-bb6c9d52-20250625" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -28833,5 +28833,5 @@ __DEV__ && listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; - exports.version = "19.2.0-native-fb-9894c488-20250625"; + exports.version = "19.2.0-native-fb-bb6c9d52-20250625"; })(); 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 aff8aae0df..4e3b2044a1 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<<214e9b286178f179f61d19d4e2e33862>> + * @generated SignedSource<<93e5b2db59595ae05f05b50e151fa5bc>> */ /* @@ -17121,14 +17121,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { }; var isomorphicReactPackageVersion$jscomp$inline_2023 = React.version; if ( - "19.2.0-native-fb-9894c488-20250625" !== + "19.2.0-native-fb-bb6c9d52-20250625" !== isomorphicReactPackageVersion$jscomp$inline_2023 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2023, - "19.2.0-native-fb-9894c488-20250625" + "19.2.0-native-fb-bb6c9d52-20250625" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -17150,10 +17150,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { }; var internals$jscomp$inline_2542 = { bundleType: 0, - version: "19.2.0-native-fb-9894c488-20250625", + version: "19.2.0-native-fb-bb6c9d52-20250625", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-9894c488-20250625" + reconcilerVersion: "19.2.0-native-fb-bb6c9d52-20250625" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2543 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17251,4 +17251,4 @@ exports.hydrateRoot = function (container, initialChildren, options) { listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; -exports.version = "19.2.0-native-fb-9894c488-20250625"; +exports.version = "19.2.0-native-fb-bb6c9d52-20250625"; 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 b1617fb5ad..195f3f3a12 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<<7c11bde30de8b988a84e58d4c9c1d1d2>> */ /* @@ -19053,14 +19053,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { }; var isomorphicReactPackageVersion$jscomp$inline_2261 = React.version; if ( - "19.2.0-native-fb-9894c488-20250625" !== + "19.2.0-native-fb-bb6c9d52-20250625" !== isomorphicReactPackageVersion$jscomp$inline_2261 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2261, - "19.2.0-native-fb-9894c488-20250625" + "19.2.0-native-fb-bb6c9d52-20250625" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -19082,10 +19082,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { }; var internals$jscomp$inline_2268 = { bundleType: 0, - version: "19.2.0-native-fb-9894c488-20250625", + version: "19.2.0-native-fb-bb6c9d52-20250625", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-9894c488-20250625", + reconcilerVersion: "19.2.0-native-fb-bb6c9d52-20250625", getLaneLabelMap: function () { for ( var map = new Map(), lane = 1, index$331 = 0; @@ -19198,4 +19198,4 @@ exports.hydrateRoot = function (container, initialChildren, options) { listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; -exports.version = "19.2.0-native-fb-9894c488-20250625"; +exports.version = "19.2.0-native-fb-bb6c9d52-20250625"; 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 ad6d6a00e4..526cda8951 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<<727ba832f1cbee1e1dbc93935792a08d>> + * @generated SignedSource<> */ /* @@ -28707,11 +28707,11 @@ __DEV__ && }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.2.0-native-fb-9894c488-20250625" !== isomorphicReactPackageVersion) + if ("19.2.0-native-fb-bb6c9d52-20250625" !== 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-9894c488-20250625\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.2.0-native-fb-bb6c9d52-20250625\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -28748,10 +28748,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.2.0-native-fb-9894c488-20250625", + version: "19.2.0-native-fb-bb6c9d52-20250625", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-9894c488-20250625" + reconcilerVersion: "19.2.0-native-fb-bb6c9d52-20250625" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -29205,7 +29205,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.2.0-native-fb-9894c488-20250625"; + exports.version = "19.2.0-native-fb-bb6c9d52-20250625"; "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 2f1acf25e0..10d5e1c97b 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<<8ce6156a4bd7818ab4f97d690dcd9364>> + * @generated SignedSource<<5ce7ccbf6cd6786683c0bb0c7349d5b8>> */ /* @@ -17132,14 +17132,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { }; var isomorphicReactPackageVersion$jscomp$inline_2024 = React.version; if ( - "19.2.0-native-fb-9894c488-20250625" !== + "19.2.0-native-fb-bb6c9d52-20250625" !== isomorphicReactPackageVersion$jscomp$inline_2024 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2024, - "19.2.0-native-fb-9894c488-20250625" + "19.2.0-native-fb-bb6c9d52-20250625" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -17161,10 +17161,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { }; var internals$jscomp$inline_2545 = { bundleType: 0, - version: "19.2.0-native-fb-9894c488-20250625", + version: "19.2.0-native-fb-bb6c9d52-20250625", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-9894c488-20250625" + reconcilerVersion: "19.2.0-native-fb-bb6c9d52-20250625" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2546 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17415,4 +17415,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.2.0-native-fb-9894c488-20250625"; +exports.version = "19.2.0-native-fb-bb6c9d52-20250625"; 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 539ba477e7..e781cacb5e 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<<42e3666353f304e91e408588a8bf36fe>> + * @generated SignedSource<> */ /* @@ -19068,14 +19068,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { }; var isomorphicReactPackageVersion$jscomp$inline_2262 = React.version; if ( - "19.2.0-native-fb-9894c488-20250625" !== + "19.2.0-native-fb-bb6c9d52-20250625" !== isomorphicReactPackageVersion$jscomp$inline_2262 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2262, - "19.2.0-native-fb-9894c488-20250625" + "19.2.0-native-fb-bb6c9d52-20250625" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -19097,10 +19097,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { }; var internals$jscomp$inline_2269 = { bundleType: 0, - version: "19.2.0-native-fb-9894c488-20250625", + version: "19.2.0-native-fb-bb6c9d52-20250625", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-9894c488-20250625", + reconcilerVersion: "19.2.0-native-fb-bb6c9d52-20250625", getLaneLabelMap: function () { for ( var map = new Map(), lane = 1, index$331 = 0; @@ -19366,7 +19366,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.2.0-native-fb-9894c488-20250625"; +exports.version = "19.2.0-native-fb-bb6c9d52-20250625"; "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 c9f8930bb6..7ec14749fb 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<<977bd60630ef783455ff0d3597f4e9f3>> + * @generated SignedSource<<33c6fbfd3d2312db5ddc69502e3781e1>> */ "use strict"; @@ -15722,10 +15722,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.2.0-native-fb-9894c488-20250625", + version: "19.2.0-native-fb-bb6c9d52-20250625", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-9894c488-20250625" + reconcilerVersion: "19.2.0-native-fb-bb6c9d52-20250625" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -15870,5 +15870,5 @@ __DEV__ && flushSyncWorkAcrossRoots_impl(0, !0)); } }; - exports.version = "19.2.0-native-fb-9894c488-20250625"; + exports.version = "19.2.0-native-fb-bb6c9d52-20250625"; })(); 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 9f9bf07b8a..dd93aec005 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<<37d9b1d514be2d9e30c7af36322d3f06>> + * @generated SignedSource<<89c2ee95285f2fc3cd51944cd79f7607>> */ "use strict"; @@ -9905,10 +9905,10 @@ function wrapFiber(fiber) { } var internals$jscomp$inline_1453 = { bundleType: 0, - version: "19.2.0-native-fb-9894c488-20250625", + version: "19.2.0-native-fb-bb6c9d52-20250625", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-9894c488-20250625" + reconcilerVersion: "19.2.0-native-fb-bb6c9d52-20250625" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1454 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -10044,4 +10044,4 @@ exports.unstable_batchedUpdates = function (fn, a) { flushSyncWorkAcrossRoots_impl(0, !0)); } }; -exports.version = "19.2.0-native-fb-9894c488-20250625"; +exports.version = "19.2.0-native-fb-bb6c9d52-20250625"; 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 db459ebe9b..ce4c41bc26 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<<61df7fc53cf658b3e2cf27d846ce99a9>> + * @generated SignedSource<> */ "use strict"; @@ -10525,10 +10525,10 @@ function wrapFiber(fiber) { } var internals$jscomp$inline_1260 = { bundleType: 0, - version: "19.2.0-native-fb-9894c488-20250625", + version: "19.2.0-native-fb-bb6c9d52-20250625", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-9894c488-20250625", + reconcilerVersion: "19.2.0-native-fb-bb6c9d52-20250625", getLaneLabelMap: function () { for ( var map = new Map(), lane = 1, index$155 = 0; @@ -10679,4 +10679,4 @@ exports.unstable_batchedUpdates = function (fn, a) { flushSyncWorkAcrossRoots_impl(0, !0)); } }; -exports.version = "19.2.0-native-fb-9894c488-20250625"; +exports.version = "19.2.0-native-fb-bb6c9d52-20250625"; 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 9bf5aaa5e3..9854129538 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<<397abd7f961e3d3ad5ecc04d3c0ff8f0>> + * @generated SignedSource<> */ "use strict"; @@ -1413,7 +1413,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.2.0-native-fb-9894c488-20250625"; + exports.version = "19.2.0-native-fb-bb6c9d52-20250625"; "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 199dc27a0e..ae22fbde9d 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<<3781b019be8e22a0c6c4e9341a37d960>> + * @generated SignedSource<> */ "use strict"; @@ -589,4 +589,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.2.0-native-fb-9894c488-20250625"; +exports.version = "19.2.0-native-fb-bb6c9d52-20250625"; 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 2f553696f4..e6cb11809a 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<<58d4c89c1f175149c6f0b1bce05e1e51>> + * @generated SignedSource<<9c3f2350cd8ebd730dcad8e66af17673>> */ "use strict"; @@ -593,7 +593,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.2.0-native-fb-9894c488-20250625"; +exports.version = "19.2.0-native-fb-bb6c9d52-20250625"; "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 dd3b378e59..a2d1e75aa2 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 @@ -9894c488e0d9a4d9759d80ba8666d4d094b894e9 +bb6c9d521e7f44eb9a9754a14cde62c8e6439e5e 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 0fc3f10435..7da725e5ab 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<> */ "use strict"; @@ -18875,10 +18875,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.2.0-native-fb-9894c488-20250625", + version: "19.2.0-native-fb-bb6c9d52-20250625", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-9894c488-20250625" + reconcilerVersion: "19.2.0-native-fb-bb6c9d52-20250625" }; 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 00dd2dad09..b3c4e31523 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<<275d04e8cb6a38259df8591dab325cdc>> + * @generated SignedSource<<6ece9697fba79c757cad58c456956366>> */ "use strict"; @@ -11029,10 +11029,10 @@ batchedUpdatesImpl = function (fn, a) { var roots = new Map(), internals$jscomp$inline_1257 = { bundleType: 0, - version: "19.2.0-native-fb-9894c488-20250625", + version: "19.2.0-native-fb-bb6c9d52-20250625", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-9894c488-20250625" + reconcilerVersion: "19.2.0-native-fb-bb6c9d52-20250625" }; null !== extraDevToolsConfig && (internals$jscomp$inline_1257.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 90ba449cc4..95465a38c7 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<<72486951c02a0614d71045fcc174ddc6>> + * @generated SignedSource<> */ "use strict"; @@ -12932,10 +12932,10 @@ batchedUpdatesImpl = function (fn, a) { var roots = new Map(), internals$jscomp$inline_1490 = { bundleType: 0, - version: "19.2.0-native-fb-9894c488-20250625", + version: "19.2.0-native-fb-bb6c9d52-20250625", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-9894c488-20250625" + reconcilerVersion: "19.2.0-native-fb-bb6c9d52-20250625" }; null !== extraDevToolsConfig && (internals$jscomp$inline_1490.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 c21c935ec4..75e678512e 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<<2af74191a5d61899ec12f33509e31498>> + * @generated SignedSource<<66a775b0e2b65195086cafb06b52e59a>> */ "use strict"; @@ -19208,11 +19208,11 @@ __DEV__ && shouldSuspendImpl = newShouldSuspendImpl; }; var isomorphicReactPackageVersion = React.version; - if ("19.2.0-native-fb-9894c488-20250625" !== isomorphicReactPackageVersion) + if ("19.2.0-native-fb-bb6c9d52-20250625" !== 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-9894c488-20250625\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-native-renderer: 19.2.0-native-fb-bb6c9d52-20250625\nLearn more: https://react.dev/warnings/version-mismatch") ); if ( "function" !== @@ -19238,10 +19238,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.2.0-native-fb-9894c488-20250625", + version: "19.2.0-native-fb-bb6c9d52-20250625", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-9894c488-20250625" + reconcilerVersion: "19.2.0-native-fb-bb6c9d52-20250625" }; 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 8b22288715..dbc6194612 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<<0eff702e6560c24b55ce8f9e1da6ddec>> + * @generated SignedSource<> */ "use strict"; @@ -11221,11 +11221,11 @@ function updateContainer(element, container, parentComponent, callback) { return lane; } var isomorphicReactPackageVersion = React.version; -if ("19.2.0-native-fb-9894c488-20250625" !== isomorphicReactPackageVersion) +if ("19.2.0-native-fb-bb6c9d52-20250625" !== 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-9894c488-20250625\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-native-renderer: 19.2.0-native-fb-bb6c9d52-20250625\nLearn more: https://react.dev/warnings/version-mismatch") ); if ( "function" !== @@ -11275,10 +11275,10 @@ batchedUpdatesImpl = function (fn, a) { var roots = new Map(), internals$jscomp$inline_1313 = { bundleType: 0, - version: "19.2.0-native-fb-9894c488-20250625", + version: "19.2.0-native-fb-bb6c9d52-20250625", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-9894c488-20250625" + reconcilerVersion: "19.2.0-native-fb-bb6c9d52-20250625" }; null !== extraDevToolsConfig && (internals$jscomp$inline_1313.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 8d09308976..df0ff84ba5 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<<6259f22f235fd34d9bc12ef02f1b5149>> + * @generated SignedSource<<6fcfa9d521ba0231b5df2a6959f88414>> */ "use strict"; @@ -13113,11 +13113,11 @@ function updateContainer(element, container, parentComponent, callback) { return lane; } var isomorphicReactPackageVersion = React.version; -if ("19.2.0-native-fb-9894c488-20250625" !== isomorphicReactPackageVersion) +if ("19.2.0-native-fb-bb6c9d52-20250625" !== 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-9894c488-20250625\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-native-renderer: 19.2.0-native-fb-bb6c9d52-20250625\nLearn more: https://react.dev/warnings/version-mismatch") ); if ( "function" !== @@ -13167,10 +13167,10 @@ batchedUpdatesImpl = function (fn, a) { var roots = new Map(), internals$jscomp$inline_1546 = { bundleType: 0, - version: "19.2.0-native-fb-9894c488-20250625", + version: "19.2.0-native-fb-bb6c9d52-20250625", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-9894c488-20250625" + reconcilerVersion: "19.2.0-native-fb-bb6c9d52-20250625" }; null !== extraDevToolsConfig && (internals$jscomp$inline_1546.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 fa589bb259..3bc1c8d1e4 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<<8e98f9380eef35f26401f575917c3fd4>> */ 'use strict'; @@ -27077,6 +27077,9 @@ function printFunction(fn) { if (fn.id !== null) { definition += fn.id; } + else { + definition += '<>'; + } if (fn.params.length !== 0) { definition += '(' + @@ -27095,10 +27098,8 @@ function printFunction(fn) { else { definition += '()'; } - if (definition.length !== 0) { - output.push(definition); - } - output.push(`: ${printType(fn.returnType)} @ ${printPlace(fn.returns)}`); + definition += `: ${printPlace(fn.returns)}`; + output.push(definition); output.push(...fn.directives); output.push(printHIR(fn.body)); return output.join('\n'); @@ -30923,7 +30924,6 @@ function lower$1(func, env, bindings = null, capturedRefs = new Map()) { params, fnType: bindings == null ? env.fnType : 'Other', returnTypeAnnotation: null, - returnType: makeType(), returns: createTemporaryPlace(env, (_b = func.node.loc) !== null && _b !== void 0 ? _b : GeneratedSource), body: builder.build(), context, @@ -44547,7 +44547,7 @@ function codegenTerminal(cx, terminal) { ? codegenPlaceToExpression(cx, case_.test) : null; const block = codegenBlock(cx, case_.block); - return libExports$1.switchCase(test, [block]); + return libExports$1.switchCase(test, block.body.length === 0 ? [] : [block]); })); } case 'throw': { @@ -51684,12 +51684,13 @@ function inferMutationAliasingRanges(fn, { isFunctionExpression }) { } } } + const returns = fn.returns.identifier; functionEffects.push({ kind: 'Create', into: fn.returns, - value: fn.returnType.kind === 'Primitive' + value: isPrimitiveType(returns) ? ValueKind.Primitive - : isJsxType(fn.returnType) + : isJsxType(returns.type) ? ValueKind.Frozen : ValueKind.Mutable, reason: ValueReason.KnownReturnSignature, @@ -55273,7 +55274,8 @@ function apply(func, unifier) { } } } - func.returnType = unifier.get(func.returnType); + const returns = func.returns.identifier; + returns.type = unifier.get(returns.type); } function equation(left, right) { return { @@ -55315,13 +55317,13 @@ function* generate(func) { } } if (returnTypes.length > 1) { - yield equation(func.returnType, { + yield equation(func.returns.identifier.type, { kind: 'Phi', operands: returnTypes, }); } else if (returnTypes.length === 1) { - yield equation(func.returnType, returnTypes[0]); + yield equation(func.returns.identifier.type, returnTypes[0]); } } function setName(names, id, name) { @@ -55532,7 +55534,7 @@ function* generateInstructionTypes(env, names, instr) { yield equation(left, { kind: 'Function', shapeId: BuiltInFunctionId, - return: value.loweredFunc.func.returnType, + return: value.loweredFunc.func.returns.identifier.type, isConstructor: false, }); break; @@ -57675,7 +57677,6 @@ function emitSelectorFn(env, keys) { env, params: [obj], returnTypeAnnotation: null, - returnType: makeType(), returns: createTemporaryPlace(env, GeneratedSource), context: [], effects: null, @@ -58093,7 +58094,6 @@ function emitOutlinedFn(env, jsx, oldProps, globals) { env, params: [propsObj], returnTypeAnnotation: null, - returnType: makeType(), returns: createTemporaryPlace(env, GeneratedSource), context: [], effects: null, 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 2107cd5107..8bab0b2522 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<<190c497bc6d4b2312c051164082a89ab>> + * @generated SignedSource<<6e88fc340696386e79bbd83502277d08>> */ 'use strict'; @@ -27062,6 +27062,9 @@ function printFunction(fn) { if (fn.id !== null) { definition += fn.id; } + else { + definition += '<>'; + } if (fn.params.length !== 0) { definition += '(' + @@ -27080,10 +27083,8 @@ function printFunction(fn) { else { definition += '()'; } - if (definition.length !== 0) { - output.push(definition); - } - output.push(`: ${printType(fn.returnType)} @ ${printPlace(fn.returns)}`); + definition += `: ${printPlace(fn.returns)}`; + output.push(definition); output.push(...fn.directives); output.push(printHIR(fn.body)); return output.join('\n'); @@ -30908,7 +30909,6 @@ function lower$1(func, env, bindings = null, capturedRefs = new Map()) { params, fnType: bindings == null ? env.fnType : 'Other', returnTypeAnnotation: null, - returnType: makeType(), returns: createTemporaryPlace(env, (_b = func.node.loc) !== null && _b !== void 0 ? _b : GeneratedSource), body: builder.build(), context, @@ -44326,7 +44326,7 @@ function codegenTerminal(cx, terminal) { ? codegenPlaceToExpression(cx, case_.test) : null; const block = codegenBlock(cx, case_.block); - return libExports$1.switchCase(test, [block]); + return libExports$1.switchCase(test, block.body.length === 0 ? [] : [block]); })); } case 'throw': { @@ -51463,12 +51463,13 @@ function inferMutationAliasingRanges(fn, { isFunctionExpression }) { } } } + const returns = fn.returns.identifier; functionEffects.push({ kind: 'Create', into: fn.returns, - value: fn.returnType.kind === 'Primitive' + value: isPrimitiveType(returns) ? ValueKind.Primitive - : isJsxType(fn.returnType) + : isJsxType(returns.type) ? ValueKind.Frozen : ValueKind.Mutable, reason: ValueReason.KnownReturnSignature, @@ -55052,7 +55053,8 @@ function apply(func, unifier) { } } } - func.returnType = unifier.get(func.returnType); + const returns = func.returns.identifier; + returns.type = unifier.get(returns.type); } function equation(left, right) { return { @@ -55094,13 +55096,13 @@ function* generate(func) { } } if (returnTypes.length > 1) { - yield equation(func.returnType, { + yield equation(func.returns.identifier.type, { kind: 'Phi', operands: returnTypes, }); } else if (returnTypes.length === 1) { - yield equation(func.returnType, returnTypes[0]); + yield equation(func.returns.identifier.type, returnTypes[0]); } } function setName(names, id, name) { @@ -55311,7 +55313,7 @@ function* generateInstructionTypes(env, names, instr) { yield equation(left, { kind: 'Function', shapeId: BuiltInFunctionId, - return: value.loweredFunc.func.returnType, + return: value.loweredFunc.func.returns.identifier.type, isConstructor: false, }); break; @@ -57454,7 +57456,6 @@ function emitSelectorFn(env, keys) { env, params: [obj], returnTypeAnnotation: null, - returnType: makeType(), returns: createTemporaryPlace(env, GeneratedSource), context: [], effects: null, @@ -57872,7 +57873,6 @@ function emitOutlinedFn(env, jsx, oldProps, globals) { env, params: [propsObj], returnTypeAnnotation: null, - returnType: makeType(), returns: createTemporaryPlace(env, GeneratedSource), context: [], effects: null, 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 15d4730772..46432f30ef 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-9894c488-20250625", + "version": "0.0.0-experimental-bb6c9d52-20250625", "repository": { "type": "git", "url": "https://github.com/facebook/react.git",