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.
@@ -51,7 +51,7 @@ function writeChunk(destination, chunk) {
51
51
  ),
52
52
  (currentView = new Uint8Array(2048)),
53
53
  (writtenBytes = 0)),
54
- writeToDestination(destination, textEncoder.encode(chunk));
54
+ writeToDestination(destination, chunk);
55
55
  else {
56
56
  var target = currentView;
57
57
  0 < writtenBytes && (target = currentView.subarray(writtenBytes));
@@ -3538,7 +3538,6 @@ function RequestInstance(
3538
3538
  abortSet,
3539
3539
  null,
3540
3540
  rootFormatContext,
3541
- emptyContextObject,
3542
3541
  null,
3543
3542
  emptyTreeContext,
3544
3543
  null,
@@ -3587,7 +3586,6 @@ function createRenderTask(
3587
3586
  abortSet,
3588
3587
  keyPath,
3589
3588
  formatContext,
3590
- legacyContext,
3591
3589
  context,
3592
3590
  treeContext,
3593
3591
  componentStack,
@@ -3610,7 +3608,6 @@ function createRenderTask(
3610
3608
  abortSet: abortSet,
3611
3609
  keyPath: keyPath,
3612
3610
  formatContext: formatContext,
3613
- legacyContext: legacyContext,
3614
3611
  context: context,
3615
3612
  treeContext: treeContext,
3616
3613
  componentStack: componentStack,
@@ -3631,7 +3628,6 @@ function createReplayTask(
3631
3628
  abortSet,
3632
3629
  keyPath,
3633
3630
  formatContext,
3634
- legacyContext,
3635
3631
  context,
3636
3632
  treeContext,
3637
3633
  componentStack,
@@ -3655,7 +3651,6 @@ function createReplayTask(
3655
3651
  abortSet: abortSet,
3656
3652
  keyPath: keyPath,
3657
3653
  formatContext: formatContext,
3658
- legacyContext: legacyContext,
3659
3654
  context: context,
3660
3655
  treeContext: treeContext,
3661
3656
  componentStack: componentStack,
@@ -3689,41 +3684,52 @@ function createPendingSegment(
3689
3684
  function createBuiltInComponentStack(task, type) {
3690
3685
  return { tag: 0, parent: task.componentStack, type: type };
3691
3686
  }
3692
- function getThrownInfo(request, node) {
3693
- if (node && null !== request.trackedPostpones) {
3694
- try {
3695
- request = "";
3696
- do {
3697
- switch (node.tag) {
3698
- case 0:
3699
- request += describeBuiltInComponentFrame(node.type);
3700
- break;
3701
- case 1:
3702
- request += describeNativeComponentFrame(node.type, !1);
3703
- break;
3704
- case 2:
3705
- request += describeNativeComponentFrame(node.type, !0);
3687
+ function getThrownInfo(node$jscomp$0) {
3688
+ var errorInfo = {};
3689
+ node$jscomp$0 &&
3690
+ Object.defineProperty(errorInfo, "componentStack", {
3691
+ configurable: !0,
3692
+ enumerable: !0,
3693
+ get: function () {
3694
+ try {
3695
+ var info = "",
3696
+ node = node$jscomp$0;
3697
+ do {
3698
+ switch (node.tag) {
3699
+ case 0:
3700
+ info += describeBuiltInComponentFrame(node.type);
3701
+ break;
3702
+ case 1:
3703
+ info += describeNativeComponentFrame(node.type, !1);
3704
+ break;
3705
+ case 2:
3706
+ info += describeNativeComponentFrame(node.type, !0);
3707
+ }
3708
+ node = node.parent;
3709
+ } while (node);
3710
+ var JSCompiler_inline_result = info;
3711
+ } catch (x) {
3712
+ JSCompiler_inline_result =
3713
+ "\nError generating stack: " + x.message + "\n" + x.stack;
3706
3714
  }
3707
- node = node.parent;
3708
- } while (node);
3709
- var JSCompiler_temp = request;
3710
- } catch (x) {
3711
- JSCompiler_temp =
3712
- "\nError generating stack: " + x.message + "\n" + x.stack;
3713
- }
3714
- JSCompiler_temp = { componentStack: JSCompiler_temp };
3715
- } else JSCompiler_temp = {};
3716
- return JSCompiler_temp;
3715
+ Object.defineProperty(errorInfo, "componentStack", {
3716
+ value: JSCompiler_inline_result
3717
+ });
3718
+ return JSCompiler_inline_result;
3719
+ }
3720
+ });
3721
+ return errorInfo;
3717
3722
  }
3718
3723
  function logRecoverableError(request, error, errorInfo) {
3719
- request = request.onError(error, errorInfo);
3720
- if (null == request || "string" === typeof request) return request;
3724
+ request = request.onError;
3725
+ error = request(error, errorInfo);
3726
+ if (null == error || "string" === typeof error) return error;
3721
3727
  }
3722
3728
  function fatalError(request, error) {
3723
- var onShellError = request.onShellError;
3724
- onShellError(error);
3725
- onShellError = request.onFatalError;
3729
+ var onShellError = request.onShellError,
3730
+ onFatalError = request.onFatalError;
3726
3731
  onShellError(error);
3732
+ onFatalError(error);
3727
3733
  null !== request.destination
3728
3734
  ? ((request.status = 2), request.destination.destroy(error))
3729
3735
  : ((request.status = 1), (request.fatalError = error));
@@ -4078,10 +4084,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
4078
4084
  } catch (error$28) {
4079
4085
  (contentRootSegment.status = 4),
4080
4086
  (contextType.status = 4),
4081
- (JSCompiler_inline_result = getThrownInfo(
4082
- request,
4083
- task.componentStack
4084
- )),
4087
+ (JSCompiler_inline_result = getThrownInfo(task.componentStack)),
4085
4088
  (defaultProps = logRecoverableError(
4086
4089
  request,
4087
4090
  error$28,
@@ -4128,7 +4131,6 @@ function renderElement(request, task, keyPath, type, props, ref) {
4128
4131
  props,
4129
4132
  JSCompiler_inline_result,
4130
4133
  task.formatContext,
4131
- task.legacyContext,
4132
4134
  task.context,
4133
4135
  task.treeContext,
4134
4136
  type,
@@ -4331,7 +4333,7 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4331
4333
  x)
4332
4334
  );
4333
4335
  task.replay.pendingTasks--;
4334
- props = getThrownInfo(request, task.componentStack);
4336
+ props = getThrownInfo(task.componentStack);
4335
4337
  key = request;
4336
4338
  request = task.blockedBoundary;
4337
4339
  type = x;
@@ -4403,10 +4405,7 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4403
4405
  }
4404
4406
  } catch (error$29) {
4405
4407
  (resumedBoundary.status = 4),
4406
- (childNodes = getThrownInfo(
4407
- request,
4408
- task.componentStack
4409
- )),
4408
+ (childNodes = getThrownInfo(task.componentStack)),
4410
4409
  (replay = logRecoverableError(
4411
4410
  request,
4412
4411
  error$29,
@@ -4435,7 +4434,6 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4435
4434
  fallbackAbortSet,
4436
4435
  [key[0], "Suspense Fallback", key[2]],
4437
4436
  task.formatContext,
4438
- task.legacyContext,
4439
4437
  task.context,
4440
4438
  task.treeContext,
4441
4439
  suspenseComponentStack,
@@ -4567,7 +4565,7 @@ function renderChildrenArray(request, task, children, childIndex) {
4567
4565
  )
4568
4566
  throw x;
4569
4567
  task.replay.pendingTasks--;
4570
- children = getThrownInfo(request, task.componentStack);
4568
+ children = getThrownInfo(task.componentStack);
4571
4569
  var boundary = task.blockedBoundary,
4572
4570
  error = x;
4573
4571
  children = logRecoverableError(request, error, children);
@@ -4624,7 +4622,6 @@ function untrackBoundary(request, boundary) {
4624
4622
  }
4625
4623
  function renderNode(request, task, node, childIndex) {
4626
4624
  var previousFormatContext = task.formatContext,
4627
- previousLegacyContext = task.legacyContext,
4628
4625
  previousContext = task.context,
4629
4626
  previousKeyPath = task.keyPath,
4630
4627
  previousTreeContext = task.treeContext,
@@ -4656,7 +4653,6 @@ function renderNode(request, task, node, childIndex) {
4656
4653
  task.abortSet,
4657
4654
  task.keyPath,
4658
4655
  task.formatContext,
4659
- task.legacyContext,
4660
4656
  task.context,
4661
4657
  task.treeContext,
4662
4658
  null !== task.componentStack ? task.componentStack.parent : null,
@@ -4664,7 +4660,6 @@ function renderNode(request, task, node, childIndex) {
4664
4660
  ).ping;
4665
4661
  node.then(request, request);
4666
4662
  task.formatContext = previousFormatContext;
4667
- task.legacyContext = previousLegacyContext;
4668
4663
  task.context = previousContext;
4669
4664
  task.keyPath = previousKeyPath;
4670
4665
  task.treeContext = previousTreeContext;
@@ -4714,7 +4709,6 @@ function renderNode(request, task, node, childIndex) {
4714
4709
  task.abortSet,
4715
4710
  task.keyPath,
4716
4711
  task.formatContext,
4717
- task.legacyContext,
4718
4712
  task.context,
4719
4713
  task.treeContext,
4720
4714
  null !== task.componentStack ? task.componentStack.parent : null,
@@ -4722,7 +4716,6 @@ function renderNode(request, task, node, childIndex) {
4722
4716
  ).ping;
4723
4717
  node.then(request, request);
4724
4718
  task.formatContext = previousFormatContext;
4725
- task.legacyContext = previousLegacyContext;
4726
4719
  task.context = previousContext;
4727
4720
  task.keyPath = previousKeyPath;
4728
4721
  task.treeContext = previousTreeContext;
@@ -4733,7 +4726,6 @@ function renderNode(request, task, node, childIndex) {
4733
4726
  }
4734
4727
  }
4735
4728
  task.formatContext = previousFormatContext;
4736
- task.legacyContext = previousLegacyContext;
4737
4729
  task.context = previousContext;
4738
4730
  task.keyPath = previousKeyPath;
4739
4731
  task.treeContext = previousTreeContext;
@@ -4822,7 +4814,7 @@ function abortTask(task, request, error) {
4822
4814
  boundary.pendingTasks--,
4823
4815
  4 !== boundary.status &&
4824
4816
  ((boundary.status = 4),
4825
- (task = getThrownInfo(request, task.componentStack)),
4817
+ (task = getThrownInfo(task.componentStack)),
4826
4818
  (task = logRecoverableError(request, error, task)),
4827
4819
  (boundary.errorDigest = task),
4828
4820
  untrackBoundary(request, boundary),
@@ -5019,10 +5011,7 @@ function performWork(request$jscomp$2) {
5019
5011
  } else {
5020
5012
  task.replay.pendingTasks--;
5021
5013
  task.abortSet.delete(task);
5022
- var errorInfo = getThrownInfo(
5023
- request$jscomp$0,
5024
- task.componentStack
5025
- );
5014
+ var errorInfo = getThrownInfo(task.componentStack);
5026
5015
  request = void 0;
5027
5016
  var request$jscomp$1 = request$jscomp$0,
5028
5017
  boundary = task.blockedBoundary,
@@ -5087,10 +5076,7 @@ function performWork(request$jscomp$2) {
5087
5076
  null !== task.componentStack &&
5088
5077
  (task.componentStack = task.componentStack.parent);
5089
5078
  } else {
5090
- var errorInfo$jscomp$0 = getThrownInfo(
5091
- request,
5092
- task.componentStack
5093
- );
5079
+ var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
5094
5080
  task.abortSet.delete(task);
5095
5081
  request$jscomp$1.status = 4;
5096
5082
  var boundary$jscomp$0 = task.blockedBoundary;
@@ -5599,15 +5585,15 @@ function abort(request, reason) {
5599
5585
  logRecoverableError(request, error$52, {}), fatalError(request, error$52);
5600
5586
  }
5601
5587
  }
5602
- var isomorphicReactPackageVersion$jscomp$inline_788 = React.version;
5588
+ var isomorphicReactPackageVersion$jscomp$inline_789 = React.version;
5603
5589
  if (
5604
- "19.0.0-rc-100dfd7dab-20240701" !==
5605
- isomorphicReactPackageVersion$jscomp$inline_788
5590
+ "19.0.0-rc-3da26163a3-20240704" !==
5591
+ isomorphicReactPackageVersion$jscomp$inline_789
5606
5592
  )
5607
5593
  throw Error(
5608
5594
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
5609
- (isomorphicReactPackageVersion$jscomp$inline_788 +
5610
- "\n - react-dom: 19.0.0-rc-100dfd7dab-20240701\nLearn more: https://react.dev/warnings/version-mismatch")
5595
+ (isomorphicReactPackageVersion$jscomp$inline_789 +
5596
+ "\n - react-dom: 19.0.0-rc-3da26163a3-20240704\nLearn more: https://react.dev/warnings/version-mismatch")
5611
5597
  );
5612
5598
  function createDrainHandler(destination, request) {
5613
5599
  return function () {
@@ -5882,4 +5868,4 @@ exports.renderToPipeableStream = function (children, options) {
5882
5868
  }
5883
5869
  };
5884
5870
  };
5885
- exports.version = "19.0.0-rc-100dfd7dab-20240701";
5871
+ exports.version = "19.0.0-rc-3da26163a3-20240704";
@@ -433,7 +433,7 @@
433
433
  exports.useFormStatus = function () {
434
434
  return resolveDispatcher().useHostTransitionStatus();
435
435
  };
436
- exports.version = "19.0.0-rc-100dfd7dab-20240701";
436
+ exports.version = "19.0.0-rc-3da26163a3-20240704";
437
437
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
438
438
  "function" ===
439
439
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -207,4 +207,4 @@ exports.useFormState = function (action, initialState, permalink) {
207
207
  exports.useFormStatus = function () {
208
208
  return ReactSharedInternals.H.useHostTransitionStatus();
209
209
  };
210
- exports.version = "19.0.0-rc-100dfd7dab-20240701";
210
+ exports.version = "19.0.0-rc-3da26163a3-20240704";
@@ -355,5 +355,5 @@
355
355
  }))
356
356
  : Internals.d.m(href));
357
357
  };
358
- exports.version = "19.0.0-rc-100dfd7dab-20240701";
358
+ exports.version = "19.0.0-rc-3da26163a3-20240704";
359
359
  })();
@@ -149,4 +149,4 @@ exports.preloadModule = function (href, options) {
149
149
  });
150
150
  } else Internals.d.m(href);
151
151
  };
152
- exports.version = "19.0.0-rc-100dfd7dab-20240701";
152
+ exports.version = "19.0.0-rc-3da26163a3-20240704";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-dom",
3
- "version": "19.0.0-rc-100dfd7dab-20240701",
3
+ "version": "19.0.0-rc-3da26163a3-20240704",
4
4
  "description": "React package for working with the DOM.",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -17,10 +17,10 @@
17
17
  },
18
18
  "homepage": "https://react.dev/",
19
19
  "dependencies": {
20
- "scheduler": "0.25.0-rc-100dfd7dab-20240701"
20
+ "scheduler": "0.25.0-rc-3da26163a3-20240704"
21
21
  },
22
22
  "peerDependencies": {
23
- "react": "19.0.0-rc-100dfd7dab-20240701"
23
+ "react": "19.0.0-rc-3da26163a3-20240704"
24
24
  },
25
25
  "files": [
26
26
  "LICENSE",