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.
@@ -3476,7 +3476,6 @@ function RequestInstance(
3476
3476
  abortSet,
3477
3477
  null,
3478
3478
  rootFormatContext,
3479
- emptyContextObject,
3480
3479
  null,
3481
3480
  emptyTreeContext,
3482
3481
  null,
@@ -3549,7 +3548,6 @@ function createRenderTask(
3549
3548
  abortSet,
3550
3549
  keyPath,
3551
3550
  formatContext,
3552
- legacyContext,
3553
3551
  context,
3554
3552
  treeContext,
3555
3553
  componentStack,
@@ -3572,7 +3570,6 @@ function createRenderTask(
3572
3570
  abortSet: abortSet,
3573
3571
  keyPath: keyPath,
3574
3572
  formatContext: formatContext,
3575
- legacyContext: legacyContext,
3576
3573
  context: context,
3577
3574
  treeContext: treeContext,
3578
3575
  componentStack: componentStack,
@@ -3593,7 +3590,6 @@ function createReplayTask(
3593
3590
  abortSet,
3594
3591
  keyPath,
3595
3592
  formatContext,
3596
- legacyContext,
3597
3593
  context,
3598
3594
  treeContext,
3599
3595
  componentStack,
@@ -3617,7 +3613,6 @@ function createReplayTask(
3617
3613
  abortSet: abortSet,
3618
3614
  keyPath: keyPath,
3619
3615
  formatContext: formatContext,
3620
- legacyContext: legacyContext,
3621
3616
  context: context,
3622
3617
  treeContext: treeContext,
3623
3618
  componentStack: componentStack,
@@ -3651,41 +3646,52 @@ function createPendingSegment(
3651
3646
  function createBuiltInComponentStack(task, type) {
3652
3647
  return { tag: 0, parent: task.componentStack, type: type };
3653
3648
  }
3654
- function getThrownInfo(request, node) {
3655
- if (node && null !== request.trackedPostpones) {
3656
- try {
3657
- request = "";
3658
- do {
3659
- switch (node.tag) {
3660
- case 0:
3661
- request += describeBuiltInComponentFrame(node.type);
3662
- break;
3663
- case 1:
3664
- request += describeNativeComponentFrame(node.type, !1);
3665
- break;
3666
- case 2:
3667
- request += describeNativeComponentFrame(node.type, !0);
3649
+ function getThrownInfo(node$jscomp$0) {
3650
+ var errorInfo = {};
3651
+ node$jscomp$0 &&
3652
+ Object.defineProperty(errorInfo, "componentStack", {
3653
+ configurable: !0,
3654
+ enumerable: !0,
3655
+ get: function () {
3656
+ try {
3657
+ var info = "",
3658
+ node = node$jscomp$0;
3659
+ do {
3660
+ switch (node.tag) {
3661
+ case 0:
3662
+ info += describeBuiltInComponentFrame(node.type);
3663
+ break;
3664
+ case 1:
3665
+ info += describeNativeComponentFrame(node.type, !1);
3666
+ break;
3667
+ case 2:
3668
+ info += describeNativeComponentFrame(node.type, !0);
3669
+ }
3670
+ node = node.parent;
3671
+ } while (node);
3672
+ var JSCompiler_inline_result = info;
3673
+ } catch (x) {
3674
+ JSCompiler_inline_result =
3675
+ "\nError generating stack: " + x.message + "\n" + x.stack;
3668
3676
  }
3669
- node = node.parent;
3670
- } while (node);
3671
- var JSCompiler_temp = request;
3672
- } catch (x) {
3673
- JSCompiler_temp =
3674
- "\nError generating stack: " + x.message + "\n" + x.stack;
3675
- }
3676
- JSCompiler_temp = { componentStack: JSCompiler_temp };
3677
- } else JSCompiler_temp = {};
3678
- return JSCompiler_temp;
3677
+ Object.defineProperty(errorInfo, "componentStack", {
3678
+ value: JSCompiler_inline_result
3679
+ });
3680
+ return JSCompiler_inline_result;
3681
+ }
3682
+ });
3683
+ return errorInfo;
3679
3684
  }
3680
3685
  function logRecoverableError(request, error, errorInfo) {
3681
- request = request.onError(error, errorInfo);
3682
- if (null == request || "string" === typeof request) return request;
3686
+ request = request.onError;
3687
+ error = request(error, errorInfo);
3688
+ if (null == error || "string" === typeof error) return error;
3683
3689
  }
3684
3690
  function fatalError(request, error) {
3685
- var onShellError = request.onShellError;
3686
- onShellError(error);
3687
- onShellError = request.onFatalError;
3691
+ var onShellError = request.onShellError,
3692
+ onFatalError = request.onFatalError;
3688
3693
  onShellError(error);
3694
+ onFatalError(error);
3689
3695
  null !== request.destination
3690
3696
  ? ((request.status = 2), closeWithError(request.destination, error))
3691
3697
  : ((request.status = 1), (request.fatalError = error));
@@ -4040,10 +4046,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
4040
4046
  } catch (error$28) {
4041
4047
  (contentRootSegment.status = 4),
4042
4048
  (contextType.status = 4),
4043
- (JSCompiler_inline_result = getThrownInfo(
4044
- request,
4045
- task.componentStack
4046
- )),
4049
+ (JSCompiler_inline_result = getThrownInfo(task.componentStack)),
4047
4050
  (defaultProps = logRecoverableError(
4048
4051
  request,
4049
4052
  error$28,
@@ -4090,7 +4093,6 @@ function renderElement(request, task, keyPath, type, props, ref) {
4090
4093
  props,
4091
4094
  JSCompiler_inline_result,
4092
4095
  task.formatContext,
4093
- task.legacyContext,
4094
4096
  task.context,
4095
4097
  task.treeContext,
4096
4098
  type,
@@ -4293,7 +4295,7 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4293
4295
  x)
4294
4296
  );
4295
4297
  task.replay.pendingTasks--;
4296
- props = getThrownInfo(request, task.componentStack);
4298
+ props = getThrownInfo(task.componentStack);
4297
4299
  key = request;
4298
4300
  request = task.blockedBoundary;
4299
4301
  type = x;
@@ -4365,10 +4367,7 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4365
4367
  }
4366
4368
  } catch (error$29) {
4367
4369
  (resumedBoundary.status = 4),
4368
- (childNodes = getThrownInfo(
4369
- request,
4370
- task.componentStack
4371
- )),
4370
+ (childNodes = getThrownInfo(task.componentStack)),
4372
4371
  (replay = logRecoverableError(
4373
4372
  request,
4374
4373
  error$29,
@@ -4397,7 +4396,6 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4397
4396
  fallbackAbortSet,
4398
4397
  [key[0], "Suspense Fallback", key[2]],
4399
4398
  task.formatContext,
4400
- task.legacyContext,
4401
4399
  task.context,
4402
4400
  task.treeContext,
4403
4401
  suspenseComponentStack,
@@ -4529,7 +4527,7 @@ function renderChildrenArray(request, task, children, childIndex) {
4529
4527
  )
4530
4528
  throw x;
4531
4529
  task.replay.pendingTasks--;
4532
- children = getThrownInfo(request, task.componentStack);
4530
+ children = getThrownInfo(task.componentStack);
4533
4531
  var boundary = task.blockedBoundary,
4534
4532
  error = x;
4535
4533
  children = logRecoverableError(request, error, children);
@@ -4586,7 +4584,6 @@ function untrackBoundary(request, boundary) {
4586
4584
  }
4587
4585
  function renderNode(request, task, node, childIndex) {
4588
4586
  var previousFormatContext = task.formatContext,
4589
- previousLegacyContext = task.legacyContext,
4590
4587
  previousContext = task.context,
4591
4588
  previousKeyPath = task.keyPath,
4592
4589
  previousTreeContext = task.treeContext,
@@ -4618,7 +4615,6 @@ function renderNode(request, task, node, childIndex) {
4618
4615
  task.abortSet,
4619
4616
  task.keyPath,
4620
4617
  task.formatContext,
4621
- task.legacyContext,
4622
4618
  task.context,
4623
4619
  task.treeContext,
4624
4620
  null !== task.componentStack ? task.componentStack.parent : null,
@@ -4626,7 +4622,6 @@ function renderNode(request, task, node, childIndex) {
4626
4622
  ).ping;
4627
4623
  node.then(request, request);
4628
4624
  task.formatContext = previousFormatContext;
4629
- task.legacyContext = previousLegacyContext;
4630
4625
  task.context = previousContext;
4631
4626
  task.keyPath = previousKeyPath;
4632
4627
  task.treeContext = previousTreeContext;
@@ -4676,7 +4671,6 @@ function renderNode(request, task, node, childIndex) {
4676
4671
  task.abortSet,
4677
4672
  task.keyPath,
4678
4673
  task.formatContext,
4679
- task.legacyContext,
4680
4674
  task.context,
4681
4675
  task.treeContext,
4682
4676
  null !== task.componentStack ? task.componentStack.parent : null,
@@ -4684,7 +4678,6 @@ function renderNode(request, task, node, childIndex) {
4684
4678
  ).ping;
4685
4679
  node.then(request, request);
4686
4680
  task.formatContext = previousFormatContext;
4687
- task.legacyContext = previousLegacyContext;
4688
4681
  task.context = previousContext;
4689
4682
  task.keyPath = previousKeyPath;
4690
4683
  task.treeContext = previousTreeContext;
@@ -4695,7 +4688,6 @@ function renderNode(request, task, node, childIndex) {
4695
4688
  }
4696
4689
  }
4697
4690
  task.formatContext = previousFormatContext;
4698
- task.legacyContext = previousLegacyContext;
4699
4691
  task.context = previousContext;
4700
4692
  task.keyPath = previousKeyPath;
4701
4693
  task.treeContext = previousTreeContext;
@@ -4784,7 +4776,7 @@ function abortTask(task, request, error) {
4784
4776
  boundary.pendingTasks--,
4785
4777
  4 !== boundary.status &&
4786
4778
  ((boundary.status = 4),
4787
- (task = getThrownInfo(request, task.componentStack)),
4779
+ (task = getThrownInfo(task.componentStack)),
4788
4780
  (task = logRecoverableError(request, error, task)),
4789
4781
  (boundary.errorDigest = task),
4790
4782
  untrackBoundary(request, boundary),
@@ -4981,10 +4973,7 @@ function performWork(request$jscomp$2) {
4981
4973
  } else {
4982
4974
  task.replay.pendingTasks--;
4983
4975
  task.abortSet.delete(task);
4984
- var errorInfo = getThrownInfo(
4985
- request$jscomp$0,
4986
- task.componentStack
4987
- );
4976
+ var errorInfo = getThrownInfo(task.componentStack);
4988
4977
  request = void 0;
4989
4978
  var request$jscomp$1 = request$jscomp$0,
4990
4979
  boundary = task.blockedBoundary,
@@ -5049,10 +5038,7 @@ function performWork(request$jscomp$2) {
5049
5038
  null !== task.componentStack &&
5050
5039
  (task.componentStack = task.componentStack.parent);
5051
5040
  } else {
5052
- var errorInfo$jscomp$0 = getThrownInfo(
5053
- request,
5054
- task.componentStack
5055
- );
5041
+ var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
5056
5042
  task.abortSet.delete(task);
5057
5043
  request$jscomp$1.status = 4;
5058
5044
  var boundary$jscomp$0 = task.blockedBoundary;
@@ -5540,15 +5526,15 @@ function abort(request, reason) {
5540
5526
  logRecoverableError(request, error$52, {}), fatalError(request, error$52);
5541
5527
  }
5542
5528
  }
5543
- var isomorphicReactPackageVersion$jscomp$inline_761 = React.version;
5529
+ var isomorphicReactPackageVersion$jscomp$inline_762 = React.version;
5544
5530
  if (
5545
- "19.0.0-rc-100dfd7dab-20240701" !==
5546
- isomorphicReactPackageVersion$jscomp$inline_761
5531
+ "19.0.0-rc-3da26163a3-20240704" !==
5532
+ isomorphicReactPackageVersion$jscomp$inline_762
5547
5533
  )
5548
5534
  throw Error(
5549
5535
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
5550
- (isomorphicReactPackageVersion$jscomp$inline_761 +
5551
- "\n - react-dom: 19.0.0-rc-100dfd7dab-20240701\nLearn more: https://react.dev/warnings/version-mismatch")
5536
+ (isomorphicReactPackageVersion$jscomp$inline_762 +
5537
+ "\n - react-dom: 19.0.0-rc-3da26163a3-20240704\nLearn more: https://react.dev/warnings/version-mismatch")
5552
5538
  );
5553
5539
  exports.renderToReadableStream = function (children, options) {
5554
5540
  return new Promise(function (resolve, reject) {
@@ -5636,4 +5622,4 @@ exports.renderToReadableStream = function (children, options) {
5636
5622
  startWork(request);
5637
5623
  });
5638
5624
  };
5639
- exports.version = "19.0.0-rc-100dfd7dab-20240701";
5625
+ exports.version = "19.0.0-rc-3da26163a3-20240704";