react-server-dom-webpack 19.2.0-canary-befc1246-20250708 → 19.2.0-canary-e6dc25da-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.
@@ -1793,6 +1793,13 @@
1793
1793
  }
1794
1794
  case "Y":
1795
1795
  if (2 < value.length && (ref = response._debugChannel)) {
1796
+ if ("@" === value[2])
1797
+ return (
1798
+ (parentObject = value.slice(3)),
1799
+ (key = parseInt(parentObject, 16)),
1800
+ response._chunks.has(key) || ref("P:" + parentObject),
1801
+ getChunk(response, key)
1802
+ );
1796
1803
  value = value.slice(2);
1797
1804
  var _id2 = parseInt(value, 16);
1798
1805
  response._chunks.has(_id2) || ref("Q:" + value);
@@ -3057,10 +3064,10 @@
3057
3064
  return hook.checkDCE ? !0 : !1;
3058
3065
  })({
3059
3066
  bundleType: 1,
3060
- version: "19.2.0-canary-befc1246-20250708",
3067
+ version: "19.2.0-canary-e6dc25da-20250709",
3061
3068
  rendererPackageName: "react-server-dom-webpack",
3062
3069
  currentDispatcherRef: ReactSharedInternals,
3063
- reconcilerVersion: "19.2.0-canary-befc1246-20250708",
3070
+ reconcilerVersion: "19.2.0-canary-e6dc25da-20250709",
3064
3071
  getCurrentComponentInfo: function () {
3065
3072
  return currentOwnerInDEV;
3066
3073
  }
@@ -2007,6 +2007,13 @@
2007
2007
  }
2008
2008
  case "Y":
2009
2009
  if (2 < value.length && (ref = response._debugChannel)) {
2010
+ if ("@" === value[2])
2011
+ return (
2012
+ (parentObject = value.slice(3)),
2013
+ (key = parseInt(parentObject, 16)),
2014
+ response._chunks.has(key) || ref("P:" + parentObject),
2015
+ getChunk(response, key)
2016
+ );
2010
2017
  value = value.slice(2);
2011
2018
  var _id2 = parseInt(value, 16);
2012
2019
  response._chunks.has(_id2) || ref("Q:" + value);
@@ -2007,6 +2007,13 @@
2007
2007
  }
2008
2008
  case "Y":
2009
2009
  if (2 < value.length && (ref = response._debugChannel)) {
2010
+ if ("@" === value[2])
2011
+ return (
2012
+ (parentObject = value.slice(3)),
2013
+ (key = parseInt(parentObject, 16)),
2014
+ response._chunks.has(key) || ref("P:" + parentObject),
2015
+ getChunk(response, key)
2016
+ );
2010
2017
  value = value.slice(2);
2011
2018
  var _id2 = parseInt(value, 16);
2012
2019
  response._chunks.has(_id2) || ref("Q:" + value);
@@ -1969,6 +1969,13 @@
1969
1969
  }
1970
1970
  case "Y":
1971
1971
  if (2 < value.length && (ref = response._debugChannel)) {
1972
+ if ("@" === value[2])
1973
+ return (
1974
+ (parentObject = value.slice(3)),
1975
+ (key = parseInt(parentObject, 16)),
1976
+ response._chunks.has(key) || ref("P:" + parentObject),
1977
+ getChunk(response, key)
1978
+ );
1972
1979
  value = value.slice(2);
1973
1980
  var _id2 = parseInt(value, 16);
1974
1981
  response._chunks.has(_id2) || ref("Q:" + value);
@@ -226,72 +226,77 @@
226
226
  ((hasProperties = !0), (trimmed[key] = options[key]));
227
227
  return hasProperties ? trimmed : null;
228
228
  }
229
- function collectStackTrace(error, structuredStackTrace) {
230
- for (
231
- var result = [], i = framesToSkip;
232
- i < structuredStackTrace.length;
233
- i++
234
- ) {
229
+ function collectStackTracePrivate(error, structuredStackTrace) {
230
+ error = [];
231
+ for (var i = framesToSkip; i < structuredStackTrace.length; i++) {
235
232
  var callSite = structuredStackTrace[i],
236
- _name = callSite.getFunctionName() || "<anonymous>";
237
- if (_name.includes("react_stack_bottom_frame")) break;
238
- else if (callSite.isNative()) result.push([_name, "", 0, 0, 0, 0]);
233
+ name = callSite.getFunctionName() || "<anonymous>";
234
+ if (name.includes("react_stack_bottom_frame")) break;
235
+ else if (callSite.isNative())
236
+ (callSite = callSite.isAsync()),
237
+ error.push([name, "", 0, 0, 0, 0, callSite]);
239
238
  else {
240
- if (callSite.isConstructor()) _name = "new " + _name;
239
+ if (callSite.isConstructor()) name = "new " + name;
241
240
  else if (!callSite.isToplevel()) {
242
241
  var callSite$jscomp$0 = callSite;
243
- _name = callSite$jscomp$0.getTypeName();
242
+ name = callSite$jscomp$0.getTypeName();
244
243
  var methodName = callSite$jscomp$0.getMethodName();
245
244
  callSite$jscomp$0 = callSite$jscomp$0.getFunctionName();
246
- var result$jscomp$0 = "";
245
+ var result = "";
247
246
  callSite$jscomp$0
248
- ? (_name &&
247
+ ? (name &&
249
248
  identifierRegExp.test(callSite$jscomp$0) &&
250
- callSite$jscomp$0 !== _name &&
251
- (result$jscomp$0 += _name + "."),
252
- (result$jscomp$0 += callSite$jscomp$0),
249
+ callSite$jscomp$0 !== name &&
250
+ (result += name + "."),
251
+ (result += callSite$jscomp$0),
253
252
  !methodName ||
254
253
  callSite$jscomp$0 === methodName ||
255
254
  callSite$jscomp$0.endsWith("." + methodName) ||
256
255
  callSite$jscomp$0.endsWith(" " + methodName) ||
257
- (result$jscomp$0 += " [as " + methodName + "]"))
258
- : (_name && (result$jscomp$0 += _name + "."),
259
- (result$jscomp$0 = methodName
260
- ? result$jscomp$0 + methodName
261
- : result$jscomp$0 + "<anonymous>"));
262
- _name = result$jscomp$0;
256
+ (result += " [as " + methodName + "]"))
257
+ : (name && (result += name + "."),
258
+ (result = methodName
259
+ ? result + methodName
260
+ : result + "<anonymous>"));
261
+ name = result;
263
262
  }
264
- "<anonymous>" === _name && (_name = "");
263
+ "<anonymous>" === name && (name = "");
265
264
  methodName = callSite.getScriptNameOrSourceURL() || "<anonymous>";
266
- "<anonymous>" === methodName && (methodName = "");
267
- callSite.isEval() &&
268
- !methodName &&
269
- (callSite$jscomp$0 = callSite.getEvalOrigin()) &&
270
- (methodName = callSite$jscomp$0.toString() + ", <anonymous>");
265
+ "<anonymous>" === methodName &&
266
+ ((methodName = ""),
267
+ callSite.isEval() &&
268
+ (callSite$jscomp$0 = callSite.getEvalOrigin()) &&
269
+ (methodName = callSite$jscomp$0.toString() + ", <anonymous>"));
271
270
  callSite$jscomp$0 = callSite.getLineNumber() || 0;
272
- result$jscomp$0 = callSite.getColumnNumber() || 0;
271
+ result = callSite.getColumnNumber() || 0;
273
272
  var enclosingLine =
274
- "function" === typeof callSite.getEnclosingLineNumber
275
- ? callSite.getEnclosingLineNumber() || 0
276
- : 0;
277
- callSite =
278
- "function" === typeof callSite.getEnclosingColumnNumber
279
- ? callSite.getEnclosingColumnNumber() || 0
280
- : 0;
281
- result.push([
282
- _name,
273
+ "function" === typeof callSite.getEnclosingLineNumber
274
+ ? callSite.getEnclosingLineNumber() || 0
275
+ : 0,
276
+ enclosingCol =
277
+ "function" === typeof callSite.getEnclosingColumnNumber
278
+ ? callSite.getEnclosingColumnNumber() || 0
279
+ : 0;
280
+ callSite = callSite.isAsync();
281
+ error.push([
282
+ name,
283
283
  methodName,
284
284
  callSite$jscomp$0,
285
- result$jscomp$0,
285
+ result,
286
286
  enclosingLine,
287
+ enclosingCol,
287
288
  callSite
288
289
  ]);
289
290
  }
290
291
  }
292
+ collectedStackTrace = error;
293
+ return "";
294
+ }
295
+ function collectStackTrace(error, structuredStackTrace) {
296
+ collectStackTracePrivate(error, structuredStackTrace);
291
297
  error = (error.name || "Error") + ": " + (error.message || "");
292
- for (i = 0; i < structuredStackTrace.length; i++)
298
+ for (var i = 0; i < structuredStackTrace.length; i++)
293
299
  error += "\n at " + structuredStackTrace[i].toString();
294
- collectedStackTrace = result;
295
300
  return error;
296
301
  }
297
302
  function parseStackTrace(error, skipFrames) {
@@ -308,10 +313,10 @@
308
313
  }
309
314
  if (null !== collectedStackTrace)
310
315
  return (
311
- (skipFrames = collectedStackTrace),
316
+ (stack = collectedStackTrace),
312
317
  (collectedStackTrace = null),
313
- stackTraceCache.set(error, skipFrames),
314
- skipFrames
318
+ stackTraceCache.set(error, stack),
319
+ stack
315
320
  );
316
321
  stack.startsWith("Error: react-stack-top-frame\n") &&
317
322
  (stack = stack.slice(29));
@@ -322,8 +327,12 @@
322
327
  for (existing = []; skipFrames < stack.length; skipFrames++) {
323
328
  var parsed = frameRegExp.exec(stack[skipFrames]);
324
329
  if (parsed) {
325
- var name = parsed[1] || "";
326
- "<anonymous>" === name && (name = "");
330
+ var name = parsed[1] || "",
331
+ isAsync = "async " === parsed[8];
332
+ "<anonymous>" === name
333
+ ? (name = "")
334
+ : name.startsWith("async ") &&
335
+ ((name = name.slice(5)), (isAsync = !0));
327
336
  var filename = parsed[2] || parsed[5] || "";
328
337
  "<anonymous>" === filename && (filename = "");
329
338
  existing.push([
@@ -332,7 +341,8 @@
332
341
  +(parsed[3] || parsed[6]),
333
342
  +(parsed[4] || parsed[7]),
334
343
  0,
335
- 0
344
+ 0,
345
+ isAsync
336
346
  ]);
337
347
  }
338
348
  }
@@ -670,13 +680,29 @@
670
680
  var wrapperMethod = function () {
671
681
  var request = resolveRequest();
672
682
  if (("assert" !== methodName || !arguments[0]) && null !== request) {
673
- var stack = filterStackTrace(
683
+ a: {
684
+ var error = Error("react-stack-top-frame");
685
+ collectedStackTrace = null;
686
+ framesToSkip = 1;
687
+ var previousPrepare = Error.prepareStackTrace;
688
+ Error.prepareStackTrace = collectStackTracePrivate;
689
+ try {
690
+ if ("" !== error.stack) {
691
+ var JSCompiler_inline_result = null;
692
+ break a;
693
+ }
694
+ } finally {
695
+ Error.prepareStackTrace = previousPrepare;
696
+ }
697
+ JSCompiler_inline_result = collectedStackTrace;
698
+ }
699
+ JSCompiler_inline_result = filterStackTrace(
674
700
  request,
675
- parseStackTrace(Error("react-stack-top-frame"), 1)
701
+ JSCompiler_inline_result || []
676
702
  );
677
703
  request.pendingDebugChunks++;
678
- var owner = resolveOwner(),
679
- args = Array.from(arguments);
704
+ error = resolveOwner();
705
+ previousPrepare = Array.from(arguments);
680
706
  a: {
681
707
  var env = 0;
682
708
  switch (methodName) {
@@ -689,37 +715,44 @@
689
715
  case "assert":
690
716
  env = 1;
691
717
  }
692
- var format = args[env],
693
- style = args[env + 1],
694
- badge = args[env + 2];
718
+ var format = previousPrepare[env],
719
+ style = previousPrepare[env + 1],
720
+ badge = previousPrepare[env + 2];
695
721
  "string" === typeof format &&
696
722
  format.startsWith("%c%s%c ") &&
697
723
  "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" ===
698
724
  style &&
699
725
  "string" === typeof badge
700
- ? (args.splice(env, 4, format.slice(7)),
726
+ ? (previousPrepare.splice(env, 4, format.slice(7)),
701
727
  (env = badge.slice(1, badge.length - 1)))
702
728
  : (env = null);
703
729
  }
704
730
  null === env && (env = (0, request.environmentName)());
705
- null != owner && outlineComponentInfo(request, owner);
706
- format = [methodName, stack, owner, env];
707
- format.push.apply(format, args);
708
- args = serializeDebugModel(
731
+ null != error && outlineComponentInfo(request, error);
732
+ format = [methodName, JSCompiler_inline_result, error, env];
733
+ format.push.apply(format, previousPrepare);
734
+ previousPrepare = serializeDebugModel(
709
735
  request,
710
- (null === request.deferredDebugObjects ? 500 : 10) + stack.length,
736
+ (null === request.deferredDebugObjects ? 500 : 10) +
737
+ JSCompiler_inline_result.length,
711
738
  format
712
739
  );
713
- "[" !== args[0] &&
714
- (args = serializeDebugModel(request, 10 + stack.length, [
715
- methodName,
716
- stack,
717
- owner,
718
- env,
719
- "Unknown Value: React could not send it from the server."
720
- ]));
721
- stack = stringToChunk(":W" + args + "\n");
722
- request.completedDebugChunks.push(stack);
740
+ "[" !== previousPrepare[0] &&
741
+ (previousPrepare = serializeDebugModel(
742
+ request,
743
+ 10 + JSCompiler_inline_result.length,
744
+ [
745
+ methodName,
746
+ JSCompiler_inline_result,
747
+ error,
748
+ env,
749
+ "Unknown Value: React could not send it from the server."
750
+ ]
751
+ ));
752
+ JSCompiler_inline_result = stringToChunk(
753
+ ":W" + previousPrepare + "\n"
754
+ );
755
+ request.completedDebugChunks.push(JSCompiler_inline_result);
723
756
  }
724
757
  return originalMethod.apply(this, arguments);
725
758
  };
@@ -940,6 +973,14 @@
940
973
  }
941
974
  if (request.status === ABORTING)
942
975
  return emitDebugHaltChunk(request, id), ref;
976
+ var deferredDebugObjects = request.deferredDebugObjects;
977
+ if (null !== deferredDebugObjects)
978
+ return (
979
+ deferredDebugObjects.retained.set(id, thenable),
980
+ (ref = "$Y@" + id.toString(16)),
981
+ request.writtenDebugObjects.set(thenable, ref),
982
+ ref
983
+ );
943
984
  var cancelled = !1;
944
985
  thenable.then(
945
986
  function (value) {
@@ -968,6 +1009,22 @@
968
1009
  });
969
1010
  return ref;
970
1011
  }
1012
+ function emitRequestedDebugThenable(request, id, counter, thenable) {
1013
+ thenable.then(
1014
+ function (value) {
1015
+ request.status === ABORTING
1016
+ ? emitDebugHaltChunk(request, id)
1017
+ : emitOutlinedDebugModelChunk(request, id, counter, value);
1018
+ enqueueFlush(request);
1019
+ },
1020
+ function (reason) {
1021
+ request.status === ABORTING
1022
+ ? emitDebugHaltChunk(request, id)
1023
+ : emitErrorChunk(request, id, "", reason, !0);
1024
+ enqueueFlush(request);
1025
+ }
1026
+ );
1027
+ }
971
1028
  function serializeThenable(request, task, thenable) {
972
1029
  var newTask = createTask(
973
1030
  request,
@@ -2539,6 +2596,8 @@
2539
2596
  ((existingDebugReference = tempRef.get(parent)),
2540
2597
  void 0 !== existingDebugReference)
2541
2598
  ) {
2599
+ if (0 >= counter.objectLimit && !doNotLimit.has(value))
2600
+ return serializeDeferredObject(request, value);
2542
2601
  var propertyName = parentPropertyName;
2543
2602
  if (isArrayImpl(parent) && parent[0] === REACT_ELEMENT_TYPE)
2544
2603
  switch (parentPropertyName) {
@@ -2555,11 +2614,12 @@
2555
2614
  propertyName = "_owner";
2556
2615
  }
2557
2616
  tempRef.set(value, existingDebugReference + ":" + propertyName);
2558
- } else if (debugNoOutline !== value)
2559
- return (
2560
- (request = outlineDebugModel(request, counter, value)),
2561
- serializeByValueID(request)
2562
- );
2617
+ } else if (debugNoOutline !== value) {
2618
+ if ("function" === typeof value.then)
2619
+ return serializeDebugThenable(request, counter, value);
2620
+ request = outlineDebugModel(request, counter, value);
2621
+ return serializeByValueID(request);
2622
+ }
2563
2623
  parent = request.writtenObjects.get(value);
2564
2624
  if (void 0 !== parent) return parent;
2565
2625
  if (0 >= counter.objectLimit && !doNotLimit.has(value))
@@ -2893,10 +2953,10 @@
2893
2953
  start: ioInfo$jscomp$0.start - request$jscomp$0.timeOrigin,
2894
2954
  end: ioInfo$jscomp$0.end - request$jscomp$0.timeOrigin
2895
2955
  };
2896
- void 0 !== value && (debugIOInfo.value = value);
2897
2956
  null != env && (debugIOInfo.env = env);
2898
2957
  null != debugStack && (debugIOInfo.stack = debugStack);
2899
2958
  null != owner && (debugIOInfo.owner = owner);
2959
+ void 0 !== value && (debugIOInfo.value = value);
2900
2960
  value = serializeDebugModel(
2901
2961
  request$jscomp$0,
2902
2962
  objectLimit,
@@ -4087,6 +4147,19 @@
4087
4147
  ),
4088
4148
  enqueueFlush(request));
4089
4149
  break;
4150
+ case 80:
4151
+ for (command = 0; command < message.length; command++)
4152
+ (id = message[command]),
4153
+ (retainedValue = deferredDebugObjects.retained.get(id)),
4154
+ void 0 !== retainedValue &&
4155
+ (deferredDebugObjects.retained.delete(id),
4156
+ emitRequestedDebugThenable(
4157
+ request,
4158
+ id,
4159
+ { objectLimit: 10 },
4160
+ retainedValue
4161
+ ));
4162
+ break;
4090
4163
  default:
4091
4164
  throw Error(
4092
4165
  "Unknown command. The debugChannel was not wired up properly."
@@ -842,8 +842,8 @@ function serializeReadableStream(request, task, stream) {
842
842
  tryStreamTask(request, streamTask),
843
843
  enqueueFlush(request),
844
844
  reader.read().then(progress, error);
845
- } catch (x$9) {
846
- error(x$9);
845
+ } catch (x$8) {
846
+ error(x$8);
847
847
  }
848
848
  }
849
849
  function error(reason) {
@@ -919,8 +919,8 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
919
919
  tryStreamTask(request, streamTask),
920
920
  enqueueFlush(request),
921
921
  iterator.next().then(progress, error);
922
- } catch (x$10) {
923
- error(x$10);
922
+ } catch (x$9) {
923
+ error(x$9);
924
924
  }
925
925
  }
926
926
  function error(reason) {
@@ -1964,9 +1964,9 @@ function abort(request, reason) {
1964
1964
  null !== request.destination &&
1965
1965
  flushCompletedChunks(request, request.destination);
1966
1966
  }
1967
- } catch (error$24) {
1968
- logRecoverableError(request, error$24, null),
1969
- fatalError(request, error$24);
1967
+ } catch (error$23) {
1968
+ logRecoverableError(request, error$23, null),
1969
+ fatalError(request, error$23);
1970
1970
  }
1971
1971
  }
1972
1972
  function resolveServerReference(bundlerConfig, id) {
@@ -2423,8 +2423,8 @@ function parseReadableStream(response, reference, type) {
2423
2423
  (previousBlockedChunk = chunk));
2424
2424
  } else {
2425
2425
  chunk = previousBlockedChunk;
2426
- var chunk$27 = createPendingChunk(response);
2427
- chunk$27.then(
2426
+ var chunk$26 = createPendingChunk(response);
2427
+ chunk$26.then(
2428
2428
  function (v) {
2429
2429
  return controller.enqueue(v);
2430
2430
  },
@@ -2432,10 +2432,10 @@ function parseReadableStream(response, reference, type) {
2432
2432
  return controller.error(e);
2433
2433
  }
2434
2434
  );
2435
- previousBlockedChunk = chunk$27;
2435
+ previousBlockedChunk = chunk$26;
2436
2436
  chunk.then(function () {
2437
- previousBlockedChunk === chunk$27 && (previousBlockedChunk = null);
2438
- resolveModelChunk(chunk$27, json, -1);
2437
+ previousBlockedChunk === chunk$26 && (previousBlockedChunk = null);
2438
+ resolveModelChunk(chunk$26, json, -1);
2439
2439
  });
2440
2440
  }
2441
2441
  },