react-markup 0.0.0-experimental-c129c242-20250505 → 0.0.0-experimental-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.
@@ -9054,5 +9054,5 @@
9054
9054
  });
9055
9055
  });
9056
9056
  };
9057
- exports.version = "19.2.0-experimental-c129c242-20250505";
9057
+ exports.version = "19.2.0-experimental-b9cfa0d3-20250505";
9058
9058
  })();
@@ -6089,4 +6089,4 @@ exports.experimental_renderToHTML = function (children, options) {
6089
6089
  });
6090
6090
  });
6091
6091
  };
6092
- exports.version = "19.2.0-experimental-c129c242-20250505";
6092
+ exports.version = "19.2.0-experimental-b9cfa0d3-20250505";
@@ -2524,41 +2524,34 @@
2524
2524
  }
2525
2525
  function emitChunk(request, task, value) {
2526
2526
  var id = task.id;
2527
- if (value instanceof ArrayBuffer)
2528
- emitTypedArrayChunk(request, id, "A", new Uint8Array(value));
2529
- else if (value instanceof Int8Array)
2530
- emitTypedArrayChunk(request, id, "O", value);
2531
- else if (value instanceof Uint8Array)
2532
- emitTypedArrayChunk(request, id, "o", value);
2533
- else if (value instanceof Uint8ClampedArray)
2534
- emitTypedArrayChunk(request, id, "U", value);
2535
- else if (value instanceof Int16Array)
2536
- emitTypedArrayChunk(request, id, "S", value);
2537
- else if (value instanceof Uint16Array)
2538
- emitTypedArrayChunk(request, id, "s", value);
2539
- else if (value instanceof Int32Array)
2540
- emitTypedArrayChunk(request, id, "L", value);
2541
- else if (value instanceof Uint32Array)
2542
- emitTypedArrayChunk(request, id, "l", value);
2543
- else if (value instanceof Float32Array)
2544
- emitTypedArrayChunk(request, id, "G", value);
2545
- else if (value instanceof Float64Array)
2546
- emitTypedArrayChunk(request, id, "g", value);
2547
- else if (value instanceof BigInt64Array)
2548
- emitTypedArrayChunk(request, id, "M", value);
2549
- else if (value instanceof BigUint64Array)
2550
- emitTypedArrayChunk(request, id, "m", value);
2551
- else if (value instanceof DataView)
2552
- emitTypedArrayChunk(request, id, "V", value);
2553
- else {
2554
- id = serializedSize;
2555
- try {
2556
- var json = stringify(value, task.toJSON);
2557
- emitModelChunk(request, task.id, json);
2558
- } finally {
2559
- serializedSize = id;
2560
- }
2561
- }
2527
+ value instanceof ArrayBuffer
2528
+ ? emitTypedArrayChunk(request, id, "A", new Uint8Array(value))
2529
+ : value instanceof Int8Array
2530
+ ? emitTypedArrayChunk(request, id, "O", value)
2531
+ : value instanceof Uint8Array
2532
+ ? emitTypedArrayChunk(request, id, "o", value)
2533
+ : value instanceof Uint8ClampedArray
2534
+ ? emitTypedArrayChunk(request, id, "U", value)
2535
+ : value instanceof Int16Array
2536
+ ? emitTypedArrayChunk(request, id, "S", value)
2537
+ : value instanceof Uint16Array
2538
+ ? emitTypedArrayChunk(request, id, "s", value)
2539
+ : value instanceof Int32Array
2540
+ ? emitTypedArrayChunk(request, id, "L", value)
2541
+ : value instanceof Uint32Array
2542
+ ? emitTypedArrayChunk(request, id, "l", value)
2543
+ : value instanceof Float32Array
2544
+ ? emitTypedArrayChunk(request, id, "G", value)
2545
+ : value instanceof Float64Array
2546
+ ? emitTypedArrayChunk(request, id, "g", value)
2547
+ : value instanceof BigInt64Array
2548
+ ? emitTypedArrayChunk(request, id, "M", value)
2549
+ : value instanceof BigUint64Array
2550
+ ? emitTypedArrayChunk(request, id, "m", value)
2551
+ : value instanceof DataView
2552
+ ? emitTypedArrayChunk(request, id, "V", value)
2553
+ : ((value = stringify(value, task.toJSON)),
2554
+ emitModelChunk(request, task.id, value));
2562
2555
  }
2563
2556
  function erroredTask$1(request, task, error) {
2564
2557
  task.timed && emitTimingChunk(request, task.id, performance.now());
@@ -2581,6 +2574,7 @@
2581
2574
  if (task.status === PENDING$3) {
2582
2575
  var prevDebugID = debugID;
2583
2576
  task.status = RENDERING$1;
2577
+ var parentSerializedSize = serializedSize;
2584
2578
  try {
2585
2579
  modelRoot = task.model;
2586
2580
  debugID = task.id;
@@ -2642,17 +2636,18 @@
2642
2636
  } else erroredTask$1(request, task, x);
2643
2637
  }
2644
2638
  } finally {
2645
- debugID = prevDebugID;
2639
+ (debugID = prevDebugID), (serializedSize = parentSerializedSize);
2646
2640
  }
2647
2641
  }
2648
2642
  }
2649
2643
  function tryStreamTask(request, task) {
2650
2644
  var prevDebugID = debugID;
2651
2645
  debugID = null;
2646
+ var parentSerializedSize = serializedSize;
2652
2647
  try {
2653
2648
  emitChunk(request, task, task.model);
2654
2649
  } finally {
2655
- debugID = prevDebugID;
2650
+ (serializedSize = parentSerializedSize), (debugID = prevDebugID);
2656
2651
  }
2657
2652
  }
2658
2653
  function performWork$1(request) {
@@ -13894,5 +13889,5 @@
13894
13889
  });
13895
13890
  });
13896
13891
  };
13897
- exports.version = "19.2.0-experimental-c129c242-20250505";
13892
+ exports.version = "19.2.0-experimental-b9cfa0d3-20250505";
13898
13893
  })();
@@ -717,7 +717,7 @@ function serializeReadableStream(request, task, stream) {
717
717
  try {
718
718
  (streamTask.model = entry.value),
719
719
  request.pendingChunks++,
720
- emitChunk(request, streamTask, streamTask.model),
720
+ tryStreamTask(request, streamTask),
721
721
  enqueueFlush(request),
722
722
  reader.read().then(progress, error);
723
723
  } catch (x$9) {
@@ -792,7 +792,7 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
792
792
  try {
793
793
  (streamTask.model = entry.value),
794
794
  request.pendingChunks++,
795
- emitChunk(request, streamTask, streamTask.model),
795
+ tryStreamTask(request, streamTask),
796
796
  enqueueFlush(request),
797
797
  iterator.next().then(progress, error);
798
798
  } catch (x$10) {
@@ -1527,41 +1527,34 @@ function emitTypedArrayChunk(request, id, tag, typedArray) {
1527
1527
  }
1528
1528
  function emitChunk(request, task, value) {
1529
1529
  var id = task.id;
1530
- if (value instanceof ArrayBuffer)
1531
- emitTypedArrayChunk(request, id, "A", new Uint8Array(value));
1532
- else if (value instanceof Int8Array)
1533
- emitTypedArrayChunk(request, id, "O", value);
1534
- else if (value instanceof Uint8Array)
1535
- emitTypedArrayChunk(request, id, "o", value);
1536
- else if (value instanceof Uint8ClampedArray)
1537
- emitTypedArrayChunk(request, id, "U", value);
1538
- else if (value instanceof Int16Array)
1539
- emitTypedArrayChunk(request, id, "S", value);
1540
- else if (value instanceof Uint16Array)
1541
- emitTypedArrayChunk(request, id, "s", value);
1542
- else if (value instanceof Int32Array)
1543
- emitTypedArrayChunk(request, id, "L", value);
1544
- else if (value instanceof Uint32Array)
1545
- emitTypedArrayChunk(request, id, "l", value);
1546
- else if (value instanceof Float32Array)
1547
- emitTypedArrayChunk(request, id, "G", value);
1548
- else if (value instanceof Float64Array)
1549
- emitTypedArrayChunk(request, id, "g", value);
1550
- else if (value instanceof BigInt64Array)
1551
- emitTypedArrayChunk(request, id, "M", value);
1552
- else if (value instanceof BigUint64Array)
1553
- emitTypedArrayChunk(request, id, "m", value);
1554
- else if (value instanceof DataView)
1555
- emitTypedArrayChunk(request, id, "V", value);
1556
- else {
1557
- id = serializedSize;
1558
- try {
1559
- var json = stringify(value, task.toJSON);
1560
- emitModelChunk(request, task.id, json);
1561
- } finally {
1562
- serializedSize = id;
1563
- }
1564
- }
1530
+ value instanceof ArrayBuffer
1531
+ ? emitTypedArrayChunk(request, id, "A", new Uint8Array(value))
1532
+ : value instanceof Int8Array
1533
+ ? emitTypedArrayChunk(request, id, "O", value)
1534
+ : value instanceof Uint8Array
1535
+ ? emitTypedArrayChunk(request, id, "o", value)
1536
+ : value instanceof Uint8ClampedArray
1537
+ ? emitTypedArrayChunk(request, id, "U", value)
1538
+ : value instanceof Int16Array
1539
+ ? emitTypedArrayChunk(request, id, "S", value)
1540
+ : value instanceof Uint16Array
1541
+ ? emitTypedArrayChunk(request, id, "s", value)
1542
+ : value instanceof Int32Array
1543
+ ? emitTypedArrayChunk(request, id, "L", value)
1544
+ : value instanceof Uint32Array
1545
+ ? emitTypedArrayChunk(request, id, "l", value)
1546
+ : value instanceof Float32Array
1547
+ ? emitTypedArrayChunk(request, id, "G", value)
1548
+ : value instanceof Float64Array
1549
+ ? emitTypedArrayChunk(request, id, "g", value)
1550
+ : value instanceof BigInt64Array
1551
+ ? emitTypedArrayChunk(request, id, "M", value)
1552
+ : value instanceof BigUint64Array
1553
+ ? emitTypedArrayChunk(request, id, "m", value)
1554
+ : value instanceof DataView
1555
+ ? emitTypedArrayChunk(request, id, "V", value)
1556
+ : ((value = stringify(value, task.toJSON)),
1557
+ emitModelChunk(request, task.id, value));
1565
1558
  }
1566
1559
  function erroredTask$1(request, task, error) {
1567
1560
  task.status = 4;
@@ -1579,6 +1572,7 @@ var emptyRoot = {};
1579
1572
  function retryTask$1(request, task) {
1580
1573
  if (0 === task.status) {
1581
1574
  task.status = 5;
1575
+ var parentSerializedSize = serializedSize;
1582
1576
  try {
1583
1577
  modelRoot = task.model;
1584
1578
  var resolvedModel = renderModelDestructive(
@@ -1633,9 +1627,18 @@ function retryTask$1(request, task) {
1633
1627
  } else erroredTask$1(request, task, x);
1634
1628
  }
1635
1629
  } finally {
1630
+ serializedSize = parentSerializedSize;
1636
1631
  }
1637
1632
  }
1638
1633
  }
1634
+ function tryStreamTask(request, task) {
1635
+ var parentSerializedSize = serializedSize;
1636
+ try {
1637
+ emitChunk(request, task, task.model);
1638
+ } finally {
1639
+ serializedSize = parentSerializedSize;
1640
+ }
1641
+ }
1639
1642
  function performWork$1(request) {
1640
1643
  var prevDispatcher = ReactSharedInternalsServer.H;
1641
1644
  ReactSharedInternalsServer.H = HooksDispatcher$1;
@@ -9058,4 +9061,4 @@ exports.experimental_renderToHTML = function (children, options) {
9058
9061
  });
9059
9062
  });
9060
9063
  };
9061
- exports.version = "19.2.0-experimental-c129c242-20250505";
9064
+ exports.version = "19.2.0-experimental-b9cfa0d3-20250505";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-markup",
3
- "version": "0.0.0-experimental-c129c242-20250505",
3
+ "version": "0.0.0-experimental-b9cfa0d3-20250505",
4
4
  "description": "React package generating embedded markup such as e-mails with support for Server Components.",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "homepage": "https://react.dev/",
19
19
  "peerDependencies": {
20
- "react": "0.0.0-experimental-c129c242-20250505"
20
+ "react": "0.0.0-experimental-b9cfa0d3-20250505"
21
21
  },
22
22
  "files": [
23
23
  "LICENSE",