react-dom 19.3.0-canary-67f7d47a-20251103 → 19.3.0-canary-dd048c3b-20251105

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.
@@ -4190,7 +4190,6 @@ function RequestInstance(
4190
4190
  onShellReady,
4191
4191
  onShellError,
4192
4192
  onFatalError,
4193
- onPostpone,
4194
4193
  formState
4195
4194
  ) {
4196
4195
  var abortSet = new Set();
@@ -4213,7 +4212,6 @@ function RequestInstance(
4213
4212
  this.partialBoundaries = [];
4214
4213
  this.trackedPostpones = null;
4215
4214
  this.onError = void 0 === onError ? defaultErrorHandler : onError;
4216
- this.onPostpone = void 0 === onPostpone ? noop : onPostpone;
4217
4215
  this.onAllReady = void 0 === onAllReady ? noop : onAllReady;
4218
4216
  this.onShellReady = void 0 === onShellReady ? noop : onShellReady;
4219
4217
  this.onShellError = void 0 === onShellError ? noop : onShellError;
@@ -4231,7 +4229,6 @@ function createRequest(
4231
4229
  onShellReady,
4232
4230
  onShellError,
4233
4231
  onFatalError,
4234
- onPostpone,
4235
4232
  formState
4236
4233
  ) {
4237
4234
  resumableState = new RequestInstance(
@@ -4244,7 +4241,6 @@ function createRequest(
4244
4241
  onShellReady,
4245
4242
  onShellError,
4246
4243
  onFatalError,
4247
- onPostpone,
4248
4244
  formState
4249
4245
  );
4250
4246
  renderState = createPendingSegment(
@@ -4287,8 +4283,7 @@ function createPrerenderRequest(
4287
4283
  onAllReady,
4288
4284
  onShellReady,
4289
4285
  onShellError,
4290
- onFatalError,
4291
- onPostpone
4286
+ onFatalError
4292
4287
  ) {
4293
4288
  children = createRequest(
4294
4289
  children,
@@ -4301,7 +4296,6 @@ function createPrerenderRequest(
4301
4296
  onShellReady,
4302
4297
  onShellError,
4303
4298
  onFatalError,
4304
- onPostpone,
4305
4299
  void 0
4306
4300
  );
4307
4301
  children.trackedPostpones = {
@@ -4319,8 +4313,7 @@ function resumeRequest(
4319
4313
  onAllReady,
4320
4314
  onShellReady,
4321
4315
  onShellError,
4322
- onFatalError,
4323
- onPostpone
4316
+ onFatalError
4324
4317
  ) {
4325
4318
  renderState = new RequestInstance(
4326
4319
  postponedState.resumableState,
@@ -4332,7 +4325,6 @@ function resumeRequest(
4332
4325
  onShellReady,
4333
4326
  onShellError,
4334
4327
  onFatalError,
4335
- onPostpone,
4336
4328
  null
4337
4329
  );
4338
4330
  renderState.nextSegmentId = postponedState.nextSegmentId;
@@ -4400,8 +4392,7 @@ function resumeAndPrerenderRequest(
4400
4392
  onAllReady,
4401
4393
  onShellReady,
4402
4394
  onShellError,
4403
- onFatalError,
4404
- onPostpone
4395
+ onFatalError
4405
4396
  ) {
4406
4397
  children = resumeRequest(
4407
4398
  children,
@@ -4411,8 +4402,7 @@ function resumeAndPrerenderRequest(
4411
4402
  onAllReady,
4412
4403
  onShellReady,
4413
4404
  onShellError,
4414
- onFatalError,
4415
- onPostpone
4405
+ onFatalError
4416
4406
  );
4417
4407
  children.trackedPostpones = {
4418
4408
  workingMap: new Map(),
@@ -5447,8 +5437,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
5447
5437
  contentRootSegment.status = 3;
5448
5438
  var error = request.fatalError;
5449
5439
  } else (contentRootSegment.status = 4), (error = thrownValue$31);
5450
- var thrownInfo = getThrownInfo(task.componentStack);
5451
- var errorDigest = logRecoverableError(request, error, thrownInfo);
5440
+ var thrownInfo = getThrownInfo(task.componentStack),
5441
+ errorDigest = logRecoverableError(request, error, thrownInfo);
5452
5442
  newBoundary.errorDigest = errorDigest;
5453
5443
  untrackBoundary(request, newBoundary);
5454
5444
  } finally {
@@ -5637,12 +5627,12 @@ function retryNode(request, task) {
5637
5627
  name +
5638
5628
  ">. The tree doesn't match so React will fallback to client rendering."
5639
5629
  );
5640
- var childNodes = node$jscomp$0[2];
5641
- name = node$jscomp$0[3];
5642
- keyOrIndex = task.node;
5630
+ var childNodes = node$jscomp$0[2],
5631
+ childSlots = node$jscomp$0[3];
5632
+ name = task.node;
5643
5633
  task.replay = {
5644
5634
  nodes: childNodes,
5645
- slots: name,
5635
+ slots: childSlots,
5646
5636
  pendingTasks: 1
5647
5637
  };
5648
5638
  try {
@@ -5663,7 +5653,7 @@ function retryNode(request, task) {
5663
5653
  "function" === typeof x.then)
5664
5654
  )
5665
5655
  throw (
5666
- (task.node === keyOrIndex
5656
+ (task.node === name
5667
5657
  ? (task.replay = replay)
5668
5658
  : childIndex.splice(node, 1),
5669
5659
  x)
@@ -5678,7 +5668,7 @@ function retryNode(request, task) {
5678
5668
  key,
5679
5669
  request,
5680
5670
  childNodes,
5681
- name,
5671
+ childSlots,
5682
5672
  type,
5683
5673
  props
5684
5674
  );
@@ -5692,16 +5682,15 @@ function retryNode(request, task) {
5692
5682
  ">. The tree doesn't match so React will fallback to client rendering."
5693
5683
  );
5694
5684
  b: {
5695
- replay = void 0;
5696
- type = node$jscomp$0[5];
5697
- ref = node$jscomp$0[2];
5698
- name = node$jscomp$0[3];
5699
- keyOrIndex =
5685
+ replay = node$jscomp$0[5];
5686
+ type = node$jscomp$0[2];
5687
+ ref = node$jscomp$0[3];
5688
+ name =
5700
5689
  null === node$jscomp$0[4] ? [] : node$jscomp$0[4][2];
5701
5690
  node$jscomp$0 =
5702
5691
  null === node$jscomp$0[4] ? null : node$jscomp$0[4][3];
5703
- var prevKeyPath = task.keyPath,
5704
- prevContext = task.formatContext,
5692
+ keyOrIndex = task.keyPath;
5693
+ var prevContext = task.formatContext,
5705
5694
  prevRow = task.row,
5706
5695
  previousReplaySet = task.replay,
5707
5696
  parentBoundary = task.blockedBoundary,
@@ -5726,7 +5715,7 @@ function retryNode(request, task) {
5726
5715
  null
5727
5716
  );
5728
5717
  props.parentFlushed = !0;
5729
- props.rootSegmentID = type;
5718
+ props.rootSegmentID = replay;
5730
5719
  task.blockedBoundary = props;
5731
5720
  task.hoistableState = props.contentState;
5732
5721
  task.keyPath = key;
@@ -5736,8 +5725,8 @@ function retryNode(request, task) {
5736
5725
  );
5737
5726
  task.row = null;
5738
5727
  task.replay = {
5739
- nodes: ref,
5740
- slots: name,
5728
+ nodes: type,
5729
+ slots: ref,
5741
5730
  pendingTasks: 1
5742
5731
  };
5743
5732
  try {
@@ -5758,30 +5747,26 @@ function retryNode(request, task) {
5758
5747
  } catch (error) {
5759
5748
  (props.status = 4),
5760
5749
  (childNodes = getThrownInfo(task.componentStack)),
5761
- (replay = logRecoverableError(
5750
+ (childSlots = logRecoverableError(
5762
5751
  request,
5763
5752
  error,
5764
5753
  childNodes
5765
5754
  )),
5766
- (props.errorDigest = replay),
5755
+ (props.errorDigest = childSlots),
5767
5756
  task.replay.pendingTasks--,
5768
5757
  request.clientRenderedBoundaries.push(props);
5769
5758
  } finally {
5770
5759
  (task.blockedBoundary = parentBoundary),
5771
5760
  (task.hoistableState = parentHoistableState),
5772
5761
  (task.replay = previousReplaySet),
5773
- (task.keyPath = prevKeyPath),
5762
+ (task.keyPath = keyOrIndex),
5774
5763
  (task.formatContext = prevContext),
5775
5764
  (task.row = prevRow);
5776
5765
  }
5777
5766
  childNodes = createReplayTask(
5778
5767
  request,
5779
5768
  null,
5780
- {
5781
- nodes: keyOrIndex,
5782
- slots: node$jscomp$0,
5783
- pendingTasks: 0
5784
- },
5769
+ { nodes: name, slots: node$jscomp$0, pendingTasks: 0 },
5785
5770
  fallback,
5786
5771
  -1,
5787
5772
  parentBoundary,
@@ -5829,10 +5814,10 @@ function retryNode(request, task) {
5829
5814
  if ((childNodes = childNodes.call(node))) {
5830
5815
  node = childNodes.next();
5831
5816
  if (!node.done) {
5832
- props = [];
5833
- do props.push(node.value), (node = childNodes.next());
5817
+ childSlots = [];
5818
+ do childSlots.push(node.value), (node = childNodes.next());
5834
5819
  while (!node.done);
5835
- renderChildrenArray(request, task, props, childIndex);
5820
+ renderChildrenArray(request, task, childSlots, childIndex);
5836
5821
  }
5837
5822
  return;
5838
5823
  }
@@ -6539,38 +6524,37 @@ function finishedTask(request, boundary, row, segment) {
6539
6524
  tryToResolveTogetherRow(request, boundary);
6540
6525
  0 === request.allPendingTasks && completeAll(request);
6541
6526
  }
6542
- function performWork(request$jscomp$2) {
6543
- if (14 !== request$jscomp$2.status && 13 !== request$jscomp$2.status) {
6527
+ function performWork(request$jscomp$1) {
6528
+ if (14 !== request$jscomp$1.status && 13 !== request$jscomp$1.status) {
6544
6529
  var prevContext = currentActiveSnapshot,
6545
6530
  prevDispatcher = ReactSharedInternals.H;
6546
6531
  ReactSharedInternals.H = HooksDispatcher;
6547
6532
  var prevAsyncDispatcher = ReactSharedInternals.A;
6548
6533
  ReactSharedInternals.A = DefaultAsyncDispatcher;
6549
6534
  var prevRequest = currentRequest;
6550
- currentRequest = request$jscomp$2;
6535
+ currentRequest = request$jscomp$1;
6551
6536
  var prevResumableState = currentResumableState;
6552
- currentResumableState = request$jscomp$2.resumableState;
6537
+ currentResumableState = request$jscomp$1.resumableState;
6553
6538
  try {
6554
- var pingedTasks = request$jscomp$2.pingedTasks,
6539
+ var pingedTasks = request$jscomp$1.pingedTasks,
6555
6540
  i;
6556
6541
  for (i = 0; i < pingedTasks.length; i++) {
6557
6542
  var task = pingedTasks[i],
6558
- request = request$jscomp$2,
6543
+ request = request$jscomp$1,
6559
6544
  segment = task.blockedSegment;
6560
6545
  if (null === segment) {
6561
- var request$jscomp$0 = request;
6562
6546
  if (0 !== task.replay.pendingTasks) {
6563
6547
  switchContext(task.context);
6564
6548
  try {
6565
6549
  "number" === typeof task.replay.slots
6566
6550
  ? resumeNode(
6567
- request$jscomp$0,
6551
+ request,
6568
6552
  task,
6569
6553
  task.replay.slots,
6570
6554
  task.node,
6571
6555
  task.childIndex
6572
6556
  )
6573
- : retryNode(request$jscomp$0, task);
6557
+ : retryNode(request, task);
6574
6558
  if (
6575
6559
  1 === task.replay.pendingTasks &&
6576
6560
  0 < task.replay.nodes.length
@@ -6580,12 +6564,7 @@ function performWork(request$jscomp$2) {
6580
6564
  );
6581
6565
  task.replay.pendingTasks--;
6582
6566
  task.abortSet.delete(task);
6583
- finishedTask(
6584
- request$jscomp$0,
6585
- task.blockedBoundary,
6586
- task.row,
6587
- null
6588
- );
6567
+ finishedTask(request, task.blockedBoundary, task.row, null);
6589
6568
  } catch (thrownValue) {
6590
6569
  resetHooksState();
6591
6570
  var x =
@@ -6606,66 +6585,59 @@ function performWork(request$jscomp$2) {
6606
6585
  } else {
6607
6586
  task.replay.pendingTasks--;
6608
6587
  task.abortSet.delete(task);
6609
- var errorInfo = getThrownInfo(task.componentStack);
6610
- request = void 0;
6611
- var request$jscomp$1 = request$jscomp$0,
6588
+ var errorInfo = getThrownInfo(task.componentStack),
6589
+ request$jscomp$0 = request,
6612
6590
  boundary = task.blockedBoundary,
6613
6591
  error$jscomp$0 =
6614
- 12 === request$jscomp$0.status
6615
- ? request$jscomp$0.fatalError
6616
- : x,
6592
+ 12 === request.status ? request.fatalError : x,
6617
6593
  replayNodes = task.replay.nodes,
6618
- resumeSlots = task.replay.slots;
6619
- request = logRecoverableError(
6620
- request$jscomp$1,
6621
- error$jscomp$0,
6622
- errorInfo
6623
- );
6594
+ resumeSlots = task.replay.slots,
6595
+ errorDigest = logRecoverableError(
6596
+ request$jscomp$0,
6597
+ error$jscomp$0,
6598
+ errorInfo
6599
+ );
6624
6600
  abortRemainingReplayNodes(
6625
- request$jscomp$1,
6601
+ request$jscomp$0,
6626
6602
  boundary,
6627
6603
  replayNodes,
6628
6604
  resumeSlots,
6629
6605
  error$jscomp$0,
6630
- request
6606
+ errorDigest
6631
6607
  );
6632
- request$jscomp$0.pendingRootTasks--;
6633
- 0 === request$jscomp$0.pendingRootTasks &&
6634
- completeShell(request$jscomp$0);
6635
- request$jscomp$0.allPendingTasks--;
6636
- 0 === request$jscomp$0.allPendingTasks &&
6637
- completeAll(request$jscomp$0);
6608
+ request.pendingRootTasks--;
6609
+ 0 === request.pendingRootTasks && completeShell(request);
6610
+ request.allPendingTasks--;
6611
+ 0 === request.allPendingTasks && completeAll(request);
6638
6612
  }
6639
6613
  } finally {
6640
6614
  }
6641
6615
  }
6642
6616
  } else if (
6643
- ((request$jscomp$0 = void 0),
6644
- (request$jscomp$1 = segment),
6645
- 0 === request$jscomp$1.status)
6617
+ ((request$jscomp$0 = segment), 0 === request$jscomp$0.status)
6646
6618
  ) {
6647
- request$jscomp$1.status = 6;
6619
+ request$jscomp$0.status = 6;
6648
6620
  switchContext(task.context);
6649
- var childrenLength = request$jscomp$1.children.length,
6650
- chunkLength = request$jscomp$1.chunks.length;
6621
+ var childrenLength = request$jscomp$0.children.length,
6622
+ chunkLength = request$jscomp$0.chunks.length;
6651
6623
  try {
6652
6624
  retryNode(request, task),
6653
- request$jscomp$1.lastPushedText &&
6654
- request$jscomp$1.textEmbedded &&
6655
- request$jscomp$1.chunks.push(textSeparator),
6625
+ request$jscomp$0.lastPushedText &&
6626
+ request$jscomp$0.textEmbedded &&
6627
+ request$jscomp$0.chunks.push(textSeparator),
6656
6628
  task.abortSet.delete(task),
6657
- (request$jscomp$1.status = 1),
6658
- finishedSegment(request, task.blockedBoundary, request$jscomp$1),
6629
+ (request$jscomp$0.status = 1),
6630
+ finishedSegment(request, task.blockedBoundary, request$jscomp$0),
6659
6631
  finishedTask(
6660
6632
  request,
6661
6633
  task.blockedBoundary,
6662
6634
  task.row,
6663
- request$jscomp$1
6635
+ request$jscomp$0
6664
6636
  );
6665
6637
  } catch (thrownValue) {
6666
6638
  resetHooksState();
6667
- request$jscomp$1.children.length = childrenLength;
6668
- request$jscomp$1.chunks.length = chunkLength;
6639
+ request$jscomp$0.children.length = childrenLength;
6640
+ request$jscomp$0.chunks.length = chunkLength;
6669
6641
  var x$jscomp$0 =
6670
6642
  thrownValue === SuspenseException
6671
6643
  ? getSuspendedThenable()
@@ -6677,19 +6649,19 @@ function performWork(request$jscomp$2) {
6677
6649
  thrownInfo = getThrownInfo(task.componentStack);
6678
6650
  task.abortSet.delete(task);
6679
6651
  logRecoverableError(request, x$jscomp$0, thrownInfo);
6680
- trackPostpone(request, trackedPostpones, task, request$jscomp$1);
6652
+ trackPostpone(request, trackedPostpones, task, request$jscomp$0);
6681
6653
  finishedTask(
6682
6654
  request,
6683
6655
  task.blockedBoundary,
6684
6656
  task.row,
6685
- request$jscomp$1
6657
+ request$jscomp$0
6686
6658
  );
6687
6659
  } else if (
6688
6660
  "object" === typeof x$jscomp$0 &&
6689
6661
  null !== x$jscomp$0 &&
6690
6662
  "function" === typeof x$jscomp$0.then
6691
6663
  ) {
6692
- request$jscomp$1.status = 0;
6664
+ request$jscomp$0.status = 0;
6693
6665
  task.thenableState =
6694
6666
  thrownValue === SuspenseException
6695
6667
  ? getThenableStateAfterSuspending()
@@ -6699,14 +6671,14 @@ function performWork(request$jscomp$2) {
6699
6671
  } else {
6700
6672
  var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
6701
6673
  task.abortSet.delete(task);
6702
- request$jscomp$1.status = 4;
6674
+ request$jscomp$0.status = 4;
6703
6675
  var boundary$jscomp$0 = task.blockedBoundary,
6704
6676
  row = task.row;
6705
6677
  null !== row &&
6706
6678
  0 === --row.pendingTasks &&
6707
6679
  finishSuspenseListRow(request, row);
6708
6680
  request.allPendingTasks--;
6709
- request$jscomp$0 = logRecoverableError(
6681
+ var errorDigest$jscomp$0 = logRecoverableError(
6710
6682
  request,
6711
6683
  x$jscomp$0,
6712
6684
  errorInfo$jscomp$0
@@ -6717,7 +6689,7 @@ function performWork(request$jscomp$2) {
6717
6689
  4 !== boundary$jscomp$0.status)
6718
6690
  ) {
6719
6691
  boundary$jscomp$0.status = 4;
6720
- boundary$jscomp$0.errorDigest = request$jscomp$0;
6692
+ boundary$jscomp$0.errorDigest = errorDigest$jscomp$0;
6721
6693
  untrackBoundary(request, boundary$jscomp$0);
6722
6694
  var boundaryRow = boundary$jscomp$0.row;
6723
6695
  null !== boundaryRow &&
@@ -6737,11 +6709,11 @@ function performWork(request$jscomp$2) {
6737
6709
  }
6738
6710
  }
6739
6711
  pingedTasks.splice(0, i);
6740
- null !== request$jscomp$2.destination &&
6741
- flushCompletedQueues(request$jscomp$2, request$jscomp$2.destination);
6712
+ null !== request$jscomp$1.destination &&
6713
+ flushCompletedQueues(request$jscomp$1, request$jscomp$1.destination);
6742
6714
  } catch (error) {
6743
- logRecoverableError(request$jscomp$2, error, {}),
6744
- fatalError(request$jscomp$2, error);
6715
+ logRecoverableError(request$jscomp$1, error, {}),
6716
+ fatalError(request$jscomp$1, error);
6745
6717
  } finally {
6746
6718
  (currentResumableState = prevResumableState),
6747
6719
  (ReactSharedInternals.H = prevDispatcher),
@@ -7475,11 +7447,11 @@ function getPostponedState(request) {
7475
7447
  }
7476
7448
  function ensureCorrectIsomorphicReactVersion() {
7477
7449
  var isomorphicReactPackageVersion = React.version;
7478
- if ("19.3.0-canary-67f7d47a-20251103" !== isomorphicReactPackageVersion)
7450
+ if ("19.3.0-canary-dd048c3b-20251105" !== isomorphicReactPackageVersion)
7479
7451
  throw Error(
7480
7452
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
7481
7453
  (isomorphicReactPackageVersion +
7482
- "\n - react-dom: 19.3.0-canary-67f7d47a-20251103\nLearn more: https://react.dev/warnings/version-mismatch")
7454
+ "\n - react-dom: 19.3.0-canary-dd048c3b-20251105\nLearn more: https://react.dev/warnings/version-mismatch")
7483
7455
  );
7484
7456
  }
7485
7457
  ensureCorrectIsomorphicReactVersion();
@@ -7532,8 +7504,7 @@ exports.prerender = function (children, options) {
7532
7504
  },
7533
7505
  void 0,
7534
7506
  void 0,
7535
- reject,
7536
- options ? options.onPostpone : void 0
7507
+ reject
7537
7508
  );
7538
7509
  if (options && options.signal) {
7539
7510
  var signal = options.signal;
@@ -7607,7 +7578,6 @@ exports.renderToReadableStream = function (children, options) {
7607
7578
  reject(error);
7608
7579
  },
7609
7580
  onFatalError,
7610
- options ? options.onPostpone : void 0,
7611
7581
  options ? options.formState : void 0
7612
7582
  );
7613
7583
  if (options && options.signal) {
@@ -7666,8 +7636,7 @@ exports.resume = function (children, postponedState, options) {
7666
7636
  allReady.catch(function () {});
7667
7637
  reject(error);
7668
7638
  },
7669
- onFatalError,
7670
- options ? options.onPostpone : void 0
7639
+ onFatalError
7671
7640
  );
7672
7641
  if (options && options.signal) {
7673
7642
  var signal = options.signal;
@@ -7716,8 +7685,7 @@ exports.resumeAndPrerender = function (children, postponedState, options) {
7716
7685
  },
7717
7686
  void 0,
7718
7687
  void 0,
7719
- reject,
7720
- options ? options.onPostpone : void 0
7688
+ reject
7721
7689
  );
7722
7690
  if (options && options.signal) {
7723
7691
  var signal = options.signal;
@@ -7733,4 +7701,4 @@ exports.resumeAndPrerender = function (children, postponedState, options) {
7733
7701
  startWork(request);
7734
7702
  });
7735
7703
  };
7736
- exports.version = "19.3.0-canary-67f7d47a-20251103";
7704
+ exports.version = "19.3.0-canary-dd048c3b-20251105";