Skip to content

Commit d703a87

Browse files
committed
Update error decoder URL (#27240)
Updates the error decoder to the URL for the new docs site. - Switches the domain from reactjs.org to react.dev - Switches to put the error code in the URL for SSG - All params are still in the query Example without args: - Before: `https://reactjs.org/docs/error-decoder.html?invariant=200` - After: ` https://react.dev/errors/200` Example with args: - Before: `https://reactjs.org/docs/error-decoder.html?invariant=124?args[]=foo&args[]=bar ` - After: ` https://react.dev/errors/124?args[]=foo&args[]=bar` Requires: reactjs/react.dev#6214 --------- Co-authored-by: Jan Kassens <[email protected]> DiffTrain build for [b300304](b300304)
1 parent a2531fa commit d703a87

15 files changed

+95
-106
lines changed

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5c607369ceebe56d85175df84b7b6ad58dd25e1f
1+
b3003047101b4c7a643788a8faf576f7e370fb45

compiled/facebook-www/React-dev.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if (__DEV__) {
2424
) {
2525
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
2626
}
27-
var ReactVersion = "18.3.0-www-classic-dd3d212c";
27+
var ReactVersion = "18.3.0-www-classic-b3341fd5";
2828

2929
// ATTENTION
3030
// When adding new symbols to this file,

compiled/facebook-www/ReactART-dev.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ if (__DEV__) {
6666
return self;
6767
}
6868

69-
var ReactVersion = "18.3.0-www-modern-dc8082dd";
69+
var ReactVersion = "18.3.0-www-modern-fbd95320";
7070

7171
var LegacyRoot = 0;
7272
var ConcurrentRoot = 1;

compiled/facebook-www/ReactART-prod.classic.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,12 @@ function _assertThisInitialized(self) {
4545
}
4646
var assign = Object.assign;
4747
function formatProdErrorMessage(code) {
48-
for (
49-
var url = "https://reactjs.org/docs/error-decoder.html?invariant=" + code,
50-
i = 1;
51-
i < arguments.length;
52-
i++
53-
)
54-
url += "&args[]=" + encodeURIComponent(arguments[i]);
48+
var url = "https://react.dev/errors/" + code;
49+
if (1 < arguments.length) {
50+
url += "?args[]=" + encodeURIComponent(arguments[1]);
51+
for (var i = 2; i < arguments.length; i++)
52+
url += "&args[]=" + encodeURIComponent(arguments[i]);
53+
}
5554
return (
5655
"Minified React error #" +
5756
code +
@@ -10292,7 +10291,7 @@ var slice = Array.prototype.slice,
1029210291
return null;
1029310292
},
1029410293
bundleType: 0,
10295-
version: "18.3.0-www-classic-c9d1dfab",
10294+
version: "18.3.0-www-classic-e0871ebb",
1029610295
rendererPackageName: "react-art"
1029710296
};
1029810297
var internals$jscomp$inline_1325 = {
@@ -10323,7 +10322,7 @@ var internals$jscomp$inline_1325 = {
1032310322
scheduleRoot: null,
1032410323
setRefreshHandler: null,
1032510324
getCurrentFiber: null,
10326-
reconcilerVersion: "18.3.0-www-classic-c9d1dfab"
10325+
reconcilerVersion: "18.3.0-www-classic-e0871ebb"
1032710326
};
1032810327
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1032910328
var hook$jscomp$inline_1326 = __REACT_DEVTOOLS_GLOBAL_HOOK__;

compiled/facebook-www/ReactART-prod.modern.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,12 @@ function _assertThisInitialized(self) {
4545
}
4646
var assign = Object.assign;
4747
function formatProdErrorMessage(code) {
48-
for (
49-
var url = "https://reactjs.org/docs/error-decoder.html?invariant=" + code,
50-
i = 1;
51-
i < arguments.length;
52-
i++
53-
)
54-
url += "&args[]=" + encodeURIComponent(arguments[i]);
48+
var url = "https://react.dev/errors/" + code;
49+
if (1 < arguments.length) {
50+
url += "?args[]=" + encodeURIComponent(arguments[1]);
51+
for (var i = 2; i < arguments.length; i++)
52+
url += "&args[]=" + encodeURIComponent(arguments[i]);
53+
}
5554
return (
5655
"Minified React error #" +
5756
code +
@@ -9958,7 +9957,7 @@ var slice = Array.prototype.slice,
99589957
return null;
99599958
},
99609959
bundleType: 0,
9961-
version: "18.3.0-www-modern-31c1a5e7",
9960+
version: "18.3.0-www-modern-c36c8f6b",
99629961
rendererPackageName: "react-art"
99639962
};
99649963
var internals$jscomp$inline_1305 = {
@@ -9989,7 +9988,7 @@ var internals$jscomp$inline_1305 = {
99899988
scheduleRoot: null,
99909989
setRefreshHandler: null,
99919990
getCurrentFiber: null,
9992-
reconcilerVersion: "18.3.0-www-modern-31c1a5e7"
9991+
reconcilerVersion: "18.3.0-www-modern-c36c8f6b"
99939992
};
99949993
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
99959994
var hook$jscomp$inline_1306 = __REACT_DEVTOOLS_GLOBAL_HOOK__;

compiled/facebook-www/ReactDOM-prod.classic.js

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,12 @@ var Scheduler = require("scheduler"),
1818
React = require("react"),
1919
assign = Object.assign;
2020
function formatProdErrorMessage(code) {
21-
for (
22-
var url = "https://reactjs.org/docs/error-decoder.html?invariant=" + code,
23-
i = 1;
24-
i < arguments.length;
25-
i++
26-
)
27-
url += "&args[]=" + encodeURIComponent(arguments[i]);
21+
var url = "https://react.dev/errors/" + code;
22+
if (1 < arguments.length) {
23+
url += "?args[]=" + encodeURIComponent(arguments[1]);
24+
for (var i = 2; i < arguments.length; i++)
25+
url += "&args[]=" + encodeURIComponent(arguments[i]);
26+
}
2827
return (
2928
"Minified React error #" +
3029
code +
@@ -16596,7 +16595,7 @@ Internals.Events = [
1659616595
var devToolsConfig$jscomp$inline_1799 = {
1659716596
findFiberByHostInstance: getClosestInstanceFromNode,
1659816597
bundleType: 0,
16599-
version: "18.3.0-www-classic-be8e039e",
16598+
version: "18.3.0-www-classic-e005a9cc",
1660016599
rendererPackageName: "react-dom"
1660116600
};
1660216601
var internals$jscomp$inline_2145 = {
@@ -16626,7 +16625,7 @@ var internals$jscomp$inline_2145 = {
1662616625
scheduleRoot: null,
1662716626
setRefreshHandler: null,
1662816627
getCurrentFiber: null,
16629-
reconcilerVersion: "18.3.0-www-classic-be8e039e"
16628+
reconcilerVersion: "18.3.0-www-classic-e005a9cc"
1663016629
};
1663116630
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1663216631
var hook$jscomp$inline_2146 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -16963,4 +16962,4 @@ exports.useFormState = function () {
1696316962
exports.useFormStatus = function () {
1696416963
throw Error(formatProdErrorMessage(248));
1696516964
};
16966-
exports.version = "18.3.0-www-classic-be8e039e";
16965+
exports.version = "18.3.0-www-classic-e005a9cc";

compiled/facebook-www/ReactDOM-prod.modern.js

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,12 @@ var React = require("react"),
2222
Dispatcher: { current: null }
2323
};
2424
function formatProdErrorMessage(code) {
25-
for (
26-
var url = "https://reactjs.org/docs/error-decoder.html?invariant=" + code,
27-
i = 1;
28-
i < arguments.length;
29-
i++
30-
)
31-
url += "&args[]=" + encodeURIComponent(arguments[i]);
25+
var url = "https://react.dev/errors/" + code;
26+
if (1 < arguments.length) {
27+
url += "?args[]=" + encodeURIComponent(arguments[1]);
28+
for (var i = 2; i < arguments.length; i++)
29+
url += "&args[]=" + encodeURIComponent(arguments[i]);
30+
}
3231
return (
3332
"Minified React error #" +
3433
code +
@@ -16119,7 +16118,7 @@ Internals.Events = [
1611916118
var devToolsConfig$jscomp$inline_1758 = {
1612016119
findFiberByHostInstance: getClosestInstanceFromNode,
1612116120
bundleType: 0,
16122-
version: "18.3.0-www-modern-75306c51",
16121+
version: "18.3.0-www-modern-0d510968",
1612316122
rendererPackageName: "react-dom"
1612416123
};
1612516124
var internals$jscomp$inline_2109 = {
@@ -16150,7 +16149,7 @@ var internals$jscomp$inline_2109 = {
1615016149
scheduleRoot: null,
1615116150
setRefreshHandler: null,
1615216151
getCurrentFiber: null,
16153-
reconcilerVersion: "18.3.0-www-modern-75306c51"
16152+
reconcilerVersion: "18.3.0-www-modern-0d510968"
1615416153
};
1615516154
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1615616155
var hook$jscomp$inline_2110 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -16415,4 +16414,4 @@ exports.useFormState = function () {
1641516414
exports.useFormStatus = function () {
1641616415
throw Error(formatProdErrorMessage(248));
1641716416
};
16418-
exports.version = "18.3.0-www-modern-75306c51";
16417+
exports.version = "18.3.0-www-modern-0d510968";

compiled/facebook-www/ReactDOM-profiling.classic.js

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,12 @@ var Scheduler = require("scheduler"),
2222
React = require("react"),
2323
assign = Object.assign;
2424
function formatProdErrorMessage(code) {
25-
for (
26-
var url = "https://reactjs.org/docs/error-decoder.html?invariant=" + code,
27-
i = 1;
28-
i < arguments.length;
29-
i++
30-
)
31-
url += "&args[]=" + encodeURIComponent(arguments[i]);
25+
var url = "https://react.dev/errors/" + code;
26+
if (1 < arguments.length) {
27+
url += "?args[]=" + encodeURIComponent(arguments[1]);
28+
for (var i = 2; i < arguments.length; i++)
29+
url += "&args[]=" + encodeURIComponent(arguments[i]);
30+
}
3231
return (
3332
"Minified React error #" +
3433
code +
@@ -17365,7 +17364,7 @@ Internals.Events = [
1736517364
var devToolsConfig$jscomp$inline_1884 = {
1736617365
findFiberByHostInstance: getClosestInstanceFromNode,
1736717366
bundleType: 0,
17368-
version: "18.3.0-www-classic-3a859445",
17367+
version: "18.3.0-www-classic-227fb93d",
1736917368
rendererPackageName: "react-dom"
1737017369
};
1737117370
(function (internals) {
@@ -17409,7 +17408,7 @@ var devToolsConfig$jscomp$inline_1884 = {
1740917408
scheduleRoot: null,
1741017409
setRefreshHandler: null,
1741117410
getCurrentFiber: null,
17412-
reconcilerVersion: "18.3.0-www-classic-3a859445"
17411+
reconcilerVersion: "18.3.0-www-classic-227fb93d"
1741317412
});
1741417413
assign(Internals, {
1741517414
ReactBrowserEventEmitter: {
@@ -17733,7 +17732,7 @@ exports.useFormState = function () {
1773317732
exports.useFormStatus = function () {
1773417733
throw Error(formatProdErrorMessage(248));
1773517734
};
17736-
exports.version = "18.3.0-www-classic-3a859445";
17735+
exports.version = "18.3.0-www-classic-227fb93d";
1773717736
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1773817737
"function" ===
1773917738
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactDOM-profiling.modern.js

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,12 @@ var Scheduler = require("scheduler"),
2626
Dispatcher: { current: null }
2727
};
2828
function formatProdErrorMessage(code) {
29-
for (
30-
var url = "https://reactjs.org/docs/error-decoder.html?invariant=" + code,
31-
i = 1;
32-
i < arguments.length;
33-
i++
34-
)
35-
url += "&args[]=" + encodeURIComponent(arguments[i]);
29+
var url = "https://react.dev/errors/" + code;
30+
if (1 < arguments.length) {
31+
url += "?args[]=" + encodeURIComponent(arguments[1]);
32+
for (var i = 2; i < arguments.length; i++)
33+
url += "&args[]=" + encodeURIComponent(arguments[i]);
34+
}
3635
return (
3736
"Minified React error #" +
3837
code +
@@ -16882,7 +16881,7 @@ Internals.Events = [
1688216881
var devToolsConfig$jscomp$inline_1843 = {
1688316882
findFiberByHostInstance: getClosestInstanceFromNode,
1688416883
bundleType: 0,
16885-
version: "18.3.0-www-modern-dc8082dd",
16884+
version: "18.3.0-www-modern-fbd95320",
1688616885
rendererPackageName: "react-dom"
1688716886
};
1688816887
(function (internals) {
@@ -16927,7 +16926,7 @@ var devToolsConfig$jscomp$inline_1843 = {
1692716926
scheduleRoot: null,
1692816927
setRefreshHandler: null,
1692916928
getCurrentFiber: null,
16930-
reconcilerVersion: "18.3.0-www-modern-dc8082dd"
16929+
reconcilerVersion: "18.3.0-www-modern-fbd95320"
1693116930
});
1693216931
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;
1693316932
exports.createPortal = function (children, container) {
@@ -17179,7 +17178,7 @@ exports.useFormState = function () {
1717917178
exports.useFormStatus = function () {
1718017179
throw Error(formatProdErrorMessage(248));
1718117180
};
17182-
exports.version = "18.3.0-www-modern-dc8082dd";
17181+
exports.version = "18.3.0-www-modern-fbd95320";
1718317182
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1718417183
"function" ===
1718517184
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactDOMServer-dev.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if (__DEV__) {
1919
var React = require("react");
2020
var ReactDOM = require("react-dom");
2121

22-
var ReactVersion = "18.3.0-www-modern-40768a61";
22+
var ReactVersion = "18.3.0-www-modern-ac3cce8e";
2323

2424
// This refers to a WWW module.
2525
var warningWWW = require("warning");

0 commit comments

Comments
 (0)