react-server-dom-webpack 19.0.0-rc-c3cdbec0a7-20240708 → 19.0.0-rc-378b305958-20240710
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 +11 -0
- package/cjs/react-server-dom-webpack-client.edge.development.js +11 -0
- package/cjs/react-server-dom-webpack-client.node.development.js +11 -0
- package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +11 -0
- package/cjs/react-server-dom-webpack-server.browser.development.js +13 -11
- package/cjs/react-server-dom-webpack-server.edge.development.js +13 -11
- package/cjs/react-server-dom-webpack-server.node.development.js +16 -14
- package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +16 -14
- package/package.json +3 -3
@@ -1242,6 +1242,17 @@
|
|
1242
1242
|
} catch (x) {
|
1243
1243
|
return function () {};
|
1244
1244
|
}
|
1245
|
+
case "Y":
|
1246
|
+
return (
|
1247
|
+
Object.defineProperty(parentObject, key, {
|
1248
|
+
get: function () {
|
1249
|
+
throw "This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.";
|
1250
|
+
},
|
1251
|
+
enumerable: !0,
|
1252
|
+
configurable: !1
|
1253
|
+
}),
|
1254
|
+
null
|
1255
|
+
);
|
1245
1256
|
default:
|
1246
1257
|
return (
|
1247
1258
|
(value = value.slice(1)),
|
@@ -1413,6 +1413,17 @@
|
|
1413
1413
|
} catch (x) {
|
1414
1414
|
return function () {};
|
1415
1415
|
}
|
1416
|
+
case "Y":
|
1417
|
+
return (
|
1418
|
+
Object.defineProperty(parentObject, key, {
|
1419
|
+
get: function () {
|
1420
|
+
throw "This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.";
|
1421
|
+
},
|
1422
|
+
enumerable: !0,
|
1423
|
+
configurable: !1
|
1424
|
+
}),
|
1425
|
+
null
|
1426
|
+
);
|
1416
1427
|
default:
|
1417
1428
|
return (
|
1418
1429
|
(value = value.slice(1)),
|
@@ -1413,6 +1413,17 @@
|
|
1413
1413
|
} catch (x) {
|
1414
1414
|
return function () {};
|
1415
1415
|
}
|
1416
|
+
case "Y":
|
1417
|
+
return (
|
1418
|
+
Object.defineProperty(parentObject, key, {
|
1419
|
+
get: function () {
|
1420
|
+
throw "This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.";
|
1421
|
+
},
|
1422
|
+
enumerable: !0,
|
1423
|
+
configurable: !1
|
1424
|
+
}),
|
1425
|
+
null
|
1426
|
+
);
|
1416
1427
|
default:
|
1417
1428
|
return (
|
1418
1429
|
(value = value.slice(1)),
|
@@ -1388,6 +1388,17 @@
|
|
1388
1388
|
} catch (x) {
|
1389
1389
|
return function () {};
|
1390
1390
|
}
|
1391
|
+
case "Y":
|
1392
|
+
return (
|
1393
|
+
Object.defineProperty(parentObject, key, {
|
1394
|
+
get: function () {
|
1395
|
+
throw "This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.";
|
1396
|
+
},
|
1397
|
+
enumerable: !0,
|
1398
|
+
configurable: !1
|
1399
|
+
}),
|
1400
|
+
null
|
1401
|
+
);
|
1391
1402
|
default:
|
1392
1403
|
return (
|
1393
1404
|
(value = value.slice(1)),
|
@@ -1719,7 +1719,7 @@
|
|
1719
1719
|
((parent = request.temporaryReferences.get(value)), void 0 !== parent)
|
1720
1720
|
)
|
1721
1721
|
return "$T" + parent;
|
1722
|
-
if (
|
1722
|
+
if (500 < counter.objectCount) return "$Y";
|
1723
1723
|
counter.objectCount++;
|
1724
1724
|
parent = request.writtenObjects.get(value);
|
1725
1725
|
if ("function" === typeof value.then) {
|
@@ -1732,11 +1732,11 @@
|
|
1732
1732
|
);
|
1733
1733
|
case "rejected":
|
1734
1734
|
return (
|
1735
|
-
(
|
1735
|
+
(counter = value.reason),
|
1736
1736
|
request.pendingChunks++,
|
1737
|
-
(
|
1738
|
-
emitErrorChunk(request,
|
1739
|
-
"$@" +
|
1737
|
+
(value = request.nextChunkId++),
|
1738
|
+
emitErrorChunk(request, value, "", counter),
|
1739
|
+
"$@" + value.toString(16)
|
1740
1740
|
);
|
1741
1741
|
}
|
1742
1742
|
return "$@";
|
@@ -1746,9 +1746,11 @@
|
|
1746
1746
|
: isArrayImpl(value)
|
1747
1747
|
? value
|
1748
1748
|
: value instanceof Map
|
1749
|
-
?
|
1749
|
+
? ((value = Array.from(value)),
|
1750
|
+
"$Q" + outlineConsoleValue(request, counter, value).toString(16))
|
1750
1751
|
: value instanceof Set
|
1751
|
-
?
|
1752
|
+
? ((value = Array.from(value)),
|
1753
|
+
"$W" + outlineConsoleValue(request, counter, value).toString(16))
|
1752
1754
|
: "function" === typeof FormData && value instanceof FormData
|
1753
1755
|
? serializeFormData(request, value)
|
1754
1756
|
: value instanceof ArrayBuffer
|
@@ -1805,11 +1807,11 @@
|
|
1805
1807
|
if ("symbol" === typeof value) {
|
1806
1808
|
counter = request.writtenSymbols.get(value);
|
1807
1809
|
if (void 0 !== counter) return serializeByValueID(counter);
|
1808
|
-
|
1810
|
+
counter = value.description;
|
1809
1811
|
request.pendingChunks++;
|
1810
|
-
|
1811
|
-
emitSymbolChunk(request,
|
1812
|
-
return serializeByValueID(
|
1812
|
+
value = request.nextChunkId++;
|
1813
|
+
emitSymbolChunk(request, value, counter);
|
1814
|
+
return serializeByValueID(value);
|
1813
1815
|
}
|
1814
1816
|
return "bigint" === typeof value
|
1815
1817
|
? "$n" + value.toString(10)
|
@@ -1735,7 +1735,7 @@
|
|
1735
1735
|
((parent = request.temporaryReferences.get(value)), void 0 !== parent)
|
1736
1736
|
)
|
1737
1737
|
return "$T" + parent;
|
1738
|
-
if (
|
1738
|
+
if (500 < counter.objectCount) return "$Y";
|
1739
1739
|
counter.objectCount++;
|
1740
1740
|
parent = request.writtenObjects.get(value);
|
1741
1741
|
if ("function" === typeof value.then) {
|
@@ -1748,11 +1748,11 @@
|
|
1748
1748
|
);
|
1749
1749
|
case "rejected":
|
1750
1750
|
return (
|
1751
|
-
(
|
1751
|
+
(counter = value.reason),
|
1752
1752
|
request.pendingChunks++,
|
1753
|
-
(
|
1754
|
-
emitErrorChunk(request,
|
1755
|
-
"$@" +
|
1753
|
+
(value = request.nextChunkId++),
|
1754
|
+
emitErrorChunk(request, value, "", counter),
|
1755
|
+
"$@" + value.toString(16)
|
1756
1756
|
);
|
1757
1757
|
}
|
1758
1758
|
return "$@";
|
@@ -1762,9 +1762,11 @@
|
|
1762
1762
|
: isArrayImpl(value)
|
1763
1763
|
? value
|
1764
1764
|
: value instanceof Map
|
1765
|
-
?
|
1765
|
+
? ((value = Array.from(value)),
|
1766
|
+
"$Q" + outlineConsoleValue(request, counter, value).toString(16))
|
1766
1767
|
: value instanceof Set
|
1767
|
-
?
|
1768
|
+
? ((value = Array.from(value)),
|
1769
|
+
"$W" + outlineConsoleValue(request, counter, value).toString(16))
|
1768
1770
|
: "function" === typeof FormData && value instanceof FormData
|
1769
1771
|
? serializeFormData(request, value)
|
1770
1772
|
: value instanceof ArrayBuffer
|
@@ -1821,11 +1823,11 @@
|
|
1821
1823
|
if ("symbol" === typeof value) {
|
1822
1824
|
counter = request.writtenSymbols.get(value);
|
1823
1825
|
if (void 0 !== counter) return serializeByValueID(counter);
|
1824
|
-
|
1826
|
+
counter = value.description;
|
1825
1827
|
request.pendingChunks++;
|
1826
|
-
|
1827
|
-
emitSymbolChunk(request,
|
1828
|
-
return serializeByValueID(
|
1828
|
+
value = request.nextChunkId++;
|
1829
|
+
emitSymbolChunk(request, value, counter);
|
1830
|
+
return serializeByValueID(value);
|
1829
1831
|
}
|
1830
1832
|
return "bigint" === typeof value
|
1831
1833
|
? "$n" + value.toString(10)
|
@@ -1747,7 +1747,7 @@
|
|
1747
1747
|
((parent = request.temporaryReferences.get(value)), void 0 !== parent)
|
1748
1748
|
)
|
1749
1749
|
return "$T" + parent;
|
1750
|
-
if (
|
1750
|
+
if (500 < counter.objectCount) return "$Y";
|
1751
1751
|
counter.objectCount++;
|
1752
1752
|
parent = request.writtenObjects.get(value);
|
1753
1753
|
if ("function" === typeof value.then) {
|
@@ -1760,11 +1760,11 @@
|
|
1760
1760
|
);
|
1761
1761
|
case "rejected":
|
1762
1762
|
return (
|
1763
|
-
(
|
1763
|
+
(counter = value.reason),
|
1764
1764
|
request.pendingChunks++,
|
1765
|
-
(
|
1766
|
-
emitErrorChunk(request,
|
1767
|
-
"$@" +
|
1765
|
+
(value = request.nextChunkId++),
|
1766
|
+
emitErrorChunk(request, value, "", counter),
|
1767
|
+
"$@" + value.toString(16)
|
1768
1768
|
);
|
1769
1769
|
}
|
1770
1770
|
return "$@";
|
@@ -1774,9 +1774,11 @@
|
|
1774
1774
|
: isArrayImpl(value)
|
1775
1775
|
? value
|
1776
1776
|
: value instanceof Map
|
1777
|
-
?
|
1777
|
+
? ((value = Array.from(value)),
|
1778
|
+
"$Q" + outlineConsoleValue(request, counter, value).toString(16))
|
1778
1779
|
: value instanceof Set
|
1779
|
-
?
|
1780
|
+
? ((value = Array.from(value)),
|
1781
|
+
"$W" + outlineConsoleValue(request, counter, value).toString(16))
|
1780
1782
|
: "function" === typeof FormData && value instanceof FormData
|
1781
1783
|
? serializeFormData(request, value)
|
1782
1784
|
: value instanceof ArrayBuffer
|
@@ -1833,11 +1835,11 @@
|
|
1833
1835
|
if ("symbol" === typeof value) {
|
1834
1836
|
counter = request.writtenSymbols.get(value);
|
1835
1837
|
if (void 0 !== counter) return serializeByValueID(counter);
|
1836
|
-
|
1838
|
+
counter = value.description;
|
1837
1839
|
request.pendingChunks++;
|
1838
|
-
|
1839
|
-
emitSymbolChunk(request,
|
1840
|
-
return serializeByValueID(
|
1840
|
+
value = request.nextChunkId++;
|
1841
|
+
emitSymbolChunk(request, value, counter);
|
1842
|
+
return serializeByValueID(value);
|
1841
1843
|
}
|
1842
1844
|
return "bigint" === typeof value
|
1843
1845
|
? "$n" + value.toString(10)
|
@@ -3389,12 +3391,12 @@
|
|
3389
3391
|
"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."
|
3390
3392
|
);
|
3391
3393
|
pendingFiles++;
|
3392
|
-
var
|
3394
|
+
var JSCompiler_object_inline_chunks_138 = [];
|
3393
3395
|
value.on("data", function (chunk) {
|
3394
|
-
|
3396
|
+
JSCompiler_object_inline_chunks_138.push(chunk);
|
3395
3397
|
});
|
3396
3398
|
value.on("end", function () {
|
3397
|
-
var blob = new Blob(
|
3399
|
+
var blob = new Blob(JSCompiler_object_inline_chunks_138, {
|
3398
3400
|
type: mimeType
|
3399
3401
|
});
|
3400
3402
|
response._formData.append(name, blob, filename);
|
@@ -1747,7 +1747,7 @@
|
|
1747
1747
|
((parent = request.temporaryReferences.get(value)), void 0 !== parent)
|
1748
1748
|
)
|
1749
1749
|
return "$T" + parent;
|
1750
|
-
if (
|
1750
|
+
if (500 < counter.objectCount) return "$Y";
|
1751
1751
|
counter.objectCount++;
|
1752
1752
|
parent = request.writtenObjects.get(value);
|
1753
1753
|
if ("function" === typeof value.then) {
|
@@ -1760,11 +1760,11 @@
|
|
1760
1760
|
);
|
1761
1761
|
case "rejected":
|
1762
1762
|
return (
|
1763
|
-
(
|
1763
|
+
(counter = value.reason),
|
1764
1764
|
request.pendingChunks++,
|
1765
|
-
(
|
1766
|
-
emitErrorChunk(request,
|
1767
|
-
"$@" +
|
1765
|
+
(value = request.nextChunkId++),
|
1766
|
+
emitErrorChunk(request, value, "", counter),
|
1767
|
+
"$@" + value.toString(16)
|
1768
1768
|
);
|
1769
1769
|
}
|
1770
1770
|
return "$@";
|
@@ -1774,9 +1774,11 @@
|
|
1774
1774
|
: isArrayImpl(value)
|
1775
1775
|
? value
|
1776
1776
|
: value instanceof Map
|
1777
|
-
?
|
1777
|
+
? ((value = Array.from(value)),
|
1778
|
+
"$Q" + outlineConsoleValue(request, counter, value).toString(16))
|
1778
1779
|
: value instanceof Set
|
1779
|
-
?
|
1780
|
+
? ((value = Array.from(value)),
|
1781
|
+
"$W" + outlineConsoleValue(request, counter, value).toString(16))
|
1780
1782
|
: "function" === typeof FormData && value instanceof FormData
|
1781
1783
|
? serializeFormData(request, value)
|
1782
1784
|
: value instanceof ArrayBuffer
|
@@ -1833,11 +1835,11 @@
|
|
1833
1835
|
if ("symbol" === typeof value) {
|
1834
1836
|
counter = request.writtenSymbols.get(value);
|
1835
1837
|
if (void 0 !== counter) return serializeByValueID(counter);
|
1836
|
-
|
1838
|
+
counter = value.description;
|
1837
1839
|
request.pendingChunks++;
|
1838
|
-
|
1839
|
-
emitSymbolChunk(request,
|
1840
|
-
return serializeByValueID(
|
1840
|
+
value = request.nextChunkId++;
|
1841
|
+
emitSymbolChunk(request, value, counter);
|
1842
|
+
return serializeByValueID(value);
|
1841
1843
|
}
|
1842
1844
|
return "bigint" === typeof value
|
1843
1845
|
? "$n" + value.toString(10)
|
@@ -3354,12 +3356,12 @@
|
|
3354
3356
|
"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."
|
3355
3357
|
);
|
3356
3358
|
pendingFiles++;
|
3357
|
-
var
|
3359
|
+
var JSCompiler_object_inline_chunks_138 = [];
|
3358
3360
|
value.on("data", function (chunk) {
|
3359
|
-
|
3361
|
+
JSCompiler_object_inline_chunks_138.push(chunk);
|
3360
3362
|
});
|
3361
3363
|
value.on("end", function () {
|
3362
|
-
var blob = new Blob(
|
3364
|
+
var blob = new Blob(JSCompiler_object_inline_chunks_138, {
|
3363
3365
|
type: mimeType
|
3364
3366
|
});
|
3365
3367
|
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.0.0-rc-
|
4
|
+
"version": "19.0.0-rc-378b305958-20240710",
|
5
5
|
"keywords": [
|
6
6
|
"react"
|
7
7
|
],
|
@@ -77,8 +77,8 @@
|
|
77
77
|
"node": ">=0.10.0"
|
78
78
|
},
|
79
79
|
"peerDependencies": {
|
80
|
-
"react": "19.0.0-rc-
|
81
|
-
"react-dom": "19.0.0-rc-
|
80
|
+
"react": "19.0.0-rc-378b305958-20240710",
|
81
|
+
"react-dom": "19.0.0-rc-378b305958-20240710",
|
82
82
|
"webpack": "^5.59.0"
|
83
83
|
},
|
84
84
|
"dependencies": {
|