react-server-dom-webpack 19.0.0-rc-512b09b2-20240718 → 19.0.0-rc-f6cce072-20240723
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/react-server-dom-webpack-client.browser.development.js +145 -46
- package/cjs/react-server-dom-webpack-client.browser.production.js +14 -14
- package/cjs/react-server-dom-webpack-client.edge.development.js +146 -46
- package/cjs/react-server-dom-webpack-client.edge.production.js +14 -14
- package/cjs/react-server-dom-webpack-client.node.development.js +156 -55
- package/cjs/react-server-dom-webpack-client.node.production.js +18 -18
- package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +152 -51
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.js +14 -14
- package/cjs/react-server-dom-webpack-plugin.js +7 -7
- package/cjs/react-server-dom-webpack-server.browser.development.js +264 -156
- package/cjs/react-server-dom-webpack-server.browser.production.js +56 -56
- package/cjs/react-server-dom-webpack-server.edge.development.js +273 -160
- package/cjs/react-server-dom-webpack-server.edge.production.js +56 -56
- package/cjs/react-server-dom-webpack-server.node.development.js +272 -164
- package/cjs/react-server-dom-webpack-server.node.production.js +56 -56
- package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +268 -160
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.js +52 -52
- package/package.json +3 -3
@@ -179,6 +179,12 @@
|
|
179
179
|
((hasProperties = !0), (trimmed[key] = options[key]));
|
180
180
|
return hasProperties ? trimmed : null;
|
181
181
|
}
|
182
|
+
function prepareStackTrace(error, structuredStackTrace) {
|
183
|
+
error = (error.name || "Error") + ": " + (error.message || "");
|
184
|
+
for (var i = 0; i < structuredStackTrace.length; i++)
|
185
|
+
error += "\n at " + structuredStackTrace[i].toString();
|
186
|
+
return error;
|
187
|
+
}
|
182
188
|
function createTemporaryReference(temporaryReferences, id) {
|
183
189
|
var reference = Object.defineProperties(
|
184
190
|
function () {
|
@@ -331,8 +337,8 @@
|
|
331
337
|
return value.$$typeof === CLIENT_REFERENCE_TAG
|
332
338
|
? "client"
|
333
339
|
: (value = value.displayName || value.name)
|
334
|
-
|
335
|
-
|
340
|
+
? "function " + value
|
341
|
+
: "function";
|
336
342
|
default:
|
337
343
|
return String(value);
|
338
344
|
}
|
@@ -375,8 +381,8 @@
|
|
375
381
|
"string" === typeof value
|
376
382
|
? value
|
377
383
|
: "object" === typeof value && null !== value
|
378
|
-
|
379
|
-
|
384
|
+
? "{" + describeObjectForErrorMessage(value) + "}"
|
385
|
+
: "{" + describeValueForErrorMessage(value) + "}";
|
380
386
|
"" + i === expandedName
|
381
387
|
? ((start = objKind.length),
|
382
388
|
(length = value.length),
|
@@ -462,15 +468,12 @@
|
|
462
468
|
return void 0 === expandedName
|
463
469
|
? objKind
|
464
470
|
: -1 < start && 0 < length
|
465
|
-
|
466
|
-
|
467
|
-
|
471
|
+
? ((objectOrArray = " ".repeat(start) + "^".repeat(length)),
|
472
|
+
"\n " + objKind + "\n " + objectOrArray)
|
473
|
+
: "\n " + objKind;
|
468
474
|
}
|
469
|
-
function
|
470
|
-
|
471
|
-
for (var i = 0; i < structuredStackTrace.length; i++)
|
472
|
-
error += "\n at " + structuredStackTrace[i].toString();
|
473
|
-
return error;
|
475
|
+
function isNotExternal(stackFrame) {
|
476
|
+
return !externalRegExp.test(stackFrame[1]);
|
474
477
|
}
|
475
478
|
function getCurrentStackInDEV() {
|
476
479
|
return "";
|
@@ -531,12 +534,12 @@
|
|
531
534
|
return "Server";
|
532
535
|
}
|
533
536
|
: "function" !== typeof environmentName
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
537
|
+
? function () {
|
538
|
+
return environmentName;
|
539
|
+
}
|
540
|
+
: environmentName;
|
538
541
|
this.didWarnForKey = null;
|
539
|
-
model = createTask(this, model, null, !1, abortSet);
|
542
|
+
model = createTask(this, model, null, !1, abortSet, null);
|
540
543
|
pingedTasks.push(model);
|
541
544
|
}
|
542
545
|
function serializeThenable(request, task, thenable) {
|
@@ -545,7 +548,8 @@
|
|
545
548
|
null,
|
546
549
|
task.keyPath,
|
547
550
|
task.implicitSlot,
|
548
|
-
request.abortableTasks
|
551
|
+
request.abortableTasks,
|
552
|
+
task.debugOwner
|
549
553
|
);
|
550
554
|
(task = thenable._debugInfo) &&
|
551
555
|
forwardDebugInfo(request, newTask.id, task);
|
@@ -642,7 +646,8 @@
|
|
642
646
|
task.model,
|
643
647
|
task.keyPath,
|
644
648
|
task.implicitSlot,
|
645
|
-
request.abortableTasks
|
649
|
+
request.abortableTasks,
|
650
|
+
task.debugOwner
|
646
651
|
);
|
647
652
|
request.abortableTasks.delete(streamTask);
|
648
653
|
request.pendingChunks++;
|
@@ -654,9 +659,6 @@
|
|
654
659
|
reader.read().then(progress, error);
|
655
660
|
return serializeByValueID(streamTask.id);
|
656
661
|
}
|
657
|
-
function callIteratorInDEV(iterator, progress, error) {
|
658
|
-
iterator.next().then(progress, error);
|
659
|
-
}
|
660
662
|
function serializeAsyncIterable(request, task, iterable, iterator) {
|
661
663
|
function progress(entry) {
|
662
664
|
if (!aborted)
|
@@ -707,7 +709,8 @@
|
|
707
709
|
task.model,
|
708
710
|
task.keyPath,
|
709
711
|
task.implicitSlot,
|
710
|
-
request.abortableTasks
|
712
|
+
request.abortableTasks,
|
713
|
+
task.debugOwner
|
711
714
|
);
|
712
715
|
request.abortableTasks.delete(streamTask);
|
713
716
|
request.pendingChunks++;
|
@@ -762,18 +765,6 @@
|
|
762
765
|
lazyType._debugInfo = wakeable._debugInfo || [];
|
763
766
|
return lazyType;
|
764
767
|
}
|
765
|
-
function callComponentInDEV(Component, props, componentDebugInfo) {
|
766
|
-
currentOwner = componentDebugInfo;
|
767
|
-
try {
|
768
|
-
return Component(props, void 0);
|
769
|
-
} finally {
|
770
|
-
currentOwner = null;
|
771
|
-
}
|
772
|
-
}
|
773
|
-
function callLazyInitInDEV(lazy) {
|
774
|
-
var init = lazy._init;
|
775
|
-
return init(lazy._payload);
|
776
|
-
}
|
777
768
|
function callWithDebugContextInDEV(task, callback, arg) {
|
778
769
|
currentOwner = { env: task.environmentName, owner: task.debugOwner };
|
779
770
|
try {
|
@@ -933,7 +924,8 @@
|
|
933
924
|
task.model,
|
934
925
|
task.keyPath,
|
935
926
|
task.implicitSlot,
|
936
|
-
request.abortableTasks
|
927
|
+
request.abortableTasks,
|
928
|
+
task.debugOwner
|
937
929
|
);
|
938
930
|
retryTask(request, task);
|
939
931
|
return 1 === task.status
|
@@ -1010,7 +1002,14 @@
|
|
1010
1002
|
return performWork(request);
|
1011
1003
|
}));
|
1012
1004
|
}
|
1013
|
-
function createTask(
|
1005
|
+
function createTask(
|
1006
|
+
request,
|
1007
|
+
model,
|
1008
|
+
keyPath,
|
1009
|
+
implicitSlot,
|
1010
|
+
abortSet,
|
1011
|
+
debugOwner
|
1012
|
+
) {
|
1014
1013
|
request.pendingChunks++;
|
1015
1014
|
var id = request.nextChunkId++;
|
1016
1015
|
"object" !== typeof model ||
|
@@ -1056,6 +1055,7 @@
|
|
1056
1055
|
thenableState: null
|
1057
1056
|
};
|
1058
1057
|
task.environmentName = request.environmentName();
|
1058
|
+
task.debugOwner = debugOwner;
|
1059
1059
|
abortSet.add(task);
|
1060
1060
|
return task;
|
1061
1061
|
}
|
@@ -1071,10 +1071,10 @@
|
|
1071
1071
|
? "$-0"
|
1072
1072
|
: number
|
1073
1073
|
: Infinity === number
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1074
|
+
? "$Infinity"
|
1075
|
+
: -Infinity === number
|
1076
|
+
? "$-Infinity"
|
1077
|
+
: "$NaN";
|
1078
1078
|
}
|
1079
1079
|
function encodeReferenceChunk(request, id, reference) {
|
1080
1080
|
request = stringify(reference);
|
@@ -1139,7 +1139,14 @@
|
|
1139
1139
|
}
|
1140
1140
|
}
|
1141
1141
|
function outlineModel(request, value) {
|
1142
|
-
value = createTask(
|
1142
|
+
value = createTask(
|
1143
|
+
request,
|
1144
|
+
value,
|
1145
|
+
null,
|
1146
|
+
!1,
|
1147
|
+
request.abortableTasks,
|
1148
|
+
null
|
1149
|
+
);
|
1143
1150
|
retryTask(request, value);
|
1144
1151
|
return value.id;
|
1145
1152
|
}
|
@@ -1204,7 +1211,14 @@
|
|
1204
1211
|
}
|
1205
1212
|
}
|
1206
1213
|
var model = [blob.type],
|
1207
|
-
newTask = createTask(
|
1214
|
+
newTask = createTask(
|
1215
|
+
request,
|
1216
|
+
model,
|
1217
|
+
null,
|
1218
|
+
!1,
|
1219
|
+
request.abortableTasks,
|
1220
|
+
null
|
1221
|
+
),
|
1208
1222
|
reader = blob.stream().getReader(),
|
1209
1223
|
aborted = !1;
|
1210
1224
|
request.abortListeners.add(error);
|
@@ -1243,7 +1257,8 @@
|
|
1243
1257
|
task.model,
|
1244
1258
|
task.keyPath,
|
1245
1259
|
task.implicitSlot,
|
1246
|
-
request.abortableTasks
|
1260
|
+
request.abortableTasks,
|
1261
|
+
task.debugOwner
|
1247
1262
|
);
|
1248
1263
|
value = request.ping;
|
1249
1264
|
key.then(value, value);
|
@@ -1452,13 +1467,14 @@
|
|
1452
1467
|
describeObjectForErrorMessage(parent, parentPropertyName)
|
1453
1468
|
);
|
1454
1469
|
if (
|
1455
|
-
"object" === typeof value.
|
1456
|
-
|
1457
|
-
|
1470
|
+
(("object" === typeof value.debugTask &&
|
1471
|
+
null !== value.debugTask &&
|
1472
|
+
"function" === typeof value.debugTask.run) ||
|
1473
|
+
value.debugStack instanceof Error) &&
|
1474
|
+
"undefined" === typeof value.stack &&
|
1458
1475
|
"string" === typeof value.name &&
|
1459
1476
|
"string" === typeof value.env &&
|
1460
|
-
void 0 !== value.owner
|
1461
|
-
"undefined" === typeof value.stack
|
1477
|
+
void 0 !== value.owner
|
1462
1478
|
)
|
1463
1479
|
return { name: value.name, env: value.env, owner: value.owner };
|
1464
1480
|
if ("Object" !== objectName(value))
|
@@ -1494,10 +1510,10 @@
|
|
1494
1510
|
parent[parentPropertyName] instanceof Date
|
1495
1511
|
? "$D" + value
|
1496
1512
|
: 1024 <= value.length && null !== byteLengthOfChunk
|
1497
|
-
|
1498
|
-
|
1499
|
-
|
1500
|
-
|
1513
|
+
? serializeLargeTextString(request, value)
|
1514
|
+
: "$" === value[0]
|
1515
|
+
? "$" + value
|
1516
|
+
: value;
|
1501
1517
|
if ("boolean" === typeof value) return value;
|
1502
1518
|
if ("number" === typeof value) return serializeNumber(value);
|
1503
1519
|
if ("undefined" === typeof value) return "$undefined";
|
@@ -1600,8 +1616,7 @@
|
|
1600
1616
|
: ((request.status = 2), (request.fatalError = error));
|
1601
1617
|
}
|
1602
1618
|
function emitErrorChunk(request, id, digest, error) {
|
1603
|
-
var
|
1604
|
-
env = request.environmentName();
|
1619
|
+
var env = request.environmentName();
|
1605
1620
|
try {
|
1606
1621
|
if (error instanceof Error) {
|
1607
1622
|
var message = String(error.message);
|
@@ -1609,24 +1624,66 @@
|
|
1609
1624
|
var previousPrepare = Error.prepareStackTrace;
|
1610
1625
|
Error.prepareStackTrace = prepareStackTrace;
|
1611
1626
|
try {
|
1612
|
-
stack = String(error.stack);
|
1627
|
+
var stack = String(error.stack);
|
1613
1628
|
break a;
|
1614
1629
|
} finally {
|
1615
1630
|
Error.prepareStackTrace = previousPrepare;
|
1616
1631
|
}
|
1617
1632
|
stack = void 0;
|
1618
1633
|
}
|
1634
|
+
stack.startsWith("Error: react-stack-top-frame\n") &&
|
1635
|
+
(stack = stack.slice(29));
|
1636
|
+
var idx = stack.indexOf("react-stack-bottom-frame");
|
1637
|
+
-1 !== idx && (idx = stack.lastIndexOf("\n", idx));
|
1638
|
+
-1 !== idx && (stack = stack.slice(0, idx));
|
1639
|
+
var frames = stack.split("\n");
|
1640
|
+
stack = [];
|
1641
|
+
for (
|
1642
|
+
previousPrepare = 0;
|
1643
|
+
previousPrepare < frames.length;
|
1644
|
+
previousPrepare++
|
1645
|
+
) {
|
1646
|
+
var parsed = frameRegExp.exec(frames[previousPrepare]);
|
1647
|
+
if (parsed) {
|
1648
|
+
var name = parsed[1] || "";
|
1649
|
+
"<anonymous>" === name && (name = "");
|
1650
|
+
var filename = parsed[2] || parsed[5] || "";
|
1651
|
+
"<anonymous>" === filename && (filename = "");
|
1652
|
+
stack.push([
|
1653
|
+
name,
|
1654
|
+
filename,
|
1655
|
+
+(parsed[3] || parsed[6]),
|
1656
|
+
+(parsed[4] || parsed[7])
|
1657
|
+
]);
|
1658
|
+
}
|
1659
|
+
}
|
1660
|
+
var stack$jscomp$0 = stack.filter(isNotExternal);
|
1661
|
+
for (frames = 0; frames < stack$jscomp$0.length; frames++) {
|
1662
|
+
var callsite = stack$jscomp$0[frames],
|
1663
|
+
url = callsite[1];
|
1664
|
+
if (url.startsWith("rsc://React/")) {
|
1665
|
+
var suffixIdx = url.lastIndexOf("?");
|
1666
|
+
-1 < suffixIdx && (callsite[1] = url.slice(12, suffixIdx));
|
1667
|
+
}
|
1668
|
+
}
|
1669
|
+
var stack$jscomp$1 = stack$jscomp$0;
|
1619
1670
|
var errorEnv = error.environmentName;
|
1620
1671
|
"string" === typeof errorEnv && (env = errorEnv);
|
1621
1672
|
} else
|
1622
|
-
message =
|
1673
|
+
(message =
|
1623
1674
|
"object" === typeof error && null !== error
|
1624
1675
|
? describeObjectForErrorMessage(error)
|
1625
|
-
: String(error)
|
1676
|
+
: String(error)),
|
1677
|
+
(stack$jscomp$1 = []);
|
1626
1678
|
} catch (x) {
|
1627
1679
|
message = "An error occurred but serializing the error message failed.";
|
1628
1680
|
}
|
1629
|
-
digest = {
|
1681
|
+
digest = {
|
1682
|
+
digest: digest,
|
1683
|
+
message: message,
|
1684
|
+
stack: stack$jscomp$1,
|
1685
|
+
env: env
|
1686
|
+
};
|
1630
1687
|
id = id.toString(16) + ":E" + stringify(digest) + "\n";
|
1631
1688
|
id = stringToChunk(id);
|
1632
1689
|
request.completedErrorChunks.push(id);
|
@@ -1727,55 +1784,70 @@
|
|
1727
1784
|
return void 0 !== parent
|
1728
1785
|
? parent
|
1729
1786
|
: isArrayImpl(value)
|
1730
|
-
|
1731
|
-
|
1732
|
-
|
1733
|
-
|
1734
|
-
|
1735
|
-
|
1736
|
-
|
1737
|
-
|
1738
|
-
|
1739
|
-
|
1740
|
-
|
1741
|
-
|
1742
|
-
|
1743
|
-
|
1744
|
-
|
1745
|
-
|
1746
|
-
|
1747
|
-
|
1748
|
-
|
1749
|
-
|
1750
|
-
|
1751
|
-
|
1752
|
-
|
1753
|
-
|
1754
|
-
|
1755
|
-
|
1756
|
-
|
1757
|
-
|
1758
|
-
|
1759
|
-
|
1760
|
-
|
1761
|
-
|
1762
|
-
|
1763
|
-
|
1764
|
-
|
1765
|
-
|
1766
|
-
|
1767
|
-
|
1768
|
-
|
1769
|
-
|
1787
|
+
? value
|
1788
|
+
: value instanceof Map
|
1789
|
+
? ((value = Array.from(value)),
|
1790
|
+
"$Q" +
|
1791
|
+
outlineConsoleValue(request, counter, value).toString(16))
|
1792
|
+
: value instanceof Set
|
1793
|
+
? ((value = Array.from(value)),
|
1794
|
+
"$W" +
|
1795
|
+
outlineConsoleValue(request, counter, value).toString(16))
|
1796
|
+
: "function" === typeof FormData && value instanceof FormData
|
1797
|
+
? serializeFormData(request, value)
|
1798
|
+
: value instanceof ArrayBuffer
|
1799
|
+
? serializeTypedArray(request, "A", new Uint8Array(value))
|
1800
|
+
: value instanceof Int8Array
|
1801
|
+
? serializeTypedArray(request, "O", value)
|
1802
|
+
: value instanceof Uint8Array
|
1803
|
+
? serializeTypedArray(request, "o", value)
|
1804
|
+
: value instanceof Uint8ClampedArray
|
1805
|
+
? serializeTypedArray(request, "U", value)
|
1806
|
+
: value instanceof Int16Array
|
1807
|
+
? serializeTypedArray(request, "S", value)
|
1808
|
+
: value instanceof Uint16Array
|
1809
|
+
? serializeTypedArray(request, "s", value)
|
1810
|
+
: value instanceof Int32Array
|
1811
|
+
? serializeTypedArray(request, "L", value)
|
1812
|
+
: value instanceof Uint32Array
|
1813
|
+
? serializeTypedArray(request, "l", value)
|
1814
|
+
: value instanceof Float32Array
|
1815
|
+
? serializeTypedArray(request, "G", value)
|
1816
|
+
: value instanceof Float64Array
|
1817
|
+
? serializeTypedArray(request, "g", value)
|
1818
|
+
: value instanceof BigInt64Array
|
1819
|
+
? serializeTypedArray(
|
1820
|
+
request,
|
1821
|
+
"M",
|
1822
|
+
value
|
1823
|
+
)
|
1824
|
+
: value instanceof BigUint64Array
|
1825
|
+
? serializeTypedArray(
|
1826
|
+
request,
|
1827
|
+
"m",
|
1828
|
+
value
|
1829
|
+
)
|
1830
|
+
: value instanceof DataView
|
1831
|
+
? serializeTypedArray(
|
1832
|
+
request,
|
1833
|
+
"V",
|
1834
|
+
value
|
1835
|
+
)
|
1836
|
+
: "function" === typeof Blob &&
|
1837
|
+
value instanceof Blob
|
1838
|
+
? serializeBlob(request, value)
|
1839
|
+
: getIteratorFn(value)
|
1840
|
+
? Array.from(value)
|
1841
|
+
: value;
|
1770
1842
|
}
|
1771
1843
|
if ("string" === typeof value)
|
1772
1844
|
return "Z" === value[value.length - 1] && originalValue instanceof Date
|
1773
1845
|
? "$D" + value
|
1774
1846
|
: 1024 <= value.length
|
1775
|
-
|
1776
|
-
|
1777
|
-
|
1778
|
-
|
1847
|
+
? serializeLargeTextString(request, value)
|
1848
|
+
: "$" === value[0]
|
1849
|
+
? "$" + value
|
1850
|
+
: value;
|
1779
1851
|
if ("boolean" === typeof value) return value;
|
1780
1852
|
if ("number" === typeof value) return serializeNumber(value);
|
1781
1853
|
if ("undefined" === typeof value) return "$undefined";
|
@@ -1783,10 +1855,10 @@
|
|
1783
1855
|
return value.$$typeof === CLIENT_REFERENCE_TAG$1
|
1784
1856
|
? serializeClientReference(request, parent, parentPropertyName, value)
|
1785
1857
|
: void 0 !== request.temporaryReferences &&
|
1786
|
-
|
1787
|
-
|
1788
|
-
|
1789
|
-
|
1858
|
+
((request = request.temporaryReferences.get(value)),
|
1859
|
+
void 0 !== request)
|
1860
|
+
? "$T" + request
|
1861
|
+
: "$E(" + (Function.prototype.toString.call(value) + ")");
|
1790
1862
|
if ("symbol" === typeof value) {
|
1791
1863
|
counter = request.writtenSymbols.get(value);
|
1792
1864
|
if (void 0 !== counter) return serializeByValueID(counter);
|
@@ -1833,33 +1905,33 @@
|
|
1833
1905
|
"string" === typeof value && null !== byteLengthOfChunk
|
1834
1906
|
? emitTextChunk(request, id, value)
|
1835
1907
|
: value instanceof ArrayBuffer
|
1836
|
-
|
1837
|
-
|
1838
|
-
|
1839
|
-
|
1840
|
-
|
1841
|
-
|
1842
|
-
|
1843
|
-
|
1844
|
-
|
1845
|
-
|
1846
|
-
|
1847
|
-
|
1848
|
-
|
1849
|
-
|
1850
|
-
|
1851
|
-
|
1852
|
-
|
1853
|
-
|
1854
|
-
|
1855
|
-
|
1856
|
-
|
1857
|
-
|
1858
|
-
|
1859
|
-
|
1860
|
-
|
1861
|
-
|
1862
|
-
|
1908
|
+
? emitTypedArrayChunk(request, id, "A", new Uint8Array(value))
|
1909
|
+
: value instanceof Int8Array
|
1910
|
+
? emitTypedArrayChunk(request, id, "O", value)
|
1911
|
+
: value instanceof Uint8Array
|
1912
|
+
? emitTypedArrayChunk(request, id, "o", value)
|
1913
|
+
: value instanceof Uint8ClampedArray
|
1914
|
+
? emitTypedArrayChunk(request, id, "U", value)
|
1915
|
+
: value instanceof Int16Array
|
1916
|
+
? emitTypedArrayChunk(request, id, "S", value)
|
1917
|
+
: value instanceof Uint16Array
|
1918
|
+
? emitTypedArrayChunk(request, id, "s", value)
|
1919
|
+
: value instanceof Int32Array
|
1920
|
+
? emitTypedArrayChunk(request, id, "L", value)
|
1921
|
+
: value instanceof Uint32Array
|
1922
|
+
? emitTypedArrayChunk(request, id, "l", value)
|
1923
|
+
: value instanceof Float32Array
|
1924
|
+
? emitTypedArrayChunk(request, id, "G", value)
|
1925
|
+
: value instanceof Float64Array
|
1926
|
+
? emitTypedArrayChunk(request, id, "g", value)
|
1927
|
+
: value instanceof BigInt64Array
|
1928
|
+
? emitTypedArrayChunk(request, id, "M", value)
|
1929
|
+
: value instanceof BigUint64Array
|
1930
|
+
? emitTypedArrayChunk(request, id, "m", value)
|
1931
|
+
: value instanceof DataView
|
1932
|
+
? emitTypedArrayChunk(request, id, "V", value)
|
1933
|
+
: ((value = stringify(value, task.toJSON)),
|
1934
|
+
emitModelChunk(request, task.id, value));
|
1863
1935
|
}
|
1864
1936
|
function retryTask(request, task) {
|
1865
1937
|
if (0 === task.status) {
|
@@ -2057,10 +2129,12 @@
|
|
2057
2129
|
"The render was aborted by the server without a reason."
|
2058
2130
|
)
|
2059
2131
|
: "object" === typeof reason &&
|
2060
|
-
|
2061
|
-
|
2062
|
-
|
2063
|
-
|
2132
|
+
null !== reason &&
|
2133
|
+
"function" === typeof reason.then
|
2134
|
+
? Error(
|
2135
|
+
"The render was aborted by the server with a promise."
|
2136
|
+
)
|
2137
|
+
: reason,
|
2064
2138
|
digest = logRecoverableError(request, error, null);
|
2065
2139
|
emitErrorChunk(request, errorId, digest, error);
|
2066
2140
|
abortableTasks.forEach(function (task) {
|
@@ -2079,10 +2153,10 @@
|
|
2079
2153
|
void 0 === reason
|
2080
2154
|
? Error("The render was aborted by the server without a reason.")
|
2081
2155
|
: "object" === typeof reason &&
|
2082
|
-
|
2083
|
-
|
2084
|
-
|
2085
|
-
|
2156
|
+
null !== reason &&
|
2157
|
+
"function" === typeof reason.then
|
2158
|
+
? Error("The render was aborted by the server with a promise.")
|
2159
|
+
: reason;
|
2086
2160
|
abortListeners.forEach(function (callback) {
|
2087
2161
|
return callback(_error);
|
2088
2162
|
});
|
@@ -2154,8 +2228,8 @@
|
|
2154
2228
|
return requireAsyncModule(metadata[0]);
|
2155
2229
|
})
|
2156
2230
|
: 0 < promises.length
|
2157
|
-
|
2158
|
-
|
2231
|
+
? Promise.all(promises)
|
2232
|
+
: null;
|
2159
2233
|
}
|
2160
2234
|
function requireModule(metadata) {
|
2161
2235
|
var moduleExports = __webpack_require__(metadata[0]);
|
@@ -2166,10 +2240,10 @@
|
|
2166
2240
|
return "*" === metadata[2]
|
2167
2241
|
? moduleExports
|
2168
2242
|
: "" === metadata[2]
|
2169
|
-
|
2170
|
-
|
2171
|
-
|
2172
|
-
|
2243
|
+
? moduleExports.__esModule
|
2244
|
+
? moduleExports.default
|
2245
|
+
: moduleExports
|
2246
|
+
: moduleExports[metadata[2]];
|
2173
2247
|
}
|
2174
2248
|
function loadChunk(chunkId, filename) {
|
2175
2249
|
chunkMap.set(chunkId, filename);
|
@@ -2822,10 +2896,10 @@
|
|
2822
2896
|
return fn.bind.apply(fn, [null].concat(_ref));
|
2823
2897
|
})
|
2824
2898
|
: bundlerConfig
|
2825
|
-
|
2826
|
-
|
2827
|
-
|
2828
|
-
|
2899
|
+
? Promise.resolve(bundlerConfig).then(function () {
|
2900
|
+
return requireModule(serverReference);
|
2901
|
+
})
|
2902
|
+
: Promise.resolve(requireModule(serverReference));
|
2829
2903
|
}
|
2830
2904
|
function decodeBoundActionMetaData(body, serverManifest, formFieldPrefix) {
|
2831
2905
|
body = createResponse(serverManifest, formFieldPrefix, void 0, body);
|
@@ -3027,8 +3101,8 @@
|
|
3027
3101
|
options
|
3028
3102
|
])
|
3029
3103
|
: "string" === typeof precedence
|
3030
|
-
|
3031
|
-
|
3104
|
+
? emitHint(request, "S", [href, precedence])
|
3105
|
+
: emitHint(request, "S", href);
|
3032
3106
|
}
|
3033
3107
|
previousDispatcher.S(href, precedence, options);
|
3034
3108
|
}
|
@@ -3049,7 +3123,9 @@
|
|
3049
3123
|
}
|
3050
3124
|
}
|
3051
3125
|
};
|
3052
|
-
var
|
3126
|
+
var frameRegExp =
|
3127
|
+
/^ {3} at (?:(.+) \(([^\)]+):(\d+):(\d+)\)|(?:async )?([^\)]+):(\d+):(\d+))$/,
|
3128
|
+
TEMPORARY_REFERENCE_TAG = Symbol.for("react.temporary.reference"),
|
3053
3129
|
proxyHandlers = {
|
3054
3130
|
get: function (target, name) {
|
3055
3131
|
switch (name) {
|
@@ -3195,11 +3271,43 @@
|
|
3195
3271
|
'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.'
|
3196
3272
|
);
|
3197
3273
|
new ("function" === typeof WeakMap ? WeakMap : Map)();
|
3198
|
-
var
|
3274
|
+
var callComponent = {
|
3275
|
+
"react-stack-bottom-frame": function (
|
3276
|
+
Component,
|
3277
|
+
props,
|
3278
|
+
componentDebugInfo
|
3279
|
+
) {
|
3280
|
+
currentOwner = componentDebugInfo;
|
3281
|
+
try {
|
3282
|
+
return Component(props, void 0);
|
3283
|
+
} finally {
|
3284
|
+
currentOwner = null;
|
3285
|
+
}
|
3286
|
+
}
|
3287
|
+
},
|
3288
|
+
callComponentInDEV =
|
3289
|
+
callComponent["react-stack-bottom-frame"].bind(callComponent),
|
3290
|
+
callLazyInit = {
|
3291
|
+
"react-stack-bottom-frame": function (lazy) {
|
3292
|
+
var init = lazy._init;
|
3293
|
+
return init(lazy._payload);
|
3294
|
+
}
|
3295
|
+
},
|
3296
|
+
callLazyInitInDEV =
|
3297
|
+
callLazyInit["react-stack-bottom-frame"].bind(callLazyInit),
|
3298
|
+
callIterator = {
|
3299
|
+
"react-stack-bottom-frame": function (iterator, progress, error) {
|
3300
|
+
iterator.next().then(progress, error);
|
3301
|
+
}
|
3302
|
+
},
|
3303
|
+
callIteratorInDEV =
|
3304
|
+
callIterator["react-stack-bottom-frame"].bind(callIterator),
|
3305
|
+
isArrayImpl = Array.isArray,
|
3199
3306
|
getPrototypeOf = Object.getPrototypeOf,
|
3200
3307
|
jsxPropsParents = new WeakMap(),
|
3201
3308
|
jsxChildrenParents = new WeakMap(),
|
3202
3309
|
CLIENT_REFERENCE_TAG = Symbol.for("react.client.reference"),
|
3310
|
+
externalRegExp = /\/node_modules\/|^node:|^$/,
|
3203
3311
|
ObjectPrototype = Object.prototype,
|
3204
3312
|
stringify = JSON.stringify,
|
3205
3313
|
AbortSigil = {},
|