Update babel configs used in jest (#32588)

Extracting portions of #32416 for easier review.

This PR updates our babel configs (only used in jest) to support
classes.

Co-authored-by: michael faith <michaelfaith@users.noreply.github.com>
---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/facebook/react/pull/32588).
* #32592
* #32591
* #32590
* #32589
* __->__ #32588

Co-authored-by: michael faith <michaelfaith@users.noreply.github.com>

DiffTrain build for [f695f95290](https://github.com/facebook/react/commit/f695f95290aa3560a00e8a3b617205ac9e087e0e)
This commit is contained in:
poteto
2025-03-12 16:18:11 -07:00
committed by poteto
co-authored by michael faith
parent e26b79e570
commit fdb4c824d0
34 changed files with 92 additions and 122 deletions
+1 -1
View File
@@ -1 +1 @@
75c979847f1c6dd954860f17b4dc181ad7c2891e
a8ab2bcb627ed7c57d2e116b2e13ad5451259c2b
+1 -1
View File
@@ -1 +1 @@
75c979847f1c6dd954860f17b4dc181ad7c2891e
a8ab2bcb627ed7c57d2e116b2e13ad5451259c2b
+1 -1
View File
@@ -1532,7 +1532,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.1.0-www-classic-75c97984-20250312";
exports.version = "19.1.0-www-classic-f695f952-20250312";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+1 -1
View File
@@ -1532,7 +1532,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.1.0-www-modern-75c97984-20250312";
exports.version = "19.1.0-www-modern-f695f952-20250312";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+1 -1
View File
@@ -641,4 +641,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.1.0-www-classic-75c97984-20250312";
exports.version = "19.1.0-www-classic-f695f952-20250312";
+1 -1
View File
@@ -641,4 +641,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.1.0-www-modern-75c97984-20250312";
exports.version = "19.1.0-www-modern-f695f952-20250312";
@@ -645,7 +645,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.1.0-www-classic-75c97984-20250312";
exports.version = "19.1.0-www-classic-f695f952-20250312";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -645,7 +645,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.1.0-www-modern-75c97984-20250312";
exports.version = "19.1.0-www-modern-f695f952-20250312";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+4 -11
View File
@@ -130,13 +130,6 @@ __DEV__ &&
subClass.prototype.constructor = subClass;
subClass.__proto__ = superClass;
}
function _assertThisInitialized(self) {
if (void 0 === self)
throw new ReferenceError(
"this hasn't been initialised - super() hasn't been called"
);
return self;
}
function isFiberSuspenseAndTimedOut(fiber) {
var memoizedState = fiber.memoizedState;
return (
@@ -18518,7 +18511,7 @@ __DEV__ &&
function Text(props) {
var _this2 = _React$Component2.call(this, props) || this;
["height", "width", "x", "y"].forEach(function (key) {
Object.defineProperty(_assertThisInitialized(_this2), key, {
Object.defineProperty(_this2, key, {
get: function () {
return this._text ? this._text[key] : void 0;
}
@@ -18544,10 +18537,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-classic-75c97984-20250312",
version: "19.1.0-www-classic-f695f952-20250312",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-75c97984-20250312"
reconcilerVersion: "19.1.0-www-classic-f695f952-20250312"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -18581,7 +18574,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.1.0-www-classic-75c97984-20250312";
exports.version = "19.1.0-www-classic-f695f952-20250312";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+4 -11
View File
@@ -130,13 +130,6 @@ __DEV__ &&
subClass.prototype.constructor = subClass;
subClass.__proto__ = superClass;
}
function _assertThisInitialized(self) {
if (void 0 === self)
throw new ReferenceError(
"this hasn't been initialised - super() hasn't been called"
);
return self;
}
function isFiberSuspenseAndTimedOut(fiber) {
var memoizedState = fiber.memoizedState;
return (
@@ -18290,7 +18283,7 @@ __DEV__ &&
function Text(props) {
var _this2 = _React$Component2.call(this, props) || this;
["height", "width", "x", "y"].forEach(function (key) {
Object.defineProperty(_assertThisInitialized(_this2), key, {
Object.defineProperty(_this2, key, {
get: function () {
return this._text ? this._text[key] : void 0;
}
@@ -18316,10 +18309,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-modern-75c97984-20250312",
version: "19.1.0-www-modern-f695f952-20250312",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-75c97984-20250312"
reconcilerVersion: "19.1.0-www-modern-f695f952-20250312"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -18353,7 +18346,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.1.0-www-modern-75c97984-20250312";
exports.version = "19.1.0-www-modern-f695f952-20250312";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+4 -11
View File
@@ -36,13 +36,6 @@ function _inheritsLoose(subClass, superClass) {
subClass.prototype.constructor = subClass;
subClass.__proto__ = superClass;
}
function _assertThisInitialized(self) {
if (void 0 === self)
throw new ReferenceError(
"this hasn't been initialised - super() hasn't been called"
);
return self;
}
var assign = Object.assign;
function formatProdErrorMessage(code) {
var url = "https://react.dev/errors/" + code;
@@ -11314,7 +11307,7 @@ var slice = Array.prototype.slice,
function Text(props) {
var _this = _React$Component2.call(this, props) || this;
["height", "width", "x", "y"].forEach(function (key) {
Object.defineProperty(_assertThisInitialized(_this), key, {
Object.defineProperty(_this, key, {
get: function () {
return this._text ? this._text[key] : void 0;
}
@@ -11339,10 +11332,10 @@ var slice = Array.prototype.slice,
})(React.Component);
var internals$jscomp$inline_1587 = {
bundleType: 0,
version: "19.1.0-www-classic-75c97984-20250312",
version: "19.1.0-www-classic-f695f952-20250312",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-75c97984-20250312"
reconcilerVersion: "19.1.0-www-classic-f695f952-20250312"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1588 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -11368,4 +11361,4 @@ exports.RadialGradient = RadialGradient;
exports.Shape = TYPES.SHAPE;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.1.0-www-classic-75c97984-20250312";
exports.version = "19.1.0-www-classic-f695f952-20250312";
+4 -11
View File
@@ -36,13 +36,6 @@ function _inheritsLoose(subClass, superClass) {
subClass.prototype.constructor = subClass;
subClass.__proto__ = superClass;
}
function _assertThisInitialized(self) {
if (void 0 === self)
throw new ReferenceError(
"this hasn't been initialised - super() hasn't been called"
);
return self;
}
var assign = Object.assign;
function formatProdErrorMessage(code) {
var url = "https://react.dev/errors/" + code;
@@ -11029,7 +11022,7 @@ var slice = Array.prototype.slice,
function Text(props) {
var _this = _React$Component2.call(this, props) || this;
["height", "width", "x", "y"].forEach(function (key) {
Object.defineProperty(_assertThisInitialized(_this), key, {
Object.defineProperty(_this, key, {
get: function () {
return this._text ? this._text[key] : void 0;
}
@@ -11054,10 +11047,10 @@ var slice = Array.prototype.slice,
})(React.Component);
var internals$jscomp$inline_1560 = {
bundleType: 0,
version: "19.1.0-www-modern-75c97984-20250312",
version: "19.1.0-www-modern-f695f952-20250312",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-75c97984-20250312"
reconcilerVersion: "19.1.0-www-modern-f695f952-20250312"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1561 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -11083,4 +11076,4 @@ exports.RadialGradient = RadialGradient;
exports.Shape = TYPES.SHAPE;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.1.0-www-modern-75c97984-20250312";
exports.version = "19.1.0-www-modern-f695f952-20250312";
@@ -30197,11 +30197,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.1.0-www-classic-75c97984-20250312" !== isomorphicReactPackageVersion)
if ("19.1.0-www-classic-f695f952-20250312" !== 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.1.0-www-classic-75c97984-20250312\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.1.0-www-classic-f695f952-20250312\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -30244,10 +30244,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-classic-75c97984-20250312",
version: "19.1.0-www-classic-f695f952-20250312",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-75c97984-20250312"
reconcilerVersion: "19.1.0-www-classic-f695f952-20250312"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -30845,7 +30845,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.1.0-www-classic-75c97984-20250312";
exports.version = "19.1.0-www-classic-f695f952-20250312";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+5 -5
View File
@@ -29983,11 +29983,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.1.0-www-modern-75c97984-20250312" !== isomorphicReactPackageVersion)
if ("19.1.0-www-modern-f695f952-20250312" !== 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.1.0-www-modern-75c97984-20250312\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.1.0-www-modern-f695f952-20250312\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -30030,10 +30030,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-modern-75c97984-20250312",
version: "19.1.0-www-modern-f695f952-20250312",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-75c97984-20250312"
reconcilerVersion: "19.1.0-www-modern-f695f952-20250312"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -30631,7 +30631,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.1.0-www-modern-75c97984-20250312";
exports.version = "19.1.0-www-modern-f695f952-20250312";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -18935,14 +18935,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1925 = React.version;
if (
"19.1.0-www-classic-75c97984-20250312" !==
"19.1.0-www-classic-f695f952-20250312" !==
isomorphicReactPackageVersion$jscomp$inline_1925
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1925,
"19.1.0-www-classic-75c97984-20250312"
"19.1.0-www-classic-f695f952-20250312"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -18960,10 +18960,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2505 = {
bundleType: 0,
version: "19.1.0-www-classic-75c97984-20250312",
version: "19.1.0-www-classic-f695f952-20250312",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-75c97984-20250312"
reconcilerVersion: "19.1.0-www-classic-f695f952-20250312"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2506 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -19327,4 +19327,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-www-classic-75c97984-20250312";
exports.version = "19.1.0-www-classic-f695f952-20250312";
@@ -18666,14 +18666,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1915 = React.version;
if (
"19.1.0-www-modern-75c97984-20250312" !==
"19.1.0-www-modern-f695f952-20250312" !==
isomorphicReactPackageVersion$jscomp$inline_1915
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1915,
"19.1.0-www-modern-75c97984-20250312"
"19.1.0-www-modern-f695f952-20250312"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -18691,10 +18691,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2487 = {
bundleType: 0,
version: "19.1.0-www-modern-75c97984-20250312",
version: "19.1.0-www-modern-f695f952-20250312",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-75c97984-20250312"
reconcilerVersion: "19.1.0-www-modern-f695f952-20250312"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2488 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -19058,4 +19058,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-www-modern-75c97984-20250312";
exports.version = "19.1.0-www-modern-f695f952-20250312";
@@ -20677,14 +20677,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2085 = React.version;
if (
"19.1.0-www-classic-75c97984-20250312" !==
"19.1.0-www-classic-f695f952-20250312" !==
isomorphicReactPackageVersion$jscomp$inline_2085
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2085,
"19.1.0-www-classic-75c97984-20250312"
"19.1.0-www-classic-f695f952-20250312"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -20702,10 +20702,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2087 = {
bundleType: 0,
version: "19.1.0-www-classic-75c97984-20250312",
version: "19.1.0-www-classic-f695f952-20250312",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-75c97984-20250312"
reconcilerVersion: "19.1.0-www-classic-f695f952-20250312"
};
enableSchedulingProfiler &&
((internals$jscomp$inline_2087.getLaneLabelMap = getLaneLabelMap),
@@ -21072,7 +21072,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-www-classic-75c97984-20250312";
exports.version = "19.1.0-www-classic-f695f952-20250312";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -20475,14 +20475,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2075 = React.version;
if (
"19.1.0-www-modern-75c97984-20250312" !==
"19.1.0-www-modern-f695f952-20250312" !==
isomorphicReactPackageVersion$jscomp$inline_2075
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2075,
"19.1.0-www-modern-75c97984-20250312"
"19.1.0-www-modern-f695f952-20250312"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -20500,10 +20500,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2077 = {
bundleType: 0,
version: "19.1.0-www-modern-75c97984-20250312",
version: "19.1.0-www-modern-f695f952-20250312",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-75c97984-20250312"
reconcilerVersion: "19.1.0-www-modern-f695f952-20250312"
};
enableSchedulingProfiler &&
((internals$jscomp$inline_2077.getLaneLabelMap = getLaneLabelMap),
@@ -20870,7 +20870,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-www-modern-75c97984-20250312";
exports.version = "19.1.0-www-modern-f695f952-20250312";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -9412,5 +9412,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.1.0-www-classic-75c97984-20250312";
exports.version = "19.1.0-www-classic-f695f952-20250312";
})();
@@ -9238,5 +9238,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.1.0-www-modern-75c97984-20250312";
exports.version = "19.1.0-www-modern-f695f952-20250312";
})();
@@ -6196,4 +6196,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.1.0-www-classic-75c97984-20250312";
exports.version = "19.1.0-www-classic-f695f952-20250312";
@@ -6108,4 +6108,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.1.0-www-modern-75c97984-20250312";
exports.version = "19.1.0-www-modern-f695f952-20250312";
@@ -30518,11 +30518,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.1.0-www-classic-75c97984-20250312" !== isomorphicReactPackageVersion)
if ("19.1.0-www-classic-f695f952-20250312" !== 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.1.0-www-classic-75c97984-20250312\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.1.0-www-classic-f695f952-20250312\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -30565,10 +30565,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-classic-75c97984-20250312",
version: "19.1.0-www-classic-f695f952-20250312",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-75c97984-20250312"
reconcilerVersion: "19.1.0-www-classic-f695f952-20250312"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -31332,5 +31332,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.1.0-www-classic-75c97984-20250312";
exports.version = "19.1.0-www-classic-f695f952-20250312";
})();
@@ -30304,11 +30304,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.1.0-www-modern-75c97984-20250312" !== isomorphicReactPackageVersion)
if ("19.1.0-www-modern-f695f952-20250312" !== 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.1.0-www-modern-75c97984-20250312\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.1.0-www-modern-f695f952-20250312\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -30351,10 +30351,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-modern-75c97984-20250312",
version: "19.1.0-www-modern-f695f952-20250312",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-75c97984-20250312"
reconcilerVersion: "19.1.0-www-modern-f695f952-20250312"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -31118,5 +31118,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.1.0-www-modern-75c97984-20250312";
exports.version = "19.1.0-www-modern-f695f952-20250312";
})();
@@ -19251,14 +19251,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1954 = React.version;
if (
"19.1.0-www-classic-75c97984-20250312" !==
"19.1.0-www-classic-f695f952-20250312" !==
isomorphicReactPackageVersion$jscomp$inline_1954
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1954,
"19.1.0-www-classic-75c97984-20250312"
"19.1.0-www-classic-f695f952-20250312"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -19276,10 +19276,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2539 = {
bundleType: 0,
version: "19.1.0-www-classic-75c97984-20250312",
version: "19.1.0-www-classic-f695f952-20250312",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-75c97984-20250312"
reconcilerVersion: "19.1.0-www-classic-f695f952-20250312"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2540 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -19794,4 +19794,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-www-classic-75c97984-20250312";
exports.version = "19.1.0-www-classic-f695f952-20250312";
@@ -18982,14 +18982,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1944 = React.version;
if (
"19.1.0-www-modern-75c97984-20250312" !==
"19.1.0-www-modern-f695f952-20250312" !==
isomorphicReactPackageVersion$jscomp$inline_1944
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1944,
"19.1.0-www-modern-75c97984-20250312"
"19.1.0-www-modern-f695f952-20250312"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -19007,10 +19007,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2521 = {
bundleType: 0,
version: "19.1.0-www-modern-75c97984-20250312",
version: "19.1.0-www-modern-f695f952-20250312",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-75c97984-20250312"
reconcilerVersion: "19.1.0-www-modern-f695f952-20250312"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2522 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -19525,4 +19525,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-www-modern-75c97984-20250312";
exports.version = "19.1.0-www-modern-f695f952-20250312";
@@ -21261,7 +21261,7 @@ __DEV__ &&
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-75c97984-20250312"
reconcilerVersion: "19.1.0-www-classic-f695f952-20250312"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -21042,7 +21042,7 @@ __DEV__ &&
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-75c97984-20250312"
reconcilerVersion: "19.1.0-www-modern-f695f952-20250312"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -13950,7 +13950,7 @@ module.exports = function ($$$config) {
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-75c97984-20250312"
reconcilerVersion: "19.1.0-www-classic-f695f952-20250312"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -13669,7 +13669,7 @@ module.exports = function ($$$config) {
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-75c97984-20250312"
reconcilerVersion: "19.1.0-www-modern-f695f952-20250312"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -15010,7 +15010,7 @@ __DEV__ &&
: null
);
};
_createClass(ReactTestInstance, [
return _createClass(ReactTestInstance, [
{
key: "instance",
get: function () {
@@ -15052,16 +15052,15 @@ __DEV__ &&
}
}
]);
return ReactTestInstance;
})(),
fiberToWrapper = new WeakMap();
(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-classic-75c97984-20250312",
version: "19.1.0-www-classic-f695f952-20250312",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-75c97984-20250312"
reconcilerVersion: "19.1.0-www-classic-f695f952-20250312"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -15196,5 +15195,5 @@ __DEV__ &&
exports.unstable_batchedUpdates = function (fn, a) {
return fn(a);
};
exports.version = "19.1.0-www-classic-75c97984-20250312";
exports.version = "19.1.0-www-classic-f695f952-20250312";
})();
@@ -15010,7 +15010,7 @@ __DEV__ &&
: null
);
};
_createClass(ReactTestInstance, [
return _createClass(ReactTestInstance, [
{
key: "instance",
get: function () {
@@ -15052,16 +15052,15 @@ __DEV__ &&
}
}
]);
return ReactTestInstance;
})(),
fiberToWrapper = new WeakMap();
(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-modern-75c97984-20250312",
version: "19.1.0-www-modern-f695f952-20250312",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-75c97984-20250312"
reconcilerVersion: "19.1.0-www-modern-f695f952-20250312"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -15196,5 +15195,5 @@ __DEV__ &&
exports.unstable_batchedUpdates = function (fn, a) {
return fn(a);
};
exports.version = "19.1.0-www-modern-75c97984-20250312";
exports.version = "19.1.0-www-modern-f695f952-20250312";
})();
+1 -1
View File
@@ -1 +1 @@
19.1.0-www-classic-75c97984-20250312
19.1.0-www-classic-f695f952-20250312
+1 -1
View File
@@ -1 +1 @@
19.1.0-www-modern-75c97984-20250312
19.1.0-www-modern-f695f952-20250312