react-server-dom-webpack 19.2.0-canary-96c61b7f-20250709 → 19.2.0-canary-97cdd5d3-20250710
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 +240 -94
- package/cjs/react-server-dom-webpack-client.browser.production.js +29 -22
- package/cjs/react-server-dom-webpack-client.edge.development.js +23 -10
- package/cjs/react-server-dom-webpack-client.edge.production.js +17 -12
- package/cjs/react-server-dom-webpack-client.node.development.js +53 -42
- package/cjs/react-server-dom-webpack-client.node.production.js +38 -35
- package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +53 -42
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.js +38 -35
- package/cjs/react-server-dom-webpack-server.browser.development.js +228 -141
- package/cjs/react-server-dom-webpack-server.browser.production.js +45 -45
- package/cjs/react-server-dom-webpack-server.edge.development.js +228 -141
- package/cjs/react-server-dom-webpack-server.edge.production.js +45 -45
- package/cjs/react-server-dom-webpack-server.node.development.js +287 -152
- package/cjs/react-server-dom-webpack-server.node.production.js +68 -69
- package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +287 -152
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.js +68 -69
- package/package.json +3 -3
@@ -1829,8 +1829,7 @@ function performWork(request) {
|
|
1829
1829
|
request.pingedTasks = [];
|
1830
1830
|
for (var i = 0; i < pingedTasks.length; i++)
|
1831
1831
|
retryTask(request, pingedTasks[i]);
|
1832
|
-
|
1833
|
-
flushCompletedChunks(request, request.destination);
|
1832
|
+
flushCompletedChunks(request);
|
1834
1833
|
} catch (error) {
|
1835
1834
|
logRecoverableError(request, error, null), fatalError(request, error);
|
1836
1835
|
} finally {
|
@@ -1848,65 +1847,68 @@ function finishAbortedTask(task, request, errorId) {
|
|
1848
1847
|
(task = encodeReferenceChunk(request, task.id, errorId)),
|
1849
1848
|
request.completedErrorChunks.push(task));
|
1850
1849
|
}
|
1851
|
-
function flushCompletedChunks(request
|
1852
|
-
|
1853
|
-
|
1854
|
-
|
1855
|
-
|
1856
|
-
|
1857
|
-
|
1858
|
-
|
1859
|
-
|
1860
|
-
|
1861
|
-
|
1862
|
-
|
1863
|
-
|
1864
|
-
|
1865
|
-
|
1866
|
-
|
1867
|
-
|
1868
|
-
|
1869
|
-
|
1870
|
-
|
1871
|
-
|
1872
|
-
|
1873
|
-
|
1874
|
-
i
|
1875
|
-
|
1876
|
-
|
1877
|
-
|
1878
|
-
|
1879
|
-
|
1880
|
-
|
1881
|
-
|
1882
|
-
|
1883
|
-
|
1884
|
-
|
1885
|
-
|
1886
|
-
|
1887
|
-
|
1888
|
-
|
1889
|
-
|
1890
|
-
|
1891
|
-
|
1892
|
-
|
1893
|
-
|
1894
|
-
|
1895
|
-
|
1896
|
-
|
1897
|
-
|
1898
|
-
|
1899
|
-
|
1900
|
-
|
1901
|
-
|
1902
|
-
|
1903
|
-
|
1904
|
-
|
1905
|
-
|
1906
|
-
|
1907
|
-
|
1850
|
+
function flushCompletedChunks(request) {
|
1851
|
+
var destination = request.destination;
|
1852
|
+
if (null !== destination) {
|
1853
|
+
currentView = new Uint8Array(2048);
|
1854
|
+
writtenBytes = 0;
|
1855
|
+
destinationHasCapacity = !0;
|
1856
|
+
try {
|
1857
|
+
for (
|
1858
|
+
var importsChunks = request.completedImportChunks, i = 0;
|
1859
|
+
i < importsChunks.length;
|
1860
|
+
i++
|
1861
|
+
)
|
1862
|
+
if (
|
1863
|
+
(request.pendingChunks--,
|
1864
|
+
!writeChunkAndReturn(destination, importsChunks[i]))
|
1865
|
+
) {
|
1866
|
+
request.destination = null;
|
1867
|
+
i++;
|
1868
|
+
break;
|
1869
|
+
}
|
1870
|
+
importsChunks.splice(0, i);
|
1871
|
+
var hintChunks = request.completedHintChunks;
|
1872
|
+
for (i = 0; i < hintChunks.length; i++)
|
1873
|
+
if (!writeChunkAndReturn(destination, hintChunks[i])) {
|
1874
|
+
request.destination = null;
|
1875
|
+
i++;
|
1876
|
+
break;
|
1877
|
+
}
|
1878
|
+
hintChunks.splice(0, i);
|
1879
|
+
var regularChunks = request.completedRegularChunks;
|
1880
|
+
for (i = 0; i < regularChunks.length; i++)
|
1881
|
+
if (
|
1882
|
+
(request.pendingChunks--,
|
1883
|
+
!writeChunkAndReturn(destination, regularChunks[i]))
|
1884
|
+
) {
|
1885
|
+
request.destination = null;
|
1886
|
+
i++;
|
1887
|
+
break;
|
1888
|
+
}
|
1889
|
+
regularChunks.splice(0, i);
|
1890
|
+
var errorChunks = request.completedErrorChunks;
|
1891
|
+
for (i = 0; i < errorChunks.length; i++)
|
1892
|
+
if (
|
1893
|
+
(request.pendingChunks--,
|
1894
|
+
!writeChunkAndReturn(destination, errorChunks[i]))
|
1895
|
+
) {
|
1896
|
+
request.destination = null;
|
1897
|
+
i++;
|
1898
|
+
break;
|
1899
|
+
}
|
1900
|
+
errorChunks.splice(0, i);
|
1901
|
+
} finally {
|
1902
|
+
(request.flushScheduled = !1),
|
1903
|
+
currentView &&
|
1904
|
+
0 < writtenBytes &&
|
1905
|
+
destination.write(currentView.subarray(0, writtenBytes)),
|
1906
|
+
(currentView = null),
|
1907
|
+
(writtenBytes = 0),
|
1908
|
+
(destinationHasCapacity = !0);
|
1909
|
+
}
|
1910
|
+
"function" === typeof destination.flush && destination.flush();
|
1908
1911
|
}
|
1909
|
-
"function" === typeof destination.flush && destination.flush();
|
1910
1912
|
0 === request.pendingChunks &&
|
1911
1913
|
(12 > request.status &&
|
1912
1914
|
request.cacheController.abort(
|
@@ -1915,8 +1917,8 @@ function flushCompletedChunks(request, destination) {
|
|
1915
1917
|
)
|
1916
1918
|
),
|
1917
1919
|
(request.status = 14),
|
1918
|
-
destination
|
1919
|
-
|
1920
|
+
null !== request.destination &&
|
1921
|
+
(request.destination.end(), (request.destination = null)));
|
1920
1922
|
}
|
1921
1923
|
function startWork(request) {
|
1922
1924
|
request.flushScheduled = null !== request.destination;
|
@@ -1934,8 +1936,7 @@ function enqueueFlush(request) {
|
|
1934
1936
|
((request.flushScheduled = !0),
|
1935
1937
|
setImmediate(function () {
|
1936
1938
|
request.flushScheduled = !1;
|
1937
|
-
|
1938
|
-
destination && flushCompletedChunks(request, destination);
|
1939
|
+
flushCompletedChunks(request);
|
1939
1940
|
}));
|
1940
1941
|
}
|
1941
1942
|
function callOnAllReadyIfReady(request) {
|
@@ -1948,7 +1949,7 @@ function startFlowing(request, destination) {
|
|
1948
1949
|
else if (14 !== request.status && null === request.destination) {
|
1949
1950
|
request.destination = destination;
|
1950
1951
|
try {
|
1951
|
-
flushCompletedChunks(request
|
1952
|
+
flushCompletedChunks(request);
|
1952
1953
|
} catch (error) {
|
1953
1954
|
logRecoverableError(request, error, null), fatalError(request, error);
|
1954
1955
|
}
|
@@ -1961,8 +1962,7 @@ function finishAbort(request, abortedTasks, errorId) {
|
|
1961
1962
|
});
|
1962
1963
|
var onAllReady = request.onAllReady;
|
1963
1964
|
onAllReady();
|
1964
|
-
|
1965
|
-
flushCompletedChunks(request, request.destination);
|
1965
|
+
flushCompletedChunks(request);
|
1966
1966
|
} catch (error) {
|
1967
1967
|
logRecoverableError(request, error, null), fatalError(request, error);
|
1968
1968
|
}
|
@@ -1996,8 +1996,7 @@ function abort(request, reason) {
|
|
1996
1996
|
} else {
|
1997
1997
|
var onAllReady = request.onAllReady;
|
1998
1998
|
onAllReady();
|
1999
|
-
|
2000
|
-
flushCompletedChunks(request, request.destination);
|
1999
|
+
flushCompletedChunks(request);
|
2001
2000
|
}
|
2002
2001
|
} catch (error$23) {
|
2003
2002
|
logRecoverableError(request, error$23, null),
|