react-server-dom-webpack 19.2.0-canary-f7396427-20250501 → 19.2.0-canary-b9cfa0d3-20250505

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.
@@ -2693,10 +2693,10 @@
2693
2693
  return hook.checkDCE ? !0 : !1;
2694
2694
  })({
2695
2695
  bundleType: 1,
2696
- version: "19.2.0-canary-f7396427-20250501",
2696
+ version: "19.2.0-canary-b9cfa0d3-20250505",
2697
2697
  rendererPackageName: "react-server-dom-webpack",
2698
2698
  currentDispatcherRef: ReactSharedInternals,
2699
- reconcilerVersion: "19.2.0-canary-f7396427-20250501",
2699
+ reconcilerVersion: "19.2.0-canary-b9cfa0d3-20250505",
2700
2700
  getCurrentComponentInfo: function () {
2701
2701
  return currentOwnerInDEV;
2702
2702
  }
@@ -1627,6 +1627,7 @@
1627
1627
  return "$B" + newTask.id.toString(16);
1628
1628
  }
1629
1629
  function renderModel(request, task, parent, key, value) {
1630
+ serializedSize += key.length;
1630
1631
  var prevKeyPath = task.keyPath,
1631
1632
  prevImplicitSlot = task.implicitSlot;
1632
1633
  try {
@@ -1692,7 +1693,6 @@
1692
1693
  value
1693
1694
  ) {
1694
1695
  task.model = value;
1695
- serializedSize += parentPropertyName.length;
1696
1696
  if (value === REACT_ELEMENT_TYPE) return "$";
1697
1697
  if (null === value) return null;
1698
1698
  if ("object" === typeof value) {
@@ -2413,43 +2413,36 @@
2413
2413
  }
2414
2414
  function emitChunk(request, task, value) {
2415
2415
  var id = task.id;
2416
- if ("string" === typeof value && null !== byteLengthOfChunk)
2417
- emitTextChunk(request, id, value);
2418
- else if (value instanceof ArrayBuffer)
2419
- emitTypedArrayChunk(request, id, "A", new Uint8Array(value));
2420
- else if (value instanceof Int8Array)
2421
- emitTypedArrayChunk(request, id, "O", value);
2422
- else if (value instanceof Uint8Array)
2423
- emitTypedArrayChunk(request, id, "o", value);
2424
- else if (value instanceof Uint8ClampedArray)
2425
- emitTypedArrayChunk(request, id, "U", value);
2426
- else if (value instanceof Int16Array)
2427
- emitTypedArrayChunk(request, id, "S", value);
2428
- else if (value instanceof Uint16Array)
2429
- emitTypedArrayChunk(request, id, "s", value);
2430
- else if (value instanceof Int32Array)
2431
- emitTypedArrayChunk(request, id, "L", value);
2432
- else if (value instanceof Uint32Array)
2433
- emitTypedArrayChunk(request, id, "l", value);
2434
- else if (value instanceof Float32Array)
2435
- emitTypedArrayChunk(request, id, "G", value);
2436
- else if (value instanceof Float64Array)
2437
- emitTypedArrayChunk(request, id, "g", value);
2438
- else if (value instanceof BigInt64Array)
2439
- emitTypedArrayChunk(request, id, "M", value);
2440
- else if (value instanceof BigUint64Array)
2441
- emitTypedArrayChunk(request, id, "m", value);
2442
- else if (value instanceof DataView)
2443
- emitTypedArrayChunk(request, id, "V", value);
2444
- else {
2445
- id = serializedSize;
2446
- try {
2447
- var json = stringify(value, task.toJSON);
2448
- emitModelChunk(request, task.id, json);
2449
- } finally {
2450
- serializedSize = id;
2451
- }
2452
- }
2416
+ "string" === typeof value && null !== byteLengthOfChunk
2417
+ ? emitTextChunk(request, id, value)
2418
+ : value instanceof ArrayBuffer
2419
+ ? emitTypedArrayChunk(request, id, "A", new Uint8Array(value))
2420
+ : value instanceof Int8Array
2421
+ ? emitTypedArrayChunk(request, id, "O", value)
2422
+ : value instanceof Uint8Array
2423
+ ? emitTypedArrayChunk(request, id, "o", value)
2424
+ : value instanceof Uint8ClampedArray
2425
+ ? emitTypedArrayChunk(request, id, "U", value)
2426
+ : value instanceof Int16Array
2427
+ ? emitTypedArrayChunk(request, id, "S", value)
2428
+ : value instanceof Uint16Array
2429
+ ? emitTypedArrayChunk(request, id, "s", value)
2430
+ : value instanceof Int32Array
2431
+ ? emitTypedArrayChunk(request, id, "L", value)
2432
+ : value instanceof Uint32Array
2433
+ ? emitTypedArrayChunk(request, id, "l", value)
2434
+ : value instanceof Float32Array
2435
+ ? emitTypedArrayChunk(request, id, "G", value)
2436
+ : value instanceof Float64Array
2437
+ ? emitTypedArrayChunk(request, id, "g", value)
2438
+ : value instanceof BigInt64Array
2439
+ ? emitTypedArrayChunk(request, id, "M", value)
2440
+ : value instanceof BigUint64Array
2441
+ ? emitTypedArrayChunk(request, id, "m", value)
2442
+ : value instanceof DataView
2443
+ ? emitTypedArrayChunk(request, id, "V", value)
2444
+ : ((value = stringify(value, task.toJSON)),
2445
+ emitModelChunk(request, task.id, value));
2453
2446
  }
2454
2447
  function erroredTask(request, task, error) {
2455
2448
  task.status = ERRORED$1;
@@ -2462,6 +2455,7 @@
2462
2455
  if (task.status === PENDING$1) {
2463
2456
  var prevDebugID = debugID;
2464
2457
  task.status = RENDERING;
2458
+ var parentSerializedSize = serializedSize;
2465
2459
  try {
2466
2460
  modelRoot = task.model;
2467
2461
  debugID = task.id;
@@ -2516,17 +2510,18 @@
2516
2510
  } else erroredTask(request, task, x);
2517
2511
  }
2518
2512
  } finally {
2519
- debugID = prevDebugID;
2513
+ (debugID = prevDebugID), (serializedSize = parentSerializedSize);
2520
2514
  }
2521
2515
  }
2522
2516
  }
2523
2517
  function tryStreamTask(request, task) {
2524
2518
  var prevDebugID = debugID;
2525
2519
  debugID = null;
2520
+ var parentSerializedSize = serializedSize;
2526
2521
  try {
2527
2522
  emitChunk(request, task, task.model);
2528
2523
  } finally {
2529
- debugID = prevDebugID;
2524
+ (serializedSize = parentSerializedSize), (debugID = prevDebugID);
2530
2525
  }
2531
2526
  }
2532
2527
  function performWork(request) {
@@ -3780,11 +3775,11 @@
3780
3775
  throw Error("useId can only be used while React is rendering");
3781
3776
  var id = currentRequest$1.identifierCount++;
3782
3777
  return (
3783
- ":" +
3778
+ "\u00ab" +
3784
3779
  currentRequest$1.identifierPrefix +
3785
3780
  "S" +
3786
3781
  id.toString(32) +
3787
- ":"
3782
+ "\u00bb"
3788
3783
  );
3789
3784
  },
3790
3785
  useHostTransitionStatus: unsupportedHook,
@@ -554,7 +554,13 @@ function useId() {
554
554
  if (null === currentRequest$1)
555
555
  throw Error("useId can only be used while React is rendering");
556
556
  var id = currentRequest$1.identifierCount++;
557
- return ":" + currentRequest$1.identifierPrefix + "S" + id.toString(32) + ":";
557
+ return (
558
+ "\u00ab" +
559
+ currentRequest$1.identifierPrefix +
560
+ "S" +
561
+ id.toString(32) +
562
+ "\u00bb"
563
+ );
558
564
  }
559
565
  function use(usable) {
560
566
  if (
@@ -831,7 +837,7 @@ function serializeReadableStream(request, task, stream) {
831
837
  try {
832
838
  (streamTask.model = entry.value),
833
839
  request.pendingChunks++,
834
- emitChunk(request, streamTask, streamTask.model),
840
+ tryStreamTask(request, streamTask),
835
841
  enqueueFlush(request),
836
842
  reader.read().then(progress, error);
837
843
  } catch (x$7) {
@@ -905,7 +911,7 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
905
911
  try {
906
912
  (streamTask.model = entry.value),
907
913
  request.pendingChunks++,
908
- emitChunk(request, streamTask, streamTask.model),
914
+ tryStreamTask(request, streamTask),
909
915
  enqueueFlush(request),
910
916
  iterator.next().then(progress, error);
911
917
  } catch (x$8) {
@@ -1139,6 +1145,7 @@ function createTask(request, model, keyPath, implicitSlot, abortSet) {
1139
1145
  return pingTask(request, task);
1140
1146
  },
1141
1147
  toJSON: function (parentPropertyName, value) {
1148
+ serializedSize += parentPropertyName.length;
1142
1149
  var prevKeyPath = task.keyPath,
1143
1150
  prevImplicitSlot = task.implicitSlot;
1144
1151
  try {
@@ -1334,7 +1341,6 @@ function renderModelDestructive(
1334
1341
  value
1335
1342
  ) {
1336
1343
  task.model = value;
1337
- serializedSize += parentPropertyName.length;
1338
1344
  if (value === REACT_ELEMENT_TYPE) return "$";
1339
1345
  if (null === value) return null;
1340
1346
  if ("object" === typeof value) {
@@ -1690,43 +1696,36 @@ function emitTextChunk(request, id, text) {
1690
1696
  }
1691
1697
  function emitChunk(request, task, value) {
1692
1698
  var id = task.id;
1693
- if ("string" === typeof value && null !== byteLengthOfChunk)
1694
- emitTextChunk(request, id, value);
1695
- else if (value instanceof ArrayBuffer)
1696
- emitTypedArrayChunk(request, id, "A", new Uint8Array(value));
1697
- else if (value instanceof Int8Array)
1698
- emitTypedArrayChunk(request, id, "O", value);
1699
- else if (value instanceof Uint8Array)
1700
- emitTypedArrayChunk(request, id, "o", value);
1701
- else if (value instanceof Uint8ClampedArray)
1702
- emitTypedArrayChunk(request, id, "U", value);
1703
- else if (value instanceof Int16Array)
1704
- emitTypedArrayChunk(request, id, "S", value);
1705
- else if (value instanceof Uint16Array)
1706
- emitTypedArrayChunk(request, id, "s", value);
1707
- else if (value instanceof Int32Array)
1708
- emitTypedArrayChunk(request, id, "L", value);
1709
- else if (value instanceof Uint32Array)
1710
- emitTypedArrayChunk(request, id, "l", value);
1711
- else if (value instanceof Float32Array)
1712
- emitTypedArrayChunk(request, id, "G", value);
1713
- else if (value instanceof Float64Array)
1714
- emitTypedArrayChunk(request, id, "g", value);
1715
- else if (value instanceof BigInt64Array)
1716
- emitTypedArrayChunk(request, id, "M", value);
1717
- else if (value instanceof BigUint64Array)
1718
- emitTypedArrayChunk(request, id, "m", value);
1719
- else if (value instanceof DataView)
1720
- emitTypedArrayChunk(request, id, "V", value);
1721
- else {
1722
- id = serializedSize;
1723
- try {
1724
- var json = stringify(value, task.toJSON);
1725
- emitModelChunk(request, task.id, json);
1726
- } finally {
1727
- serializedSize = id;
1728
- }
1729
- }
1699
+ "string" === typeof value && null !== byteLengthOfChunk
1700
+ ? emitTextChunk(request, id, value)
1701
+ : value instanceof ArrayBuffer
1702
+ ? emitTypedArrayChunk(request, id, "A", new Uint8Array(value))
1703
+ : value instanceof Int8Array
1704
+ ? emitTypedArrayChunk(request, id, "O", value)
1705
+ : value instanceof Uint8Array
1706
+ ? emitTypedArrayChunk(request, id, "o", value)
1707
+ : value instanceof Uint8ClampedArray
1708
+ ? emitTypedArrayChunk(request, id, "U", value)
1709
+ : value instanceof Int16Array
1710
+ ? emitTypedArrayChunk(request, id, "S", value)
1711
+ : value instanceof Uint16Array
1712
+ ? emitTypedArrayChunk(request, id, "s", value)
1713
+ : value instanceof Int32Array
1714
+ ? emitTypedArrayChunk(request, id, "L", value)
1715
+ : value instanceof Uint32Array
1716
+ ? emitTypedArrayChunk(request, id, "l", value)
1717
+ : value instanceof Float32Array
1718
+ ? emitTypedArrayChunk(request, id, "G", value)
1719
+ : value instanceof Float64Array
1720
+ ? emitTypedArrayChunk(request, id, "g", value)
1721
+ : value instanceof BigInt64Array
1722
+ ? emitTypedArrayChunk(request, id, "M", value)
1723
+ : value instanceof BigUint64Array
1724
+ ? emitTypedArrayChunk(request, id, "m", value)
1725
+ : value instanceof DataView
1726
+ ? emitTypedArrayChunk(request, id, "V", value)
1727
+ : ((value = stringify(value, task.toJSON)),
1728
+ emitModelChunk(request, task.id, value));
1730
1729
  }
1731
1730
  function erroredTask(request, task, error) {
1732
1731
  task.status = 4;
@@ -1739,6 +1738,7 @@ var emptyRoot = {};
1739
1738
  function retryTask(request, task) {
1740
1739
  if (0 === task.status) {
1741
1740
  task.status = 5;
1741
+ var parentSerializedSize = serializedSize;
1742
1742
  try {
1743
1743
  modelRoot = task.model;
1744
1744
  var resolvedModel = renderModelDestructive(
@@ -1784,9 +1784,18 @@ function retryTask(request, task) {
1784
1784
  } else erroredTask(request, task, x);
1785
1785
  }
1786
1786
  } finally {
1787
+ serializedSize = parentSerializedSize;
1787
1788
  }
1788
1789
  }
1789
1790
  }
1791
+ function tryStreamTask(request, task) {
1792
+ var parentSerializedSize = serializedSize;
1793
+ try {
1794
+ emitChunk(request, task, task.model);
1795
+ } finally {
1796
+ serializedSize = parentSerializedSize;
1797
+ }
1798
+ }
1790
1799
  function performWork(request) {
1791
1800
  var prevDispatcher = ReactSharedInternalsServer.H;
1792
1801
  ReactSharedInternalsServer.H = HooksDispatcher;
@@ -1690,6 +1690,7 @@
1690
1690
  return "$B" + newTask.id.toString(16);
1691
1691
  }
1692
1692
  function renderModel(request, task, parent, key, value) {
1693
+ serializedSize += key.length;
1693
1694
  var prevKeyPath = task.keyPath,
1694
1695
  prevImplicitSlot = task.implicitSlot;
1695
1696
  try {
@@ -1755,7 +1756,6 @@
1755
1756
  value
1756
1757
  ) {
1757
1758
  task.model = value;
1758
- serializedSize += parentPropertyName.length;
1759
1759
  if (value === REACT_ELEMENT_TYPE) return "$";
1760
1760
  if (null === value) return null;
1761
1761
  if ("object" === typeof value) {
@@ -2487,43 +2487,36 @@
2487
2487
  }
2488
2488
  function emitChunk(request, task, value) {
2489
2489
  var id = task.id;
2490
- if ("string" === typeof value && null !== byteLengthOfChunk)
2491
- emitTextChunk(request, id, value);
2492
- else if (value instanceof ArrayBuffer)
2493
- emitTypedArrayChunk(request, id, "A", new Uint8Array(value));
2494
- else if (value instanceof Int8Array)
2495
- emitTypedArrayChunk(request, id, "O", value);
2496
- else if (value instanceof Uint8Array)
2497
- emitTypedArrayChunk(request, id, "o", value);
2498
- else if (value instanceof Uint8ClampedArray)
2499
- emitTypedArrayChunk(request, id, "U", value);
2500
- else if (value instanceof Int16Array)
2501
- emitTypedArrayChunk(request, id, "S", value);
2502
- else if (value instanceof Uint16Array)
2503
- emitTypedArrayChunk(request, id, "s", value);
2504
- else if (value instanceof Int32Array)
2505
- emitTypedArrayChunk(request, id, "L", value);
2506
- else if (value instanceof Uint32Array)
2507
- emitTypedArrayChunk(request, id, "l", value);
2508
- else if (value instanceof Float32Array)
2509
- emitTypedArrayChunk(request, id, "G", value);
2510
- else if (value instanceof Float64Array)
2511
- emitTypedArrayChunk(request, id, "g", value);
2512
- else if (value instanceof BigInt64Array)
2513
- emitTypedArrayChunk(request, id, "M", value);
2514
- else if (value instanceof BigUint64Array)
2515
- emitTypedArrayChunk(request, id, "m", value);
2516
- else if (value instanceof DataView)
2517
- emitTypedArrayChunk(request, id, "V", value);
2518
- else {
2519
- id = serializedSize;
2520
- try {
2521
- var json = stringify(value, task.toJSON);
2522
- emitModelChunk(request, task.id, json);
2523
- } finally {
2524
- serializedSize = id;
2525
- }
2526
- }
2490
+ "string" === typeof value && null !== byteLengthOfChunk
2491
+ ? emitTextChunk(request, id, value)
2492
+ : value instanceof ArrayBuffer
2493
+ ? emitTypedArrayChunk(request, id, "A", new Uint8Array(value))
2494
+ : value instanceof Int8Array
2495
+ ? emitTypedArrayChunk(request, id, "O", value)
2496
+ : value instanceof Uint8Array
2497
+ ? emitTypedArrayChunk(request, id, "o", value)
2498
+ : value instanceof Uint8ClampedArray
2499
+ ? emitTypedArrayChunk(request, id, "U", value)
2500
+ : value instanceof Int16Array
2501
+ ? emitTypedArrayChunk(request, id, "S", value)
2502
+ : value instanceof Uint16Array
2503
+ ? emitTypedArrayChunk(request, id, "s", value)
2504
+ : value instanceof Int32Array
2505
+ ? emitTypedArrayChunk(request, id, "L", value)
2506
+ : value instanceof Uint32Array
2507
+ ? emitTypedArrayChunk(request, id, "l", value)
2508
+ : value instanceof Float32Array
2509
+ ? emitTypedArrayChunk(request, id, "G", value)
2510
+ : value instanceof Float64Array
2511
+ ? emitTypedArrayChunk(request, id, "g", value)
2512
+ : value instanceof BigInt64Array
2513
+ ? emitTypedArrayChunk(request, id, "M", value)
2514
+ : value instanceof BigUint64Array
2515
+ ? emitTypedArrayChunk(request, id, "m", value)
2516
+ : value instanceof DataView
2517
+ ? emitTypedArrayChunk(request, id, "V", value)
2518
+ : ((value = stringify(value, task.toJSON)),
2519
+ emitModelChunk(request, task.id, value));
2527
2520
  }
2528
2521
  function erroredTask(request, task, error) {
2529
2522
  task.status = ERRORED$1;
@@ -2536,6 +2529,7 @@
2536
2529
  if (task.status === PENDING$1) {
2537
2530
  var prevDebugID = debugID;
2538
2531
  task.status = RENDERING;
2532
+ var parentSerializedSize = serializedSize;
2539
2533
  try {
2540
2534
  modelRoot = task.model;
2541
2535
  debugID = task.id;
@@ -2590,17 +2584,18 @@
2590
2584
  } else erroredTask(request, task, x);
2591
2585
  }
2592
2586
  } finally {
2593
- debugID = prevDebugID;
2587
+ (debugID = prevDebugID), (serializedSize = parentSerializedSize);
2594
2588
  }
2595
2589
  }
2596
2590
  }
2597
2591
  function tryStreamTask(request, task) {
2598
2592
  var prevDebugID = debugID;
2599
2593
  debugID = null;
2594
+ var parentSerializedSize = serializedSize;
2600
2595
  try {
2601
2596
  emitChunk(request, task, task.model);
2602
2597
  } finally {
2603
- debugID = prevDebugID;
2598
+ (serializedSize = parentSerializedSize), (debugID = prevDebugID);
2604
2599
  }
2605
2600
  }
2606
2601
  function performWork(request) {
@@ -3860,11 +3855,11 @@
3860
3855
  throw Error("useId can only be used while React is rendering");
3861
3856
  var id = currentRequest$1.identifierCount++;
3862
3857
  return (
3863
- ":" +
3858
+ "\u00ab" +
3864
3859
  currentRequest$1.identifierPrefix +
3865
3860
  "S" +
3866
3861
  id.toString(32) +
3867
- ":"
3862
+ "\u00bb"
3868
3863
  );
3869
3864
  },
3870
3865
  useHostTransitionStatus: unsupportedHook,
@@ -552,7 +552,13 @@ function useId() {
552
552
  if (null === currentRequest$1)
553
553
  throw Error("useId can only be used while React is rendering");
554
554
  var id = currentRequest$1.identifierCount++;
555
- return ":" + currentRequest$1.identifierPrefix + "S" + id.toString(32) + ":";
555
+ return (
556
+ "\u00ab" +
557
+ currentRequest$1.identifierPrefix +
558
+ "S" +
559
+ id.toString(32) +
560
+ "\u00bb"
561
+ );
556
562
  }
557
563
  function use(usable) {
558
564
  if (
@@ -836,7 +842,7 @@ function serializeReadableStream(request, task, stream) {
836
842
  try {
837
843
  (streamTask.model = entry.value),
838
844
  request.pendingChunks++,
839
- emitChunk(request, streamTask, streamTask.model),
845
+ tryStreamTask(request, streamTask),
840
846
  enqueueFlush(request),
841
847
  reader.read().then(progress, error);
842
848
  } catch (x$7) {
@@ -910,7 +916,7 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
910
916
  try {
911
917
  (streamTask.model = entry.value),
912
918
  request.pendingChunks++,
913
- emitChunk(request, streamTask, streamTask.model),
919
+ tryStreamTask(request, streamTask),
914
920
  enqueueFlush(request),
915
921
  iterator.next().then(progress, error);
916
922
  } catch (x$8) {
@@ -1144,6 +1150,7 @@ function createTask(request, model, keyPath, implicitSlot, abortSet) {
1144
1150
  return pingTask(request, task);
1145
1151
  },
1146
1152
  toJSON: function (parentPropertyName, value) {
1153
+ serializedSize += parentPropertyName.length;
1147
1154
  var prevKeyPath = task.keyPath,
1148
1155
  prevImplicitSlot = task.implicitSlot;
1149
1156
  try {
@@ -1339,7 +1346,6 @@ function renderModelDestructive(
1339
1346
  value
1340
1347
  ) {
1341
1348
  task.model = value;
1342
- serializedSize += parentPropertyName.length;
1343
1349
  if (value === REACT_ELEMENT_TYPE) return "$";
1344
1350
  if (null === value) return null;
1345
1351
  if ("object" === typeof value) {
@@ -1697,43 +1703,36 @@ function emitTextChunk(request, id, text) {
1697
1703
  }
1698
1704
  function emitChunk(request, task, value) {
1699
1705
  var id = task.id;
1700
- if ("string" === typeof value && null !== byteLengthOfChunk)
1701
- emitTextChunk(request, id, value);
1702
- else if (value instanceof ArrayBuffer)
1703
- emitTypedArrayChunk(request, id, "A", new Uint8Array(value));
1704
- else if (value instanceof Int8Array)
1705
- emitTypedArrayChunk(request, id, "O", value);
1706
- else if (value instanceof Uint8Array)
1707
- emitTypedArrayChunk(request, id, "o", value);
1708
- else if (value instanceof Uint8ClampedArray)
1709
- emitTypedArrayChunk(request, id, "U", value);
1710
- else if (value instanceof Int16Array)
1711
- emitTypedArrayChunk(request, id, "S", value);
1712
- else if (value instanceof Uint16Array)
1713
- emitTypedArrayChunk(request, id, "s", value);
1714
- else if (value instanceof Int32Array)
1715
- emitTypedArrayChunk(request, id, "L", value);
1716
- else if (value instanceof Uint32Array)
1717
- emitTypedArrayChunk(request, id, "l", value);
1718
- else if (value instanceof Float32Array)
1719
- emitTypedArrayChunk(request, id, "G", value);
1720
- else if (value instanceof Float64Array)
1721
- emitTypedArrayChunk(request, id, "g", value);
1722
- else if (value instanceof BigInt64Array)
1723
- emitTypedArrayChunk(request, id, "M", value);
1724
- else if (value instanceof BigUint64Array)
1725
- emitTypedArrayChunk(request, id, "m", value);
1726
- else if (value instanceof DataView)
1727
- emitTypedArrayChunk(request, id, "V", value);
1728
- else {
1729
- id = serializedSize;
1730
- try {
1731
- var json = stringify(value, task.toJSON);
1732
- emitModelChunk(request, task.id, json);
1733
- } finally {
1734
- serializedSize = id;
1735
- }
1736
- }
1706
+ "string" === typeof value && null !== byteLengthOfChunk
1707
+ ? emitTextChunk(request, id, value)
1708
+ : value instanceof ArrayBuffer
1709
+ ? emitTypedArrayChunk(request, id, "A", new Uint8Array(value))
1710
+ : value instanceof Int8Array
1711
+ ? emitTypedArrayChunk(request, id, "O", value)
1712
+ : value instanceof Uint8Array
1713
+ ? emitTypedArrayChunk(request, id, "o", value)
1714
+ : value instanceof Uint8ClampedArray
1715
+ ? emitTypedArrayChunk(request, id, "U", value)
1716
+ : value instanceof Int16Array
1717
+ ? emitTypedArrayChunk(request, id, "S", value)
1718
+ : value instanceof Uint16Array
1719
+ ? emitTypedArrayChunk(request, id, "s", value)
1720
+ : value instanceof Int32Array
1721
+ ? emitTypedArrayChunk(request, id, "L", value)
1722
+ : value instanceof Uint32Array
1723
+ ? emitTypedArrayChunk(request, id, "l", value)
1724
+ : value instanceof Float32Array
1725
+ ? emitTypedArrayChunk(request, id, "G", value)
1726
+ : value instanceof Float64Array
1727
+ ? emitTypedArrayChunk(request, id, "g", value)
1728
+ : value instanceof BigInt64Array
1729
+ ? emitTypedArrayChunk(request, id, "M", value)
1730
+ : value instanceof BigUint64Array
1731
+ ? emitTypedArrayChunk(request, id, "m", value)
1732
+ : value instanceof DataView
1733
+ ? emitTypedArrayChunk(request, id, "V", value)
1734
+ : ((value = stringify(value, task.toJSON)),
1735
+ emitModelChunk(request, task.id, value));
1737
1736
  }
1738
1737
  function erroredTask(request, task, error) {
1739
1738
  task.status = 4;
@@ -1746,6 +1745,7 @@ var emptyRoot = {};
1746
1745
  function retryTask(request, task) {
1747
1746
  if (0 === task.status) {
1748
1747
  task.status = 5;
1748
+ var parentSerializedSize = serializedSize;
1749
1749
  try {
1750
1750
  modelRoot = task.model;
1751
1751
  var resolvedModel = renderModelDestructive(
@@ -1791,9 +1791,18 @@ function retryTask(request, task) {
1791
1791
  } else erroredTask(request, task, x);
1792
1792
  }
1793
1793
  } finally {
1794
+ serializedSize = parentSerializedSize;
1794
1795
  }
1795
1796
  }
1796
1797
  }
1798
+ function tryStreamTask(request, task) {
1799
+ var parentSerializedSize = serializedSize;
1800
+ try {
1801
+ emitChunk(request, task, task.model);
1802
+ } finally {
1803
+ serializedSize = parentSerializedSize;
1804
+ }
1805
+ }
1797
1806
  function performWork(request) {
1798
1807
  var prevDispatcher = ReactSharedInternalsServer.H;
1799
1808
  ReactSharedInternalsServer.H = HooksDispatcher;
@@ -1686,6 +1686,7 @@
1686
1686
  return "$B" + newTask.id.toString(16);
1687
1687
  }
1688
1688
  function renderModel(request, task, parent, key, value) {
1689
+ serializedSize += key.length;
1689
1690
  var prevKeyPath = task.keyPath,
1690
1691
  prevImplicitSlot = task.implicitSlot;
1691
1692
  try {
@@ -1751,7 +1752,6 @@
1751
1752
  value
1752
1753
  ) {
1753
1754
  task.model = value;
1754
- serializedSize += parentPropertyName.length;
1755
1755
  if (value === REACT_ELEMENT_TYPE) return "$";
1756
1756
  if (null === value) return null;
1757
1757
  if ("object" === typeof value) {
@@ -2469,43 +2469,36 @@
2469
2469
  }
2470
2470
  function emitChunk(request, task, value) {
2471
2471
  var id = task.id;
2472
- if ("string" === typeof value && null !== byteLengthOfChunk)
2473
- emitTextChunk(request, id, value);
2474
- else if (value instanceof ArrayBuffer)
2475
- emitTypedArrayChunk(request, id, "A", new Uint8Array(value));
2476
- else if (value instanceof Int8Array)
2477
- emitTypedArrayChunk(request, id, "O", value);
2478
- else if (value instanceof Uint8Array)
2479
- emitTypedArrayChunk(request, id, "o", value);
2480
- else if (value instanceof Uint8ClampedArray)
2481
- emitTypedArrayChunk(request, id, "U", value);
2482
- else if (value instanceof Int16Array)
2483
- emitTypedArrayChunk(request, id, "S", value);
2484
- else if (value instanceof Uint16Array)
2485
- emitTypedArrayChunk(request, id, "s", value);
2486
- else if (value instanceof Int32Array)
2487
- emitTypedArrayChunk(request, id, "L", value);
2488
- else if (value instanceof Uint32Array)
2489
- emitTypedArrayChunk(request, id, "l", value);
2490
- else if (value instanceof Float32Array)
2491
- emitTypedArrayChunk(request, id, "G", value);
2492
- else if (value instanceof Float64Array)
2493
- emitTypedArrayChunk(request, id, "g", value);
2494
- else if (value instanceof BigInt64Array)
2495
- emitTypedArrayChunk(request, id, "M", value);
2496
- else if (value instanceof BigUint64Array)
2497
- emitTypedArrayChunk(request, id, "m", value);
2498
- else if (value instanceof DataView)
2499
- emitTypedArrayChunk(request, id, "V", value);
2500
- else {
2501
- id = serializedSize;
2502
- try {
2503
- var json = stringify(value, task.toJSON);
2504
- emitModelChunk(request, task.id, json);
2505
- } finally {
2506
- serializedSize = id;
2507
- }
2508
- }
2472
+ "string" === typeof value && null !== byteLengthOfChunk
2473
+ ? emitTextChunk(request, id, value)
2474
+ : value instanceof ArrayBuffer
2475
+ ? emitTypedArrayChunk(request, id, "A", new Uint8Array(value))
2476
+ : value instanceof Int8Array
2477
+ ? emitTypedArrayChunk(request, id, "O", value)
2478
+ : value instanceof Uint8Array
2479
+ ? emitTypedArrayChunk(request, id, "o", value)
2480
+ : value instanceof Uint8ClampedArray
2481
+ ? emitTypedArrayChunk(request, id, "U", value)
2482
+ : value instanceof Int16Array
2483
+ ? emitTypedArrayChunk(request, id, "S", value)
2484
+ : value instanceof Uint16Array
2485
+ ? emitTypedArrayChunk(request, id, "s", value)
2486
+ : value instanceof Int32Array
2487
+ ? emitTypedArrayChunk(request, id, "L", value)
2488
+ : value instanceof Uint32Array
2489
+ ? emitTypedArrayChunk(request, id, "l", value)
2490
+ : value instanceof Float32Array
2491
+ ? emitTypedArrayChunk(request, id, "G", value)
2492
+ : value instanceof Float64Array
2493
+ ? emitTypedArrayChunk(request, id, "g", value)
2494
+ : value instanceof BigInt64Array
2495
+ ? emitTypedArrayChunk(request, id, "M", value)
2496
+ : value instanceof BigUint64Array
2497
+ ? emitTypedArrayChunk(request, id, "m", value)
2498
+ : value instanceof DataView
2499
+ ? emitTypedArrayChunk(request, id, "V", value)
2500
+ : ((value = stringify(value, task.toJSON)),
2501
+ emitModelChunk(request, task.id, value));
2509
2502
  }
2510
2503
  function erroredTask(request, task, error) {
2511
2504
  task.status = ERRORED$1;
@@ -2518,6 +2511,7 @@
2518
2511
  if (task.status === PENDING$1) {
2519
2512
  var prevDebugID = debugID;
2520
2513
  task.status = RENDERING;
2514
+ var parentSerializedSize = serializedSize;
2521
2515
  try {
2522
2516
  modelRoot = task.model;
2523
2517
  debugID = task.id;
@@ -2572,17 +2566,18 @@
2572
2566
  } else erroredTask(request, task, x);
2573
2567
  }
2574
2568
  } finally {
2575
- debugID = prevDebugID;
2569
+ (debugID = prevDebugID), (serializedSize = parentSerializedSize);
2576
2570
  }
2577
2571
  }
2578
2572
  }
2579
2573
  function tryStreamTask(request, task) {
2580
2574
  var prevDebugID = debugID;
2581
2575
  debugID = null;
2576
+ var parentSerializedSize = serializedSize;
2582
2577
  try {
2583
2578
  emitChunk(request, task, task.model);
2584
2579
  } finally {
2585
- debugID = prevDebugID;
2580
+ (serializedSize = parentSerializedSize), (debugID = prevDebugID);
2586
2581
  }
2587
2582
  }
2588
2583
  function performWork(request) {
@@ -3857,11 +3852,11 @@
3857
3852
  throw Error("useId can only be used while React is rendering");
3858
3853
  var id = currentRequest$1.identifierCount++;
3859
3854
  return (
3860
- ":" +
3855
+ "\u00ab" +
3861
3856
  currentRequest$1.identifierPrefix +
3862
3857
  "S" +
3863
3858
  id.toString(32) +
3864
- ":"
3859
+ "\u00bb"
3865
3860
  );
3866
3861
  },
3867
3862
  useHostTransitionStatus: unsupportedHook,
@@ -572,7 +572,13 @@ function useId() {
572
572
  if (null === currentRequest$1)
573
573
  throw Error("useId can only be used while React is rendering");
574
574
  var id = currentRequest$1.identifierCount++;
575
- return ":" + currentRequest$1.identifierPrefix + "S" + id.toString(32) + ":";
575
+ return (
576
+ "\u00ab" +
577
+ currentRequest$1.identifierPrefix +
578
+ "S" +
579
+ id.toString(32) +
580
+ "\u00bb"
581
+ );
576
582
  }
577
583
  function use(usable) {
578
584
  if (
@@ -853,7 +859,7 @@ function serializeReadableStream(request, task, stream) {
853
859
  try {
854
860
  (streamTask.model = entry.value),
855
861
  request.pendingChunks++,
856
- emitChunk(request, streamTask, streamTask.model),
862
+ tryStreamTask(request, streamTask),
857
863
  enqueueFlush(request),
858
864
  reader.read().then(progress, error);
859
865
  } catch (x$7) {
@@ -927,7 +933,7 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
927
933
  try {
928
934
  (streamTask.model = entry.value),
929
935
  request.pendingChunks++,
930
- emitChunk(request, streamTask, streamTask.model),
936
+ tryStreamTask(request, streamTask),
931
937
  enqueueFlush(request),
932
938
  iterator.next().then(progress, error);
933
939
  } catch (x$8) {
@@ -1160,6 +1166,7 @@ function createTask(request, model, keyPath, implicitSlot, abortSet) {
1160
1166
  return pingTask(request, task);
1161
1167
  },
1162
1168
  toJSON: function (parentPropertyName, value) {
1169
+ serializedSize += parentPropertyName.length;
1163
1170
  var prevKeyPath = task.keyPath,
1164
1171
  prevImplicitSlot = task.implicitSlot;
1165
1172
  try {
@@ -1353,7 +1360,6 @@ function renderModelDestructive(
1353
1360
  value
1354
1361
  ) {
1355
1362
  task.model = value;
1356
- serializedSize += parentPropertyName.length;
1357
1363
  if (value === REACT_ELEMENT_TYPE) return "$";
1358
1364
  if (null === value) return null;
1359
1365
  if ("object" === typeof value) {
@@ -1702,43 +1708,36 @@ function emitTextChunk(request, id, text) {
1702
1708
  }
1703
1709
  function emitChunk(request, task, value) {
1704
1710
  var id = task.id;
1705
- if ("string" === typeof value && null !== byteLengthOfChunk)
1706
- emitTextChunk(request, id, value);
1707
- else if (value instanceof ArrayBuffer)
1708
- emitTypedArrayChunk(request, id, "A", new Uint8Array(value));
1709
- else if (value instanceof Int8Array)
1710
- emitTypedArrayChunk(request, id, "O", value);
1711
- else if (value instanceof Uint8Array)
1712
- emitTypedArrayChunk(request, id, "o", value);
1713
- else if (value instanceof Uint8ClampedArray)
1714
- emitTypedArrayChunk(request, id, "U", value);
1715
- else if (value instanceof Int16Array)
1716
- emitTypedArrayChunk(request, id, "S", value);
1717
- else if (value instanceof Uint16Array)
1718
- emitTypedArrayChunk(request, id, "s", value);
1719
- else if (value instanceof Int32Array)
1720
- emitTypedArrayChunk(request, id, "L", value);
1721
- else if (value instanceof Uint32Array)
1722
- emitTypedArrayChunk(request, id, "l", value);
1723
- else if (value instanceof Float32Array)
1724
- emitTypedArrayChunk(request, id, "G", value);
1725
- else if (value instanceof Float64Array)
1726
- emitTypedArrayChunk(request, id, "g", value);
1727
- else if (value instanceof BigInt64Array)
1728
- emitTypedArrayChunk(request, id, "M", value);
1729
- else if (value instanceof BigUint64Array)
1730
- emitTypedArrayChunk(request, id, "m", value);
1731
- else if (value instanceof DataView)
1732
- emitTypedArrayChunk(request, id, "V", value);
1733
- else {
1734
- id = serializedSize;
1735
- try {
1736
- var json = stringify(value, task.toJSON);
1737
- emitModelChunk(request, task.id, json);
1738
- } finally {
1739
- serializedSize = id;
1740
- }
1741
- }
1711
+ "string" === typeof value && null !== byteLengthOfChunk
1712
+ ? emitTextChunk(request, id, value)
1713
+ : value instanceof ArrayBuffer
1714
+ ? emitTypedArrayChunk(request, id, "A", new Uint8Array(value))
1715
+ : value instanceof Int8Array
1716
+ ? emitTypedArrayChunk(request, id, "O", value)
1717
+ : value instanceof Uint8Array
1718
+ ? emitTypedArrayChunk(request, id, "o", value)
1719
+ : value instanceof Uint8ClampedArray
1720
+ ? emitTypedArrayChunk(request, id, "U", value)
1721
+ : value instanceof Int16Array
1722
+ ? emitTypedArrayChunk(request, id, "S", value)
1723
+ : value instanceof Uint16Array
1724
+ ? emitTypedArrayChunk(request, id, "s", value)
1725
+ : value instanceof Int32Array
1726
+ ? emitTypedArrayChunk(request, id, "L", value)
1727
+ : value instanceof Uint32Array
1728
+ ? emitTypedArrayChunk(request, id, "l", value)
1729
+ : value instanceof Float32Array
1730
+ ? emitTypedArrayChunk(request, id, "G", value)
1731
+ : value instanceof Float64Array
1732
+ ? emitTypedArrayChunk(request, id, "g", value)
1733
+ : value instanceof BigInt64Array
1734
+ ? emitTypedArrayChunk(request, id, "M", value)
1735
+ : value instanceof BigUint64Array
1736
+ ? emitTypedArrayChunk(request, id, "m", value)
1737
+ : value instanceof DataView
1738
+ ? emitTypedArrayChunk(request, id, "V", value)
1739
+ : ((value = stringify(value, task.toJSON)),
1740
+ emitModelChunk(request, task.id, value));
1742
1741
  }
1743
1742
  function erroredTask(request, task, error) {
1744
1743
  task.status = 4;
@@ -1751,6 +1750,7 @@ var emptyRoot = {};
1751
1750
  function retryTask(request, task) {
1752
1751
  if (0 === task.status) {
1753
1752
  task.status = 5;
1753
+ var parentSerializedSize = serializedSize;
1754
1754
  try {
1755
1755
  modelRoot = task.model;
1756
1756
  var resolvedModel = renderModelDestructive(
@@ -1796,9 +1796,18 @@ function retryTask(request, task) {
1796
1796
  } else erroredTask(request, task, x);
1797
1797
  }
1798
1798
  } finally {
1799
+ serializedSize = parentSerializedSize;
1799
1800
  }
1800
1801
  }
1801
1802
  }
1803
+ function tryStreamTask(request, task) {
1804
+ var parentSerializedSize = serializedSize;
1805
+ try {
1806
+ emitChunk(request, task, task.model);
1807
+ } finally {
1808
+ serializedSize = parentSerializedSize;
1809
+ }
1810
+ }
1802
1811
  function performWork(request) {
1803
1812
  var prevDispatcher = ReactSharedInternalsServer.H;
1804
1813
  ReactSharedInternalsServer.H = HooksDispatcher;
@@ -2799,12 +2808,12 @@ exports.decodeReplyFromBusboy = function (busboyStream, webpackMap, options) {
2799
2808
  "React doesn't accept base64 encoded file uploads because we don't expect form data passed from a browser to ever encode data that way. If that's the wrong assumption, we can easily fix it."
2800
2809
  );
2801
2810
  pendingFiles++;
2802
- var JSCompiler_object_inline_chunks_227 = [];
2811
+ var JSCompiler_object_inline_chunks_221 = [];
2803
2812
  value.on("data", function (chunk) {
2804
- JSCompiler_object_inline_chunks_227.push(chunk);
2813
+ JSCompiler_object_inline_chunks_221.push(chunk);
2805
2814
  });
2806
2815
  value.on("end", function () {
2807
- var blob = new Blob(JSCompiler_object_inline_chunks_227, {
2816
+ var blob = new Blob(JSCompiler_object_inline_chunks_221, {
2808
2817
  type: mimeType
2809
2818
  });
2810
2819
  response._formData.append(name, blob, filename);
@@ -1686,6 +1686,7 @@
1686
1686
  return "$B" + newTask.id.toString(16);
1687
1687
  }
1688
1688
  function renderModel(request, task, parent, key, value) {
1689
+ serializedSize += key.length;
1689
1690
  var prevKeyPath = task.keyPath,
1690
1691
  prevImplicitSlot = task.implicitSlot;
1691
1692
  try {
@@ -1751,7 +1752,6 @@
1751
1752
  value
1752
1753
  ) {
1753
1754
  task.model = value;
1754
- serializedSize += parentPropertyName.length;
1755
1755
  if (value === REACT_ELEMENT_TYPE) return "$";
1756
1756
  if (null === value) return null;
1757
1757
  if ("object" === typeof value) {
@@ -2469,43 +2469,36 @@
2469
2469
  }
2470
2470
  function emitChunk(request, task, value) {
2471
2471
  var id = task.id;
2472
- if ("string" === typeof value && null !== byteLengthOfChunk)
2473
- emitTextChunk(request, id, value);
2474
- else if (value instanceof ArrayBuffer)
2475
- emitTypedArrayChunk(request, id, "A", new Uint8Array(value));
2476
- else if (value instanceof Int8Array)
2477
- emitTypedArrayChunk(request, id, "O", value);
2478
- else if (value instanceof Uint8Array)
2479
- emitTypedArrayChunk(request, id, "o", value);
2480
- else if (value instanceof Uint8ClampedArray)
2481
- emitTypedArrayChunk(request, id, "U", value);
2482
- else if (value instanceof Int16Array)
2483
- emitTypedArrayChunk(request, id, "S", value);
2484
- else if (value instanceof Uint16Array)
2485
- emitTypedArrayChunk(request, id, "s", value);
2486
- else if (value instanceof Int32Array)
2487
- emitTypedArrayChunk(request, id, "L", value);
2488
- else if (value instanceof Uint32Array)
2489
- emitTypedArrayChunk(request, id, "l", value);
2490
- else if (value instanceof Float32Array)
2491
- emitTypedArrayChunk(request, id, "G", value);
2492
- else if (value instanceof Float64Array)
2493
- emitTypedArrayChunk(request, id, "g", value);
2494
- else if (value instanceof BigInt64Array)
2495
- emitTypedArrayChunk(request, id, "M", value);
2496
- else if (value instanceof BigUint64Array)
2497
- emitTypedArrayChunk(request, id, "m", value);
2498
- else if (value instanceof DataView)
2499
- emitTypedArrayChunk(request, id, "V", value);
2500
- else {
2501
- id = serializedSize;
2502
- try {
2503
- var json = stringify(value, task.toJSON);
2504
- emitModelChunk(request, task.id, json);
2505
- } finally {
2506
- serializedSize = id;
2507
- }
2508
- }
2472
+ "string" === typeof value && null !== byteLengthOfChunk
2473
+ ? emitTextChunk(request, id, value)
2474
+ : value instanceof ArrayBuffer
2475
+ ? emitTypedArrayChunk(request, id, "A", new Uint8Array(value))
2476
+ : value instanceof Int8Array
2477
+ ? emitTypedArrayChunk(request, id, "O", value)
2478
+ : value instanceof Uint8Array
2479
+ ? emitTypedArrayChunk(request, id, "o", value)
2480
+ : value instanceof Uint8ClampedArray
2481
+ ? emitTypedArrayChunk(request, id, "U", value)
2482
+ : value instanceof Int16Array
2483
+ ? emitTypedArrayChunk(request, id, "S", value)
2484
+ : value instanceof Uint16Array
2485
+ ? emitTypedArrayChunk(request, id, "s", value)
2486
+ : value instanceof Int32Array
2487
+ ? emitTypedArrayChunk(request, id, "L", value)
2488
+ : value instanceof Uint32Array
2489
+ ? emitTypedArrayChunk(request, id, "l", value)
2490
+ : value instanceof Float32Array
2491
+ ? emitTypedArrayChunk(request, id, "G", value)
2492
+ : value instanceof Float64Array
2493
+ ? emitTypedArrayChunk(request, id, "g", value)
2494
+ : value instanceof BigInt64Array
2495
+ ? emitTypedArrayChunk(request, id, "M", value)
2496
+ : value instanceof BigUint64Array
2497
+ ? emitTypedArrayChunk(request, id, "m", value)
2498
+ : value instanceof DataView
2499
+ ? emitTypedArrayChunk(request, id, "V", value)
2500
+ : ((value = stringify(value, task.toJSON)),
2501
+ emitModelChunk(request, task.id, value));
2509
2502
  }
2510
2503
  function erroredTask(request, task, error) {
2511
2504
  task.status = ERRORED$1;
@@ -2518,6 +2511,7 @@
2518
2511
  if (task.status === PENDING$1) {
2519
2512
  var prevDebugID = debugID;
2520
2513
  task.status = RENDERING;
2514
+ var parentSerializedSize = serializedSize;
2521
2515
  try {
2522
2516
  modelRoot = task.model;
2523
2517
  debugID = task.id;
@@ -2572,17 +2566,18 @@
2572
2566
  } else erroredTask(request, task, x);
2573
2567
  }
2574
2568
  } finally {
2575
- debugID = prevDebugID;
2569
+ (debugID = prevDebugID), (serializedSize = parentSerializedSize);
2576
2570
  }
2577
2571
  }
2578
2572
  }
2579
2573
  function tryStreamTask(request, task) {
2580
2574
  var prevDebugID = debugID;
2581
2575
  debugID = null;
2576
+ var parentSerializedSize = serializedSize;
2582
2577
  try {
2583
2578
  emitChunk(request, task, task.model);
2584
2579
  } finally {
2585
- debugID = prevDebugID;
2580
+ (serializedSize = parentSerializedSize), (debugID = prevDebugID);
2586
2581
  }
2587
2582
  }
2588
2583
  function performWork(request) {
@@ -3820,11 +3815,11 @@
3820
3815
  throw Error("useId can only be used while React is rendering");
3821
3816
  var id = currentRequest$1.identifierCount++;
3822
3817
  return (
3823
- ":" +
3818
+ "\u00ab" +
3824
3819
  currentRequest$1.identifierPrefix +
3825
3820
  "S" +
3826
3821
  id.toString(32) +
3827
- ":"
3822
+ "\u00bb"
3828
3823
  );
3829
3824
  },
3830
3825
  useHostTransitionStatus: unsupportedHook,
@@ -572,7 +572,13 @@ function useId() {
572
572
  if (null === currentRequest$1)
573
573
  throw Error("useId can only be used while React is rendering");
574
574
  var id = currentRequest$1.identifierCount++;
575
- return ":" + currentRequest$1.identifierPrefix + "S" + id.toString(32) + ":";
575
+ return (
576
+ "\u00ab" +
577
+ currentRequest$1.identifierPrefix +
578
+ "S" +
579
+ id.toString(32) +
580
+ "\u00bb"
581
+ );
576
582
  }
577
583
  function use(usable) {
578
584
  if (
@@ -853,7 +859,7 @@ function serializeReadableStream(request, task, stream) {
853
859
  try {
854
860
  (streamTask.model = entry.value),
855
861
  request.pendingChunks++,
856
- emitChunk(request, streamTask, streamTask.model),
862
+ tryStreamTask(request, streamTask),
857
863
  enqueueFlush(request),
858
864
  reader.read().then(progress, error);
859
865
  } catch (x$7) {
@@ -927,7 +933,7 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
927
933
  try {
928
934
  (streamTask.model = entry.value),
929
935
  request.pendingChunks++,
930
- emitChunk(request, streamTask, streamTask.model),
936
+ tryStreamTask(request, streamTask),
931
937
  enqueueFlush(request),
932
938
  iterator.next().then(progress, error);
933
939
  } catch (x$8) {
@@ -1160,6 +1166,7 @@ function createTask(request, model, keyPath, implicitSlot, abortSet) {
1160
1166
  return pingTask(request, task);
1161
1167
  },
1162
1168
  toJSON: function (parentPropertyName, value) {
1169
+ serializedSize += parentPropertyName.length;
1163
1170
  var prevKeyPath = task.keyPath,
1164
1171
  prevImplicitSlot = task.implicitSlot;
1165
1172
  try {
@@ -1353,7 +1360,6 @@ function renderModelDestructive(
1353
1360
  value
1354
1361
  ) {
1355
1362
  task.model = value;
1356
- serializedSize += parentPropertyName.length;
1357
1363
  if (value === REACT_ELEMENT_TYPE) return "$";
1358
1364
  if (null === value) return null;
1359
1365
  if ("object" === typeof value) {
@@ -1702,43 +1708,36 @@ function emitTextChunk(request, id, text) {
1702
1708
  }
1703
1709
  function emitChunk(request, task, value) {
1704
1710
  var id = task.id;
1705
- if ("string" === typeof value && null !== byteLengthOfChunk)
1706
- emitTextChunk(request, id, value);
1707
- else if (value instanceof ArrayBuffer)
1708
- emitTypedArrayChunk(request, id, "A", new Uint8Array(value));
1709
- else if (value instanceof Int8Array)
1710
- emitTypedArrayChunk(request, id, "O", value);
1711
- else if (value instanceof Uint8Array)
1712
- emitTypedArrayChunk(request, id, "o", value);
1713
- else if (value instanceof Uint8ClampedArray)
1714
- emitTypedArrayChunk(request, id, "U", value);
1715
- else if (value instanceof Int16Array)
1716
- emitTypedArrayChunk(request, id, "S", value);
1717
- else if (value instanceof Uint16Array)
1718
- emitTypedArrayChunk(request, id, "s", value);
1719
- else if (value instanceof Int32Array)
1720
- emitTypedArrayChunk(request, id, "L", value);
1721
- else if (value instanceof Uint32Array)
1722
- emitTypedArrayChunk(request, id, "l", value);
1723
- else if (value instanceof Float32Array)
1724
- emitTypedArrayChunk(request, id, "G", value);
1725
- else if (value instanceof Float64Array)
1726
- emitTypedArrayChunk(request, id, "g", value);
1727
- else if (value instanceof BigInt64Array)
1728
- emitTypedArrayChunk(request, id, "M", value);
1729
- else if (value instanceof BigUint64Array)
1730
- emitTypedArrayChunk(request, id, "m", value);
1731
- else if (value instanceof DataView)
1732
- emitTypedArrayChunk(request, id, "V", value);
1733
- else {
1734
- id = serializedSize;
1735
- try {
1736
- var json = stringify(value, task.toJSON);
1737
- emitModelChunk(request, task.id, json);
1738
- } finally {
1739
- serializedSize = id;
1740
- }
1741
- }
1711
+ "string" === typeof value && null !== byteLengthOfChunk
1712
+ ? emitTextChunk(request, id, value)
1713
+ : value instanceof ArrayBuffer
1714
+ ? emitTypedArrayChunk(request, id, "A", new Uint8Array(value))
1715
+ : value instanceof Int8Array
1716
+ ? emitTypedArrayChunk(request, id, "O", value)
1717
+ : value instanceof Uint8Array
1718
+ ? emitTypedArrayChunk(request, id, "o", value)
1719
+ : value instanceof Uint8ClampedArray
1720
+ ? emitTypedArrayChunk(request, id, "U", value)
1721
+ : value instanceof Int16Array
1722
+ ? emitTypedArrayChunk(request, id, "S", value)
1723
+ : value instanceof Uint16Array
1724
+ ? emitTypedArrayChunk(request, id, "s", value)
1725
+ : value instanceof Int32Array
1726
+ ? emitTypedArrayChunk(request, id, "L", value)
1727
+ : value instanceof Uint32Array
1728
+ ? emitTypedArrayChunk(request, id, "l", value)
1729
+ : value instanceof Float32Array
1730
+ ? emitTypedArrayChunk(request, id, "G", value)
1731
+ : value instanceof Float64Array
1732
+ ? emitTypedArrayChunk(request, id, "g", value)
1733
+ : value instanceof BigInt64Array
1734
+ ? emitTypedArrayChunk(request, id, "M", value)
1735
+ : value instanceof BigUint64Array
1736
+ ? emitTypedArrayChunk(request, id, "m", value)
1737
+ : value instanceof DataView
1738
+ ? emitTypedArrayChunk(request, id, "V", value)
1739
+ : ((value = stringify(value, task.toJSON)),
1740
+ emitModelChunk(request, task.id, value));
1742
1741
  }
1743
1742
  function erroredTask(request, task, error) {
1744
1743
  task.status = 4;
@@ -1751,6 +1750,7 @@ var emptyRoot = {};
1751
1750
  function retryTask(request, task) {
1752
1751
  if (0 === task.status) {
1753
1752
  task.status = 5;
1753
+ var parentSerializedSize = serializedSize;
1754
1754
  try {
1755
1755
  modelRoot = task.model;
1756
1756
  var resolvedModel = renderModelDestructive(
@@ -1796,9 +1796,18 @@ function retryTask(request, task) {
1796
1796
  } else erroredTask(request, task, x);
1797
1797
  }
1798
1798
  } finally {
1799
+ serializedSize = parentSerializedSize;
1799
1800
  }
1800
1801
  }
1801
1802
  }
1803
+ function tryStreamTask(request, task) {
1804
+ var parentSerializedSize = serializedSize;
1805
+ try {
1806
+ emitChunk(request, task, task.model);
1807
+ } finally {
1808
+ serializedSize = parentSerializedSize;
1809
+ }
1810
+ }
1802
1811
  function performWork(request) {
1803
1812
  var prevDispatcher = ReactSharedInternalsServer.H;
1804
1813
  ReactSharedInternalsServer.H = HooksDispatcher;
@@ -2765,12 +2774,12 @@ exports.decodeReplyFromBusboy = function (busboyStream, webpackMap, options) {
2765
2774
  "React doesn't accept base64 encoded file uploads because we don't expect form data passed from a browser to ever encode data that way. If that's the wrong assumption, we can easily fix it."
2766
2775
  );
2767
2776
  pendingFiles++;
2768
- var JSCompiler_object_inline_chunks_227 = [];
2777
+ var JSCompiler_object_inline_chunks_221 = [];
2769
2778
  value.on("data", function (chunk) {
2770
- JSCompiler_object_inline_chunks_227.push(chunk);
2779
+ JSCompiler_object_inline_chunks_221.push(chunk);
2771
2780
  });
2772
2781
  value.on("end", function () {
2773
- var blob = new Blob(JSCompiler_object_inline_chunks_227, {
2782
+ var blob = new Blob(JSCompiler_object_inline_chunks_221, {
2774
2783
  type: mimeType
2775
2784
  });
2776
2785
  response._formData.append(name, blob, filename);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-server-dom-webpack",
3
3
  "description": "React Server Components bindings for DOM using Webpack. This is intended to be integrated into meta-frameworks. It is not intended to be imported directly.",
4
- "version": "19.2.0-canary-f7396427-20250501",
4
+ "version": "19.2.0-canary-b9cfa0d3-20250505",
5
5
  "keywords": [
6
6
  "react"
7
7
  ],
@@ -99,8 +99,8 @@
99
99
  "node": ">=0.10.0"
100
100
  },
101
101
  "peerDependencies": {
102
- "react": "19.2.0-canary-f7396427-20250501",
103
- "react-dom": "19.2.0-canary-f7396427-20250501",
102
+ "react": "19.2.0-canary-b9cfa0d3-20250505",
103
+ "react-dom": "19.2.0-canary-b9cfa0d3-20250505",
104
104
  "webpack": "^5.59.0"
105
105
  },
106
106
  "dependencies": {