react-server-dom-webpack 19.2.0-canary-280ff6fe-20250606 → 19.2.0-canary-56408a5b-20250610
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 +38 -64
- package/cjs/react-server-dom-webpack-client.edge.development.js +36 -62
- package/cjs/react-server-dom-webpack-client.node.development.js +36 -62
- package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +36 -62
- package/cjs/react-server-dom-webpack-server.browser.development.js +132 -92
- package/cjs/react-server-dom-webpack-server.edge.development.js +132 -92
- package/cjs/react-server-dom-webpack-server.node.development.js +298 -118
- package/cjs/react-server-dom-webpack-server.node.production.js +166 -25
- package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +298 -118
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.js +166 -25
- package/package.json +3 -3
- package/server.node.js +3 -1
- package/server.node.unbundled.js +3 -1
- package/static.node.js +3 -0
@@ -846,17 +846,22 @@
|
|
846
846
|
task.debugStack,
|
847
847
|
task.debugTask
|
848
848
|
);
|
849
|
-
(task = thenable._debugInfo) &&
|
850
|
-
forwardDebugInfo(request, newTask.id, task);
|
851
849
|
switch (thenable.status) {
|
852
850
|
case "fulfilled":
|
853
851
|
return (
|
852
|
+
(task = thenable._debugInfo) &&
|
853
|
+
forwardDebugInfo(request, newTask, task),
|
854
854
|
(newTask.model = thenable.value),
|
855
855
|
pingTask(request, newTask),
|
856
856
|
newTask.id
|
857
857
|
);
|
858
858
|
case "rejected":
|
859
|
-
return
|
859
|
+
return (
|
860
|
+
(task = thenable._debugInfo) &&
|
861
|
+
forwardDebugInfo(request, newTask, task),
|
862
|
+
erroredTask(request, newTask, thenable.reason),
|
863
|
+
newTask.id
|
864
|
+
);
|
860
865
|
default:
|
861
866
|
if (request.status === ABORTING)
|
862
867
|
return (
|
@@ -882,10 +887,14 @@
|
|
882
887
|
}
|
883
888
|
thenable.then(
|
884
889
|
function (value) {
|
890
|
+
var _debugInfo2 = thenable._debugInfo;
|
891
|
+
_debugInfo2 && forwardDebugInfo(request, newTask, _debugInfo2);
|
885
892
|
newTask.model = value;
|
886
893
|
pingTask(request, newTask);
|
887
894
|
},
|
888
895
|
function (reason) {
|
896
|
+
var _debugInfo3 = thenable._debugInfo;
|
897
|
+
_debugInfo3 && forwardDebugInfo(request, newTask, _debugInfo3);
|
889
898
|
newTask.status === PENDING$1 &&
|
890
899
|
(erroredTask(request, newTask, reason), enqueueFlush(request));
|
891
900
|
}
|
@@ -1027,7 +1036,7 @@
|
|
1027
1036
|
task = streamTask.id.toString(16) + ":" + (isIterator ? "x" : "X") + "\n";
|
1028
1037
|
request.completedRegularChunks.push(stringToChunk(task));
|
1029
1038
|
(iterable = iterable._debugInfo) &&
|
1030
|
-
forwardDebugInfo(request, streamTask
|
1039
|
+
forwardDebugInfo(request, streamTask, iterable);
|
1031
1040
|
var aborted = !1;
|
1032
1041
|
request.abortListeners.add(abortIterable);
|
1033
1042
|
callIteratorInDEV(iterator, progress, error);
|
@@ -1167,33 +1176,34 @@
|
|
1167
1176
|
) {
|
1168
1177
|
var prevThenableState = task.thenableState;
|
1169
1178
|
task.thenableState = null;
|
1170
|
-
if (
|
1171
|
-
|
1172
|
-
|
1173
|
-
|
1174
|
-
|
1175
|
-
|
1176
|
-
|
1177
|
-
|
1178
|
-
|
1179
|
-
|
1180
|
-
|
1181
|
-
|
1182
|
-
|
1183
|
-
|
1184
|
-
|
1185
|
-
|
1186
|
-
|
1187
|
-
|
1188
|
-
|
1189
|
-
|
1190
|
-
|
1191
|
-
|
1192
|
-
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
1196
|
-
|
1179
|
+
if (canEmitDebugInfo)
|
1180
|
+
if (null !== prevThenableState)
|
1181
|
+
var componentDebugInfo = prevThenableState._componentDebugInfo;
|
1182
|
+
else {
|
1183
|
+
var componentDebugID = task.id;
|
1184
|
+
componentDebugInfo = Component.displayName || Component.name || "";
|
1185
|
+
var componentEnv = (0, request.environmentName)();
|
1186
|
+
request.pendingChunks++;
|
1187
|
+
componentDebugInfo = {
|
1188
|
+
name: componentDebugInfo,
|
1189
|
+
env: componentEnv,
|
1190
|
+
key: key,
|
1191
|
+
owner: task.debugOwner
|
1192
|
+
};
|
1193
|
+
componentDebugInfo.stack =
|
1194
|
+
null === task.debugStack
|
1195
|
+
? null
|
1196
|
+
: filterStackTrace(request, parseStackTrace(task.debugStack, 1));
|
1197
|
+
componentDebugInfo.props = props;
|
1198
|
+
componentDebugInfo.debugStack = task.debugStack;
|
1199
|
+
componentDebugInfo.debugTask = task.debugTask;
|
1200
|
+
outlineComponentInfo(request, componentDebugInfo);
|
1201
|
+
emitDebugChunk(request, componentDebugID, componentDebugInfo);
|
1202
|
+
task.environmentName = componentEnv;
|
1203
|
+
2 === validated &&
|
1204
|
+
warnForMissingKey(request, key, componentDebugInfo, task.debugTask);
|
1205
|
+
}
|
1206
|
+
else return outlineTask(request, task);
|
1197
1207
|
thenableIndexCounter = 0;
|
1198
1208
|
thenableState = prevThenableState;
|
1199
1209
|
currentComponentDebugInfo = componentDebugInfo;
|
@@ -1272,8 +1282,8 @@
|
|
1272
1282
|
task.implicitSlot ? [request] : request
|
1273
1283
|
);
|
1274
1284
|
if ((i = children._debugInfo)) {
|
1275
|
-
if (
|
1276
|
-
|
1285
|
+
if (canEmitDebugInfo) forwardDebugInfo(request, task, i);
|
1286
|
+
else return outlineTask(request, task);
|
1277
1287
|
children = Array.from(children);
|
1278
1288
|
}
|
1279
1289
|
return children;
|
@@ -1805,10 +1815,10 @@
|
|
1805
1815
|
_writtenObjects.set(value, elementReference)));
|
1806
1816
|
}
|
1807
1817
|
if (serializedSize > MAX_ROW_SIZE) return deferTask(request, task);
|
1808
|
-
if ((_existingReference = value._debugInfo))
|
1809
|
-
if (
|
1810
|
-
|
1811
|
-
|
1818
|
+
if ((_existingReference = value._debugInfo))
|
1819
|
+
if (canEmitDebugInfo)
|
1820
|
+
forwardDebugInfo(request, task, _existingReference);
|
1821
|
+
else return outlineTask(request, task);
|
1812
1822
|
_existingReference = value.props;
|
1813
1823
|
var refProp = _existingReference.ref;
|
1814
1824
|
task.debugOwner = value._owner;
|
@@ -1834,10 +1844,10 @@
|
|
1834
1844
|
task.thenableState = null;
|
1835
1845
|
elementReference = callLazyInitInDEV(value);
|
1836
1846
|
if (request.status === ABORTING) throw null;
|
1837
|
-
if ((_writtenObjects = value._debugInfo))
|
1838
|
-
if (
|
1839
|
-
|
1840
|
-
|
1847
|
+
if ((_writtenObjects = value._debugInfo))
|
1848
|
+
if (canEmitDebugInfo)
|
1849
|
+
forwardDebugInfo(request, task, _writtenObjects);
|
1850
|
+
else return outlineTask(request, task);
|
1841
1851
|
return renderModelDestructive(
|
1842
1852
|
request,
|
1843
1853
|
task,
|
@@ -2200,11 +2210,19 @@
|
|
2200
2210
|
objectLimit = { objectLimit: objectLimit };
|
2201
2211
|
var componentDebugInfo = {
|
2202
2212
|
name: componentInfo.name,
|
2203
|
-
|
2204
|
-
key: componentInfo.key,
|
2205
|
-
owner: componentInfo.owner
|
2213
|
+
key: componentInfo.key
|
2206
2214
|
};
|
2207
|
-
|
2215
|
+
null != componentInfo.env &&
|
2216
|
+
(componentDebugInfo.env = componentInfo.env);
|
2217
|
+
null != componentInfo.owner &&
|
2218
|
+
(componentDebugInfo.owner = componentInfo.owner);
|
2219
|
+
null == componentInfo.stack && null != componentInfo.debugStack
|
2220
|
+
? (componentDebugInfo.stack = filterStackTrace(
|
2221
|
+
request,
|
2222
|
+
parseStackTrace(componentInfo.debugStack, 1)
|
2223
|
+
))
|
2224
|
+
: null != componentInfo.stack &&
|
2225
|
+
(componentDebugInfo.stack = componentInfo.stack);
|
2208
2226
|
componentDebugInfo.props = componentInfo.props;
|
2209
2227
|
objectLimit = outlineConsoleValue(
|
2210
2228
|
request,
|
@@ -2522,46 +2540,66 @@
|
|
2522
2540
|
methodName = stringToChunk(":W" + json + "\n");
|
2523
2541
|
request.completedRegularChunks.push(methodName);
|
2524
2542
|
}
|
2525
|
-
function forwardDebugInfo(request$jscomp$0,
|
2526
|
-
|
2527
|
-
|
2528
|
-
|
2529
|
-
|
2530
|
-
|
2531
|
-
|
2532
|
-
|
2533
|
-
emitDebugChunk(request$jscomp$0,
|
2534
|
-
else if (
|
2535
|
-
var ioInfo =
|
2536
|
-
|
2537
|
-
|
2538
|
-
|
2539
|
-
request.
|
2540
|
-
|
2541
|
-
|
2542
|
-
|
2543
|
-
|
2544
|
-
|
2545
|
-
|
2546
|
-
|
2547
|
-
|
2548
|
-
|
2549
|
-
|
2550
|
-
|
2551
|
-
|
2552
|
-
|
2553
|
-
|
2554
|
-
|
2555
|
-
|
2556
|
-
|
2543
|
+
function forwardDebugInfo(request$jscomp$0, task, debugInfo) {
|
2544
|
+
task = task.id;
|
2545
|
+
for (var i = 0; i < debugInfo.length; i++) {
|
2546
|
+
var info = debugInfo[i];
|
2547
|
+
if ("number" !== typeof info.time)
|
2548
|
+
if ("string" === typeof info.name)
|
2549
|
+
outlineComponentInfo(request$jscomp$0, info),
|
2550
|
+
request$jscomp$0.pendingChunks++,
|
2551
|
+
emitDebugChunk(request$jscomp$0, task, info);
|
2552
|
+
else if (info.awaited) {
|
2553
|
+
var ioInfo = info.awaited;
|
2554
|
+
if (!(ioInfo.end <= request$jscomp$0.timeOrigin)) {
|
2555
|
+
var request = request$jscomp$0,
|
2556
|
+
ioInfo$jscomp$0 = ioInfo;
|
2557
|
+
if (!request.writtenObjects.has(ioInfo$jscomp$0)) {
|
2558
|
+
request.pendingChunks++;
|
2559
|
+
var id = request.nextChunkId++,
|
2560
|
+
owner = ioInfo$jscomp$0.owner;
|
2561
|
+
null != owner && outlineComponentInfo(request, owner);
|
2562
|
+
var debugStack =
|
2563
|
+
null == ioInfo$jscomp$0.stack &&
|
2564
|
+
null != ioInfo$jscomp$0.debugStack
|
2565
|
+
? filterStackTrace(
|
2566
|
+
request,
|
2567
|
+
parseStackTrace(ioInfo$jscomp$0.debugStack, 1)
|
2568
|
+
)
|
2569
|
+
: ioInfo$jscomp$0.stack;
|
2570
|
+
emitIOInfoChunk(
|
2571
|
+
request,
|
2572
|
+
id,
|
2573
|
+
ioInfo$jscomp$0.name,
|
2574
|
+
ioInfo$jscomp$0.start,
|
2575
|
+
ioInfo$jscomp$0.end,
|
2576
|
+
ioInfo$jscomp$0.env,
|
2577
|
+
owner,
|
2578
|
+
debugStack
|
2579
|
+
);
|
2580
|
+
request.writtenObjects.set(
|
2581
|
+
ioInfo$jscomp$0,
|
2582
|
+
serializeByValueID(id)
|
2583
|
+
);
|
2584
|
+
}
|
2585
|
+
debugStack =
|
2586
|
+
null == info.stack && null != info.debugStack
|
2587
|
+
? filterStackTrace(
|
2588
|
+
request$jscomp$0,
|
2589
|
+
parseStackTrace(info.debugStack, 1)
|
2590
|
+
)
|
2591
|
+
: info.stack;
|
2592
|
+
ioInfo = { awaited: ioInfo };
|
2593
|
+
null != info.env && (ioInfo.env = info.env);
|
2594
|
+
null != info.owner && (ioInfo.owner = info.owner);
|
2595
|
+
null != debugStack && (ioInfo.stack = debugStack);
|
2596
|
+
request$jscomp$0.pendingChunks++;
|
2597
|
+
emitDebugChunk(request$jscomp$0, task, ioInfo);
|
2557
2598
|
}
|
2558
|
-
|
2559
|
-
|
2560
|
-
|
2561
|
-
|
2562
|
-
stack: debugInfo[i].stack
|
2563
|
-
});
|
2564
|
-
} else emitDebugChunk(request$jscomp$0, id$jscomp$0, debugInfo[i]);
|
2599
|
+
} else
|
2600
|
+
request$jscomp$0.pendingChunks++,
|
2601
|
+
emitDebugChunk(request$jscomp$0, task, info);
|
2602
|
+
}
|
2565
2603
|
}
|
2566
2604
|
function emitChunk(request, task, value) {
|
2567
2605
|
var id = task.id;
|
@@ -2605,12 +2643,12 @@
|
|
2605
2643
|
}
|
2606
2644
|
function retryTask(request, task) {
|
2607
2645
|
if (task.status === PENDING$1) {
|
2608
|
-
var
|
2646
|
+
var prevCanEmitDebugInfo = canEmitDebugInfo;
|
2609
2647
|
task.status = RENDERING;
|
2610
2648
|
var parentSerializedSize = serializedSize;
|
2611
2649
|
try {
|
2612
2650
|
modelRoot = task.model;
|
2613
|
-
|
2651
|
+
canEmitDebugInfo = !0;
|
2614
2652
|
var resolvedModel = renderModelDestructive(
|
2615
2653
|
request,
|
2616
2654
|
task,
|
@@ -2618,7 +2656,7 @@
|
|
2618
2656
|
"",
|
2619
2657
|
task.model
|
2620
2658
|
);
|
2621
|
-
|
2659
|
+
canEmitDebugInfo = !1;
|
2622
2660
|
modelRoot = resolvedModel;
|
2623
2661
|
task.keyPath = null;
|
2624
2662
|
task.implicitSlot = !1;
|
@@ -2662,18 +2700,20 @@
|
|
2662
2700
|
} else erroredTask(request, task, x);
|
2663
2701
|
}
|
2664
2702
|
} finally {
|
2665
|
-
(
|
2703
|
+
(canEmitDebugInfo = prevCanEmitDebugInfo),
|
2704
|
+
(serializedSize = parentSerializedSize);
|
2666
2705
|
}
|
2667
2706
|
}
|
2668
2707
|
}
|
2669
2708
|
function tryStreamTask(request, task) {
|
2670
|
-
var
|
2671
|
-
|
2709
|
+
var prevCanEmitDebugInfo = canEmitDebugInfo;
|
2710
|
+
canEmitDebugInfo = !1;
|
2672
2711
|
var parentSerializedSize = serializedSize;
|
2673
2712
|
try {
|
2674
2713
|
emitChunk(request, task, task.model);
|
2675
2714
|
} finally {
|
2676
|
-
(serializedSize = parentSerializedSize),
|
2715
|
+
(serializedSize = parentSerializedSize),
|
2716
|
+
(canEmitDebugInfo = prevCanEmitDebugInfo);
|
2677
2717
|
}
|
2678
2718
|
}
|
2679
2719
|
function performWork(request) {
|
@@ -4053,7 +4093,7 @@
|
|
4053
4093
|
PRERENDER = 21,
|
4054
4094
|
defaultPostponeHandler = noop,
|
4055
4095
|
currentRequest = null,
|
4056
|
-
|
4096
|
+
canEmitDebugInfo = !1,
|
4057
4097
|
serializedSize = 0,
|
4058
4098
|
MAX_ROW_SIZE = 3200,
|
4059
4099
|
modelRoot = !1,
|