Skip to content

Commit

Permalink
Fix commong typo in <title> multiple children error message (#31777)
Browse files Browse the repository at this point in the history
DiffTrain build for [0d67cc0](0d67cc0)
  • Loading branch information
sebmarkbage committed Dec 14, 2024
1 parent f161343 commit 2556bc0
Show file tree
Hide file tree
Showing 36 changed files with 90 additions and 90 deletions.
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2e25ee373d96a882cee9a1ee3d7fee3f498bde2d
0d67cc065157b2b98843cd1e2578b0969765c54b
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION_TRANSFORMS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2e25ee373d96a882cee9a1ee3d7fee3f498bde2d
0d67cc065157b2b98843cd1e2578b0969765c54b
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -1954,7 +1954,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.1.0-www-classic-2e25ee37-20241214";
exports.version = "19.1.0-www-classic-0d67cc06-20241214";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -1954,7 +1954,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.1.0-www-modern-2e25ee37-20241214";
exports.version = "19.1.0-www-modern-0d67cc06-20241214";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -635,4 +635,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.1.0-www-classic-2e25ee37-20241214";
exports.version = "19.1.0-www-classic-0d67cc06-20241214";
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -635,4 +635,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.1.0-www-modern-2e25ee37-20241214";
exports.version = "19.1.0-www-modern-0d67cc06-20241214";
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-profiling.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.1.0-www-classic-2e25ee37-20241214";
exports.version = "19.1.0-www-classic-0d67cc06-20241214";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-profiling.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.1.0-www-modern-2e25ee37-20241214";
exports.version = "19.1.0-www-modern-0d67cc06-20241214";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactART-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -17189,10 +17189,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-classic-2e25ee37-20241214",
version: "19.1.0-www-classic-0d67cc06-20241214",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-2e25ee37-20241214"
reconcilerVersion: "19.1.0-www-classic-0d67cc06-20241214"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -17226,7 +17226,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.1.0-www-classic-2e25ee37-20241214";
exports.version = "19.1.0-www-classic-0d67cc06-20241214";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactART-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -16952,10 +16952,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-modern-2e25ee37-20241214",
version: "19.1.0-www-modern-0d67cc06-20241214",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-2e25ee37-20241214"
reconcilerVersion: "19.1.0-www-modern-0d67cc06-20241214"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -16989,7 +16989,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.1.0-www-modern-2e25ee37-20241214";
exports.version = "19.1.0-www-modern-0d67cc06-20241214";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactART-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -10825,10 +10825,10 @@ var slice = Array.prototype.slice,
})(React.Component);
var internals$jscomp$inline_1500 = {
bundleType: 0,
version: "19.1.0-www-classic-2e25ee37-20241214",
version: "19.1.0-www-classic-0d67cc06-20241214",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-2e25ee37-20241214"
reconcilerVersion: "19.1.0-www-classic-0d67cc06-20241214"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1501 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand All @@ -10854,4 +10854,4 @@ exports.RadialGradient = RadialGradient;
exports.Shape = TYPES.SHAPE;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.1.0-www-classic-2e25ee37-20241214";
exports.version = "19.1.0-www-classic-0d67cc06-20241214";
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactART-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -10541,10 +10541,10 @@ var slice = Array.prototype.slice,
})(React.Component);
var internals$jscomp$inline_1479 = {
bundleType: 0,
version: "19.1.0-www-modern-2e25ee37-20241214",
version: "19.1.0-www-modern-0d67cc06-20241214",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-2e25ee37-20241214"
reconcilerVersion: "19.1.0-www-modern-0d67cc06-20241214"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1480 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand All @@ -10570,4 +10570,4 @@ exports.RadialGradient = RadialGradient;
exports.Shape = TYPES.SHAPE;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.1.0-www-modern-2e25ee37-20241214";
exports.version = "19.1.0-www-modern-0d67cc06-20241214";
10 changes: 5 additions & 5 deletions compiled/facebook-www/ReactDOM-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -27665,11 +27665,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.1.0-www-classic-2e25ee37-20241214" !== isomorphicReactPackageVersion)
if ("19.1.0-www-classic-0d67cc06-20241214" !== 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-2e25ee37-20241214\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.1.0-www-classic-0d67cc06-20241214\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
Expand Down Expand Up @@ -27712,10 +27712,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-classic-2e25ee37-20241214",
version: "19.1.0-www-classic-0d67cc06-20241214",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-2e25ee37-20241214"
reconcilerVersion: "19.1.0-www-classic-0d67cc06-20241214"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -28322,7 +28322,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.1.0-www-classic-2e25ee37-20241214";
exports.version = "19.1.0-www-classic-0d67cc06-20241214";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
10 changes: 5 additions & 5 deletions compiled/facebook-www/ReactDOM-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -27444,11 +27444,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.1.0-www-modern-2e25ee37-20241214" !== isomorphicReactPackageVersion)
if ("19.1.0-www-modern-0d67cc06-20241214" !== 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-2e25ee37-20241214\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.1.0-www-modern-0d67cc06-20241214\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
Expand Down Expand Up @@ -27491,10 +27491,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-modern-2e25ee37-20241214",
version: "19.1.0-www-modern-0d67cc06-20241214",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-2e25ee37-20241214"
reconcilerVersion: "19.1.0-www-modern-0d67cc06-20241214"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -28101,7 +28101,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.1.0-www-modern-2e25ee37-20241214";
exports.version = "19.1.0-www-modern-0d67cc06-20241214";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
10 changes: 5 additions & 5 deletions compiled/facebook-www/ReactDOM-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -17282,14 +17282,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1765 = React.version;
if (
"19.1.0-www-classic-2e25ee37-20241214" !==
"19.1.0-www-classic-0d67cc06-20241214" !==
isomorphicReactPackageVersion$jscomp$inline_1765
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1765,
"19.1.0-www-classic-2e25ee37-20241214"
"19.1.0-www-classic-0d67cc06-20241214"
)
);
Internals.findDOMNode = function (componentOrElement) {
Expand All @@ -17307,10 +17307,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2306 = {
bundleType: 0,
version: "19.1.0-www-classic-2e25ee37-20241214",
version: "19.1.0-www-classic-0d67cc06-20241214",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-2e25ee37-20241214"
reconcilerVersion: "19.1.0-www-classic-0d67cc06-20241214"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2307 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -17675,4 +17675,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-www-classic-2e25ee37-20241214";
exports.version = "19.1.0-www-classic-0d67cc06-20241214";
10 changes: 5 additions & 5 deletions compiled/facebook-www/ReactDOM-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -17013,14 +17013,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1755 = React.version;
if (
"19.1.0-www-modern-2e25ee37-20241214" !==
"19.1.0-www-modern-0d67cc06-20241214" !==
isomorphicReactPackageVersion$jscomp$inline_1755
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1755,
"19.1.0-www-modern-2e25ee37-20241214"
"19.1.0-www-modern-0d67cc06-20241214"
)
);
Internals.findDOMNode = function (componentOrElement) {
Expand All @@ -17038,10 +17038,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2288 = {
bundleType: 0,
version: "19.1.0-www-modern-2e25ee37-20241214",
version: "19.1.0-www-modern-0d67cc06-20241214",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-2e25ee37-20241214"
reconcilerVersion: "19.1.0-www-modern-0d67cc06-20241214"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2289 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -17406,4 +17406,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-www-modern-2e25ee37-20241214";
exports.version = "19.1.0-www-modern-0d67cc06-20241214";
10 changes: 5 additions & 5 deletions compiled/facebook-www/ReactDOM-profiling.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -17971,14 +17971,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1858 = React.version;
if (
"19.1.0-www-classic-2e25ee37-20241214" !==
"19.1.0-www-classic-0d67cc06-20241214" !==
isomorphicReactPackageVersion$jscomp$inline_1858
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1858,
"19.1.0-www-classic-2e25ee37-20241214"
"19.1.0-www-classic-0d67cc06-20241214"
)
);
Internals.findDOMNode = function (componentOrElement) {
Expand All @@ -17996,10 +17996,10 @@ Internals.Events = [
];
var internals$jscomp$inline_1860 = {
bundleType: 0,
version: "19.1.0-www-classic-2e25ee37-20241214",
version: "19.1.0-www-classic-0d67cc06-20241214",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-2e25ee37-20241214"
reconcilerVersion: "19.1.0-www-classic-0d67cc06-20241214"
};
enableSchedulingProfiler &&
((internals$jscomp$inline_1860.getLaneLabelMap = getLaneLabelMap),
Expand Down Expand Up @@ -18367,7 +18367,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-www-classic-2e25ee37-20241214";
exports.version = "19.1.0-www-classic-0d67cc06-20241214";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
10 changes: 5 additions & 5 deletions compiled/facebook-www/ReactDOM-profiling.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -17701,14 +17701,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1848 = React.version;
if (
"19.1.0-www-modern-2e25ee37-20241214" !==
"19.1.0-www-modern-0d67cc06-20241214" !==
isomorphicReactPackageVersion$jscomp$inline_1848
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1848,
"19.1.0-www-modern-2e25ee37-20241214"
"19.1.0-www-modern-0d67cc06-20241214"
)
);
Internals.findDOMNode = function (componentOrElement) {
Expand All @@ -17726,10 +17726,10 @@ Internals.Events = [
];
var internals$jscomp$inline_1850 = {
bundleType: 0,
version: "19.1.0-www-modern-2e25ee37-20241214",
version: "19.1.0-www-modern-0d67cc06-20241214",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-2e25ee37-20241214"
reconcilerVersion: "19.1.0-www-modern-0d67cc06-20241214"
};
enableSchedulingProfiler &&
((internals$jscomp$inline_1850.getLaneLabelMap = getLaneLabelMap),
Expand Down Expand Up @@ -18097,7 +18097,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-www-modern-2e25ee37-20241214";
exports.version = "19.1.0-www-modern-0d67cc06-20241214";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
4 changes: 2 additions & 2 deletions compiled/facebook-www/ReactDOMServer-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -2167,7 +2167,7 @@ __DEV__ &&
: children$jscomp$6;
Array.isArray(children$jscomp$6) && 1 < children$jscomp$6.length
? error$jscomp$2(
"React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an Array with length %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert `children` of <title> tags to a single string value which is why Arrays of length greater than 1 are not supported. When using JSX it can be commong to combine text nodes and value nodes. For example: <title>hello {nameOfUser}</title>. While not immediately apparent, `children` in this case is an Array with length 2. If your `children` prop is using this form try rewriting it using a template string: <title>{`hello ${nameOfUser}`}</title>.",
"React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an Array with length %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert `children` of <title> tags to a single string value which is why Arrays of length greater than 1 are not supported. When using JSX it can be common to combine text nodes and value nodes. For example: <title>hello {nameOfUser}</title>. While not immediately apparent, `children` in this case is an Array with length 2. If your `children` prop is using this form try rewriting it using a template string: <title>{`hello ${nameOfUser}`}</title>.",
children$jscomp$6.length
)
: "function" === typeof child || "symbol" === typeof child
Expand Down Expand Up @@ -9158,5 +9158,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-2e25ee37-20241214";
exports.version = "19.1.0-www-classic-0d67cc06-20241214";
})();
Loading

0 comments on commit 2556bc0

Please sign in to comment.