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.
@@ -599,7 +599,13 @@ var DefaultAsyncDispatcher = {
599
599
  return entry;
600
600
  }
601
601
  },
602
- isArrayImpl = Array.isArray,
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) {
@@ -2671,12 +2671,12 @@ exports.decodeReplyFromBusboy = function (busboyStream, webpackMap, options) {
2671
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."
2672
2672
  );
2673
2673
  pendingFiles++;
2674
- var JSCompiler_object_inline_chunks_212 = [];
2674
+ var JSCompiler_object_inline_chunks_210 = [];
2675
2675
  value.on("data", function (chunk) {
2676
- JSCompiler_object_inline_chunks_212.push(chunk);
2676
+ JSCompiler_object_inline_chunks_210.push(chunk);
2677
2677
  });
2678
2678
  value.on("end", function () {
2679
- var blob = new Blob(JSCompiler_object_inline_chunks_212, {
2679
+ var blob = new Blob(JSCompiler_object_inline_chunks_210, {
2680
2680
  type: mimeType
2681
2681
  });
2682
2682
  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-3da26163a3-20240704",
4
+ "version": "19.0.0-rc-df783f9ea1-20240708",
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-3da26163a3-20240704",
81
- "react-dom": "19.0.0-rc-3da26163a3-20240704",
80
+ "react": "19.0.0-rc-df783f9ea1-20240708",
81
+ "react-dom": "19.0.0-rc-df783f9ea1-20240708",
82
82
  "webpack": "^5.59.0"
83
83
  },
84
84
  "dependencies": {