Skip to content

Commit

Permalink
Update React from 8f3c0525f9 to 81c5ff2e04
Browse files Browse the repository at this point in the history
  • Loading branch information
ztanner committed May 22, 2024
1 parent a029a51 commit 5e5acd9
Show file tree
Hide file tree
Showing 162 changed files with 1,862 additions and 1,047 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-8f3c0525f9-20240521",
"react": "19.0.0-rc-81c5ff2e04-20240521",
"react-17": "npm:react@17.0.2",
"react-builtin": "npm:react@19.0.0-rc-8f3c0525f9-20240521",
"react-dom": "19.0.0-rc-8f3c0525f9-20240521",
"react-builtin": "npm:react@19.0.0-rc-81c5ff2e04-20240521",
"react-dom": "19.0.0-rc-81c5ff2e04-20240521",
"react-dom-17": "npm:react-dom@17.0.2",
"react-dom-builtin": "npm:react-dom@19.0.0-rc-8f3c0525f9-20240521",
"react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-8f3c0525f9-20240521",
"react-experimental-builtin": "npm:react@0.0.0-experimental-8f3c0525f9-20240521",
"react-server-dom-turbopack": "19.0.0-rc-8f3c0525f9-20240521",
"react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-8f3c0525f9-20240521",
"react-server-dom-webpack": "19.0.0-rc-8f3c0525f9-20240521",
"react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-8f3c0525f9-20240521",
"react-dom-builtin": "npm:react-dom@19.0.0-rc-81c5ff2e04-20240521",
"react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-81c5ff2e04-20240521",
"react-experimental-builtin": "npm:react@0.0.0-experimental-81c5ff2e04-20240521",
"react-server-dom-turbopack": "19.0.0-rc-81c5ff2e04-20240521",
"react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-81c5ff2e04-20240521",
"react-server-dom-webpack": "19.0.0-rc-81c5ff2e04-20240521",
"react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-81c5ff2e04-20240521",
"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:scheduler@0.25.0-rc-8f3c0525f9-20240521",
"scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-8f3c0525f9-20240521",
"scheduler-builtin": "npm:scheduler@0.25.0-rc-81c5ff2e04-20240521",
"scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-81c5ff2e04-20240521",
"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": "18.2.74",
"@types/react-dom": "18.2.23",
"react": "19.0.0-rc-8f3c0525f9-20240521",
"react-dom": "19.0.0-rc-8f3c0525f9-20240521",
"react-is": "19.0.0-rc-8f3c0525f9-20240521",
"scheduler": "0.25.0-rc-8f3c0525f9-20240521"
"react": "19.0.0-rc-81c5ff2e04-20240521",
"react-dom": "19.0.0-rc-81c5ff2e04-20240521",
"react-is": "19.0.0-rc-81c5ff2e04-20240521",
"scheduler": "0.25.0-rc-81c5ff2e04-20240521"
},
"engines": {
"node": ">=18.17.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/create-next-app/templates/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ export const installTemplate = async ({
* Default dependencies.
*/
dependencies: {
react: "19.0.0-rc-8f3c0525f9-20240521",
"react-dom": "19.0.0-rc-8f3c0525f9-20240521",
react: "19.0.0-rc-81c5ff2e04-20240521",
"react-dom": "19.0.0-rc-81c5ff2e04-20240521",
next: version,
},
devDependencies: {},
Expand Down
4 changes: 2 additions & 2 deletions packages/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@
"@opentelemetry/api": "^1.1.0",
"@playwright/test": "^1.41.2",
"babel-plugin-react-compiler": "*",
"react": "19.0.0-rc-8f3c0525f9-20240521",
"react-dom": "19.0.0-rc-8f3c0525f9-20240521",
"react": "19.0.0-rc-81c5ff2e04-20240521",
"react-dom": "19.0.0-rc-81c5ff2e04-20240521",
"sass": "^1.3.0"
},
"peerDependenciesMeta": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25685,17 +25685,13 @@ function preloadResourceAndSuspendIfNeeded(workInProgress, resource, type, props
}

workInProgress.flags |= MaySuspendCommit;
var rootRenderLanes = getWorkInProgressRootRenderLanes();
var isReady = preloadResource(resource);

if (!includesOnlyNonUrgentLanes(rootRenderLanes)) ; else {
var isReady = preloadResource(resource);

if (!isReady) {
if (shouldRemainOnPreviousScreen()) {
workInProgress.flags |= ShouldSuspendCommit;
} else {
suspendCommit();
}
if (!isReady) {
if (shouldRemainOnPreviousScreen()) {
workInProgress.flags |= ShouldSuspendCommit;
} else {
suspendCommit();
}
}
}
Expand Down Expand Up @@ -27575,7 +27571,7 @@ function finishConcurrentRender(root, exitStatus, finishedWork, lanes) {
function commitRootWhenReady(root, finishedWork, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane) {
// TODO: Combine retry throttling with Suspensey commits. Right now they run
// one after the other.
if (includesOnlyNonUrgentLanes(lanes)) {
if (finishedWork.subtreeFlags & ShouldSuspendCommit) {
// Before committing, ask the renderer whether the host tree is ready.
// If it's not, we'll wait until it notifies us.
startSuspendingCommit(); // This will walk the completed fiber tree and attach listeners to all
Expand Down Expand Up @@ -28413,9 +28409,16 @@ function renderRootConcurrent(root, lanes) {

case SuspendedOnInstanceAndReadyToContinue:
{
var resource = null;

switch (workInProgress.tag) {
case HostComponent:
case HostHoistable:
{
resource = workInProgress.memoizedState;
}
// intentional fallthrough

case HostComponent:
case HostSingleton:
{
// Before unwinding the stack, check one more time if the
Expand All @@ -28426,7 +28429,7 @@ function renderRootConcurrent(root, lanes) {
var hostFiber = workInProgress;
var type = hostFiber.type;
var props = hostFiber.pendingProps;
var isReady = preloadInstance(type, props);
var isReady = resource ? preloadResource(resource) : preloadInstance(type, props);

if (isReady) {
// The data resolved. Resume the work loop as if nothing
Expand Down Expand Up @@ -35880,14 +35883,13 @@ function mayResourceSuspendCommit(resource) {
return resource.type === 'stylesheet' && (resource.state.loading & Inserted) === NotLoaded;
}
function preloadInstance(type, props) {
// Return true to indicate it's already loaded
return true;
}
function preloadResource(resource) {
if (resource.type === 'stylesheet' && (resource.state.loading & Settled) === NotLoaded) {
// we have not finished loading the underlying stylesheet yet.
// Return false to indicate this resource should suspend
return false;
} // Return true to indicate it's already loaded
} // Return true to indicate this resource should not suspend


return true;
Expand Down Expand Up @@ -36251,7 +36253,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
return root;
}

var ReactVersion = '19.0.0-experimental-8f3c0525f9-20240521';
var ReactVersion = '19.0.0-experimental-81c5ff2e04-20240521';

// Might add PROFILE later.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1908,7 +1908,7 @@ function getTargetInstForChangeEvent(domEventName, targetInst) {
}
var isInputEventSupported = !1;
if (canUseDOM) {
var JSCompiler_inline_result$jscomp$268;
var JSCompiler_inline_result$jscomp$269;
if (canUseDOM) {
var isSupported$jscomp$inline_400 = "oninput" in document;
if (!isSupported$jscomp$inline_400) {
Expand All @@ -1917,10 +1917,10 @@ if (canUseDOM) {
isSupported$jscomp$inline_400 =
"function" === typeof element$jscomp$inline_401.oninput;
}
JSCompiler_inline_result$jscomp$268 = isSupported$jscomp$inline_400;
} else JSCompiler_inline_result$jscomp$268 = !1;
JSCompiler_inline_result$jscomp$269 = isSupported$jscomp$inline_400;
} else JSCompiler_inline_result$jscomp$269 = !1;
isInputEventSupported =
JSCompiler_inline_result$jscomp$268 &&
JSCompiler_inline_result$jscomp$269 &&
(!document.documentMode || 9 < document.documentMode);
}
function stopWatchingForValueChange() {
Expand Down Expand Up @@ -9407,15 +9407,7 @@ function markUpdate(workInProgress) {
function preloadResourceAndSuspendIfNeeded(workInProgress, resource) {
if ("stylesheet" !== resource.type || 0 !== (resource.state.loading & 4))
workInProgress.flags &= -16777217;
else if (
((workInProgress.flags |= 16777216),
0 === (workInProgressRootRenderLanes & 42) &&
((resource =
"stylesheet" === resource.type && 0 === (resource.state.loading & 3)
? !1
: !0),
!resource))
)
else if (((workInProgress.flags |= 16777216), !preloadResource(resource)))
if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192;
else
throw (
Expand Down Expand Up @@ -10275,7 +10267,7 @@ function commitRootWhenReady(
spawnedLane
) {
if (
0 === (lanes & 42) &&
finishedWork.subtreeFlags & 8192 &&
((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }),
accumulateSuspenseyCommitOnFiber(finishedWork),
(finishedWork = waitForCommitToBeReady()),
Expand Down Expand Up @@ -10638,23 +10630,27 @@ function renderRootConcurrent(root, lanes) {
throwAndUnwindWorkLoop(root, lanes, thrownValue));
break;
case 5:
var resource = null;
switch (workInProgress.tag) {
case 5:
case 26:
resource = workInProgress.memoizedState;
case 5:
case 27:
lanes = workInProgress;
workInProgressSuspendedReason = 0;
workInProgressThrownValue = null;
var sibling = lanes.sibling;
if (null !== sibling) workInProgress = sibling;
else {
var returnFiber = lanes.return;
null !== returnFiber
? ((workInProgress = returnFiber),
completeUnitOfWork(returnFiber))
: (workInProgress = null);
var hostFiber = workInProgress;
if (resource ? preloadResource(resource) : 1) {
workInProgressSuspendedReason = 0;
workInProgressThrownValue = null;
var sibling = hostFiber.sibling;
if (null !== sibling) workInProgress = sibling;
else {
var returnFiber = hostFiber.return;
null !== returnFiber
? ((workInProgress = returnFiber),
completeUnitOfWork(returnFiber))
: (workInProgress = null);
}
break b;
}
break b;
}
workInProgressSuspendedReason = 0;
workInProgressThrownValue = null;
Expand Down Expand Up @@ -11352,20 +11348,20 @@ function extractEvents$1(
}
}
for (
var i$jscomp$inline_1377 = 0;
i$jscomp$inline_1377 < simpleEventPluginEvents.length;
i$jscomp$inline_1377++
var i$jscomp$inline_1378 = 0;
i$jscomp$inline_1378 < simpleEventPluginEvents.length;
i$jscomp$inline_1378++
) {
var eventName$jscomp$inline_1378 =
simpleEventPluginEvents[i$jscomp$inline_1377],
domEventName$jscomp$inline_1379 =
eventName$jscomp$inline_1378.toLowerCase(),
capitalizedEvent$jscomp$inline_1380 =
eventName$jscomp$inline_1378[0].toUpperCase() +
eventName$jscomp$inline_1378.slice(1);
var eventName$jscomp$inline_1379 =
simpleEventPluginEvents[i$jscomp$inline_1378],
domEventName$jscomp$inline_1380 =
eventName$jscomp$inline_1379.toLowerCase(),
capitalizedEvent$jscomp$inline_1381 =
eventName$jscomp$inline_1379[0].toUpperCase() +
eventName$jscomp$inline_1379.slice(1);
registerSimpleEvent(
domEventName$jscomp$inline_1379,
"on" + capitalizedEvent$jscomp$inline_1380
domEventName$jscomp$inline_1380,
"on" + capitalizedEvent$jscomp$inline_1381
);
}
registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
Expand Down Expand Up @@ -13870,6 +13866,11 @@ function isHostHoistableType(type, props, hostContext) {
}
return !1;
}
function preloadResource(resource) {
return "stylesheet" === resource.type && 0 === (resource.state.loading & 3)
? !1
: !0;
}
var suspendedState = null;
function noop() {}
function suspendResource(hoistableRoot, resource, props) {
Expand Down Expand Up @@ -14756,17 +14757,17 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
null === componentOrElement ? null : componentOrElement.stateNode;
return componentOrElement;
};
var devToolsConfig$jscomp$inline_1630 = {
var devToolsConfig$jscomp$inline_1631 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-experimental-8f3c0525f9-20240521",
version: "19.0.0-experimental-81c5ff2e04-20240521",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2008 = {
bundleType: devToolsConfig$jscomp$inline_1630.bundleType,
version: devToolsConfig$jscomp$inline_1630.version,
rendererPackageName: devToolsConfig$jscomp$inline_1630.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1630.rendererConfig,
var internals$jscomp$inline_2009 = {
bundleType: devToolsConfig$jscomp$inline_1631.bundleType,
version: devToolsConfig$jscomp$inline_1631.version,
rendererPackageName: devToolsConfig$jscomp$inline_1631.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1631.rendererConfig,
overrideHookState: null,
overrideHookStateDeletePath: null,
overrideHookStateRenamePath: null,
Expand All @@ -14782,26 +14783,26 @@ var internals$jscomp$inline_2008 = {
return null === fiber ? null : fiber.stateNode;
},
findFiberByHostInstance:
devToolsConfig$jscomp$inline_1630.findFiberByHostInstance ||
devToolsConfig$jscomp$inline_1631.findFiberByHostInstance ||
emptyFindFiberByHostInstance,
findHostInstancesForRefresh: null,
scheduleRefresh: null,
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-experimental-8f3c0525f9-20240521"
reconcilerVersion: "19.0.0-experimental-81c5ff2e04-20240521"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2009 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
var hook$jscomp$inline_2010 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (
!hook$jscomp$inline_2009.isDisabled &&
hook$jscomp$inline_2009.supportsFiber
!hook$jscomp$inline_2010.isDisabled &&
hook$jscomp$inline_2010.supportsFiber
)
try {
(rendererID = hook$jscomp$inline_2009.inject(
internals$jscomp$inline_2008
(rendererID = hook$jscomp$inline_2010.inject(
internals$jscomp$inline_2009
)),
(injectedHook = hook$jscomp$inline_2009);
(injectedHook = hook$jscomp$inline_2010);
} catch (err) {}
}
exports.createRoot = function (container, options) {
Expand Down Expand Up @@ -14895,4 +14896,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.0.0-experimental-8f3c0525f9-20240521";
exports.version = "19.0.0-experimental-81c5ff2e04-20240521";
Loading

0 comments on commit 5e5acd9

Please sign in to comment.