react-server-dom-parcel 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.
@@ -2210,6 +2210,13 @@
2210
2210
  }
2211
2211
  case "Y":
2212
2212
  if (2 < value.length && (ref = response._debugChannel)) {
2213
+ if ("@" === value[2])
2214
+ return (
2215
+ (parentObject = value.slice(3)),
2216
+ (key = parseInt(parentObject, 16)),
2217
+ response._chunks.has(key) || ref("P:" + parentObject),
2218
+ getChunk(response, key)
2219
+ );
2213
2220
  value = value.slice(2);
2214
2221
  var _id2 = parseInt(value, 16);
2215
2222
  response._chunks.has(_id2) || ref("Q:" + value);
@@ -4109,10 +4116,10 @@
4109
4116
  return hook.checkDCE ? !0 : !1;
4110
4117
  })({
4111
4118
  bundleType: 1,
4112
- version: "19.2.0-experimental-befc1246-20250708",
4119
+ version: "19.2.0-experimental-e6dc25da-20250709",
4113
4120
  rendererPackageName: "react-server-dom-parcel",
4114
4121
  currentDispatcherRef: ReactSharedInternals,
4115
- reconcilerVersion: "19.2.0-experimental-befc1246-20250708",
4122
+ reconcilerVersion: "19.2.0-experimental-e6dc25da-20250709",
4116
4123
  getCurrentComponentInfo: function () {
4117
4124
  return currentOwnerInDEV;
4118
4125
  }
@@ -2380,6 +2380,13 @@
2380
2380
  }
2381
2381
  case "Y":
2382
2382
  if (2 < value.length && (ref = response._debugChannel)) {
2383
+ if ("@" === value[2])
2384
+ return (
2385
+ (parentObject = value.slice(3)),
2386
+ (key = parseInt(parentObject, 16)),
2387
+ response._chunks.has(key) || ref("P:" + parentObject),
2388
+ getChunk(response, key)
2389
+ );
2383
2390
  value = value.slice(2);
2384
2391
  var _id2 = parseInt(value, 16);
2385
2392
  response._chunks.has(_id2) || ref("Q:" + value);
@@ -2380,6 +2380,13 @@
2380
2380
  }
2381
2381
  case "Y":
2382
2382
  if (2 < value.length && (ref = response._debugChannel)) {
2383
+ if ("@" === value[2])
2384
+ return (
2385
+ (parentObject = value.slice(3)),
2386
+ (key = parseInt(parentObject, 16)),
2387
+ response._chunks.has(key) || ref("P:" + parentObject),
2388
+ getChunk(response, key)
2389
+ );
2383
2390
  value = value.slice(2);
2384
2391
  var _id2 = parseInt(value, 16);
2385
2392
  response._chunks.has(_id2) || ref("Q:" + value);
@@ -150,72 +150,77 @@
150
150
  ((hasProperties = !0), (trimmed[key] = options[key]));
151
151
  return hasProperties ? trimmed : null;
152
152
  }
153
- function collectStackTrace(error, structuredStackTrace) {
154
- for (
155
- var result = [], i = framesToSkip;
156
- i < structuredStackTrace.length;
157
- i++
158
- ) {
153
+ function collectStackTracePrivate(error, structuredStackTrace) {
154
+ error = [];
155
+ for (var i = framesToSkip; i < structuredStackTrace.length; i++) {
159
156
  var callSite = structuredStackTrace[i],
160
- _name = callSite.getFunctionName() || "<anonymous>";
161
- if (_name.includes("react_stack_bottom_frame")) break;
162
- else if (callSite.isNative()) result.push([_name, "", 0, 0, 0, 0]);
157
+ name = callSite.getFunctionName() || "<anonymous>";
158
+ if (name.includes("react_stack_bottom_frame")) break;
159
+ else if (callSite.isNative())
160
+ (callSite = callSite.isAsync()),
161
+ error.push([name, "", 0, 0, 0, 0, callSite]);
163
162
  else {
164
- if (callSite.isConstructor()) _name = "new " + _name;
163
+ if (callSite.isConstructor()) name = "new " + name;
165
164
  else if (!callSite.isToplevel()) {
166
165
  var callSite$jscomp$0 = callSite;
167
- _name = callSite$jscomp$0.getTypeName();
166
+ name = callSite$jscomp$0.getTypeName();
168
167
  var methodName = callSite$jscomp$0.getMethodName();
169
168
  callSite$jscomp$0 = callSite$jscomp$0.getFunctionName();
170
- var result$jscomp$0 = "";
169
+ var result = "";
171
170
  callSite$jscomp$0
172
- ? (_name &&
171
+ ? (name &&
173
172
  identifierRegExp.test(callSite$jscomp$0) &&
174
- callSite$jscomp$0 !== _name &&
175
- (result$jscomp$0 += _name + "."),
176
- (result$jscomp$0 += callSite$jscomp$0),
173
+ callSite$jscomp$0 !== name &&
174
+ (result += name + "."),
175
+ (result += callSite$jscomp$0),
177
176
  !methodName ||
178
177
  callSite$jscomp$0 === methodName ||
179
178
  callSite$jscomp$0.endsWith("." + methodName) ||
180
179
  callSite$jscomp$0.endsWith(" " + methodName) ||
181
- (result$jscomp$0 += " [as " + methodName + "]"))
182
- : (_name && (result$jscomp$0 += _name + "."),
183
- (result$jscomp$0 = methodName
184
- ? result$jscomp$0 + methodName
185
- : result$jscomp$0 + "<anonymous>"));
186
- _name = result$jscomp$0;
180
+ (result += " [as " + methodName + "]"))
181
+ : (name && (result += name + "."),
182
+ (result = methodName
183
+ ? result + methodName
184
+ : result + "<anonymous>"));
185
+ name = result;
187
186
  }
188
- "<anonymous>" === _name && (_name = "");
187
+ "<anonymous>" === name && (name = "");
189
188
  methodName = callSite.getScriptNameOrSourceURL() || "<anonymous>";
190
- "<anonymous>" === methodName && (methodName = "");
191
- callSite.isEval() &&
192
- !methodName &&
193
- (callSite$jscomp$0 = callSite.getEvalOrigin()) &&
194
- (methodName = callSite$jscomp$0.toString() + ", <anonymous>");
189
+ "<anonymous>" === methodName &&
190
+ ((methodName = ""),
191
+ callSite.isEval() &&
192
+ (callSite$jscomp$0 = callSite.getEvalOrigin()) &&
193
+ (methodName = callSite$jscomp$0.toString() + ", <anonymous>"));
195
194
  callSite$jscomp$0 = callSite.getLineNumber() || 0;
196
- result$jscomp$0 = callSite.getColumnNumber() || 0;
195
+ result = callSite.getColumnNumber() || 0;
197
196
  var enclosingLine =
198
- "function" === typeof callSite.getEnclosingLineNumber
199
- ? callSite.getEnclosingLineNumber() || 0
200
- : 0;
201
- callSite =
202
- "function" === typeof callSite.getEnclosingColumnNumber
203
- ? callSite.getEnclosingColumnNumber() || 0
204
- : 0;
205
- result.push([
206
- _name,
197
+ "function" === typeof callSite.getEnclosingLineNumber
198
+ ? callSite.getEnclosingLineNumber() || 0
199
+ : 0,
200
+ enclosingCol =
201
+ "function" === typeof callSite.getEnclosingColumnNumber
202
+ ? callSite.getEnclosingColumnNumber() || 0
203
+ : 0;
204
+ callSite = callSite.isAsync();
205
+ error.push([
206
+ name,
207
207
  methodName,
208
208
  callSite$jscomp$0,
209
- result$jscomp$0,
209
+ result,
210
210
  enclosingLine,
211
+ enclosingCol,
211
212
  callSite
212
213
  ]);
213
214
  }
214
215
  }
216
+ collectedStackTrace = error;
217
+ return "";
218
+ }
219
+ function collectStackTrace(error, structuredStackTrace) {
220
+ collectStackTracePrivate(error, structuredStackTrace);
215
221
  error = (error.name || "Error") + ": " + (error.message || "");
216
- for (i = 0; i < structuredStackTrace.length; i++)
222
+ for (var i = 0; i < structuredStackTrace.length; i++)
217
223
  error += "\n at " + structuredStackTrace[i].toString();
218
- collectedStackTrace = result;
219
224
  return error;
220
225
  }
221
226
  function parseStackTrace(error, skipFrames) {
@@ -232,10 +237,10 @@
232
237
  }
233
238
  if (null !== collectedStackTrace)
234
239
  return (
235
- (skipFrames = collectedStackTrace),
240
+ (stack = collectedStackTrace),
236
241
  (collectedStackTrace = null),
237
- stackTraceCache.set(error, skipFrames),
238
- skipFrames
242
+ stackTraceCache.set(error, stack),
243
+ stack
239
244
  );
240
245
  stack.startsWith("Error: react-stack-top-frame\n") &&
241
246
  (stack = stack.slice(29));
@@ -246,8 +251,12 @@
246
251
  for (existing = []; skipFrames < stack.length; skipFrames++) {
247
252
  var parsed = frameRegExp.exec(stack[skipFrames]);
248
253
  if (parsed) {
249
- var name = parsed[1] || "";
250
- "<anonymous>" === name && (name = "");
254
+ var name = parsed[1] || "",
255
+ isAsync = "async " === parsed[8];
256
+ "<anonymous>" === name
257
+ ? (name = "")
258
+ : name.startsWith("async ") &&
259
+ ((name = name.slice(5)), (isAsync = !0));
251
260
  var filename = parsed[2] || parsed[5] || "";
252
261
  "<anonymous>" === filename && (filename = "");
253
262
  existing.push([
@@ -256,7 +265,8 @@
256
265
  +(parsed[3] || parsed[6]),
257
266
  +(parsed[4] || parsed[7]),
258
267
  0,
259
- 0
268
+ 0,
269
+ isAsync
260
270
  ]);
261
271
  }
262
272
  }
@@ -597,13 +607,29 @@
597
607
  var wrapperMethod = function () {
598
608
  var request = resolveRequest();
599
609
  if (("assert" !== methodName || !arguments[0]) && null !== request) {
600
- var stack = filterStackTrace(
610
+ a: {
611
+ var error = Error("react-stack-top-frame");
612
+ collectedStackTrace = null;
613
+ framesToSkip = 1;
614
+ var previousPrepare = Error.prepareStackTrace;
615
+ Error.prepareStackTrace = collectStackTracePrivate;
616
+ try {
617
+ if ("" !== error.stack) {
618
+ var JSCompiler_inline_result = null;
619
+ break a;
620
+ }
621
+ } finally {
622
+ Error.prepareStackTrace = previousPrepare;
623
+ }
624
+ JSCompiler_inline_result = collectedStackTrace;
625
+ }
626
+ JSCompiler_inline_result = filterStackTrace(
601
627
  request,
602
- parseStackTrace(Error("react-stack-top-frame"), 1)
628
+ JSCompiler_inline_result || []
603
629
  );
604
630
  request.pendingDebugChunks++;
605
- var owner = resolveOwner(),
606
- args = Array.from(arguments);
631
+ error = resolveOwner();
632
+ previousPrepare = Array.from(arguments);
607
633
  a: {
608
634
  var env = 0;
609
635
  switch (methodName) {
@@ -616,37 +642,44 @@
616
642
  case "assert":
617
643
  env = 1;
618
644
  }
619
- var format = args[env],
620
- style = args[env + 1],
621
- badge = args[env + 2];
645
+ var format = previousPrepare[env],
646
+ style = previousPrepare[env + 1],
647
+ badge = previousPrepare[env + 2];
622
648
  "string" === typeof format &&
623
649
  format.startsWith("%c%s%c ") &&
624
650
  "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" ===
625
651
  style &&
626
652
  "string" === typeof badge
627
- ? (args.splice(env, 4, format.slice(7)),
653
+ ? (previousPrepare.splice(env, 4, format.slice(7)),
628
654
  (env = badge.slice(1, badge.length - 1)))
629
655
  : (env = null);
630
656
  }
631
657
  null === env && (env = (0, request.environmentName)());
632
- null != owner && outlineComponentInfo(request, owner);
633
- format = [methodName, stack, owner, env];
634
- format.push.apply(format, args);
635
- args = serializeDebugModel(
658
+ null != error && outlineComponentInfo(request, error);
659
+ format = [methodName, JSCompiler_inline_result, error, env];
660
+ format.push.apply(format, previousPrepare);
661
+ previousPrepare = serializeDebugModel(
636
662
  request,
637
- (null === request.deferredDebugObjects ? 500 : 10) + stack.length,
663
+ (null === request.deferredDebugObjects ? 500 : 10) +
664
+ JSCompiler_inline_result.length,
638
665
  format
639
666
  );
640
- "[" !== args[0] &&
641
- (args = serializeDebugModel(request, 10 + stack.length, [
642
- methodName,
643
- stack,
644
- owner,
645
- env,
646
- "Unknown Value: React could not send it from the server."
647
- ]));
648
- stack = stringToChunk(":W" + args + "\n");
649
- request.completedDebugChunks.push(stack);
667
+ "[" !== previousPrepare[0] &&
668
+ (previousPrepare = serializeDebugModel(
669
+ request,
670
+ 10 + JSCompiler_inline_result.length,
671
+ [
672
+ methodName,
673
+ JSCompiler_inline_result,
674
+ error,
675
+ env,
676
+ "Unknown Value: React could not send it from the server."
677
+ ]
678
+ ));
679
+ JSCompiler_inline_result = stringToChunk(
680
+ ":W" + previousPrepare + "\n"
681
+ );
682
+ request.completedDebugChunks.push(JSCompiler_inline_result);
650
683
  }
651
684
  return originalMethod.apply(this, arguments);
652
685
  };
@@ -898,6 +931,14 @@
898
931
  }
899
932
  if (request.status === ABORTING)
900
933
  return emitDebugHaltChunk(request, id), ref;
934
+ var deferredDebugObjects = request.deferredDebugObjects;
935
+ if (null !== deferredDebugObjects)
936
+ return (
937
+ deferredDebugObjects.retained.set(id, thenable),
938
+ (ref = "$Y@" + id.toString(16)),
939
+ request.writtenDebugObjects.set(thenable, ref),
940
+ ref
941
+ );
901
942
  var cancelled = !1;
902
943
  thenable.then(
903
944
  function (value) {
@@ -926,6 +967,22 @@
926
967
  });
927
968
  return ref;
928
969
  }
970
+ function emitRequestedDebugThenable(request, id, counter, thenable) {
971
+ thenable.then(
972
+ function (value) {
973
+ request.status === ABORTING
974
+ ? emitDebugHaltChunk(request, id)
975
+ : emitOutlinedDebugModelChunk(request, id, counter, value);
976
+ enqueueFlush(request);
977
+ },
978
+ function (reason) {
979
+ request.status === ABORTING
980
+ ? emitDebugHaltChunk(request, id)
981
+ : emitErrorChunk(request, id, "", reason, !0);
982
+ enqueueFlush(request);
983
+ }
984
+ );
985
+ }
929
986
  function serializeThenable(request, task, thenable) {
930
987
  var newTask = createTask(
931
988
  request,
@@ -2595,6 +2652,8 @@
2595
2652
  ((existingDebugReference = tempRef.get(parent)),
2596
2653
  void 0 !== existingDebugReference)
2597
2654
  ) {
2655
+ if (0 >= counter.objectLimit && !doNotLimit.has(value))
2656
+ return serializeDeferredObject(request, value);
2598
2657
  var propertyName = parentPropertyName;
2599
2658
  if (isArrayImpl(parent) && parent[0] === REACT_ELEMENT_TYPE)
2600
2659
  switch (parentPropertyName) {
@@ -2611,11 +2670,12 @@
2611
2670
  propertyName = "_owner";
2612
2671
  }
2613
2672
  tempRef.set(value, existingDebugReference + ":" + propertyName);
2614
- } else if (debugNoOutline !== value)
2615
- return (
2616
- (request = outlineDebugModel(request, counter, value)),
2617
- serializeByValueID(request)
2618
- );
2673
+ } else if (debugNoOutline !== value) {
2674
+ if ("function" === typeof value.then)
2675
+ return serializeDebugThenable(request, counter, value);
2676
+ request = outlineDebugModel(request, counter, value);
2677
+ return serializeByValueID(request);
2678
+ }
2619
2679
  parent = request.writtenObjects.get(value);
2620
2680
  if (void 0 !== parent) return parent;
2621
2681
  if (0 >= counter.objectLimit && !doNotLimit.has(value))
@@ -2954,10 +3014,10 @@
2954
3014
  start: ioInfo$jscomp$0.start - request$jscomp$0.timeOrigin,
2955
3015
  end: ioInfo$jscomp$0.end - request$jscomp$0.timeOrigin
2956
3016
  };
2957
- void 0 !== value && (debugIOInfo.value = value);
2958
3017
  null != env && (debugIOInfo.env = env);
2959
3018
  null != debugStack && (debugIOInfo.stack = debugStack);
2960
3019
  null != owner && (debugIOInfo.owner = owner);
3020
+ void 0 !== value && (debugIOInfo.value = value);
2961
3021
  value = serializeDebugModel(
2962
3022
  request$jscomp$0,
2963
3023
  objectLimit,
@@ -4191,6 +4251,19 @@
4191
4251
  ),
4192
4252
  enqueueFlush(request));
4193
4253
  break;
4254
+ case 80:
4255
+ for (command = 0; command < message.length; command++)
4256
+ (id = message[command]),
4257
+ (retainedValue = deferredDebugObjects.retained.get(id)),
4258
+ void 0 !== retainedValue &&
4259
+ (deferredDebugObjects.retained.delete(id),
4260
+ emitRequestedDebugThenable(
4261
+ request,
4262
+ id,
4263
+ { objectLimit: 10 },
4264
+ retainedValue
4265
+ ));
4266
+ break;
4194
4267
  default:
4195
4268
  throw Error(
4196
4269
  "Unknown command. The debugChannel was not wired up properly."
@@ -748,8 +748,8 @@ function serializeReadableStream(request, task, stream) {
748
748
  tryStreamTask(request, streamTask),
749
749
  enqueueFlush(request),
750
750
  reader.read().then(progress, error);
751
- } catch (x$9) {
752
- error(x$9);
751
+ } catch (x$8) {
752
+ error(x$8);
753
753
  }
754
754
  }
755
755
  function error(reason) {
@@ -826,8 +826,8 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
826
826
  tryStreamTask(request, streamTask),
827
827
  enqueueFlush(request),
828
828
  iterator.next().then(progress, error);
829
- } catch (x$10) {
830
- error(x$10);
829
+ } catch (x$9) {
830
+ error(x$9);
831
831
  }
832
832
  }
833
833
  function error(reason) {
@@ -1953,15 +1953,15 @@ function abort(request, reason) {
1953
1953
  )
1954
1954
  : reason,
1955
1955
  digest = logRecoverableError(request, error, null),
1956
- errorId$27 = request.nextChunkId++;
1957
- request.fatalError = errorId$27;
1956
+ errorId$26 = request.nextChunkId++;
1957
+ request.fatalError = errorId$26;
1958
1958
  request.pendingChunks++;
1959
- emitErrorChunk(request, errorId$27, digest, error, !1);
1959
+ emitErrorChunk(request, errorId$26, digest, error, !1);
1960
1960
  abortableTasks.forEach(function (task) {
1961
- return abortTask(task, request, errorId$27);
1961
+ return abortTask(task, request, errorId$26);
1962
1962
  });
1963
1963
  scheduleWork(function () {
1964
- return finishAbort(request, abortableTasks, errorId$27);
1964
+ return finishAbort(request, abortableTasks, errorId$26);
1965
1965
  });
1966
1966
  }
1967
1967
  else {
@@ -1970,9 +1970,9 @@ function abort(request, reason) {
1970
1970
  null !== request.destination &&
1971
1971
  flushCompletedChunks(request, request.destination);
1972
1972
  }
1973
- } catch (error$28) {
1974
- logRecoverableError(request, error$28, null),
1975
- fatalError(request, error$28);
1973
+ } catch (error$27) {
1974
+ logRecoverableError(request, error$27, null),
1975
+ fatalError(request, error$27);
1976
1976
  }
1977
1977
  }
1978
1978
  function Chunk(status, value, reason, response) {
@@ -2345,8 +2345,8 @@ function parseReadableStream(response, reference, type) {
2345
2345
  (previousBlockedChunk = chunk));
2346
2346
  } else {
2347
2347
  chunk = previousBlockedChunk;
2348
- var chunk$31 = createPendingChunk(response);
2349
- chunk$31.then(
2348
+ var chunk$30 = createPendingChunk(response);
2349
+ chunk$30.then(
2350
2350
  function (v) {
2351
2351
  return controller.enqueue(v);
2352
2352
  },
@@ -2354,10 +2354,10 @@ function parseReadableStream(response, reference, type) {
2354
2354
  return controller.error(e);
2355
2355
  }
2356
2356
  );
2357
- previousBlockedChunk = chunk$31;
2357
+ previousBlockedChunk = chunk$30;
2358
2358
  chunk.then(function () {
2359
- previousBlockedChunk === chunk$31 && (previousBlockedChunk = null);
2360
- resolveModelChunk(chunk$31, json, -1);
2359
+ previousBlockedChunk === chunk$30 && (previousBlockedChunk = null);
2360
+ resolveModelChunk(chunk$30, json, -1);
2361
2361
  });
2362
2362
  }
2363
2363
  },