react-server-dom-webpack 19.0.0-rc-df783f9ea1-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 +13 -1
- package/cjs/react-server-dom-webpack-client.edge.development.js +13 -1
- package/cjs/react-server-dom-webpack-client.node.development.js +13 -1
- package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +13 -1
- package/cjs/react-server-dom-webpack-server.browser.development.js +15 -12
- package/cjs/react-server-dom-webpack-server.browser.production.js +7 -6
- package/cjs/react-server-dom-webpack-server.edge.development.js +15 -12
- package/cjs/react-server-dom-webpack-server.edge.production.js +7 -6
- package/cjs/react-server-dom-webpack-server.node.development.js +18 -15
- package/cjs/react-server-dom-webpack-server.node.production.js +7 -6
- package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +18 -15
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.js +7 -6
- package/package.json +3 -3
@@ -629,7 +629,8 @@
|
|
629
629
|
) {
|
630
630
|
if (void 0 === temporaryReferences)
|
631
631
|
throw Error(
|
632
|
-
"Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported."
|
632
|
+
"Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported." +
|
633
|
+
describeObjectForErrorMessage(this, key)
|
633
634
|
);
|
634
635
|
return "$T";
|
635
636
|
}
|
@@ -1241,6 +1242,17 @@
|
|
1241
1242
|
} catch (x) {
|
1242
1243
|
return function () {};
|
1243
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
|
+
);
|
1244
1256
|
default:
|
1245
1257
|
return (
|
1246
1258
|
(value = value.slice(1)),
|
@@ -650,7 +650,8 @@
|
|
650
650
|
) {
|
651
651
|
if (void 0 === temporaryReferences)
|
652
652
|
throw Error(
|
653
|
-
"Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported."
|
653
|
+
"Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported." +
|
654
|
+
describeObjectForErrorMessage(this, key)
|
654
655
|
);
|
655
656
|
return "$T";
|
656
657
|
}
|
@@ -1412,6 +1413,17 @@
|
|
1412
1413
|
} catch (x) {
|
1413
1414
|
return function () {};
|
1414
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
|
+
);
|
1415
1427
|
default:
|
1416
1428
|
return (
|
1417
1429
|
(value = value.slice(1)),
|
@@ -650,7 +650,8 @@
|
|
650
650
|
) {
|
651
651
|
if (void 0 === temporaryReferences)
|
652
652
|
throw Error(
|
653
|
-
"Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported."
|
653
|
+
"Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported." +
|
654
|
+
describeObjectForErrorMessage(this, key)
|
654
655
|
);
|
655
656
|
return "$T";
|
656
657
|
}
|
@@ -1412,6 +1413,17 @@
|
|
1412
1413
|
} catch (x) {
|
1413
1414
|
return function () {};
|
1414
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
|
+
);
|
1415
1427
|
default:
|
1416
1428
|
return (
|
1417
1429
|
(value = value.slice(1)),
|
@@ -629,7 +629,8 @@
|
|
629
629
|
) {
|
630
630
|
if (void 0 === temporaryReferences)
|
631
631
|
throw Error(
|
632
|
-
"Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported."
|
632
|
+
"Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported." +
|
633
|
+
describeObjectForErrorMessage(this, key)
|
633
634
|
);
|
634
635
|
return "$T";
|
635
636
|
}
|
@@ -1387,6 +1388,17 @@
|
|
1387
1388
|
} catch (x) {
|
1388
1389
|
return function () {};
|
1389
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
|
+
);
|
1390
1402
|
default:
|
1391
1403
|
return (
|
1392
1404
|
(value = value.slice(1)),
|
@@ -1465,7 +1465,8 @@
|
|
1465
1465
|
(null === request || null !== getPrototypeOf(request))
|
1466
1466
|
)
|
1467
1467
|
throw Error(
|
1468
|
-
"Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported."
|
1468
|
+
"Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported." +
|
1469
|
+
describeObjectForErrorMessage(parent, parentPropertyName)
|
1469
1470
|
);
|
1470
1471
|
if (
|
1471
1472
|
"object" === typeof value.task &&
|
@@ -1718,7 +1719,7 @@
|
|
1718
1719
|
((parent = request.temporaryReferences.get(value)), void 0 !== parent)
|
1719
1720
|
)
|
1720
1721
|
return "$T" + parent;
|
1721
|
-
if (
|
1722
|
+
if (500 < counter.objectCount) return "$Y";
|
1722
1723
|
counter.objectCount++;
|
1723
1724
|
parent = request.writtenObjects.get(value);
|
1724
1725
|
if ("function" === typeof value.then) {
|
@@ -1731,11 +1732,11 @@
|
|
1731
1732
|
);
|
1732
1733
|
case "rejected":
|
1733
1734
|
return (
|
1734
|
-
(
|
1735
|
+
(counter = value.reason),
|
1735
1736
|
request.pendingChunks++,
|
1736
|
-
(
|
1737
|
-
emitErrorChunk(request,
|
1738
|
-
"$@" +
|
1737
|
+
(value = request.nextChunkId++),
|
1738
|
+
emitErrorChunk(request, value, "", counter),
|
1739
|
+
"$@" + value.toString(16)
|
1739
1740
|
);
|
1740
1741
|
}
|
1741
1742
|
return "$@";
|
@@ -1745,9 +1746,11 @@
|
|
1745
1746
|
: isArrayImpl(value)
|
1746
1747
|
? value
|
1747
1748
|
: value instanceof Map
|
1748
|
-
?
|
1749
|
+
? ((value = Array.from(value)),
|
1750
|
+
"$Q" + outlineConsoleValue(request, counter, value).toString(16))
|
1749
1751
|
: value instanceof Set
|
1750
|
-
?
|
1752
|
+
? ((value = Array.from(value)),
|
1753
|
+
"$W" + outlineConsoleValue(request, counter, value).toString(16))
|
1751
1754
|
: "function" === typeof FormData && value instanceof FormData
|
1752
1755
|
? serializeFormData(request, value)
|
1753
1756
|
: value instanceof ArrayBuffer
|
@@ -1804,11 +1807,11 @@
|
|
1804
1807
|
if ("symbol" === typeof value) {
|
1805
1808
|
counter = request.writtenSymbols.get(value);
|
1806
1809
|
if (void 0 !== counter) return serializeByValueID(counter);
|
1807
|
-
|
1810
|
+
counter = value.description;
|
1808
1811
|
request.pendingChunks++;
|
1809
|
-
|
1810
|
-
emitSymbolChunk(request,
|
1811
|
-
return serializeByValueID(
|
1812
|
+
value = request.nextChunkId++;
|
1813
|
+
emitSymbolChunk(request, value, counter);
|
1814
|
+
return serializeByValueID(value);
|
1812
1815
|
}
|
1813
1816
|
return "bigint" === typeof value
|
1814
1817
|
? "$n" + value.toString(10)
|
@@ -1429,9 +1429,9 @@ function renderModelDestructive(
|
|
1429
1429
|
return serializeTypedArray(request, "V", value);
|
1430
1430
|
if ("function" === typeof Blob && value instanceof Blob)
|
1431
1431
|
return serializeBlob(request, value);
|
1432
|
-
if ((
|
1432
|
+
if ((elementReference = getIteratorFn(value)))
|
1433
1433
|
return (
|
1434
|
-
(parentPropertyName =
|
1434
|
+
(parentPropertyName = elementReference.call(value)),
|
1435
1435
|
parentPropertyName === value
|
1436
1436
|
? "$i" +
|
1437
1437
|
outlineModel(request, Array.from(parentPropertyName)).toString(16)
|
@@ -1439,8 +1439,8 @@ function renderModelDestructive(
|
|
1439
1439
|
);
|
1440
1440
|
if ("function" === typeof ReadableStream && value instanceof ReadableStream)
|
1441
1441
|
return serializeReadableStream(request, task, value);
|
1442
|
-
|
1443
|
-
if ("function" === typeof
|
1442
|
+
elementReference = value[ASYNC_ITERATOR];
|
1443
|
+
if ("function" === typeof elementReference)
|
1444
1444
|
return (
|
1445
1445
|
null !== task.keyPath
|
1446
1446
|
? ((request = [
|
@@ -1450,7 +1450,7 @@ function renderModelDestructive(
|
|
1450
1450
|
{ children: value }
|
1451
1451
|
]),
|
1452
1452
|
(request = task.implicitSlot ? [request] : request))
|
1453
|
-
: ((parentPropertyName =
|
1453
|
+
: ((parentPropertyName = elementReference.call(value)),
|
1454
1454
|
(request = serializeAsyncIterable(
|
1455
1455
|
request,
|
1456
1456
|
task,
|
@@ -1465,7 +1465,8 @@ function renderModelDestructive(
|
|
1465
1465
|
(null === request || null !== getPrototypeOf(request))
|
1466
1466
|
)
|
1467
1467
|
throw Error(
|
1468
|
-
"Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported."
|
1468
|
+
"Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported." +
|
1469
|
+
describeObjectForErrorMessage(parent, parentPropertyName)
|
1469
1470
|
);
|
1470
1471
|
return value;
|
1471
1472
|
}
|
@@ -1471,7 +1471,8 @@
|
|
1471
1471
|
(null === request || null !== getPrototypeOf(request))
|
1472
1472
|
)
|
1473
1473
|
throw Error(
|
1474
|
-
"Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported."
|
1474
|
+
"Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported." +
|
1475
|
+
describeObjectForErrorMessage(parent, parentPropertyName)
|
1475
1476
|
);
|
1476
1477
|
if (
|
1477
1478
|
"object" === typeof value.task &&
|
@@ -1734,7 +1735,7 @@
|
|
1734
1735
|
((parent = request.temporaryReferences.get(value)), void 0 !== parent)
|
1735
1736
|
)
|
1736
1737
|
return "$T" + parent;
|
1737
|
-
if (
|
1738
|
+
if (500 < counter.objectCount) return "$Y";
|
1738
1739
|
counter.objectCount++;
|
1739
1740
|
parent = request.writtenObjects.get(value);
|
1740
1741
|
if ("function" === typeof value.then) {
|
@@ -1747,11 +1748,11 @@
|
|
1747
1748
|
);
|
1748
1749
|
case "rejected":
|
1749
1750
|
return (
|
1750
|
-
(
|
1751
|
+
(counter = value.reason),
|
1751
1752
|
request.pendingChunks++,
|
1752
|
-
(
|
1753
|
-
emitErrorChunk(request,
|
1754
|
-
"$@" +
|
1753
|
+
(value = request.nextChunkId++),
|
1754
|
+
emitErrorChunk(request, value, "", counter),
|
1755
|
+
"$@" + value.toString(16)
|
1755
1756
|
);
|
1756
1757
|
}
|
1757
1758
|
return "$@";
|
@@ -1761,9 +1762,11 @@
|
|
1761
1762
|
: isArrayImpl(value)
|
1762
1763
|
? value
|
1763
1764
|
: value instanceof Map
|
1764
|
-
?
|
1765
|
+
? ((value = Array.from(value)),
|
1766
|
+
"$Q" + outlineConsoleValue(request, counter, value).toString(16))
|
1765
1767
|
: value instanceof Set
|
1766
|
-
?
|
1768
|
+
? ((value = Array.from(value)),
|
1769
|
+
"$W" + outlineConsoleValue(request, counter, value).toString(16))
|
1767
1770
|
: "function" === typeof FormData && value instanceof FormData
|
1768
1771
|
? serializeFormData(request, value)
|
1769
1772
|
: value instanceof ArrayBuffer
|
@@ -1820,11 +1823,11 @@
|
|
1820
1823
|
if ("symbol" === typeof value) {
|
1821
1824
|
counter = request.writtenSymbols.get(value);
|
1822
1825
|
if (void 0 !== counter) return serializeByValueID(counter);
|
1823
|
-
|
1826
|
+
counter = value.description;
|
1824
1827
|
request.pendingChunks++;
|
1825
|
-
|
1826
|
-
emitSymbolChunk(request,
|
1827
|
-
return serializeByValueID(
|
1828
|
+
value = request.nextChunkId++;
|
1829
|
+
emitSymbolChunk(request, value, counter);
|
1830
|
+
return serializeByValueID(value);
|
1828
1831
|
}
|
1829
1832
|
return "bigint" === typeof value
|
1830
1833
|
? "$n" + value.toString(10)
|
@@ -1434,9 +1434,9 @@ function renderModelDestructive(
|
|
1434
1434
|
return serializeTypedArray(request, "V", value);
|
1435
1435
|
if ("function" === typeof Blob && value instanceof Blob)
|
1436
1436
|
return serializeBlob(request, value);
|
1437
|
-
if ((
|
1437
|
+
if ((elementReference = getIteratorFn(value)))
|
1438
1438
|
return (
|
1439
|
-
(parentPropertyName =
|
1439
|
+
(parentPropertyName = elementReference.call(value)),
|
1440
1440
|
parentPropertyName === value
|
1441
1441
|
? "$i" +
|
1442
1442
|
outlineModel(request, Array.from(parentPropertyName)).toString(16)
|
@@ -1444,8 +1444,8 @@ function renderModelDestructive(
|
|
1444
1444
|
);
|
1445
1445
|
if ("function" === typeof ReadableStream && value instanceof ReadableStream)
|
1446
1446
|
return serializeReadableStream(request, task, value);
|
1447
|
-
|
1448
|
-
if ("function" === typeof
|
1447
|
+
elementReference = value[ASYNC_ITERATOR];
|
1448
|
+
if ("function" === typeof elementReference)
|
1449
1449
|
return (
|
1450
1450
|
null !== task.keyPath
|
1451
1451
|
? ((request = [
|
@@ -1455,7 +1455,7 @@ function renderModelDestructive(
|
|
1455
1455
|
{ children: value }
|
1456
1456
|
]),
|
1457
1457
|
(request = task.implicitSlot ? [request] : request))
|
1458
|
-
: ((parentPropertyName =
|
1458
|
+
: ((parentPropertyName = elementReference.call(value)),
|
1459
1459
|
(request = serializeAsyncIterable(
|
1460
1460
|
request,
|
1461
1461
|
task,
|
@@ -1470,7 +1470,8 @@ function renderModelDestructive(
|
|
1470
1470
|
(null === request || null !== getPrototypeOf(request))
|
1471
1471
|
)
|
1472
1472
|
throw Error(
|
1473
|
-
"Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported."
|
1473
|
+
"Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported." +
|
1474
|
+
describeObjectForErrorMessage(parent, parentPropertyName)
|
1474
1475
|
);
|
1475
1476
|
return value;
|
1476
1477
|
}
|
@@ -1495,7 +1495,8 @@
|
|
1495
1495
|
(null === request || null !== getPrototypeOf(request))
|
1496
1496
|
)
|
1497
1497
|
throw Error(
|
1498
|
-
"Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported."
|
1498
|
+
"Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported." +
|
1499
|
+
describeObjectForErrorMessage(parent, parentPropertyName)
|
1499
1500
|
);
|
1500
1501
|
if (
|
1501
1502
|
"object" === typeof value.task &&
|
@@ -1746,7 +1747,7 @@
|
|
1746
1747
|
((parent = request.temporaryReferences.get(value)), void 0 !== parent)
|
1747
1748
|
)
|
1748
1749
|
return "$T" + parent;
|
1749
|
-
if (
|
1750
|
+
if (500 < counter.objectCount) return "$Y";
|
1750
1751
|
counter.objectCount++;
|
1751
1752
|
parent = request.writtenObjects.get(value);
|
1752
1753
|
if ("function" === typeof value.then) {
|
@@ -1759,11 +1760,11 @@
|
|
1759
1760
|
);
|
1760
1761
|
case "rejected":
|
1761
1762
|
return (
|
1762
|
-
(
|
1763
|
+
(counter = value.reason),
|
1763
1764
|
request.pendingChunks++,
|
1764
|
-
(
|
1765
|
-
emitErrorChunk(request,
|
1766
|
-
"$@" +
|
1765
|
+
(value = request.nextChunkId++),
|
1766
|
+
emitErrorChunk(request, value, "", counter),
|
1767
|
+
"$@" + value.toString(16)
|
1767
1768
|
);
|
1768
1769
|
}
|
1769
1770
|
return "$@";
|
@@ -1773,9 +1774,11 @@
|
|
1773
1774
|
: isArrayImpl(value)
|
1774
1775
|
? value
|
1775
1776
|
: value instanceof Map
|
1776
|
-
?
|
1777
|
+
? ((value = Array.from(value)),
|
1778
|
+
"$Q" + outlineConsoleValue(request, counter, value).toString(16))
|
1777
1779
|
: value instanceof Set
|
1778
|
-
?
|
1780
|
+
? ((value = Array.from(value)),
|
1781
|
+
"$W" + outlineConsoleValue(request, counter, value).toString(16))
|
1779
1782
|
: "function" === typeof FormData && value instanceof FormData
|
1780
1783
|
? serializeFormData(request, value)
|
1781
1784
|
: value instanceof ArrayBuffer
|
@@ -1832,11 +1835,11 @@
|
|
1832
1835
|
if ("symbol" === typeof value) {
|
1833
1836
|
counter = request.writtenSymbols.get(value);
|
1834
1837
|
if (void 0 !== counter) return serializeByValueID(counter);
|
1835
|
-
|
1838
|
+
counter = value.description;
|
1836
1839
|
request.pendingChunks++;
|
1837
|
-
|
1838
|
-
emitSymbolChunk(request,
|
1839
|
-
return serializeByValueID(
|
1840
|
+
value = request.nextChunkId++;
|
1841
|
+
emitSymbolChunk(request, value, counter);
|
1842
|
+
return serializeByValueID(value);
|
1840
1843
|
}
|
1841
1844
|
return "bigint" === typeof value
|
1842
1845
|
? "$n" + value.toString(10)
|
@@ -3388,12 +3391,12 @@
|
|
3388
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."
|
3389
3392
|
);
|
3390
3393
|
pendingFiles++;
|
3391
|
-
var
|
3394
|
+
var JSCompiler_object_inline_chunks_138 = [];
|
3392
3395
|
value.on("data", function (chunk) {
|
3393
|
-
|
3396
|
+
JSCompiler_object_inline_chunks_138.push(chunk);
|
3394
3397
|
});
|
3395
3398
|
value.on("end", function () {
|
3396
|
-
var blob = new Blob(
|
3399
|
+
var blob = new Blob(JSCompiler_object_inline_chunks_138, {
|
3397
3400
|
type: mimeType
|
3398
3401
|
});
|
3399
3402
|
response._formData.append(name, blob, filename);
|
@@ -1447,9 +1447,9 @@ function renderModelDestructive(
|
|
1447
1447
|
return serializeTypedArray(request, "V", value);
|
1448
1448
|
if ("function" === typeof Blob && value instanceof Blob)
|
1449
1449
|
return serializeBlob(request, value);
|
1450
|
-
if ((
|
1450
|
+
if ((elementReference = getIteratorFn(value)))
|
1451
1451
|
return (
|
1452
|
-
(parentPropertyName =
|
1452
|
+
(parentPropertyName = elementReference.call(value)),
|
1453
1453
|
parentPropertyName === value
|
1454
1454
|
? "$i" +
|
1455
1455
|
outlineModel(request, Array.from(parentPropertyName)).toString(16)
|
@@ -1457,8 +1457,8 @@ function renderModelDestructive(
|
|
1457
1457
|
);
|
1458
1458
|
if ("function" === typeof ReadableStream && value instanceof ReadableStream)
|
1459
1459
|
return serializeReadableStream(request, task, value);
|
1460
|
-
|
1461
|
-
if ("function" === typeof
|
1460
|
+
elementReference = value[ASYNC_ITERATOR];
|
1461
|
+
if ("function" === typeof elementReference)
|
1462
1462
|
return (
|
1463
1463
|
null !== task.keyPath
|
1464
1464
|
? ((request = [
|
@@ -1468,7 +1468,7 @@ function renderModelDestructive(
|
|
1468
1468
|
{ children: value }
|
1469
1469
|
]),
|
1470
1470
|
(request = task.implicitSlot ? [request] : request))
|
1471
|
-
: ((parentPropertyName =
|
1471
|
+
: ((parentPropertyName = elementReference.call(value)),
|
1472
1472
|
(request = serializeAsyncIterable(
|
1473
1473
|
request,
|
1474
1474
|
task,
|
@@ -1483,7 +1483,8 @@ function renderModelDestructive(
|
|
1483
1483
|
(null === request || null !== getPrototypeOf(request))
|
1484
1484
|
)
|
1485
1485
|
throw Error(
|
1486
|
-
"Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported."
|
1486
|
+
"Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported." +
|
1487
|
+
describeObjectForErrorMessage(parent, parentPropertyName)
|
1487
1488
|
);
|
1488
1489
|
return value;
|
1489
1490
|
}
|
@@ -1495,7 +1495,8 @@
|
|
1495
1495
|
(null === request || null !== getPrototypeOf(request))
|
1496
1496
|
)
|
1497
1497
|
throw Error(
|
1498
|
-
"Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported."
|
1498
|
+
"Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported." +
|
1499
|
+
describeObjectForErrorMessage(parent, parentPropertyName)
|
1499
1500
|
);
|
1500
1501
|
if (
|
1501
1502
|
"object" === typeof value.task &&
|
@@ -1746,7 +1747,7 @@
|
|
1746
1747
|
((parent = request.temporaryReferences.get(value)), void 0 !== parent)
|
1747
1748
|
)
|
1748
1749
|
return "$T" + parent;
|
1749
|
-
if (
|
1750
|
+
if (500 < counter.objectCount) return "$Y";
|
1750
1751
|
counter.objectCount++;
|
1751
1752
|
parent = request.writtenObjects.get(value);
|
1752
1753
|
if ("function" === typeof value.then) {
|
@@ -1759,11 +1760,11 @@
|
|
1759
1760
|
);
|
1760
1761
|
case "rejected":
|
1761
1762
|
return (
|
1762
|
-
(
|
1763
|
+
(counter = value.reason),
|
1763
1764
|
request.pendingChunks++,
|
1764
|
-
(
|
1765
|
-
emitErrorChunk(request,
|
1766
|
-
"$@" +
|
1765
|
+
(value = request.nextChunkId++),
|
1766
|
+
emitErrorChunk(request, value, "", counter),
|
1767
|
+
"$@" + value.toString(16)
|
1767
1768
|
);
|
1768
1769
|
}
|
1769
1770
|
return "$@";
|
@@ -1773,9 +1774,11 @@
|
|
1773
1774
|
: isArrayImpl(value)
|
1774
1775
|
? value
|
1775
1776
|
: value instanceof Map
|
1776
|
-
?
|
1777
|
+
? ((value = Array.from(value)),
|
1778
|
+
"$Q" + outlineConsoleValue(request, counter, value).toString(16))
|
1777
1779
|
: value instanceof Set
|
1778
|
-
?
|
1780
|
+
? ((value = Array.from(value)),
|
1781
|
+
"$W" + outlineConsoleValue(request, counter, value).toString(16))
|
1779
1782
|
: "function" === typeof FormData && value instanceof FormData
|
1780
1783
|
? serializeFormData(request, value)
|
1781
1784
|
: value instanceof ArrayBuffer
|
@@ -1832,11 +1835,11 @@
|
|
1832
1835
|
if ("symbol" === typeof value) {
|
1833
1836
|
counter = request.writtenSymbols.get(value);
|
1834
1837
|
if (void 0 !== counter) return serializeByValueID(counter);
|
1835
|
-
|
1838
|
+
counter = value.description;
|
1836
1839
|
request.pendingChunks++;
|
1837
|
-
|
1838
|
-
emitSymbolChunk(request,
|
1839
|
-
return serializeByValueID(
|
1840
|
+
value = request.nextChunkId++;
|
1841
|
+
emitSymbolChunk(request, value, counter);
|
1842
|
+
return serializeByValueID(value);
|
1840
1843
|
}
|
1841
1844
|
return "bigint" === typeof value
|
1842
1845
|
? "$n" + value.toString(10)
|
@@ -3353,12 +3356,12 @@
|
|
3353
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."
|
3354
3357
|
);
|
3355
3358
|
pendingFiles++;
|
3356
|
-
var
|
3359
|
+
var JSCompiler_object_inline_chunks_138 = [];
|
3357
3360
|
value.on("data", function (chunk) {
|
3358
|
-
|
3361
|
+
JSCompiler_object_inline_chunks_138.push(chunk);
|
3359
3362
|
});
|
3360
3363
|
value.on("end", function () {
|
3361
|
-
var blob = new Blob(
|
3364
|
+
var blob = new Blob(JSCompiler_object_inline_chunks_138, {
|
3362
3365
|
type: mimeType
|
3363
3366
|
});
|
3364
3367
|
response._formData.append(name, blob, filename);
|
@@ -1447,9 +1447,9 @@ function renderModelDestructive(
|
|
1447
1447
|
return serializeTypedArray(request, "V", value);
|
1448
1448
|
if ("function" === typeof Blob && value instanceof Blob)
|
1449
1449
|
return serializeBlob(request, value);
|
1450
|
-
if ((
|
1450
|
+
if ((elementReference = getIteratorFn(value)))
|
1451
1451
|
return (
|
1452
|
-
(parentPropertyName =
|
1452
|
+
(parentPropertyName = elementReference.call(value)),
|
1453
1453
|
parentPropertyName === value
|
1454
1454
|
? "$i" +
|
1455
1455
|
outlineModel(request, Array.from(parentPropertyName)).toString(16)
|
@@ -1457,8 +1457,8 @@ function renderModelDestructive(
|
|
1457
1457
|
);
|
1458
1458
|
if ("function" === typeof ReadableStream && value instanceof ReadableStream)
|
1459
1459
|
return serializeReadableStream(request, task, value);
|
1460
|
-
|
1461
|
-
if ("function" === typeof
|
1460
|
+
elementReference = value[ASYNC_ITERATOR];
|
1461
|
+
if ("function" === typeof elementReference)
|
1462
1462
|
return (
|
1463
1463
|
null !== task.keyPath
|
1464
1464
|
? ((request = [
|
@@ -1468,7 +1468,7 @@ function renderModelDestructive(
|
|
1468
1468
|
{ children: value }
|
1469
1469
|
]),
|
1470
1470
|
(request = task.implicitSlot ? [request] : request))
|
1471
|
-
: ((parentPropertyName =
|
1471
|
+
: ((parentPropertyName = elementReference.call(value)),
|
1472
1472
|
(request = serializeAsyncIterable(
|
1473
1473
|
request,
|
1474
1474
|
task,
|
@@ -1483,7 +1483,8 @@ function renderModelDestructive(
|
|
1483
1483
|
(null === request || null !== getPrototypeOf(request))
|
1484
1484
|
)
|
1485
1485
|
throw Error(
|
1486
|
-
"Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported."
|
1486
|
+
"Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported." +
|
1487
|
+
describeObjectForErrorMessage(parent, parentPropertyName)
|
1487
1488
|
);
|
1488
1489
|
return value;
|
1489
1490
|
}
|
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": {
|