react-server-dom-webpack 19.2.0-canary-5d87cd22-20250704 → 19.2.0-canary-befc1246-20250708
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 +293 -226
- package/cjs/react-server-dom-webpack-client.browser.production.js +52 -51
- package/cjs/react-server-dom-webpack-client.edge.development.js +280 -214
- package/cjs/react-server-dom-webpack-client.edge.production.js +41 -41
- package/cjs/react-server-dom-webpack-client.node.development.js +372 -295
- package/cjs/react-server-dom-webpack-client.node.production.js +59 -59
- package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +372 -295
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.js +59 -59
- package/cjs/react-server-dom-webpack-server.browser.development.js +100 -69
- package/cjs/react-server-dom-webpack-server.browser.production.js +87 -64
- package/cjs/react-server-dom-webpack-server.edge.development.js +100 -69
- package/cjs/react-server-dom-webpack-server.edge.production.js +87 -64
- package/cjs/react-server-dom-webpack-server.node.development.js +103 -72
- package/cjs/react-server-dom-webpack-server.node.production.js +88 -65
- package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +103 -72
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.js +88 -65
- package/package.json +3 -3
@@ -812,7 +812,9 @@ function serializeThenable(request, task, thenable) {
|
|
812
812
|
if (12 === request.status)
|
813
813
|
return (
|
814
814
|
request.abortableTasks.delete(newTask),
|
815
|
-
|
815
|
+
(task = request.fatalError),
|
816
|
+
abortTask(newTask),
|
817
|
+
finishAbortedTask(newTask, request, task),
|
816
818
|
newTask.id
|
817
819
|
);
|
818
820
|
"string" !== typeof thenable.status &&
|
@@ -1316,7 +1318,7 @@ function outlineModel(request, value) {
|
|
1316
1318
|
function serializeTypedArray(request, tag, typedArray) {
|
1317
1319
|
request.pendingChunks++;
|
1318
1320
|
var bufferId = request.nextChunkId++;
|
1319
|
-
emitTypedArrayChunk(request, bufferId, tag, typedArray);
|
1321
|
+
emitTypedArrayChunk(request, bufferId, tag, typedArray, !1);
|
1320
1322
|
return serializeByValueID(bufferId);
|
1321
1323
|
}
|
1322
1324
|
function serializeBlob(request, blob) {
|
@@ -1563,7 +1565,7 @@ function renderModelDestructive(
|
|
1563
1565
|
return (
|
1564
1566
|
request.pendingChunks++,
|
1565
1567
|
(task = request.nextChunkId++),
|
1566
|
-
emitTextChunk(request, task, value),
|
1568
|
+
emitTextChunk(request, task, value, !1),
|
1567
1569
|
serializeByValueID(task)
|
1568
1570
|
);
|
1569
1571
|
request = "$" === value[0] ? "$" + value : value;
|
@@ -1690,57 +1692,57 @@ function emitErrorChunk(request, id, digest) {
|
|
1690
1692
|
id = id.toString(16) + ":E" + stringify(digest) + "\n";
|
1691
1693
|
request.completedErrorChunks.push(id);
|
1692
1694
|
}
|
1693
|
-
function emitTypedArrayChunk(request, id, tag, typedArray) {
|
1694
|
-
request.pendingChunks++;
|
1695
|
+
function emitTypedArrayChunk(request, id, tag, typedArray, debug) {
|
1696
|
+
debug ? request.pendingDebugChunks++ : request.pendingChunks++;
|
1695
1697
|
typedArray = new Uint8Array(
|
1696
1698
|
typedArray.buffer,
|
1697
1699
|
typedArray.byteOffset,
|
1698
1700
|
typedArray.byteLength
|
1699
1701
|
);
|
1700
|
-
|
1701
|
-
id = id.toString(16) + ":" + tag +
|
1702
|
+
debug = typedArray.byteLength;
|
1703
|
+
id = id.toString(16) + ":" + tag + debug.toString(16) + ",";
|
1702
1704
|
request.completedRegularChunks.push(id, typedArray);
|
1703
1705
|
}
|
1704
|
-
function emitTextChunk(request, id, text) {
|
1706
|
+
function emitTextChunk(request, id, text, debug) {
|
1705
1707
|
if (null === byteLengthOfChunk)
|
1706
1708
|
throw Error(
|
1707
1709
|
"Existence of byteLengthOfChunk should have already been checked. This is a bug in React."
|
1708
1710
|
);
|
1709
|
-
request.pendingChunks++;
|
1710
|
-
|
1711
|
-
id = id.toString(16) + ":T" +
|
1711
|
+
debug ? request.pendingDebugChunks++ : request.pendingChunks++;
|
1712
|
+
debug = byteLengthOfChunk(text);
|
1713
|
+
id = id.toString(16) + ":T" + debug.toString(16) + ",";
|
1712
1714
|
request.completedRegularChunks.push(id, text);
|
1713
1715
|
}
|
1714
1716
|
function emitChunk(request, task, value) {
|
1715
1717
|
var id = task.id;
|
1716
1718
|
"string" === typeof value && null !== byteLengthOfChunk
|
1717
|
-
? emitTextChunk(request, id, value)
|
1719
|
+
? emitTextChunk(request, id, value, !1)
|
1718
1720
|
: value instanceof ArrayBuffer
|
1719
|
-
? emitTypedArrayChunk(request, id, "A", new Uint8Array(value))
|
1721
|
+
? emitTypedArrayChunk(request, id, "A", new Uint8Array(value), !1)
|
1720
1722
|
: value instanceof Int8Array
|
1721
|
-
? emitTypedArrayChunk(request, id, "O", value)
|
1723
|
+
? emitTypedArrayChunk(request, id, "O", value, !1)
|
1722
1724
|
: value instanceof Uint8Array
|
1723
|
-
? emitTypedArrayChunk(request, id, "o", value)
|
1725
|
+
? emitTypedArrayChunk(request, id, "o", value, !1)
|
1724
1726
|
: value instanceof Uint8ClampedArray
|
1725
|
-
? emitTypedArrayChunk(request, id, "U", value)
|
1727
|
+
? emitTypedArrayChunk(request, id, "U", value, !1)
|
1726
1728
|
: value instanceof Int16Array
|
1727
|
-
? emitTypedArrayChunk(request, id, "S", value)
|
1729
|
+
? emitTypedArrayChunk(request, id, "S", value, !1)
|
1728
1730
|
: value instanceof Uint16Array
|
1729
|
-
? emitTypedArrayChunk(request, id, "s", value)
|
1731
|
+
? emitTypedArrayChunk(request, id, "s", value, !1)
|
1730
1732
|
: value instanceof Int32Array
|
1731
|
-
? emitTypedArrayChunk(request, id, "L", value)
|
1733
|
+
? emitTypedArrayChunk(request, id, "L", value, !1)
|
1732
1734
|
: value instanceof Uint32Array
|
1733
|
-
? emitTypedArrayChunk(request, id, "l", value)
|
1735
|
+
? emitTypedArrayChunk(request, id, "l", value, !1)
|
1734
1736
|
: value instanceof Float32Array
|
1735
|
-
? emitTypedArrayChunk(request, id, "G", value)
|
1737
|
+
? emitTypedArrayChunk(request, id, "G", value, !1)
|
1736
1738
|
: value instanceof Float64Array
|
1737
|
-
? emitTypedArrayChunk(request, id, "g", value)
|
1739
|
+
? emitTypedArrayChunk(request, id, "g", value, !1)
|
1738
1740
|
: value instanceof BigInt64Array
|
1739
|
-
? emitTypedArrayChunk(request, id, "M", value)
|
1741
|
+
? emitTypedArrayChunk(request, id, "M", value, !1)
|
1740
1742
|
: value instanceof BigUint64Array
|
1741
|
-
? emitTypedArrayChunk(request, id, "m", value)
|
1743
|
+
? emitTypedArrayChunk(request, id, "m", value, !1)
|
1742
1744
|
: value instanceof DataView
|
1743
|
-
? emitTypedArrayChunk(request, id, "V", value)
|
1745
|
+
? emitTypedArrayChunk(request, id, "V", value, !1)
|
1744
1746
|
: ((value = stringify(value, task.toJSON)),
|
1745
1747
|
(task =
|
1746
1748
|
task.id.toString(16) + ":" + value + "\n"),
|
@@ -1782,11 +1784,13 @@ function retryTask(request, task) {
|
|
1782
1784
|
request.abortableTasks.delete(task);
|
1783
1785
|
callOnAllReadyIfReady(request);
|
1784
1786
|
} catch (thrownValue) {
|
1785
|
-
if (12 === request.status)
|
1786
|
-
request.abortableTasks.delete(task)
|
1787
|
-
|
1788
|
-
|
1789
|
-
|
1787
|
+
if (12 === request.status) {
|
1788
|
+
request.abortableTasks.delete(task);
|
1789
|
+
task.status = 0;
|
1790
|
+
var errorId = request.fatalError;
|
1791
|
+
abortTask(task);
|
1792
|
+
finishAbortedTask(task, request, errorId);
|
1793
|
+
} else {
|
1790
1794
|
var x =
|
1791
1795
|
thrownValue === SuspenseException
|
1792
1796
|
? getSuspendedThenable()
|
@@ -1835,10 +1839,12 @@ function performWork(request) {
|
|
1835
1839
|
(currentRequest = prevRequest);
|
1836
1840
|
}
|
1837
1841
|
}
|
1838
|
-
function abortTask(task
|
1839
|
-
|
1840
|
-
|
1841
|
-
|
1842
|
+
function abortTask(task) {
|
1843
|
+
0 === task.status && (task.status = 3);
|
1844
|
+
}
|
1845
|
+
function finishAbortedTask(task, request, errorId) {
|
1846
|
+
3 === task.status &&
|
1847
|
+
((errorId = serializeByValueID(errorId)),
|
1842
1848
|
(task = encodeReferenceChunk(request, task.id, errorId)),
|
1843
1849
|
request.completedErrorChunks.push(task));
|
1844
1850
|
}
|
@@ -1948,39 +1954,56 @@ function startFlowing(request, destination) {
|
|
1948
1954
|
}
|
1949
1955
|
}
|
1950
1956
|
}
|
1951
|
-
function
|
1957
|
+
function finishAbort(request, abortedTasks, errorId) {
|
1952
1958
|
try {
|
1953
|
-
|
1954
|
-
(
|
1955
|
-
|
1956
|
-
|
1957
|
-
|
1958
|
-
if (0 < abortableTasks.size) {
|
1959
|
-
var error =
|
1960
|
-
void 0 === reason
|
1961
|
-
? Error("The render was aborted by the server without a reason.")
|
1962
|
-
: "object" === typeof reason &&
|
1963
|
-
null !== reason &&
|
1964
|
-
"function" === typeof reason.then
|
1965
|
-
? Error("The render was aborted by the server with a promise.")
|
1966
|
-
: reason,
|
1967
|
-
digest = logRecoverableError(request, error, null),
|
1968
|
-
errorId = request.nextChunkId++;
|
1969
|
-
request.fatalError = errorId;
|
1970
|
-
request.pendingChunks++;
|
1971
|
-
emitErrorChunk(request, errorId, digest, error, !1);
|
1972
|
-
abortableTasks.forEach(function (task) {
|
1973
|
-
return abortTask(task, request, errorId);
|
1974
|
-
});
|
1975
|
-
abortableTasks.clear();
|
1976
|
-
callOnAllReadyIfReady(request);
|
1977
|
-
}
|
1959
|
+
abortedTasks.forEach(function (task) {
|
1960
|
+
return finishAbortedTask(task, request, errorId);
|
1961
|
+
});
|
1962
|
+
var onAllReady = request.onAllReady;
|
1963
|
+
onAllReady();
|
1978
1964
|
null !== request.destination &&
|
1979
1965
|
flushCompletedChunks(request, request.destination);
|
1980
|
-
} catch (error
|
1981
|
-
logRecoverableError(request, error
|
1966
|
+
} catch (error) {
|
1967
|
+
logRecoverableError(request, error, null), fatalError(request, error);
|
1982
1968
|
}
|
1983
1969
|
}
|
1970
|
+
function abort(request, reason) {
|
1971
|
+
if (!(11 < request.status))
|
1972
|
+
try {
|
1973
|
+
request.status = 12;
|
1974
|
+
request.cacheController.abort(reason);
|
1975
|
+
var abortableTasks = request.abortableTasks;
|
1976
|
+
if (0 < abortableTasks.size) {
|
1977
|
+
var error =
|
1978
|
+
void 0 === reason
|
1979
|
+
? Error("The render was aborted by the server without a reason.")
|
1980
|
+
: "object" === typeof reason &&
|
1981
|
+
null !== reason &&
|
1982
|
+
"function" === typeof reason.then
|
1983
|
+
? Error("The render was aborted by the server with a promise.")
|
1984
|
+
: reason,
|
1985
|
+
digest = logRecoverableError(request, error, null),
|
1986
|
+
errorId = request.nextChunkId++;
|
1987
|
+
request.fatalError = errorId;
|
1988
|
+
request.pendingChunks++;
|
1989
|
+
emitErrorChunk(request, errorId, digest, error, !1);
|
1990
|
+
abortableTasks.forEach(function (task) {
|
1991
|
+
return abortTask(task, request, errorId);
|
1992
|
+
});
|
1993
|
+
setImmediate(function () {
|
1994
|
+
return finishAbort(request, abortableTasks, errorId);
|
1995
|
+
});
|
1996
|
+
} else {
|
1997
|
+
var onAllReady = request.onAllReady;
|
1998
|
+
onAllReady();
|
1999
|
+
null !== request.destination &&
|
2000
|
+
flushCompletedChunks(request, request.destination);
|
2001
|
+
}
|
2002
|
+
} catch (error$24) {
|
2003
|
+
logRecoverableError(request, error$24, null),
|
2004
|
+
fatalError(request, error$24);
|
2005
|
+
}
|
2006
|
+
}
|
1984
2007
|
function resolveServerReference(bundlerConfig, id) {
|
1985
2008
|
var idx = id.lastIndexOf("#");
|
1986
2009
|
bundlerConfig = id.slice(0, idx);
|
@@ -2825,12 +2848,12 @@ exports.decodeReplyFromBusboy = function (busboyStream, webpackMap, options) {
|
|
2825
2848
|
"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."
|
2826
2849
|
);
|
2827
2850
|
pendingFiles++;
|
2828
|
-
var
|
2851
|
+
var JSCompiler_object_inline_chunks_253 = [];
|
2829
2852
|
value.on("data", function (chunk) {
|
2830
|
-
|
2853
|
+
JSCompiler_object_inline_chunks_253.push(chunk);
|
2831
2854
|
});
|
2832
2855
|
value.on("end", function () {
|
2833
|
-
var blob = new Blob(
|
2856
|
+
var blob = new Blob(JSCompiler_object_inline_chunks_253, {
|
2834
2857
|
type: mimeType
|
2835
2858
|
});
|
2836
2859
|
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-befc1246-20250708",
|
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-befc1246-20250708",
|
103
|
+
"react-dom": "19.2.0-canary-befc1246-20250708",
|
104
104
|
"webpack": "^5.59.0"
|
105
105
|
},
|
106
106
|
"dependencies": {
|