react-server-dom-webpack 19.2.0-canary-d85ec5f5-20250716 → 19.2.0-canary-e9638c33-20250721
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 +276 -153
- package/cjs/react-server-dom-webpack-client.browser.production.js +27 -14
- package/cjs/react-server-dom-webpack-client.edge.development.js +278 -158
- package/cjs/react-server-dom-webpack-client.edge.production.js +27 -14
- package/cjs/react-server-dom-webpack-client.node.development.js +274 -151
- package/cjs/react-server-dom-webpack-client.node.production.js +25 -13
- package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +274 -151
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.js +25 -13
- package/cjs/react-server-dom-webpack-server.browser.development.js +5 -4
- package/cjs/react-server-dom-webpack-server.edge.development.js +5 -4
- package/cjs/react-server-dom-webpack-server.node.development.js +5 -4
- package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +5 -4
- package/package.json +3 -3
@@ -916,7 +916,7 @@
|
|
916
916
|
this.status = status;
|
917
917
|
this.value = value;
|
918
918
|
this.reason = reason;
|
919
|
-
this._debugInfo = null;
|
919
|
+
this._debugInfo = this._debugChunk = null;
|
920
920
|
}
|
921
921
|
function unwrapWeakResponse(weakResponse) {
|
922
922
|
weakResponse = weakResponse.weak.deref();
|
@@ -1045,13 +1045,30 @@
|
|
1045
1045
|
}
|
1046
1046
|
}
|
1047
1047
|
function triggerErrorOnChunk(response, chunk, error) {
|
1048
|
-
"pending" !== chunk.status && "blocked" !== chunk.status
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1048
|
+
if ("pending" !== chunk.status && "blocked" !== chunk.status)
|
1049
|
+
chunk.reason.error(error);
|
1050
|
+
else {
|
1051
|
+
releasePendingChunk(response, chunk);
|
1052
|
+
var listeners = chunk.reason;
|
1053
|
+
if ("pending" === chunk.status && null != chunk._debugChunk) {
|
1054
|
+
var prevHandler = initializingHandler;
|
1055
|
+
initializingHandler = null;
|
1056
|
+
chunk.status = "blocked";
|
1057
|
+
chunk.value = null;
|
1058
|
+
chunk.reason = null;
|
1059
|
+
try {
|
1060
|
+
initializeDebugChunk(response, chunk), (chunk._debugChunk = null);
|
1061
|
+
} finally {
|
1062
|
+
initializingHandler = prevHandler;
|
1063
|
+
}
|
1064
|
+
}
|
1065
|
+
chunk.status = "rejected";
|
1066
|
+
chunk.reason = error;
|
1067
|
+
null !== listeners && rejectChunk(listeners, error);
|
1068
|
+
}
|
1069
|
+
}
|
1070
|
+
function createResolvedModelChunk(response, value) {
|
1071
|
+
return new ReactPromise("resolved_model", value, response);
|
1055
1072
|
}
|
1056
1073
|
function createResolvedIteratorResultChunk(response, value, done) {
|
1057
1074
|
return new ReactPromise(
|
@@ -1092,11 +1109,69 @@
|
|
1092
1109
|
var rejectListeners = chunk.reason;
|
1093
1110
|
chunk.status = "resolved_module";
|
1094
1111
|
chunk.value = value;
|
1112
|
+
chunk._debugInfo = null;
|
1095
1113
|
null !== response &&
|
1096
1114
|
(initializeModuleChunk(chunk),
|
1097
1115
|
wakeChunkIfInitialized(chunk, response, rejectListeners));
|
1098
1116
|
}
|
1099
1117
|
}
|
1118
|
+
function initializeDebugChunk(response, chunk) {
|
1119
|
+
var debugChunk = chunk._debugChunk;
|
1120
|
+
if (null !== debugChunk) {
|
1121
|
+
var debugInfo = chunk._debugInfo || (chunk._debugInfo = []);
|
1122
|
+
try {
|
1123
|
+
if ("resolved_model" === debugChunk.status) {
|
1124
|
+
for (
|
1125
|
+
var idx = debugInfo.length, c = debugChunk._debugChunk;
|
1126
|
+
null !== c;
|
1127
|
+
|
1128
|
+
)
|
1129
|
+
"fulfilled" !== c.status && idx++, (c = c._debugChunk);
|
1130
|
+
initializeModelChunk(debugChunk);
|
1131
|
+
switch (debugChunk.status) {
|
1132
|
+
case "fulfilled":
|
1133
|
+
debugInfo[idx] = initializeDebugInfo(
|
1134
|
+
response,
|
1135
|
+
debugChunk.value
|
1136
|
+
);
|
1137
|
+
break;
|
1138
|
+
case "blocked":
|
1139
|
+
case "pending":
|
1140
|
+
waitForReference(
|
1141
|
+
debugChunk,
|
1142
|
+
debugInfo,
|
1143
|
+
"" + idx,
|
1144
|
+
response,
|
1145
|
+
initializeDebugInfo,
|
1146
|
+
[""]
|
1147
|
+
);
|
1148
|
+
break;
|
1149
|
+
default:
|
1150
|
+
throw debugChunk.reason;
|
1151
|
+
}
|
1152
|
+
} else
|
1153
|
+
switch (debugChunk.status) {
|
1154
|
+
case "fulfilled":
|
1155
|
+
break;
|
1156
|
+
case "blocked":
|
1157
|
+
case "pending":
|
1158
|
+
waitForReference(
|
1159
|
+
debugChunk,
|
1160
|
+
{},
|
1161
|
+
"",
|
1162
|
+
response,
|
1163
|
+
initializeDebugInfo,
|
1164
|
+
[""]
|
1165
|
+
);
|
1166
|
+
break;
|
1167
|
+
default:
|
1168
|
+
throw debugChunk.reason;
|
1169
|
+
}
|
1170
|
+
} catch (error) {
|
1171
|
+
triggerErrorOnChunk(response, chunk, error);
|
1172
|
+
}
|
1173
|
+
}
|
1174
|
+
}
|
1100
1175
|
function initializeModelChunk(chunk) {
|
1101
1176
|
var prevHandler = initializingHandler;
|
1102
1177
|
initializingHandler = null;
|
@@ -1105,6 +1180,8 @@
|
|
1105
1180
|
chunk.status = "blocked";
|
1106
1181
|
chunk.value = null;
|
1107
1182
|
chunk.reason = null;
|
1183
|
+
initializeDebugChunk(response, chunk);
|
1184
|
+
chunk._debugChunk = null;
|
1108
1185
|
try {
|
1109
1186
|
var value = JSON.parse(resolvedModel, response._fromJSON),
|
1110
1187
|
resolveListeners = chunk.value;
|
@@ -1113,7 +1190,7 @@
|
|
1113
1190
|
(chunk.reason = null),
|
1114
1191
|
wakeChunk(resolveListeners, value));
|
1115
1192
|
if (null !== initializingHandler) {
|
1116
|
-
if (initializingHandler.errored) throw initializingHandler.
|
1193
|
+
if (initializingHandler.errored) throw initializingHandler.reason;
|
1117
1194
|
if (0 < initializingHandler.deps) {
|
1118
1195
|
initializingHandler.value = value;
|
1119
1196
|
initializingHandler.chunk = chunk;
|
@@ -1307,6 +1384,7 @@
|
|
1307
1384
|
((parentObject = key.value),
|
1308
1385
|
(key.status = "fulfilled"),
|
1309
1386
|
(key.value = handler.value),
|
1387
|
+
(key.reason = handler.reason),
|
1310
1388
|
null !== parentObject && wakeChunk(parentObject, handler.value)));
|
1311
1389
|
}
|
1312
1390
|
function rejectReference(reference, error) {
|
@@ -1315,7 +1393,8 @@
|
|
1315
1393
|
if (!handler.errored) {
|
1316
1394
|
var blockedValue = handler.value;
|
1317
1395
|
handler.errored = !0;
|
1318
|
-
handler.value =
|
1396
|
+
handler.value = null;
|
1397
|
+
handler.reason = error;
|
1319
1398
|
handler = handler.chunk;
|
1320
1399
|
if (null !== handler && "blocked" === handler.status) {
|
1321
1400
|
if (
|
@@ -1361,6 +1440,7 @@
|
|
1361
1440
|
parent: null,
|
1362
1441
|
chunk: null,
|
1363
1442
|
value: null,
|
1443
|
+
reason: null,
|
1364
1444
|
deps: 1,
|
1365
1445
|
errored: !1
|
1366
1446
|
};
|
@@ -1410,6 +1490,7 @@
|
|
1410
1490
|
parent: null,
|
1411
1491
|
chunk: null,
|
1412
1492
|
value: null,
|
1493
|
+
reason: null,
|
1413
1494
|
deps: 1,
|
1414
1495
|
errored: !1
|
1415
1496
|
};
|
@@ -1457,7 +1538,8 @@
|
|
1457
1538
|
if (!handler.errored) {
|
1458
1539
|
var blockedValue = handler.value;
|
1459
1540
|
handler.errored = !0;
|
1460
|
-
handler.value =
|
1541
|
+
handler.value = null;
|
1542
|
+
handler.reason = error;
|
1461
1543
|
var chunk = handler.chunk;
|
1462
1544
|
if (null !== chunk && "blocked" === chunk.status) {
|
1463
1545
|
if (
|
@@ -1528,6 +1610,7 @@
|
|
1528
1610
|
parent: null,
|
1529
1611
|
chunk: null,
|
1530
1612
|
value: null,
|
1613
|
+
reason: null,
|
1531
1614
|
deps: 1,
|
1532
1615
|
errored: !1
|
1533
1616
|
}),
|
@@ -1537,11 +1620,13 @@
|
|
1537
1620
|
return (
|
1538
1621
|
initializingHandler
|
1539
1622
|
? ((initializingHandler.errored = !0),
|
1540
|
-
(initializingHandler.value =
|
1623
|
+
(initializingHandler.value = null),
|
1624
|
+
(initializingHandler.reason = value.reason))
|
1541
1625
|
: (initializingHandler = {
|
1542
1626
|
parent: null,
|
1543
1627
|
chunk: null,
|
1544
|
-
value:
|
1628
|
+
value: null,
|
1629
|
+
reason: value.reason,
|
1545
1630
|
deps: 0,
|
1546
1631
|
errored: !0
|
1547
1632
|
}),
|
@@ -1584,6 +1669,7 @@
|
|
1584
1669
|
parent: null,
|
1585
1670
|
chunk: null,
|
1586
1671
|
value: null,
|
1672
|
+
reason: null,
|
1587
1673
|
deps: 1,
|
1588
1674
|
errored: !1
|
1589
1675
|
}),
|
@@ -1593,11 +1679,13 @@
|
|
1593
1679
|
return (
|
1594
1680
|
initializingHandler
|
1595
1681
|
? ((initializingHandler.errored = !0),
|
1596
|
-
(initializingHandler.value =
|
1682
|
+
(initializingHandler.value = null),
|
1683
|
+
(initializingHandler.reason = id.reason))
|
1597
1684
|
: (initializingHandler = {
|
1598
1685
|
parent: null,
|
1599
1686
|
chunk: null,
|
1600
|
-
value:
|
1687
|
+
value: null,
|
1688
|
+
reason: id.reason,
|
1601
1689
|
deps: 0,
|
1602
1690
|
errored: !0
|
1603
1691
|
}),
|
@@ -1656,6 +1744,7 @@
|
|
1656
1744
|
parent: initializingHandler,
|
1657
1745
|
chunk: null,
|
1658
1746
|
value: null,
|
1747
|
+
reason: null,
|
1659
1748
|
deps: 0,
|
1660
1749
|
errored: !1
|
1661
1750
|
}),
|
@@ -1879,6 +1968,7 @@
|
|
1879
1968
|
));
|
1880
1969
|
this._debugFindSourceMapURL = findSourceMapURL;
|
1881
1970
|
this._debugChannel = debugChannel;
|
1971
|
+
this._blockedConsole = null;
|
1882
1972
|
this._replayConsole = replayConsole;
|
1883
1973
|
this._rootEnvironmentName = environmentName;
|
1884
1974
|
debugChannel &&
|
@@ -1896,32 +1986,6 @@
|
|
1896
1986
|
_buffer: []
|
1897
1987
|
};
|
1898
1988
|
}
|
1899
|
-
function resolveDebugHalt(response, id) {
|
1900
|
-
var chunks = response._chunks,
|
1901
|
-
chunk = chunks.get(id);
|
1902
|
-
chunk || chunks.set(id, (chunk = createPendingChunk(response)));
|
1903
|
-
if ("pending" === chunk.status || "blocked" === chunk.status)
|
1904
|
-
releasePendingChunk(response, chunk),
|
1905
|
-
(response = chunk),
|
1906
|
-
(response.status = "halted"),
|
1907
|
-
(response.value = null),
|
1908
|
-
(response.reason = null);
|
1909
|
-
}
|
1910
|
-
function resolveModel(response, id, model) {
|
1911
|
-
var chunks = response._chunks,
|
1912
|
-
chunk = chunks.get(id);
|
1913
|
-
chunk
|
1914
|
-
? resolveModelChunk(response, chunk, model)
|
1915
|
-
: chunks.set(id, new ReactPromise("resolved_model", model, response));
|
1916
|
-
}
|
1917
|
-
function resolveText(response, id, text) {
|
1918
|
-
var chunks = response._chunks,
|
1919
|
-
chunk = chunks.get(id);
|
1920
|
-
chunk && "pending" !== chunk.status
|
1921
|
-
? chunk.reason.enqueueValue(text)
|
1922
|
-
: (chunk && releasePendingChunk(response, chunk),
|
1923
|
-
chunks.set(id, new ReactPromise("fulfilled", text, null)));
|
1924
|
-
}
|
1925
1989
|
function resolveBuffer(response, id, buffer) {
|
1926
1990
|
var chunks = response._chunks,
|
1927
1991
|
chunk = chunks.get(id);
|
@@ -1965,15 +2029,39 @@
|
|
1965
2029
|
function resolveStream(response, id, stream, controller) {
|
1966
2030
|
var chunks = response._chunks,
|
1967
2031
|
chunk = chunks.get(id);
|
1968
|
-
chunk
|
1969
|
-
|
1970
|
-
|
1971
|
-
|
1972
|
-
|
1973
|
-
|
1974
|
-
|
1975
|
-
|
1976
|
-
|
2032
|
+
if (!chunk)
|
2033
|
+
chunks.set(id, new ReactPromise("fulfilled", stream, controller));
|
2034
|
+
else if ("pending" === chunk.status) {
|
2035
|
+
releasePendingChunk(response, chunk);
|
2036
|
+
id = chunk.value;
|
2037
|
+
if (null != chunk._debugChunk) {
|
2038
|
+
chunks = initializingHandler;
|
2039
|
+
initializingHandler = null;
|
2040
|
+
chunk.status = "blocked";
|
2041
|
+
chunk.value = null;
|
2042
|
+
chunk.reason = null;
|
2043
|
+
try {
|
2044
|
+
if (
|
2045
|
+
(initializeDebugChunk(response, chunk),
|
2046
|
+
(chunk._debugChunk = null),
|
2047
|
+
null !== initializingHandler &&
|
2048
|
+
!initializingHandler.errored &&
|
2049
|
+
0 < initializingHandler.deps)
|
2050
|
+
) {
|
2051
|
+
initializingHandler.value = stream;
|
2052
|
+
initializingHandler.reason = controller;
|
2053
|
+
initializingHandler.chunk = chunk;
|
2054
|
+
return;
|
2055
|
+
}
|
2056
|
+
} finally {
|
2057
|
+
initializingHandler = chunks;
|
2058
|
+
}
|
2059
|
+
}
|
2060
|
+
chunk.status = "fulfilled";
|
2061
|
+
chunk.value = stream;
|
2062
|
+
chunk.reason = controller;
|
2063
|
+
null !== id && wakeChunk(id, chunk.value);
|
2064
|
+
}
|
1977
2065
|
}
|
1978
2066
|
function startReadableStream(response, id, type) {
|
1979
2067
|
var controller = null;
|
@@ -1994,7 +2082,7 @@
|
|
1994
2082
|
},
|
1995
2083
|
enqueueModel: function (json) {
|
1996
2084
|
if (null === previousBlockedChunk) {
|
1997
|
-
var chunk =
|
2085
|
+
var chunk = createResolvedModelChunk(response, json);
|
1998
2086
|
initializeModelChunk(chunk);
|
1999
2087
|
"fulfilled" === chunk.status
|
2000
2088
|
? controller.enqueue(chunk.value)
|
@@ -2156,11 +2244,6 @@
|
|
2156
2244
|
}
|
2157
2245
|
);
|
2158
2246
|
}
|
2159
|
-
function stopStream(response, id, row) {
|
2160
|
-
(response = response._chunks.get(id)) &&
|
2161
|
-
"fulfilled" === response.status &&
|
2162
|
-
response.reason.close("" === row ? '"$undefined"' : row);
|
2163
|
-
}
|
2164
2247
|
function resolveErrorDev(response, errorInfo) {
|
2165
2248
|
var name = errorInfo.name,
|
2166
2249
|
env = errorInfo.env;
|
@@ -2181,50 +2264,6 @@
|
|
2181
2264
|
response.environmentName = env;
|
2182
2265
|
return response;
|
2183
2266
|
}
|
2184
|
-
function resolveHint(response, code, model) {
|
2185
|
-
response = JSON.parse(model, response._fromJSON);
|
2186
|
-
model = ReactDOMSharedInternals.d;
|
2187
|
-
switch (code) {
|
2188
|
-
case "D":
|
2189
|
-
model.D(response);
|
2190
|
-
break;
|
2191
|
-
case "C":
|
2192
|
-
"string" === typeof response
|
2193
|
-
? model.C(response)
|
2194
|
-
: model.C(response[0], response[1]);
|
2195
|
-
break;
|
2196
|
-
case "L":
|
2197
|
-
code = response[0];
|
2198
|
-
var as = response[1];
|
2199
|
-
3 === response.length
|
2200
|
-
? model.L(code, as, response[2])
|
2201
|
-
: model.L(code, as);
|
2202
|
-
break;
|
2203
|
-
case "m":
|
2204
|
-
"string" === typeof response
|
2205
|
-
? model.m(response)
|
2206
|
-
: model.m(response[0], response[1]);
|
2207
|
-
break;
|
2208
|
-
case "X":
|
2209
|
-
"string" === typeof response
|
2210
|
-
? model.X(response)
|
2211
|
-
: model.X(response[0], response[1]);
|
2212
|
-
break;
|
2213
|
-
case "S":
|
2214
|
-
"string" === typeof response
|
2215
|
-
? model.S(response)
|
2216
|
-
: model.S(
|
2217
|
-
response[0],
|
2218
|
-
0 === response[1] ? void 0 : response[1],
|
2219
|
-
3 === response.length ? response[2] : void 0
|
2220
|
-
);
|
2221
|
-
break;
|
2222
|
-
case "M":
|
2223
|
-
"string" === typeof response
|
2224
|
-
? model.M(response)
|
2225
|
-
: model.M(response[0], response[1]);
|
2226
|
-
}
|
2227
|
-
}
|
2228
2267
|
function createFakeFunction(
|
2229
2268
|
name,
|
2230
2269
|
filename,
|
@@ -2436,7 +2475,7 @@
|
|
2436
2475
|
(owner.debugLocation = debugInfo.debugStack));
|
2437
2476
|
}
|
2438
2477
|
}
|
2439
|
-
function
|
2478
|
+
function initializeDebugInfo(response, debugInfo) {
|
2440
2479
|
void 0 !== debugInfo.stack && initializeFakeTask(response, debugInfo);
|
2441
2480
|
null == debugInfo.owner && null != response._debugRootOwner
|
2442
2481
|
? ((debugInfo.owner = response._debugRootOwner),
|
@@ -2445,8 +2484,7 @@
|
|
2445
2484
|
(debugInfo.debugTask = response._debugRootTask))
|
2446
2485
|
: void 0 !== debugInfo.stack &&
|
2447
2486
|
initializeFakeStack(response, debugInfo);
|
2448
|
-
|
2449
|
-
(response._debugInfo || (response._debugInfo = [])).push(debugInfo);
|
2487
|
+
return debugInfo;
|
2450
2488
|
}
|
2451
2489
|
function getCurrentStackInDEV() {
|
2452
2490
|
var owner = currentOwnerInDEV;
|
@@ -2503,22 +2541,37 @@
|
|
2503
2541
|
}
|
2504
2542
|
return JSCompiler_inline_result$jscomp$0;
|
2505
2543
|
}
|
2506
|
-
function resolveConsoleEntry(response,
|
2544
|
+
function resolveConsoleEntry(response, json) {
|
2507
2545
|
if (response._replayConsole) {
|
2508
|
-
var
|
2509
|
-
|
2510
|
-
|
2511
|
-
|
2512
|
-
|
2513
|
-
|
2514
|
-
|
2515
|
-
|
2516
|
-
|
2517
|
-
|
2518
|
-
|
2519
|
-
|
2520
|
-
|
2521
|
-
|
2546
|
+
var blockedChunk = response._blockedConsole;
|
2547
|
+
if (null == blockedChunk)
|
2548
|
+
(blockedChunk = createResolvedModelChunk(response, json)),
|
2549
|
+
initializeModelChunk(blockedChunk),
|
2550
|
+
"fulfilled" === blockedChunk.status
|
2551
|
+
? replayConsoleWithCallStackInDEV(response, blockedChunk.value)
|
2552
|
+
: (blockedChunk.then(
|
2553
|
+
function (v) {
|
2554
|
+
return replayConsoleWithCallStackInDEV(response, v);
|
2555
|
+
},
|
2556
|
+
function () {}
|
2557
|
+
),
|
2558
|
+
(response._blockedConsole = blockedChunk));
|
2559
|
+
else {
|
2560
|
+
var _chunk4 = createPendingChunk(response);
|
2561
|
+
_chunk4.then(
|
2562
|
+
function (v) {
|
2563
|
+
return replayConsoleWithCallStackInDEV(response, v);
|
2564
|
+
},
|
2565
|
+
function () {}
|
2566
|
+
);
|
2567
|
+
response._blockedConsole = _chunk4;
|
2568
|
+
var unblock = function () {
|
2569
|
+
response._blockedConsole === _chunk4 &&
|
2570
|
+
(response._blockedConsole = null);
|
2571
|
+
resolveModelChunk(response, _chunk4, json);
|
2572
|
+
};
|
2573
|
+
blockedChunk.then(unblock, unblock);
|
2574
|
+
}
|
2522
2575
|
}
|
2523
2576
|
}
|
2524
2577
|
function mergeBuffer(buffer, lastChunk) {
|
@@ -2618,33 +2671,89 @@
|
|
2618
2671
|
resolveModule(response, id, row);
|
2619
2672
|
break;
|
2620
2673
|
case 72:
|
2621
|
-
|
2674
|
+
id = row[0];
|
2675
|
+
row = row.slice(1);
|
2676
|
+
response = JSON.parse(row, response._fromJSON);
|
2677
|
+
row = ReactDOMSharedInternals.d;
|
2678
|
+
switch (id) {
|
2679
|
+
case "D":
|
2680
|
+
row.D(response);
|
2681
|
+
break;
|
2682
|
+
case "C":
|
2683
|
+
"string" === typeof response
|
2684
|
+
? row.C(response)
|
2685
|
+
: row.C(response[0], response[1]);
|
2686
|
+
break;
|
2687
|
+
case "L":
|
2688
|
+
id = response[0];
|
2689
|
+
tag = response[1];
|
2690
|
+
3 === response.length
|
2691
|
+
? row.L(id, tag, response[2])
|
2692
|
+
: row.L(id, tag);
|
2693
|
+
break;
|
2694
|
+
case "m":
|
2695
|
+
"string" === typeof response
|
2696
|
+
? row.m(response)
|
2697
|
+
: row.m(response[0], response[1]);
|
2698
|
+
break;
|
2699
|
+
case "X":
|
2700
|
+
"string" === typeof response
|
2701
|
+
? row.X(response)
|
2702
|
+
: row.X(response[0], response[1]);
|
2703
|
+
break;
|
2704
|
+
case "S":
|
2705
|
+
"string" === typeof response
|
2706
|
+
? row.S(response)
|
2707
|
+
: row.S(
|
2708
|
+
response[0],
|
2709
|
+
0 === response[1] ? void 0 : response[1],
|
2710
|
+
3 === response.length ? response[2] : void 0
|
2711
|
+
);
|
2712
|
+
break;
|
2713
|
+
case "M":
|
2714
|
+
"string" === typeof response
|
2715
|
+
? row.M(response)
|
2716
|
+
: row.M(response[0], response[1]);
|
2717
|
+
}
|
2622
2718
|
break;
|
2623
2719
|
case 69:
|
2720
|
+
tag = response._chunks;
|
2721
|
+
var chunk = tag.get(id);
|
2624
2722
|
row = JSON.parse(row);
|
2625
|
-
|
2626
|
-
|
2627
|
-
row = response._chunks;
|
2628
|
-
var chunk = row.get(id);
|
2723
|
+
var error = resolveErrorDev(response, row);
|
2724
|
+
error.digest = row.digest;
|
2629
2725
|
chunk
|
2630
|
-
? triggerErrorOnChunk(response, chunk,
|
2631
|
-
:
|
2726
|
+
? triggerErrorOnChunk(response, chunk, error)
|
2727
|
+
: tag.set(id, new ReactPromise("rejected", null, error));
|
2632
2728
|
break;
|
2633
2729
|
case 84:
|
2634
|
-
|
2730
|
+
tag = response._chunks;
|
2731
|
+
(chunk = tag.get(id)) && "pending" !== chunk.status
|
2732
|
+
? chunk.reason.enqueueValue(row)
|
2733
|
+
: (chunk && releasePendingChunk(response, chunk),
|
2734
|
+
tag.set(id, new ReactPromise("fulfilled", row, null)));
|
2635
2735
|
break;
|
2636
2736
|
case 78:
|
2637
2737
|
case 68:
|
2638
|
-
|
2639
|
-
|
2640
|
-
|
2641
|
-
|
2642
|
-
|
2643
|
-
|
2644
|
-
|
2645
|
-
|
2646
|
-
|
2647
|
-
|
2738
|
+
id = getChunk(response, id);
|
2739
|
+
"fulfilled" !== id.status &&
|
2740
|
+
"rejected" !== id.status &&
|
2741
|
+
"halted" !== id.status &&
|
2742
|
+
"blocked" !== id.status &&
|
2743
|
+
"resolved_module" !== id.status &&
|
2744
|
+
((tag = id._debugChunk),
|
2745
|
+
(chunk = createResolvedModelChunk(response, row)),
|
2746
|
+
(chunk._debugChunk = tag),
|
2747
|
+
(id._debugChunk = chunk),
|
2748
|
+
initializeDebugChunk(response, id),
|
2749
|
+
"blocked" === chunk.status &&
|
2750
|
+
void 0 === response._debugChannel &&
|
2751
|
+
'"' === row[0] &&
|
2752
|
+
"$" === row[1] &&
|
2753
|
+
((row = row.slice(2, row.length - 1).split(":")),
|
2754
|
+
(row = parseInt(row[0], 16)),
|
2755
|
+
"pending" === getChunk(response, row).status &&
|
2756
|
+
(id._debugChunk = null)));
|
2648
2757
|
break;
|
2649
2758
|
case 74:
|
2650
2759
|
case 87:
|
@@ -2663,12 +2772,28 @@
|
|
2663
2772
|
startAsyncIterable(response, id, !0);
|
2664
2773
|
break;
|
2665
2774
|
case 67:
|
2666
|
-
|
2775
|
+
(response = response._chunks.get(id)) &&
|
2776
|
+
"fulfilled" === response.status &&
|
2777
|
+
response.reason.close("" === row ? '"$undefined"' : row);
|
2667
2778
|
break;
|
2668
2779
|
default:
|
2669
|
-
"" === row
|
2670
|
-
|
2671
|
-
|
2780
|
+
if ("" === row) {
|
2781
|
+
if (
|
2782
|
+
((row = response._chunks),
|
2783
|
+
(tag = row.get(id)) ||
|
2784
|
+
row.set(id, (tag = createPendingChunk(response))),
|
2785
|
+
"pending" === tag.status || "blocked" === tag.status)
|
2786
|
+
)
|
2787
|
+
releasePendingChunk(response, tag),
|
2788
|
+
(response = tag),
|
2789
|
+
(response.status = "halted"),
|
2790
|
+
(response.value = null),
|
2791
|
+
(response.reason = null);
|
2792
|
+
} else
|
2793
|
+
(tag = response._chunks),
|
2794
|
+
(chunk = tag.get(id))
|
2795
|
+
? resolveModelChunk(response, chunk, row)
|
2796
|
+
: tag.set(id, createResolvedModelChunk(response, row));
|
2672
2797
|
}
|
2673
2798
|
}
|
2674
2799
|
function processBinaryChunk(weakResponse, streamState, chunk) {
|
@@ -2811,7 +2936,7 @@
|
|
2811
2936
|
validated = initializingHandler;
|
2812
2937
|
initializingHandler = validated.parent;
|
2813
2938
|
if (validated.errored) {
|
2814
|
-
key = new ReactPromise("rejected", null, validated.
|
2939
|
+
key = new ReactPromise("rejected", null, validated.reason);
|
2815
2940
|
initializeElement(response, value);
|
2816
2941
|
validated = {
|
2817
2942
|
name: getComponentNameFromType(value.type) || "",
|
@@ -3115,14 +3240,12 @@
|
|
3115
3240
|
),
|
3116
3241
|
currentOwnerInDEV = null,
|
3117
3242
|
replayConsoleWithCallStack = {
|
3118
|
-
react_stack_bottom_frame: function (
|
3119
|
-
|
3120
|
-
|
3121
|
-
|
3122
|
-
|
3123
|
-
|
3124
|
-
args
|
3125
|
-
) {
|
3243
|
+
react_stack_bottom_frame: function (response, payload) {
|
3244
|
+
var methodName = payload[0],
|
3245
|
+
stackTrace = payload[1],
|
3246
|
+
owner = payload[2],
|
3247
|
+
env = payload[3];
|
3248
|
+
payload = payload.slice(4);
|
3126
3249
|
var prevStack = ReactSharedInternals.getCurrentStack;
|
3127
3250
|
ReactSharedInternals.getCurrentStack = getCurrentStackInDEV;
|
3128
3251
|
currentOwnerInDEV = null === owner ? response._debugRootOwner : owner;
|
@@ -3136,13 +3259,13 @@
|
|
3136
3259
|
case "table":
|
3137
3260
|
var JSCompiler_inline_result = bind.apply(
|
3138
3261
|
console[methodName],
|
3139
|
-
[console].concat(
|
3262
|
+
[console].concat(payload)
|
3140
3263
|
);
|
3141
3264
|
break a;
|
3142
3265
|
case "assert":
|
3143
3266
|
offset = 1;
|
3144
3267
|
}
|
3145
|
-
var newArgs =
|
3268
|
+
var newArgs = payload.slice(0);
|
3146
3269
|
"string" === typeof newArgs[offset]
|
3147
3270
|
? newArgs.splice(
|
3148
3271
|
offset,
|
@@ -3205,10 +3328,10 @@
|
|
3205
3328
|
return hook.checkDCE ? !0 : !1;
|
3206
3329
|
})({
|
3207
3330
|
bundleType: 1,
|
3208
|
-
version: "19.2.0-canary-
|
3331
|
+
version: "19.2.0-canary-e9638c33-20250721",
|
3209
3332
|
rendererPackageName: "react-server-dom-webpack",
|
3210
3333
|
currentDispatcherRef: ReactSharedInternals,
|
3211
|
-
reconcilerVersion: "19.2.0-canary-
|
3334
|
+
reconcilerVersion: "19.2.0-canary-e9638c33-20250721",
|
3212
3335
|
getCurrentComponentInfo: function () {
|
3213
3336
|
return currentOwnerInDEV;
|
3214
3337
|
}
|