react 19.0.0-canary-33a32441e9-20240418 → 19.0.0-canary-db913d8e17-20240422
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 +7 -4
- package/cjs/react-jsx-dev-runtime.production.js +4 -9
- package/cjs/react-jsx-dev-runtime.profiling.js +4 -9
- package/cjs/react-jsx-runtime.development.js +7 -4
- package/cjs/react-jsx-runtime.production.js +24 -144
- package/cjs/react-jsx-runtime.profiling.js +24 -144
- package/cjs/react-jsx-runtime.react-server.development.js +7 -4
- package/cjs/react-jsx-runtime.react-server.production.js +29 -151
- package/cjs/react.development.js +18 -8
- package/cjs/react.production.js +469 -1029
- package/cjs/react.react-server.development.js +8 -5
- package/cjs/react.react-server.production.js +479 -986
- package/index.js +1 -1
- package/jsx-dev-runtime.js +1 -1
- package/jsx-runtime.js +1 -1
- package/jsx-runtime.react-server.js +1 -1
- package/package.json +1 -1
- package/react.react-server.js +1 -1
- package/cjs/react-jsx-dev-runtime.production.min.js +0 -12
- package/cjs/react-jsx-dev-runtime.production.min.js.map +0 -1
- package/cjs/react-jsx-dev-runtime.profiling.min.js +0 -12
- package/cjs/react-jsx-dev-runtime.profiling.min.js.map +0 -1
- package/cjs/react-jsx-runtime.production.min.js +0 -12
- package/cjs/react-jsx-runtime.production.min.js.map +0 -1
- package/cjs/react-jsx-runtime.profiling.min.js +0 -12
- package/cjs/react-jsx-runtime.profiling.min.js.map +0 -1
- package/cjs/react-jsx-runtime.react-server.production.min.js +0 -13
- package/cjs/react-jsx-runtime.react-server.production.min.js.map +0 -1
- package/cjs/react.production.min.js +0 -30
- package/cjs/react.production.min.js.map +0 -1
- package/cjs/react.react-server.production.min.js +0 -29
- package/cjs/react.react-server.production.min.js.map +0 -1
package/cjs/react.development.js
CHANGED
@@ -23,7 +23,7 @@ if (
|
|
23
23
|
) {
|
24
24
|
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
25
25
|
}
|
26
|
-
var ReactVersion = '19.0.0-canary-
|
26
|
+
var ReactVersion = '19.0.0-canary-db913d8e17-20240422';
|
27
27
|
|
28
28
|
// ATTENTION
|
29
29
|
// When adding new symbols to this file,
|
@@ -266,14 +266,21 @@ var ReactNoopUpdateQueue = {
|
|
266
266
|
|
267
267
|
var assign = Object.assign;
|
268
268
|
|
269
|
+
var emptyObject = {};
|
270
|
+
|
271
|
+
{
|
272
|
+
Object.freeze(emptyObject);
|
273
|
+
}
|
269
274
|
/**
|
270
275
|
* Base class helpers for the updating state of a component.
|
271
276
|
*/
|
272
277
|
|
278
|
+
|
273
279
|
function Component(props, context, updater) {
|
274
280
|
this.props = props;
|
275
|
-
this.context = context;
|
276
|
-
|
281
|
+
this.context = context; // If a component has string refs, we will assign a different object later.
|
282
|
+
|
283
|
+
this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the
|
277
284
|
// renderer.
|
278
285
|
|
279
286
|
this.updater = updater || ReactNoopUpdateQueue;
|
@@ -373,7 +380,7 @@ function PureComponent(props, context, updater) {
|
|
373
380
|
this.props = props;
|
374
381
|
this.context = context; // If a component has string refs, we will assign a different object later.
|
375
382
|
|
376
|
-
this.refs =
|
383
|
+
this.refs = emptyObject;
|
377
384
|
this.updater = updater || ReactNoopUpdateQueue;
|
378
385
|
}
|
379
386
|
|
@@ -1493,11 +1500,14 @@ function validateChildKeys(node, parentType) {
|
|
1493
1500
|
// but now we print a separate warning for them later.
|
1494
1501
|
if (iteratorFn !== node.entries) {
|
1495
1502
|
var iterator = iteratorFn.call(node);
|
1496
|
-
var step;
|
1497
1503
|
|
1498
|
-
|
1499
|
-
|
1500
|
-
|
1504
|
+
if (iterator !== node) {
|
1505
|
+
var step;
|
1506
|
+
|
1507
|
+
while (!(step = iterator.next()).done) {
|
1508
|
+
if (isValidElement(step.value)) {
|
1509
|
+
validateExplicitKey(step.value, parentType);
|
1510
|
+
}
|
1501
1511
|
}
|
1502
1512
|
}
|
1503
1513
|
}
|