react-dom 19.0.0-rc-bf3a29d097-20240603 → 19.0.0-rc-1df34bdf62-20240605

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.
@@ -115,7 +115,7 @@ function warn(format) {
115
115
  args[_key - 1] = arguments[_key];
116
116
  }
117
117
 
118
- printWarning('warn', format, args);
118
+ printWarning('warn', format, args, new Error('react-stack-top-frame'));
119
119
  }
120
120
  }
121
121
  }
@@ -126,12 +126,12 @@ function error(format) {
126
126
  args[_key2 - 1] = arguments[_key2];
127
127
  }
128
128
 
129
- printWarning('error', format, args);
129
+ printWarning('error', format, args, new Error('react-stack-top-frame'));
130
130
  }
131
131
  }
132
132
  } // eslint-disable-next-line react-internal/no-production-logging
133
133
 
134
- function printWarning(level, format, args) {
134
+ function printWarning(level, format, args, currentStack) {
135
135
  // When changing this logic, you might want to also
136
136
  // update consoleWithStackDev.www.js as well.
137
137
  {
@@ -141,7 +141,7 @@ function printWarning(level, format, args) {
141
141
  // We only add the current stack to the console when createTask is not supported.
142
142
  // Since createTask requires DevTools to be open to work, this means that stacks
143
143
  // can be lost while DevTools isn't open but we can't detect this.
144
- var stack = ReactSharedInternals.getCurrentStack();
144
+ var stack = ReactSharedInternals.getCurrentStack(currentStack);
145
145
 
146
146
  if (stack !== '') {
147
147
  format += '%s';
@@ -1007,18 +1007,28 @@ function describeFunctionComponentFrame(fn) {
1007
1007
  /** @noinline */
1008
1008
 
1009
1009
  function callComponentInDEV(Component, props, secondArg) {
1010
+ var wasRendering = isRendering;
1010
1011
  setIsRendering(true);
1011
- var result = Component(props, secondArg);
1012
- setIsRendering(false);
1013
- return result;
1012
+
1013
+ try {
1014
+ var result = Component(props, secondArg);
1015
+ return result;
1016
+ } finally {
1017
+ setIsRendering(wasRendering);
1018
+ }
1014
1019
  }
1015
1020
  /** @noinline */
1016
1021
 
1017
1022
  function callRenderInDEV(instance) {
1023
+ var wasRendering = isRendering;
1018
1024
  setIsRendering(true);
1019
- var result = instance.render();
1020
- setIsRendering(false);
1021
- return result;
1025
+
1026
+ try {
1027
+ var result = instance.render();
1028
+ return result;
1029
+ } finally {
1030
+ setIsRendering(wasRendering);
1031
+ }
1022
1032
  }
1023
1033
  /** @noinline */
1024
1034
 
@@ -1120,7 +1130,7 @@ function getCurrentParentStackInDev() {
1120
1130
  }
1121
1131
  }
1122
1132
 
1123
- function getCurrentFiberStackInDev() {
1133
+ function getCurrentFiberStackInDev(stack) {
1124
1134
  {
1125
1135
  if (current === null) {
1126
1136
  return '';
@@ -36414,7 +36424,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
36414
36424
  return root;
36415
36425
  }
36416
36426
 
36417
- var ReactVersion = '19.0.0-rc-bf3a29d097-20240603';
36427
+ var ReactVersion = '19.0.0-rc-1df34bdf62-20240605';
36418
36428
 
36419
36429
  // Might add PROFILE later.
36420
36430
 
@@ -14626,14 +14626,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
14626
14626
  };
14627
14627
  var isomorphicReactPackageVersion$jscomp$inline_1651 = React.version;
14628
14628
  if (
14629
- "19.0.0-rc-bf3a29d097-20240603" !==
14629
+ "19.0.0-rc-1df34bdf62-20240605" !==
14630
14630
  isomorphicReactPackageVersion$jscomp$inline_1651
14631
14631
  )
14632
14632
  throw Error(
14633
14633
  formatProdErrorMessage(
14634
14634
  527,
14635
14635
  isomorphicReactPackageVersion$jscomp$inline_1651,
14636
- "19.0.0-rc-bf3a29d097-20240603"
14636
+ "19.0.0-rc-1df34bdf62-20240605"
14637
14637
  )
14638
14638
  );
14639
14639
  ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -14652,7 +14652,7 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
14652
14652
  var devToolsConfig$jscomp$inline_1658 = {
14653
14653
  findFiberByHostInstance: getClosestInstanceFromNode,
14654
14654
  bundleType: 0,
14655
- version: "19.0.0-rc-bf3a29d097-20240603",
14655
+ version: "19.0.0-rc-1df34bdf62-20240605",
14656
14656
  rendererPackageName: "react-dom"
14657
14657
  };
14658
14658
  var internals$jscomp$inline_2036 = {
@@ -14682,7 +14682,7 @@ var internals$jscomp$inline_2036 = {
14682
14682
  scheduleRoot: null,
14683
14683
  setRefreshHandler: null,
14684
14684
  getCurrentFiber: null,
14685
- reconcilerVersion: "19.0.0-rc-bf3a29d097-20240603"
14685
+ reconcilerVersion: "19.0.0-rc-1df34bdf62-20240605"
14686
14686
  };
14687
14687
  if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
14688
14688
  var hook$jscomp$inline_2037 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -14788,4 +14788,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
14788
14788
  listenToAllSupportedEvents(container);
14789
14789
  return new ReactDOMHydrationRoot(initialChildren);
14790
14790
  };
14791
- exports.version = "19.0.0-rc-bf3a29d097-20240603";
14791
+ exports.version = "19.0.0-rc-1df34bdf62-20240605";
@@ -115,7 +115,7 @@ function warn(format) {
115
115
  args[_key - 1] = arguments[_key];
116
116
  }
117
117
 
118
- printWarning('warn', format, args);
118
+ printWarning('warn', format, args, new Error('react-stack-top-frame'));
119
119
  }
120
120
  }
121
121
  }
@@ -126,12 +126,12 @@ function error(format) {
126
126
  args[_key2 - 1] = arguments[_key2];
127
127
  }
128
128
 
129
- printWarning('error', format, args);
129
+ printWarning('error', format, args, new Error('react-stack-top-frame'));
130
130
  }
131
131
  }
132
132
  } // eslint-disable-next-line react-internal/no-production-logging
133
133
 
134
- function printWarning(level, format, args) {
134
+ function printWarning(level, format, args, currentStack) {
135
135
  // When changing this logic, you might want to also
136
136
  // update consoleWithStackDev.www.js as well.
137
137
  {
@@ -141,7 +141,7 @@ function printWarning(level, format, args) {
141
141
  // We only add the current stack to the console when createTask is not supported.
142
142
  // Since createTask requires DevTools to be open to work, this means that stacks
143
143
  // can be lost while DevTools isn't open but we can't detect this.
144
- var stack = ReactSharedInternals.getCurrentStack();
144
+ var stack = ReactSharedInternals.getCurrentStack(currentStack);
145
145
 
146
146
  if (stack !== '') {
147
147
  format += '%s';
@@ -1007,18 +1007,28 @@ function describeFunctionComponentFrame(fn) {
1007
1007
  /** @noinline */
1008
1008
 
1009
1009
  function callComponentInDEV(Component, props, secondArg) {
1010
+ var wasRendering = isRendering;
1010
1011
  setIsRendering(true);
1011
- var result = Component(props, secondArg);
1012
- setIsRendering(false);
1013
- return result;
1012
+
1013
+ try {
1014
+ var result = Component(props, secondArg);
1015
+ return result;
1016
+ } finally {
1017
+ setIsRendering(wasRendering);
1018
+ }
1014
1019
  }
1015
1020
  /** @noinline */
1016
1021
 
1017
1022
  function callRenderInDEV(instance) {
1023
+ var wasRendering = isRendering;
1018
1024
  setIsRendering(true);
1019
- var result = instance.render();
1020
- setIsRendering(false);
1021
- return result;
1025
+
1026
+ try {
1027
+ var result = instance.render();
1028
+ return result;
1029
+ } finally {
1030
+ setIsRendering(wasRendering);
1031
+ }
1022
1032
  }
1023
1033
  /** @noinline */
1024
1034
 
@@ -1120,7 +1130,7 @@ function getCurrentParentStackInDev() {
1120
1130
  }
1121
1131
  }
1122
1132
 
1123
- function getCurrentFiberStackInDev() {
1133
+ function getCurrentFiberStackInDev(stack) {
1124
1134
  {
1125
1135
  if (current === null) {
1126
1136
  return '';
@@ -36462,7 +36472,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
36462
36472
  return root;
36463
36473
  }
36464
36474
 
36465
- var ReactVersion = '19.0.0-rc-bf3a29d097-20240603';
36475
+ var ReactVersion = '19.0.0-rc-1df34bdf62-20240605';
36466
36476
 
36467
36477
  function createPortal$1(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
36468
36478
  implementation) {
@@ -15336,14 +15336,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
15336
15336
  };
15337
15337
  var isomorphicReactPackageVersion$jscomp$inline_1739 = React.version;
15338
15338
  if (
15339
- "19.0.0-rc-bf3a29d097-20240603" !==
15339
+ "19.0.0-rc-1df34bdf62-20240605" !==
15340
15340
  isomorphicReactPackageVersion$jscomp$inline_1739
15341
15341
  )
15342
15342
  throw Error(
15343
15343
  formatProdErrorMessage(
15344
15344
  527,
15345
15345
  isomorphicReactPackageVersion$jscomp$inline_1739,
15346
- "19.0.0-rc-bf3a29d097-20240603"
15346
+ "19.0.0-rc-1df34bdf62-20240605"
15347
15347
  )
15348
15348
  );
15349
15349
  ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -15362,7 +15362,7 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
15362
15362
  var devToolsConfig$jscomp$inline_1746 = {
15363
15363
  findFiberByHostInstance: getClosestInstanceFromNode,
15364
15364
  bundleType: 0,
15365
- version: "19.0.0-rc-bf3a29d097-20240603",
15365
+ version: "19.0.0-rc-1df34bdf62-20240605",
15366
15366
  rendererPackageName: "react-dom"
15367
15367
  };
15368
15368
  (function (internals) {
@@ -15405,7 +15405,7 @@ var devToolsConfig$jscomp$inline_1746 = {
15405
15405
  scheduleRoot: null,
15406
15406
  setRefreshHandler: null,
15407
15407
  getCurrentFiber: null,
15408
- reconcilerVersion: "19.0.0-rc-bf3a29d097-20240603"
15408
+ reconcilerVersion: "19.0.0-rc-1df34bdf62-20240605"
15409
15409
  });
15410
15410
  function noop() {}
15411
15411
  function getCrossOriginStringAs(as, input) {
@@ -15659,7 +15659,7 @@ exports.useFormState = function (action, initialState, permalink) {
15659
15659
  exports.useFormStatus = function () {
15660
15660
  return ReactSharedInternals.H.useHostTransitionStatus();
15661
15661
  };
15662
- exports.version = "19.0.0-rc-bf3a29d097-20240603";
15662
+ exports.version = "19.0.0-rc-1df34bdf62-20240605";
15663
15663
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
15664
15664
  "function" ===
15665
15665
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -17,7 +17,7 @@ if (process.env.NODE_ENV !== "production") {
17
17
  var React = require('react');
18
18
  var ReactDOM = require('react-dom');
19
19
 
20
- var ReactVersion = '19.0.0-rc-bf3a29d097-20240603';
20
+ var ReactVersion = '19.0.0-rc-1df34bdf62-20240605';
21
21
 
22
22
  var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
23
23
 
@@ -41,7 +41,7 @@ function warn(format) {
41
41
  args[_key - 1] = arguments[_key];
42
42
  }
43
43
 
44
- printWarning('warn', format, args);
44
+ printWarning('warn', format, args, new Error('react-stack-top-frame'));
45
45
  }
46
46
  }
47
47
  }
@@ -52,12 +52,12 @@ function error(format) {
52
52
  args[_key2 - 1] = arguments[_key2];
53
53
  }
54
54
 
55
- printWarning('error', format, args);
55
+ printWarning('error', format, args, new Error('react-stack-top-frame'));
56
56
  }
57
57
  }
58
58
  } // eslint-disable-next-line react-internal/no-production-logging
59
59
 
60
- function printWarning(level, format, args) {
60
+ function printWarning(level, format, args, currentStack) {
61
61
  // When changing this logic, you might want to also
62
62
  // update consoleWithStackDev.www.js as well.
63
63
  {
@@ -67,7 +67,7 @@ function printWarning(level, format, args) {
67
67
  // We only add the current stack to the console when createTask is not supported.
68
68
  // Since createTask requires DevTools to be open to work, this means that stacks
69
69
  // can be lost while DevTools isn't open but we can't detect this.
70
- var stack = ReactSharedInternals.getCurrentStack();
70
+ var stack = ReactSharedInternals.getCurrentStack(currentStack);
71
71
 
72
72
  if (stack !== '') {
73
73
  format += '%s';
@@ -5469,4 +5469,4 @@ exports.renderToString = function (children, options) {
5469
5469
  'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
5470
5470
  );
5471
5471
  };
5472
- exports.version = "19.0.0-rc-bf3a29d097-20240603";
5472
+ exports.version = "19.0.0-rc-1df34bdf62-20240605";
@@ -17,7 +17,7 @@ if (process.env.NODE_ENV !== "production") {
17
17
  var React = require('react');
18
18
  var ReactDOM = require('react-dom');
19
19
 
20
- var ReactVersion = '19.0.0-rc-bf3a29d097-20240603';
20
+ var ReactVersion = '19.0.0-rc-1df34bdf62-20240605';
21
21
 
22
22
  var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
23
23
 
@@ -41,7 +41,7 @@ function warn(format) {
41
41
  args[_key - 1] = arguments[_key];
42
42
  }
43
43
 
44
- printWarning('warn', format, args);
44
+ printWarning('warn', format, args, new Error('react-stack-top-frame'));
45
45
  }
46
46
  }
47
47
  }
@@ -52,12 +52,12 @@ function error(format) {
52
52
  args[_key2 - 1] = arguments[_key2];
53
53
  }
54
54
 
55
- printWarning('error', format, args);
55
+ printWarning('error', format, args, new Error('react-stack-top-frame'));
56
56
  }
57
57
  }
58
58
  } // eslint-disable-next-line react-internal/no-production-logging
59
59
 
60
- function printWarning(level, format, args) {
60
+ function printWarning(level, format, args, currentStack) {
61
61
  // When changing this logic, you might want to also
62
62
  // update consoleWithStackDev.www.js as well.
63
63
  {
@@ -67,7 +67,7 @@ function printWarning(level, format, args) {
67
67
  // We only add the current stack to the console when createTask is not supported.
68
68
  // Since createTask requires DevTools to be open to work, this means that stacks
69
69
  // can be lost while DevTools isn't open but we can't detect this.
70
- var stack = ReactSharedInternals.getCurrentStack();
70
+ var stack = ReactSharedInternals.getCurrentStack(currentStack);
71
71
 
72
72
  if (stack !== '') {
73
73
  format += '%s';
@@ -5551,4 +5551,4 @@ exports.renderToString = function (children, options) {
5551
5551
  'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToPipeableStream" which supports Suspense on the server'
5552
5552
  );
5553
5553
  };
5554
- exports.version = "19.0.0-rc-bf3a29d097-20240603";
5554
+ exports.version = "19.0.0-rc-1df34bdf62-20240605";
@@ -17,7 +17,7 @@ if (process.env.NODE_ENV !== "production") {
17
17
  var React = require('react');
18
18
  var ReactDOM = require('react-dom');
19
19
 
20
- var reactDOMPackageVersion = '19.0.0-rc-bf3a29d097-20240603';
20
+ var reactDOMPackageVersion = '19.0.0-rc-1df34bdf62-20240605';
21
21
 
22
22
  var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
23
23
 
@@ -41,7 +41,7 @@ function warn(format) {
41
41
  args[_key - 1] = arguments[_key];
42
42
  }
43
43
 
44
- printWarning('warn', format, args);
44
+ printWarning('warn', format, args, new Error('react-stack-top-frame'));
45
45
  }
46
46
  }
47
47
  }
@@ -52,12 +52,12 @@ function error(format) {
52
52
  args[_key2 - 1] = arguments[_key2];
53
53
  }
54
54
 
55
- printWarning('error', format, args);
55
+ printWarning('error', format, args, new Error('react-stack-top-frame'));
56
56
  }
57
57
  }
58
58
  } // eslint-disable-next-line react-internal/no-production-logging
59
59
 
60
- function printWarning(level, format, args) {
60
+ function printWarning(level, format, args, currentStack) {
61
61
  // When changing this logic, you might want to also
62
62
  // update consoleWithStackDev.www.js as well.
63
63
  {
@@ -67,7 +67,7 @@ function printWarning(level, format, args) {
67
67
  // We only add the current stack to the console when createTask is not supported.
68
68
  // Since createTask requires DevTools to be open to work, this means that stacks
69
69
  // can be lost while DevTools isn't open but we can't detect this.
70
- var stack = ReactSharedInternals.getCurrentStack();
70
+ var stack = ReactSharedInternals.getCurrentStack(currentStack);
71
71
 
72
72
  if (stack !== '') {
73
73
  format += '%s';
@@ -5717,14 +5717,14 @@ function abort(request, reason) {
5717
5717
  }
5718
5718
  var isomorphicReactPackageVersion$jscomp$inline_728 = React.version;
5719
5719
  if (
5720
- "19.0.0-rc-bf3a29d097-20240603" !==
5720
+ "19.0.0-rc-1df34bdf62-20240605" !==
5721
5721
  isomorphicReactPackageVersion$jscomp$inline_728
5722
5722
  )
5723
5723
  throw Error(
5724
5724
  formatProdErrorMessage(
5725
5725
  527,
5726
5726
  isomorphicReactPackageVersion$jscomp$inline_728,
5727
- "19.0.0-rc-bf3a29d097-20240603"
5727
+ "19.0.0-rc-1df34bdf62-20240605"
5728
5728
  )
5729
5729
  );
5730
5730
  exports.renderToReadableStream = function (children, options) {
@@ -5816,4 +5816,4 @@ exports.renderToReadableStream = function (children, options) {
5816
5816
  safelyEmitEarlyPreloads(request, 0 === request.pendingRootTasks);
5817
5817
  });
5818
5818
  };
5819
- exports.version = "19.0.0-rc-bf3a29d097-20240603";
5819
+ exports.version = "19.0.0-rc-1df34bdf62-20240605";
@@ -13,7 +13,7 @@
13
13
  var React = require('react');
14
14
  var ReactDOM = require('react-dom');
15
15
 
16
- var reactDOMPackageVersion = '19.0.0-rc-bf3a29d097-20240603';
16
+ var reactDOMPackageVersion = '19.0.0-rc-1df34bdf62-20240605';
17
17
 
18
18
  var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
19
19
 
@@ -37,7 +37,7 @@ function warn(format) {
37
37
  args[_key - 1] = arguments[_key];
38
38
  }
39
39
 
40
- printWarning('warn', format, args);
40
+ printWarning('warn', format, args, new Error('react-stack-top-frame'));
41
41
  }
42
42
  }
43
43
  }
@@ -48,12 +48,12 @@ function error(format) {
48
48
  args[_key2 - 1] = arguments[_key2];
49
49
  }
50
50
 
51
- printWarning('error', format, args);
51
+ printWarning('error', format, args, new Error('react-stack-top-frame'));
52
52
  }
53
53
  }
54
54
  } // eslint-disable-next-line react-internal/no-production-logging
55
55
 
56
- function printWarning(level, format, args) {
56
+ function printWarning(level, format, args, currentStack) {
57
57
  // When changing this logic, you might want to also
58
58
  // update consoleWithStackDev.www.js as well.
59
59
  {
@@ -63,7 +63,7 @@ function printWarning(level, format, args) {
63
63
  // We only add the current stack to the console when createTask is not supported.
64
64
  // Since createTask requires DevTools to be open to work, this means that stacks
65
65
  // can be lost while DevTools isn't open but we can't detect this.
66
- var stack = ReactSharedInternals.getCurrentStack();
66
+ var stack = ReactSharedInternals.getCurrentStack(currentStack);
67
67
 
68
68
  if (stack !== '') {
69
69
  format += '%s';
@@ -5430,13 +5430,13 @@ function abort(request, reason) {
5430
5430
  }
5431
5431
  var isomorphicReactPackageVersion$jscomp$inline_724 = React.version;
5432
5432
  if (
5433
- "19.0.0-rc-bf3a29d097-20240603" !==
5433
+ "19.0.0-rc-1df34bdf62-20240605" !==
5434
5434
  isomorphicReactPackageVersion$jscomp$inline_724
5435
5435
  )
5436
5436
  throw Error(
5437
5437
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
5438
5438
  (isomorphicReactPackageVersion$jscomp$inline_724 +
5439
- "\n - react-dom: 19.0.0-rc-bf3a29d097-20240603\nLearn more: https://react.dev/warnings/version-mismatch")
5439
+ "\n - react-dom: 19.0.0-rc-1df34bdf62-20240605\nLearn more: https://react.dev/warnings/version-mismatch")
5440
5440
  );
5441
5441
  exports.renderToReadableStream = function (children, options) {
5442
5442
  return new Promise(function (resolve, reject) {
@@ -5527,4 +5527,4 @@ exports.renderToReadableStream = function (children, options) {
5527
5527
  safelyEmitEarlyPreloads(request, 0 === request.pendingRootTasks);
5528
5528
  });
5529
5529
  };
5530
- exports.version = "19.0.0-rc-bf3a29d097-20240603";
5530
+ exports.version = "19.0.0-rc-1df34bdf62-20240605";
@@ -17,7 +17,7 @@ if (process.env.NODE_ENV !== "production") {
17
17
  var React = require('react');
18
18
  var ReactDOM = require('react-dom');
19
19
 
20
- var reactDOMPackageVersion = '19.0.0-rc-bf3a29d097-20240603';
20
+ var reactDOMPackageVersion = '19.0.0-rc-1df34bdf62-20240605';
21
21
 
22
22
  var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
23
23
 
@@ -41,7 +41,7 @@ function warn(format) {
41
41
  args[_key - 1] = arguments[_key];
42
42
  }
43
43
 
44
- printWarning('warn', format, args);
44
+ printWarning('warn', format, args, new Error('react-stack-top-frame'));
45
45
  }
46
46
  }
47
47
  }
@@ -52,12 +52,12 @@ function error(format) {
52
52
  args[_key2 - 1] = arguments[_key2];
53
53
  }
54
54
 
55
- printWarning('error', format, args);
55
+ printWarning('error', format, args, new Error('react-stack-top-frame'));
56
56
  }
57
57
  }
58
58
  } // eslint-disable-next-line react-internal/no-production-logging
59
59
 
60
- function printWarning(level, format, args) {
60
+ function printWarning(level, format, args, currentStack) {
61
61
  // When changing this logic, you might want to also
62
62
  // update consoleWithStackDev.www.js as well.
63
63
  {
@@ -67,7 +67,7 @@ function printWarning(level, format, args) {
67
67
  // We only add the current stack to the console when createTask is not supported.
68
68
  // Since createTask requires DevTools to be open to work, this means that stacks
69
69
  // can be lost while DevTools isn't open but we can't detect this.
70
- var stack = ReactSharedInternals.getCurrentStack();
70
+ var stack = ReactSharedInternals.getCurrentStack(currentStack);
71
71
 
72
72
  if (stack !== '') {
73
73
  format += '%s';
@@ -5832,13 +5832,13 @@ function abort(request, reason) {
5832
5832
  }
5833
5833
  var isomorphicReactPackageVersion$jscomp$inline_728 = React.version;
5834
5834
  if (
5835
- "19.0.0-rc-bf3a29d097-20240603" !==
5835
+ "19.0.0-rc-1df34bdf62-20240605" !==
5836
5836
  isomorphicReactPackageVersion$jscomp$inline_728
5837
5837
  )
5838
5838
  throw Error(
5839
5839
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
5840
5840
  (isomorphicReactPackageVersion$jscomp$inline_728 +
5841
- "\n - react-dom: 19.0.0-rc-bf3a29d097-20240603\nLearn more: https://react.dev/warnings/version-mismatch")
5841
+ "\n - react-dom: 19.0.0-rc-1df34bdf62-20240605\nLearn more: https://react.dev/warnings/version-mismatch")
5842
5842
  );
5843
5843
  exports.renderToReadableStream = function (children, options) {
5844
5844
  return new Promise(function (resolve, reject) {
@@ -5926,4 +5926,4 @@ exports.renderToReadableStream = function (children, options) {
5926
5926
  startWork(request);
5927
5927
  });
5928
5928
  };
5929
- exports.version = "19.0.0-rc-bf3a29d097-20240603";
5929
+ exports.version = "19.0.0-rc-1df34bdf62-20240605";
@@ -20,7 +20,7 @@ var crypto = require('crypto');
20
20
  var async_hooks = require('async_hooks');
21
21
  var ReactDOM = require('react-dom');
22
22
 
23
- var reactDOMPackageVersion = '19.0.0-rc-bf3a29d097-20240603';
23
+ var reactDOMPackageVersion = '19.0.0-rc-1df34bdf62-20240605';
24
24
 
25
25
  var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
26
26
 
@@ -44,7 +44,7 @@ function warn(format) {
44
44
  args[_key - 1] = arguments[_key];
45
45
  }
46
46
 
47
- printWarning('warn', format, args);
47
+ printWarning('warn', format, args, new Error('react-stack-top-frame'));
48
48
  }
49
49
  }
50
50
  }
@@ -55,12 +55,12 @@ function error(format) {
55
55
  args[_key2 - 1] = arguments[_key2];
56
56
  }
57
57
 
58
- printWarning('error', format, args);
58
+ printWarning('error', format, args, new Error('react-stack-top-frame'));
59
59
  }
60
60
  }
61
61
  } // eslint-disable-next-line react-internal/no-production-logging
62
62
 
63
- function printWarning(level, format, args) {
63
+ function printWarning(level, format, args, currentStack) {
64
64
  // When changing this logic, you might want to also
65
65
  // update consoleWithStackDev.www.js as well.
66
66
  {
@@ -70,7 +70,7 @@ function printWarning(level, format, args) {
70
70
  // We only add the current stack to the console when createTask is not supported.
71
71
  // Since createTask requires DevTools to be open to work, this means that stacks
72
72
  // can be lost while DevTools isn't open but we can't detect this.
73
- var stack = ReactSharedInternals.getCurrentStack();
73
+ var stack = ReactSharedInternals.getCurrentStack(currentStack);
74
74
 
75
75
  if (stack !== '') {
76
76
  format += '%s';
@@ -5456,13 +5456,13 @@ function abort(request, reason) {
5456
5456
  }
5457
5457
  var isomorphicReactPackageVersion$jscomp$inline_751 = React.version;
5458
5458
  if (
5459
- "19.0.0-rc-bf3a29d097-20240603" !==
5459
+ "19.0.0-rc-1df34bdf62-20240605" !==
5460
5460
  isomorphicReactPackageVersion$jscomp$inline_751
5461
5461
  )
5462
5462
  throw Error(
5463
5463
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
5464
5464
  (isomorphicReactPackageVersion$jscomp$inline_751 +
5465
- "\n - react-dom: 19.0.0-rc-bf3a29d097-20240603\nLearn more: https://react.dev/warnings/version-mismatch")
5465
+ "\n - react-dom: 19.0.0-rc-1df34bdf62-20240605\nLearn more: https://react.dev/warnings/version-mismatch")
5466
5466
  );
5467
5467
  function createDrainHandler(destination, request) {
5468
5468
  return function () {
@@ -5789,4 +5789,4 @@ exports.renderToPipeableStream = function (children, options) {
5789
5789
  }
5790
5790
  };
5791
5791
  };
5792
- exports.version = "19.0.0-rc-bf3a29d097-20240603";
5792
+ exports.version = "19.0.0-rc-1df34bdf62-20240605";
@@ -25,12 +25,12 @@ function error(format) {
25
25
  args[_key2 - 1] = arguments[_key2];
26
26
  }
27
27
 
28
- printWarning('error', format, args);
28
+ printWarning('error', format, args, new Error('react-stack-top-frame'));
29
29
  }
30
30
  }
31
31
  } // eslint-disable-next-line react-internal/no-production-logging
32
32
 
33
- function printWarning(level, format, args) {
33
+ function printWarning(level, format, args, currentStack) {
34
34
  // When changing this logic, you might want to also
35
35
  // update consoleWithStackDev.www.js as well.
36
36
  {
@@ -40,7 +40,7 @@ function printWarning(level, format, args) {
40
40
  // We only add the current stack to the console when createTask is not supported.
41
41
  // Since createTask requires DevTools to be open to work, this means that stacks
42
42
  // can be lost while DevTools isn't open but we can't detect this.
43
- var stack = ReactSharedInternals.getCurrentStack();
43
+ var stack = ReactSharedInternals.getCurrentStack(currentStack);
44
44
 
45
45
  if (stack !== '') {
46
46
  format += '%s';
@@ -42,12 +42,12 @@ function error(format) {
42
42
  args[_key2 - 1] = arguments[_key2];
43
43
  }
44
44
 
45
- printWarning('error', format, args);
45
+ printWarning('error', format, args, new Error('react-stack-top-frame'));
46
46
  }
47
47
  }
48
48
  } // eslint-disable-next-line react-internal/no-production-logging
49
49
 
50
- function printWarning(level, format, args) {
50
+ function printWarning(level, format, args, currentStack) {
51
51
  // When changing this logic, you might want to also
52
52
  // update consoleWithStackDev.www.js as well.
53
53
  {
@@ -57,7 +57,7 @@ function printWarning(level, format, args) {
57
57
  // We only add the current stack to the console when createTask is not supported.
58
58
  // Since createTask requires DevTools to be open to work, this means that stacks
59
59
  // can be lost while DevTools isn't open but we can't detect this.
60
- var stack = ReactSharedInternals.getCurrentStack();
60
+ var stack = ReactSharedInternals.getCurrentStack(currentStack);
61
61
 
62
62
  if (stack !== '') {
63
63
  format += '%s';
@@ -142,7 +142,7 @@ var Internals = {
142
142
  findDOMNode: null
143
143
  };
144
144
 
145
- var ReactVersion = '19.0.0-rc-bf3a29d097-20240603';
145
+ var ReactVersion = '19.0.0-rc-1df34bdf62-20240605';
146
146
 
147
147
  /**
148
148
  * HTML nodeType values that represent the type of the node
@@ -206,4 +206,4 @@ exports.useFormState = function (action, initialState, permalink) {
206
206
  exports.useFormStatus = function () {
207
207
  return ReactSharedInternals.H.useHostTransitionStatus();
208
208
  };
209
- exports.version = "19.0.0-rc-bf3a29d097-20240603";
209
+ exports.version = "19.0.0-rc-1df34bdf62-20240605";
@@ -16,7 +16,7 @@ if (process.env.NODE_ENV !== "production") {
16
16
 
17
17
  var React = require('react');
18
18
 
19
- var ReactVersion = '19.0.0-rc-bf3a29d097-20240603';
19
+ var ReactVersion = '19.0.0-rc-1df34bdf62-20240605';
20
20
 
21
21
  var ReactSharedInternalsServer = // $FlowFixMe: It's defined in the one we resolve to.
22
22
  React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
@@ -32,12 +32,12 @@ function error(format) {
32
32
  args[_key2 - 1] = arguments[_key2];
33
33
  }
34
34
 
35
- printWarning('error', format, args);
35
+ printWarning('error', format, args, new Error('react-stack-top-frame'));
36
36
  }
37
37
  }
38
38
  } // eslint-disable-next-line react-internal/no-production-logging
39
39
 
40
- function printWarning(level, format, args) {
40
+ function printWarning(level, format, args, currentStack) {
41
41
  // When changing this logic, you might want to also
42
42
  // update consoleWithStackDev.www.js as well.
43
43
  {
@@ -47,7 +47,7 @@ function printWarning(level, format, args) {
47
47
  // We only add the current stack to the console when createTask is not supported.
48
48
  // Since createTask requires DevTools to be open to work, this means that stacks
49
49
  // can be lost while DevTools isn't open but we can't detect this.
50
- var stack = ReactSharedInternalsServer.getCurrentStack();
50
+ var stack = ReactSharedInternalsServer.getCurrentStack(currentStack);
51
51
 
52
52
  if (stack !== '') {
53
53
  format += '%s';
@@ -151,4 +151,4 @@ exports.preloadModule = function (href, options) {
151
151
  });
152
152
  } else Internals.d.m(href);
153
153
  };
154
- exports.version = "19.0.0-rc-bf3a29d097-20240603";
154
+ exports.version = "19.0.0-rc-1df34bdf62-20240605";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-dom",
3
- "version": "19.0.0-rc-bf3a29d097-20240603",
3
+ "version": "19.0.0-rc-1df34bdf62-20240605",
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-bf3a29d097-20240603"
20
+ "scheduler": "0.25.0-rc-1df34bdf62-20240605"
21
21
  },
22
22
  "peerDependencies": {
23
- "react": "19.0.0-rc-bf3a29d097-20240603"
23
+ "react": "19.0.0-rc-1df34bdf62-20240605"
24
24
  },
25
25
  "files": [
26
26
  "LICENSE",