react-server-dom-webpack 0.0.0-experimental-befc1246-20250708 → 0.0.0-experimental-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.
@@ -2259,6 +2259,13 @@
2259
2259
  }
2260
2260
  case "Y":
2261
2261
  if (2 < value.length && (ref = response._debugChannel)) {
2262
+ if ("@" === value[2])
2263
+ return (
2264
+ (parentObject = value.slice(3)),
2265
+ (key = parseInt(parentObject, 16)),
2266
+ response._chunks.has(key) || ref("P:" + parentObject),
2267
+ getChunk(response, key)
2268
+ );
2262
2269
  value = value.slice(2);
2263
2270
  var _id2 = parseInt(value, 16);
2264
2271
  response._chunks.has(_id2) || ref("Q:" + value);
@@ -4148,10 +4155,10 @@
4148
4155
  return hook.checkDCE ? !0 : !1;
4149
4156
  })({
4150
4157
  bundleType: 1,
4151
- version: "19.2.0-experimental-befc1246-20250708",
4158
+ version: "19.2.0-experimental-e6dc25da-20250709",
4152
4159
  rendererPackageName: "react-server-dom-webpack",
4153
4160
  currentDispatcherRef: ReactSharedInternals,
4154
- reconcilerVersion: "19.2.0-experimental-befc1246-20250708",
4161
+ reconcilerVersion: "19.2.0-experimental-e6dc25da-20250709",
4155
4162
  getCurrentComponentInfo: function () {
4156
4163
  return currentOwnerInDEV;
4157
4164
  }
@@ -2473,6 +2473,13 @@
2473
2473
  }
2474
2474
  case "Y":
2475
2475
  if (2 < value.length && (ref = response._debugChannel)) {
2476
+ if ("@" === value[2])
2477
+ return (
2478
+ (parentObject = value.slice(3)),
2479
+ (key = parseInt(parentObject, 16)),
2480
+ response._chunks.has(key) || ref("P:" + parentObject),
2481
+ getChunk(response, key)
2482
+ );
2476
2483
  value = value.slice(2);
2477
2484
  var _id2 = parseInt(value, 16);
2478
2485
  response._chunks.has(_id2) || ref("Q:" + value);
@@ -2473,6 +2473,13 @@
2473
2473
  }
2474
2474
  case "Y":
2475
2475
  if (2 < value.length && (ref = response._debugChannel)) {
2476
+ if ("@" === value[2])
2477
+ return (
2478
+ (parentObject = value.slice(3)),
2479
+ (key = parseInt(parentObject, 16)),
2480
+ response._chunks.has(key) || ref("P:" + parentObject),
2481
+ getChunk(response, key)
2482
+ );
2476
2483
  value = value.slice(2);
2477
2484
  var _id2 = parseInt(value, 16);
2478
2485
  response._chunks.has(_id2) || ref("Q:" + value);
@@ -2435,6 +2435,13 @@
2435
2435
  }
2436
2436
  case "Y":
2437
2437
  if (2 < value.length && (ref = response._debugChannel)) {
2438
+ if ("@" === value[2])
2439
+ return (
2440
+ (parentObject = value.slice(3)),
2441
+ (key = parseInt(parentObject, 16)),
2442
+ response._chunks.has(key) || ref("P:" + parentObject),
2443
+ getChunk(response, key)
2444
+ );
2438
2445
  value = value.slice(2);
2439
2446
  var _id2 = parseInt(value, 16);
2440
2447
  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
  }
@@ -673,13 +683,29 @@
673
683
  var wrapperMethod = function () {
674
684
  var request = resolveRequest();
675
685
  if (("assert" !== methodName || !arguments[0]) && null !== request) {
676
- var stack = filterStackTrace(
686
+ a: {
687
+ var error = Error("react-stack-top-frame");
688
+ collectedStackTrace = null;
689
+ framesToSkip = 1;
690
+ var previousPrepare = Error.prepareStackTrace;
691
+ Error.prepareStackTrace = collectStackTracePrivate;
692
+ try {
693
+ if ("" !== error.stack) {
694
+ var JSCompiler_inline_result = null;
695
+ break a;
696
+ }
697
+ } finally {
698
+ Error.prepareStackTrace = previousPrepare;
699
+ }
700
+ JSCompiler_inline_result = collectedStackTrace;
701
+ }
702
+ JSCompiler_inline_result = filterStackTrace(
677
703
  request,
678
- parseStackTrace(Error("react-stack-top-frame"), 1)
704
+ JSCompiler_inline_result || []
679
705
  );
680
706
  request.pendingDebugChunks++;
681
- var owner = resolveOwner(),
682
- args = Array.from(arguments);
707
+ error = resolveOwner();
708
+ previousPrepare = Array.from(arguments);
683
709
  a: {
684
710
  var env = 0;
685
711
  switch (methodName) {
@@ -692,37 +718,44 @@
692
718
  case "assert":
693
719
  env = 1;
694
720
  }
695
- var format = args[env],
696
- style = args[env + 1],
697
- badge = args[env + 2];
721
+ var format = previousPrepare[env],
722
+ style = previousPrepare[env + 1],
723
+ badge = previousPrepare[env + 2];
698
724
  "string" === typeof format &&
699
725
  format.startsWith("%c%s%c ") &&
700
726
  "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" ===
701
727
  style &&
702
728
  "string" === typeof badge
703
- ? (args.splice(env, 4, format.slice(7)),
729
+ ? (previousPrepare.splice(env, 4, format.slice(7)),
704
730
  (env = badge.slice(1, badge.length - 1)))
705
731
  : (env = null);
706
732
  }
707
733
  null === env && (env = (0, request.environmentName)());
708
- null != owner && outlineComponentInfo(request, owner);
709
- format = [methodName, stack, owner, env];
710
- format.push.apply(format, args);
711
- args = serializeDebugModel(
734
+ null != error && outlineComponentInfo(request, error);
735
+ format = [methodName, JSCompiler_inline_result, error, env];
736
+ format.push.apply(format, previousPrepare);
737
+ previousPrepare = serializeDebugModel(
712
738
  request,
713
- (null === request.deferredDebugObjects ? 500 : 10) + stack.length,
739
+ (null === request.deferredDebugObjects ? 500 : 10) +
740
+ JSCompiler_inline_result.length,
714
741
  format
715
742
  );
716
- "[" !== args[0] &&
717
- (args = serializeDebugModel(request, 10 + stack.length, [
718
- methodName,
719
- stack,
720
- owner,
721
- env,
722
- "Unknown Value: React could not send it from the server."
723
- ]));
724
- stack = stringToChunk(":W" + args + "\n");
725
- request.completedDebugChunks.push(stack);
743
+ "[" !== previousPrepare[0] &&
744
+ (previousPrepare = serializeDebugModel(
745
+ request,
746
+ 10 + JSCompiler_inline_result.length,
747
+ [
748
+ methodName,
749
+ JSCompiler_inline_result,
750
+ error,
751
+ env,
752
+ "Unknown Value: React could not send it from the server."
753
+ ]
754
+ ));
755
+ JSCompiler_inline_result = stringToChunk(
756
+ ":W" + previousPrepare + "\n"
757
+ );
758
+ request.completedDebugChunks.push(JSCompiler_inline_result);
726
759
  }
727
760
  return originalMethod.apply(this, arguments);
728
761
  };
@@ -974,6 +1007,14 @@
974
1007
  }
975
1008
  if (request.status === ABORTING)
976
1009
  return emitDebugHaltChunk(request, id), ref;
1010
+ var deferredDebugObjects = request.deferredDebugObjects;
1011
+ if (null !== deferredDebugObjects)
1012
+ return (
1013
+ deferredDebugObjects.retained.set(id, thenable),
1014
+ (ref = "$Y@" + id.toString(16)),
1015
+ request.writtenDebugObjects.set(thenable, ref),
1016
+ ref
1017
+ );
977
1018
  var cancelled = !1;
978
1019
  thenable.then(
979
1020
  function (value) {
@@ -1002,6 +1043,22 @@
1002
1043
  });
1003
1044
  return ref;
1004
1045
  }
1046
+ function emitRequestedDebugThenable(request, id, counter, thenable) {
1047
+ thenable.then(
1048
+ function (value) {
1049
+ request.status === ABORTING
1050
+ ? emitDebugHaltChunk(request, id)
1051
+ : emitOutlinedDebugModelChunk(request, id, counter, value);
1052
+ enqueueFlush(request);
1053
+ },
1054
+ function (reason) {
1055
+ request.status === ABORTING
1056
+ ? emitDebugHaltChunk(request, id)
1057
+ : emitErrorChunk(request, id, "", reason, !0);
1058
+ enqueueFlush(request);
1059
+ }
1060
+ );
1061
+ }
1005
1062
  function serializeThenable(request, task, thenable) {
1006
1063
  var newTask = createTask(
1007
1064
  request,
@@ -2674,6 +2731,8 @@
2674
2731
  ((existingDebugReference = tempRef.get(parent)),
2675
2732
  void 0 !== existingDebugReference)
2676
2733
  ) {
2734
+ if (0 >= counter.objectLimit && !doNotLimit.has(value))
2735
+ return serializeDeferredObject(request, value);
2677
2736
  var propertyName = parentPropertyName;
2678
2737
  if (isArrayImpl(parent) && parent[0] === REACT_ELEMENT_TYPE)
2679
2738
  switch (parentPropertyName) {
@@ -2690,11 +2749,12 @@
2690
2749
  propertyName = "_owner";
2691
2750
  }
2692
2751
  tempRef.set(value, existingDebugReference + ":" + propertyName);
2693
- } else if (debugNoOutline !== value)
2694
- return (
2695
- (request = outlineDebugModel(request, counter, value)),
2696
- serializeByValueID(request)
2697
- );
2752
+ } else if (debugNoOutline !== value) {
2753
+ if ("function" === typeof value.then)
2754
+ return serializeDebugThenable(request, counter, value);
2755
+ request = outlineDebugModel(request, counter, value);
2756
+ return serializeByValueID(request);
2757
+ }
2698
2758
  parent = request.writtenObjects.get(value);
2699
2759
  if (void 0 !== parent) return parent;
2700
2760
  if (0 >= counter.objectLimit && !doNotLimit.has(value))
@@ -3033,10 +3093,10 @@
3033
3093
  start: ioInfo$jscomp$0.start - request$jscomp$0.timeOrigin,
3034
3094
  end: ioInfo$jscomp$0.end - request$jscomp$0.timeOrigin
3035
3095
  };
3036
- void 0 !== value && (debugIOInfo.value = value);
3037
3096
  null != env && (debugIOInfo.env = env);
3038
3097
  null != debugStack && (debugIOInfo.stack = debugStack);
3039
3098
  null != owner && (debugIOInfo.owner = owner);
3099
+ void 0 !== value && (debugIOInfo.value = value);
3040
3100
  value = serializeDebugModel(
3041
3101
  request$jscomp$0,
3042
3102
  objectLimit,
@@ -4311,6 +4371,19 @@
4311
4371
  ),
4312
4372
  enqueueFlush(request));
4313
4373
  break;
4374
+ case 80:
4375
+ for (command = 0; command < message.length; command++)
4376
+ (id = message[command]),
4377
+ (retainedValue = deferredDebugObjects.retained.get(id)),
4378
+ void 0 !== retainedValue &&
4379
+ (deferredDebugObjects.retained.delete(id),
4380
+ emitRequestedDebugThenable(
4381
+ request,
4382
+ id,
4383
+ { objectLimit: 10 },
4384
+ retainedValue
4385
+ ));
4386
+ break;
4314
4387
  default:
4315
4388
  throw Error(
4316
4389
  "Unknown command. The debugChannel was not wired up properly."
@@ -873,8 +873,8 @@ function serializeReadableStream(request, task, stream) {
873
873
  tryStreamTask(request, streamTask),
874
874
  enqueueFlush(request),
875
875
  reader.read().then(progress, error);
876
- } catch (x$9) {
877
- error(x$9);
876
+ } catch (x$8) {
877
+ error(x$8);
878
878
  }
879
879
  }
880
880
  function error(reason) {
@@ -951,8 +951,8 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
951
951
  tryStreamTask(request, streamTask),
952
952
  enqueueFlush(request),
953
953
  iterator.next().then(progress, error);
954
- } catch (x$10) {
955
- error(x$10);
954
+ } catch (x$9) {
955
+ error(x$9);
956
956
  }
957
957
  }
958
958
  function error(reason) {
@@ -2095,15 +2095,15 @@ function abort(request, reason) {
2095
2095
  )
2096
2096
  : reason,
2097
2097
  digest = logRecoverableError(request, error, null),
2098
- errorId$27 = request.nextChunkId++;
2099
- request.fatalError = errorId$27;
2098
+ errorId$26 = request.nextChunkId++;
2099
+ request.fatalError = errorId$26;
2100
2100
  request.pendingChunks++;
2101
- emitErrorChunk(request, errorId$27, digest, error, !1);
2101
+ emitErrorChunk(request, errorId$26, digest, error, !1);
2102
2102
  abortableTasks.forEach(function (task) {
2103
- return abortTask(task, request, errorId$27);
2103
+ return abortTask(task, request, errorId$26);
2104
2104
  });
2105
2105
  scheduleWork(function () {
2106
- return finishAbort(request, abortableTasks, errorId$27);
2106
+ return finishAbort(request, abortableTasks, errorId$26);
2107
2107
  });
2108
2108
  }
2109
2109
  else {
@@ -2112,9 +2112,9 @@ function abort(request, reason) {
2112
2112
  null !== request.destination &&
2113
2113
  flushCompletedChunks(request, request.destination);
2114
2114
  }
2115
- } catch (error$28) {
2116
- logRecoverableError(request, error$28, null),
2117
- fatalError(request, error$28);
2115
+ } catch (error$27) {
2116
+ logRecoverableError(request, error$27, null),
2117
+ fatalError(request, error$27);
2118
2118
  }
2119
2119
  }
2120
2120
  function resolveServerReference(bundlerConfig, id) {
@@ -2571,8 +2571,8 @@ function parseReadableStream(response, reference, type) {
2571
2571
  (previousBlockedChunk = chunk));
2572
2572
  } else {
2573
2573
  chunk = previousBlockedChunk;
2574
- var chunk$31 = createPendingChunk(response);
2575
- chunk$31.then(
2574
+ var chunk$30 = createPendingChunk(response);
2575
+ chunk$30.then(
2576
2576
  function (v) {
2577
2577
  return controller.enqueue(v);
2578
2578
  },
@@ -2580,10 +2580,10 @@ function parseReadableStream(response, reference, type) {
2580
2580
  return controller.error(e);
2581
2581
  }
2582
2582
  );
2583
- previousBlockedChunk = chunk$31;
2583
+ previousBlockedChunk = chunk$30;
2584
2584
  chunk.then(function () {
2585
- previousBlockedChunk === chunk$31 && (previousBlockedChunk = null);
2586
- resolveModelChunk(chunk$31, json, -1);
2585
+ previousBlockedChunk === chunk$30 && (previousBlockedChunk = null);
2586
+ resolveModelChunk(chunk$30, json, -1);
2587
2587
  });
2588
2588
  }
2589
2589
  },