From bd2cf53c3b4a5439c7bb14c3db2a517331cddfb2 Mon Sep 17 00:00:00 2001 From: mofeiZ Date: Mon, 2 Jun 2025 08:53:55 -0700 Subject: [PATCH] [compiler][patch] Emit unary expressions instead of negative numbers (#33383) This is a babel bug + edge case. Babel compact mode produces invalid JavaScript (i.e. parse error) when given a `NumericLiteral` with a negative value. See https://codesandbox.io/p/devbox/5d47fr for repro. DiffTrain build for [526dd340b3e77193846fe5eed02b9bb89d7c2d15](https://github.com/facebook/react/commit/526dd340b3e77193846fe5eed02b9bb89d7c2d15) --- 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 | 9 +++++++-- .../cjs/eslint-plugin-react-hooks.production.js | 9 +++++++-- .../js/tools/eslint-plugin-react-hooks/package.json | 2 +- 26 files changed, 101 insertions(+), 91 deletions(-) diff --git a/compiled-rn/VERSION_NATIVE_FB b/compiled-rn/VERSION_NATIVE_FB index b57d0e9bee..68e4268ed8 100644 --- a/compiled-rn/VERSION_NATIVE_FB +++ b/compiled-rn/VERSION_NATIVE_FB @@ -1 +1 @@ -19.2.0-native-fb-8b55eb4e-20250530 \ No newline at end of file +19.2.0-native-fb-526dd340-20250602 \ 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 5c8b07c80d..aedd7676d3 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-8b55eb4e-20250530"; + exports.version = "19.2.0-native-fb-526dd340-20250602"; })(); 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 a1d9b2c16e..a3b137268c 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<<0886672e683bf216d69179df93282617>> + * @generated SignedSource<<179dbe1cb563e04ae75c0241e2f42d7e>> */ "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-8b55eb4e-20250530"; +exports.version = "19.2.0-native-fb-526dd340-20250602"; 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 a1d9b2c16e..a3b137268c 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<<0886672e683bf216d69179df93282617>> + * @generated SignedSource<<179dbe1cb563e04ae75c0241e2f42d7e>> */ "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-8b55eb4e-20250530"; +exports.version = "19.2.0-native-fb-526dd340-20250602"; 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 b21fd33f29..dd8a27c5ac 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<<12a55fe6e190ba849c12c2dba55e1e55>> + * @generated SignedSource<<94b639f12194ac1bee799b2cd0d71f56>> */ /* @@ -27026,11 +27026,11 @@ __DEV__ && }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.2.0-native-fb-8b55eb4e-20250530" !== isomorphicReactPackageVersion) + if ("19.2.0-native-fb-526dd340-20250602" !== 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-8b55eb4e-20250530\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.2.0-native-fb-526dd340-20250602\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27067,10 +27067,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.2.0-native-fb-8b55eb4e-20250530", + version: "19.2.0-native-fb-526dd340-20250602", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-8b55eb4e-20250530" + reconcilerVersion: "19.2.0-native-fb-526dd340-20250602" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -27208,5 +27208,5 @@ __DEV__ && listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; - exports.version = "19.2.0-native-fb-8b55eb4e-20250530"; + exports.version = "19.2.0-native-fb-526dd340-20250602"; })(); 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 f05b9429d1..6017b24781 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<> */ /* @@ -17094,14 +17094,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { }; var isomorphicReactPackageVersion$jscomp$inline_2017 = React.version; if ( - "19.2.0-native-fb-8b55eb4e-20250530" !== + "19.2.0-native-fb-526dd340-20250602" !== isomorphicReactPackageVersion$jscomp$inline_2017 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2017, - "19.2.0-native-fb-8b55eb4e-20250530" + "19.2.0-native-fb-526dd340-20250602" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -17123,10 +17123,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { }; var internals$jscomp$inline_2536 = { bundleType: 0, - version: "19.2.0-native-fb-8b55eb4e-20250530", + version: "19.2.0-native-fb-526dd340-20250602", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-8b55eb4e-20250530" + reconcilerVersion: "19.2.0-native-fb-526dd340-20250602" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2537 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17224,4 +17224,4 @@ exports.hydrateRoot = function (container, initialChildren, options) { listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; -exports.version = "19.2.0-native-fb-8b55eb4e-20250530"; +exports.version = "19.2.0-native-fb-526dd340-20250602"; 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 9eea41db0a..d79f9626b1 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<<3ab63f6ee2208dab476aa3b06e265755>> + * @generated SignedSource<<27ab3a819cac8862a97b2daadbd642cc>> */ /* @@ -17804,14 +17804,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { }; var isomorphicReactPackageVersion$jscomp$inline_2120 = React.version; if ( - "19.2.0-native-fb-8b55eb4e-20250530" !== + "19.2.0-native-fb-526dd340-20250602" !== isomorphicReactPackageVersion$jscomp$inline_2120 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2120, - "19.2.0-native-fb-8b55eb4e-20250530" + "19.2.0-native-fb-526dd340-20250602" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -17833,10 +17833,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { }; var internals$jscomp$inline_2127 = { bundleType: 0, - version: "19.2.0-native-fb-8b55eb4e-20250530", + version: "19.2.0-native-fb-526dd340-20250602", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-8b55eb4e-20250530", + reconcilerVersion: "19.2.0-native-fb-526dd340-20250602", getLaneLabelMap: function () { for ( var map = new Map(), lane = 1, index$313 = 0; @@ -17949,4 +17949,4 @@ exports.hydrateRoot = function (container, initialChildren, options) { listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; -exports.version = "19.2.0-native-fb-8b55eb4e-20250530"; +exports.version = "19.2.0-native-fb-526dd340-20250602"; 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 d5d6bc9d58..b4d66c1e6c 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<> */ /* @@ -27082,11 +27082,11 @@ __DEV__ && }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.2.0-native-fb-8b55eb4e-20250530" !== isomorphicReactPackageVersion) + if ("19.2.0-native-fb-526dd340-20250602" !== 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-8b55eb4e-20250530\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.2.0-native-fb-526dd340-20250602\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27123,10 +27123,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.2.0-native-fb-8b55eb4e-20250530", + version: "19.2.0-native-fb-526dd340-20250602", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-8b55eb4e-20250530" + reconcilerVersion: "19.2.0-native-fb-526dd340-20250602" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -27580,7 +27580,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.2.0-native-fb-8b55eb4e-20250530"; + exports.version = "19.2.0-native-fb-526dd340-20250602"; "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 46b20c9403..af27d57c1b 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<<29dcb6229472e356382d2b9fdae38951>> + * @generated SignedSource<<8de186df49b0fdc49607bdbb3d6a05a3>> */ /* @@ -17105,14 +17105,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { }; var isomorphicReactPackageVersion$jscomp$inline_2018 = React.version; if ( - "19.2.0-native-fb-8b55eb4e-20250530" !== + "19.2.0-native-fb-526dd340-20250602" !== isomorphicReactPackageVersion$jscomp$inline_2018 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2018, - "19.2.0-native-fb-8b55eb4e-20250530" + "19.2.0-native-fb-526dd340-20250602" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -17134,10 +17134,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { }; var internals$jscomp$inline_2539 = { bundleType: 0, - version: "19.2.0-native-fb-8b55eb4e-20250530", + version: "19.2.0-native-fb-526dd340-20250602", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-8b55eb4e-20250530" + reconcilerVersion: "19.2.0-native-fb-526dd340-20250602" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2540 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17388,4 +17388,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.2.0-native-fb-8b55eb4e-20250530"; +exports.version = "19.2.0-native-fb-526dd340-20250602"; 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 02e0fda022..834292c027 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<> + * @generated SignedSource<<013f35ff045decf1431ea1a43abe2afd>> */ /* @@ -17819,14 +17819,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { }; var isomorphicReactPackageVersion$jscomp$inline_2121 = React.version; if ( - "19.2.0-native-fb-8b55eb4e-20250530" !== + "19.2.0-native-fb-526dd340-20250602" !== isomorphicReactPackageVersion$jscomp$inline_2121 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2121, - "19.2.0-native-fb-8b55eb4e-20250530" + "19.2.0-native-fb-526dd340-20250602" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -17848,10 +17848,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { }; var internals$jscomp$inline_2128 = { bundleType: 0, - version: "19.2.0-native-fb-8b55eb4e-20250530", + version: "19.2.0-native-fb-526dd340-20250602", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-8b55eb4e-20250530", + reconcilerVersion: "19.2.0-native-fb-526dd340-20250602", getLaneLabelMap: function () { for ( var map = new Map(), lane = 1, index$313 = 0; @@ -18117,7 +18117,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.2.0-native-fb-8b55eb4e-20250530"; +exports.version = "19.2.0-native-fb-526dd340-20250602"; "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 938fbfccdf..5092aef19e 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<<289641d9933d2ed8ea3491223a1d5e70>> + * @generated SignedSource<> */ "use strict"; @@ -15675,10 +15675,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.2.0-native-fb-8b55eb4e-20250530", + version: "19.2.0-native-fb-526dd340-20250602", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-8b55eb4e-20250530" + reconcilerVersion: "19.2.0-native-fb-526dd340-20250602" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -15823,5 +15823,5 @@ __DEV__ && flushSyncWorkAcrossRoots_impl(0, !0)); } }; - exports.version = "19.2.0-native-fb-8b55eb4e-20250530"; + exports.version = "19.2.0-native-fb-526dd340-20250602"; })(); 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 eebfaf142d..851febc7dc 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<<5a468ec006a6832355de5dff91b727f5>> + * @generated SignedSource<> */ "use strict"; @@ -9896,10 +9896,10 @@ function wrapFiber(fiber) { } var internals$jscomp$inline_1447 = { bundleType: 0, - version: "19.2.0-native-fb-8b55eb4e-20250530", + version: "19.2.0-native-fb-526dd340-20250602", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-8b55eb4e-20250530" + reconcilerVersion: "19.2.0-native-fb-526dd340-20250602" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1448 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -10035,4 +10035,4 @@ exports.unstable_batchedUpdates = function (fn, a) { flushSyncWorkAcrossRoots_impl(0, !0)); } }; -exports.version = "19.2.0-native-fb-8b55eb4e-20250530"; +exports.version = "19.2.0-native-fb-526dd340-20250602"; 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 53ab77eb50..49a76fe0c2 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<<0ff5a0459c617bcb87f2faed04fd675f>> + * @generated SignedSource<> */ "use strict"; @@ -10516,10 +10516,10 @@ function wrapFiber(fiber) { } var internals$jscomp$inline_1254 = { bundleType: 0, - version: "19.2.0-native-fb-8b55eb4e-20250530", + version: "19.2.0-native-fb-526dd340-20250602", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-8b55eb4e-20250530", + reconcilerVersion: "19.2.0-native-fb-526dd340-20250602", getLaneLabelMap: function () { for ( var map = new Map(), lane = 1, index$155 = 0; @@ -10670,4 +10670,4 @@ exports.unstable_batchedUpdates = function (fn, a) { flushSyncWorkAcrossRoots_impl(0, !0)); } }; -exports.version = "19.2.0-native-fb-8b55eb4e-20250530"; +exports.version = "19.2.0-native-fb-526dd340-20250602"; 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 2e2d194d9b..06943d2283 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<<117b27f7f5b4e5e87b4af881fec891b2>> */ "use strict"; @@ -1411,7 +1411,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.2.0-native-fb-8b55eb4e-20250530"; + exports.version = "19.2.0-native-fb-526dd340-20250602"; "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 d5f546649b..79fb7bca9d 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<<6922fc7f0c2446e6adb568031d3a547d>> + * @generated SignedSource<<56641a9ee815d95a2442502b06a494cc>> */ "use strict"; @@ -586,4 +586,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.2.0-native-fb-8b55eb4e-20250530"; +exports.version = "19.2.0-native-fb-526dd340-20250602"; 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 4f48bafb7e..659bf73b65 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<> + * @generated SignedSource<<27f0b91b648bb04f4534a93ed6283496>> */ "use strict"; @@ -590,7 +590,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.2.0-native-fb-8b55eb4e-20250530"; +exports.version = "19.2.0-native-fb-526dd340-20250602"; "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 b455fa23ba..88882ffb01 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 @@ -8b55eb4e724271206bd5dec7dba0a35aedc74493 +526dd340b3e77193846fe5eed02b9bb89d7c2d15 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 afb18624ed..ec46ef1b9a 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<<0a75235e4218681ee6d77b7d988c0189>> */ "use strict"; @@ -17550,10 +17550,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.2.0-native-fb-8b55eb4e-20250530", + version: "19.2.0-native-fb-526dd340-20250602", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-8b55eb4e-20250530" + reconcilerVersion: "19.2.0-native-fb-526dd340-20250602" }; 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 1c17553730..fef87128fb 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<<19f511ae1ff2f8872725edc2091e63ed>> */ "use strict"; @@ -11255,10 +11255,10 @@ batchedUpdatesImpl = function (fn, a) { var roots = new Map(), internals$jscomp$inline_1263 = { bundleType: 0, - version: "19.2.0-native-fb-8b55eb4e-20250530", + version: "19.2.0-native-fb-526dd340-20250602", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-8b55eb4e-20250530" + reconcilerVersion: "19.2.0-native-fb-526dd340-20250602" }; null !== extraDevToolsConfig && (internals$jscomp$inline_1263.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 d3c93ef48a..707a7dedf5 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<<21487cd2d8a640f341e50b893097fd17>> + * @generated SignedSource<<45d29e323ab3633031f2f104302c8875>> */ "use strict"; @@ -11959,10 +11959,10 @@ batchedUpdatesImpl = function (fn, a) { var roots = new Map(), internals$jscomp$inline_1364 = { bundleType: 0, - version: "19.2.0-native-fb-8b55eb4e-20250530", + version: "19.2.0-native-fb-526dd340-20250602", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-8b55eb4e-20250530" + reconcilerVersion: "19.2.0-native-fb-526dd340-20250602" }; null !== extraDevToolsConfig && (internals$jscomp$inline_1364.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 97fc36f56b..05f8f0801f 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<<88834af83ae6fc889fef6a6254d694df>> + * @generated SignedSource<<3725ed2e385ddbebe13831a2240be821>> */ "use strict"; @@ -17626,11 +17626,11 @@ __DEV__ && shouldSuspendImpl = newShouldSuspendImpl; }; var isomorphicReactPackageVersion = React.version; - if ("19.2.0-native-fb-8b55eb4e-20250530" !== isomorphicReactPackageVersion) + if ("19.2.0-native-fb-526dd340-20250602" !== 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-8b55eb4e-20250530\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-native-renderer: 19.2.0-native-fb-526dd340-20250602\nLearn more: https://react.dev/warnings/version-mismatch") ); if ( "function" !== @@ -17656,10 +17656,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.2.0-native-fb-8b55eb4e-20250530", + version: "19.2.0-native-fb-526dd340-20250602", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-8b55eb4e-20250530" + reconcilerVersion: "19.2.0-native-fb-526dd340-20250602" }; 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 eb862bac19..f922327594 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<<4098fceec28f003386659a3812343ed1>> + * @generated SignedSource<> */ "use strict"; @@ -11212,11 +11212,11 @@ function updateContainer(element, container, parentComponent, callback) { return lane; } var isomorphicReactPackageVersion = React.version; -if ("19.2.0-native-fb-8b55eb4e-20250530" !== isomorphicReactPackageVersion) +if ("19.2.0-native-fb-526dd340-20250602" !== 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-8b55eb4e-20250530\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-native-renderer: 19.2.0-native-fb-526dd340-20250602\nLearn more: https://react.dev/warnings/version-mismatch") ); if ( "function" !== @@ -11266,10 +11266,10 @@ batchedUpdatesImpl = function (fn, a) { var roots = new Map(), internals$jscomp$inline_1307 = { bundleType: 0, - version: "19.2.0-native-fb-8b55eb4e-20250530", + version: "19.2.0-native-fb-526dd340-20250602", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-8b55eb4e-20250530" + reconcilerVersion: "19.2.0-native-fb-526dd340-20250602" }; null !== extraDevToolsConfig && (internals$jscomp$inline_1307.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 91edafcbbe..366fd0453b 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<<2bc4ba18984c8ec2c13d8249f758518a>> + * @generated SignedSource<<97ac0e167db4b0d13574260a4c6093a4>> */ "use strict"; @@ -11914,11 +11914,11 @@ function updateContainer(element, container, parentComponent, callback) { return lane; } var isomorphicReactPackageVersion = React.version; -if ("19.2.0-native-fb-8b55eb4e-20250530" !== isomorphicReactPackageVersion) +if ("19.2.0-native-fb-526dd340-20250602" !== 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-8b55eb4e-20250530\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-native-renderer: 19.2.0-native-fb-526dd340-20250602\nLearn more: https://react.dev/warnings/version-mismatch") ); if ( "function" !== @@ -11968,10 +11968,10 @@ batchedUpdatesImpl = function (fn, a) { var roots = new Map(), internals$jscomp$inline_1408 = { bundleType: 0, - version: "19.2.0-native-fb-8b55eb4e-20250530", + version: "19.2.0-native-fb-526dd340-20250602", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-8b55eb4e-20250530" + reconcilerVersion: "19.2.0-native-fb-526dd340-20250602" }; null !== extraDevToolsConfig && (internals$jscomp$inline_1408.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 4eaaae7b55..30417b69b8 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<<875ae41d0a179807443a1ce4399fc24b>> + * @generated SignedSource<> */ 'use strict'; @@ -44962,7 +44962,12 @@ function codegenLValue(cx, pattern) { } function codegenValue(cx, loc, value) { if (typeof value === 'number') { - return libExports$1.numericLiteral(value); + if (value < 0) { + return libExports$1.unaryExpression('-', libExports$1.numericLiteral(-value), false); + } + else { + return libExports$1.numericLiteral(value); + } } else if (typeof value === 'boolean') { return libExports$1.booleanLiteral(value); 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 52241e2e37..7e9496bb76 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<<71c7df11ea319bb2a5f453c3e0f565e1>> */ 'use strict'; @@ -44741,7 +44741,12 @@ function codegenLValue(cx, pattern) { } function codegenValue(cx, loc, value) { if (typeof value === 'number') { - return libExports$1.numericLiteral(value); + if (value < 0) { + return libExports$1.unaryExpression('-', libExports$1.numericLiteral(-value), false); + } + else { + return libExports$1.numericLiteral(value); + } } else if (typeof value === 'boolean') { return libExports$1.booleanLiteral(value); 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 b8afdf9bb8..e450b3b97f 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-8b55eb4e-20250530", + "version": "0.0.0-experimental-526dd340-20250602", "repository": { "type": "git", "url": "https://github.com/facebook/react.git",