react-dom 19.2.0-canary-fa3feba6-20250623 → 19.2.0-canary-cee7939b-20250625

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.
@@ -3962,13 +3962,37 @@ function describeComponentStackByType(type) {
3962
3962
  }
3963
3963
  return describeComponentStackByType(type);
3964
3964
  }
3965
- if ("string" === typeof type.name)
3966
- return (
3967
- (payload = type.env),
3968
- describeBuiltInComponentFrame(
3969
- type.name + (payload ? " [" + payload + "]" : "")
3970
- )
3971
- );
3965
+ if ("string" === typeof type.name) {
3966
+ a: {
3967
+ payload = type.name;
3968
+ lazyComponent = type.env;
3969
+ var location = type.debugLocation;
3970
+ if (
3971
+ null != location &&
3972
+ ((type = Error.prepareStackTrace),
3973
+ (Error.prepareStackTrace = void 0),
3974
+ (location = location.stack),
3975
+ (Error.prepareStackTrace = type),
3976
+ location.startsWith("Error: react-stack-top-frame\n") &&
3977
+ (location = location.slice(29)),
3978
+ (type = location.indexOf("\n")),
3979
+ -1 !== type && (location = location.slice(type + 1)),
3980
+ (type = location.indexOf("react-stack-bottom-frame")),
3981
+ -1 !== type && (type = location.lastIndexOf("\n", type)),
3982
+ (type = -1 !== type ? (location = location.slice(0, type)) : ""),
3983
+ (location = type.lastIndexOf("\n")),
3984
+ (type = -1 === location ? type : type.slice(location + 1)),
3985
+ -1 !== type.indexOf(payload))
3986
+ ) {
3987
+ payload = "\n" + type;
3988
+ break a;
3989
+ }
3990
+ payload = describeBuiltInComponentFrame(
3991
+ payload + (lazyComponent ? " [" + lazyComponent + "]" : "")
3992
+ );
3993
+ }
3994
+ return payload;
3995
+ }
3972
3996
  }
3973
3997
  switch (type) {
3974
3998
  case REACT_SUSPENSE_LIST_TYPE:
@@ -6818,12 +6842,12 @@ function addToReplayParent(node, parentKeyPath, trackedPostpones) {
6818
6842
  }
6819
6843
  function ensureCorrectIsomorphicReactVersion() {
6820
6844
  var isomorphicReactPackageVersion = React.version;
6821
- if ("19.2.0-canary-fa3feba6-20250623" !== isomorphicReactPackageVersion)
6845
+ if ("19.2.0-canary-cee7939b-20250625" !== isomorphicReactPackageVersion)
6822
6846
  throw Error(
6823
6847
  formatProdErrorMessage(
6824
6848
  527,
6825
6849
  isomorphicReactPackageVersion,
6826
- "19.2.0-canary-fa3feba6-20250623"
6850
+ "19.2.0-canary-cee7939b-20250625"
6827
6851
  )
6828
6852
  );
6829
6853
  }
@@ -6970,4 +6994,4 @@ exports.renderToReadableStream = function (children, options) {
6970
6994
  startWork(request);
6971
6995
  });
6972
6996
  };
6973
- exports.version = "19.2.0-canary-fa3feba6-20250623";
6997
+ exports.version = "19.2.0-canary-cee7939b-20250625";
@@ -5354,6 +5354,24 @@ function reenableLogs() {
5354
5354
  "disabledDepth fell below zero. This is a bug in React. Please file an issue."
5355
5355
  );
5356
5356
  }
5357
+ function formatOwnerStack(error) {
5358
+ var prevPrepareStackTrace = Error.prepareStackTrace;
5359
+ Error.prepareStackTrace = void 0;
5360
+ error = error.stack;
5361
+ Error.prepareStackTrace = prevPrepareStackTrace;
5362
+ error.startsWith("Error: react-stack-top-frame\n") &&
5363
+ (error = error.slice(29));
5364
+ prevPrepareStackTrace = error.indexOf("\n");
5365
+ -1 !== prevPrepareStackTrace &&
5366
+ (error = error.slice(prevPrepareStackTrace + 1));
5367
+ prevPrepareStackTrace = error.indexOf("react-stack-bottom-frame");
5368
+ -1 !== prevPrepareStackTrace &&
5369
+ (prevPrepareStackTrace = error.lastIndexOf("\n", prevPrepareStackTrace));
5370
+ if (-1 !== prevPrepareStackTrace)
5371
+ error = error.slice(0, prevPrepareStackTrace);
5372
+ else return "";
5373
+ return error;
5374
+ }
5357
5375
  var prefix, suffix;
5358
5376
  function describeBuiltInComponentFrame(name) {
5359
5377
  if (void 0 === prefix)
@@ -5525,24 +5543,6 @@ function describeNativeComponentFrame(fn, construct) {
5525
5543
  "function" === typeof fn && componentFrameCache.set(fn, sampleLines);
5526
5544
  return sampleLines;
5527
5545
  }
5528
- function formatOwnerStack(error) {
5529
- var prevPrepareStackTrace = Error.prepareStackTrace;
5530
- Error.prepareStackTrace = void 0;
5531
- error = error.stack;
5532
- Error.prepareStackTrace = prevPrepareStackTrace;
5533
- error.startsWith("Error: react-stack-top-frame\n") &&
5534
- (error = error.slice(29));
5535
- prevPrepareStackTrace = error.indexOf("\n");
5536
- -1 !== prevPrepareStackTrace &&
5537
- (error = error.slice(prevPrepareStackTrace + 1));
5538
- prevPrepareStackTrace = error.indexOf("react-stack-bottom-frame");
5539
- -1 !== prevPrepareStackTrace &&
5540
- (prevPrepareStackTrace = error.lastIndexOf("\n", prevPrepareStackTrace));
5541
- if (-1 !== prevPrepareStackTrace)
5542
- error = error.slice(0, prevPrepareStackTrace);
5543
- else return "";
5544
- return error;
5545
- }
5546
5546
  function describeComponentStackByType(type) {
5547
5547
  if ("string" === typeof type) return describeBuiltInComponentFrame(type);
5548
5548
  if ("function" === typeof type)
@@ -5566,13 +5566,26 @@ function describeComponentStackByType(type) {
5566
5566
  }
5567
5567
  return describeComponentStackByType(type);
5568
5568
  }
5569
- if ("string" === typeof type.name)
5570
- return (
5571
- (payload = type.env),
5572
- describeBuiltInComponentFrame(
5573
- type.name + (payload ? " [" + payload + "]" : "")
5574
- )
5575
- );
5569
+ if ("string" === typeof type.name) {
5570
+ a: {
5571
+ payload = type.name;
5572
+ lazyComponent = type.env;
5573
+ type = type.debugLocation;
5574
+ if (null != type) {
5575
+ type = formatOwnerStack(type);
5576
+ var idx = type.lastIndexOf("\n");
5577
+ type = -1 === idx ? type : type.slice(idx + 1);
5578
+ if (-1 !== type.indexOf(payload)) {
5579
+ payload = "\n" + type;
5580
+ break a;
5581
+ }
5582
+ }
5583
+ payload = describeBuiltInComponentFrame(
5584
+ payload + (lazyComponent ? " [" + lazyComponent + "]" : "")
5585
+ );
5586
+ }
5587
+ return payload;
5588
+ }
5576
5589
  }
5577
5590
  switch (type) {
5578
5591
  case REACT_SUSPENSE_LIST_TYPE:
@@ -8092,8 +8105,8 @@ function abortTask(task, request, error) {
8092
8105
  if (13 !== request.status && request.status !== CLOSED) {
8093
8106
  boundary = task.replay;
8094
8107
  if (null === boundary) {
8095
- logRecoverableError(request, error, segment, null);
8096
- fatalError(request, error, segment, null);
8108
+ logRecoverableError(request, error, segment, task.debugTask);
8109
+ fatalError(request, error, segment, task.debugTask);
8097
8110
  return;
8098
8111
  }
8099
8112
  boundary.pendingTasks--;
@@ -8116,7 +8129,12 @@ function abortTask(task, request, error) {
8116
8129
  } else
8117
8130
  boundary.status !== CLIENT_RENDERED &&
8118
8131
  ((boundary.status = CLIENT_RENDERED),
8119
- (errorDigest = logRecoverableError(request, error, segment, null)),
8132
+ (errorDigest = logRecoverableError(
8133
+ request,
8134
+ error,
8135
+ segment,
8136
+ task.debugTask
8137
+ )),
8120
8138
  (boundary.status = CLIENT_RENDERED),
8121
8139
  encodeErrorForBoundary(boundary, errorDigest, error, segment, !0),
8122
8140
  untrackBoundary(request, boundary),
@@ -9287,15 +9305,15 @@ function addToReplayParent(node, parentKeyPath, trackedPostpones) {
9287
9305
  parentNode[2].push(node);
9288
9306
  }
9289
9307
  }
9290
- var isomorphicReactPackageVersion$jscomp$inline_761 = React.version;
9308
+ var isomorphicReactPackageVersion$jscomp$inline_765 = React.version;
9291
9309
  if (
9292
- "19.2.0-canary-fa3feba6-20250623" !==
9293
- isomorphicReactPackageVersion$jscomp$inline_761
9310
+ "19.2.0-canary-cee7939b-20250625" !==
9311
+ isomorphicReactPackageVersion$jscomp$inline_765
9294
9312
  )
9295
9313
  throw Error(
9296
9314
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
9297
- (isomorphicReactPackageVersion$jscomp$inline_761 +
9298
- "\n - react-dom: 19.2.0-canary-fa3feba6-20250623\nLearn more: https://react.dev/warnings/version-mismatch")
9315
+ (isomorphicReactPackageVersion$jscomp$inline_765 +
9316
+ "\n - react-dom: 19.2.0-canary-cee7939b-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
9299
9317
  );
9300
9318
  exports.renderToReadableStream = function (children, options) {
9301
9319
  return new Promise(function (resolve, reject) {
@@ -9388,4 +9406,4 @@ exports.renderToReadableStream = function (children, options) {
9388
9406
  startWork(request$jscomp$0);
9389
9407
  });
9390
9408
  };
9391
- exports.version = "19.2.0-canary-fa3feba6-20250623";
9409
+ exports.version = "19.2.0-canary-cee7939b-20250625";
@@ -3606,13 +3606,37 @@ function describeComponentStackByType(type) {
3606
3606
  }
3607
3607
  return describeComponentStackByType(type);
3608
3608
  }
3609
- if ("string" === typeof type.name)
3610
- return (
3611
- (payload = type.env),
3612
- describeBuiltInComponentFrame(
3613
- type.name + (payload ? " [" + payload + "]" : "")
3614
- )
3615
- );
3609
+ if ("string" === typeof type.name) {
3610
+ a: {
3611
+ payload = type.name;
3612
+ lazyComponent = type.env;
3613
+ var location = type.debugLocation;
3614
+ if (
3615
+ null != location &&
3616
+ ((type = Error.prepareStackTrace),
3617
+ (Error.prepareStackTrace = void 0),
3618
+ (location = location.stack),
3619
+ (Error.prepareStackTrace = type),
3620
+ location.startsWith("Error: react-stack-top-frame\n") &&
3621
+ (location = location.slice(29)),
3622
+ (type = location.indexOf("\n")),
3623
+ -1 !== type && (location = location.slice(type + 1)),
3624
+ (type = location.indexOf("react-stack-bottom-frame")),
3625
+ -1 !== type && (type = location.lastIndexOf("\n", type)),
3626
+ (type = -1 !== type ? (location = location.slice(0, type)) : ""),
3627
+ (location = type.lastIndexOf("\n")),
3628
+ (type = -1 === location ? type : type.slice(location + 1)),
3629
+ -1 !== type.indexOf(payload))
3630
+ ) {
3631
+ payload = "\n" + type;
3632
+ break a;
3633
+ }
3634
+ payload = describeBuiltInComponentFrame(
3635
+ payload + (lazyComponent ? " [" + lazyComponent + "]" : "")
3636
+ );
3637
+ }
3638
+ return payload;
3639
+ }
3616
3640
  }
3617
3641
  switch (type) {
3618
3642
  case REACT_SUSPENSE_LIST_TYPE:
@@ -6461,15 +6485,15 @@ function addToReplayParent(node, parentKeyPath, trackedPostpones) {
6461
6485
  parentNode[2].push(node);
6462
6486
  }
6463
6487
  }
6464
- var isomorphicReactPackageVersion$jscomp$inline_813 = React.version;
6488
+ var isomorphicReactPackageVersion$jscomp$inline_817 = React.version;
6465
6489
  if (
6466
- "19.2.0-canary-fa3feba6-20250623" !==
6467
- isomorphicReactPackageVersion$jscomp$inline_813
6490
+ "19.2.0-canary-cee7939b-20250625" !==
6491
+ isomorphicReactPackageVersion$jscomp$inline_817
6468
6492
  )
6469
6493
  throw Error(
6470
6494
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
6471
- (isomorphicReactPackageVersion$jscomp$inline_813 +
6472
- "\n - react-dom: 19.2.0-canary-fa3feba6-20250623\nLearn more: https://react.dev/warnings/version-mismatch")
6495
+ (isomorphicReactPackageVersion$jscomp$inline_817 +
6496
+ "\n - react-dom: 19.2.0-canary-cee7939b-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
6473
6497
  );
6474
6498
  exports.renderToReadableStream = function (children, options) {
6475
6499
  return new Promise(function (resolve, reject) {
@@ -6560,4 +6584,4 @@ exports.renderToReadableStream = function (children, options) {
6560
6584
  startWork(request);
6561
6585
  });
6562
6586
  };
6563
- exports.version = "19.2.0-canary-fa3feba6-20250623";
6587
+ exports.version = "19.2.0-canary-cee7939b-20250625";
@@ -4264,6 +4264,27 @@
4264
4264
  error += "\n at " + structuredStackTrace[i].toString();
4265
4265
  return error;
4266
4266
  }
4267
+ function formatOwnerStack(error) {
4268
+ var prevPrepareStackTrace = Error.prepareStackTrace;
4269
+ Error.prepareStackTrace = prepareStackTrace;
4270
+ error = error.stack;
4271
+ Error.prepareStackTrace = prevPrepareStackTrace;
4272
+ error.startsWith("Error: react-stack-top-frame\n") &&
4273
+ (error = error.slice(29));
4274
+ prevPrepareStackTrace = error.indexOf("\n");
4275
+ -1 !== prevPrepareStackTrace &&
4276
+ (error = error.slice(prevPrepareStackTrace + 1));
4277
+ prevPrepareStackTrace = error.indexOf("react-stack-bottom-frame");
4278
+ -1 !== prevPrepareStackTrace &&
4279
+ (prevPrepareStackTrace = error.lastIndexOf(
4280
+ "\n",
4281
+ prevPrepareStackTrace
4282
+ ));
4283
+ if (-1 !== prevPrepareStackTrace)
4284
+ error = error.slice(0, prevPrepareStackTrace);
4285
+ else return "";
4286
+ return error;
4287
+ }
4267
4288
  function describeBuiltInComponentFrame(name) {
4268
4289
  if (void 0 === prefix)
4269
4290
  try {
@@ -4436,27 +4457,6 @@
4436
4457
  "function" === typeof fn && componentFrameCache.set(fn, sampleLines);
4437
4458
  return sampleLines;
4438
4459
  }
4439
- function formatOwnerStack(error) {
4440
- var prevPrepareStackTrace = Error.prepareStackTrace;
4441
- Error.prepareStackTrace = prepareStackTrace;
4442
- error = error.stack;
4443
- Error.prepareStackTrace = prevPrepareStackTrace;
4444
- error.startsWith("Error: react-stack-top-frame\n") &&
4445
- (error = error.slice(29));
4446
- prevPrepareStackTrace = error.indexOf("\n");
4447
- -1 !== prevPrepareStackTrace &&
4448
- (error = error.slice(prevPrepareStackTrace + 1));
4449
- prevPrepareStackTrace = error.indexOf("react-stack-bottom-frame");
4450
- -1 !== prevPrepareStackTrace &&
4451
- (prevPrepareStackTrace = error.lastIndexOf(
4452
- "\n",
4453
- prevPrepareStackTrace
4454
- ));
4455
- if (-1 !== prevPrepareStackTrace)
4456
- error = error.slice(0, prevPrepareStackTrace);
4457
- else return "";
4458
- return error;
4459
- }
4460
4460
  function describeComponentStackByType(type) {
4461
4461
  if ("string" === typeof type) return describeBuiltInComponentFrame(type);
4462
4462
  if ("function" === typeof type)
@@ -4480,13 +4480,26 @@
4480
4480
  }
4481
4481
  return describeComponentStackByType(type);
4482
4482
  }
4483
- if ("string" === typeof type.name)
4484
- return (
4485
- (payload = type.env),
4486
- describeBuiltInComponentFrame(
4487
- type.name + (payload ? " [" + payload + "]" : "")
4488
- )
4489
- );
4483
+ if ("string" === typeof type.name) {
4484
+ a: {
4485
+ payload = type.name;
4486
+ lazyComponent = type.env;
4487
+ type = type.debugLocation;
4488
+ if (null != type) {
4489
+ type = formatOwnerStack(type);
4490
+ var idx = type.lastIndexOf("\n");
4491
+ type = -1 === idx ? type : type.slice(idx + 1);
4492
+ if (-1 !== type.indexOf(payload)) {
4493
+ payload = "\n" + type;
4494
+ break a;
4495
+ }
4496
+ }
4497
+ payload = describeBuiltInComponentFrame(
4498
+ payload + (lazyComponent ? " [" + lazyComponent + "]" : "")
4499
+ );
4500
+ }
4501
+ return payload;
4502
+ }
4490
4503
  }
4491
4504
  switch (type) {
4492
4505
  case REACT_SUSPENSE_LIST_TYPE:
@@ -7091,8 +7104,8 @@
7091
7104
  if (13 !== request.status && request.status !== CLOSED) {
7092
7105
  boundary = task.replay;
7093
7106
  if (null === boundary) {
7094
- logRecoverableError(request, error, segment, null);
7095
- fatalError(request, error, segment, null);
7107
+ logRecoverableError(request, error, segment, task.debugTask);
7108
+ fatalError(request, error, segment, task.debugTask);
7096
7109
  return;
7097
7110
  }
7098
7111
  boundary.pendingTasks--;
@@ -7120,7 +7133,12 @@
7120
7133
  } else
7121
7134
  boundary.status !== CLIENT_RENDERED &&
7122
7135
  ((boundary.status = CLIENT_RENDERED),
7123
- (errorDigest = logRecoverableError(request, error, segment, null)),
7136
+ (errorDigest = logRecoverableError(
7137
+ request,
7138
+ error,
7139
+ segment,
7140
+ task.debugTask
7141
+ )),
7124
7142
  (boundary.status = CLIENT_RENDERED),
7125
7143
  encodeErrorForBoundary(boundary, errorDigest, error, segment, !0),
7126
7144
  untrackBoundary(request, boundary),
@@ -8437,11 +8455,11 @@
8437
8455
  }
8438
8456
  function ensureCorrectIsomorphicReactVersion() {
8439
8457
  var isomorphicReactPackageVersion = React.version;
8440
- if ("19.2.0-canary-fa3feba6-20250623" !== isomorphicReactPackageVersion)
8458
+ if ("19.2.0-canary-cee7939b-20250625" !== isomorphicReactPackageVersion)
8441
8459
  throw Error(
8442
8460
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
8443
8461
  (isomorphicReactPackageVersion +
8444
- "\n - react-dom: 19.2.0-canary-fa3feba6-20250623\nLearn more: https://react.dev/warnings/version-mismatch")
8462
+ "\n - react-dom: 19.2.0-canary-cee7939b-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
8445
8463
  );
8446
8464
  }
8447
8465
  var React = require("react"),
@@ -10127,5 +10145,5 @@
10127
10145
  startWork(request);
10128
10146
  });
10129
10147
  };
10130
- exports.version = "19.2.0-canary-fa3feba6-20250623";
10148
+ exports.version = "19.2.0-canary-cee7939b-20250625";
10131
10149
  })();
@@ -4006,13 +4006,37 @@ function describeComponentStackByType(type) {
4006
4006
  }
4007
4007
  return describeComponentStackByType(type);
4008
4008
  }
4009
- if ("string" === typeof type.name)
4010
- return (
4011
- (payload = type.env),
4012
- describeBuiltInComponentFrame(
4013
- type.name + (payload ? " [" + payload + "]" : "")
4014
- )
4015
- );
4009
+ if ("string" === typeof type.name) {
4010
+ a: {
4011
+ payload = type.name;
4012
+ lazyComponent = type.env;
4013
+ var location = type.debugLocation;
4014
+ if (
4015
+ null != location &&
4016
+ ((type = Error.prepareStackTrace),
4017
+ (Error.prepareStackTrace = prepareStackTrace),
4018
+ (location = location.stack),
4019
+ (Error.prepareStackTrace = type),
4020
+ location.startsWith("Error: react-stack-top-frame\n") &&
4021
+ (location = location.slice(29)),
4022
+ (type = location.indexOf("\n")),
4023
+ -1 !== type && (location = location.slice(type + 1)),
4024
+ (type = location.indexOf("react-stack-bottom-frame")),
4025
+ -1 !== type && (type = location.lastIndexOf("\n", type)),
4026
+ (type = -1 !== type ? (location = location.slice(0, type)) : ""),
4027
+ (location = type.lastIndexOf("\n")),
4028
+ (type = -1 === location ? type : type.slice(location + 1)),
4029
+ -1 !== type.indexOf(payload))
4030
+ ) {
4031
+ payload = "\n" + type;
4032
+ break a;
4033
+ }
4034
+ payload = describeBuiltInComponentFrame(
4035
+ payload + (lazyComponent ? " [" + lazyComponent + "]" : "")
4036
+ );
4037
+ }
4038
+ return payload;
4039
+ }
4016
4040
  }
4017
4041
  switch (type) {
4018
4042
  case REACT_SUSPENSE_LIST_TYPE:
@@ -6916,11 +6940,11 @@ function addToReplayParent(node, parentKeyPath, trackedPostpones) {
6916
6940
  }
6917
6941
  function ensureCorrectIsomorphicReactVersion() {
6918
6942
  var isomorphicReactPackageVersion = React.version;
6919
- if ("19.2.0-canary-fa3feba6-20250623" !== isomorphicReactPackageVersion)
6943
+ if ("19.2.0-canary-cee7939b-20250625" !== isomorphicReactPackageVersion)
6920
6944
  throw Error(
6921
6945
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
6922
6946
  (isomorphicReactPackageVersion +
6923
- "\n - react-dom: 19.2.0-canary-fa3feba6-20250623\nLearn more: https://react.dev/warnings/version-mismatch")
6947
+ "\n - react-dom: 19.2.0-canary-cee7939b-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
6924
6948
  );
6925
6949
  }
6926
6950
  ensureCorrectIsomorphicReactVersion();
@@ -7066,4 +7090,4 @@ exports.renderToReadableStream = function (children, options) {
7066
7090
  startWork(request);
7067
7091
  });
7068
7092
  };
7069
- exports.version = "19.2.0-canary-fa3feba6-20250623";
7093
+ exports.version = "19.2.0-canary-cee7939b-20250625";
@@ -4167,6 +4167,27 @@
4167
4167
  error += "\n at " + structuredStackTrace[i].toString();
4168
4168
  return error;
4169
4169
  }
4170
+ function formatOwnerStack(error) {
4171
+ var prevPrepareStackTrace = Error.prepareStackTrace;
4172
+ Error.prepareStackTrace = prepareStackTrace;
4173
+ error = error.stack;
4174
+ Error.prepareStackTrace = prevPrepareStackTrace;
4175
+ error.startsWith("Error: react-stack-top-frame\n") &&
4176
+ (error = error.slice(29));
4177
+ prevPrepareStackTrace = error.indexOf("\n");
4178
+ -1 !== prevPrepareStackTrace &&
4179
+ (error = error.slice(prevPrepareStackTrace + 1));
4180
+ prevPrepareStackTrace = error.indexOf("react-stack-bottom-frame");
4181
+ -1 !== prevPrepareStackTrace &&
4182
+ (prevPrepareStackTrace = error.lastIndexOf(
4183
+ "\n",
4184
+ prevPrepareStackTrace
4185
+ ));
4186
+ if (-1 !== prevPrepareStackTrace)
4187
+ error = error.slice(0, prevPrepareStackTrace);
4188
+ else return "";
4189
+ return error;
4190
+ }
4170
4191
  function describeBuiltInComponentFrame(name) {
4171
4192
  if (void 0 === prefix)
4172
4193
  try {
@@ -4339,27 +4360,6 @@
4339
4360
  "function" === typeof fn && componentFrameCache.set(fn, sampleLines);
4340
4361
  return sampleLines;
4341
4362
  }
4342
- function formatOwnerStack(error) {
4343
- var prevPrepareStackTrace = Error.prepareStackTrace;
4344
- Error.prepareStackTrace = prepareStackTrace;
4345
- error = error.stack;
4346
- Error.prepareStackTrace = prevPrepareStackTrace;
4347
- error.startsWith("Error: react-stack-top-frame\n") &&
4348
- (error = error.slice(29));
4349
- prevPrepareStackTrace = error.indexOf("\n");
4350
- -1 !== prevPrepareStackTrace &&
4351
- (error = error.slice(prevPrepareStackTrace + 1));
4352
- prevPrepareStackTrace = error.indexOf("react-stack-bottom-frame");
4353
- -1 !== prevPrepareStackTrace &&
4354
- (prevPrepareStackTrace = error.lastIndexOf(
4355
- "\n",
4356
- prevPrepareStackTrace
4357
- ));
4358
- if (-1 !== prevPrepareStackTrace)
4359
- error = error.slice(0, prevPrepareStackTrace);
4360
- else return "";
4361
- return error;
4362
- }
4363
4363
  function describeComponentStackByType(type) {
4364
4364
  if ("string" === typeof type) return describeBuiltInComponentFrame(type);
4365
4365
  if ("function" === typeof type)
@@ -4383,13 +4383,26 @@
4383
4383
  }
4384
4384
  return describeComponentStackByType(type);
4385
4385
  }
4386
- if ("string" === typeof type.name)
4387
- return (
4388
- (payload = type.env),
4389
- describeBuiltInComponentFrame(
4390
- type.name + (payload ? " [" + payload + "]" : "")
4391
- )
4392
- );
4386
+ if ("string" === typeof type.name) {
4387
+ a: {
4388
+ payload = type.name;
4389
+ lazyComponent = type.env;
4390
+ type = type.debugLocation;
4391
+ if (null != type) {
4392
+ type = formatOwnerStack(type);
4393
+ var idx = type.lastIndexOf("\n");
4394
+ type = -1 === idx ? type : type.slice(idx + 1);
4395
+ if (-1 !== type.indexOf(payload)) {
4396
+ payload = "\n" + type;
4397
+ break a;
4398
+ }
4399
+ }
4400
+ payload = describeBuiltInComponentFrame(
4401
+ payload + (lazyComponent ? " [" + lazyComponent + "]" : "")
4402
+ );
4403
+ }
4404
+ return payload;
4405
+ }
4393
4406
  }
4394
4407
  switch (type) {
4395
4408
  case REACT_SUSPENSE_LIST_TYPE:
@@ -6990,8 +7003,8 @@
6990
7003
  if (13 !== request.status && request.status !== CLOSED) {
6991
7004
  boundary = task.replay;
6992
7005
  if (null === boundary) {
6993
- logRecoverableError(request, error, segment, null);
6994
- fatalError(request, error, segment, null);
7006
+ logRecoverableError(request, error, segment, task.debugTask);
7007
+ fatalError(request, error, segment, task.debugTask);
6995
7008
  return;
6996
7009
  }
6997
7010
  boundary.pendingTasks--;
@@ -7019,7 +7032,12 @@
7019
7032
  } else
7020
7033
  boundary.status !== CLIENT_RENDERED &&
7021
7034
  ((boundary.status = CLIENT_RENDERED),
7022
- (errorDigest = logRecoverableError(request, error, segment, null)),
7035
+ (errorDigest = logRecoverableError(
7036
+ request,
7037
+ error,
7038
+ segment,
7039
+ task.debugTask
7040
+ )),
7023
7041
  (boundary.status = CLIENT_RENDERED),
7024
7042
  encodeErrorForBoundary(boundary, errorDigest, error, segment, !0),
7025
7043
  untrackBoundary(request, boundary),
@@ -8312,11 +8330,11 @@
8312
8330
  }
8313
8331
  function ensureCorrectIsomorphicReactVersion() {
8314
8332
  var isomorphicReactPackageVersion = React.version;
8315
- if ("19.2.0-canary-fa3feba6-20250623" !== isomorphicReactPackageVersion)
8333
+ if ("19.2.0-canary-cee7939b-20250625" !== isomorphicReactPackageVersion)
8316
8334
  throw Error(
8317
8335
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
8318
8336
  (isomorphicReactPackageVersion +
8319
- "\n - react-dom: 19.2.0-canary-fa3feba6-20250623\nLearn more: https://react.dev/warnings/version-mismatch")
8337
+ "\n - react-dom: 19.2.0-canary-cee7939b-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
8320
8338
  );
8321
8339
  }
8322
8340
  function createDrainHandler(destination, request) {
@@ -10187,5 +10205,5 @@
10187
10205
  startWork(request);
10188
10206
  });
10189
10207
  };
10190
- exports.version = "19.2.0-canary-fa3feba6-20250623";
10208
+ exports.version = "19.2.0-canary-cee7939b-20250625";
10191
10209
  })();
@@ -3909,13 +3909,37 @@ function describeComponentStackByType(type) {
3909
3909
  }
3910
3910
  return describeComponentStackByType(type);
3911
3911
  }
3912
- if ("string" === typeof type.name)
3913
- return (
3914
- (payload = type.env),
3915
- describeBuiltInComponentFrame(
3916
- type.name + (payload ? " [" + payload + "]" : "")
3917
- )
3918
- );
3912
+ if ("string" === typeof type.name) {
3913
+ a: {
3914
+ payload = type.name;
3915
+ lazyComponent = type.env;
3916
+ var location = type.debugLocation;
3917
+ if (
3918
+ null != location &&
3919
+ ((type = Error.prepareStackTrace),
3920
+ (Error.prepareStackTrace = prepareStackTrace),
3921
+ (location = location.stack),
3922
+ (Error.prepareStackTrace = type),
3923
+ location.startsWith("Error: react-stack-top-frame\n") &&
3924
+ (location = location.slice(29)),
3925
+ (type = location.indexOf("\n")),
3926
+ -1 !== type && (location = location.slice(type + 1)),
3927
+ (type = location.indexOf("react-stack-bottom-frame")),
3928
+ -1 !== type && (type = location.lastIndexOf("\n", type)),
3929
+ (type = -1 !== type ? (location = location.slice(0, type)) : ""),
3930
+ (location = type.lastIndexOf("\n")),
3931
+ (type = -1 === location ? type : type.slice(location + 1)),
3932
+ -1 !== type.indexOf(payload))
3933
+ ) {
3934
+ payload = "\n" + type;
3935
+ break a;
3936
+ }
3937
+ payload = describeBuiltInComponentFrame(
3938
+ payload + (lazyComponent ? " [" + lazyComponent + "]" : "")
3939
+ );
3940
+ }
3941
+ return payload;
3942
+ }
3919
3943
  }
3920
3944
  switch (type) {
3921
3945
  case REACT_SUSPENSE_LIST_TYPE:
@@ -6808,11 +6832,11 @@ function addToReplayParent(node, parentKeyPath, trackedPostpones) {
6808
6832
  }
6809
6833
  function ensureCorrectIsomorphicReactVersion() {
6810
6834
  var isomorphicReactPackageVersion = React.version;
6811
- if ("19.2.0-canary-fa3feba6-20250623" !== isomorphicReactPackageVersion)
6835
+ if ("19.2.0-canary-cee7939b-20250625" !== isomorphicReactPackageVersion)
6812
6836
  throw Error(
6813
6837
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
6814
6838
  (isomorphicReactPackageVersion +
6815
- "\n - react-dom: 19.2.0-canary-fa3feba6-20250623\nLearn more: https://react.dev/warnings/version-mismatch")
6839
+ "\n - react-dom: 19.2.0-canary-cee7939b-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
6816
6840
  );
6817
6841
  }
6818
6842
  ensureCorrectIsomorphicReactVersion();
@@ -7150,4 +7174,4 @@ exports.renderToReadableStream = function (children, options) {
7150
7174
  startWork(request);
7151
7175
  });
7152
7176
  };
7153
- exports.version = "19.2.0-canary-fa3feba6-20250623";
7177
+ exports.version = "19.2.0-canary-cee7939b-20250625";