react-dom 19.0.0-rc-100dfd7dab-20240701 → 19.0.0-rc-3da26163a3-20240704

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.
@@ -3805,7 +3805,6 @@ function RequestInstance(
3805
3805
  abortSet,
3806
3806
  null,
3807
3807
  rootFormatContext,
3808
- emptyContextObject,
3809
3808
  null,
3810
3809
  emptyTreeContext,
3811
3810
  null,
@@ -3878,7 +3877,6 @@ function createRenderTask(
3878
3877
  abortSet,
3879
3878
  keyPath,
3880
3879
  formatContext,
3881
- legacyContext,
3882
3880
  context,
3883
3881
  treeContext,
3884
3882
  componentStack,
@@ -3901,7 +3899,6 @@ function createRenderTask(
3901
3899
  abortSet: abortSet,
3902
3900
  keyPath: keyPath,
3903
3901
  formatContext: formatContext,
3904
- legacyContext: legacyContext,
3905
3902
  context: context,
3906
3903
  treeContext: treeContext,
3907
3904
  componentStack: componentStack,
@@ -3922,7 +3919,6 @@ function createReplayTask(
3922
3919
  abortSet,
3923
3920
  keyPath,
3924
3921
  formatContext,
3925
- legacyContext,
3926
3922
  context,
3927
3923
  treeContext,
3928
3924
  componentStack,
@@ -3946,7 +3942,6 @@ function createReplayTask(
3946
3942
  abortSet: abortSet,
3947
3943
  keyPath: keyPath,
3948
3944
  formatContext: formatContext,
3949
- legacyContext: legacyContext,
3950
3945
  context: context,
3951
3946
  treeContext: treeContext,
3952
3947
  componentStack: componentStack,
@@ -3980,41 +3975,52 @@ function createPendingSegment(
3980
3975
  function createBuiltInComponentStack(task, type) {
3981
3976
  return { tag: 0, parent: task.componentStack, type: type };
3982
3977
  }
3983
- function getThrownInfo(request, node) {
3984
- if (node && null !== request.trackedPostpones) {
3985
- try {
3986
- request = "";
3987
- do {
3988
- switch (node.tag) {
3989
- case 0:
3990
- request += describeBuiltInComponentFrame(node.type);
3991
- break;
3992
- case 1:
3993
- request += describeNativeComponentFrame(node.type, !1);
3994
- break;
3995
- case 2:
3996
- request += describeNativeComponentFrame(node.type, !0);
3978
+ function getThrownInfo(node$jscomp$0) {
3979
+ var errorInfo = {};
3980
+ node$jscomp$0 &&
3981
+ Object.defineProperty(errorInfo, "componentStack", {
3982
+ configurable: !0,
3983
+ enumerable: !0,
3984
+ get: function () {
3985
+ try {
3986
+ var info = "",
3987
+ node = node$jscomp$0;
3988
+ do {
3989
+ switch (node.tag) {
3990
+ case 0:
3991
+ info += describeBuiltInComponentFrame(node.type);
3992
+ break;
3993
+ case 1:
3994
+ info += describeNativeComponentFrame(node.type, !1);
3995
+ break;
3996
+ case 2:
3997
+ info += describeNativeComponentFrame(node.type, !0);
3998
+ }
3999
+ node = node.parent;
4000
+ } while (node);
4001
+ var JSCompiler_inline_result = info;
4002
+ } catch (x) {
4003
+ JSCompiler_inline_result =
4004
+ "\nError generating stack: " + x.message + "\n" + x.stack;
3997
4005
  }
3998
- node = node.parent;
3999
- } while (node);
4000
- var JSCompiler_temp = request;
4001
- } catch (x) {
4002
- JSCompiler_temp =
4003
- "\nError generating stack: " + x.message + "\n" + x.stack;
4004
- }
4005
- JSCompiler_temp = { componentStack: JSCompiler_temp };
4006
- } else JSCompiler_temp = {};
4007
- return JSCompiler_temp;
4006
+ Object.defineProperty(errorInfo, "componentStack", {
4007
+ value: JSCompiler_inline_result
4008
+ });
4009
+ return JSCompiler_inline_result;
4010
+ }
4011
+ });
4012
+ return errorInfo;
4008
4013
  }
4009
4014
  function logRecoverableError(request, error, errorInfo) {
4010
- request = request.onError(error, errorInfo);
4011
- if (null == request || "string" === typeof request) return request;
4015
+ request = request.onError;
4016
+ error = request(error, errorInfo);
4017
+ if (null == error || "string" === typeof error) return error;
4012
4018
  }
4013
4019
  function fatalError(request, error) {
4014
- var onShellError = request.onShellError;
4015
- onShellError(error);
4016
- onShellError = request.onFatalError;
4020
+ var onShellError = request.onShellError,
4021
+ onFatalError = request.onFatalError;
4017
4022
  onShellError(error);
4023
+ onFatalError(error);
4018
4024
  null !== request.destination
4019
4025
  ? ((request.status = 2), closeWithError(request.destination, error))
4020
4026
  : ((request.status = 1), (request.fatalError = error));
@@ -4369,10 +4375,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
4369
4375
  } catch (error$28) {
4370
4376
  (contentRootSegment.status = 4),
4371
4377
  (contextType.status = 4),
4372
- (JSCompiler_inline_result = getThrownInfo(
4373
- request,
4374
- task.componentStack
4375
- )),
4378
+ (JSCompiler_inline_result = getThrownInfo(task.componentStack)),
4376
4379
  (defaultProps = logRecoverableError(
4377
4380
  request,
4378
4381
  error$28,
@@ -4419,7 +4422,6 @@ function renderElement(request, task, keyPath, type, props, ref) {
4419
4422
  props,
4420
4423
  JSCompiler_inline_result,
4421
4424
  task.formatContext,
4422
- task.legacyContext,
4423
4425
  task.context,
4424
4426
  task.treeContext,
4425
4427
  type,
@@ -4610,7 +4612,7 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4610
4612
  x)
4611
4613
  );
4612
4614
  task.replay.pendingTasks--;
4613
- props = getThrownInfo(request, task.componentStack);
4615
+ props = getThrownInfo(task.componentStack);
4614
4616
  key = request;
4615
4617
  request = task.blockedBoundary;
4616
4618
  type = x;
@@ -4682,10 +4684,7 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4682
4684
  }
4683
4685
  } catch (error$29) {
4684
4686
  (resumedBoundary.status = 4),
4685
- (childNodes = getThrownInfo(
4686
- request,
4687
- task.componentStack
4688
- )),
4687
+ (childNodes = getThrownInfo(task.componentStack)),
4689
4688
  (replay = logRecoverableError(
4690
4689
  request,
4691
4690
  error$29,
@@ -4714,7 +4713,6 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4714
4713
  fallbackAbortSet,
4715
4714
  [key[0], "Suspense Fallback", key[2]],
4716
4715
  task.formatContext,
4717
- task.legacyContext,
4718
4716
  task.context,
4719
4717
  task.treeContext,
4720
4718
  suspenseComponentStack,
@@ -4843,7 +4841,7 @@ function renderChildrenArray(request, task, children, childIndex) {
4843
4841
  )
4844
4842
  throw x;
4845
4843
  task.replay.pendingTasks--;
4846
- children = getThrownInfo(request, task.componentStack);
4844
+ children = getThrownInfo(task.componentStack);
4847
4845
  var boundary = task.blockedBoundary,
4848
4846
  error = x;
4849
4847
  children = logRecoverableError(request, error, children);
@@ -4900,7 +4898,6 @@ function untrackBoundary(request, boundary) {
4900
4898
  }
4901
4899
  function renderNode(request, task, node, childIndex) {
4902
4900
  var previousFormatContext = task.formatContext,
4903
- previousLegacyContext = task.legacyContext,
4904
4901
  previousContext = task.context,
4905
4902
  previousKeyPath = task.keyPath,
4906
4903
  previousTreeContext = task.treeContext,
@@ -4932,7 +4929,6 @@ function renderNode(request, task, node, childIndex) {
4932
4929
  task.abortSet,
4933
4930
  task.keyPath,
4934
4931
  task.formatContext,
4935
- task.legacyContext,
4936
4932
  task.context,
4937
4933
  task.treeContext,
4938
4934
  null !== task.componentStack ? task.componentStack.parent : null,
@@ -4940,7 +4936,6 @@ function renderNode(request, task, node, childIndex) {
4940
4936
  ).ping;
4941
4937
  node.then(request, request);
4942
4938
  task.formatContext = previousFormatContext;
4943
- task.legacyContext = previousLegacyContext;
4944
4939
  task.context = previousContext;
4945
4940
  task.keyPath = previousKeyPath;
4946
4941
  task.treeContext = previousTreeContext;
@@ -4990,7 +4985,6 @@ function renderNode(request, task, node, childIndex) {
4990
4985
  task.abortSet,
4991
4986
  task.keyPath,
4992
4987
  task.formatContext,
4993
- task.legacyContext,
4994
4988
  task.context,
4995
4989
  task.treeContext,
4996
4990
  null !== task.componentStack ? task.componentStack.parent : null,
@@ -4998,7 +4992,6 @@ function renderNode(request, task, node, childIndex) {
4998
4992
  ).ping;
4999
4993
  node.then(request, request);
5000
4994
  task.formatContext = previousFormatContext;
5001
- task.legacyContext = previousLegacyContext;
5002
4995
  task.context = previousContext;
5003
4996
  task.keyPath = previousKeyPath;
5004
4997
  task.treeContext = previousTreeContext;
@@ -5009,7 +5002,6 @@ function renderNode(request, task, node, childIndex) {
5009
5002
  }
5010
5003
  }
5011
5004
  task.formatContext = previousFormatContext;
5012
- task.legacyContext = previousLegacyContext;
5013
5005
  task.context = previousContext;
5014
5006
  task.keyPath = previousKeyPath;
5015
5007
  task.treeContext = previousTreeContext;
@@ -5095,7 +5087,7 @@ function abortTask(task, request, error) {
5095
5087
  boundary.pendingTasks--,
5096
5088
  4 !== boundary.status &&
5097
5089
  ((boundary.status = 4),
5098
- (task = getThrownInfo(request, task.componentStack)),
5090
+ (task = getThrownInfo(task.componentStack)),
5099
5091
  (task = logRecoverableError(request, error, task)),
5100
5092
  (boundary.errorDigest = task),
5101
5093
  untrackBoundary(request, boundary),
@@ -5288,10 +5280,7 @@ function performWork(request$jscomp$2) {
5288
5280
  } else {
5289
5281
  task.replay.pendingTasks--;
5290
5282
  task.abortSet.delete(task);
5291
- var errorInfo = getThrownInfo(
5292
- request$jscomp$0,
5293
- task.componentStack
5294
- );
5283
+ var errorInfo = getThrownInfo(task.componentStack);
5295
5284
  request = void 0;
5296
5285
  var request$jscomp$1 = request$jscomp$0,
5297
5286
  boundary = task.blockedBoundary,
@@ -5356,10 +5345,7 @@ function performWork(request$jscomp$2) {
5356
5345
  null !== task.componentStack &&
5357
5346
  (task.componentStack = task.componentStack.parent);
5358
5347
  } else {
5359
- var errorInfo$jscomp$0 = getThrownInfo(
5360
- request,
5361
- task.componentStack
5362
- );
5348
+ var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
5363
5349
  task.abortSet.delete(task);
5364
5350
  request$jscomp$1.status = 4;
5365
5351
  var boundary$jscomp$0 = task.blockedBoundary;
@@ -5839,16 +5825,16 @@ function abort(request, reason) {
5839
5825
  logRecoverableError(request, error$52, {}), fatalError(request, error$52);
5840
5826
  }
5841
5827
  }
5842
- var isomorphicReactPackageVersion$jscomp$inline_757 = React.version;
5828
+ var isomorphicReactPackageVersion$jscomp$inline_758 = React.version;
5843
5829
  if (
5844
- "19.0.0-rc-100dfd7dab-20240701" !==
5845
- isomorphicReactPackageVersion$jscomp$inline_757
5830
+ "19.0.0-rc-3da26163a3-20240704" !==
5831
+ isomorphicReactPackageVersion$jscomp$inline_758
5846
5832
  )
5847
5833
  throw Error(
5848
5834
  formatProdErrorMessage(
5849
5835
  527,
5850
- isomorphicReactPackageVersion$jscomp$inline_757,
5851
- "19.0.0-rc-100dfd7dab-20240701"
5836
+ isomorphicReactPackageVersion$jscomp$inline_758,
5837
+ "19.0.0-rc-3da26163a3-20240704"
5852
5838
  )
5853
5839
  );
5854
5840
  exports.renderToReadableStream = function (children, options) {
@@ -5937,4 +5923,4 @@ exports.renderToReadableStream = function (children, options) {
5937
5923
  startWork(request);
5938
5924
  });
5939
5925
  };
5940
- exports.version = "19.0.0-rc-100dfd7dab-20240701";
5926
+ exports.version = "19.0.0-rc-3da26163a3-20240704";