mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[compiler] Remove now-unused FunctionEffect type (#34029)
The new mutation/aliasing model significantly expands on the idea of
FunctionEffect. The type (and its usage in HIRFunction.effects) was only
necessary for the now-deleted old inference model so we can clean up
this code now.
DiffTrain build for [5063b3283f](https://github.com/facebook/react/commit/5063b3283fcae4bb43756d0d18d32008e3910bea)
This commit is contained in:
@@ -1 +1 @@
|
||||
19.2.0-native-fb-eaf6adb1-20250815
|
||||
19.2.0-native-fb-5063b328-20250815
|
||||
Vendored
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<39974f5d0ad2b7cf25131f51ea25accb>>
|
||||
* @generated SignedSource<<90a8d185d9cef24ff667513ed992553c>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -404,5 +404,5 @@ __DEV__ &&
|
||||
exports.useFormStatus = function () {
|
||||
return resolveDispatcher().useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-eaf6adb1-20250815";
|
||||
exports.version = "19.2.0-native-fb-5063b328-20250815";
|
||||
})();
|
||||
|
||||
Vendored
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<8ca64d636b2f3919d301286154f2f88d>>
|
||||
* @generated SignedSource<<55fbd0c70773881b975d20fd0ffb23bf>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-eaf6adb1-20250815";
|
||||
exports.version = "19.2.0-native-fb-5063b328-20250815";
|
||||
|
||||
Vendored
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<8ca64d636b2f3919d301286154f2f88d>>
|
||||
* @generated SignedSource<<55fbd0c70773881b975d20fd0ffb23bf>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-eaf6adb1-20250815";
|
||||
exports.version = "19.2.0-native-fb-5063b328-20250815";
|
||||
|
||||
Vendored
+6
-6
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<cf340631f02278bdc127ac84130ae895>>
|
||||
* @generated SignedSource<<ee2699e73e72bd96baf951fd6ba64742>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -29362,11 +29362,11 @@ __DEV__ &&
|
||||
};
|
||||
(function () {
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.2.0-native-fb-eaf6adb1-20250815" !== isomorphicReactPackageVersion)
|
||||
if ("19.2.0-native-fb-5063b328-20250815" !== isomorphicReactPackageVersion)
|
||||
throw Error(
|
||||
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
||||
(isomorphicReactPackageVersion +
|
||||
"\n - react-dom: 19.2.0-native-fb-eaf6adb1-20250815\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-dom: 19.2.0-native-fb-5063b328-20250815\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
})();
|
||||
("function" === typeof Map &&
|
||||
@@ -29403,10 +29403,10 @@ __DEV__ &&
|
||||
!(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.2.0-native-fb-eaf6adb1-20250815",
|
||||
version: "19.2.0-native-fb-5063b328-20250815",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-eaf6adb1-20250815"
|
||||
reconcilerVersion: "19.2.0-native-fb-5063b328-20250815"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -29545,5 +29545,5 @@ __DEV__ &&
|
||||
listenToAllSupportedEvents(container);
|
||||
return new ReactDOMHydrationRoot(initialChildren);
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-eaf6adb1-20250815";
|
||||
exports.version = "19.2.0-native-fb-5063b328-20250815";
|
||||
})();
|
||||
|
||||
compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-prod.js
Vendored
+6
-6
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<6dfc1cf24d81dd574b100fe760100cdd>>
|
||||
* @generated SignedSource<<9dadb2439881b754d7a1d1e251c01b4f>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -17189,14 +17189,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
||||
};
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2023 = React.version;
|
||||
if (
|
||||
"19.2.0-native-fb-eaf6adb1-20250815" !==
|
||||
"19.2.0-native-fb-5063b328-20250815" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2023
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_2023,
|
||||
"19.2.0-native-fb-eaf6adb1-20250815"
|
||||
"19.2.0-native-fb-5063b328-20250815"
|
||||
)
|
||||
);
|
||||
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
@@ -17218,10 +17218,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
};
|
||||
var internals$jscomp$inline_2554 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-eaf6adb1-20250815",
|
||||
version: "19.2.0-native-fb-5063b328-20250815",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-eaf6adb1-20250815"
|
||||
reconcilerVersion: "19.2.0-native-fb-5063b328-20250815"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2555 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -17319,4 +17319,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
|
||||
listenToAllSupportedEvents(container);
|
||||
return new ReactDOMHydrationRoot(initialChildren);
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-eaf6adb1-20250815";
|
||||
exports.version = "19.2.0-native-fb-5063b328-20250815";
|
||||
|
||||
+6
-6
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<c3a93b807b6f456ad882845b003e57a8>>
|
||||
* @generated SignedSource<<56f1d6a600baac9c016dff4f35b0915b>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -19199,14 +19199,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
||||
};
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2274 = React.version;
|
||||
if (
|
||||
"19.2.0-native-fb-eaf6adb1-20250815" !==
|
||||
"19.2.0-native-fb-5063b328-20250815" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2274
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_2274,
|
||||
"19.2.0-native-fb-eaf6adb1-20250815"
|
||||
"19.2.0-native-fb-5063b328-20250815"
|
||||
)
|
||||
);
|
||||
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
@@ -19228,10 +19228,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
};
|
||||
var internals$jscomp$inline_2281 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-eaf6adb1-20250815",
|
||||
version: "19.2.0-native-fb-5063b328-20250815",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-eaf6adb1-20250815",
|
||||
reconcilerVersion: "19.2.0-native-fb-5063b328-20250815",
|
||||
getLaneLabelMap: function () {
|
||||
for (
|
||||
var map = new Map(), lane = 1, index$321 = 0;
|
||||
@@ -19345,4 +19345,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
|
||||
listenToAllSupportedEvents(container);
|
||||
return new ReactDOMHydrationRoot(initialChildren);
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-eaf6adb1-20250815";
|
||||
exports.version = "19.2.0-native-fb-5063b328-20250815";
|
||||
|
||||
+6
-6
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<d1b1f24e4b10b105b8e6bcb18ac46c6c>>
|
||||
* @generated SignedSource<<e2b3ab7deb193302b60cdc3c0b1c9976>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -29418,11 +29418,11 @@ __DEV__ &&
|
||||
};
|
||||
(function () {
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.2.0-native-fb-eaf6adb1-20250815" !== isomorphicReactPackageVersion)
|
||||
if ("19.2.0-native-fb-5063b328-20250815" !== isomorphicReactPackageVersion)
|
||||
throw Error(
|
||||
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
||||
(isomorphicReactPackageVersion +
|
||||
"\n - react-dom: 19.2.0-native-fb-eaf6adb1-20250815\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-dom: 19.2.0-native-fb-5063b328-20250815\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
})();
|
||||
("function" === typeof Map &&
|
||||
@@ -29459,10 +29459,10 @@ __DEV__ &&
|
||||
!(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.2.0-native-fb-eaf6adb1-20250815",
|
||||
version: "19.2.0-native-fb-5063b328-20250815",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-eaf6adb1-20250815"
|
||||
reconcilerVersion: "19.2.0-native-fb-5063b328-20250815"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -29917,7 +29917,7 @@ __DEV__ &&
|
||||
exports.useFormStatus = function () {
|
||||
return resolveDispatcher().useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-eaf6adb1-20250815";
|
||||
exports.version = "19.2.0-native-fb-5063b328-20250815";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
+6
-6
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<9271180dab04bd3b10a326b7d0c80552>>
|
||||
* @generated SignedSource<<3e45668b4587a4853f8609947e4eb6de>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -17200,14 +17200,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
||||
};
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2024 = React.version;
|
||||
if (
|
||||
"19.2.0-native-fb-eaf6adb1-20250815" !==
|
||||
"19.2.0-native-fb-5063b328-20250815" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2024
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_2024,
|
||||
"19.2.0-native-fb-eaf6adb1-20250815"
|
||||
"19.2.0-native-fb-5063b328-20250815"
|
||||
)
|
||||
);
|
||||
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
@@ -17229,10 +17229,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
};
|
||||
var internals$jscomp$inline_2557 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-eaf6adb1-20250815",
|
||||
version: "19.2.0-native-fb-5063b328-20250815",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-eaf6adb1-20250815"
|
||||
reconcilerVersion: "19.2.0-native-fb-5063b328-20250815"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2558 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -17483,4 +17483,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-eaf6adb1-20250815";
|
||||
exports.version = "19.2.0-native-fb-5063b328-20250815";
|
||||
|
||||
+6
-6
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<0c7baf3b3bfaa08e73e234d6a81b5be5>>
|
||||
* @generated SignedSource<<c73c0e7e029ca45465557009ea309ff4>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -19214,14 +19214,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
||||
};
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2275 = React.version;
|
||||
if (
|
||||
"19.2.0-native-fb-eaf6adb1-20250815" !==
|
||||
"19.2.0-native-fb-5063b328-20250815" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2275
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_2275,
|
||||
"19.2.0-native-fb-eaf6adb1-20250815"
|
||||
"19.2.0-native-fb-5063b328-20250815"
|
||||
)
|
||||
);
|
||||
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
@@ -19243,10 +19243,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
};
|
||||
var internals$jscomp$inline_2282 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-eaf6adb1-20250815",
|
||||
version: "19.2.0-native-fb-5063b328-20250815",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-eaf6adb1-20250815",
|
||||
reconcilerVersion: "19.2.0-native-fb-5063b328-20250815",
|
||||
getLaneLabelMap: function () {
|
||||
for (
|
||||
var map = new Map(), lane = 1, index$321 = 0;
|
||||
@@ -19513,7 +19513,7 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-eaf6adb1-20250815";
|
||||
exports.version = "19.2.0-native-fb-5063b328-20250815";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
+4
-4
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<7f420b8eb0133eb90ba75d53f6a1fe1b>>
|
||||
* @generated SignedSource<<e62396907c38f0a38bb4609f1989fa7c>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -15758,10 +15758,10 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.2.0-native-fb-eaf6adb1-20250815",
|
||||
version: "19.2.0-native-fb-5063b328-20250815",
|
||||
rendererPackageName: "react-test-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-eaf6adb1-20250815"
|
||||
reconcilerVersion: "19.2.0-native-fb-5063b328-20250815"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -15906,5 +15906,5 @@ __DEV__ &&
|
||||
flushSyncWorkAcrossRoots_impl(0, !0));
|
||||
}
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-eaf6adb1-20250815";
|
||||
exports.version = "19.2.0-native-fb-5063b328-20250815";
|
||||
})();
|
||||
|
||||
+4
-4
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<509fe690a2ab4635da843760c87a770d>>
|
||||
* @generated SignedSource<<ec2e44342969d7b0f199a1e001fb3a2a>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -9924,10 +9924,10 @@ function wrapFiber(fiber) {
|
||||
}
|
||||
var internals$jscomp$inline_1428 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-eaf6adb1-20250815",
|
||||
version: "19.2.0-native-fb-5063b328-20250815",
|
||||
rendererPackageName: "react-test-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-eaf6adb1-20250815"
|
||||
reconcilerVersion: "19.2.0-native-fb-5063b328-20250815"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1429 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -10063,4 +10063,4 @@ exports.unstable_batchedUpdates = function (fn, a) {
|
||||
flushSyncWorkAcrossRoots_impl(0, !0));
|
||||
}
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-eaf6adb1-20250815";
|
||||
exports.version = "19.2.0-native-fb-5063b328-20250815";
|
||||
|
||||
+4
-4
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<d2ce205ef3b0cf3294003191f3f44015>>
|
||||
* @generated SignedSource<<05666693612d8000b010e3e5571f4010>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -10544,10 +10544,10 @@ function wrapFiber(fiber) {
|
||||
}
|
||||
var internals$jscomp$inline_1236 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-eaf6adb1-20250815",
|
||||
version: "19.2.0-native-fb-5063b328-20250815",
|
||||
rendererPackageName: "react-test-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-eaf6adb1-20250815",
|
||||
reconcilerVersion: "19.2.0-native-fb-5063b328-20250815",
|
||||
getLaneLabelMap: function () {
|
||||
for (
|
||||
var map = new Map(), lane = 1, index$142 = 0;
|
||||
@@ -10698,4 +10698,4 @@ exports.unstable_batchedUpdates = function (fn, a) {
|
||||
flushSyncWorkAcrossRoots_impl(0, !0));
|
||||
}
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-eaf6adb1-20250815";
|
||||
exports.version = "19.2.0-native-fb-5063b328-20250815";
|
||||
|
||||
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<c8ba95924901b604afc2a58a5f620ab2>>
|
||||
* @generated SignedSource<<4e1bf35761e479e3139297341b2144d5>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -1388,7 +1388,7 @@ __DEV__ &&
|
||||
exports.useTransition = function () {
|
||||
return resolveDispatcher().useTransition();
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-eaf6adb1-20250815";
|
||||
exports.version = "19.2.0-native-fb-5063b328-20250815";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<d3f8a66f0a9a1923c793bb71942380af>>
|
||||
* @generated SignedSource<<a0708dc2a0160b5f443473e5fe525a8b>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -579,4 +579,4 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-eaf6adb1-20250815";
|
||||
exports.version = "19.2.0-native-fb-5063b328-20250815";
|
||||
|
||||
Vendored
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<6d5198173e44a3227083fa167021dbbd>>
|
||||
* @generated SignedSource<<ca4fc816c3aabadac3d6af5dbdf97893>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -583,7 +583,7 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-eaf6adb1-20250815";
|
||||
exports.version = "19.2.0-native-fb-5063b328-20250815";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
eaf6adb1277e4cb4f91d1b7f687f773657a5751b
|
||||
5063b3283fcae4bb43756d0d18d32008e3910bea
|
||||
|
||||
+3
-3
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<1ad4e231a67bf1885fba33c53efe5ffa>>
|
||||
* @generated SignedSource<<a1227b22e7dbbfd82142d286c7ab6bdc>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -19593,10 +19593,10 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.2.0-native-fb-eaf6adb1-20250815",
|
||||
version: "19.2.0-native-fb-5063b328-20250815",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-eaf6adb1-20250815"
|
||||
reconcilerVersion: "19.2.0-native-fb-5063b328-20250815"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
+3
-3
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<fa59c708cece60805ccfa70c95046015>>
|
||||
* @generated SignedSource<<ec4d2652bb50d6c23059fff45109c3e8>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -11107,10 +11107,10 @@ batchedUpdatesImpl = function (fn, a) {
|
||||
var roots = new Map(),
|
||||
internals$jscomp$inline_1260 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-eaf6adb1-20250815",
|
||||
version: "19.2.0-native-fb-5063b328-20250815",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-eaf6adb1-20250815"
|
||||
reconcilerVersion: "19.2.0-native-fb-5063b328-20250815"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals$jscomp$inline_1260.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
+3
-3
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<b9409836a0a33b9c42a4a031f30e49fb>>
|
||||
* @generated SignedSource<<a79c07f69bb6540f86b8ac33ef1a8ebc>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -13058,10 +13058,10 @@ batchedUpdatesImpl = function (fn, a) {
|
||||
var roots = new Map(),
|
||||
internals$jscomp$inline_1504 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-eaf6adb1-20250815",
|
||||
version: "19.2.0-native-fb-5063b328-20250815",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-eaf6adb1-20250815"
|
||||
reconcilerVersion: "19.2.0-native-fb-5063b328-20250815"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals$jscomp$inline_1504.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
+5
-5
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<f6885baac6a1f56b265d9dda914dd5af>>
|
||||
* @generated SignedSource<<1863ee3244418510c537252c3820d830>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -19878,11 +19878,11 @@ __DEV__ &&
|
||||
shouldSuspendImpl = newShouldSuspendImpl;
|
||||
};
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.2.0-native-fb-eaf6adb1-20250815" !== isomorphicReactPackageVersion)
|
||||
if ("19.2.0-native-fb-5063b328-20250815" !== isomorphicReactPackageVersion)
|
||||
throw Error(
|
||||
'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
|
||||
(isomorphicReactPackageVersion +
|
||||
"\n - react-native-renderer: 19.2.0-native-fb-eaf6adb1-20250815\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-native-renderer: 19.2.0-native-fb-5063b328-20250815\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
if (
|
||||
"function" !==
|
||||
@@ -19908,10 +19908,10 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.2.0-native-fb-eaf6adb1-20250815",
|
||||
version: "19.2.0-native-fb-5063b328-20250815",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-eaf6adb1-20250815"
|
||||
reconcilerVersion: "19.2.0-native-fb-5063b328-20250815"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
+5
-5
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<81a24ca107cdf2948d3f361c18a61403>>
|
||||
* @generated SignedSource<<abffae46bea8589e77587da3b4d15ae2>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -11254,11 +11254,11 @@ function updateContainer(element, container, parentComponent, callback) {
|
||||
return lane;
|
||||
}
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.2.0-native-fb-eaf6adb1-20250815" !== isomorphicReactPackageVersion)
|
||||
if ("19.2.0-native-fb-5063b328-20250815" !== isomorphicReactPackageVersion)
|
||||
throw Error(
|
||||
'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
|
||||
(isomorphicReactPackageVersion +
|
||||
"\n - react-native-renderer: 19.2.0-native-fb-eaf6adb1-20250815\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-native-renderer: 19.2.0-native-fb-5063b328-20250815\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
if (
|
||||
"function" !==
|
||||
@@ -11308,10 +11308,10 @@ batchedUpdatesImpl = function (fn, a) {
|
||||
var roots = new Map(),
|
||||
internals$jscomp$inline_1290 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-eaf6adb1-20250815",
|
||||
version: "19.2.0-native-fb-5063b328-20250815",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-eaf6adb1-20250815"
|
||||
reconcilerVersion: "19.2.0-native-fb-5063b328-20250815"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals$jscomp$inline_1290.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
+5
-5
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<2fe5d0b8d8ce55fb29e28d8730e328a4>>
|
||||
* @generated SignedSource<<91fbe8a4e651a0ceb274d86d2e0056bc>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -13194,11 +13194,11 @@ function updateContainer(element, container, parentComponent, callback) {
|
||||
return lane;
|
||||
}
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.2.0-native-fb-eaf6adb1-20250815" !== isomorphicReactPackageVersion)
|
||||
if ("19.2.0-native-fb-5063b328-20250815" !== isomorphicReactPackageVersion)
|
||||
throw Error(
|
||||
'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
|
||||
(isomorphicReactPackageVersion +
|
||||
"\n - react-native-renderer: 19.2.0-native-fb-eaf6adb1-20250815\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-native-renderer: 19.2.0-native-fb-5063b328-20250815\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
if (
|
||||
"function" !==
|
||||
@@ -13248,10 +13248,10 @@ batchedUpdatesImpl = function (fn, a) {
|
||||
var roots = new Map(),
|
||||
internals$jscomp$inline_1534 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-eaf6adb1-20250815",
|
||||
version: "19.2.0-native-fb-5063b328-20250815",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-eaf6adb1-20250815"
|
||||
reconcilerVersion: "19.2.0-native-fb-5063b328-20250815"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals$jscomp$inline_1534.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
+11
-39
@@ -12,7 +12,7 @@
|
||||
* @lightSyntaxTransform
|
||||
* @preventMunge
|
||||
* @oncall react_core
|
||||
* @generated SignedSource<<43f3fe48d517809b8a8f771d8f3defc2>>
|
||||
* @generated SignedSource<<1e90801ea127ad3fe2ca6a45c8672610>>
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
@@ -18824,7 +18824,7 @@ function printObjectPropertyKey(key) {
|
||||
}
|
||||
}
|
||||
function printInstructionValue(instrValue) {
|
||||
var _a, _b, _c, _d, _e, _f, _g;
|
||||
var _a, _b, _c, _d, _e;
|
||||
let value = '';
|
||||
switch (instrValue.kind) {
|
||||
case 'ArrayExpression': {
|
||||
@@ -18997,18 +18997,8 @@ function printInstructionValue(instrValue) {
|
||||
const context = instrValue.loweredFunc.func.context
|
||||
.map(dep => printPlace(dep))
|
||||
.join(',');
|
||||
const effects = (_b = (_a = instrValue.loweredFunc.func.effects) === null || _a === void 0 ? void 0 : _a.map(effect => {
|
||||
if (effect.kind === 'ContextMutation') {
|
||||
return `ContextMutation places=[${[...effect.places]
|
||||
.map(place => printPlace(place))
|
||||
.join(', ')}] effect=${effect.effect}`;
|
||||
}
|
||||
else {
|
||||
return `GlobalMutation`;
|
||||
}
|
||||
}).join(', ')) !== null && _b !== void 0 ? _b : '';
|
||||
const aliasingEffects = (_e = (_d = (_c = instrValue.loweredFunc.func.aliasingEffects) === null || _c === void 0 ? void 0 : _c.map(printAliasingEffect)) === null || _d === void 0 ? void 0 : _d.join(', ')) !== null && _e !== void 0 ? _e : '';
|
||||
value = `${kind} ${name} @context[${context}] @effects[${effects}] @aliasingEffects=[${aliasingEffects}]\n${fn}`;
|
||||
const aliasingEffects = (_c = (_b = (_a = instrValue.loweredFunc.func.aliasingEffects) === null || _a === void 0 ? void 0 : _a.map(printAliasingEffect)) === null || _b === void 0 ? void 0 : _b.join(', ')) !== null && _c !== void 0 ? _c : '';
|
||||
value = `${kind} ${name} @context[${context}] @aliasingEffects=[${aliasingEffects}]\n${fn}`;
|
||||
break;
|
||||
}
|
||||
case 'TaggedTemplateExpression': {
|
||||
@@ -19124,7 +19114,7 @@ function printInstructionValue(instrValue) {
|
||||
break;
|
||||
}
|
||||
case 'StartMemoize': {
|
||||
value = `StartMemoize deps=${(_g = (_f = instrValue.deps) === null || _f === void 0 ? void 0 : _f.map(dep => printManualMemoDependency(dep, false))) !== null && _g !== void 0 ? _g : '(none)'}`;
|
||||
value = `StartMemoize deps=${(_e = (_d = instrValue.deps) === null || _d === void 0 ? void 0 : _d.map(dep => printManualMemoDependency(dep, false))) !== null && _e !== void 0 ? _e : '(none)'}`;
|
||||
break;
|
||||
}
|
||||
case 'FinishMemoize': {
|
||||
@@ -48506,7 +48496,6 @@ function emitSelectorFn(env, keys) {
|
||||
returnTypeAnnotation: null,
|
||||
returns: createTemporaryPlace(env, GeneratedSource),
|
||||
context: [],
|
||||
effects: null,
|
||||
body: {
|
||||
entry: block.id,
|
||||
blocks: new Map([[block.id, block]]),
|
||||
@@ -48514,6 +48503,7 @@ function emitSelectorFn(env, keys) {
|
||||
generator: false,
|
||||
async: false,
|
||||
directives: [],
|
||||
aliasingEffects: [],
|
||||
};
|
||||
reversePostorderBlocks(fn.body);
|
||||
markInstructionIds(fn.body);
|
||||
@@ -48938,7 +48928,6 @@ function emitOutlinedFn(env, jsx, oldProps, globals) {
|
||||
returnTypeAnnotation: null,
|
||||
returns: createTemporaryPlace(env, GeneratedSource),
|
||||
context: [],
|
||||
effects: null,
|
||||
body: {
|
||||
entry: block.id,
|
||||
blocks: new Map([[block.id, block]]),
|
||||
@@ -48946,6 +48935,7 @@ function emitOutlinedFn(env, jsx, oldProps, globals) {
|
||||
generator: false,
|
||||
async: false,
|
||||
directives: [],
|
||||
aliasingEffects: [],
|
||||
};
|
||||
return fn;
|
||||
}
|
||||
@@ -49602,14 +49592,13 @@ function validateStaticComponents(fn) {
|
||||
}
|
||||
|
||||
function validateNoFreezingKnownMutableFunctions(fn) {
|
||||
var _a;
|
||||
const errors = new CompilerError();
|
||||
const contextMutationEffects = new Map();
|
||||
function visitOperand(operand) {
|
||||
if (operand.effect === Effect.Freeze) {
|
||||
const effect = contextMutationEffects.get(operand.identifier.id);
|
||||
if (effect != null) {
|
||||
const place = [...effect.places][0];
|
||||
const place = effect.value;
|
||||
const variable = place != null &&
|
||||
place.identifier.name != null &&
|
||||
place.identifier.name.kind === 'named'
|
||||
@@ -49627,7 +49616,7 @@ function validateNoFreezingKnownMutableFunctions(fn) {
|
||||
})
|
||||
.withDetail({
|
||||
kind: 'error',
|
||||
loc: effect.loc,
|
||||
loc: effect.value.loc,
|
||||
message: `This modifies ${variable}`,
|
||||
}));
|
||||
}
|
||||
@@ -49653,19 +49642,7 @@ function validateNoFreezingKnownMutableFunctions(fn) {
|
||||
break;
|
||||
}
|
||||
case 'FunctionExpression': {
|
||||
const knownMutation = ((_a = value.loweredFunc.func.effects) !== null && _a !== void 0 ? _a : []).find(effect => {
|
||||
return (effect.kind === 'ContextMutation' &&
|
||||
(effect.effect === Effect.Store ||
|
||||
effect.effect === Effect.Mutate) &&
|
||||
Iterable_some(effect.places, place => {
|
||||
return (isMutableEffect(place.effect, place.loc) &&
|
||||
!isRefOrRefLikeMutableType(place.identifier.type));
|
||||
}));
|
||||
});
|
||||
if (knownMutation && knownMutation.kind === 'ContextMutation') {
|
||||
contextMutationEffects.set(lvalue.identifier.id, knownMutation);
|
||||
}
|
||||
else if (value.loweredFunc.func.aliasingEffects != null) {
|
||||
if (value.loweredFunc.func.aliasingEffects != null) {
|
||||
const context = new Set(value.loweredFunc.func.context.map(p => p.identifier.id));
|
||||
effects: for (const effect of value.loweredFunc.func
|
||||
.aliasingEffects) {
|
||||
@@ -49678,12 +49655,7 @@ function validateNoFreezingKnownMutableFunctions(fn) {
|
||||
}
|
||||
else if (context.has(effect.value.identifier.id) &&
|
||||
!isRefOrRefLikeMutableType(effect.value.identifier.type)) {
|
||||
contextMutationEffects.set(lvalue.identifier.id, {
|
||||
kind: 'ContextMutation',
|
||||
effect: Effect.Mutate,
|
||||
loc: effect.value.loc,
|
||||
places: new Set([effect.value]),
|
||||
});
|
||||
contextMutationEffects.set(lvalue.identifier.id, effect);
|
||||
break effects;
|
||||
}
|
||||
break;
|
||||
|
||||
+11
-39
@@ -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<<b40ab443510b750acc9856f335d9a113>>
|
||||
* @generated SignedSource<<3e8071675ac8848c762ee884ed9f093c>>
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
@@ -18809,7 +18809,7 @@ function printObjectPropertyKey(key) {
|
||||
}
|
||||
}
|
||||
function printInstructionValue(instrValue) {
|
||||
var _a, _b, _c, _d, _e, _f, _g;
|
||||
var _a, _b, _c, _d, _e;
|
||||
let value = '';
|
||||
switch (instrValue.kind) {
|
||||
case 'ArrayExpression': {
|
||||
@@ -18982,18 +18982,8 @@ function printInstructionValue(instrValue) {
|
||||
const context = instrValue.loweredFunc.func.context
|
||||
.map(dep => printPlace(dep))
|
||||
.join(',');
|
||||
const effects = (_b = (_a = instrValue.loweredFunc.func.effects) === null || _a === void 0 ? void 0 : _a.map(effect => {
|
||||
if (effect.kind === 'ContextMutation') {
|
||||
return `ContextMutation places=[${[...effect.places]
|
||||
.map(place => printPlace(place))
|
||||
.join(', ')}] effect=${effect.effect}`;
|
||||
}
|
||||
else {
|
||||
return `GlobalMutation`;
|
||||
}
|
||||
}).join(', ')) !== null && _b !== void 0 ? _b : '';
|
||||
const aliasingEffects = (_e = (_d = (_c = instrValue.loweredFunc.func.aliasingEffects) === null || _c === void 0 ? void 0 : _c.map(printAliasingEffect)) === null || _d === void 0 ? void 0 : _d.join(', ')) !== null && _e !== void 0 ? _e : '';
|
||||
value = `${kind} ${name} @context[${context}] @effects[${effects}] @aliasingEffects=[${aliasingEffects}]\n${fn}`;
|
||||
const aliasingEffects = (_c = (_b = (_a = instrValue.loweredFunc.func.aliasingEffects) === null || _a === void 0 ? void 0 : _a.map(printAliasingEffect)) === null || _b === void 0 ? void 0 : _b.join(', ')) !== null && _c !== void 0 ? _c : '';
|
||||
value = `${kind} ${name} @context[${context}] @aliasingEffects=[${aliasingEffects}]\n${fn}`;
|
||||
break;
|
||||
}
|
||||
case 'TaggedTemplateExpression': {
|
||||
@@ -19109,7 +19099,7 @@ function printInstructionValue(instrValue) {
|
||||
break;
|
||||
}
|
||||
case 'StartMemoize': {
|
||||
value = `StartMemoize deps=${(_g = (_f = instrValue.deps) === null || _f === void 0 ? void 0 : _f.map(dep => printManualMemoDependency(dep, false))) !== null && _g !== void 0 ? _g : '(none)'}`;
|
||||
value = `StartMemoize deps=${(_e = (_d = instrValue.deps) === null || _d === void 0 ? void 0 : _d.map(dep => printManualMemoDependency(dep, false))) !== null && _e !== void 0 ? _e : '(none)'}`;
|
||||
break;
|
||||
}
|
||||
case 'FinishMemoize': {
|
||||
@@ -48285,7 +48275,6 @@ function emitSelectorFn(env, keys) {
|
||||
returnTypeAnnotation: null,
|
||||
returns: createTemporaryPlace(env, GeneratedSource),
|
||||
context: [],
|
||||
effects: null,
|
||||
body: {
|
||||
entry: block.id,
|
||||
blocks: new Map([[block.id, block]]),
|
||||
@@ -48293,6 +48282,7 @@ function emitSelectorFn(env, keys) {
|
||||
generator: false,
|
||||
async: false,
|
||||
directives: [],
|
||||
aliasingEffects: [],
|
||||
};
|
||||
reversePostorderBlocks(fn.body);
|
||||
markInstructionIds(fn.body);
|
||||
@@ -48717,7 +48707,6 @@ function emitOutlinedFn(env, jsx, oldProps, globals) {
|
||||
returnTypeAnnotation: null,
|
||||
returns: createTemporaryPlace(env, GeneratedSource),
|
||||
context: [],
|
||||
effects: null,
|
||||
body: {
|
||||
entry: block.id,
|
||||
blocks: new Map([[block.id, block]]),
|
||||
@@ -48725,6 +48714,7 @@ function emitOutlinedFn(env, jsx, oldProps, globals) {
|
||||
generator: false,
|
||||
async: false,
|
||||
directives: [],
|
||||
aliasingEffects: [],
|
||||
};
|
||||
return fn;
|
||||
}
|
||||
@@ -49381,14 +49371,13 @@ function validateStaticComponents(fn) {
|
||||
}
|
||||
|
||||
function validateNoFreezingKnownMutableFunctions(fn) {
|
||||
var _a;
|
||||
const errors = new CompilerError();
|
||||
const contextMutationEffects = new Map();
|
||||
function visitOperand(operand) {
|
||||
if (operand.effect === Effect.Freeze) {
|
||||
const effect = contextMutationEffects.get(operand.identifier.id);
|
||||
if (effect != null) {
|
||||
const place = [...effect.places][0];
|
||||
const place = effect.value;
|
||||
const variable = place != null &&
|
||||
place.identifier.name != null &&
|
||||
place.identifier.name.kind === 'named'
|
||||
@@ -49406,7 +49395,7 @@ function validateNoFreezingKnownMutableFunctions(fn) {
|
||||
})
|
||||
.withDetail({
|
||||
kind: 'error',
|
||||
loc: effect.loc,
|
||||
loc: effect.value.loc,
|
||||
message: `This modifies ${variable}`,
|
||||
}));
|
||||
}
|
||||
@@ -49432,19 +49421,7 @@ function validateNoFreezingKnownMutableFunctions(fn) {
|
||||
break;
|
||||
}
|
||||
case 'FunctionExpression': {
|
||||
const knownMutation = ((_a = value.loweredFunc.func.effects) !== null && _a !== void 0 ? _a : []).find(effect => {
|
||||
return (effect.kind === 'ContextMutation' &&
|
||||
(effect.effect === Effect.Store ||
|
||||
effect.effect === Effect.Mutate) &&
|
||||
Iterable_some(effect.places, place => {
|
||||
return (isMutableEffect(place.effect, place.loc) &&
|
||||
!isRefOrRefLikeMutableType(place.identifier.type));
|
||||
}));
|
||||
});
|
||||
if (knownMutation && knownMutation.kind === 'ContextMutation') {
|
||||
contextMutationEffects.set(lvalue.identifier.id, knownMutation);
|
||||
}
|
||||
else if (value.loweredFunc.func.aliasingEffects != null) {
|
||||
if (value.loweredFunc.func.aliasingEffects != null) {
|
||||
const context = new Set(value.loweredFunc.func.context.map(p => p.identifier.id));
|
||||
effects: for (const effect of value.loweredFunc.func
|
||||
.aliasingEffects) {
|
||||
@@ -49457,12 +49434,7 @@ function validateNoFreezingKnownMutableFunctions(fn) {
|
||||
}
|
||||
else if (context.has(effect.value.identifier.id) &&
|
||||
!isRefOrRefLikeMutableType(effect.value.identifier.type)) {
|
||||
contextMutationEffects.set(lvalue.identifier.id, {
|
||||
kind: 'ContextMutation',
|
||||
effect: Effect.Mutate,
|
||||
loc: effect.value.loc,
|
||||
places: new Set([effect.value]),
|
||||
});
|
||||
contextMutationEffects.set(lvalue.identifier.id, effect);
|
||||
break effects;
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "eslint-plugin-react-hooks",
|
||||
"description": "ESLint rules for React Hooks",
|
||||
"version": "0.0.0-experimental-eaf6adb1-20250815",
|
||||
"version": "0.0.0-experimental-5063b328-20250815",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/facebook/react.git",
|
||||
|
||||
Reference in New Issue
Block a user