[compiler] Update for Zod v3/v4 compatibility (#34717)

Partial redo of #34710. The changes there tried to use `z.function(args,
return)` to be compatible across Zod v3 and v4, but Zod 4's function API
has completely changed. Instead, I've updated to just use `z.any()`
where we expect a function, and manually validate that it's a function
before we call the value. We already have validation of the return type
(also using Zod).

Co-authored-by: kolvian <eliot@pontarelli.com>

DiffTrain build for [d6eb735938](https://github.com/facebook/react/commit/d6eb735938bc67b41ad723206ea395ba4d761139)
This commit is contained in:
josephsavona
2025-10-03 10:16:40 -07:00
co-authored by kolvian
parent 4f9bad85d4
commit cd6793729e
35 changed files with 94 additions and 88 deletions
+8 -2
View File
@@ -32118,7 +32118,7 @@ const HookSchema = zod.z.object({
});
const EnvironmentConfigSchema = zod.z.object({
customHooks: zod.z.map(zod.z.string(), HookSchema).default(new Map()),
moduleTypeProvider: zod.z.nullable(zod.z.function().args(zod.z.string())).default(null),
moduleTypeProvider: zod.z.nullable(zod.z.any()).default(null),
customMacros: zod.z.nullable(zod.z.array(MacroSchema)).default(null),
enableResetCacheOnSourceFileChanges: zod.z.nullable(zod.z.boolean()).default(null),
enablePreserveExistingMemoizationGuarantees: zod.z.boolean().default(true),
@@ -32126,7 +32126,7 @@ const EnvironmentConfigSchema = zod.z.object({
enablePreserveExistingManualUseMemo: zod.z.boolean().default(false),
enableForest: zod.z.boolean().default(false),
enableUseTypeAnnotations: zod.z.boolean().default(false),
flowTypeProvider: zod.z.nullable(zod.z.function().args(zod.z.string())).default(null),
flowTypeProvider: zod.z.nullable(zod.z.any()).default(null),
enableOptionalDependencies: zod.z.boolean().default(true),
enableFire: zod.z.boolean().default(false),
enableNameAnonymousFunctions: zod.z.boolean().default(false),
@@ -32491,6 +32491,12 @@ _Environment_globals = new WeakMap(), _Environment_shapes = new WeakMap(), _Envi
if (moduleTypeProvider == null) {
return null;
}
if (typeof moduleTypeProvider !== 'function') {
CompilerError.throwInvalidConfig({
reason: `Expected a function for \`moduleTypeProvider\``,
loc,
});
}
const unparsedModuleConfig = moduleTypeProvider(moduleName);
if (unparsedModuleConfig != null) {
const parsedModuleConfig = TypeSchema.safeParse(unparsedModuleConfig);
+1 -1
View File
@@ -1 +1 @@
71753ac90a009ddefe2f7653165902d55edd1898
d6eb735938bc67b41ad723206ea395ba4d761139
+1 -1
View File
@@ -1 +1 @@
71753ac90a009ddefe2f7653165902d55edd1898
d6eb735938bc67b41ad723206ea395ba4d761139
+1 -1
View File
@@ -1458,7 +1458,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.3.0-www-classic-71753ac9-20251003";
exports.version = "19.3.0-www-classic-d6eb7359-20251003";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+1 -1
View File
@@ -1458,7 +1458,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.3.0-www-modern-71753ac9-20251003";
exports.version = "19.3.0-www-modern-d6eb7359-20251003";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+1 -1
View File
@@ -604,4 +604,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.3.0-www-classic-71753ac9-20251003";
exports.version = "19.3.0-www-classic-d6eb7359-20251003";
+1 -1
View File
@@ -604,4 +604,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.3.0-www-modern-71753ac9-20251003";
exports.version = "19.3.0-www-modern-d6eb7359-20251003";
@@ -608,7 +608,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.3.0-www-classic-71753ac9-20251003";
exports.version = "19.3.0-www-classic-d6eb7359-20251003";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -608,7 +608,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.3.0-www-modern-71753ac9-20251003";
exports.version = "19.3.0-www-modern-d6eb7359-20251003";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -20303,10 +20303,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.3.0-www-classic-71753ac9-20251003",
version: "19.3.0-www-classic-d6eb7359-20251003",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-classic-71753ac9-20251003"
reconcilerVersion: "19.3.0-www-classic-d6eb7359-20251003"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -20341,7 +20341,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.3.0-www-classic-71753ac9-20251003";
exports.version = "19.3.0-www-classic-d6eb7359-20251003";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+3 -3
View File
@@ -20074,10 +20074,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.3.0-www-modern-71753ac9-20251003",
version: "19.3.0-www-modern-d6eb7359-20251003",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-modern-71753ac9-20251003"
reconcilerVersion: "19.3.0-www-modern-d6eb7359-20251003"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -20112,7 +20112,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.3.0-www-modern-71753ac9-20251003";
exports.version = "19.3.0-www-modern-d6eb7359-20251003";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -11434,10 +11434,10 @@ var slice = Array.prototype.slice,
})(React.Component);
var internals$jscomp$inline_1646 = {
bundleType: 0,
version: "19.3.0-www-classic-71753ac9-20251003",
version: "19.3.0-www-classic-d6eb7359-20251003",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-classic-71753ac9-20251003"
reconcilerVersion: "19.3.0-www-classic-d6eb7359-20251003"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1647 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -11463,4 +11463,4 @@ exports.RadialGradient = RadialGradient;
exports.Shape = TYPES.SHAPE;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.3.0-www-classic-71753ac9-20251003";
exports.version = "19.3.0-www-classic-d6eb7359-20251003";
@@ -11146,10 +11146,10 @@ var slice = Array.prototype.slice,
})(React.Component);
var internals$jscomp$inline_1619 = {
bundleType: 0,
version: "19.3.0-www-modern-71753ac9-20251003",
version: "19.3.0-www-modern-d6eb7359-20251003",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-modern-71753ac9-20251003"
reconcilerVersion: "19.3.0-www-modern-d6eb7359-20251003"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1620 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -11175,4 +11175,4 @@ exports.RadialGradient = RadialGradient;
exports.Shape = TYPES.SHAPE;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.3.0-www-modern-71753ac9-20251003";
exports.version = "19.3.0-www-modern-d6eb7359-20251003";
@@ -32865,11 +32865,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.3.0-www-classic-71753ac9-20251003" !== isomorphicReactPackageVersion)
if ("19.3.0-www-classic-d6eb7359-20251003" !== 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.3.0-www-classic-71753ac9-20251003\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.3.0-www-classic-d6eb7359-20251003\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -32912,10 +32912,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.3.0-www-classic-71753ac9-20251003",
version: "19.3.0-www-classic-d6eb7359-20251003",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-classic-71753ac9-20251003"
reconcilerVersion: "19.3.0-www-classic-d6eb7359-20251003"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -33528,7 +33528,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.3.0-www-classic-71753ac9-20251003";
exports.version = "19.3.0-www-classic-d6eb7359-20251003";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+5 -5
View File
@@ -32650,11 +32650,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.3.0-www-modern-71753ac9-20251003" !== isomorphicReactPackageVersion)
if ("19.3.0-www-modern-d6eb7359-20251003" !== 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.3.0-www-modern-71753ac9-20251003\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.3.0-www-modern-d6eb7359-20251003\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -32697,10 +32697,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.3.0-www-modern-71753ac9-20251003",
version: "19.3.0-www-modern-d6eb7359-20251003",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-modern-71753ac9-20251003"
reconcilerVersion: "19.3.0-www-modern-d6eb7359-20251003"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -33313,7 +33313,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.3.0-www-modern-71753ac9-20251003";
exports.version = "19.3.0-www-modern-d6eb7359-20251003";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -19972,14 +19972,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2128 = React.version;
if (
"19.3.0-www-classic-71753ac9-20251003" !==
"19.3.0-www-classic-d6eb7359-20251003" !==
isomorphicReactPackageVersion$jscomp$inline_2128
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2128,
"19.3.0-www-classic-71753ac9-20251003"
"19.3.0-www-classic-d6eb7359-20251003"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -19997,10 +19997,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2760 = {
bundleType: 0,
version: "19.3.0-www-classic-71753ac9-20251003",
version: "19.3.0-www-classic-d6eb7359-20251003",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-classic-71753ac9-20251003"
reconcilerVersion: "19.3.0-www-classic-d6eb7359-20251003"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2761 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -20429,4 +20429,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.3.0-www-classic-71753ac9-20251003";
exports.version = "19.3.0-www-classic-d6eb7359-20251003";
@@ -19701,14 +19701,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2118 = React.version;
if (
"19.3.0-www-modern-71753ac9-20251003" !==
"19.3.0-www-modern-d6eb7359-20251003" !==
isomorphicReactPackageVersion$jscomp$inline_2118
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2118,
"19.3.0-www-modern-71753ac9-20251003"
"19.3.0-www-modern-d6eb7359-20251003"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -19726,10 +19726,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2742 = {
bundleType: 0,
version: "19.3.0-www-modern-71753ac9-20251003",
version: "19.3.0-www-modern-d6eb7359-20251003",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-modern-71753ac9-20251003"
reconcilerVersion: "19.3.0-www-modern-d6eb7359-20251003"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2743 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -20158,4 +20158,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.3.0-www-modern-71753ac9-20251003";
exports.version = "19.3.0-www-modern-d6eb7359-20251003";
@@ -22226,14 +22226,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2438 = React.version;
if (
"19.3.0-www-classic-71753ac9-20251003" !==
"19.3.0-www-classic-d6eb7359-20251003" !==
isomorphicReactPackageVersion$jscomp$inline_2438
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2438,
"19.3.0-www-classic-71753ac9-20251003"
"19.3.0-www-classic-d6eb7359-20251003"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -22251,10 +22251,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2440 = {
bundleType: 0,
version: "19.3.0-www-classic-71753ac9-20251003",
version: "19.3.0-www-classic-d6eb7359-20251003",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-classic-71753ac9-20251003"
reconcilerVersion: "19.3.0-www-classic-d6eb7359-20251003"
};
enableSchedulingProfiler &&
((internals$jscomp$inline_2440.getLaneLabelMap = getLaneLabelMap),
@@ -22687,7 +22687,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.3.0-www-classic-71753ac9-20251003";
exports.version = "19.3.0-www-classic-d6eb7359-20251003";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -22020,14 +22020,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2428 = React.version;
if (
"19.3.0-www-modern-71753ac9-20251003" !==
"19.3.0-www-modern-d6eb7359-20251003" !==
isomorphicReactPackageVersion$jscomp$inline_2428
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2428,
"19.3.0-www-modern-71753ac9-20251003"
"19.3.0-www-modern-d6eb7359-20251003"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -22045,10 +22045,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2430 = {
bundleType: 0,
version: "19.3.0-www-modern-71753ac9-20251003",
version: "19.3.0-www-modern-d6eb7359-20251003",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-modern-71753ac9-20251003"
reconcilerVersion: "19.3.0-www-modern-d6eb7359-20251003"
};
enableSchedulingProfiler &&
((internals$jscomp$inline_2430.getLaneLabelMap = getLaneLabelMap),
@@ -22481,7 +22481,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.3.0-www-modern-71753ac9-20251003";
exports.version = "19.3.0-www-modern-d6eb7359-20251003";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -10305,5 +10305,5 @@ __DEV__ &&
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.3.0-www-classic-71753ac9-20251003";
exports.version = "19.3.0-www-classic-d6eb7359-20251003";
})();
@@ -10234,5 +10234,5 @@ __DEV__ &&
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.3.0-www-modern-71753ac9-20251003";
exports.version = "19.3.0-www-modern-d6eb7359-20251003";
})();
@@ -6996,4 +6996,4 @@ exports.renderToString = function (children, options) {
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.3.0-www-classic-71753ac9-20251003";
exports.version = "19.3.0-www-classic-d6eb7359-20251003";
@@ -6929,4 +6929,4 @@ exports.renderToString = function (children, options) {
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.3.0-www-modern-71753ac9-20251003";
exports.version = "19.3.0-www-modern-d6eb7359-20251003";
@@ -33186,11 +33186,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.3.0-www-classic-71753ac9-20251003" !== isomorphicReactPackageVersion)
if ("19.3.0-www-classic-d6eb7359-20251003" !== 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.3.0-www-classic-71753ac9-20251003\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.3.0-www-classic-d6eb7359-20251003\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -33233,10 +33233,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.3.0-www-classic-71753ac9-20251003",
version: "19.3.0-www-classic-d6eb7359-20251003",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-classic-71753ac9-20251003"
reconcilerVersion: "19.3.0-www-classic-d6eb7359-20251003"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -34015,5 +34015,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.3.0-www-classic-71753ac9-20251003";
exports.version = "19.3.0-www-classic-d6eb7359-20251003";
})();
@@ -32971,11 +32971,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.3.0-www-modern-71753ac9-20251003" !== isomorphicReactPackageVersion)
if ("19.3.0-www-modern-d6eb7359-20251003" !== 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.3.0-www-modern-71753ac9-20251003\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.3.0-www-modern-d6eb7359-20251003\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -33018,10 +33018,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.3.0-www-modern-71753ac9-20251003",
version: "19.3.0-www-modern-d6eb7359-20251003",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-modern-71753ac9-20251003"
reconcilerVersion: "19.3.0-www-modern-d6eb7359-20251003"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -33800,5 +33800,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.3.0-www-modern-71753ac9-20251003";
exports.version = "19.3.0-www-modern-d6eb7359-20251003";
})();
@@ -20288,14 +20288,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2157 = React.version;
if (
"19.3.0-www-classic-71753ac9-20251003" !==
"19.3.0-www-classic-d6eb7359-20251003" !==
isomorphicReactPackageVersion$jscomp$inline_2157
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2157,
"19.3.0-www-classic-71753ac9-20251003"
"19.3.0-www-classic-d6eb7359-20251003"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -20313,10 +20313,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2794 = {
bundleType: 0,
version: "19.3.0-www-classic-71753ac9-20251003",
version: "19.3.0-www-classic-d6eb7359-20251003",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-classic-71753ac9-20251003"
reconcilerVersion: "19.3.0-www-classic-d6eb7359-20251003"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2795 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -20896,4 +20896,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.3.0-www-classic-71753ac9-20251003";
exports.version = "19.3.0-www-classic-d6eb7359-20251003";
@@ -20017,14 +20017,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2147 = React.version;
if (
"19.3.0-www-modern-71753ac9-20251003" !==
"19.3.0-www-modern-d6eb7359-20251003" !==
isomorphicReactPackageVersion$jscomp$inline_2147
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2147,
"19.3.0-www-modern-71753ac9-20251003"
"19.3.0-www-modern-d6eb7359-20251003"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -20042,10 +20042,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2776 = {
bundleType: 0,
version: "19.3.0-www-modern-71753ac9-20251003",
version: "19.3.0-www-modern-d6eb7359-20251003",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-modern-71753ac9-20251003"
reconcilerVersion: "19.3.0-www-modern-d6eb7359-20251003"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2777 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -20625,4 +20625,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.3.0-www-modern-71753ac9-20251003";
exports.version = "19.3.0-www-modern-d6eb7359-20251003";
@@ -22958,7 +22958,7 @@ __DEV__ &&
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-classic-71753ac9-20251003"
reconcilerVersion: "19.3.0-www-classic-d6eb7359-20251003"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -22738,7 +22738,7 @@ __DEV__ &&
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-modern-71753ac9-20251003"
reconcilerVersion: "19.3.0-www-modern-d6eb7359-20251003"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -14245,7 +14245,7 @@ module.exports = function ($$$config) {
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-classic-71753ac9-20251003"
reconcilerVersion: "19.3.0-www-classic-d6eb7359-20251003"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -13962,7 +13962,7 @@ module.exports = function ($$$config) {
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-modern-71753ac9-20251003"
reconcilerVersion: "19.3.0-www-modern-d6eb7359-20251003"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -15705,10 +15705,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.3.0-www-classic-71753ac9-20251003",
version: "19.3.0-www-classic-d6eb7359-20251003",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-classic-71753ac9-20251003"
reconcilerVersion: "19.3.0-www-classic-d6eb7359-20251003"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -15844,5 +15844,5 @@ __DEV__ &&
exports.unstable_batchedUpdates = function (fn, a) {
return fn(a);
};
exports.version = "19.3.0-www-classic-71753ac9-20251003";
exports.version = "19.3.0-www-classic-d6eb7359-20251003";
})();
@@ -15705,10 +15705,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.3.0-www-modern-71753ac9-20251003",
version: "19.3.0-www-modern-d6eb7359-20251003",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-modern-71753ac9-20251003"
reconcilerVersion: "19.3.0-www-modern-d6eb7359-20251003"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -15844,5 +15844,5 @@ __DEV__ &&
exports.unstable_batchedUpdates = function (fn, a) {
return fn(a);
};
exports.version = "19.3.0-www-modern-71753ac9-20251003";
exports.version = "19.3.0-www-modern-d6eb7359-20251003";
})();
+1 -1
View File
@@ -1 +1 @@
19.3.0-www-classic-71753ac9-20251003
19.3.0-www-classic-d6eb7359-20251003
+1 -1
View File
@@ -1 +1 @@
19.3.0-www-modern-71753ac9-20251003
19.3.0-www-modern-d6eb7359-20251003