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.
@@ -3497,7 +3497,6 @@ function RequestInstance(
3497
3497
  abortSet,
3498
3498
  null,
3499
3499
  rootFormatContext,
3500
- emptyContextObject,
3501
3500
  null,
3502
3501
  emptyTreeContext,
3503
3502
  null,
@@ -3568,7 +3567,6 @@ function createRenderTask(
3568
3567
  abortSet,
3569
3568
  keyPath,
3570
3569
  formatContext,
3571
- legacyContext,
3572
3570
  context,
3573
3571
  treeContext,
3574
3572
  componentStack,
@@ -3591,7 +3589,6 @@ function createRenderTask(
3591
3589
  abortSet: abortSet,
3592
3590
  keyPath: keyPath,
3593
3591
  formatContext: formatContext,
3594
- legacyContext: legacyContext,
3595
3592
  context: context,
3596
3593
  treeContext: treeContext,
3597
3594
  componentStack: componentStack,
@@ -3612,7 +3609,6 @@ function createReplayTask(
3612
3609
  abortSet,
3613
3610
  keyPath,
3614
3611
  formatContext,
3615
- legacyContext,
3616
3612
  context,
3617
3613
  treeContext,
3618
3614
  componentStack,
@@ -3636,7 +3632,6 @@ function createReplayTask(
3636
3632
  abortSet: abortSet,
3637
3633
  keyPath: keyPath,
3638
3634
  formatContext: formatContext,
3639
- legacyContext: legacyContext,
3640
3635
  context: context,
3641
3636
  treeContext: treeContext,
3642
3637
  componentStack: componentStack,
@@ -3670,41 +3665,52 @@ function createPendingSegment(
3670
3665
  function createBuiltInComponentStack(task, type) {
3671
3666
  return { tag: 0, parent: task.componentStack, type: type };
3672
3667
  }
3673
- function getThrownInfo(request, node) {
3674
- if (node && null !== request.trackedPostpones) {
3675
- try {
3676
- request = "";
3677
- do {
3678
- switch (node.tag) {
3679
- case 0:
3680
- request += describeBuiltInComponentFrame(node.type);
3681
- break;
3682
- case 1:
3683
- request += describeNativeComponentFrame(node.type, !1);
3684
- break;
3685
- case 2:
3686
- request += describeNativeComponentFrame(node.type, !0);
3668
+ function getThrownInfo(node$jscomp$0) {
3669
+ var errorInfo = {};
3670
+ node$jscomp$0 &&
3671
+ Object.defineProperty(errorInfo, "componentStack", {
3672
+ configurable: !0,
3673
+ enumerable: !0,
3674
+ get: function () {
3675
+ try {
3676
+ var info = "",
3677
+ node = node$jscomp$0;
3678
+ do {
3679
+ switch (node.tag) {
3680
+ case 0:
3681
+ info += describeBuiltInComponentFrame(node.type);
3682
+ break;
3683
+ case 1:
3684
+ info += describeNativeComponentFrame(node.type, !1);
3685
+ break;
3686
+ case 2:
3687
+ info += describeNativeComponentFrame(node.type, !0);
3688
+ }
3689
+ node = node.parent;
3690
+ } while (node);
3691
+ var JSCompiler_inline_result = info;
3692
+ } catch (x) {
3693
+ JSCompiler_inline_result =
3694
+ "\nError generating stack: " + x.message + "\n" + x.stack;
3687
3695
  }
3688
- node = node.parent;
3689
- } while (node);
3690
- var JSCompiler_temp = request;
3691
- } catch (x) {
3692
- JSCompiler_temp =
3693
- "\nError generating stack: " + x.message + "\n" + x.stack;
3694
- }
3695
- JSCompiler_temp = { componentStack: JSCompiler_temp };
3696
- } else JSCompiler_temp = {};
3697
- return JSCompiler_temp;
3696
+ Object.defineProperty(errorInfo, "componentStack", {
3697
+ value: JSCompiler_inline_result
3698
+ });
3699
+ return JSCompiler_inline_result;
3700
+ }
3701
+ });
3702
+ return errorInfo;
3698
3703
  }
3699
3704
  function logRecoverableError(request, error, errorInfo) {
3700
- request = request.onError(error, errorInfo);
3701
- if (null == request || "string" === typeof request) return request;
3705
+ request = request.onError;
3706
+ error = request(error, errorInfo);
3707
+ if (null == error || "string" === typeof error) return error;
3702
3708
  }
3703
3709
  function fatalError(request, error) {
3704
- var onShellError = request.onShellError;
3705
- onShellError(error);
3706
- onShellError = request.onFatalError;
3710
+ var onShellError = request.onShellError,
3711
+ onFatalError = request.onFatalError;
3707
3712
  onShellError(error);
3713
+ onFatalError(error);
3708
3714
  null !== request.destination
3709
3715
  ? ((request.status = 2), request.destination.destroy(error))
3710
3716
  : ((request.status = 1), (request.fatalError = error));
@@ -4060,10 +4066,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
4060
4066
  } catch (error$28) {
4061
4067
  (contentRootSegment.status = 4),
4062
4068
  (contextType.status = 4),
4063
- (JSCompiler_inline_result = getThrownInfo(
4064
- request,
4065
- task.componentStack
4066
- )),
4069
+ (JSCompiler_inline_result = getThrownInfo(task.componentStack)),
4067
4070
  (defaultProps = logRecoverableError(
4068
4071
  request,
4069
4072
  error$28,
@@ -4110,7 +4113,6 @@ function renderElement(request, task, keyPath, type, props, ref) {
4110
4113
  props,
4111
4114
  JSCompiler_inline_result,
4112
4115
  task.formatContext,
4113
- task.legacyContext,
4114
4116
  task.context,
4115
4117
  task.treeContext,
4116
4118
  type,
@@ -4313,7 +4315,7 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4313
4315
  x)
4314
4316
  );
4315
4317
  task.replay.pendingTasks--;
4316
- props = getThrownInfo(request, task.componentStack);
4318
+ props = getThrownInfo(task.componentStack);
4317
4319
  key = request;
4318
4320
  request = task.blockedBoundary;
4319
4321
  type = x;
@@ -4385,10 +4387,7 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4385
4387
  }
4386
4388
  } catch (error$29) {
4387
4389
  (resumedBoundary.status = 4),
4388
- (childNodes = getThrownInfo(
4389
- request,
4390
- task.componentStack
4391
- )),
4390
+ (childNodes = getThrownInfo(task.componentStack)),
4392
4391
  (replay = logRecoverableError(
4393
4392
  request,
4394
4393
  error$29,
@@ -4417,7 +4416,6 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4417
4416
  fallbackAbortSet,
4418
4417
  [key[0], "Suspense Fallback", key[2]],
4419
4418
  task.formatContext,
4420
- task.legacyContext,
4421
4419
  task.context,
4422
4420
  task.treeContext,
4423
4421
  suspenseComponentStack,
@@ -4549,7 +4547,7 @@ function renderChildrenArray(request, task, children, childIndex) {
4549
4547
  )
4550
4548
  throw x;
4551
4549
  task.replay.pendingTasks--;
4552
- children = getThrownInfo(request, task.componentStack);
4550
+ children = getThrownInfo(task.componentStack);
4553
4551
  var boundary = task.blockedBoundary,
4554
4552
  error = x;
4555
4553
  children = logRecoverableError(request, error, children);
@@ -4606,7 +4604,6 @@ function untrackBoundary(request, boundary) {
4606
4604
  }
4607
4605
  function renderNode(request, task, node, childIndex) {
4608
4606
  var previousFormatContext = task.formatContext,
4609
- previousLegacyContext = task.legacyContext,
4610
4607
  previousContext = task.context,
4611
4608
  previousKeyPath = task.keyPath,
4612
4609
  previousTreeContext = task.treeContext,
@@ -4638,7 +4635,6 @@ function renderNode(request, task, node, childIndex) {
4638
4635
  task.abortSet,
4639
4636
  task.keyPath,
4640
4637
  task.formatContext,
4641
- task.legacyContext,
4642
4638
  task.context,
4643
4639
  task.treeContext,
4644
4640
  null !== task.componentStack ? task.componentStack.parent : null,
@@ -4646,7 +4642,6 @@ function renderNode(request, task, node, childIndex) {
4646
4642
  ).ping;
4647
4643
  node.then(request, request);
4648
4644
  task.formatContext = previousFormatContext;
4649
- task.legacyContext = previousLegacyContext;
4650
4645
  task.context = previousContext;
4651
4646
  task.keyPath = previousKeyPath;
4652
4647
  task.treeContext = previousTreeContext;
@@ -4696,7 +4691,6 @@ function renderNode(request, task, node, childIndex) {
4696
4691
  task.abortSet,
4697
4692
  task.keyPath,
4698
4693
  task.formatContext,
4699
- task.legacyContext,
4700
4694
  task.context,
4701
4695
  task.treeContext,
4702
4696
  null !== task.componentStack ? task.componentStack.parent : null,
@@ -4704,7 +4698,6 @@ function renderNode(request, task, node, childIndex) {
4704
4698
  ).ping;
4705
4699
  node.then(request, request);
4706
4700
  task.formatContext = previousFormatContext;
4707
- task.legacyContext = previousLegacyContext;
4708
4701
  task.context = previousContext;
4709
4702
  task.keyPath = previousKeyPath;
4710
4703
  task.treeContext = previousTreeContext;
@@ -4715,7 +4708,6 @@ function renderNode(request, task, node, childIndex) {
4715
4708
  }
4716
4709
  }
4717
4710
  task.formatContext = previousFormatContext;
4718
- task.legacyContext = previousLegacyContext;
4719
4711
  task.context = previousContext;
4720
4712
  task.keyPath = previousKeyPath;
4721
4713
  task.treeContext = previousTreeContext;
@@ -4804,7 +4796,7 @@ function abortTask(task, request, error) {
4804
4796
  boundary.pendingTasks--,
4805
4797
  4 !== boundary.status &&
4806
4798
  ((boundary.status = 4),
4807
- (task = getThrownInfo(request, task.componentStack)),
4799
+ (task = getThrownInfo(task.componentStack)),
4808
4800
  (task = logRecoverableError(request, error, task)),
4809
4801
  (boundary.errorDigest = task),
4810
4802
  untrackBoundary(request, boundary),
@@ -5001,10 +4993,7 @@ function performWork(request$jscomp$2) {
5001
4993
  } else {
5002
4994
  task.replay.pendingTasks--;
5003
4995
  task.abortSet.delete(task);
5004
- var errorInfo = getThrownInfo(
5005
- request$jscomp$0,
5006
- task.componentStack
5007
- );
4996
+ var errorInfo = getThrownInfo(task.componentStack);
5008
4997
  request = void 0;
5009
4998
  var request$jscomp$1 = request$jscomp$0,
5010
4999
  boundary = task.blockedBoundary,
@@ -5070,10 +5059,7 @@ function performWork(request$jscomp$2) {
5070
5059
  null !== task.componentStack &&
5071
5060
  (task.componentStack = task.componentStack.parent);
5072
5061
  } else {
5073
- var errorInfo$jscomp$0 = getThrownInfo(
5074
- request,
5075
- task.componentStack
5076
- );
5062
+ var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
5077
5063
  task.abortSet.delete(task);
5078
5064
  request$jscomp$1.status = 4;
5079
5065
  var boundary$jscomp$0 = task.blockedBoundary;
@@ -5643,4 +5629,4 @@ exports.renderToString = function (children, options) {
5643
5629
  'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToPipeableStream" which supports Suspense on the server'
5644
5630
  );
5645
5631
  };
5646
- exports.version = "19.0.0-rc-100dfd7dab-20240701";
5632
+ exports.version = "19.0.0-rc-3da26163a3-20240704";