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.
@@ -4144,7 +4144,6 @@ function RequestInstance(
4144
4144
  onShellReady,
4145
4145
  onShellError,
4146
4146
  onFatalError,
4147
- onPostpone,
4148
4147
  formState
4149
4148
  ) {
4150
4149
  var abortSet = new Set();
@@ -4167,7 +4166,6 @@ function RequestInstance(
4167
4166
  this.partialBoundaries = [];
4168
4167
  this.trackedPostpones = null;
4169
4168
  this.onError = void 0 === onError ? defaultErrorHandler : onError;
4170
- this.onPostpone = void 0 === onPostpone ? noop : onPostpone;
4171
4169
  this.onAllReady = void 0 === onAllReady ? noop : onAllReady;
4172
4170
  this.onShellReady = void 0 === onShellReady ? noop : onShellReady;
4173
4171
  this.onShellError = void 0 === onShellError ? noop : onShellError;
@@ -4185,7 +4183,6 @@ function createRequest(
4185
4183
  onShellReady,
4186
4184
  onShellError,
4187
4185
  onFatalError,
4188
- onPostpone,
4189
4186
  formState
4190
4187
  ) {
4191
4188
  resumableState = new RequestInstance(
@@ -4198,7 +4195,6 @@ function createRequest(
4198
4195
  onShellReady,
4199
4196
  onShellError,
4200
4197
  onFatalError,
4201
- onPostpone,
4202
4198
  formState
4203
4199
  );
4204
4200
  renderState = createPendingSegment(
@@ -4241,8 +4237,7 @@ function createPrerenderRequest(
4241
4237
  onAllReady,
4242
4238
  onShellReady,
4243
4239
  onShellError,
4244
- onFatalError,
4245
- onPostpone
4240
+ onFatalError
4246
4241
  ) {
4247
4242
  children = createRequest(
4248
4243
  children,
@@ -4255,7 +4250,6 @@ function createPrerenderRequest(
4255
4250
  onShellReady,
4256
4251
  onShellError,
4257
4252
  onFatalError,
4258
- onPostpone,
4259
4253
  void 0
4260
4254
  );
4261
4255
  children.trackedPostpones = {
@@ -4273,8 +4267,7 @@ function resumeRequest(
4273
4267
  onAllReady,
4274
4268
  onShellReady,
4275
4269
  onShellError,
4276
- onFatalError,
4277
- onPostpone
4270
+ onFatalError
4278
4271
  ) {
4279
4272
  renderState = new RequestInstance(
4280
4273
  postponedState.resumableState,
@@ -4286,7 +4279,6 @@ function resumeRequest(
4286
4279
  onShellReady,
4287
4280
  onShellError,
4288
4281
  onFatalError,
4289
- onPostpone,
4290
4282
  null
4291
4283
  );
4292
4284
  renderState.nextSegmentId = postponedState.nextSegmentId;
@@ -4354,8 +4346,7 @@ function resumeAndPrerenderRequest(
4354
4346
  onAllReady,
4355
4347
  onShellReady,
4356
4348
  onShellError,
4357
- onFatalError,
4358
- onPostpone
4349
+ onFatalError
4359
4350
  ) {
4360
4351
  children = resumeRequest(
4361
4352
  children,
@@ -4365,8 +4356,7 @@ function resumeAndPrerenderRequest(
4365
4356
  onAllReady,
4366
4357
  onShellReady,
4367
4358
  onShellError,
4368
- onFatalError,
4369
- onPostpone
4359
+ onFatalError
4370
4360
  );
4371
4361
  children.trackedPostpones = {
4372
4362
  workingMap: new Map(),
@@ -5393,8 +5383,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
5393
5383
  contentRootSegment.status = 3;
5394
5384
  var error = request.fatalError;
5395
5385
  } else (contentRootSegment.status = 4), (error = thrownValue$31);
5396
- var thrownInfo = getThrownInfo(task.componentStack);
5397
- var errorDigest = logRecoverableError(request, error, thrownInfo);
5386
+ var thrownInfo = getThrownInfo(task.componentStack),
5387
+ errorDigest = logRecoverableError(request, error, thrownInfo);
5398
5388
  newBoundary.errorDigest = errorDigest;
5399
5389
  untrackBoundary(request, newBoundary);
5400
5390
  } finally {
@@ -5575,12 +5565,12 @@ function retryNode(request, task) {
5575
5565
  throw Error(
5576
5566
  formatProdErrorMessage(490, node$jscomp$0[0], name)
5577
5567
  );
5578
- var childNodes = node$jscomp$0[2];
5579
- name = node$jscomp$0[3];
5580
- keyOrIndex = task.node;
5568
+ var childNodes = node$jscomp$0[2],
5569
+ childSlots = node$jscomp$0[3];
5570
+ name = task.node;
5581
5571
  task.replay = {
5582
5572
  nodes: childNodes,
5583
- slots: name,
5573
+ slots: childSlots,
5584
5574
  pendingTasks: 1
5585
5575
  };
5586
5576
  try {
@@ -5599,7 +5589,7 @@ function retryNode(request, task) {
5599
5589
  "function" === typeof x.then)
5600
5590
  )
5601
5591
  throw (
5602
- (task.node === keyOrIndex
5592
+ (task.node === name
5603
5593
  ? (task.replay = replay)
5604
5594
  : childIndex.splice(node, 1),
5605
5595
  x)
@@ -5614,7 +5604,7 @@ function retryNode(request, task) {
5614
5604
  key,
5615
5605
  request,
5616
5606
  childNodes,
5617
- name,
5607
+ childSlots,
5618
5608
  type,
5619
5609
  props
5620
5610
  );
@@ -5630,16 +5620,15 @@ function retryNode(request, task) {
5630
5620
  )
5631
5621
  );
5632
5622
  b: {
5633
- replay = void 0;
5634
- type = node$jscomp$0[5];
5635
- ref = node$jscomp$0[2];
5636
- name = node$jscomp$0[3];
5637
- keyOrIndex =
5623
+ replay = node$jscomp$0[5];
5624
+ type = node$jscomp$0[2];
5625
+ ref = node$jscomp$0[3];
5626
+ name =
5638
5627
  null === node$jscomp$0[4] ? [] : node$jscomp$0[4][2];
5639
5628
  node$jscomp$0 =
5640
5629
  null === node$jscomp$0[4] ? null : node$jscomp$0[4][3];
5641
- var prevKeyPath = task.keyPath,
5642
- prevContext = task.formatContext,
5630
+ keyOrIndex = task.keyPath;
5631
+ var prevContext = task.formatContext,
5643
5632
  prevRow = task.row,
5644
5633
  previousReplaySet = task.replay,
5645
5634
  parentBoundary = task.blockedBoundary,
@@ -5664,7 +5653,7 @@ function retryNode(request, task) {
5664
5653
  null
5665
5654
  );
5666
5655
  props.parentFlushed = !0;
5667
- props.rootSegmentID = type;
5656
+ props.rootSegmentID = replay;
5668
5657
  task.blockedBoundary = props;
5669
5658
  task.hoistableState = props.contentState;
5670
5659
  task.keyPath = key;
@@ -5674,8 +5663,8 @@ function retryNode(request, task) {
5674
5663
  );
5675
5664
  task.row = null;
5676
5665
  task.replay = {
5677
- nodes: ref,
5678
- slots: name,
5666
+ nodes: type,
5667
+ slots: ref,
5679
5668
  pendingTasks: 1
5680
5669
  };
5681
5670
  try {
@@ -5694,30 +5683,26 @@ function retryNode(request, task) {
5694
5683
  } catch (error) {
5695
5684
  (props.status = 4),
5696
5685
  (childNodes = getThrownInfo(task.componentStack)),
5697
- (replay = logRecoverableError(
5686
+ (childSlots = logRecoverableError(
5698
5687
  request,
5699
5688
  error,
5700
5689
  childNodes
5701
5690
  )),
5702
- (props.errorDigest = replay),
5691
+ (props.errorDigest = childSlots),
5703
5692
  task.replay.pendingTasks--,
5704
5693
  request.clientRenderedBoundaries.push(props);
5705
5694
  } finally {
5706
5695
  (task.blockedBoundary = parentBoundary),
5707
5696
  (task.hoistableState = parentHoistableState),
5708
5697
  (task.replay = previousReplaySet),
5709
- (task.keyPath = prevKeyPath),
5698
+ (task.keyPath = keyOrIndex),
5710
5699
  (task.formatContext = prevContext),
5711
5700
  (task.row = prevRow);
5712
5701
  }
5713
5702
  childNodes = createReplayTask(
5714
5703
  request,
5715
5704
  null,
5716
- {
5717
- nodes: keyOrIndex,
5718
- slots: node$jscomp$0,
5719
- pendingTasks: 0
5720
- },
5705
+ { nodes: name, slots: node$jscomp$0, pendingTasks: 0 },
5721
5706
  fallback,
5722
5707
  -1,
5723
5708
  parentBoundary,
@@ -5763,10 +5748,10 @@ function retryNode(request, task) {
5763
5748
  if ((childNodes = childNodes.call(node))) {
5764
5749
  node = childNodes.next();
5765
5750
  if (!node.done) {
5766
- props = [];
5767
- do props.push(node.value), (node = childNodes.next());
5751
+ childSlots = [];
5752
+ do childSlots.push(node.value), (node = childNodes.next());
5768
5753
  while (!node.done);
5769
- renderChildrenArray(request, task, props, childIndex);
5754
+ renderChildrenArray(request, task, childSlots, childIndex);
5770
5755
  }
5771
5756
  return;
5772
5757
  }
@@ -6460,38 +6445,37 @@ function finishedTask(request, boundary, row, segment) {
6460
6445
  tryToResolveTogetherRow(request, boundary);
6461
6446
  0 === request.allPendingTasks && completeAll(request);
6462
6447
  }
6463
- function performWork(request$jscomp$2) {
6464
- if (14 !== request$jscomp$2.status && 13 !== request$jscomp$2.status) {
6448
+ function performWork(request$jscomp$1) {
6449
+ if (14 !== request$jscomp$1.status && 13 !== request$jscomp$1.status) {
6465
6450
  var prevContext = currentActiveSnapshot,
6466
6451
  prevDispatcher = ReactSharedInternals.H;
6467
6452
  ReactSharedInternals.H = HooksDispatcher;
6468
6453
  var prevAsyncDispatcher = ReactSharedInternals.A;
6469
6454
  ReactSharedInternals.A = DefaultAsyncDispatcher;
6470
6455
  var prevRequest = currentRequest;
6471
- currentRequest = request$jscomp$2;
6456
+ currentRequest = request$jscomp$1;
6472
6457
  var prevResumableState = currentResumableState;
6473
- currentResumableState = request$jscomp$2.resumableState;
6458
+ currentResumableState = request$jscomp$1.resumableState;
6474
6459
  try {
6475
- var pingedTasks = request$jscomp$2.pingedTasks,
6460
+ var pingedTasks = request$jscomp$1.pingedTasks,
6476
6461
  i;
6477
6462
  for (i = 0; i < pingedTasks.length; i++) {
6478
6463
  var task = pingedTasks[i],
6479
- request = request$jscomp$2,
6464
+ request = request$jscomp$1,
6480
6465
  segment = task.blockedSegment;
6481
6466
  if (null === segment) {
6482
- var request$jscomp$0 = request;
6483
6467
  if (0 !== task.replay.pendingTasks) {
6484
6468
  switchContext(task.context);
6485
6469
  try {
6486
6470
  "number" === typeof task.replay.slots
6487
6471
  ? resumeNode(
6488
- request$jscomp$0,
6472
+ request,
6489
6473
  task,
6490
6474
  task.replay.slots,
6491
6475
  task.node,
6492
6476
  task.childIndex
6493
6477
  )
6494
- : retryNode(request$jscomp$0, task);
6478
+ : retryNode(request, task);
6495
6479
  if (
6496
6480
  1 === task.replay.pendingTasks &&
6497
6481
  0 < task.replay.nodes.length
@@ -6499,12 +6483,7 @@ function performWork(request$jscomp$2) {
6499
6483
  throw Error(formatProdErrorMessage(488));
6500
6484
  task.replay.pendingTasks--;
6501
6485
  task.abortSet.delete(task);
6502
- finishedTask(
6503
- request$jscomp$0,
6504
- task.blockedBoundary,
6505
- task.row,
6506
- null
6507
- );
6486
+ finishedTask(request, task.blockedBoundary, task.row, null);
6508
6487
  } catch (thrownValue) {
6509
6488
  resetHooksState();
6510
6489
  var x =
@@ -6525,66 +6504,59 @@ function performWork(request$jscomp$2) {
6525
6504
  } else {
6526
6505
  task.replay.pendingTasks--;
6527
6506
  task.abortSet.delete(task);
6528
- var errorInfo = getThrownInfo(task.componentStack);
6529
- request = void 0;
6530
- var request$jscomp$1 = request$jscomp$0,
6507
+ var errorInfo = getThrownInfo(task.componentStack),
6508
+ request$jscomp$0 = request,
6531
6509
  boundary = task.blockedBoundary,
6532
6510
  error$jscomp$0 =
6533
- 12 === request$jscomp$0.status
6534
- ? request$jscomp$0.fatalError
6535
- : x,
6511
+ 12 === request.status ? request.fatalError : x,
6536
6512
  replayNodes = task.replay.nodes,
6537
- resumeSlots = task.replay.slots;
6538
- request = logRecoverableError(
6539
- request$jscomp$1,
6540
- error$jscomp$0,
6541
- errorInfo
6542
- );
6513
+ resumeSlots = task.replay.slots,
6514
+ errorDigest = logRecoverableError(
6515
+ request$jscomp$0,
6516
+ error$jscomp$0,
6517
+ errorInfo
6518
+ );
6543
6519
  abortRemainingReplayNodes(
6544
- request$jscomp$1,
6520
+ request$jscomp$0,
6545
6521
  boundary,
6546
6522
  replayNodes,
6547
6523
  resumeSlots,
6548
6524
  error$jscomp$0,
6549
- request
6525
+ errorDigest
6550
6526
  );
6551
- request$jscomp$0.pendingRootTasks--;
6552
- 0 === request$jscomp$0.pendingRootTasks &&
6553
- completeShell(request$jscomp$0);
6554
- request$jscomp$0.allPendingTasks--;
6555
- 0 === request$jscomp$0.allPendingTasks &&
6556
- completeAll(request$jscomp$0);
6527
+ request.pendingRootTasks--;
6528
+ 0 === request.pendingRootTasks && completeShell(request);
6529
+ request.allPendingTasks--;
6530
+ 0 === request.allPendingTasks && completeAll(request);
6557
6531
  }
6558
6532
  } finally {
6559
6533
  }
6560
6534
  }
6561
6535
  } else if (
6562
- ((request$jscomp$0 = void 0),
6563
- (request$jscomp$1 = segment),
6564
- 0 === request$jscomp$1.status)
6536
+ ((request$jscomp$0 = segment), 0 === request$jscomp$0.status)
6565
6537
  ) {
6566
- request$jscomp$1.status = 6;
6538
+ request$jscomp$0.status = 6;
6567
6539
  switchContext(task.context);
6568
- var childrenLength = request$jscomp$1.children.length,
6569
- chunkLength = request$jscomp$1.chunks.length;
6540
+ var childrenLength = request$jscomp$0.children.length,
6541
+ chunkLength = request$jscomp$0.chunks.length;
6570
6542
  try {
6571
6543
  retryNode(request, task),
6572
- request$jscomp$1.lastPushedText &&
6573
- request$jscomp$1.textEmbedded &&
6574
- request$jscomp$1.chunks.push(textSeparator),
6544
+ request$jscomp$0.lastPushedText &&
6545
+ request$jscomp$0.textEmbedded &&
6546
+ request$jscomp$0.chunks.push(textSeparator),
6575
6547
  task.abortSet.delete(task),
6576
- (request$jscomp$1.status = 1),
6577
- finishedSegment(request, task.blockedBoundary, request$jscomp$1),
6548
+ (request$jscomp$0.status = 1),
6549
+ finishedSegment(request, task.blockedBoundary, request$jscomp$0),
6578
6550
  finishedTask(
6579
6551
  request,
6580
6552
  task.blockedBoundary,
6581
6553
  task.row,
6582
- request$jscomp$1
6554
+ request$jscomp$0
6583
6555
  );
6584
6556
  } catch (thrownValue) {
6585
6557
  resetHooksState();
6586
- request$jscomp$1.children.length = childrenLength;
6587
- request$jscomp$1.chunks.length = chunkLength;
6558
+ request$jscomp$0.children.length = childrenLength;
6559
+ request$jscomp$0.chunks.length = chunkLength;
6588
6560
  var x$jscomp$0 =
6589
6561
  thrownValue === SuspenseException
6590
6562
  ? getSuspendedThenable()
@@ -6596,19 +6568,19 @@ function performWork(request$jscomp$2) {
6596
6568
  thrownInfo = getThrownInfo(task.componentStack);
6597
6569
  task.abortSet.delete(task);
6598
6570
  logRecoverableError(request, x$jscomp$0, thrownInfo);
6599
- trackPostpone(request, trackedPostpones, task, request$jscomp$1);
6571
+ trackPostpone(request, trackedPostpones, task, request$jscomp$0);
6600
6572
  finishedTask(
6601
6573
  request,
6602
6574
  task.blockedBoundary,
6603
6575
  task.row,
6604
- request$jscomp$1
6576
+ request$jscomp$0
6605
6577
  );
6606
6578
  } else if (
6607
6579
  "object" === typeof x$jscomp$0 &&
6608
6580
  null !== x$jscomp$0 &&
6609
6581
  "function" === typeof x$jscomp$0.then
6610
6582
  ) {
6611
- request$jscomp$1.status = 0;
6583
+ request$jscomp$0.status = 0;
6612
6584
  task.thenableState =
6613
6585
  thrownValue === SuspenseException
6614
6586
  ? getThenableStateAfterSuspending()
@@ -6618,14 +6590,14 @@ function performWork(request$jscomp$2) {
6618
6590
  } else {
6619
6591
  var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
6620
6592
  task.abortSet.delete(task);
6621
- request$jscomp$1.status = 4;
6593
+ request$jscomp$0.status = 4;
6622
6594
  var boundary$jscomp$0 = task.blockedBoundary,
6623
6595
  row = task.row;
6624
6596
  null !== row &&
6625
6597
  0 === --row.pendingTasks &&
6626
6598
  finishSuspenseListRow(request, row);
6627
6599
  request.allPendingTasks--;
6628
- request$jscomp$0 = logRecoverableError(
6600
+ var errorDigest$jscomp$0 = logRecoverableError(
6629
6601
  request,
6630
6602
  x$jscomp$0,
6631
6603
  errorInfo$jscomp$0
@@ -6636,7 +6608,7 @@ function performWork(request$jscomp$2) {
6636
6608
  4 !== boundary$jscomp$0.status)
6637
6609
  ) {
6638
6610
  boundary$jscomp$0.status = 4;
6639
- boundary$jscomp$0.errorDigest = request$jscomp$0;
6611
+ boundary$jscomp$0.errorDigest = errorDigest$jscomp$0;
6640
6612
  untrackBoundary(request, boundary$jscomp$0);
6641
6613
  var boundaryRow = boundary$jscomp$0.row;
6642
6614
  null !== boundaryRow &&
@@ -6656,11 +6628,11 @@ function performWork(request$jscomp$2) {
6656
6628
  }
6657
6629
  }
6658
6630
  pingedTasks.splice(0, i);
6659
- null !== request$jscomp$2.destination &&
6660
- flushCompletedQueues(request$jscomp$2, request$jscomp$2.destination);
6631
+ null !== request$jscomp$1.destination &&
6632
+ flushCompletedQueues(request$jscomp$1, request$jscomp$1.destination);
6661
6633
  } catch (error) {
6662
- logRecoverableError(request$jscomp$2, error, {}),
6663
- fatalError(request$jscomp$2, error);
6634
+ logRecoverableError(request$jscomp$1, error, {}),
6635
+ fatalError(request$jscomp$1, error);
6664
6636
  } finally {
6665
6637
  (currentResumableState = prevResumableState),
6666
6638
  (ReactSharedInternals.H = prevDispatcher),
@@ -7371,12 +7343,12 @@ function getPostponedState(request) {
7371
7343
  }
7372
7344
  function ensureCorrectIsomorphicReactVersion() {
7373
7345
  var isomorphicReactPackageVersion = React.version;
7374
- if ("19.3.0-canary-67f7d47a-20251103" !== isomorphicReactPackageVersion)
7346
+ if ("19.3.0-canary-dd048c3b-20251105" !== isomorphicReactPackageVersion)
7375
7347
  throw Error(
7376
7348
  formatProdErrorMessage(
7377
7349
  527,
7378
7350
  isomorphicReactPackageVersion,
7379
- "19.3.0-canary-67f7d47a-20251103"
7351
+ "19.3.0-canary-dd048c3b-20251105"
7380
7352
  )
7381
7353
  );
7382
7354
  }
@@ -7430,8 +7402,7 @@ exports.prerender = function (children, options) {
7430
7402
  },
7431
7403
  void 0,
7432
7404
  void 0,
7433
- reject,
7434
- options ? options.onPostpone : void 0
7405
+ reject
7435
7406
  );
7436
7407
  if (options && options.signal) {
7437
7408
  var signal = options.signal;
@@ -7505,7 +7476,6 @@ exports.renderToReadableStream = function (children, options) {
7505
7476
  reject(error);
7506
7477
  },
7507
7478
  onFatalError,
7508
- options ? options.onPostpone : void 0,
7509
7479
  options ? options.formState : void 0
7510
7480
  );
7511
7481
  if (options && options.signal) {
@@ -7564,8 +7534,7 @@ exports.resume = function (children, postponedState, options) {
7564
7534
  allReady.catch(function () {});
7565
7535
  reject(error);
7566
7536
  },
7567
- onFatalError,
7568
- options ? options.onPostpone : void 0
7537
+ onFatalError
7569
7538
  );
7570
7539
  if (options && options.signal) {
7571
7540
  var signal = options.signal;
@@ -7614,8 +7583,7 @@ exports.resumeAndPrerender = function (children, postponedState, options) {
7614
7583
  },
7615
7584
  void 0,
7616
7585
  void 0,
7617
- reject,
7618
- options ? options.onPostpone : void 0
7586
+ reject
7619
7587
  );
7620
7588
  if (options && options.signal) {
7621
7589
  var signal = options.signal;
@@ -7631,4 +7599,4 @@ exports.resumeAndPrerender = function (children, postponedState, options) {
7631
7599
  startWork(request);
7632
7600
  });
7633
7601
  };
7634
- exports.version = "19.3.0-canary-67f7d47a-20251103";
7602
+ exports.version = "19.3.0-canary-dd048c3b-20251105";