Skip to content

Commit

Permalink
Update React from 1df34bdf62 to 20b6f4c0e8
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Jun 17, 2024
1 parent 52f4af4 commit bdb23a2
Show file tree
Hide file tree
Showing 108 changed files with 5,341 additions and 2,601 deletions.
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,18 +197,18 @@
"pretty-bytes": "5.3.0",
"pretty-ms": "7.0.0",
"random-seed": "0.3.0",
"react": "19.0.0-rc-6230622a1a-20240610",
"react": "19.0.0-rc-20b6f4c0e8-20240607",
"react-17": "npm:[email protected]",
"react-builtin": "npm:[email protected]6230622a1a-20240610",
"react-dom": "19.0.0-rc-6230622a1a-20240610",
"react-builtin": "npm:[email protected]20b6f4c0e8-20240607",
"react-dom": "19.0.0-rc-20b6f4c0e8-20240607",
"react-dom-17": "npm:[email protected]",
"react-dom-builtin": "npm:[email protected]6230622a1a-20240610",
"react-dom-experimental-builtin": "npm:[email protected]6230622a1a-20240610",
"react-experimental-builtin": "npm:[email protected]6230622a1a-20240610",
"react-server-dom-turbopack": "19.0.0-rc-6230622a1a-20240610",
"react-server-dom-turbopack-experimental": "npm:[email protected]6230622a1a-20240610",
"react-server-dom-webpack": "19.0.0-rc-6230622a1a-20240610",
"react-server-dom-webpack-experimental": "npm:[email protected]6230622a1a-20240610",
"react-dom-builtin": "npm:[email protected]20b6f4c0e8-20240607",
"react-dom-experimental-builtin": "npm:[email protected]20b6f4c0e8-20240607",
"react-experimental-builtin": "npm:[email protected]20b6f4c0e8-20240607",
"react-server-dom-turbopack": "19.0.0-rc-20b6f4c0e8-20240607",
"react-server-dom-turbopack-experimental": "npm:[email protected]20b6f4c0e8-20240607",
"react-server-dom-webpack": "19.0.0-rc-20b6f4c0e8-20240607",
"react-server-dom-webpack-experimental": "npm:[email protected]20b6f4c0e8-20240607",
"react-ssr-prepass": "1.0.8",
"react-virtualized": "9.22.3",
"relay-compiler": "13.0.2",
Expand All @@ -218,8 +218,8 @@
"resolve-from": "5.0.0",
"sass": "1.54.0",
"satori": "0.10.9",
"scheduler-builtin": "npm:[email protected]6230622a1a-20240610",
"scheduler-experimental-builtin": "npm:[email protected]6230622a1a-20240610",
"scheduler-builtin": "npm:[email protected]20b6f4c0e8-20240607",
"scheduler-experimental-builtin": "npm:[email protected]20b6f4c0e8-20240607",
"seedrandom": "3.0.5",
"semver": "7.3.7",
"shell-quote": "1.7.3",
Expand Down Expand Up @@ -253,10 +253,10 @@
"@babel/traverse": "7.22.5",
"@types/react": "npm:[email protected]",
"@types/react-dom": "npm:[email protected]",
"react": "19.0.0-rc-6230622a1a-20240610",
"react-dom": "19.0.0-rc-6230622a1a-20240610",
"react-is": "19.0.0-rc-6230622a1a-20240610",
"scheduler": "0.25.0-rc-6230622a1a-20240610"
"react": "19.0.0-rc-20b6f4c0e8-20240607",
"react-dom": "19.0.0-rc-20b6f4c0e8-20240607",
"react-is": "19.0.0-rc-20b6f4c0e8-20240607",
"scheduler": "0.25.0-rc-20b6f4c0e8-20240607"
},
"engines": {
"node": ">=18.17.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11535,7 +11535,7 @@ var ownerHasKeyUseWarning;
var ownerHasFunctionTypeWarning;
var ownerHasSymbolTypeWarning;

var warnForMissingKey = function (child, returnFiber) {};
var warnForMissingKey = function (returnFiber, workInProgress, child) {};

{
didWarnAboutMaps = false;
Expand All @@ -11550,7 +11550,7 @@ var warnForMissingKey = function (child, returnFiber) {};
ownerHasFunctionTypeWarning = {};
ownerHasSymbolTypeWarning = {};

warnForMissingKey = function (child, returnFiber) {
warnForMissingKey = function (returnFiber, workInProgress, child) {
if (child === null || typeof child !== 'object') {
return;
}
Expand Down Expand Up @@ -11609,15 +11609,9 @@ var warnForMissingKey = function (child, returnFiber) {};
// Give the component that originally created this child.
childOwnerAppendix = " It was passed a child from " + ownerName + ".";
}
} // We create a fake Fiber for the child to log the stack trace from.
// TODO: Refactor the warnForMissingKey calls to happen after fiber creation
// so that we can get access to the fiber that will eventually be created.
// That way the log can show up associated with the right instance in DevTools.

}

var fiber = createFiberFromElement(child, returnFiber.mode, 0);
fiber.return = returnFiber;
runWithFiberInDEV(fiber, function () {
runWithFiberInDEV(workInProgress, function () {
error('Each child in a list should have a unique "key" prop.' + '%s%s See https://react.dev/link/warning-keys for more information.', currentComponentErrorInfo, childOwnerAppendix);
});
};
Expand Down Expand Up @@ -12214,7 +12208,7 @@ function createChildReconciler(shouldTrackSideEffects) {
*/


function warnOnInvalidKey(child, knownKeys, returnFiber) {
function warnOnInvalidKey(returnFiber, workInProgress, child, knownKeys) {
{
if (typeof child !== 'object' || child === null) {
return knownKeys;
Expand All @@ -12223,7 +12217,7 @@ function createChildReconciler(shouldTrackSideEffects) {
switch (child.$$typeof) {
case REACT_ELEMENT_TYPE:
case REACT_PORTAL_TYPE:
warnForMissingKey(child, returnFiber);
warnForMissingKey(returnFiber, workInProgress, child);
var key = child.key;

if (typeof key !== 'string') {
Expand All @@ -12241,8 +12235,9 @@ function createChildReconciler(shouldTrackSideEffects) {
break;
}

error('Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.', key);

runWithFiberInDEV(workInProgress, function () {
error('Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.', key);
});
break;

case REACT_LAZY_TYPE:
Expand All @@ -12253,7 +12248,7 @@ function createChildReconciler(shouldTrackSideEffects) {
resolvedChild = callLazyInitInDEV(child);
}

warnOnInvalidKey(resolvedChild, knownKeys, returnFiber);
warnOnInvalidKey(returnFiber, workInProgress, resolvedChild, knownKeys);
break;
}
}
Expand All @@ -12278,16 +12273,7 @@ function createChildReconciler(shouldTrackSideEffects) {
// (adding everything to a Map) in for every insert/move.
// If you change this code, also update reconcileChildrenIterator() which
// uses the same algorithm.
{
// First, validate keys.
var knownKeys = null;

for (var i = 0; i < newChildren.length; i++) {
var child = newChildren[i];
knownKeys = warnOnInvalidKey(child, knownKeys, returnFiber);
}
}

var knownKeys = null;
var resultingFirstChild = null;
var previousNewFiber = null;
var oldFiber = currentFirstChild;
Expand Down Expand Up @@ -12317,6 +12303,10 @@ function createChildReconciler(shouldTrackSideEffects) {
break;
}

{
knownKeys = warnOnInvalidKey(returnFiber, newFiber, newChildren[newIdx], knownKeys);
}

if (shouldTrackSideEffects) {
if (oldFiber && newFiber.alternate === null) {
// We matched the slot, but we didn't reuse the existing fiber, so we
Expand Down Expand Up @@ -12364,6 +12354,10 @@ function createChildReconciler(shouldTrackSideEffects) {
continue;
}

{
knownKeys = warnOnInvalidKey(returnFiber, _newFiber, newChildren[newIdx], knownKeys);
}

lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx);

if (previousNewFiber === null) {
Expand Down Expand Up @@ -12391,6 +12385,10 @@ function createChildReconciler(shouldTrackSideEffects) {
var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], lanes, debugInfo);

if (_newFiber2 !== null) {
{
knownKeys = warnOnInvalidKey(returnFiber, _newFiber2, newChildren[newIdx], knownKeys);
}

if (shouldTrackSideEffects) {
if (_newFiber2.alternate !== null) {
// The new fiber is a work in progress, but if there exists a
Expand Down Expand Up @@ -12522,11 +12520,7 @@ function createChildReconciler(shouldTrackSideEffects) {
var knownKeys = null;
var step = newChildren.next();

{
knownKeys = warnOnInvalidKey(step.value, knownKeys, returnFiber);
}

for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next(), knownKeys = warnOnInvalidKey(step.value, knownKeys, returnFiber) ) {
for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) {
if (oldFiber.index > newIdx) {
nextOldFiber = oldFiber;
oldFiber = null;
Expand All @@ -12548,6 +12542,10 @@ function createChildReconciler(shouldTrackSideEffects) {
break;
}

{
knownKeys = warnOnInvalidKey(returnFiber, newFiber, step.value, knownKeys);
}

if (shouldTrackSideEffects) {
if (oldFiber && newFiber.alternate === null) {
// We matched the slot, but we didn't reuse the existing fiber, so we
Expand Down Expand Up @@ -12588,13 +12586,17 @@ function createChildReconciler(shouldTrackSideEffects) {
if (oldFiber === null) {
// If we don't have any more existing children we can choose a fast path
// since the rest will all be insertions.
for (; !step.done; newIdx++, step = newChildren.next(), knownKeys = warnOnInvalidKey(step.value, knownKeys, returnFiber) ) {
for (; !step.done; newIdx++, step = newChildren.next()) {
var _newFiber3 = createChild(returnFiber, step.value, lanes, debugInfo);

if (_newFiber3 === null) {
continue;
}

{
knownKeys = warnOnInvalidKey(returnFiber, _newFiber3, step.value, knownKeys);
}

lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx);

if (previousNewFiber === null) {
Expand All @@ -12618,10 +12620,14 @@ function createChildReconciler(shouldTrackSideEffects) {

var existingChildren = mapRemainingChildren(oldFiber); // Keep scanning and use the map to restore deleted items as moves.

for (; !step.done; newIdx++, step = newChildren.next(), knownKeys = warnOnInvalidKey(step.value, knownKeys, returnFiber) ) {
for (; !step.done; newIdx++, step = newChildren.next()) {
var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, lanes, debugInfo);

if (_newFiber4 !== null) {
{
knownKeys = warnOnInvalidKey(returnFiber, _newFiber4, step.value, knownKeys);
}

if (shouldTrackSideEffects) {
if (_newFiber4.alternate !== null) {
// The new fiber is a work in progress, but if there exists a
Expand Down Expand Up @@ -36898,7 +36904,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
return root;
}

var ReactVersion = '19.0.0-experimental-6230622a1a-20240610';
var ReactVersion = '19.0.0-experimental-20b6f4c0e8-20240607';

// Might add PROFILE later.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3115,7 +3115,7 @@ function createChildReconciler(shouldTrackSideEffects) {
nextOldFiber = null,
step = newChildren.next();
null !== oldFiber && !step.done;
newIdx++, step = newChildren.next(), null
newIdx++, step = newChildren.next()
) {
oldFiber.index > newIdx
? ((nextOldFiber = oldFiber), (oldFiber = null))
Expand Down Expand Up @@ -3143,7 +3143,7 @@ function createChildReconciler(shouldTrackSideEffects) {
resultingFirstChild
);
if (null === oldFiber) {
for (; !step.done; newIdx++, step = newChildren.next(), null)
for (; !step.done; newIdx++, step = newChildren.next())
(step = createChild(returnFiber, step.value, lanes)),
null !== step &&
((currentFirstChild = placeChild(step, currentFirstChild, newIdx)),
Expand All @@ -3157,7 +3157,7 @@ function createChildReconciler(shouldTrackSideEffects) {
for (
oldFiber = mapRemainingChildren(oldFiber);
!step.done;
newIdx++, step = newChildren.next(), null
newIdx++, step = newChildren.next()
)
(step = updateFromMap(oldFiber, returnFiber, newIdx, step.value, lanes)),
null !== step &&
Expand Down Expand Up @@ -14789,14 +14789,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_1631 = React.version;
if (
"19.0.0-experimental-6230622a1a-20240610" !==
"19.0.0-experimental-20b6f4c0e8-20240607" !==
isomorphicReactPackageVersion$jscomp$inline_1631
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1631,
"19.0.0-experimental-6230622a1a-20240610"
"19.0.0-experimental-20b6f4c0e8-20240607"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
Expand All @@ -14815,7 +14815,7 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
var devToolsConfig$jscomp$inline_1638 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-experimental-6230622a1a-20240610",
version: "19.0.0-experimental-20b6f4c0e8-20240607",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2016 = {
Expand Down Expand Up @@ -14845,7 +14845,7 @@ var internals$jscomp$inline_2016 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-experimental-6230622a1a-20240610"
reconcilerVersion: "19.0.0-experimental-20b6f4c0e8-20240607"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2017 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -14951,4 +14951,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.0.0-experimental-6230622a1a-20240610";
exports.version = "19.0.0-experimental-20b6f4c0e8-20240607";
Loading

0 comments on commit bdb23a2

Please sign in to comment.