react 19.2.0-canary-aad7c664-20250829 → 19.2.0-canary-bb6f0c8d-20250901
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.
- package/cjs/react-jsx-dev-runtime.development.js +17 -5
- package/cjs/react-jsx-dev-runtime.react-server.development.js +17 -5
- package/cjs/react-jsx-runtime.development.js +17 -5
- package/cjs/react-jsx-runtime.react-server.development.js +17 -5
- package/cjs/react.development.js +20 -11
- package/cjs/react.production.js +1 -1
- package/cjs/react.react-server.development.js +20 -11
- package/cjs/react.react-server.production.js +1 -1
- package/package.json +1 -1
@@ -265,11 +265,23 @@
|
|
265
265
|
);
|
266
266
|
}
|
267
267
|
function validateChildKeys(node) {
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
268
|
+
isValidElement(node)
|
269
|
+
? node._store && (node._store.validated = 1)
|
270
|
+
: "object" === typeof node &&
|
271
|
+
null !== node &&
|
272
|
+
node.$$typeof === REACT_LAZY_TYPE &&
|
273
|
+
("fulfilled" === node._payload.status
|
274
|
+
? isValidElement(node._payload.value) &&
|
275
|
+
node._payload.value._store &&
|
276
|
+
(node._payload.value._store.validated = 1)
|
277
|
+
: node._store && (node._store.validated = 1));
|
278
|
+
}
|
279
|
+
function isValidElement(object) {
|
280
|
+
return (
|
281
|
+
"object" === typeof object &&
|
282
|
+
null !== object &&
|
283
|
+
object.$$typeof === REACT_ELEMENT_TYPE
|
284
|
+
);
|
273
285
|
}
|
274
286
|
var React = require("react"),
|
275
287
|
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
@@ -265,11 +265,23 @@
|
|
265
265
|
);
|
266
266
|
}
|
267
267
|
function validateChildKeys(node) {
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
268
|
+
isValidElement(node)
|
269
|
+
? node._store && (node._store.validated = 1)
|
270
|
+
: "object" === typeof node &&
|
271
|
+
null !== node &&
|
272
|
+
node.$$typeof === REACT_LAZY_TYPE &&
|
273
|
+
("fulfilled" === node._payload.status
|
274
|
+
? isValidElement(node._payload.value) &&
|
275
|
+
node._payload.value._store &&
|
276
|
+
(node._payload.value._store.validated = 1)
|
277
|
+
: node._store && (node._store.validated = 1));
|
278
|
+
}
|
279
|
+
function isValidElement(object) {
|
280
|
+
return (
|
281
|
+
"object" === typeof object &&
|
282
|
+
null !== object &&
|
283
|
+
object.$$typeof === REACT_ELEMENT_TYPE
|
284
|
+
);
|
273
285
|
}
|
274
286
|
var React = require("react"),
|
275
287
|
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
@@ -265,11 +265,23 @@
|
|
265
265
|
);
|
266
266
|
}
|
267
267
|
function validateChildKeys(node) {
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
268
|
+
isValidElement(node)
|
269
|
+
? node._store && (node._store.validated = 1)
|
270
|
+
: "object" === typeof node &&
|
271
|
+
null !== node &&
|
272
|
+
node.$$typeof === REACT_LAZY_TYPE &&
|
273
|
+
("fulfilled" === node._payload.status
|
274
|
+
? isValidElement(node._payload.value) &&
|
275
|
+
node._payload.value._store &&
|
276
|
+
(node._payload.value._store.validated = 1)
|
277
|
+
: node._store && (node._store.validated = 1));
|
278
|
+
}
|
279
|
+
function isValidElement(object) {
|
280
|
+
return (
|
281
|
+
"object" === typeof object &&
|
282
|
+
null !== object &&
|
283
|
+
object.$$typeof === REACT_ELEMENT_TYPE
|
284
|
+
);
|
273
285
|
}
|
274
286
|
var React = require("react"),
|
275
287
|
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
@@ -265,11 +265,23 @@
|
|
265
265
|
);
|
266
266
|
}
|
267
267
|
function validateChildKeys(node) {
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
268
|
+
isValidElement(node)
|
269
|
+
? node._store && (node._store.validated = 1)
|
270
|
+
: "object" === typeof node &&
|
271
|
+
null !== node &&
|
272
|
+
node.$$typeof === REACT_LAZY_TYPE &&
|
273
|
+
("fulfilled" === node._payload.status
|
274
|
+
? isValidElement(node._payload.value) &&
|
275
|
+
node._payload.value._store &&
|
276
|
+
(node._payload.value._store.validated = 1)
|
277
|
+
: node._store && (node._store.validated = 1));
|
278
|
+
}
|
279
|
+
function isValidElement(object) {
|
280
|
+
return (
|
281
|
+
"object" === typeof object &&
|
282
|
+
null !== object &&
|
283
|
+
object.$$typeof === REACT_ELEMENT_TYPE
|
284
|
+
);
|
273
285
|
}
|
274
286
|
var React = require("react"),
|
275
287
|
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
package/cjs/react.development.js
CHANGED
@@ -253,6 +253,18 @@
|
|
253
253
|
(newKey._store.validated = oldElement._store.validated);
|
254
254
|
return newKey;
|
255
255
|
}
|
256
|
+
function validateChildKeys(node) {
|
257
|
+
isValidElement(node)
|
258
|
+
? node._store && (node._store.validated = 1)
|
259
|
+
: "object" === typeof node &&
|
260
|
+
null !== node &&
|
261
|
+
node.$$typeof === REACT_LAZY_TYPE &&
|
262
|
+
("fulfilled" === node._payload.status
|
263
|
+
? isValidElement(node._payload.value) &&
|
264
|
+
node._payload.value._store &&
|
265
|
+
(node._payload.value._store.validated = 1)
|
266
|
+
: node._store && (node._store.validated = 1));
|
267
|
+
}
|
256
268
|
function isValidElement(object) {
|
257
269
|
return (
|
258
270
|
"object" === typeof object &&
|
@@ -967,8 +979,7 @@
|
|
967
979
|
element._debugTask
|
968
980
|
);
|
969
981
|
for (key = 2; key < arguments.length; key++)
|
970
|
-
(
|
971
|
-
isValidElement(owner) && owner._store && (owner._store.validated = 1);
|
982
|
+
validateChildKeys(arguments[key]);
|
972
983
|
return props;
|
973
984
|
};
|
974
985
|
exports.createContext = function (defaultValue) {
|
@@ -990,12 +1001,10 @@
|
|
990
1001
|
return defaultValue;
|
991
1002
|
};
|
992
1003
|
exports.createElement = function (type, config, children) {
|
993
|
-
for (var i = 2; i < arguments.length; i++)
|
994
|
-
|
995
|
-
isValidElement(node) && node._store && (node._store.validated = 1);
|
996
|
-
}
|
1004
|
+
for (var i = 2; i < arguments.length; i++)
|
1005
|
+
validateChildKeys(arguments[i]);
|
997
1006
|
i = {};
|
998
|
-
|
1007
|
+
var key = null;
|
999
1008
|
if (null != config)
|
1000
1009
|
for (propName in (didWarnAboutOldJSXRuntime ||
|
1001
1010
|
!("__self" in config) ||
|
@@ -1005,7 +1014,7 @@
|
|
1005
1014
|
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
|
1006
1015
|
)),
|
1007
1016
|
hasValidKey(config) &&
|
1008
|
-
(checkKeyStringCoercion(config.key), (
|
1017
|
+
(checkKeyStringCoercion(config.key), (key = "" + config.key)),
|
1009
1018
|
config))
|
1010
1019
|
hasOwnProperty.call(config, propName) &&
|
1011
1020
|
"key" !== propName &&
|
@@ -1027,7 +1036,7 @@
|
|
1027
1036
|
if (type && type.defaultProps)
|
1028
1037
|
for (propName in ((childrenLength = type.defaultProps), childrenLength))
|
1029
1038
|
void 0 === i[propName] && (i[propName] = childrenLength[propName]);
|
1030
|
-
|
1039
|
+
key &&
|
1031
1040
|
defineKeyPropWarningGetter(
|
1032
1041
|
i,
|
1033
1042
|
"function" === typeof type
|
@@ -1037,7 +1046,7 @@
|
|
1037
1046
|
var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
1038
1047
|
return ReactElement(
|
1039
1048
|
type,
|
1040
|
-
|
1049
|
+
key,
|
1041
1050
|
i,
|
1042
1051
|
getOwner(),
|
1043
1052
|
propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
@@ -1263,7 +1272,7 @@
|
|
1263
1272
|
exports.useTransition = function () {
|
1264
1273
|
return resolveDispatcher().useTransition();
|
1265
1274
|
};
|
1266
|
-
exports.version = "19.2.0-canary-
|
1275
|
+
exports.version = "19.2.0-canary-bb6f0c8d-20250901";
|
1267
1276
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
1268
1277
|
"function" ===
|
1269
1278
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
package/cjs/react.production.js
CHANGED
@@ -215,6 +215,18 @@
|
|
215
215
|
(newKey._store.validated = oldElement._store.validated);
|
216
216
|
return newKey;
|
217
217
|
}
|
218
|
+
function validateChildKeys(node) {
|
219
|
+
isValidElement(node)
|
220
|
+
? node._store && (node._store.validated = 1)
|
221
|
+
: "object" === typeof node &&
|
222
|
+
null !== node &&
|
223
|
+
node.$$typeof === REACT_LAZY_TYPE &&
|
224
|
+
("fulfilled" === node._payload.status
|
225
|
+
? isValidElement(node._payload.value) &&
|
226
|
+
node._payload.value._store &&
|
227
|
+
(node._payload.value._store.validated = 1)
|
228
|
+
: node._store && (node._store.validated = 1));
|
229
|
+
}
|
218
230
|
function isValidElement(object) {
|
219
231
|
return (
|
220
232
|
"object" === typeof object &&
|
@@ -666,17 +678,14 @@
|
|
666
678
|
element._debugTask
|
667
679
|
);
|
668
680
|
for (key = 2; key < arguments.length; key++)
|
669
|
-
(
|
670
|
-
isValidElement(owner) && owner._store && (owner._store.validated = 1);
|
681
|
+
validateChildKeys(arguments[key]);
|
671
682
|
return props;
|
672
683
|
};
|
673
684
|
exports.createElement = function (type, config, children) {
|
674
|
-
for (var i = 2; i < arguments.length; i++)
|
675
|
-
|
676
|
-
isValidElement(node) && node._store && (node._store.validated = 1);
|
677
|
-
}
|
685
|
+
for (var i = 2; i < arguments.length; i++)
|
686
|
+
validateChildKeys(arguments[i]);
|
678
687
|
i = {};
|
679
|
-
|
688
|
+
var key = null;
|
680
689
|
if (null != config)
|
681
690
|
for (propName in (didWarnAboutOldJSXRuntime ||
|
682
691
|
!("__self" in config) ||
|
@@ -686,7 +695,7 @@
|
|
686
695
|
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
|
687
696
|
)),
|
688
697
|
hasValidKey(config) &&
|
689
|
-
(checkKeyStringCoercion(config.key), (
|
698
|
+
(checkKeyStringCoercion(config.key), (key = "" + config.key)),
|
690
699
|
config))
|
691
700
|
hasOwnProperty.call(config, propName) &&
|
692
701
|
"key" !== propName &&
|
@@ -708,7 +717,7 @@
|
|
708
717
|
if (type && type.defaultProps)
|
709
718
|
for (propName in ((childrenLength = type.defaultProps), childrenLength))
|
710
719
|
void 0 === i[propName] && (i[propName] = childrenLength[propName]);
|
711
|
-
|
720
|
+
key &&
|
712
721
|
defineKeyPropWarningGetter(
|
713
722
|
i,
|
714
723
|
"function" === typeof type
|
@@ -718,7 +727,7 @@
|
|
718
727
|
var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
719
728
|
return ReactElement(
|
720
729
|
type,
|
721
|
-
|
730
|
+
key,
|
722
731
|
i,
|
723
732
|
getOwner(),
|
724
733
|
propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
@@ -835,5 +844,5 @@
|
|
835
844
|
exports.useMemo = function (create, deps) {
|
836
845
|
return resolveDispatcher().useMemo(create, deps);
|
837
846
|
};
|
838
|
-
exports.version = "19.2.0-canary-
|
847
|
+
exports.version = "19.2.0-canary-bb6f0c8d-20250901";
|
839
848
|
})();
|