react-server-dom-webpack 19.0.0-rc-76002254-20240724 → 19.0.0-rc-14a4699f-20240725
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 +31 -9
- package/cjs/react-server-dom-webpack-client.edge.development.js +35 -9
- package/cjs/react-server-dom-webpack-client.node.development.js +35 -9
- package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +35 -9
- package/cjs/react-server-dom-webpack-server.browser.development.js +45 -27
- package/cjs/react-server-dom-webpack-server.browser.production.js +5 -7
- package/cjs/react-server-dom-webpack-server.edge.development.js +46 -27
- package/cjs/react-server-dom-webpack-server.edge.production.js +5 -7
- package/cjs/react-server-dom-webpack-server.node.development.js +45 -26
- package/cjs/react-server-dom-webpack-server.node.production.js +8 -10
- package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +45 -26
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.js +8 -10
- package/package.json +3 -3
@@ -495,8 +495,12 @@
|
|
495
495
|
"\n " + objKind + "\n " + objectOrArray)
|
496
496
|
: "\n " + objKind;
|
497
497
|
}
|
498
|
-
function
|
499
|
-
return
|
498
|
+
function defaultFilterStackFrame(filename) {
|
499
|
+
return (
|
500
|
+
"" !== filename &&
|
501
|
+
!filename.startsWith("node:") &&
|
502
|
+
!filename.includes("node_modules")
|
503
|
+
);
|
500
504
|
}
|
501
505
|
function getCurrentStackInDEV() {
|
502
506
|
return "";
|
@@ -511,8 +515,9 @@
|
|
511
515
|
onError,
|
512
516
|
identifierPrefix,
|
513
517
|
onPostpone,
|
518
|
+
temporaryReferences,
|
514
519
|
environmentName,
|
515
|
-
|
520
|
+
filterStackFrame
|
516
521
|
) {
|
517
522
|
if (
|
518
523
|
null !== ReactSharedInternalsServer.A &&
|
@@ -561,6 +566,10 @@
|
|
561
566
|
return environmentName;
|
562
567
|
}
|
563
568
|
: environmentName;
|
569
|
+
this.filterStackFrame =
|
570
|
+
void 0 === filterStackFrame
|
571
|
+
? defaultFilterStackFrame
|
572
|
+
: filterStackFrame;
|
564
573
|
this.didWarnForKey = null;
|
565
574
|
model = createTask(this, model, null, !1, abortSet, null);
|
566
575
|
pingedTasks.push(model);
|
@@ -792,7 +801,7 @@
|
|
792
801
|
lazyType._debugInfo = wakeable._debugInfo || [];
|
793
802
|
return lazyType;
|
794
803
|
}
|
795
|
-
function callWithDebugContextInDEV(task, callback, arg) {
|
804
|
+
function callWithDebugContextInDEV(request, task, callback, arg) {
|
796
805
|
currentOwner = { env: task.environmentName, owner: task.debugOwner };
|
797
806
|
try {
|
798
807
|
return callback(arg);
|
@@ -859,7 +868,7 @@
|
|
859
868
|
Object.prototype.toString.call(Component) &&
|
860
869
|
"[object Generator]" ===
|
861
870
|
Object.prototype.toString.call(iterableChild)) ||
|
862
|
-
callWithDebugContextInDEV(task, function () {
|
871
|
+
callWithDebugContextInDEV(request, task, function () {
|
863
872
|
console.error(
|
864
873
|
"Returning an Iterator from a Server Component is not supported since it cannot be looped over more than once. "
|
865
874
|
);
|
@@ -882,7 +891,7 @@
|
|
882
891
|
Object.prototype.toString.call(Component) &&
|
883
892
|
"[object AsyncGenerator]" ===
|
884
893
|
Object.prototype.toString.call(_iterableChild)) ||
|
885
|
-
callWithDebugContextInDEV(task, function () {
|
894
|
+
callWithDebugContextInDEV(request, task, function () {
|
886
895
|
console.error(
|
887
896
|
"Returning an AsyncIterator from a Server Component is not supported since it cannot be looped over more than once. "
|
888
897
|
);
|
@@ -898,10 +907,10 @@
|
|
898
907
|
? (task.keyPath =
|
899
908
|
null === prevThenableState ? key : prevThenableState + "," + key)
|
900
909
|
: null === prevThenableState && (task.implicitSlot = !0);
|
901
|
-
|
910
|
+
key = renderModelDestructive(request, task, emptyRoot, "", props);
|
902
911
|
task.keyPath = prevThenableState;
|
903
912
|
task.implicitSlot = componentDebugID;
|
904
|
-
return
|
913
|
+
return key;
|
905
914
|
}
|
906
915
|
function renderFragment(request, task, children) {
|
907
916
|
for (var i = 0; i < children.length; i++) {
|
@@ -1060,7 +1069,7 @@
|
|
1060
1069
|
"object" !== typeof originalValue ||
|
1061
1070
|
originalValue === value ||
|
1062
1071
|
originalValue instanceof Date ||
|
1063
|
-
callWithDebugContextInDEV(task, function () {
|
1072
|
+
callWithDebugContextInDEV(request, task, function () {
|
1064
1073
|
"Object" !== objectName(originalValue)
|
1065
1074
|
? "string" === typeof jsxChildrenParents.get(parent)
|
1066
1075
|
? console.error(
|
@@ -1483,10 +1492,11 @@
|
|
1483
1492
|
elementReference = value[ASYNC_ITERATOR];
|
1484
1493
|
if ("function" === typeof elementReference)
|
1485
1494
|
return renderAsyncFragment(request, task, value, elementReference);
|
1486
|
-
|
1495
|
+
elementReference = getPrototypeOf(value);
|
1487
1496
|
if (
|
1488
|
-
|
1489
|
-
(null ===
|
1497
|
+
elementReference !== ObjectPrototype &&
|
1498
|
+
(null === elementReference ||
|
1499
|
+
null !== getPrototypeOf(elementReference))
|
1490
1500
|
)
|
1491
1501
|
throw Error(
|
1492
1502
|
"Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported." +
|
@@ -1504,7 +1514,7 @@
|
|
1504
1514
|
)
|
1505
1515
|
return { name: value.name, env: value.env, owner: value.owner };
|
1506
1516
|
if ("Object" !== objectName(value))
|
1507
|
-
callWithDebugContextInDEV(task, function () {
|
1517
|
+
callWithDebugContextInDEV(request, task, function () {
|
1508
1518
|
console.error(
|
1509
1519
|
"Only plain objects can be passed to Client Components from Server Components. %s objects are not supported.%s",
|
1510
1520
|
objectName(value),
|
@@ -1512,7 +1522,7 @@
|
|
1512
1522
|
);
|
1513
1523
|
});
|
1514
1524
|
else if (!isSimpleObject(value))
|
1515
|
-
callWithDebugContextInDEV(task, function () {
|
1525
|
+
callWithDebugContextInDEV(request, task, function () {
|
1516
1526
|
console.error(
|
1517
1527
|
"Only plain objects can be passed to Client Components from Server Components. Classes or other objects with methods are not supported.%s",
|
1518
1528
|
describeObjectForErrorMessage(parent, parentPropertyName)
|
@@ -1521,7 +1531,7 @@
|
|
1521
1531
|
else if (Object.getOwnPropertySymbols) {
|
1522
1532
|
var symbols = Object.getOwnPropertySymbols(value);
|
1523
1533
|
0 < symbols.length &&
|
1524
|
-
callWithDebugContextInDEV(task, function () {
|
1534
|
+
callWithDebugContextInDEV(request, task, function () {
|
1525
1535
|
console.error(
|
1526
1536
|
"Only plain objects can be passed to Client Components from Server Components. Objects with symbol properties like %s are not supported.%s",
|
1527
1537
|
symbols[0].description,
|
@@ -1625,6 +1635,7 @@
|
|
1625
1635
|
? requestStorage.run(
|
1626
1636
|
void 0,
|
1627
1637
|
callWithDebugContextInDEV,
|
1638
|
+
request,
|
1628
1639
|
task,
|
1629
1640
|
onError,
|
1630
1641
|
error
|
@@ -1651,6 +1662,7 @@
|
|
1651
1662
|
try {
|
1652
1663
|
if (error instanceof Error) {
|
1653
1664
|
var message = String(error.message);
|
1665
|
+
var filterStackFrame = request.filterStackFrame;
|
1654
1666
|
a: {
|
1655
1667
|
var previousPrepare = Error.prepareStackTrace;
|
1656
1668
|
Error.prepareStackTrace = prepareStackTrace;
|
@@ -1688,16 +1700,21 @@
|
|
1688
1700
|
]);
|
1689
1701
|
}
|
1690
1702
|
}
|
1691
|
-
|
1692
|
-
|
1693
|
-
|
1703
|
+
for (frames = 0; frames < stack.length; frames++) {
|
1704
|
+
var callsite = stack[frames],
|
1705
|
+
functionName = callsite[0],
|
1694
1706
|
url = callsite[1];
|
1695
1707
|
if (url.startsWith("rsc://React/")) {
|
1696
|
-
var
|
1697
|
-
|
1708
|
+
var envIdx = url.indexOf("/", 12),
|
1709
|
+
suffixIdx = url.lastIndexOf("?");
|
1710
|
+
-1 < envIdx &&
|
1711
|
+
-1 < suffixIdx &&
|
1712
|
+
(url = callsite[1] = url.slice(envIdx + 1, suffixIdx));
|
1698
1713
|
}
|
1714
|
+
filterStackFrame(url, functionName) ||
|
1715
|
+
(stack.splice(frames, 1), frames--);
|
1699
1716
|
}
|
1700
|
-
var stack$jscomp$
|
1717
|
+
var stack$jscomp$0 = stack;
|
1701
1718
|
var errorEnv = error.environmentName;
|
1702
1719
|
"string" === typeof errorEnv && (env = errorEnv);
|
1703
1720
|
} else
|
@@ -1705,14 +1722,16 @@
|
|
1705
1722
|
"object" === typeof error && null !== error
|
1706
1723
|
? describeObjectForErrorMessage(error)
|
1707
1724
|
: String(error)),
|
1708
|
-
(stack$jscomp$
|
1725
|
+
(stack$jscomp$0 = []);
|
1709
1726
|
} catch (x) {
|
1710
|
-
message =
|
1727
|
+
(message =
|
1728
|
+
"An error occurred but serializing the error message failed."),
|
1729
|
+
(stack$jscomp$0 = []);
|
1711
1730
|
}
|
1712
1731
|
digest = {
|
1713
1732
|
digest: digest,
|
1714
1733
|
message: message,
|
1715
|
-
stack: stack$jscomp$
|
1734
|
+
stack: stack$jscomp$0,
|
1716
1735
|
env: env
|
1717
1736
|
};
|
1718
1737
|
id = id.toString(16) + ":E" + stringify(digest) + "\n";
|
@@ -3315,7 +3334,6 @@
|
|
3315
3334
|
jsxPropsParents = new WeakMap(),
|
3316
3335
|
jsxChildrenParents = new WeakMap(),
|
3317
3336
|
CLIENT_REFERENCE_TAG = Symbol.for("react.client.reference"),
|
3318
|
-
externalRegExp = /\/node_modules\/|^node:|^$/,
|
3319
3337
|
ObjectPrototype = Object.prototype,
|
3320
3338
|
stringify = JSON.stringify,
|
3321
3339
|
AbortSigil = {},
|
@@ -3499,8 +3517,9 @@
|
|
3499
3517
|
options ? options.onError : void 0,
|
3500
3518
|
options ? options.identifierPrefix : void 0,
|
3501
3519
|
options ? options.onPostpone : void 0,
|
3520
|
+
options ? options.temporaryReferences : void 0,
|
3502
3521
|
options ? options.environmentName : void 0,
|
3503
|
-
options ? options.
|
3522
|
+
options ? options.filterStackFrame : void 0
|
3504
3523
|
),
|
3505
3524
|
hasStartedFlowing = !1;
|
3506
3525
|
startWork(request);
|
@@ -729,7 +729,6 @@ function RequestInstance(
|
|
729
729
|
onError,
|
730
730
|
identifierPrefix,
|
731
731
|
onPostpone,
|
732
|
-
environmentName,
|
733
732
|
temporaryReferences
|
734
733
|
) {
|
735
734
|
if (
|
@@ -738,9 +737,9 @@ function RequestInstance(
|
|
738
737
|
)
|
739
738
|
throw Error("Currently React only supports one RSC renderer at a time.");
|
740
739
|
ReactSharedInternalsServer.A = DefaultAsyncDispatcher;
|
741
|
-
var abortSet = new Set()
|
742
|
-
|
743
|
-
|
740
|
+
var abortSet = new Set(),
|
741
|
+
pingedTasks = [],
|
742
|
+
hints = new Set();
|
744
743
|
this.status = 0;
|
745
744
|
this.flushScheduled = !1;
|
746
745
|
this.destination = this.fatalError = null;
|
@@ -750,7 +749,7 @@ function RequestInstance(
|
|
750
749
|
this.hints = hints;
|
751
750
|
this.abortListeners = new Set();
|
752
751
|
this.abortableTasks = abortSet;
|
753
|
-
this.pingedTasks =
|
752
|
+
this.pingedTasks = pingedTasks;
|
754
753
|
this.completedImportChunks = [];
|
755
754
|
this.completedHintChunks = [];
|
756
755
|
this.completedRegularChunks = [];
|
@@ -766,7 +765,7 @@ function RequestInstance(
|
|
766
765
|
this.onError = void 0 === onError ? defaultErrorHandler : onError;
|
767
766
|
this.onPostpone = void 0 === onPostpone ? defaultPostponeHandler : onPostpone;
|
768
767
|
model = createTask(this, model, null, !1, abortSet);
|
769
|
-
|
768
|
+
pingedTasks.push(model);
|
770
769
|
}
|
771
770
|
var currentRequest = null;
|
772
771
|
function resolveRequest() {
|
@@ -2672,12 +2671,12 @@ exports.decodeReplyFromBusboy = function (busboyStream, webpackMap, options) {
|
|
2672
2671
|
"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."
|
2673
2672
|
);
|
2674
2673
|
pendingFiles++;
|
2675
|
-
var
|
2674
|
+
var JSCompiler_object_inline_chunks_211 = [];
|
2676
2675
|
value.on("data", function (chunk) {
|
2677
|
-
|
2676
|
+
JSCompiler_object_inline_chunks_211.push(chunk);
|
2678
2677
|
});
|
2679
2678
|
value.on("end", function () {
|
2680
|
-
var blob = new Blob(
|
2679
|
+
var blob = new Blob(JSCompiler_object_inline_chunks_211, {
|
2681
2680
|
type: mimeType
|
2682
2681
|
});
|
2683
2682
|
response._formData.append(name, blob, filename);
|
@@ -2726,7 +2725,6 @@ exports.renderToPipeableStream = function (model, webpackMap, options) {
|
|
2726
2725
|
options ? options.onError : void 0,
|
2727
2726
|
options ? options.identifierPrefix : void 0,
|
2728
2727
|
options ? options.onPostpone : void 0,
|
2729
|
-
options ? options.environmentName : void 0,
|
2730
2728
|
options ? options.temporaryReferences : void 0
|
2731
2729
|
),
|
2732
2730
|
hasStartedFlowing = !1;
|
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-14a4699f-20240725",
|
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-14a4699f-20240725",
|
81
|
+
"react-dom": "19.0.0-rc-14a4699f-20240725",
|
82
82
|
"webpack": "^5.59.0"
|
83
83
|
},
|
84
84
|
"dependencies": {
|