react-server-dom-webpack 19.2.0-canary-c129c242-20250505 → 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.
- package/cjs/react-server-dom-webpack-client.browser.development.js +2 -2
- package/cjs/react-server-dom-webpack-server.browser.development.js +34 -39
- package/cjs/react-server-dom-webpack-server.browser.production.js +42 -39
- package/cjs/react-server-dom-webpack-server.edge.development.js +34 -39
- package/cjs/react-server-dom-webpack-server.edge.production.js +42 -39
- package/cjs/react-server-dom-webpack-server.node.development.js +34 -39
- package/cjs/react-server-dom-webpack-server.node.production.js +45 -42
- package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +34 -39
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.js +45 -42
- package/package.json +3 -3
@@ -2693,10 +2693,10 @@
|
|
2693
2693
|
return hook.checkDCE ? !0 : !1;
|
2694
2694
|
})({
|
2695
2695
|
bundleType: 1,
|
2696
|
-
version: "19.2.0-canary-
|
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-
|
2699
|
+
reconcilerVersion: "19.2.0-canary-b9cfa0d3-20250505",
|
2700
2700
|
getCurrentComponentInfo: function () {
|
2701
2701
|
return currentOwnerInDEV;
|
2702
2702
|
}
|
@@ -2413,43 +2413,36 @@
|
|
2413
2413
|
}
|
2414
2414
|
function emitChunk(request, task, value) {
|
2415
2415
|
var id = task.id;
|
2416
|
-
|
2417
|
-
emitTextChunk(request, id, value)
|
2418
|
-
|
2419
|
-
|
2420
|
-
|
2421
|
-
|
2422
|
-
|
2423
|
-
|
2424
|
-
|
2425
|
-
|
2426
|
-
|
2427
|
-
|
2428
|
-
|
2429
|
-
|
2430
|
-
|
2431
|
-
|
2432
|
-
|
2433
|
-
|
2434
|
-
|
2435
|
-
|
2436
|
-
|
2437
|
-
|
2438
|
-
|
2439
|
-
|
2440
|
-
|
2441
|
-
|
2442
|
-
|
2443
|
-
|
2444
|
-
|
2445
|
-
|
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) {
|
@@ -837,7 +837,7 @@ function serializeReadableStream(request, task, stream) {
|
|
837
837
|
try {
|
838
838
|
(streamTask.model = entry.value),
|
839
839
|
request.pendingChunks++,
|
840
|
-
|
840
|
+
tryStreamTask(request, streamTask),
|
841
841
|
enqueueFlush(request),
|
842
842
|
reader.read().then(progress, error);
|
843
843
|
} catch (x$7) {
|
@@ -911,7 +911,7 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
|
|
911
911
|
try {
|
912
912
|
(streamTask.model = entry.value),
|
913
913
|
request.pendingChunks++,
|
914
|
-
|
914
|
+
tryStreamTask(request, streamTask),
|
915
915
|
enqueueFlush(request),
|
916
916
|
iterator.next().then(progress, error);
|
917
917
|
} catch (x$8) {
|
@@ -1696,43 +1696,36 @@ function emitTextChunk(request, id, text) {
|
|
1696
1696
|
}
|
1697
1697
|
function emitChunk(request, task, value) {
|
1698
1698
|
var id = task.id;
|
1699
|
-
|
1700
|
-
emitTextChunk(request, id, value)
|
1701
|
-
|
1702
|
-
|
1703
|
-
|
1704
|
-
|
1705
|
-
|
1706
|
-
|
1707
|
-
|
1708
|
-
|
1709
|
-
|
1710
|
-
|
1711
|
-
|
1712
|
-
|
1713
|
-
|
1714
|
-
|
1715
|
-
|
1716
|
-
|
1717
|
-
|
1718
|
-
|
1719
|
-
|
1720
|
-
|
1721
|
-
|
1722
|
-
|
1723
|
-
|
1724
|
-
|
1725
|
-
|
1726
|
-
|
1727
|
-
|
1728
|
-
|
1729
|
-
try {
|
1730
|
-
var json = stringify(value, task.toJSON);
|
1731
|
-
emitModelChunk(request, task.id, json);
|
1732
|
-
} finally {
|
1733
|
-
serializedSize = id;
|
1734
|
-
}
|
1735
|
-
}
|
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));
|
1736
1729
|
}
|
1737
1730
|
function erroredTask(request, task, error) {
|
1738
1731
|
task.status = 4;
|
@@ -1745,6 +1738,7 @@ var emptyRoot = {};
|
|
1745
1738
|
function retryTask(request, task) {
|
1746
1739
|
if (0 === task.status) {
|
1747
1740
|
task.status = 5;
|
1741
|
+
var parentSerializedSize = serializedSize;
|
1748
1742
|
try {
|
1749
1743
|
modelRoot = task.model;
|
1750
1744
|
var resolvedModel = renderModelDestructive(
|
@@ -1790,9 +1784,18 @@ function retryTask(request, task) {
|
|
1790
1784
|
} else erroredTask(request, task, x);
|
1791
1785
|
}
|
1792
1786
|
} finally {
|
1787
|
+
serializedSize = parentSerializedSize;
|
1793
1788
|
}
|
1794
1789
|
}
|
1795
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
|
+
}
|
1796
1799
|
function performWork(request) {
|
1797
1800
|
var prevDispatcher = ReactSharedInternalsServer.H;
|
1798
1801
|
ReactSharedInternalsServer.H = HooksDispatcher;
|
@@ -2487,43 +2487,36 @@
|
|
2487
2487
|
}
|
2488
2488
|
function emitChunk(request, task, value) {
|
2489
2489
|
var id = task.id;
|
2490
|
-
|
2491
|
-
emitTextChunk(request, id, value)
|
2492
|
-
|
2493
|
-
|
2494
|
-
|
2495
|
-
|
2496
|
-
|
2497
|
-
|
2498
|
-
|
2499
|
-
|
2500
|
-
|
2501
|
-
|
2502
|
-
|
2503
|
-
|
2504
|
-
|
2505
|
-
|
2506
|
-
|
2507
|
-
|
2508
|
-
|
2509
|
-
|
2510
|
-
|
2511
|
-
|
2512
|
-
|
2513
|
-
|
2514
|
-
|
2515
|
-
|
2516
|
-
|
2517
|
-
|
2518
|
-
|
2519
|
-
|
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) {
|
@@ -842,7 +842,7 @@ function serializeReadableStream(request, task, stream) {
|
|
842
842
|
try {
|
843
843
|
(streamTask.model = entry.value),
|
844
844
|
request.pendingChunks++,
|
845
|
-
|
845
|
+
tryStreamTask(request, streamTask),
|
846
846
|
enqueueFlush(request),
|
847
847
|
reader.read().then(progress, error);
|
848
848
|
} catch (x$7) {
|
@@ -916,7 +916,7 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
|
|
916
916
|
try {
|
917
917
|
(streamTask.model = entry.value),
|
918
918
|
request.pendingChunks++,
|
919
|
-
|
919
|
+
tryStreamTask(request, streamTask),
|
920
920
|
enqueueFlush(request),
|
921
921
|
iterator.next().then(progress, error);
|
922
922
|
} catch (x$8) {
|
@@ -1703,43 +1703,36 @@ function emitTextChunk(request, id, text) {
|
|
1703
1703
|
}
|
1704
1704
|
function emitChunk(request, task, value) {
|
1705
1705
|
var id = task.id;
|
1706
|
-
|
1707
|
-
emitTextChunk(request, id, value)
|
1708
|
-
|
1709
|
-
|
1710
|
-
|
1711
|
-
|
1712
|
-
|
1713
|
-
|
1714
|
-
|
1715
|
-
|
1716
|
-
|
1717
|
-
|
1718
|
-
|
1719
|
-
|
1720
|
-
|
1721
|
-
|
1722
|
-
|
1723
|
-
|
1724
|
-
|
1725
|
-
|
1726
|
-
|
1727
|
-
|
1728
|
-
|
1729
|
-
|
1730
|
-
|
1731
|
-
|
1732
|
-
|
1733
|
-
|
1734
|
-
|
1735
|
-
|
1736
|
-
try {
|
1737
|
-
var json = stringify(value, task.toJSON);
|
1738
|
-
emitModelChunk(request, task.id, json);
|
1739
|
-
} finally {
|
1740
|
-
serializedSize = id;
|
1741
|
-
}
|
1742
|
-
}
|
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));
|
1743
1736
|
}
|
1744
1737
|
function erroredTask(request, task, error) {
|
1745
1738
|
task.status = 4;
|
@@ -1752,6 +1745,7 @@ var emptyRoot = {};
|
|
1752
1745
|
function retryTask(request, task) {
|
1753
1746
|
if (0 === task.status) {
|
1754
1747
|
task.status = 5;
|
1748
|
+
var parentSerializedSize = serializedSize;
|
1755
1749
|
try {
|
1756
1750
|
modelRoot = task.model;
|
1757
1751
|
var resolvedModel = renderModelDestructive(
|
@@ -1797,9 +1791,18 @@ function retryTask(request, task) {
|
|
1797
1791
|
} else erroredTask(request, task, x);
|
1798
1792
|
}
|
1799
1793
|
} finally {
|
1794
|
+
serializedSize = parentSerializedSize;
|
1800
1795
|
}
|
1801
1796
|
}
|
1802
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
|
+
}
|
1803
1806
|
function performWork(request) {
|
1804
1807
|
var prevDispatcher = ReactSharedInternalsServer.H;
|
1805
1808
|
ReactSharedInternalsServer.H = HooksDispatcher;
|
@@ -2469,43 +2469,36 @@
|
|
2469
2469
|
}
|
2470
2470
|
function emitChunk(request, task, value) {
|
2471
2471
|
var id = task.id;
|
2472
|
-
|
2473
|
-
emitTextChunk(request, id, value)
|
2474
|
-
|
2475
|
-
|
2476
|
-
|
2477
|
-
|
2478
|
-
|
2479
|
-
|
2480
|
-
|
2481
|
-
|
2482
|
-
|
2483
|
-
|
2484
|
-
|
2485
|
-
|
2486
|
-
|
2487
|
-
|
2488
|
-
|
2489
|
-
|
2490
|
-
|
2491
|
-
|
2492
|
-
|
2493
|
-
|
2494
|
-
|
2495
|
-
|
2496
|
-
|
2497
|
-
|
2498
|
-
|
2499
|
-
|
2500
|
-
|
2501
|
-
|
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) {
|
@@ -859,7 +859,7 @@ function serializeReadableStream(request, task, stream) {
|
|
859
859
|
try {
|
860
860
|
(streamTask.model = entry.value),
|
861
861
|
request.pendingChunks++,
|
862
|
-
|
862
|
+
tryStreamTask(request, streamTask),
|
863
863
|
enqueueFlush(request),
|
864
864
|
reader.read().then(progress, error);
|
865
865
|
} catch (x$7) {
|
@@ -933,7 +933,7 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
|
|
933
933
|
try {
|
934
934
|
(streamTask.model = entry.value),
|
935
935
|
request.pendingChunks++,
|
936
|
-
|
936
|
+
tryStreamTask(request, streamTask),
|
937
937
|
enqueueFlush(request),
|
938
938
|
iterator.next().then(progress, error);
|
939
939
|
} catch (x$8) {
|
@@ -1708,43 +1708,36 @@ function emitTextChunk(request, id, text) {
|
|
1708
1708
|
}
|
1709
1709
|
function emitChunk(request, task, value) {
|
1710
1710
|
var id = task.id;
|
1711
|
-
|
1712
|
-
emitTextChunk(request, id, value)
|
1713
|
-
|
1714
|
-
|
1715
|
-
|
1716
|
-
|
1717
|
-
|
1718
|
-
|
1719
|
-
|
1720
|
-
|
1721
|
-
|
1722
|
-
|
1723
|
-
|
1724
|
-
|
1725
|
-
|
1726
|
-
|
1727
|
-
|
1728
|
-
|
1729
|
-
|
1730
|
-
|
1731
|
-
|
1732
|
-
|
1733
|
-
|
1734
|
-
|
1735
|
-
|
1736
|
-
|
1737
|
-
|
1738
|
-
|
1739
|
-
|
1740
|
-
|
1741
|
-
try {
|
1742
|
-
var json = stringify(value, task.toJSON);
|
1743
|
-
emitModelChunk(request, task.id, json);
|
1744
|
-
} finally {
|
1745
|
-
serializedSize = id;
|
1746
|
-
}
|
1747
|
-
}
|
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));
|
1748
1741
|
}
|
1749
1742
|
function erroredTask(request, task, error) {
|
1750
1743
|
task.status = 4;
|
@@ -1757,6 +1750,7 @@ var emptyRoot = {};
|
|
1757
1750
|
function retryTask(request, task) {
|
1758
1751
|
if (0 === task.status) {
|
1759
1752
|
task.status = 5;
|
1753
|
+
var parentSerializedSize = serializedSize;
|
1760
1754
|
try {
|
1761
1755
|
modelRoot = task.model;
|
1762
1756
|
var resolvedModel = renderModelDestructive(
|
@@ -1802,9 +1796,18 @@ function retryTask(request, task) {
|
|
1802
1796
|
} else erroredTask(request, task, x);
|
1803
1797
|
}
|
1804
1798
|
} finally {
|
1799
|
+
serializedSize = parentSerializedSize;
|
1805
1800
|
}
|
1806
1801
|
}
|
1807
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
|
+
}
|
1808
1811
|
function performWork(request) {
|
1809
1812
|
var prevDispatcher = ReactSharedInternalsServer.H;
|
1810
1813
|
ReactSharedInternalsServer.H = HooksDispatcher;
|
@@ -2805,12 +2808,12 @@ exports.decodeReplyFromBusboy = function (busboyStream, webpackMap, options) {
|
|
2805
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."
|
2806
2809
|
);
|
2807
2810
|
pendingFiles++;
|
2808
|
-
var
|
2811
|
+
var JSCompiler_object_inline_chunks_221 = [];
|
2809
2812
|
value.on("data", function (chunk) {
|
2810
|
-
|
2813
|
+
JSCompiler_object_inline_chunks_221.push(chunk);
|
2811
2814
|
});
|
2812
2815
|
value.on("end", function () {
|
2813
|
-
var blob = new Blob(
|
2816
|
+
var blob = new Blob(JSCompiler_object_inline_chunks_221, {
|
2814
2817
|
type: mimeType
|
2815
2818
|
});
|
2816
2819
|
response._formData.append(name, blob, filename);
|
@@ -2469,43 +2469,36 @@
|
|
2469
2469
|
}
|
2470
2470
|
function emitChunk(request, task, value) {
|
2471
2471
|
var id = task.id;
|
2472
|
-
|
2473
|
-
emitTextChunk(request, id, value)
|
2474
|
-
|
2475
|
-
|
2476
|
-
|
2477
|
-
|
2478
|
-
|
2479
|
-
|
2480
|
-
|
2481
|
-
|
2482
|
-
|
2483
|
-
|
2484
|
-
|
2485
|
-
|
2486
|
-
|
2487
|
-
|
2488
|
-
|
2489
|
-
|
2490
|
-
|
2491
|
-
|
2492
|
-
|
2493
|
-
|
2494
|
-
|
2495
|
-
|
2496
|
-
|
2497
|
-
|
2498
|
-
|
2499
|
-
|
2500
|
-
|
2501
|
-
|
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) {
|
@@ -859,7 +859,7 @@ function serializeReadableStream(request, task, stream) {
|
|
859
859
|
try {
|
860
860
|
(streamTask.model = entry.value),
|
861
861
|
request.pendingChunks++,
|
862
|
-
|
862
|
+
tryStreamTask(request, streamTask),
|
863
863
|
enqueueFlush(request),
|
864
864
|
reader.read().then(progress, error);
|
865
865
|
} catch (x$7) {
|
@@ -933,7 +933,7 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
|
|
933
933
|
try {
|
934
934
|
(streamTask.model = entry.value),
|
935
935
|
request.pendingChunks++,
|
936
|
-
|
936
|
+
tryStreamTask(request, streamTask),
|
937
937
|
enqueueFlush(request),
|
938
938
|
iterator.next().then(progress, error);
|
939
939
|
} catch (x$8) {
|
@@ -1708,43 +1708,36 @@ function emitTextChunk(request, id, text) {
|
|
1708
1708
|
}
|
1709
1709
|
function emitChunk(request, task, value) {
|
1710
1710
|
var id = task.id;
|
1711
|
-
|
1712
|
-
emitTextChunk(request, id, value)
|
1713
|
-
|
1714
|
-
|
1715
|
-
|
1716
|
-
|
1717
|
-
|
1718
|
-
|
1719
|
-
|
1720
|
-
|
1721
|
-
|
1722
|
-
|
1723
|
-
|
1724
|
-
|
1725
|
-
|
1726
|
-
|
1727
|
-
|
1728
|
-
|
1729
|
-
|
1730
|
-
|
1731
|
-
|
1732
|
-
|
1733
|
-
|
1734
|
-
|
1735
|
-
|
1736
|
-
|
1737
|
-
|
1738
|
-
|
1739
|
-
|
1740
|
-
|
1741
|
-
try {
|
1742
|
-
var json = stringify(value, task.toJSON);
|
1743
|
-
emitModelChunk(request, task.id, json);
|
1744
|
-
} finally {
|
1745
|
-
serializedSize = id;
|
1746
|
-
}
|
1747
|
-
}
|
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));
|
1748
1741
|
}
|
1749
1742
|
function erroredTask(request, task, error) {
|
1750
1743
|
task.status = 4;
|
@@ -1757,6 +1750,7 @@ var emptyRoot = {};
|
|
1757
1750
|
function retryTask(request, task) {
|
1758
1751
|
if (0 === task.status) {
|
1759
1752
|
task.status = 5;
|
1753
|
+
var parentSerializedSize = serializedSize;
|
1760
1754
|
try {
|
1761
1755
|
modelRoot = task.model;
|
1762
1756
|
var resolvedModel = renderModelDestructive(
|
@@ -1802,9 +1796,18 @@ function retryTask(request, task) {
|
|
1802
1796
|
} else erroredTask(request, task, x);
|
1803
1797
|
}
|
1804
1798
|
} finally {
|
1799
|
+
serializedSize = parentSerializedSize;
|
1805
1800
|
}
|
1806
1801
|
}
|
1807
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
|
+
}
|
1808
1811
|
function performWork(request) {
|
1809
1812
|
var prevDispatcher = ReactSharedInternalsServer.H;
|
1810
1813
|
ReactSharedInternalsServer.H = HooksDispatcher;
|
@@ -2771,12 +2774,12 @@ exports.decodeReplyFromBusboy = function (busboyStream, webpackMap, options) {
|
|
2771
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."
|
2772
2775
|
);
|
2773
2776
|
pendingFiles++;
|
2774
|
-
var
|
2777
|
+
var JSCompiler_object_inline_chunks_221 = [];
|
2775
2778
|
value.on("data", function (chunk) {
|
2776
|
-
|
2779
|
+
JSCompiler_object_inline_chunks_221.push(chunk);
|
2777
2780
|
});
|
2778
2781
|
value.on("end", function () {
|
2779
|
-
var blob = new Blob(
|
2782
|
+
var blob = new Blob(JSCompiler_object_inline_chunks_221, {
|
2780
2783
|
type: mimeType
|
2781
2784
|
});
|
2782
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-
|
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-
|
103
|
-
"react-dom": "19.2.0-canary-
|
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": {
|