react 19.0.0-rc-935180c7e0-20240524 → 19.0.0-rc-38e3b23483-20240529

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.
@@ -28,7 +28,7 @@ function error(format) {
28
28
  printWarning('error', format, args);
29
29
  }
30
30
  }
31
- }
31
+ } // eslint-disable-next-line react-internal/no-production-logging
32
32
 
33
33
  function printWarning(level, format, args) {
34
34
  // When changing this logic, you might want to also
@@ -37,6 +37,9 @@ function printWarning(level, format, args) {
37
37
  var isErrorLogger = format === '%s\n\n%s\n' || format === '%o\n\n%s\n\n%s\n';
38
38
 
39
39
  if (ReactSharedInternals.getCurrentStack) {
40
+ // We only add the current stack to the console when createTask is not supported.
41
+ // Since createTask requires DevTools to be open to work, this means that stacks
42
+ // can be lost while DevTools isn't open but we can't detect this.
40
43
  var stack = ReactSharedInternals.getCurrentStack();
41
44
 
42
45
  if (stack !== '') {
@@ -77,7 +77,7 @@ function error(format) {
77
77
  printWarning('error', format, args);
78
78
  }
79
79
  }
80
- }
80
+ } // eslint-disable-next-line react-internal/no-production-logging
81
81
 
82
82
  function printWarning(level, format, args) {
83
83
  // When changing this logic, you might want to also
@@ -86,6 +86,9 @@ function printWarning(level, format, args) {
86
86
  var isErrorLogger = format === '%s\n\n%s\n' || format === '%o\n\n%s\n\n%s\n';
87
87
 
88
88
  if (ReactSharedInternals.getCurrentStack) {
89
+ // We only add the current stack to the console when createTask is not supported.
90
+ // Since createTask requires DevTools to be open to work, this means that stacks
91
+ // can be lost while DevTools isn't open but we can't detect this.
89
92
  var stack = ReactSharedInternals.getCurrentStack();
90
93
 
91
94
  if (stack !== '') {
@@ -962,6 +965,10 @@ var didWarnAboutKeySpread = {};
962
965
  */
963
966
 
964
967
  function jsxDEV$1(type, config, maybeKey, isStaticChildren, source, self) {
968
+ return jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self);
969
+ }
970
+
971
+ function jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self, debugStack, debugTask) {
965
972
  {
966
973
  if (!isValidElementType(type)) {
967
974
  // This is an invalid element type.
@@ -82,7 +82,7 @@ function error(format) {
82
82
  printWarning('error', format, args);
83
83
  }
84
84
  }
85
- }
85
+ } // eslint-disable-next-line react-internal/no-production-logging
86
86
 
87
87
  function printWarning(level, format, args) {
88
88
  // When changing this logic, you might want to also
@@ -91,6 +91,9 @@ function printWarning(level, format, args) {
91
91
  var isErrorLogger = format === '%s\n\n%s\n' || format === '%o\n\n%s\n\n%s\n';
92
92
 
93
93
  if (ReactSharedInternalsServer.getCurrentStack) {
94
+ // We only add the current stack to the console when createTask is not supported.
95
+ // Since createTask requires DevTools to be open to work, this means that stacks
96
+ // can be lost while DevTools isn't open but we can't detect this.
94
97
  var stack = ReactSharedInternalsServer.getCurrentStack();
95
98
 
96
99
  if (stack !== '') {
@@ -973,13 +976,13 @@ function ReactElement(type, key, _ref, self, source, owner, props, debugStack, d
973
976
  function jsxProdSignatureRunningInDevWithDynamicChildren(type, config, maybeKey, source, self) {
974
977
  {
975
978
  var isStaticChildren = false;
976
- return jsxDEV$1(type, config, maybeKey, isStaticChildren, source, self);
979
+ return jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self);
977
980
  }
978
981
  }
979
982
  function jsxProdSignatureRunningInDevWithStaticChildren(type, config, maybeKey, source, self) {
980
983
  {
981
984
  var isStaticChildren = true;
982
- return jsxDEV$1(type, config, maybeKey, isStaticChildren, source, self);
985
+ return jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self);
983
986
  }
984
987
  }
985
988
  var didWarnAboutKeySpread = {};
@@ -991,6 +994,10 @@ var didWarnAboutKeySpread = {};
991
994
  */
992
995
 
993
996
  function jsxDEV$1(type, config, maybeKey, isStaticChildren, source, self) {
997
+ return jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self);
998
+ }
999
+
1000
+ function jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self, debugStack, debugTask) {
994
1001
  {
995
1002
  if (!isValidElementType(type)) {
996
1003
  // This is an invalid element type.
@@ -77,7 +77,7 @@ function error(format) {
77
77
  printWarning('error', format, args);
78
78
  }
79
79
  }
80
- }
80
+ } // eslint-disable-next-line react-internal/no-production-logging
81
81
 
82
82
  function printWarning(level, format, args) {
83
83
  // When changing this logic, you might want to also
@@ -86,6 +86,9 @@ function printWarning(level, format, args) {
86
86
  var isErrorLogger = format === '%s\n\n%s\n' || format === '%o\n\n%s\n\n%s\n';
87
87
 
88
88
  if (ReactSharedInternals.getCurrentStack) {
89
+ // We only add the current stack to the console when createTask is not supported.
90
+ // Since createTask requires DevTools to be open to work, this means that stacks
91
+ // can be lost while DevTools isn't open but we can't detect this.
89
92
  var stack = ReactSharedInternals.getCurrentStack();
90
93
 
91
94
  if (stack !== '') {
@@ -968,24 +971,18 @@ function ReactElement(type, key, _ref, self, source, owner, props, debugStack, d
968
971
  function jsxProdSignatureRunningInDevWithDynamicChildren(type, config, maybeKey, source, self) {
969
972
  {
970
973
  var isStaticChildren = false;
971
- return jsxDEV(type, config, maybeKey, isStaticChildren, source, self);
974
+ return jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self);
972
975
  }
973
976
  }
974
977
  function jsxProdSignatureRunningInDevWithStaticChildren(type, config, maybeKey, source, self) {
975
978
  {
976
979
  var isStaticChildren = true;
977
- return jsxDEV(type, config, maybeKey, isStaticChildren, source, self);
980
+ return jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self);
978
981
  }
979
982
  }
980
983
  var didWarnAboutKeySpread = {};
981
- /**
982
- * https://github.com/reactjs/rfcs/pull/107
983
- * @param {*} type
984
- * @param {object} props
985
- * @param {string} key
986
- */
987
984
 
988
- function jsxDEV(type, config, maybeKey, isStaticChildren, source, self) {
985
+ function jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self, debugStack, debugTask) {
989
986
  {
990
987
  if (!isValidElementType(type)) {
991
988
  // This is an invalid element type.
@@ -82,7 +82,7 @@ function error(format) {
82
82
  printWarning('error', format, args);
83
83
  }
84
84
  }
85
- }
85
+ } // eslint-disable-next-line react-internal/no-production-logging
86
86
 
87
87
  function printWarning(level, format, args) {
88
88
  // When changing this logic, you might want to also
@@ -91,6 +91,9 @@ function printWarning(level, format, args) {
91
91
  var isErrorLogger = format === '%s\n\n%s\n' || format === '%o\n\n%s\n\n%s\n';
92
92
 
93
93
  if (ReactSharedInternalsServer.getCurrentStack) {
94
+ // We only add the current stack to the console when createTask is not supported.
95
+ // Since createTask requires DevTools to be open to work, this means that stacks
96
+ // can be lost while DevTools isn't open but we can't detect this.
94
97
  var stack = ReactSharedInternalsServer.getCurrentStack();
95
98
 
96
99
  if (stack !== '') {
@@ -973,13 +976,13 @@ function ReactElement(type, key, _ref, self, source, owner, props, debugStack, d
973
976
  function jsxProdSignatureRunningInDevWithDynamicChildren(type, config, maybeKey, source, self) {
974
977
  {
975
978
  var isStaticChildren = false;
976
- return jsxDEV$1(type, config, maybeKey, isStaticChildren, source, self);
979
+ return jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self);
977
980
  }
978
981
  }
979
982
  function jsxProdSignatureRunningInDevWithStaticChildren(type, config, maybeKey, source, self) {
980
983
  {
981
984
  var isStaticChildren = true;
982
- return jsxDEV$1(type, config, maybeKey, isStaticChildren, source, self);
985
+ return jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self);
983
986
  }
984
987
  }
985
988
  var didWarnAboutKeySpread = {};
@@ -991,6 +994,10 @@ var didWarnAboutKeySpread = {};
991
994
  */
992
995
 
993
996
  function jsxDEV$1(type, config, maybeKey, isStaticChildren, source, self) {
997
+ return jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self);
998
+ }
999
+
1000
+ function jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self, debugStack, debugTask) {
994
1001
  {
995
1002
  if (!isValidElementType(type)) {
996
1003
  // This is an invalid element type.
@@ -20,7 +20,7 @@ if (
20
20
  ) {
21
21
  __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
22
22
  }
23
- var ReactVersion = '19.0.0-rc-935180c7e0-20240524';
23
+ var ReactVersion = '19.0.0-rc-38e3b23483-20240529';
24
24
 
25
25
  // -----------------------------------------------------------------------------
26
26
 
@@ -36,7 +36,7 @@ var enableRefAsProp = true;
36
36
  // This allows us to land breaking changes to remove legacy mode APIs in experimental builds
37
37
  // before removing them in stable in the next Major
38
38
 
39
- var disableLegacyMode = true;
39
+ var disableLegacyMode = true; // Make <Context> equivalent to <Context.Provider> instead of <Context.Consumer>
40
40
 
41
41
  var enableRenderableContext = true; // Enables the `initialValue` option for `useDeferredValue`
42
42
  // stuff. Intended to enable React core members to more easily debug scheduling
@@ -118,7 +118,7 @@ function error(format) {
118
118
  printWarning('error', format, args);
119
119
  }
120
120
  }
121
- }
121
+ } // eslint-disable-next-line react-internal/no-production-logging
122
122
 
123
123
  function printWarning(level, format, args) {
124
124
  // When changing this logic, you might want to also
@@ -127,6 +127,9 @@ function printWarning(level, format, args) {
127
127
  var isErrorLogger = format === '%s\n\n%s\n' || format === '%o\n\n%s\n\n%s\n';
128
128
 
129
129
  if (ReactSharedInternals.getCurrentStack) {
130
+ // We only add the current stack to the console when createTask is not supported.
131
+ // Since createTask requires DevTools to be open to work, this means that stacks
132
+ // can be lost while DevTools isn't open but we can't detect this.
130
133
  var stack = ReactSharedInternals.getCurrentStack();
131
134
 
132
135
  if (stack !== '') {
@@ -1224,6 +1227,7 @@ function ReactElement(type, key, _ref, self, source, owner, props, debugStack, d
1224
1227
  * See https://reactjs.org/docs/react-api.html#createelement
1225
1228
  */
1226
1229
 
1230
+
1227
1231
  function createElement(type, config, children) {
1228
1232
  {
1229
1233
  if (!isValidElementType(type)) {
@@ -2121,7 +2125,9 @@ function forwardRef(render) {
2121
2125
  // This kind of inner function is not used elsewhere so the side effect is okay.
2122
2126
 
2123
2127
  if (!render.name && !render.displayName) {
2124
- render.displayName = name;
2128
+ Object.defineProperty(render, 'name', {
2129
+ value: name
2130
+ });
2125
2131
  }
2126
2132
  }
2127
2133
  });
@@ -2161,7 +2167,9 @@ function memo(type, compare) {
2161
2167
  // This kind of inner function is not used elsewhere so the side effect is okay.
2162
2168
 
2163
2169
  if (!type.name && !type.displayName) {
2164
- type.displayName = name;
2170
+ Object.defineProperty(type, 'name', {
2171
+ value: name
2172
+ });
2165
2173
  }
2166
2174
  }
2167
2175
  });
@@ -536,4 +536,4 @@ exports.useSyncExternalStore = function (
536
536
  exports.useTransition = function () {
537
537
  return ReactSharedInternals.H.useTransition();
538
538
  };
539
- exports.version = "19.0.0-rc-935180c7e0-20240524";
539
+ exports.version = "19.0.0-rc-38e3b23483-20240529";
@@ -68,7 +68,7 @@ function error(format) {
68
68
  printWarning('error', format, args);
69
69
  }
70
70
  }
71
- }
71
+ } // eslint-disable-next-line react-internal/no-production-logging
72
72
 
73
73
  function printWarning(level, format, args) {
74
74
  // When changing this logic, you might want to also
@@ -77,6 +77,9 @@ function printWarning(level, format, args) {
77
77
  var isErrorLogger = format === '%s\n\n%s\n' || format === '%o\n\n%s\n\n%s\n';
78
78
 
79
79
  if (ReactSharedInternals.getCurrentStack) {
80
+ // We only add the current stack to the console when createTask is not supported.
81
+ // Since createTask requires DevTools to be open to work, this means that stacks
82
+ // can be lost while DevTools isn't open but we can't detect this.
80
83
  var stack = ReactSharedInternals.getCurrentStack();
81
84
 
82
85
  if (stack !== '') {
@@ -981,6 +984,7 @@ function ReactElement(type, key, _ref, self, source, owner, props, debugStack, d
981
984
  * See https://reactjs.org/docs/react-api.html#createelement
982
985
  */
983
986
 
987
+
984
988
  function createElement(type, config, children) {
985
989
  {
986
990
  if (!isValidElementType(type)) {
@@ -1822,7 +1826,9 @@ function forwardRef(render) {
1822
1826
  // This kind of inner function is not used elsewhere so the side effect is okay.
1823
1827
 
1824
1828
  if (!render.name && !render.displayName) {
1825
- render.displayName = name;
1829
+ Object.defineProperty(render, 'name', {
1830
+ value: name
1831
+ });
1826
1832
  }
1827
1833
  }
1828
1834
  });
@@ -1939,7 +1945,9 @@ function memo(type, compare) {
1939
1945
  // This kind of inner function is not used elsewhere so the side effect is okay.
1940
1946
 
1941
1947
  if (!type.name && !type.displayName) {
1942
- type.displayName = name;
1948
+ Object.defineProperty(type, 'name', {
1949
+ value: name
1950
+ });
1943
1951
  }
1944
1952
  }
1945
1953
  });
@@ -2130,7 +2138,7 @@ function warnAboutTransitionSubscriptions(prevTransition, currentTransition) {
2130
2138
 
2131
2139
  function noop() {}
2132
2140
 
2133
- var ReactVersion = '19.0.0-rc-935180c7e0-20240524';
2141
+ var ReactVersion = '19.0.0-rc-38e3b23483-20240529';
2134
2142
 
2135
2143
  var Children = {
2136
2144
  map: mapChildren,
@@ -476,4 +476,4 @@ exports.useId = function () {
476
476
  exports.useMemo = function (create, deps) {
477
477
  return ReactSharedInternals.H.useMemo(create, deps);
478
478
  };
479
- exports.version = "19.0.0-rc-935180c7e0-20240524";
479
+ exports.version = "19.0.0-rc-38e3b23483-20240529";
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "keywords": [
5
5
  "react"
6
6
  ],
7
- "version": "19.0.0-rc-935180c7e0-20240524",
7
+ "version": "19.0.0-rc-38e3b23483-20240529",
8
8
  "homepage": "https://react.dev/",
9
9
  "bugs": "https://github.com/facebook/react/issues",
10
10
  "license": "MIT",