react-server-dom-webpack 19.2.0-canary-ab859e31-20250606 → 19.2.0-canary-280ff6fe-20250606

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.
@@ -2555,6 +2555,85 @@
2555
2555
  resolveModel(response, id, row);
2556
2556
  }
2557
2557
  }
2558
+ function processBinaryChunk(response, chunk) {
2559
+ for (
2560
+ var i = 0,
2561
+ rowState = response._rowState,
2562
+ rowID = response._rowID,
2563
+ rowTag = response._rowTag,
2564
+ rowLength = response._rowLength,
2565
+ buffer = response._buffer,
2566
+ chunkLength = chunk.length;
2567
+ i < chunkLength;
2568
+
2569
+ ) {
2570
+ var lastIdx = -1;
2571
+ switch (rowState) {
2572
+ case 0:
2573
+ lastIdx = chunk[i++];
2574
+ 58 === lastIdx
2575
+ ? (rowState = 1)
2576
+ : (rowID =
2577
+ (rowID << 4) | (96 < lastIdx ? lastIdx - 87 : lastIdx - 48));
2578
+ continue;
2579
+ case 1:
2580
+ rowState = chunk[i];
2581
+ 84 === rowState ||
2582
+ 65 === rowState ||
2583
+ 79 === rowState ||
2584
+ 111 === rowState ||
2585
+ 85 === rowState ||
2586
+ 83 === rowState ||
2587
+ 115 === rowState ||
2588
+ 76 === rowState ||
2589
+ 108 === rowState ||
2590
+ 71 === rowState ||
2591
+ 103 === rowState ||
2592
+ 77 === rowState ||
2593
+ 109 === rowState ||
2594
+ 86 === rowState
2595
+ ? ((rowTag = rowState), (rowState = 2), i++)
2596
+ : (64 < rowState && 91 > rowState) ||
2597
+ 35 === rowState ||
2598
+ 114 === rowState ||
2599
+ 120 === rowState
2600
+ ? ((rowTag = rowState), (rowState = 3), i++)
2601
+ : ((rowTag = 0), (rowState = 3));
2602
+ continue;
2603
+ case 2:
2604
+ lastIdx = chunk[i++];
2605
+ 44 === lastIdx
2606
+ ? (rowState = 4)
2607
+ : (rowLength =
2608
+ (rowLength << 4) |
2609
+ (96 < lastIdx ? lastIdx - 87 : lastIdx - 48));
2610
+ continue;
2611
+ case 3:
2612
+ lastIdx = chunk.indexOf(10, i);
2613
+ break;
2614
+ case 4:
2615
+ (lastIdx = i + rowLength), lastIdx > chunk.length && (lastIdx = -1);
2616
+ }
2617
+ var offset = chunk.byteOffset + i;
2618
+ if (-1 < lastIdx)
2619
+ (rowLength = new Uint8Array(chunk.buffer, offset, lastIdx - i)),
2620
+ processFullBinaryRow(response, rowID, rowTag, buffer, rowLength),
2621
+ (i = lastIdx),
2622
+ 3 === rowState && i++,
2623
+ (rowLength = rowID = rowTag = rowState = 0),
2624
+ (buffer.length = 0);
2625
+ else {
2626
+ chunk = new Uint8Array(chunk.buffer, offset, chunk.byteLength - i);
2627
+ buffer.push(chunk);
2628
+ rowLength -= chunk.byteLength;
2629
+ break;
2630
+ }
2631
+ }
2632
+ response._rowState = rowState;
2633
+ response._rowID = rowID;
2634
+ response._rowTag = rowTag;
2635
+ response._rowLength = rowLength;
2636
+ }
2558
2637
  function createFromJSONCallback(response) {
2559
2638
  return function (key, value) {
2560
2639
  if ("string" === typeof value)
@@ -2665,6 +2744,46 @@
2665
2744
  return value;
2666
2745
  };
2667
2746
  }
2747
+ function close(response) {
2748
+ reportGlobalError(response, Error("Connection closed."));
2749
+ }
2750
+ function noServerCall$1() {
2751
+ throw Error(
2752
+ "Server Functions cannot be called during initial render. This would create a fetch waterfall. Try to use a Server Component to pass data to Client Components instead."
2753
+ );
2754
+ }
2755
+ function createResponseFromOptions(options) {
2756
+ return new ResponseInstance(
2757
+ options.serverConsumerManifest.moduleMap,
2758
+ options.serverConsumerManifest.serverModuleMap,
2759
+ options.serverConsumerManifest.moduleLoading,
2760
+ noServerCall$1,
2761
+ options.encodeFormAction,
2762
+ "string" === typeof options.nonce ? options.nonce : void 0,
2763
+ options && options.temporaryReferences
2764
+ ? options.temporaryReferences
2765
+ : void 0,
2766
+ options && options.findSourceMapURL ? options.findSourceMapURL : void 0,
2767
+ options ? !0 === options.replayConsoleLogs : !1,
2768
+ options && options.environmentName ? options.environmentName : void 0
2769
+ );
2770
+ }
2771
+ function startReadingFromStream(response, stream) {
2772
+ function progress(_ref) {
2773
+ var value = _ref.value;
2774
+ if (_ref.done) close(response);
2775
+ else
2776
+ return (
2777
+ processBinaryChunk(response, value),
2778
+ reader.read().then(progress).catch(error)
2779
+ );
2780
+ }
2781
+ function error(e) {
2782
+ reportGlobalError(response, e);
2783
+ }
2784
+ var reader = stream.getReader();
2785
+ reader.read().then(progress).catch(error);
2786
+ }
2668
2787
  function noServerCall() {
2669
2788
  throw Error(
2670
2789
  "Server Functions cannot be called during initial render. This would create a fetch waterfall. Try to use a Server Component to pass data to Client Components instead."
@@ -2844,6 +2963,18 @@
2844
2963
  replayConsoleWithCallStackInDEV = replayConsoleWithCallStack[
2845
2964
  "react-stack-bottom-frame"
2846
2965
  ].bind(replayConsoleWithCallStack);
2966
+ exports.createFromFetch = function (promiseForResponse, options) {
2967
+ var response = createResponseFromOptions(options);
2968
+ promiseForResponse.then(
2969
+ function (r) {
2970
+ startReadingFromStream(response, r.body);
2971
+ },
2972
+ function (e) {
2973
+ reportGlobalError(response, e);
2974
+ }
2975
+ );
2976
+ return getChunk(response, 0);
2977
+ };
2847
2978
  exports.createFromNodeStream = function (
2848
2979
  stream,
2849
2980
  serverConsumerManifest,
@@ -2949,102 +3080,50 @@
2949
3080
  response._rowID = rowID;
2950
3081
  response._rowTag = rowTag;
2951
3082
  response._rowLength = rowLength;
2952
- } else {
2953
- rowLength = 0;
2954
- chunkLength = response._rowState;
2955
- rowID = response._rowID;
2956
- i = response._rowTag;
2957
- rowState = response._rowLength;
2958
- buffer = response._buffer;
2959
- for (rowTag = chunk.length; rowLength < rowTag; ) {
2960
- lastIdx = -1;
2961
- switch (chunkLength) {
2962
- case 0:
2963
- lastIdx = chunk[rowLength++];
2964
- 58 === lastIdx
2965
- ? (chunkLength = 1)
2966
- : (rowID =
2967
- (rowID << 4) |
2968
- (96 < lastIdx ? lastIdx - 87 : lastIdx - 48));
2969
- continue;
2970
- case 1:
2971
- chunkLength = chunk[rowLength];
2972
- 84 === chunkLength ||
2973
- 65 === chunkLength ||
2974
- 79 === chunkLength ||
2975
- 111 === chunkLength ||
2976
- 85 === chunkLength ||
2977
- 83 === chunkLength ||
2978
- 115 === chunkLength ||
2979
- 76 === chunkLength ||
2980
- 108 === chunkLength ||
2981
- 71 === chunkLength ||
2982
- 103 === chunkLength ||
2983
- 77 === chunkLength ||
2984
- 109 === chunkLength ||
2985
- 86 === chunkLength
2986
- ? ((i = chunkLength), (chunkLength = 2), rowLength++)
2987
- : (64 < chunkLength && 91 > chunkLength) ||
2988
- 35 === chunkLength ||
2989
- 114 === chunkLength ||
2990
- 120 === chunkLength
2991
- ? ((i = chunkLength), (chunkLength = 3), rowLength++)
2992
- : ((i = 0), (chunkLength = 3));
2993
- continue;
2994
- case 2:
2995
- lastIdx = chunk[rowLength++];
2996
- 44 === lastIdx
2997
- ? (chunkLength = 4)
2998
- : (rowState =
2999
- (rowState << 4) |
3000
- (96 < lastIdx ? lastIdx - 87 : lastIdx - 48));
3001
- continue;
3002
- case 3:
3003
- lastIdx = chunk.indexOf(10, rowLength);
3004
- break;
3005
- case 4:
3006
- (lastIdx = rowLength + rowState),
3007
- lastIdx > chunk.length && (lastIdx = -1);
3008
- }
3009
- var offset = chunk.byteOffset + rowLength;
3010
- if (-1 < lastIdx)
3011
- (rowState = new Uint8Array(
3012
- chunk.buffer,
3013
- offset,
3014
- lastIdx - rowLength
3015
- )),
3016
- processFullBinaryRow(response, rowID, i, buffer, rowState),
3017
- (rowLength = lastIdx),
3018
- 3 === chunkLength && rowLength++,
3019
- (rowState = rowID = i = chunkLength = 0),
3020
- (buffer.length = 0);
3021
- else {
3022
- chunk = new Uint8Array(
3023
- chunk.buffer,
3024
- offset,
3025
- chunk.byteLength - rowLength
3026
- );
3027
- buffer.push(chunk);
3028
- rowState -= chunk.byteLength;
3029
- break;
3030
- }
3031
- }
3032
- response._rowState = chunkLength;
3033
- response._rowID = rowID;
3034
- response._rowTag = i;
3035
- response._rowLength = rowState;
3036
- }
3083
+ } else processBinaryChunk(response, chunk);
3037
3084
  });
3038
3085
  stream.on("error", function (error) {
3039
3086
  reportGlobalError(response, error);
3040
3087
  });
3041
3088
  stream.on("end", function () {
3042
- reportGlobalError(response, Error("Connection closed."));
3089
+ return close(response);
3043
3090
  });
3044
3091
  return getChunk(response, 0);
3045
3092
  };
3093
+ exports.createFromReadableStream = function (stream, options) {
3094
+ options = createResponseFromOptions(options);
3095
+ startReadingFromStream(options, stream);
3096
+ return getChunk(options, 0);
3097
+ };
3046
3098
  exports.createServerReference = function (id) {
3047
- return createServerReference$1(id, noServerCall);
3099
+ return createServerReference$1(id, noServerCall$1);
3100
+ };
3101
+ exports.createTemporaryReferenceSet = function () {
3102
+ return new Map();
3103
+ };
3104
+ exports.encodeReply = function (value, options) {
3105
+ return new Promise(function (resolve, reject) {
3106
+ var abort = processReply(
3107
+ value,
3108
+ "",
3109
+ options && options.temporaryReferences
3110
+ ? options.temporaryReferences
3111
+ : void 0,
3112
+ resolve,
3113
+ reject
3114
+ );
3115
+ if (options && options.signal) {
3116
+ var signal = options.signal;
3117
+ if (signal.aborted) abort(signal.reason);
3118
+ else {
3119
+ var listener = function () {
3120
+ abort(signal.reason);
3121
+ signal.removeEventListener("abort", listener);
3122
+ };
3123
+ signal.addEventListener("abort", listener);
3124
+ }
3125
+ }
3126
+ });
3048
3127
  };
3049
3128
  exports.registerServerReference = function (
3050
3129
  reference,
@@ -1612,6 +1612,84 @@ function processFullStringRow(response, id, tag, row) {
1612
1612
  );
1613
1613
  }
1614
1614
  }
1615
+ function processBinaryChunk(response, chunk) {
1616
+ for (
1617
+ var i = 0,
1618
+ rowState = response._rowState,
1619
+ rowID = response._rowID,
1620
+ rowTag = response._rowTag,
1621
+ rowLength = response._rowLength,
1622
+ buffer = response._buffer,
1623
+ chunkLength = chunk.length;
1624
+ i < chunkLength;
1625
+
1626
+ ) {
1627
+ var lastIdx = -1;
1628
+ switch (rowState) {
1629
+ case 0:
1630
+ lastIdx = chunk[i++];
1631
+ 58 === lastIdx
1632
+ ? (rowState = 1)
1633
+ : (rowID =
1634
+ (rowID << 4) | (96 < lastIdx ? lastIdx - 87 : lastIdx - 48));
1635
+ continue;
1636
+ case 1:
1637
+ rowState = chunk[i];
1638
+ 84 === rowState ||
1639
+ 65 === rowState ||
1640
+ 79 === rowState ||
1641
+ 111 === rowState ||
1642
+ 85 === rowState ||
1643
+ 83 === rowState ||
1644
+ 115 === rowState ||
1645
+ 76 === rowState ||
1646
+ 108 === rowState ||
1647
+ 71 === rowState ||
1648
+ 103 === rowState ||
1649
+ 77 === rowState ||
1650
+ 109 === rowState ||
1651
+ 86 === rowState
1652
+ ? ((rowTag = rowState), (rowState = 2), i++)
1653
+ : (64 < rowState && 91 > rowState) ||
1654
+ 35 === rowState ||
1655
+ 114 === rowState ||
1656
+ 120 === rowState
1657
+ ? ((rowTag = rowState), (rowState = 3), i++)
1658
+ : ((rowTag = 0), (rowState = 3));
1659
+ continue;
1660
+ case 2:
1661
+ lastIdx = chunk[i++];
1662
+ 44 === lastIdx
1663
+ ? (rowState = 4)
1664
+ : (rowLength =
1665
+ (rowLength << 4) | (96 < lastIdx ? lastIdx - 87 : lastIdx - 48));
1666
+ continue;
1667
+ case 3:
1668
+ lastIdx = chunk.indexOf(10, i);
1669
+ break;
1670
+ case 4:
1671
+ (lastIdx = i + rowLength), lastIdx > chunk.length && (lastIdx = -1);
1672
+ }
1673
+ var offset = chunk.byteOffset + i;
1674
+ if (-1 < lastIdx)
1675
+ (rowLength = new Uint8Array(chunk.buffer, offset, lastIdx - i)),
1676
+ processFullBinaryRow(response, rowID, rowTag, buffer, rowLength),
1677
+ (i = lastIdx),
1678
+ 3 === rowState && i++,
1679
+ (rowLength = rowID = rowTag = rowState = 0),
1680
+ (buffer.length = 0);
1681
+ else {
1682
+ chunk = new Uint8Array(chunk.buffer, offset, chunk.byteLength - i);
1683
+ buffer.push(chunk);
1684
+ rowLength -= chunk.byteLength;
1685
+ break;
1686
+ }
1687
+ }
1688
+ response._rowState = rowState;
1689
+ response._rowID = rowID;
1690
+ response._rowTag = rowTag;
1691
+ response._rowLength = rowLength;
1692
+ }
1615
1693
  function createFromJSONCallback(response) {
1616
1694
  return function (key, value) {
1617
1695
  if ("string" === typeof value)
@@ -1652,11 +1730,60 @@ function createFromJSONCallback(response) {
1652
1730
  return value;
1653
1731
  };
1654
1732
  }
1733
+ function close(response) {
1734
+ reportGlobalError(response, Error("Connection closed."));
1735
+ }
1736
+ function noServerCall$1() {
1737
+ throw Error(
1738
+ "Server Functions cannot be called during initial render. This would create a fetch waterfall. Try to use a Server Component to pass data to Client Components instead."
1739
+ );
1740
+ }
1741
+ function createResponseFromOptions(options) {
1742
+ return new ResponseInstance(
1743
+ options.serverConsumerManifest.moduleMap,
1744
+ options.serverConsumerManifest.serverModuleMap,
1745
+ options.serverConsumerManifest.moduleLoading,
1746
+ noServerCall$1,
1747
+ options.encodeFormAction,
1748
+ "string" === typeof options.nonce ? options.nonce : void 0,
1749
+ options && options.temporaryReferences
1750
+ ? options.temporaryReferences
1751
+ : void 0
1752
+ );
1753
+ }
1754
+ function startReadingFromStream(response, stream) {
1755
+ function progress(_ref) {
1756
+ var value = _ref.value;
1757
+ if (_ref.done) close(response);
1758
+ else
1759
+ return (
1760
+ processBinaryChunk(response, value),
1761
+ reader.read().then(progress).catch(error)
1762
+ );
1763
+ }
1764
+ function error(e) {
1765
+ reportGlobalError(response, e);
1766
+ }
1767
+ var reader = stream.getReader();
1768
+ reader.read().then(progress).catch(error);
1769
+ }
1655
1770
  function noServerCall() {
1656
1771
  throw Error(
1657
1772
  "Server Functions cannot be called during initial render. This would create a fetch waterfall. Try to use a Server Component to pass data to Client Components instead."
1658
1773
  );
1659
1774
  }
1775
+ exports.createFromFetch = function (promiseForResponse, options) {
1776
+ var response = createResponseFromOptions(options);
1777
+ promiseForResponse.then(
1778
+ function (r) {
1779
+ startReadingFromStream(response, r.body);
1780
+ },
1781
+ function (e) {
1782
+ reportGlobalError(response, e);
1783
+ }
1784
+ );
1785
+ return getChunk(response, 0);
1786
+ };
1660
1787
  exports.createFromNodeStream = function (
1661
1788
  stream,
1662
1789
  serverConsumerManifest,
@@ -1758,101 +1885,50 @@ exports.createFromNodeStream = function (
1758
1885
  response._rowID = rowID;
1759
1886
  response._rowTag = rowTag;
1760
1887
  response._rowLength = rowLength;
1761
- } else {
1762
- rowLength = 0;
1763
- chunkLength = response._rowState;
1764
- rowID = response._rowID;
1765
- i = response._rowTag;
1766
- rowState = response._rowLength;
1767
- buffer = response._buffer;
1768
- for (rowTag = chunk.length; rowLength < rowTag; ) {
1769
- lastIdx = -1;
1770
- switch (chunkLength) {
1771
- case 0:
1772
- lastIdx = chunk[rowLength++];
1773
- 58 === lastIdx
1774
- ? (chunkLength = 1)
1775
- : (rowID =
1776
- (rowID << 4) | (96 < lastIdx ? lastIdx - 87 : lastIdx - 48));
1777
- continue;
1778
- case 1:
1779
- chunkLength = chunk[rowLength];
1780
- 84 === chunkLength ||
1781
- 65 === chunkLength ||
1782
- 79 === chunkLength ||
1783
- 111 === chunkLength ||
1784
- 85 === chunkLength ||
1785
- 83 === chunkLength ||
1786
- 115 === chunkLength ||
1787
- 76 === chunkLength ||
1788
- 108 === chunkLength ||
1789
- 71 === chunkLength ||
1790
- 103 === chunkLength ||
1791
- 77 === chunkLength ||
1792
- 109 === chunkLength ||
1793
- 86 === chunkLength
1794
- ? ((i = chunkLength), (chunkLength = 2), rowLength++)
1795
- : (64 < chunkLength && 91 > chunkLength) ||
1796
- 35 === chunkLength ||
1797
- 114 === chunkLength ||
1798
- 120 === chunkLength
1799
- ? ((i = chunkLength), (chunkLength = 3), rowLength++)
1800
- : ((i = 0), (chunkLength = 3));
1801
- continue;
1802
- case 2:
1803
- lastIdx = chunk[rowLength++];
1804
- 44 === lastIdx
1805
- ? (chunkLength = 4)
1806
- : (rowState =
1807
- (rowState << 4) |
1808
- (96 < lastIdx ? lastIdx - 87 : lastIdx - 48));
1809
- continue;
1810
- case 3:
1811
- lastIdx = chunk.indexOf(10, rowLength);
1812
- break;
1813
- case 4:
1814
- (lastIdx = rowLength + rowState),
1815
- lastIdx > chunk.length && (lastIdx = -1);
1816
- }
1817
- var offset = chunk.byteOffset + rowLength;
1818
- if (-1 < lastIdx)
1819
- (rowState = new Uint8Array(
1820
- chunk.buffer,
1821
- offset,
1822
- lastIdx - rowLength
1823
- )),
1824
- processFullBinaryRow(response, rowID, i, buffer, rowState),
1825
- (rowLength = lastIdx),
1826
- 3 === chunkLength && rowLength++,
1827
- (rowState = rowID = i = chunkLength = 0),
1828
- (buffer.length = 0);
1829
- else {
1830
- chunk = new Uint8Array(
1831
- chunk.buffer,
1832
- offset,
1833
- chunk.byteLength - rowLength
1834
- );
1835
- buffer.push(chunk);
1836
- rowState -= chunk.byteLength;
1837
- break;
1838
- }
1839
- }
1840
- response._rowState = chunkLength;
1841
- response._rowID = rowID;
1842
- response._rowTag = i;
1843
- response._rowLength = rowState;
1844
- }
1888
+ } else processBinaryChunk(response, chunk);
1845
1889
  });
1846
1890
  stream.on("error", function (error) {
1847
1891
  reportGlobalError(response, error);
1848
1892
  });
1849
1893
  stream.on("end", function () {
1850
- reportGlobalError(response, Error("Connection closed."));
1894
+ return close(response);
1851
1895
  });
1852
1896
  return getChunk(response, 0);
1853
1897
  };
1898
+ exports.createFromReadableStream = function (stream, options) {
1899
+ options = createResponseFromOptions(options);
1900
+ startReadingFromStream(options, stream);
1901
+ return getChunk(options, 0);
1902
+ };
1854
1903
  exports.createServerReference = function (id) {
1855
- return createServerReference$1(id, noServerCall);
1904
+ return createServerReference$1(id, noServerCall$1);
1905
+ };
1906
+ exports.createTemporaryReferenceSet = function () {
1907
+ return new Map();
1908
+ };
1909
+ exports.encodeReply = function (value, options) {
1910
+ return new Promise(function (resolve, reject) {
1911
+ var abort = processReply(
1912
+ value,
1913
+ "",
1914
+ options && options.temporaryReferences
1915
+ ? options.temporaryReferences
1916
+ : void 0,
1917
+ resolve,
1918
+ reject
1919
+ );
1920
+ if (options && options.signal) {
1921
+ var signal = options.signal;
1922
+ if (signal.aborted) abort(signal.reason);
1923
+ else {
1924
+ var listener = function () {
1925
+ abort(signal.reason);
1926
+ signal.removeEventListener("abort", listener);
1927
+ };
1928
+ signal.addEventListener("abort", listener);
1929
+ }
1930
+ }
1931
+ });
1856
1932
  };
1857
1933
  exports.registerServerReference = function (reference, id, encodeFormAction) {
1858
1934
  registerBoundServerReference(reference, id, null, encodeFormAction);
package/client.node.js CHANGED
@@ -1,28 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var n, w;
4
3
  if (process.env.NODE_ENV === 'production') {
5
- n = require('./cjs/react-server-dom-webpack-client.node.production.js');
6
- w = require('./cjs/react-server-dom-webpack-client.node-webstreams.production.js');
4
+ module.exports = require('./cjs/react-server-dom-webpack-client.node.production.js');
7
5
  } else {
8
- n = require('./cjs/react-server-dom-webpack-client.node.development.js');
9
- w = require('./cjs/react-server-dom-webpack-client.node-webstreams.development.js');
6
+ module.exports = require('./cjs/react-server-dom-webpack-client.node.development.js');
10
7
  }
11
-
12
- exports.registerServerReference = function (r, i, e) {
13
- return w.registerServerReference(n.registerServerReference(r, i, e), i, e);
14
- };
15
- exports.createServerReference = function (i, c, e, d, f) {
16
- return w.registerServerReference(
17
- n.createServerReference(i, c, e, d, f),
18
- i,
19
- e
20
- );
21
- };
22
-
23
- exports.createFromNodeStream = n.createFromNodeStream;
24
- exports.createFromFetch = w.createFromFetch;
25
- exports.createFromReadableStream = w.createFromReadableStream;
26
-
27
- exports.createTemporaryReferenceSet = w.createTemporaryReferenceSet;
28
- exports.encodeReply = w.encodeReply;
@@ -1,28 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var n, w;
4
3
  if (process.env.NODE_ENV === 'production') {
5
- n = require('./cjs/react-server-dom-webpack-client.node.unbundled.production.js');
6
- w = require('./cjs/react-server-dom-webpack-client.node-webstreams.unbundled.production.js');
4
+ module.exports = require('./cjs/react-server-dom-webpack-client.node.unbundled.production.js');
7
5
  } else {
8
- n = require('./cjs/react-server-dom-webpack-client.node.unbundled.development.js');
9
- w = require('./cjs/react-server-dom-webpack-client.node-webstreams.unbundled.development.js');
6
+ module.exports = require('./cjs/react-server-dom-webpack-client.node.unbundled.development.js');
10
7
  }
11
-
12
- exports.registerServerReference = function (r, i, e) {
13
- return w.registerServerReference(n.registerServerReference(r, i, e), i, e);
14
- };
15
- exports.createServerReference = function (i, c, e, d, f) {
16
- return w.registerServerReference(
17
- n.createServerReference(i, c, e, d, f),
18
- i,
19
- e
20
- );
21
- };
22
-
23
- exports.createFromNodeStream = n.createFromNodeStream;
24
- exports.createFromFetch = w.createFromFetch;
25
- exports.createFromReadableStream = w.createFromReadableStream;
26
-
27
- exports.createTemporaryReferenceSet = w.createTemporaryReferenceSet;
28
- exports.encodeReply = w.encodeReply;
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-ab859e31-20250606",
4
+ "version": "19.2.0-canary-280ff6fe-20250606",
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-ab859e31-20250606",
103
- "react-dom": "19.2.0-canary-ab859e31-20250606",
102
+ "react": "19.2.0-canary-280ff6fe-20250606",
103
+ "react-dom": "19.2.0-canary-280ff6fe-20250606",
104
104
  "webpack": "^5.59.0"
105
105
  },
106
106
  "dependencies": {
package/server.node.js CHANGED
@@ -1,12 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var s, w;
3
+ var s;
4
4
  if (process.env.NODE_ENV === 'production') {
5
- s = require('./cjs/react-server-dom-webpack-server.node.unbundled.production.js');
6
- w = require('./cjs/react-server-dom-webpack-server.node-webstreams.unbundled.production.js');
5
+ s = require('./cjs/react-server-dom-webpack-server.node.production.js');
7
6
  } else {
8
- s = require('./cjs/react-server-dom-webpack-server.node.unbundled.development.js');
9
- w = require('./cjs/react-server-dom-webpack-server.node-webstreams.unbundled.development.js');
7
+ s = require('./cjs/react-server-dom-webpack-server.node.development.js');
10
8
  }
11
9
 
12
10
  exports.renderToPipeableStream = s.renderToPipeableStream;
@@ -18,6 +16,3 @@ exports.registerServerReference = s.registerServerReference;
18
16
  exports.registerClientReference = s.registerClientReference;
19
17
  exports.createClientModuleProxy = s.createClientModuleProxy;
20
18
  exports.createTemporaryReferenceSet = s.createTemporaryReferenceSet;
21
-
22
- exports.renderToReadableStream = w.renderToReadableStream;
23
- exports.decodeReplyFromAsyncIterable = w.decodeReplyFromAsyncIterable;
@@ -1,12 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var s, w;
3
+ var s;
4
4
  if (process.env.NODE_ENV === 'production') {
5
5
  s = require('./cjs/react-server-dom-webpack-server.node.unbundled.production.js');
6
- w = require('./cjs/react-server-dom-webpack-server.node-webstreams.unbundled.production.js');
7
6
  } else {
8
7
  s = require('./cjs/react-server-dom-webpack-server.node.unbundled.development.js');
9
- w = require('./cjs/react-server-dom-webpack-server.node-webstreams.unbundled.development.js');
10
8
  }
11
9
 
12
10
  exports.renderToPipeableStream = s.renderToPipeableStream;
@@ -18,6 +16,3 @@ exports.registerServerReference = s.registerServerReference;
18
16
  exports.registerClientReference = s.registerClientReference;
19
17
  exports.createClientModuleProxy = s.createClientModuleProxy;
20
18
  exports.createTemporaryReferenceSet = s.createTemporaryReferenceSet;
21
-
22
- exports.renderToReadableStream = w.renderToReadableStream;
23
- exports.decodeReplyFromAsyncIterable = w.decodeReplyFromAsyncIterable;