react-server-dom-webpack 19.0.0-rc-ab2135c7-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 +49 -14
- package/cjs/react-server-dom-webpack-client.browser.production.js +17 -4
- package/cjs/react-server-dom-webpack-client.edge.development.js +53 -14
- package/cjs/react-server-dom-webpack-client.edge.production.js +17 -4
- package/cjs/react-server-dom-webpack-client.node.development.js +53 -14
- package/cjs/react-server-dom-webpack-client.node.production.js +17 -4
- package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +53 -14
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.js +17 -4
- package/cjs/react-server-dom-webpack-server.browser.development.js +47 -34
- package/cjs/react-server-dom-webpack-server.browser.production.js +5 -7
- package/cjs/react-server-dom-webpack-server.edge.development.js +57 -42
- package/cjs/react-server-dom-webpack-server.edge.production.js +5 -7
- package/cjs/react-server-dom-webpack-server.node.development.js +51 -36
- package/cjs/react-server-dom-webpack-server.node.production.js +8 -10
- package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +51 -36
- 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);
|
@@ -821,11 +830,12 @@
|
|
821
830
|
task.environmentName = componentEnv;
|
822
831
|
}
|
823
832
|
prepareToUseHooksForComponent(prevThenableState, componentDebugInfo);
|
824
|
-
props =
|
833
|
+
props = componentStorage.run(
|
834
|
+
componentDebugInfo,
|
835
|
+
callComponentInDEV,
|
825
836
|
Component,
|
826
837
|
props,
|
827
|
-
componentDebugInfo
|
828
|
-
task.debugTask
|
838
|
+
componentDebugInfo
|
829
839
|
);
|
830
840
|
if (1 === request.status) throw AbortSigil;
|
831
841
|
if (
|
@@ -858,7 +868,7 @@
|
|
858
868
|
Object.prototype.toString.call(Component) &&
|
859
869
|
"[object Generator]" ===
|
860
870
|
Object.prototype.toString.call(iterableChild)) ||
|
861
|
-
callWithDebugContextInDEV(task, function () {
|
871
|
+
callWithDebugContextInDEV(request, task, function () {
|
862
872
|
console.error(
|
863
873
|
"Returning an Iterator from a Server Component is not supported since it cannot be looped over more than once. "
|
864
874
|
);
|
@@ -881,7 +891,7 @@
|
|
881
891
|
Object.prototype.toString.call(Component) &&
|
882
892
|
"[object AsyncGenerator]" ===
|
883
893
|
Object.prototype.toString.call(_iterableChild)) ||
|
884
|
-
callWithDebugContextInDEV(task, function () {
|
894
|
+
callWithDebugContextInDEV(request, task, function () {
|
885
895
|
console.error(
|
886
896
|
"Returning an AsyncIterator from a Server Component is not supported since it cannot be looped over more than once. "
|
887
897
|
);
|
@@ -897,10 +907,10 @@
|
|
897
907
|
? (task.keyPath =
|
898
908
|
null === prevThenableState ? key : prevThenableState + "," + key)
|
899
909
|
: null === prevThenableState && (task.implicitSlot = !0);
|
900
|
-
|
910
|
+
key = renderModelDestructive(request, task, emptyRoot, "", props);
|
901
911
|
task.keyPath = prevThenableState;
|
902
912
|
task.implicitSlot = componentDebugID;
|
903
|
-
return
|
913
|
+
return key;
|
904
914
|
}
|
905
915
|
function renderFragment(request, task, children) {
|
906
916
|
for (var i = 0; i < children.length; i++) {
|
@@ -1059,7 +1069,7 @@
|
|
1059
1069
|
"object" !== typeof originalValue ||
|
1060
1070
|
originalValue === value ||
|
1061
1071
|
originalValue instanceof Date ||
|
1062
|
-
callWithDebugContextInDEV(task, function () {
|
1072
|
+
callWithDebugContextInDEV(request, task, function () {
|
1063
1073
|
"Object" !== objectName(originalValue)
|
1064
1074
|
? "string" === typeof jsxChildrenParents.get(parent)
|
1065
1075
|
? console.error(
|
@@ -1482,10 +1492,11 @@
|
|
1482
1492
|
elementReference = value[ASYNC_ITERATOR];
|
1483
1493
|
if ("function" === typeof elementReference)
|
1484
1494
|
return renderAsyncFragment(request, task, value, elementReference);
|
1485
|
-
|
1495
|
+
elementReference = getPrototypeOf(value);
|
1486
1496
|
if (
|
1487
|
-
|
1488
|
-
(null ===
|
1497
|
+
elementReference !== ObjectPrototype &&
|
1498
|
+
(null === elementReference ||
|
1499
|
+
null !== getPrototypeOf(elementReference))
|
1489
1500
|
)
|
1490
1501
|
throw Error(
|
1491
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." +
|
@@ -1503,7 +1514,7 @@
|
|
1503
1514
|
)
|
1504
1515
|
return { name: value.name, env: value.env, owner: value.owner };
|
1505
1516
|
if ("Object" !== objectName(value))
|
1506
|
-
callWithDebugContextInDEV(task, function () {
|
1517
|
+
callWithDebugContextInDEV(request, task, function () {
|
1507
1518
|
console.error(
|
1508
1519
|
"Only plain objects can be passed to Client Components from Server Components. %s objects are not supported.%s",
|
1509
1520
|
objectName(value),
|
@@ -1511,7 +1522,7 @@
|
|
1511
1522
|
);
|
1512
1523
|
});
|
1513
1524
|
else if (!isSimpleObject(value))
|
1514
|
-
callWithDebugContextInDEV(task, function () {
|
1525
|
+
callWithDebugContextInDEV(request, task, function () {
|
1515
1526
|
console.error(
|
1516
1527
|
"Only plain objects can be passed to Client Components from Server Components. Classes or other objects with methods are not supported.%s",
|
1517
1528
|
describeObjectForErrorMessage(parent, parentPropertyName)
|
@@ -1520,7 +1531,7 @@
|
|
1520
1531
|
else if (Object.getOwnPropertySymbols) {
|
1521
1532
|
var symbols = Object.getOwnPropertySymbols(value);
|
1522
1533
|
0 < symbols.length &&
|
1523
|
-
callWithDebugContextInDEV(task, function () {
|
1534
|
+
callWithDebugContextInDEV(request, task, function () {
|
1524
1535
|
console.error(
|
1525
1536
|
"Only plain objects can be passed to Client Components from Server Components. Objects with symbol properties like %s are not supported.%s",
|
1526
1537
|
symbols[0].description,
|
@@ -1624,6 +1635,7 @@
|
|
1624
1635
|
? requestStorage.run(
|
1625
1636
|
void 0,
|
1626
1637
|
callWithDebugContextInDEV,
|
1638
|
+
request,
|
1627
1639
|
task,
|
1628
1640
|
onError,
|
1629
1641
|
error
|
@@ -1650,6 +1662,7 @@
|
|
1650
1662
|
try {
|
1651
1663
|
if (error instanceof Error) {
|
1652
1664
|
var message = String(error.message);
|
1665
|
+
var filterStackFrame = request.filterStackFrame;
|
1653
1666
|
a: {
|
1654
1667
|
var previousPrepare = Error.prepareStackTrace;
|
1655
1668
|
Error.prepareStackTrace = prepareStackTrace;
|
@@ -1687,16 +1700,21 @@
|
|
1687
1700
|
]);
|
1688
1701
|
}
|
1689
1702
|
}
|
1690
|
-
|
1691
|
-
|
1692
|
-
|
1703
|
+
for (frames = 0; frames < stack.length; frames++) {
|
1704
|
+
var callsite = stack[frames],
|
1705
|
+
functionName = callsite[0],
|
1693
1706
|
url = callsite[1];
|
1694
1707
|
if (url.startsWith("rsc://React/")) {
|
1695
|
-
var
|
1696
|
-
|
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));
|
1697
1713
|
}
|
1714
|
+
filterStackFrame(url, functionName) ||
|
1715
|
+
(stack.splice(frames, 1), frames--);
|
1698
1716
|
}
|
1699
|
-
var stack$jscomp$
|
1717
|
+
var stack$jscomp$0 = stack;
|
1700
1718
|
var errorEnv = error.environmentName;
|
1701
1719
|
"string" === typeof errorEnv && (env = errorEnv);
|
1702
1720
|
} else
|
@@ -1704,14 +1722,16 @@
|
|
1704
1722
|
"object" === typeof error && null !== error
|
1705
1723
|
? describeObjectForErrorMessage(error)
|
1706
1724
|
: String(error)),
|
1707
|
-
(stack$jscomp$
|
1725
|
+
(stack$jscomp$0 = []);
|
1708
1726
|
} catch (x) {
|
1709
|
-
message =
|
1727
|
+
(message =
|
1728
|
+
"An error occurred but serializing the error message failed."),
|
1729
|
+
(stack$jscomp$0 = []);
|
1710
1730
|
}
|
1711
1731
|
digest = {
|
1712
1732
|
digest: digest,
|
1713
1733
|
message: message,
|
1714
|
-
stack: stack$jscomp$
|
1734
|
+
stack: stack$jscomp$0,
|
1715
1735
|
env: env
|
1716
1736
|
};
|
1717
1737
|
id = id.toString(16) + ":E" + stringify(digest) + "\n";
|
@@ -3164,7 +3184,7 @@
|
|
3164
3184
|
}
|
3165
3185
|
};
|
3166
3186
|
var frameRegExp =
|
3167
|
-
/^ {3} at (?:(.+) \((
|
3187
|
+
/^ {3} at (?:(.+) \((.+):(\d+):(\d+)\)|(?:async )?(.+):(\d+):(\d+))$/,
|
3168
3188
|
requestStorage = new async_hooks.AsyncLocalStorage(),
|
3169
3189
|
componentStorage = new async_hooks.AsyncLocalStorage(),
|
3170
3190
|
TEMPORARY_REFERENCE_TAG = Symbol.for("react.temporary.reference"),
|
@@ -3321,12 +3341,7 @@
|
|
3321
3341
|
) {
|
3322
3342
|
currentOwner = componentDebugInfo;
|
3323
3343
|
try {
|
3324
|
-
return
|
3325
|
-
componentDebugInfo,
|
3326
|
-
Component,
|
3327
|
-
props,
|
3328
|
-
void 0
|
3329
|
-
);
|
3344
|
+
return Component(props, void 0);
|
3330
3345
|
} finally {
|
3331
3346
|
currentOwner = null;
|
3332
3347
|
}
|
@@ -3354,7 +3369,6 @@
|
|
3354
3369
|
jsxPropsParents = new WeakMap(),
|
3355
3370
|
jsxChildrenParents = new WeakMap(),
|
3356
3371
|
CLIENT_REFERENCE_TAG = Symbol.for("react.client.reference"),
|
3357
|
-
externalRegExp = /\/node_modules\/|^node:|^$/,
|
3358
3372
|
ObjectPrototype = Object.prototype,
|
3359
3373
|
stringify = JSON.stringify,
|
3360
3374
|
AbortSigil = {},
|
@@ -3538,8 +3552,9 @@
|
|
3538
3552
|
options ? options.onError : void 0,
|
3539
3553
|
options ? options.identifierPrefix : void 0,
|
3540
3554
|
options ? options.onPostpone : void 0,
|
3555
|
+
options ? options.temporaryReferences : void 0,
|
3541
3556
|
options ? options.environmentName : void 0,
|
3542
|
-
options ? options.
|
3557
|
+
options ? options.filterStackFrame : void 0
|
3543
3558
|
),
|
3544
3559
|
hasStartedFlowing = !1;
|
3545
3560
|
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() {
|
@@ -2704,12 +2703,12 @@ exports.decodeReplyFromBusboy = function (busboyStream, webpackMap, options) {
|
|
2704
2703
|
"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."
|
2705
2704
|
);
|
2706
2705
|
pendingFiles++;
|
2707
|
-
var
|
2706
|
+
var JSCompiler_object_inline_chunks_211 = [];
|
2708
2707
|
value.on("data", function (chunk) {
|
2709
|
-
|
2708
|
+
JSCompiler_object_inline_chunks_211.push(chunk);
|
2710
2709
|
});
|
2711
2710
|
value.on("end", function () {
|
2712
|
-
var blob = new Blob(
|
2711
|
+
var blob = new Blob(JSCompiler_object_inline_chunks_211, {
|
2713
2712
|
type: mimeType
|
2714
2713
|
});
|
2715
2714
|
response._formData.append(name, blob, filename);
|
@@ -2758,7 +2757,6 @@ exports.renderToPipeableStream = function (model, webpackMap, options) {
|
|
2758
2757
|
options ? options.onError : void 0,
|
2759
2758
|
options ? options.identifierPrefix : void 0,
|
2760
2759
|
options ? options.onPostpone : void 0,
|
2761
|
-
options ? options.environmentName : void 0,
|
2762
2760
|
options ? options.temporaryReferences : void 0
|
2763
2761
|
),
|
2764
2762
|
hasStartedFlowing = !1;
|
@@ -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);
|
@@ -821,11 +830,12 @@
|
|
821
830
|
task.environmentName = componentEnv;
|
822
831
|
}
|
823
832
|
prepareToUseHooksForComponent(prevThenableState, componentDebugInfo);
|
824
|
-
props =
|
833
|
+
props = componentStorage.run(
|
834
|
+
componentDebugInfo,
|
835
|
+
callComponentInDEV,
|
825
836
|
Component,
|
826
837
|
props,
|
827
|
-
componentDebugInfo
|
828
|
-
task.debugTask
|
838
|
+
componentDebugInfo
|
829
839
|
);
|
830
840
|
if (1 === request.status) throw AbortSigil;
|
831
841
|
if (
|
@@ -858,7 +868,7 @@
|
|
858
868
|
Object.prototype.toString.call(Component) &&
|
859
869
|
"[object Generator]" ===
|
860
870
|
Object.prototype.toString.call(iterableChild)) ||
|
861
|
-
callWithDebugContextInDEV(task, function () {
|
871
|
+
callWithDebugContextInDEV(request, task, function () {
|
862
872
|
console.error(
|
863
873
|
"Returning an Iterator from a Server Component is not supported since it cannot be looped over more than once. "
|
864
874
|
);
|
@@ -881,7 +891,7 @@
|
|
881
891
|
Object.prototype.toString.call(Component) &&
|
882
892
|
"[object AsyncGenerator]" ===
|
883
893
|
Object.prototype.toString.call(_iterableChild)) ||
|
884
|
-
callWithDebugContextInDEV(task, function () {
|
894
|
+
callWithDebugContextInDEV(request, task, function () {
|
885
895
|
console.error(
|
886
896
|
"Returning an AsyncIterator from a Server Component is not supported since it cannot be looped over more than once. "
|
887
897
|
);
|
@@ -897,10 +907,10 @@
|
|
897
907
|
? (task.keyPath =
|
898
908
|
null === prevThenableState ? key : prevThenableState + "," + key)
|
899
909
|
: null === prevThenableState && (task.implicitSlot = !0);
|
900
|
-
|
910
|
+
key = renderModelDestructive(request, task, emptyRoot, "", props);
|
901
911
|
task.keyPath = prevThenableState;
|
902
912
|
task.implicitSlot = componentDebugID;
|
903
|
-
return
|
913
|
+
return key;
|
904
914
|
}
|
905
915
|
function renderFragment(request, task, children) {
|
906
916
|
for (var i = 0; i < children.length; i++) {
|
@@ -1059,7 +1069,7 @@
|
|
1059
1069
|
"object" !== typeof originalValue ||
|
1060
1070
|
originalValue === value ||
|
1061
1071
|
originalValue instanceof Date ||
|
1062
|
-
callWithDebugContextInDEV(task, function () {
|
1072
|
+
callWithDebugContextInDEV(request, task, function () {
|
1063
1073
|
"Object" !== objectName(originalValue)
|
1064
1074
|
? "string" === typeof jsxChildrenParents.get(parent)
|
1065
1075
|
? console.error(
|
@@ -1482,10 +1492,11 @@
|
|
1482
1492
|
elementReference = value[ASYNC_ITERATOR];
|
1483
1493
|
if ("function" === typeof elementReference)
|
1484
1494
|
return renderAsyncFragment(request, task, value, elementReference);
|
1485
|
-
|
1495
|
+
elementReference = getPrototypeOf(value);
|
1486
1496
|
if (
|
1487
|
-
|
1488
|
-
(null ===
|
1497
|
+
elementReference !== ObjectPrototype &&
|
1498
|
+
(null === elementReference ||
|
1499
|
+
null !== getPrototypeOf(elementReference))
|
1489
1500
|
)
|
1490
1501
|
throw Error(
|
1491
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." +
|
@@ -1503,7 +1514,7 @@
|
|
1503
1514
|
)
|
1504
1515
|
return { name: value.name, env: value.env, owner: value.owner };
|
1505
1516
|
if ("Object" !== objectName(value))
|
1506
|
-
callWithDebugContextInDEV(task, function () {
|
1517
|
+
callWithDebugContextInDEV(request, task, function () {
|
1507
1518
|
console.error(
|
1508
1519
|
"Only plain objects can be passed to Client Components from Server Components. %s objects are not supported.%s",
|
1509
1520
|
objectName(value),
|
@@ -1511,7 +1522,7 @@
|
|
1511
1522
|
);
|
1512
1523
|
});
|
1513
1524
|
else if (!isSimpleObject(value))
|
1514
|
-
callWithDebugContextInDEV(task, function () {
|
1525
|
+
callWithDebugContextInDEV(request, task, function () {
|
1515
1526
|
console.error(
|
1516
1527
|
"Only plain objects can be passed to Client Components from Server Components. Classes or other objects with methods are not supported.%s",
|
1517
1528
|
describeObjectForErrorMessage(parent, parentPropertyName)
|
@@ -1520,7 +1531,7 @@
|
|
1520
1531
|
else if (Object.getOwnPropertySymbols) {
|
1521
1532
|
var symbols = Object.getOwnPropertySymbols(value);
|
1522
1533
|
0 < symbols.length &&
|
1523
|
-
callWithDebugContextInDEV(task, function () {
|
1534
|
+
callWithDebugContextInDEV(request, task, function () {
|
1524
1535
|
console.error(
|
1525
1536
|
"Only plain objects can be passed to Client Components from Server Components. Objects with symbol properties like %s are not supported.%s",
|
1526
1537
|
symbols[0].description,
|
@@ -1624,6 +1635,7 @@
|
|
1624
1635
|
? requestStorage.run(
|
1625
1636
|
void 0,
|
1626
1637
|
callWithDebugContextInDEV,
|
1638
|
+
request,
|
1627
1639
|
task,
|
1628
1640
|
onError,
|
1629
1641
|
error
|
@@ -1650,6 +1662,7 @@
|
|
1650
1662
|
try {
|
1651
1663
|
if (error instanceof Error) {
|
1652
1664
|
var message = String(error.message);
|
1665
|
+
var filterStackFrame = request.filterStackFrame;
|
1653
1666
|
a: {
|
1654
1667
|
var previousPrepare = Error.prepareStackTrace;
|
1655
1668
|
Error.prepareStackTrace = prepareStackTrace;
|
@@ -1687,16 +1700,21 @@
|
|
1687
1700
|
]);
|
1688
1701
|
}
|
1689
1702
|
}
|
1690
|
-
|
1691
|
-
|
1692
|
-
|
1703
|
+
for (frames = 0; frames < stack.length; frames++) {
|
1704
|
+
var callsite = stack[frames],
|
1705
|
+
functionName = callsite[0],
|
1693
1706
|
url = callsite[1];
|
1694
1707
|
if (url.startsWith("rsc://React/")) {
|
1695
|
-
var
|
1696
|
-
|
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));
|
1697
1713
|
}
|
1714
|
+
filterStackFrame(url, functionName) ||
|
1715
|
+
(stack.splice(frames, 1), frames--);
|
1698
1716
|
}
|
1699
|
-
var stack$jscomp$
|
1717
|
+
var stack$jscomp$0 = stack;
|
1700
1718
|
var errorEnv = error.environmentName;
|
1701
1719
|
"string" === typeof errorEnv && (env = errorEnv);
|
1702
1720
|
} else
|
@@ -1704,14 +1722,16 @@
|
|
1704
1722
|
"object" === typeof error && null !== error
|
1705
1723
|
? describeObjectForErrorMessage(error)
|
1706
1724
|
: String(error)),
|
1707
|
-
(stack$jscomp$
|
1725
|
+
(stack$jscomp$0 = []);
|
1708
1726
|
} catch (x) {
|
1709
|
-
message =
|
1727
|
+
(message =
|
1728
|
+
"An error occurred but serializing the error message failed."),
|
1729
|
+
(stack$jscomp$0 = []);
|
1710
1730
|
}
|
1711
1731
|
digest = {
|
1712
1732
|
digest: digest,
|
1713
1733
|
message: message,
|
1714
|
-
stack: stack$jscomp$
|
1734
|
+
stack: stack$jscomp$0,
|
1715
1735
|
env: env
|
1716
1736
|
};
|
1717
1737
|
id = id.toString(16) + ":E" + stringify(digest) + "\n";
|
@@ -3129,7 +3149,7 @@
|
|
3129
3149
|
}
|
3130
3150
|
};
|
3131
3151
|
var frameRegExp =
|
3132
|
-
/^ {3} at (?:(.+) \((
|
3152
|
+
/^ {3} at (?:(.+) \((.+):(\d+):(\d+)\)|(?:async )?(.+):(\d+):(\d+))$/,
|
3133
3153
|
requestStorage = new async_hooks.AsyncLocalStorage(),
|
3134
3154
|
componentStorage = new async_hooks.AsyncLocalStorage(),
|
3135
3155
|
TEMPORARY_REFERENCE_TAG = Symbol.for("react.temporary.reference"),
|
@@ -3286,12 +3306,7 @@
|
|
3286
3306
|
) {
|
3287
3307
|
currentOwner = componentDebugInfo;
|
3288
3308
|
try {
|
3289
|
-
return
|
3290
|
-
componentDebugInfo,
|
3291
|
-
Component,
|
3292
|
-
props,
|
3293
|
-
void 0
|
3294
|
-
);
|
3309
|
+
return Component(props, void 0);
|
3295
3310
|
} finally {
|
3296
3311
|
currentOwner = null;
|
3297
3312
|
}
|
@@ -3319,7 +3334,6 @@
|
|
3319
3334
|
jsxPropsParents = new WeakMap(),
|
3320
3335
|
jsxChildrenParents = new WeakMap(),
|
3321
3336
|
CLIENT_REFERENCE_TAG = Symbol.for("react.client.reference"),
|
3322
|
-
externalRegExp = /\/node_modules\/|^node:|^$/,
|
3323
3337
|
ObjectPrototype = Object.prototype,
|
3324
3338
|
stringify = JSON.stringify,
|
3325
3339
|
AbortSigil = {},
|
@@ -3503,8 +3517,9 @@
|
|
3503
3517
|
options ? options.onError : void 0,
|
3504
3518
|
options ? options.identifierPrefix : void 0,
|
3505
3519
|
options ? options.onPostpone : void 0,
|
3520
|
+
options ? options.temporaryReferences : void 0,
|
3506
3521
|
options ? options.environmentName : void 0,
|
3507
|
-
options ? options.
|
3522
|
+
options ? options.filterStackFrame : void 0
|
3508
3523
|
),
|
3509
3524
|
hasStartedFlowing = !1;
|
3510
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": {
|