react-server-dom-webpack 19.2.0-canary-a7a11657-20250708 → 19.2.0-canary-60b5271a-20250709
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 +9 -2
- package/cjs/react-server-dom-webpack-client.edge.development.js +7 -0
- package/cjs/react-server-dom-webpack-client.node.development.js +7 -0
- package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +7 -0
- package/cjs/react-server-dom-webpack-server.browser.development.js +148 -75
- package/cjs/react-server-dom-webpack-server.browser.production.js +12 -12
- package/cjs/react-server-dom-webpack-server.edge.development.js +148 -75
- package/cjs/react-server-dom-webpack-server.edge.production.js +12 -12
- package/cjs/react-server-dom-webpack-server.node.development.js +148 -77
- package/cjs/react-server-dom-webpack-server.node.production.js +15 -15
- package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +148 -77
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.js +15 -15
- package/package.json +3 -3
@@ -230,72 +230,77 @@
|
|
230
230
|
((hasProperties = !0), (trimmed[key] = options[key]));
|
231
231
|
return hasProperties ? trimmed : null;
|
232
232
|
}
|
233
|
-
function
|
234
|
-
|
235
|
-
|
236
|
-
i < structuredStackTrace.length;
|
237
|
-
i++
|
238
|
-
) {
|
233
|
+
function collectStackTracePrivate(error, structuredStackTrace) {
|
234
|
+
error = [];
|
235
|
+
for (var i = framesToSkip; i < structuredStackTrace.length; i++) {
|
239
236
|
var callSite = structuredStackTrace[i],
|
240
|
-
|
241
|
-
if (
|
242
|
-
else if (callSite.isNative())
|
237
|
+
name = callSite.getFunctionName() || "<anonymous>";
|
238
|
+
if (name.includes("react_stack_bottom_frame")) break;
|
239
|
+
else if (callSite.isNative())
|
240
|
+
(callSite = callSite.isAsync()),
|
241
|
+
error.push([name, "", 0, 0, 0, 0, callSite]);
|
243
242
|
else {
|
244
|
-
if (callSite.isConstructor())
|
243
|
+
if (callSite.isConstructor()) name = "new " + name;
|
245
244
|
else if (!callSite.isToplevel()) {
|
246
245
|
var callSite$jscomp$0 = callSite;
|
247
|
-
|
246
|
+
name = callSite$jscomp$0.getTypeName();
|
248
247
|
var methodName = callSite$jscomp$0.getMethodName();
|
249
248
|
callSite$jscomp$0 = callSite$jscomp$0.getFunctionName();
|
250
|
-
var result
|
249
|
+
var result = "";
|
251
250
|
callSite$jscomp$0
|
252
|
-
? (
|
251
|
+
? (name &&
|
253
252
|
identifierRegExp.test(callSite$jscomp$0) &&
|
254
|
-
callSite$jscomp$0 !==
|
255
|
-
(result
|
256
|
-
(result
|
253
|
+
callSite$jscomp$0 !== name &&
|
254
|
+
(result += name + "."),
|
255
|
+
(result += callSite$jscomp$0),
|
257
256
|
!methodName ||
|
258
257
|
callSite$jscomp$0 === methodName ||
|
259
258
|
callSite$jscomp$0.endsWith("." + methodName) ||
|
260
259
|
callSite$jscomp$0.endsWith(" " + methodName) ||
|
261
|
-
(result
|
262
|
-
: (
|
263
|
-
(result
|
264
|
-
? result
|
265
|
-
: result
|
266
|
-
|
260
|
+
(result += " [as " + methodName + "]"))
|
261
|
+
: (name && (result += name + "."),
|
262
|
+
(result = methodName
|
263
|
+
? result + methodName
|
264
|
+
: result + "<anonymous>"));
|
265
|
+
name = result;
|
267
266
|
}
|
268
|
-
"<anonymous>" ===
|
267
|
+
"<anonymous>" === name && (name = "");
|
269
268
|
methodName = callSite.getScriptNameOrSourceURL() || "<anonymous>";
|
270
|
-
"<anonymous>" === methodName &&
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
269
|
+
"<anonymous>" === methodName &&
|
270
|
+
((methodName = ""),
|
271
|
+
callSite.isEval() &&
|
272
|
+
(callSite$jscomp$0 = callSite.getEvalOrigin()) &&
|
273
|
+
(methodName = callSite$jscomp$0.toString() + ", <anonymous>"));
|
275
274
|
callSite$jscomp$0 = callSite.getLineNumber() || 0;
|
276
|
-
result
|
275
|
+
result = callSite.getColumnNumber() || 0;
|
277
276
|
var enclosingLine =
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
277
|
+
"function" === typeof callSite.getEnclosingLineNumber
|
278
|
+
? callSite.getEnclosingLineNumber() || 0
|
279
|
+
: 0,
|
280
|
+
enclosingCol =
|
281
|
+
"function" === typeof callSite.getEnclosingColumnNumber
|
282
|
+
? callSite.getEnclosingColumnNumber() || 0
|
283
|
+
: 0;
|
284
|
+
callSite = callSite.isAsync();
|
285
|
+
error.push([
|
286
|
+
name,
|
287
287
|
methodName,
|
288
288
|
callSite$jscomp$0,
|
289
|
-
result
|
289
|
+
result,
|
290
290
|
enclosingLine,
|
291
|
+
enclosingCol,
|
291
292
|
callSite
|
292
293
|
]);
|
293
294
|
}
|
294
295
|
}
|
296
|
+
collectedStackTrace = error;
|
297
|
+
return "";
|
298
|
+
}
|
299
|
+
function collectStackTrace(error, structuredStackTrace) {
|
300
|
+
collectStackTracePrivate(error, structuredStackTrace);
|
295
301
|
error = (error.name || "Error") + ": " + (error.message || "");
|
296
|
-
for (i = 0; i < structuredStackTrace.length; i++)
|
302
|
+
for (var i = 0; i < structuredStackTrace.length; i++)
|
297
303
|
error += "\n at " + structuredStackTrace[i].toString();
|
298
|
-
collectedStackTrace = result;
|
299
304
|
return error;
|
300
305
|
}
|
301
306
|
function parseStackTrace(error, skipFrames) {
|
@@ -312,10 +317,10 @@
|
|
312
317
|
}
|
313
318
|
if (null !== collectedStackTrace)
|
314
319
|
return (
|
315
|
-
(
|
320
|
+
(stack = collectedStackTrace),
|
316
321
|
(collectedStackTrace = null),
|
317
|
-
stackTraceCache.set(error,
|
318
|
-
|
322
|
+
stackTraceCache.set(error, stack),
|
323
|
+
stack
|
319
324
|
);
|
320
325
|
stack.startsWith("Error: react-stack-top-frame\n") &&
|
321
326
|
(stack = stack.slice(29));
|
@@ -326,8 +331,12 @@
|
|
326
331
|
for (existing = []; skipFrames < stack.length; skipFrames++) {
|
327
332
|
var parsed = frameRegExp.exec(stack[skipFrames]);
|
328
333
|
if (parsed) {
|
329
|
-
var name = parsed[1] || ""
|
330
|
-
|
334
|
+
var name = parsed[1] || "",
|
335
|
+
isAsync = "async " === parsed[8];
|
336
|
+
"<anonymous>" === name
|
337
|
+
? (name = "")
|
338
|
+
: name.startsWith("async ") &&
|
339
|
+
((name = name.slice(5)), (isAsync = !0));
|
331
340
|
var filename = parsed[2] || parsed[5] || "";
|
332
341
|
"<anonymous>" === filename && (filename = "");
|
333
342
|
existing.push([
|
@@ -336,7 +345,8 @@
|
|
336
345
|
+(parsed[3] || parsed[6]),
|
337
346
|
+(parsed[4] || parsed[7]),
|
338
347
|
0,
|
339
|
-
0
|
348
|
+
0,
|
349
|
+
isAsync
|
340
350
|
]);
|
341
351
|
}
|
342
352
|
}
|
@@ -677,13 +687,29 @@
|
|
677
687
|
var wrapperMethod = function () {
|
678
688
|
var request = resolveRequest();
|
679
689
|
if (("assert" !== methodName || !arguments[0]) && null !== request) {
|
680
|
-
|
690
|
+
a: {
|
691
|
+
var error = Error("react-stack-top-frame");
|
692
|
+
collectedStackTrace = null;
|
693
|
+
framesToSkip = 1;
|
694
|
+
var previousPrepare = Error.prepareStackTrace;
|
695
|
+
Error.prepareStackTrace = collectStackTracePrivate;
|
696
|
+
try {
|
697
|
+
if ("" !== error.stack) {
|
698
|
+
var JSCompiler_inline_result = null;
|
699
|
+
break a;
|
700
|
+
}
|
701
|
+
} finally {
|
702
|
+
Error.prepareStackTrace = previousPrepare;
|
703
|
+
}
|
704
|
+
JSCompiler_inline_result = collectedStackTrace;
|
705
|
+
}
|
706
|
+
JSCompiler_inline_result = filterStackTrace(
|
681
707
|
request,
|
682
|
-
|
708
|
+
JSCompiler_inline_result || []
|
683
709
|
);
|
684
710
|
request.pendingDebugChunks++;
|
685
|
-
|
686
|
-
|
711
|
+
error = resolveOwner();
|
712
|
+
previousPrepare = Array.from(arguments);
|
687
713
|
a: {
|
688
714
|
var env = 0;
|
689
715
|
switch (methodName) {
|
@@ -696,37 +722,44 @@
|
|
696
722
|
case "assert":
|
697
723
|
env = 1;
|
698
724
|
}
|
699
|
-
var format =
|
700
|
-
style =
|
701
|
-
badge =
|
725
|
+
var format = previousPrepare[env],
|
726
|
+
style = previousPrepare[env + 1],
|
727
|
+
badge = previousPrepare[env + 2];
|
702
728
|
"string" === typeof format &&
|
703
729
|
format.startsWith("\u001b[0m\u001b[7m%c%s\u001b[0m%c ") &&
|
704
730
|
"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px" ===
|
705
731
|
style &&
|
706
732
|
"string" === typeof badge
|
707
|
-
? (
|
733
|
+
? (previousPrepare.splice(env, 4, format.slice(19)),
|
708
734
|
(env = badge.slice(1, badge.length - 1)))
|
709
735
|
: (env = null);
|
710
736
|
}
|
711
737
|
null === env && (env = (0, request.environmentName)());
|
712
|
-
null !=
|
713
|
-
format = [methodName,
|
714
|
-
format.push.apply(format,
|
715
|
-
|
738
|
+
null != error && outlineComponentInfo(request, error);
|
739
|
+
format = [methodName, JSCompiler_inline_result, error, env];
|
740
|
+
format.push.apply(format, previousPrepare);
|
741
|
+
previousPrepare = serializeDebugModel(
|
716
742
|
request,
|
717
|
-
(null === request.deferredDebugObjects ? 500 : 10) +
|
743
|
+
(null === request.deferredDebugObjects ? 500 : 10) +
|
744
|
+
JSCompiler_inline_result.length,
|
718
745
|
format
|
719
746
|
);
|
720
|
-
"[" !==
|
721
|
-
(
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
747
|
+
"[" !== previousPrepare[0] &&
|
748
|
+
(previousPrepare = serializeDebugModel(
|
749
|
+
request,
|
750
|
+
10 + JSCompiler_inline_result.length,
|
751
|
+
[
|
752
|
+
methodName,
|
753
|
+
JSCompiler_inline_result,
|
754
|
+
error,
|
755
|
+
env,
|
756
|
+
"Unknown Value: React could not send it from the server."
|
757
|
+
]
|
758
|
+
));
|
759
|
+
JSCompiler_inline_result = stringToChunk(
|
760
|
+
":W" + previousPrepare + "\n"
|
761
|
+
);
|
762
|
+
request.completedDebugChunks.push(JSCompiler_inline_result);
|
730
763
|
}
|
731
764
|
return originalMethod.apply(this, arguments);
|
732
765
|
};
|
@@ -952,6 +985,14 @@
|
|
952
985
|
}
|
953
986
|
if (request.status === ABORTING)
|
954
987
|
return emitDebugHaltChunk(request, id), ref;
|
988
|
+
var deferredDebugObjects = request.deferredDebugObjects;
|
989
|
+
if (null !== deferredDebugObjects)
|
990
|
+
return (
|
991
|
+
deferredDebugObjects.retained.set(id, thenable),
|
992
|
+
(ref = "$Y@" + id.toString(16)),
|
993
|
+
request.writtenDebugObjects.set(thenable, ref),
|
994
|
+
ref
|
995
|
+
);
|
955
996
|
var cancelled = !1;
|
956
997
|
thenable.then(
|
957
998
|
function (value) {
|
@@ -980,6 +1021,22 @@
|
|
980
1021
|
});
|
981
1022
|
return ref;
|
982
1023
|
}
|
1024
|
+
function emitRequestedDebugThenable(request, id, counter, thenable) {
|
1025
|
+
thenable.then(
|
1026
|
+
function (value) {
|
1027
|
+
request.status === ABORTING
|
1028
|
+
? emitDebugHaltChunk(request, id)
|
1029
|
+
: emitOutlinedDebugModelChunk(request, id, counter, value);
|
1030
|
+
enqueueFlush(request);
|
1031
|
+
},
|
1032
|
+
function (reason) {
|
1033
|
+
request.status === ABORTING
|
1034
|
+
? emitDebugHaltChunk(request, id)
|
1035
|
+
: emitErrorChunk(request, id, "", reason, !0);
|
1036
|
+
enqueueFlush(request);
|
1037
|
+
}
|
1038
|
+
);
|
1039
|
+
}
|
983
1040
|
function serializeThenable(request, task, thenable) {
|
984
1041
|
var newTask = createTask(
|
985
1042
|
request,
|
@@ -2610,6 +2667,8 @@
|
|
2610
2667
|
((existingDebugReference = tempRef.get(parent)),
|
2611
2668
|
void 0 !== existingDebugReference)
|
2612
2669
|
) {
|
2670
|
+
if (0 >= counter.objectLimit && !doNotLimit.has(value))
|
2671
|
+
return serializeDeferredObject(request, value);
|
2613
2672
|
var propertyName = parentPropertyName;
|
2614
2673
|
if (isArrayImpl(parent) && parent[0] === REACT_ELEMENT_TYPE)
|
2615
2674
|
switch (parentPropertyName) {
|
@@ -2626,11 +2685,12 @@
|
|
2626
2685
|
propertyName = "_owner";
|
2627
2686
|
}
|
2628
2687
|
tempRef.set(value, existingDebugReference + ":" + propertyName);
|
2629
|
-
} else if (debugNoOutline !== value)
|
2630
|
-
|
2631
|
-
|
2632
|
-
|
2633
|
-
);
|
2688
|
+
} else if (debugNoOutline !== value) {
|
2689
|
+
if ("function" === typeof value.then)
|
2690
|
+
return serializeDebugThenable(request, counter, value);
|
2691
|
+
request = outlineDebugModel(request, counter, value);
|
2692
|
+
return serializeByValueID(request);
|
2693
|
+
}
|
2634
2694
|
parent = request.writtenObjects.get(value);
|
2635
2695
|
if (void 0 !== parent) return parent;
|
2636
2696
|
if (0 >= counter.objectLimit && !doNotLimit.has(value))
|
@@ -4158,6 +4218,19 @@
|
|
4158
4218
|
),
|
4159
4219
|
enqueueFlush(request));
|
4160
4220
|
break;
|
4221
|
+
case 80:
|
4222
|
+
for (command = 0; command < message.length; command++)
|
4223
|
+
(id = message[command]),
|
4224
|
+
(retainedValue = deferredDebugObjects.retained.get(id)),
|
4225
|
+
void 0 !== retainedValue &&
|
4226
|
+
(deferredDebugObjects.retained.delete(id),
|
4227
|
+
emitRequestedDebugThenable(
|
4228
|
+
request,
|
4229
|
+
id,
|
4230
|
+
{ objectLimit: 10 },
|
4231
|
+
retainedValue
|
4232
|
+
));
|
4233
|
+
break;
|
4161
4234
|
default:
|
4162
4235
|
throw Error(
|
4163
4236
|
"Unknown command. The debugChannel was not wired up properly."
|
@@ -841,8 +841,8 @@ function serializeReadableStream(request, task, stream) {
|
|
841
841
|
tryStreamTask(request, streamTask),
|
842
842
|
enqueueFlush(request),
|
843
843
|
reader.read().then(progress, error);
|
844
|
-
} catch (x$
|
845
|
-
error(x$
|
844
|
+
} catch (x$8) {
|
845
|
+
error(x$8);
|
846
846
|
}
|
847
847
|
}
|
848
848
|
function error(reason) {
|
@@ -918,8 +918,8 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
|
|
918
918
|
tryStreamTask(request, streamTask),
|
919
919
|
enqueueFlush(request),
|
920
920
|
iterator.next().then(progress, error);
|
921
|
-
} catch (x$
|
922
|
-
error(x$
|
921
|
+
} catch (x$9) {
|
922
|
+
error(x$9);
|
923
923
|
}
|
924
924
|
}
|
925
925
|
function error(reason) {
|
@@ -1969,9 +1969,9 @@ function abort(request, reason) {
|
|
1969
1969
|
null !== request.destination &&
|
1970
1970
|
flushCompletedChunks(request, request.destination);
|
1971
1971
|
}
|
1972
|
-
} catch (error$
|
1973
|
-
logRecoverableError(request, error$
|
1974
|
-
fatalError(request, error$
|
1972
|
+
} catch (error$23) {
|
1973
|
+
logRecoverableError(request, error$23, null),
|
1974
|
+
fatalError(request, error$23);
|
1975
1975
|
}
|
1976
1976
|
}
|
1977
1977
|
function resolveServerReference(bundlerConfig, id) {
|
@@ -2419,8 +2419,8 @@ function parseReadableStream(response, reference, type) {
|
|
2419
2419
|
(previousBlockedChunk = chunk));
|
2420
2420
|
} else {
|
2421
2421
|
chunk = previousBlockedChunk;
|
2422
|
-
var chunk$
|
2423
|
-
chunk$
|
2422
|
+
var chunk$26 = createPendingChunk(response);
|
2423
|
+
chunk$26.then(
|
2424
2424
|
function (v) {
|
2425
2425
|
return controller.enqueue(v);
|
2426
2426
|
},
|
@@ -2428,10 +2428,10 @@ function parseReadableStream(response, reference, type) {
|
|
2428
2428
|
return controller.error(e);
|
2429
2429
|
}
|
2430
2430
|
);
|
2431
|
-
previousBlockedChunk = chunk$
|
2431
|
+
previousBlockedChunk = chunk$26;
|
2432
2432
|
chunk.then(function () {
|
2433
|
-
previousBlockedChunk === chunk$
|
2434
|
-
resolveModelChunk(chunk$
|
2433
|
+
previousBlockedChunk === chunk$26 && (previousBlockedChunk = null);
|
2434
|
+
resolveModelChunk(chunk$26, json, -1);
|
2435
2435
|
});
|
2436
2436
|
}
|
2437
2437
|
},
|