[compiler] Script to produce markdown of lint rule docs (#34260)

The docs site is in a separate repo, but this gives us a semi-automated
way to update the docs about our lint rules. The script generates
markdown files from the rule definitions which we can then manually
copy/paste into the docs site somewhere. In the future we can automate
this fully.

DiffTrain build for [425ba0ad6d](https://github.com/facebook/react/commit/425ba0ad6d3ebd1779f6a658dcbf5c666d054948)
This commit is contained in:
josephsavona
2025-08-22 10:05:33 -07:00
parent ef38ec5073
commit 57d2c2c347
35 changed files with 109 additions and 100 deletions
+23 -14
View File
@@ -18001,14 +18001,20 @@ var ErrorCategory;
ErrorCategory["Fire"] = "Fire";
ErrorCategory["FBT"] = "FBT";
})(ErrorCategory || (ErrorCategory = {}));
const RULE_NAME_PATTERN = /^[a-z]+(-[a-z]+)*$/;
function getRuleForCategory(category) {
const rule = getRuleForCategoryImpl(category);
invariant(RULE_NAME_PATTERN.test(rule.name), `Invalid rule name, got '${rule.name}' but rules must match ${RULE_NAME_PATTERN.toString()}`);
return rule;
}
function getRuleForCategoryImpl(category) {
switch (category) {
case ErrorCategory.AutomaticEffectDependencies: {
return {
category,
name: 'automatic-effect-dependencies',
description: 'Verifies that automatic effect dependencies are compiled if opted-in',
recommended: true,
recommended: false,
};
}
case ErrorCategory.CapitalizedCalls: {
@@ -18023,7 +18029,7 @@ function getRuleForCategory(category) {
return {
category,
name: 'config',
description: 'Validates the configuration',
description: 'Validates the compiler configuration options',
recommended: true,
};
}
@@ -18047,7 +18053,7 @@ function getRuleForCategory(category) {
return {
category,
name: 'set-state-in-effect',
description: 'Validates against calling setState synchronously in an effect',
description: 'Validates against calling setState synchronously in an effect, which can lead to re-renders that degrade performance',
recommended: true,
};
}
@@ -18055,7 +18061,7 @@ function getRuleForCategory(category) {
return {
category,
name: 'error-boundaries',
description: 'Validates usage of error boundaries instead of try/catch for errors in JSX',
description: 'Validates usage of error boundaries instead of try/catch for errors in child components',
recommended: true,
};
}
@@ -18079,7 +18085,7 @@ function getRuleForCategory(category) {
return {
category,
name: 'gating',
description: 'Validates configuration of gating mode',
description: 'Validates configuration of [gating mode](https://react.dev/reference/react-compiler/gating)',
recommended: true,
};
}
@@ -18087,7 +18093,8 @@ function getRuleForCategory(category) {
return {
category,
name: 'globals',
description: 'Validates against assignment/mutation of globals during render',
description: 'Validates against assignment/mutation of globals during render, part of ensuring that ' +
'[side effects must render outside of render](https://react.dev/reference/rules/components-and-hooks-must-be-pure#side-effects-must-run-outside-of-render)',
recommended: true,
};
}
@@ -18103,7 +18110,7 @@ function getRuleForCategory(category) {
return {
category,
name: 'immutability',
description: 'Validates that immutable values (props, state, etc) are not mutated',
description: 'Validates against mutating props, state, and other values that [are immutable](https://react.dev/reference/rules/components-and-hooks-must-be-pure#props-and-state-are-immutable)',
recommended: true,
};
}
@@ -18119,7 +18126,9 @@ function getRuleForCategory(category) {
return {
category,
name: 'preserve-manual-memoization',
description: 'Validates that existing manual memoized is preserved by the compiler',
description: 'Validates that existing manual memoized is preserved by the compiler. ' +
'React Compiler will only compile components and hooks if its inference ' +
'[matches or exceeds the existing manual memoization](https://react.dev/learn/react-compiler/introduction#what-should-i-do-about-usememo-usecallback-and-reactmemo)',
recommended: true,
};
}
@@ -18127,7 +18136,7 @@ function getRuleForCategory(category) {
return {
category,
name: 'purity',
description: 'Validates that the component/hook is pure, and does not call known-impure functions',
description: 'Validates that [components/hooks are pure](https://react.dev/reference/rules/components-and-hooks-must-be-pure) by checking that they do not call known-impure functions',
recommended: true,
};
}
@@ -18135,7 +18144,7 @@ function getRuleForCategory(category) {
return {
category,
name: 'refs',
description: 'Validates correct usage of refs, not reading/writing during render',
description: 'Validates correct usage of refs, not reading/writing during render. See the "pitfalls" section in [`useRef()` usage](https://react.dev/reference/react/useRef#usage)',
recommended: true,
};
}
@@ -18143,7 +18152,7 @@ function getRuleForCategory(category) {
return {
category,
name: 'set-state-in-render',
description: 'Validates against setting state during render',
description: 'Validates against setting state during render, which can trigger additional renders and potential infinite render loops',
recommended: true,
};
}
@@ -18151,7 +18160,7 @@ function getRuleForCategory(category) {
return {
category,
name: 'static-components',
description: 'Validates that components are static, not recreated every render',
description: 'Validates that components are static, not recreated every render. Components that are recreated dynamically can reset state and trigger excessive re-rendering',
recommended: true,
};
}
@@ -18183,7 +18192,7 @@ function getRuleForCategory(category) {
return {
category,
name: 'unsupported-syntax',
description: 'Validates against syntax that we do not plan to support',
description: 'Validates against syntax that we do not plan to support in React Compiler',
recommended: true,
};
}
@@ -18191,7 +18200,7 @@ function getRuleForCategory(category) {
return {
category,
name: 'use-memo',
description: 'Validates usage of the useMemo() hook',
description: 'Validates usage of the useMemo() hook against common mistakes. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.',
recommended: true,
};
}
+1 -1
View File
@@ -1 +1 @@
698bb4deb7c77010c040ac49630c26db94e6e28c
425ba0ad6d3ebd1779f6a658dcbf5c666d054948
+1 -1
View File
@@ -1 +1 @@
698bb4deb7c77010c040ac49630c26db94e6e28c
425ba0ad6d3ebd1779f6a658dcbf5c666d054948
+1 -1
View File
@@ -1409,7 +1409,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.2.0-www-classic-698bb4de-20250822";
exports.version = "19.2.0-www-classic-425ba0ad-20250822";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+1 -1
View File
@@ -1409,7 +1409,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.2.0-www-modern-698bb4de-20250822";
exports.version = "19.2.0-www-modern-425ba0ad-20250822";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+1 -1
View File
@@ -600,4 +600,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.0-www-classic-698bb4de-20250822";
exports.version = "19.2.0-www-classic-425ba0ad-20250822";
+1 -1
View File
@@ -600,4 +600,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.0-www-modern-698bb4de-20250822";
exports.version = "19.2.0-www-modern-425ba0ad-20250822";
@@ -604,7 +604,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.0-www-classic-698bb4de-20250822";
exports.version = "19.2.0-www-classic-425ba0ad-20250822";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -604,7 +604,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.0-www-modern-698bb4de-20250822";
exports.version = "19.2.0-www-modern-425ba0ad-20250822";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -19588,10 +19588,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-classic-698bb4de-20250822",
version: "19.2.0-www-classic-425ba0ad-20250822",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-698bb4de-20250822"
reconcilerVersion: "19.2.0-www-classic-425ba0ad-20250822"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -19625,7 +19625,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.2.0-www-classic-698bb4de-20250822";
exports.version = "19.2.0-www-classic-425ba0ad-20250822";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+3 -3
View File
@@ -19359,10 +19359,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-modern-698bb4de-20250822",
version: "19.2.0-www-modern-425ba0ad-20250822",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-698bb4de-20250822"
reconcilerVersion: "19.2.0-www-modern-425ba0ad-20250822"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -19396,7 +19396,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.2.0-www-modern-698bb4de-20250822";
exports.version = "19.2.0-www-modern-425ba0ad-20250822";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -11298,10 +11298,10 @@ var slice = Array.prototype.slice,
})(React.Component);
var internals$jscomp$inline_1603 = {
bundleType: 0,
version: "19.2.0-www-classic-698bb4de-20250822",
version: "19.2.0-www-classic-425ba0ad-20250822",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-698bb4de-20250822"
reconcilerVersion: "19.2.0-www-classic-425ba0ad-20250822"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1604 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -11327,4 +11327,4 @@ exports.RadialGradient = RadialGradient;
exports.Shape = TYPES.SHAPE;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.2.0-www-classic-698bb4de-20250822";
exports.version = "19.2.0-www-classic-425ba0ad-20250822";
@@ -11010,10 +11010,10 @@ var slice = Array.prototype.slice,
})(React.Component);
var internals$jscomp$inline_1576 = {
bundleType: 0,
version: "19.2.0-www-modern-698bb4de-20250822",
version: "19.2.0-www-modern-425ba0ad-20250822",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-698bb4de-20250822"
reconcilerVersion: "19.2.0-www-modern-425ba0ad-20250822"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1577 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -11039,4 +11039,4 @@ exports.RadialGradient = RadialGradient;
exports.Shape = TYPES.SHAPE;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.2.0-www-modern-698bb4de-20250822";
exports.version = "19.2.0-www-modern-425ba0ad-20250822";
@@ -32115,11 +32115,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-www-classic-698bb4de-20250822" !== isomorphicReactPackageVersion)
if ("19.2.0-www-classic-425ba0ad-20250822" !== 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-www-classic-698bb4de-20250822\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.2.0-www-classic-425ba0ad-20250822\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -32162,10 +32162,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-classic-698bb4de-20250822",
version: "19.2.0-www-classic-425ba0ad-20250822",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-698bb4de-20250822"
reconcilerVersion: "19.2.0-www-classic-425ba0ad-20250822"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -32766,7 +32766,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.2.0-www-classic-698bb4de-20250822";
exports.version = "19.2.0-www-classic-425ba0ad-20250822";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+5 -5
View File
@@ -31900,11 +31900,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-www-modern-698bb4de-20250822" !== isomorphicReactPackageVersion)
if ("19.2.0-www-modern-425ba0ad-20250822" !== 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-www-modern-698bb4de-20250822\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.2.0-www-modern-425ba0ad-20250822\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -31947,10 +31947,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-modern-698bb4de-20250822",
version: "19.2.0-www-modern-425ba0ad-20250822",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-698bb4de-20250822"
reconcilerVersion: "19.2.0-www-modern-425ba0ad-20250822"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -32551,7 +32551,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.2.0-www-modern-698bb4de-20250822";
exports.version = "19.2.0-www-modern-425ba0ad-20250822";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -19599,14 +19599,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2087 = React.version;
if (
"19.2.0-www-classic-698bb4de-20250822" !==
"19.2.0-www-classic-425ba0ad-20250822" !==
isomorphicReactPackageVersion$jscomp$inline_2087
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2087,
"19.2.0-www-classic-698bb4de-20250822"
"19.2.0-www-classic-425ba0ad-20250822"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -19624,10 +19624,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2712 = {
bundleType: 0,
version: "19.2.0-www-classic-698bb4de-20250822",
version: "19.2.0-www-classic-425ba0ad-20250822",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-698bb4de-20250822"
reconcilerVersion: "19.2.0-www-classic-425ba0ad-20250822"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2713 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -20039,4 +20039,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-www-classic-698bb4de-20250822";
exports.version = "19.2.0-www-classic-425ba0ad-20250822";
@@ -19328,14 +19328,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2077 = React.version;
if (
"19.2.0-www-modern-698bb4de-20250822" !==
"19.2.0-www-modern-425ba0ad-20250822" !==
isomorphicReactPackageVersion$jscomp$inline_2077
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2077,
"19.2.0-www-modern-698bb4de-20250822"
"19.2.0-www-modern-425ba0ad-20250822"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -19353,10 +19353,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2694 = {
bundleType: 0,
version: "19.2.0-www-modern-698bb4de-20250822",
version: "19.2.0-www-modern-425ba0ad-20250822",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-698bb4de-20250822"
reconcilerVersion: "19.2.0-www-modern-425ba0ad-20250822"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2695 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -19768,4 +19768,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-www-modern-698bb4de-20250822";
exports.version = "19.2.0-www-modern-425ba0ad-20250822";
@@ -21654,14 +21654,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2334 = React.version;
if (
"19.2.0-www-classic-698bb4de-20250822" !==
"19.2.0-www-classic-425ba0ad-20250822" !==
isomorphicReactPackageVersion$jscomp$inline_2334
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2334,
"19.2.0-www-classic-698bb4de-20250822"
"19.2.0-www-classic-425ba0ad-20250822"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -21679,10 +21679,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2336 = {
bundleType: 0,
version: "19.2.0-www-classic-698bb4de-20250822",
version: "19.2.0-www-classic-425ba0ad-20250822",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-698bb4de-20250822"
reconcilerVersion: "19.2.0-www-classic-425ba0ad-20250822"
};
enableSchedulingProfiler &&
((internals$jscomp$inline_2336.getLaneLabelMap = getLaneLabelMap),
@@ -22098,7 +22098,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-www-classic-698bb4de-20250822";
exports.version = "19.2.0-www-classic-425ba0ad-20250822";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -21448,14 +21448,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2324 = React.version;
if (
"19.2.0-www-modern-698bb4de-20250822" !==
"19.2.0-www-modern-425ba0ad-20250822" !==
isomorphicReactPackageVersion$jscomp$inline_2324
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2324,
"19.2.0-www-modern-698bb4de-20250822"
"19.2.0-www-modern-425ba0ad-20250822"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -21473,10 +21473,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2326 = {
bundleType: 0,
version: "19.2.0-www-modern-698bb4de-20250822",
version: "19.2.0-www-modern-425ba0ad-20250822",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-698bb4de-20250822"
reconcilerVersion: "19.2.0-www-modern-425ba0ad-20250822"
};
enableSchedulingProfiler &&
((internals$jscomp$inline_2326.getLaneLabelMap = getLaneLabelMap),
@@ -21892,7 +21892,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-www-modern-698bb4de-20250822";
exports.version = "19.2.0-www-modern-425ba0ad-20250822";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -10163,5 +10163,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.2.0-www-classic-698bb4de-20250822";
exports.version = "19.2.0-www-classic-425ba0ad-20250822";
})();
@@ -10092,5 +10092,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.2.0-www-modern-698bb4de-20250822";
exports.version = "19.2.0-www-modern-425ba0ad-20250822";
})();
@@ -6892,4 +6892,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.2.0-www-classic-698bb4de-20250822";
exports.version = "19.2.0-www-classic-425ba0ad-20250822";
@@ -6825,4 +6825,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.2.0-www-modern-698bb4de-20250822";
exports.version = "19.2.0-www-modern-425ba0ad-20250822";
@@ -32436,11 +32436,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-www-classic-698bb4de-20250822" !== isomorphicReactPackageVersion)
if ("19.2.0-www-classic-425ba0ad-20250822" !== 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-www-classic-698bb4de-20250822\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.2.0-www-classic-425ba0ad-20250822\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -32483,10 +32483,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-classic-698bb4de-20250822",
version: "19.2.0-www-classic-425ba0ad-20250822",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-698bb4de-20250822"
reconcilerVersion: "19.2.0-www-classic-425ba0ad-20250822"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -33253,5 +33253,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.2.0-www-classic-698bb4de-20250822";
exports.version = "19.2.0-www-classic-425ba0ad-20250822";
})();
@@ -32221,11 +32221,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-www-modern-698bb4de-20250822" !== isomorphicReactPackageVersion)
if ("19.2.0-www-modern-425ba0ad-20250822" !== 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-www-modern-698bb4de-20250822\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.2.0-www-modern-425ba0ad-20250822\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -32268,10 +32268,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-modern-698bb4de-20250822",
version: "19.2.0-www-modern-425ba0ad-20250822",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-698bb4de-20250822"
reconcilerVersion: "19.2.0-www-modern-425ba0ad-20250822"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -33038,5 +33038,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.2.0-www-modern-698bb4de-20250822";
exports.version = "19.2.0-www-modern-425ba0ad-20250822";
})();
@@ -19915,14 +19915,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2116 = React.version;
if (
"19.2.0-www-classic-698bb4de-20250822" !==
"19.2.0-www-classic-425ba0ad-20250822" !==
isomorphicReactPackageVersion$jscomp$inline_2116
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2116,
"19.2.0-www-classic-698bb4de-20250822"
"19.2.0-www-classic-425ba0ad-20250822"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -19940,10 +19940,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2746 = {
bundleType: 0,
version: "19.2.0-www-classic-698bb4de-20250822",
version: "19.2.0-www-classic-425ba0ad-20250822",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-698bb4de-20250822"
reconcilerVersion: "19.2.0-www-classic-425ba0ad-20250822"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2747 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -20506,4 +20506,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-www-classic-698bb4de-20250822";
exports.version = "19.2.0-www-classic-425ba0ad-20250822";
@@ -19644,14 +19644,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2106 = React.version;
if (
"19.2.0-www-modern-698bb4de-20250822" !==
"19.2.0-www-modern-425ba0ad-20250822" !==
isomorphicReactPackageVersion$jscomp$inline_2106
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2106,
"19.2.0-www-modern-698bb4de-20250822"
"19.2.0-www-modern-425ba0ad-20250822"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -19669,10 +19669,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2728 = {
bundleType: 0,
version: "19.2.0-www-modern-698bb4de-20250822",
version: "19.2.0-www-modern-425ba0ad-20250822",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-698bb4de-20250822"
reconcilerVersion: "19.2.0-www-modern-425ba0ad-20250822"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2729 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -20235,4 +20235,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-www-modern-698bb4de-20250822";
exports.version = "19.2.0-www-modern-425ba0ad-20250822";
@@ -22454,7 +22454,7 @@ __DEV__ &&
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-698bb4de-20250822"
reconcilerVersion: "19.2.0-www-classic-425ba0ad-20250822"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -22234,7 +22234,7 @@ __DEV__ &&
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-698bb4de-20250822"
reconcilerVersion: "19.2.0-www-modern-425ba0ad-20250822"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -14048,7 +14048,7 @@ module.exports = function ($$$config) {
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-698bb4de-20250822"
reconcilerVersion: "19.2.0-www-classic-425ba0ad-20250822"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -13765,7 +13765,7 @@ module.exports = function ($$$config) {
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-698bb4de-20250822"
reconcilerVersion: "19.2.0-www-modern-425ba0ad-20250822"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -15464,10 +15464,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-classic-698bb4de-20250822",
version: "19.2.0-www-classic-425ba0ad-20250822",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-698bb4de-20250822"
reconcilerVersion: "19.2.0-www-classic-425ba0ad-20250822"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -15602,5 +15602,5 @@ __DEV__ &&
exports.unstable_batchedUpdates = function (fn, a) {
return fn(a);
};
exports.version = "19.2.0-www-classic-698bb4de-20250822";
exports.version = "19.2.0-www-classic-425ba0ad-20250822";
})();
@@ -15464,10 +15464,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-modern-698bb4de-20250822",
version: "19.2.0-www-modern-425ba0ad-20250822",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-698bb4de-20250822"
reconcilerVersion: "19.2.0-www-modern-425ba0ad-20250822"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -15602,5 +15602,5 @@ __DEV__ &&
exports.unstable_batchedUpdates = function (fn, a) {
return fn(a);
};
exports.version = "19.2.0-www-modern-698bb4de-20250822";
exports.version = "19.2.0-www-modern-425ba0ad-20250822";
})();
+1 -1
View File
@@ -1 +1 @@
19.2.0-www-classic-698bb4de-20250822
19.2.0-www-classic-425ba0ad-20250822
+1 -1
View File
@@ -1 +1 @@
19.2.0-www-modern-698bb4de-20250822
19.2.0-www-modern-425ba0ad-20250822