react-server-dom-webpack 19.0.0-rc-3da26163a3-20240704 → 19.0.0-rc-df783f9ea1-20240708
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 +45 -41
- package/cjs/react-server-dom-webpack-client.edge.development.js +45 -41
- package/cjs/react-server-dom-webpack-client.node.development.js +45 -41
- package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +45 -41
- package/cjs/react-server-dom-webpack-server.browser.development.js +273 -299
- package/cjs/react-server-dom-webpack-server.browser.production.js +20 -19
- package/cjs/react-server-dom-webpack-server.edge.development.js +283 -301
- package/cjs/react-server-dom-webpack-server.edge.production.js +20 -19
- package/cjs/react-server-dom-webpack-server.node.development.js +284 -302
- package/cjs/react-server-dom-webpack-server.node.production.js +22 -22
- package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +284 -302
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.js +22 -22
- package/package.json +3 -3
@@ -599,7 +599,13 @@ var DefaultAsyncDispatcher = {
|
|
599
599
|
return entry;
|
600
600
|
}
|
601
601
|
},
|
602
|
-
|
602
|
+
ReactSharedInternalsServer =
|
603
|
+
React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
604
|
+
if (!ReactSharedInternalsServer)
|
605
|
+
throw Error(
|
606
|
+
'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.'
|
607
|
+
);
|
608
|
+
var isArrayImpl = Array.isArray,
|
603
609
|
getPrototypeOf = Object.getPrototypeOf;
|
604
610
|
function objectName(object) {
|
605
611
|
return Object.prototype.toString
|
@@ -710,12 +716,6 @@ function describeObjectForErrorMessage(objectOrArray, expandedName) {
|
|
710
716
|
"\n " + str + "\n " + objectOrArray)
|
711
717
|
: "\n " + str;
|
712
718
|
}
|
713
|
-
var ReactSharedInternalsServer =
|
714
|
-
React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
715
|
-
if (!ReactSharedInternalsServer)
|
716
|
-
throw Error(
|
717
|
-
'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.'
|
718
|
-
);
|
719
719
|
var ObjectPrototype = Object.prototype,
|
720
720
|
stringify = JSON.stringify,
|
721
721
|
AbortSigil = {};
|
@@ -789,7 +789,7 @@ function serializeThenable(request, task, thenable) {
|
|
789
789
|
);
|
790
790
|
case "rejected":
|
791
791
|
return (
|
792
|
-
(task = logRecoverableError(request, thenable.reason)),
|
792
|
+
(task = logRecoverableError(request, thenable.reason, null)),
|
793
793
|
emitErrorChunk(request, newTask.id, task),
|
794
794
|
newTask.id
|
795
795
|
);
|
@@ -823,7 +823,7 @@ function serializeThenable(request, task, thenable) {
|
|
823
823
|
},
|
824
824
|
function (reason) {
|
825
825
|
newTask.status = 4;
|
826
|
-
reason = logRecoverableError(request, reason);
|
826
|
+
reason = logRecoverableError(request, reason, newTask);
|
827
827
|
emitErrorChunk(request, newTask.id, reason);
|
828
828
|
request.abortableTasks.delete(newTask);
|
829
829
|
enqueueFlush(request);
|
@@ -855,7 +855,7 @@ function serializeReadableStream(request, task, stream) {
|
|
855
855
|
if (!aborted) {
|
856
856
|
aborted = !0;
|
857
857
|
request.abortListeners.delete(error);
|
858
|
-
var digest = logRecoverableError(request, reason);
|
858
|
+
var digest = logRecoverableError(request, reason, streamTask);
|
859
859
|
emitErrorChunk(request, streamTask.id, digest);
|
860
860
|
enqueueFlush(request);
|
861
861
|
reader.cancel(reason).then(error, error);
|
@@ -922,7 +922,7 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
|
|
922
922
|
if (!aborted) {
|
923
923
|
aborted = !0;
|
924
924
|
request.abortListeners.delete(error);
|
925
|
-
var digest = logRecoverableError(request, reason);
|
925
|
+
var digest = logRecoverableError(request, reason, streamTask);
|
926
926
|
emitErrorChunk(request, streamTask.id, digest);
|
927
927
|
enqueueFlush(request);
|
928
928
|
"function" === typeof iterator.throw &&
|
@@ -1182,7 +1182,7 @@ function createTask(request, model, keyPath, implicitSlot, abortSet) {
|
|
1182
1182
|
(task.implicitSlot = prevImplicitSlot),
|
1183
1183
|
request.pendingChunks++,
|
1184
1184
|
(prevKeyPath = request.nextChunkId++),
|
1185
|
-
(prevImplicitSlot = logRecoverableError(request, value)),
|
1185
|
+
(prevImplicitSlot = logRecoverableError(request, value, task)),
|
1186
1186
|
emitErrorChunk(request, prevKeyPath, prevImplicitSlot),
|
1187
1187
|
(JSCompiler_inline_result = parentPropertyName
|
1188
1188
|
? "$L" + prevKeyPath.toString(16)
|
@@ -1252,7 +1252,7 @@ function serializeClientReference(
|
|
1252
1252
|
return (
|
1253
1253
|
request.pendingChunks++,
|
1254
1254
|
(parent = request.nextChunkId++),
|
1255
|
-
(parentPropertyName = logRecoverableError(request, x)),
|
1255
|
+
(parentPropertyName = logRecoverableError(request, x, null)),
|
1256
1256
|
emitErrorChunk(request, parent, parentPropertyName),
|
1257
1257
|
serializeByValueID(parent)
|
1258
1258
|
);
|
@@ -1285,7 +1285,7 @@ function serializeBlob(request, blob) {
|
|
1285
1285
|
if (!aborted) {
|
1286
1286
|
aborted = !0;
|
1287
1287
|
request.abortListeners.delete(error);
|
1288
|
-
var digest = logRecoverableError(request, reason);
|
1288
|
+
var digest = logRecoverableError(request, reason, newTask);
|
1289
1289
|
emitErrorChunk(request, newTask.id, digest);
|
1290
1290
|
request.abortableTasks.delete(newTask);
|
1291
1291
|
enqueueFlush(request);
|
@@ -1726,7 +1726,7 @@ function retryTask(request, task) {
|
|
1726
1726
|
} else {
|
1727
1727
|
request.abortableTasks.delete(task);
|
1728
1728
|
task.status = 4;
|
1729
|
-
var digest = logRecoverableError(request, x);
|
1729
|
+
var digest = logRecoverableError(request, x, task);
|
1730
1730
|
emitErrorChunk(request, task.id, digest);
|
1731
1731
|
}
|
1732
1732
|
} finally {
|
@@ -1746,7 +1746,7 @@ function performWork(request) {
|
|
1746
1746
|
null !== request.destination &&
|
1747
1747
|
flushCompletedChunks(request, request.destination);
|
1748
1748
|
} catch (error) {
|
1749
|
-
logRecoverableError(request, error), fatalError(request, error);
|
1749
|
+
logRecoverableError(request, error, null), fatalError(request, error);
|
1750
1750
|
} finally {
|
1751
1751
|
(ReactSharedInternalsServer.H = prevDispatcher),
|
1752
1752
|
(currentRequest$1 = null),
|
@@ -1840,7 +1840,7 @@ function startFlowing(request, destination) {
|
|
1840
1840
|
try {
|
1841
1841
|
flushCompletedChunks(request, destination);
|
1842
1842
|
} catch (error) {
|
1843
|
-
logRecoverableError(request, error), fatalError(request, error);
|
1843
|
+
logRecoverableError(request, error, null), fatalError(request, error);
|
1844
1844
|
}
|
1845
1845
|
}
|
1846
1846
|
}
|
@@ -1860,7 +1860,7 @@ function abort(request, reason) {
|
|
1860
1860
|
"function" === typeof reason.then
|
1861
1861
|
? Error("The render was aborted by the server with a promise.")
|
1862
1862
|
: reason,
|
1863
|
-
digest = logRecoverableError(request, error);
|
1863
|
+
digest = logRecoverableError(request, error, null);
|
1864
1864
|
emitErrorChunk(request, errorId, digest, error);
|
1865
1865
|
abortableTasks.forEach(function (task) {
|
1866
1866
|
if (5 !== task.status) {
|
@@ -1890,7 +1890,7 @@ function abort(request, reason) {
|
|
1890
1890
|
null !== request.destination &&
|
1891
1891
|
flushCompletedChunks(request, request.destination);
|
1892
1892
|
} catch (error$27) {
|
1893
|
-
logRecoverableError(request, error$27), fatalError(request, error$27);
|
1893
|
+
logRecoverableError(request, error$27, null), fatalError(request, error$27);
|
1894
1894
|
}
|
1895
1895
|
}
|
1896
1896
|
function resolveServerReference(bundlerConfig, id) {
|
@@ -2703,12 +2703,12 @@ exports.decodeReplyFromBusboy = function (busboyStream, webpackMap, options) {
|
|
2703
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."
|
2704
2704
|
);
|
2705
2705
|
pendingFiles++;
|
2706
|
-
var
|
2706
|
+
var JSCompiler_object_inline_chunks_210 = [];
|
2707
2707
|
value.on("data", function (chunk) {
|
2708
|
-
|
2708
|
+
JSCompiler_object_inline_chunks_210.push(chunk);
|
2709
2709
|
});
|
2710
2710
|
value.on("end", function () {
|
2711
|
-
var blob = new Blob(
|
2711
|
+
var blob = new Blob(JSCompiler_object_inline_chunks_210, {
|
2712
2712
|
type: mimeType
|
2713
2713
|
});
|
2714
2714
|
response._formData.append(name, blob, filename);
|