-
Notifications
You must be signed in to change notification settings - Fork 29.3k
Upgrade React from 0a82580b-20250203
to d85cf3e5-20250205
#75698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tests Passed |
Stats from current PRDefault Build (Increase detected
|
vercel/next.js canary | vercel/next.js update/react/19.1.0-canary-d85cf3e5-20250205 | Change | |
---|---|---|---|
buildDuration | 27.6s | 24s | N/A |
buildDurationCached | 25.1s | 19.8s | N/A |
nodeModulesSize | 392 MB | 392 MB | |
nextStartRea..uration (ms) | 684ms | 506ms | N/A |
Client Bundles (main, webpack)
vercel/next.js canary | vercel/next.js update/react/19.1.0-canary-d85cf3e5-20250205 | Change | |
---|---|---|---|
5306-HASH.js gzip | 54.2 kB | 54.2 kB | N/A |
8276.HASH.js gzip | 169 B | 168 B | N/A |
8377-HASH.js gzip | 5.46 kB | 5.46 kB | N/A |
bccd1874-HASH.js gzip | 52.9 kB | 53 kB | N/A |
framework-HASH.js gzip | 57.5 kB | 57.5 kB | N/A |
main-app-HASH.js gzip | 240 B | 242 B | N/A |
main-HASH.js gzip | 34.5 kB | 34.5 kB | N/A |
webpack-HASH.js gzip | 1.71 kB | 1.71 kB | N/A |
Overall change | 0 B | 0 B | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | vercel/next.js update/react/19.1.0-canary-d85cf3e5-20250205 | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 39.4 kB | 39.4 kB | ✓ |
Overall change | 39.4 kB | 39.4 kB | ✓ |
Client Pages
vercel/next.js canary | vercel/next.js update/react/19.1.0-canary-d85cf3e5-20250205 | Change | |
---|---|---|---|
_app-HASH.js gzip | 193 B | 193 B | ✓ |
_error-HASH.js gzip | 193 B | 193 B | ✓ |
amp-HASH.js gzip | 512 B | 510 B | N/A |
css-HASH.js gzip | 343 B | 342 B | N/A |
dynamic-HASH.js gzip | 1.84 kB | 1.84 kB | ✓ |
edge-ssr-HASH.js gzip | 265 B | 265 B | ✓ |
head-HASH.js gzip | 363 B | 362 B | N/A |
hooks-HASH.js gzip | 393 B | 392 B | N/A |
image-HASH.js gzip | 4.59 kB | 4.58 kB | N/A |
index-HASH.js gzip | 268 B | 268 B | ✓ |
link-HASH.js gzip | 2.35 kB | 2.35 kB | N/A |
routerDirect..HASH.js gzip | 328 B | 328 B | ✓ |
script-HASH.js gzip | 397 B | 397 B | ✓ |
withRouter-HASH.js gzip | 323 B | 326 B | N/A |
1afbb74e6ecf..834.css gzip | 106 B | 106 B | ✓ |
Overall change | 3.59 kB | 3.59 kB | ✓ |
Client Build Manifests
vercel/next.js canary | vercel/next.js update/react/19.1.0-canary-d85cf3e5-20250205 | Change | |
---|---|---|---|
_buildManifest.js gzip | 748 B | 747 B | N/A |
Overall change | 0 B | 0 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | vercel/next.js update/react/19.1.0-canary-d85cf3e5-20250205 | Change | |
---|---|---|---|
index.html gzip | 524 B | 524 B | ✓ |
link.html gzip | 539 B | 538 B | N/A |
withRouter.html gzip | 519 B | 520 B | N/A |
Overall change | 524 B | 524 B | ✓ |
Edge SSR bundle Size
vercel/next.js canary | vercel/next.js update/react/19.1.0-canary-d85cf3e5-20250205 | Change | |
---|---|---|---|
edge-ssr.js gzip | 130 kB | 130 kB | N/A |
page.js gzip | 211 kB | 211 kB | N/A |
Overall change | 0 B | 0 B | ✓ |
Middleware size
vercel/next.js canary | vercel/next.js update/react/19.1.0-canary-d85cf3e5-20250205 | Change | |
---|---|---|---|
middleware-b..fest.js gzip | 674 B | 671 B | N/A |
middleware-r..fest.js gzip | 155 B | 156 B | N/A |
middleware.js gzip | 31.3 kB | 31.3 kB | N/A |
edge-runtime..pack.js gzip | 844 B | 844 B | ✓ |
Overall change | 844 B | 844 B | ✓ |
Next Runtimes Overall increase ⚠️
vercel/next.js canary | vercel/next.js update/react/19.1.0-canary-d85cf3e5-20250205 | Change | |
---|---|---|---|
app-page-exp...dev.js gzip | 393 kB | 393 kB | |
app-page-exp..prod.js gzip | 132 kB | 132 kB | |
app-page-tur..prod.js gzip | 145 kB | 145 kB | |
app-page-tur..prod.js gzip | 141 kB | 141 kB | |
app-page.run...dev.js gzip | 381 kB | 381 kB | |
app-page.run..prod.js gzip | 128 kB | 128 kB | |
app-route-ex...dev.js gzip | 39.3 kB | 39.3 kB | N/A |
app-route-ex..prod.js gzip | 25.6 kB | 25.6 kB | N/A |
app-route-tu..prod.js gzip | 25.6 kB | 25.6 kB | N/A |
app-route-tu..prod.js gzip | 25.4 kB | 25.4 kB | ✓ |
app-route.ru...dev.js gzip | 40.9 kB | 40.9 kB | ✓ |
app-route.ru..prod.js gzip | 25.4 kB | 25.4 kB | ✓ |
dist_client_...dev.js gzip | 356 B | 356 B | ✓ |
dist_client_...dev.js gzip | 349 B | 349 B | ✓ |
pages-api-tu..prod.js gzip | 9.69 kB | 9.69 kB | ✓ |
pages-api.ru...dev.js gzip | 11.8 kB | 11.8 kB | ✓ |
pages-api.ru..prod.js gzip | 9.68 kB | 9.68 kB | ✓ |
pages-turbo...prod.js gzip | 21.9 kB | 21.9 kB | ✓ |
pages.runtim...dev.js gzip | 31.5 kB | 31.5 kB | ✓ |
pages.runtim..prod.js gzip | 21.9 kB | 21.9 kB | ✓ |
server.runti..prod.js gzip | 60.5 kB | 60.5 kB | N/A |
Overall change | 1.52 MB | 1.52 MB |
build cache Overall increase ⚠️
vercel/next.js canary | vercel/next.js update/react/19.1.0-canary-d85cf3e5-20250205 | Change | |
---|---|---|---|
0.pack gzip | 2.11 MB | 2.11 MB | |
index.pack gzip | 75.5 kB | 76.4 kB | |
Overall change | 2.18 MB | 2.18 MB |
Diff details
Diff for bccd1874-HASH.js
@@ -1,13 +1,13 @@
"use strict";
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
- [7629],
+ [1758],
{
- /***/ 641: /***/ (
+ /***/ 8699: /***/ (
__unused_webpack_module,
exports,
__webpack_require__
) => {
- /* provided dependency */ var process = __webpack_require__(6611);
+ /* provided dependency */ var process = __webpack_require__(9829);
/**
* @license React
* react-dom-client.production.js
@@ -22,9 +22,9 @@
Modernizr 3.0.0pre (Custom Build) | MIT
*/
- var Scheduler = __webpack_require__(8684),
- React = __webpack_require__(1446),
- ReactDOM = __webpack_require__(8307);
+ var Scheduler = __webpack_require__(462),
+ React = __webpack_require__(228),
+ ReactDOM = __webpack_require__(9221);
function formatProdErrorMessage(code) {
var url = "https://react.dev/errors/" + code;
if (1 < arguments.length) {
@@ -269,43 +269,36 @@
push(rootInstanceStackCursor, nextRootInstance);
push(contextFiberStackCursor, fiber);
push(contextStackCursor, null);
- fiber = nextRootInstance.nodeType;
- switch (fiber) {
+ switch (nextRootInstance.nodeType) {
case 9:
case 11:
- nextRootInstance = (nextRootInstance =
- nextRootInstance.documentElement)
- ? (nextRootInstance = nextRootInstance.namespaceURI)
- ? getOwnHostContext(nextRootInstance)
+ fiber = (fiber = nextRootInstance.documentElement)
+ ? (fiber = fiber.namespaceURI)
+ ? getOwnHostContext(fiber)
: 0
: 0;
break;
default:
if (
- ((fiber =
- 8 === fiber ? nextRootInstance.parentNode : nextRootInstance),
- (nextRootInstance = fiber.tagName),
- (fiber = fiber.namespaceURI))
+ ((fiber = nextRootInstance.tagName),
+ (nextRootInstance = nextRootInstance.namespaceURI))
)
- (fiber = getOwnHostContext(fiber)),
- (nextRootInstance = getChildHostContextProd(
- fiber,
- nextRootInstance
- ));
+ (nextRootInstance = getOwnHostContext(nextRootInstance)),
+ (fiber = getChildHostContextProd(nextRootInstance, fiber));
else
- switch (nextRootInstance) {
+ switch (fiber) {
case "svg":
- nextRootInstance = 1;
+ fiber = 1;
break;
case "math":
- nextRootInstance = 2;
+ fiber = 2;
break;
default:
- nextRootInstance = 0;
+ fiber = 0;
}
}
pop(contextStackCursor);
- push(contextStackCursor, nextRootInstance);
+ push(contextStackCursor, fiber);
}
function popHostContainer() {
pop(contextStackCursor);
@@ -7293,15 +7286,20 @@
workInProgress.stateNode.containerInfo
);
if (null === current) throw Error(formatProdErrorMessage(387));
- var nextProps = workInProgress.pendingProps;
- init = workInProgress.memoizedState;
- lazyComponent = init.element;
+ lazyComponent = workInProgress.pendingProps;
+ var prevState = workInProgress.memoizedState;
+ init = prevState.element;
cloneUpdateQueue(current, workInProgress);
- processUpdateQueue(workInProgress, nextProps, null, renderLanes);
+ processUpdateQueue(
+ workInProgress,
+ lazyComponent,
+ null,
+ renderLanes
+ );
var nextState = workInProgress.memoizedState;
- nextProps = nextState.cache;
- pushProvider(workInProgress, CacheContext, nextProps);
- nextProps !== init.cache &&
+ lazyComponent = nextState.cache;
+ pushProvider(workInProgress, CacheContext, lazyComponent);
+ lazyComponent !== prevState.cache &&
propagateContextChanges(
workInProgress,
[CacheContext],
@@ -7309,62 +7307,70 @@
!0
);
suspendIfUpdateReadFromEntangledAsyncAction();
- nextProps = nextState.element;
- if (init.isDehydrated)
+ lazyComponent = nextState.element;
+ if (prevState.isDehydrated)
if (
- ((init = {
- element: nextProps,
+ ((prevState = {
+ element: lazyComponent,
isDehydrated: !1,
cache: nextState.cache,
}),
- (workInProgress.updateQueue.baseState = init),
- (workInProgress.memoizedState = init),
+ (workInProgress.updateQueue.baseState = prevState),
+ (workInProgress.memoizedState = prevState),
workInProgress.flags & 256)
) {
workInProgress = mountHostRootWithoutHydrating(
current,
workInProgress,
- nextProps,
+ lazyComponent,
renderLanes
);
break a;
- } else if (nextProps !== lazyComponent) {
- lazyComponent = createCapturedValueAtFiber(
+ } else if (lazyComponent !== init) {
+ init = createCapturedValueAtFiber(
Error(formatProdErrorMessage(424)),
workInProgress
);
- queueHydrationError(lazyComponent);
+ queueHydrationError(init);
workInProgress = mountHostRootWithoutHydrating(
current,
workInProgress,
- nextProps,
+ lazyComponent,
renderLanes
);
break a;
- } else
- for (
- nextHydratableInstance = getNextHydratable(
- workInProgress.stateNode.containerInfo.firstChild
- ),
- hydrationParentFiber = workInProgress,
- isHydrating = !0,
- hydrationErrors = null,
- rootOrSingletonContext = !0,
- renderLanes = mountChildFibers(
- workInProgress,
- null,
- nextProps,
- renderLanes
- ),
- workInProgress.child = renderLanes;
- renderLanes;
-
- )
+ } else {
+ current = workInProgress.stateNode.containerInfo;
+ switch (current.nodeType) {
+ case 9:
+ current = current.body;
+ break;
+ default:
+ current =
+ "HTML" === current.nodeName
+ ? current.ownerDocument.body
+ : current;
+ }
+ nextHydratableInstance = getNextHydratable(
+ current.firstChild
+ );
+ hydrationParentFiber = workInProgress;
+ isHydrating = !0;
+ hydrationErrors = null;
+ rootOrSingletonContext = !0;
+ renderLanes = mountChildFibers(
+ workInProgress,
+ null,
+ lazyComponent,
+ renderLanes
+ );
+ for (workInProgress.child = renderLanes; renderLanes; )
(renderLanes.flags = (renderLanes.flags & -3) | 4096),
(renderLanes = renderLanes.sibling);
+ }
else {
resetHydrationState();
- if (nextProps === lazyComponent) {
+ if (lazyComponent === init) {
workInProgress = bailoutOnAlreadyFinishedWork(
current,
workInProgress,
@@ -7375,7 +7381,7 @@
reconcileChildren(
current,
workInProgress,
- nextProps,
+ lazyComponent,
renderLanes
);
}
@@ -7425,9 +7431,13 @@
)),
(hydrationParentFiber = workInProgress),
(rootOrSingletonContext = !0),
- (nextHydratableInstance = getNextHydratable(
- lazyComponent.firstChild
- ))),
+ (init = nextHydratableInstance),
+ isSingletonScope(workInProgress.type)
+ ? ((previousHydratableOnEnteringScopedSingleton = init),
+ (nextHydratableInstance = getNextHydratable(
+ lazyComponent.firstChild
+ )))
+ : (nextHydratableInstance = init)),
reconcileChildren(
current,
workInProgress,
@@ -7463,10 +7473,10 @@
init && throwOnHydrationMismatch(workInProgress)),
pushHostContext(workInProgress),
(init = workInProgress.type),
- (nextProps = workInProgress.pendingProps),
+ (prevState = workInProgress.pendingProps),
(nextState = null !== current ? current.memoizedProps : null),
- (lazyComponent = nextProps.children),
- shouldSetTextContent(init, nextProps)
+ (lazyComponent = prevState.children),
+ shouldSetTextContent(init, prevState)
? (lazyComponent = null)
: null !== nextState &&
shouldSetTextContent(init, nextState) &&
@@ -7645,12 +7655,12 @@
? ((init = peekCacheFromPool()),
null === init &&
((init = workInProgressRoot),
- (nextProps = createCache()),
- (init.pooledCache = nextProps),
- nextProps.refCount++,
- null !== nextProps &&
+ (prevState = createCache()),
+ (init.pooledCache = prevState),
+ prevState.refCount++,
+ null !== prevState &&
(init.pooledCacheLanes |= renderLanes),
- (init = nextProps)),
+ (init = prevState)),
(workInProgress.memoizedState = {
parent: lazyComponent,
cache: init,
@@ -7662,7 +7672,7 @@
processUpdateQueue(workInProgress, null, null, renderLanes),
suspendIfUpdateReadFromEntangledAsyncAction()),
(init = current.memoizedState),
- (nextProps = workInProgress.memoizedState),
+ (prevState = workInProgress.memoizedState),
init.parent !== lazyComponent
? ((init = { parent: lazyComponent, cache: lazyComponent }),
(workInProgress.memoizedState = init),
@@ -7671,7 +7681,7 @@
workInProgress.updateQueue.baseState =
init),
pushProvider(workInProgress, CacheContext, lazyComponent))
- : ((lazyComponent = nextProps.cache),
+ : ((lazyComponent = prevState.cache),
pushProvider(workInProgress, CacheContext, lazyComponent),
lazyComponent !== init.cache &&
propagateContextChanges(
@@ -7861,7 +7871,7 @@
5 === fiber.tag ||
3 === fiber.tag ||
26 === fiber.tag ||
- (27 === fiber.tag && "head" === fiber.type) ||
+ (27 === fiber.tag && isSingletonScope(fiber.type)) ||
4 === fiber.tag
);
}
@@ -7878,7 +7888,7 @@
5 !== fiber.tag && 6 !== fiber.tag && 18 !== fiber.tag;
) {
- if (27 === fiber.tag && "head" === fiber.type) continue a;
+ if (27 === fiber.tag && isSingletonScope(fiber.type)) continue a;
if (fiber.flags & 2) continue a;
if (null === fiber.child || 4 === fiber.tag) continue a;
else (fiber.child.return = fiber), (fiber = fiber.child);
@@ -7889,46 +7899,30 @@
function insertOrAppendPlacementNodeIntoContainer(node, before, parent) {
var tag = node.tag;
if (5 === tag || 6 === tag)
- if (((node = node.stateNode), before)) {
- switch (parent.nodeType) {
- case 8:
- parent = parent.parentNode;
- break;
- case 9:
- parent = parent.body;
- break;
- default:
- parent =
- "HTML" === parent.nodeName
+ (node = node.stateNode),
+ before
+ ? (9 === parent.nodeType
+ ? parent.body
+ : "HTML" === parent.nodeName
+ ? parent.ownerDocument.body
+ : parent
+ ).insertBefore(node, before)
+ : ((before =
+ 9 === parent.nodeType
+ ? parent.body
+ : "HTML" === parent.nodeName
? parent.ownerDocument.body
- : parent;
- }
- parent.insertBefore(node, before);
- } else
- a: {
- switch (parent.nodeType) {
- case 8:
- before = parent.parentNode;
- before.insertBefore(node, parent);
- break a;
- case 9:
- before = parent.body;
- break;
- default:
- before =
- "HTML" === parent.nodeName
- ? parent.ownerDocument.body
- : parent;
- }
- before.appendChild(node);
- parent = parent._reactRootContainer;
- (null !== parent && void 0 !== parent) ||
- null !== before.onclick ||
- (before.onclick = noop$1);
- }
+ : parent),
+ before.appendChild(node),
+ (parent = parent._reactRootContainer),
+ (null !== parent && void 0 !== parent) ||
+ null !== before.onclick ||
+ (before.onclick = noop$1));
else if (
4 !== tag &&
- (27 === tag && "head" === node.type && (parent = node.stateNode),
+ (27 === tag &&
+ isSingletonScope(node.type) &&
+ ((parent = node.stateNode), (before = null)),
(node = node.child),
null !== node)
)
@@ -7950,7 +7944,9 @@
: parent.appendChild(node);
else if (
4 !== tag &&
- (27 === tag && "head" === node.type && (parent = node.stateNode),
+ (27 === tag &&
+ isSingletonScope(node.type) &&
+ (parent = node.stateNode),
(node = node.child),
null !== node)
)
@@ -8341,7 +8337,7 @@
safelyDetachRef(deletedFiber, nearestMountedAncestor);
var prevHostParent = hostParent,
prevHostParentIsContainer = hostParentIsContainer;
- "head" === deletedFiber.type &&
+ isSingletonScope(deletedFiber.type) &&
((hostParent = deletedFiber.stateNode),
(hostParentIsContainer = !1));
recursivelyTraverseDeletionEffects(
@@ -8370,20 +8366,12 @@
if (null !== hostParent)
if (hostParentIsContainer)
try {
- switch (hostParent.nodeType) {
- case 8:
- var parentNode = hostParent.parentNode;
- break;
- case 9:
- parentNode = hostParent.body;
- break;
- default:
- parentNode =
- "HTML" === hostParent.nodeName
- ? hostParent.ownerDocument.body
- : hostParent;
- }
- parentNode.removeChild(deletedFiber.stateNode);
+ (9 === hostParent.nodeType
+ ? hostParent.body
+ : "HTML" === hostParent.nodeName
+ ? hostParent.ownerDocument.body
+ : hostParent
+ ).removeChild(deletedFiber.stateNode);
} catch (error) {
captureCommitPhaseError(
deletedFiber,
@@ -8406,20 +8394,14 @@
null !== hostParent &&
(hostParentIsContainer
? ((finishedRoot = hostParent),
- (deletedFiber = deletedFiber.stateNode),
- 8 === finishedRoot.nodeType
- ? clearSuspenseBoundary(
- finishedRoot.parentNode,
- deletedFiber
- )
- : 9 === finishedRoot.nodeType
- ? clearSuspenseBoundary(finishedRoot.body, deletedFiber)
- : "HTML" === finishedRoot.nodeName
- ? clearSuspenseBoundary(
- finishedRoot.ownerDocument.body,
- deletedFiber
- )
- : clearSuspenseBoundary(finishedRoot, deletedFiber),
+ clearSuspenseBoundary(
+ 9 === finishedRoot.nodeType
+ ? finishedRoot.body
+ : "HTML" === finishedRoot.nodeName
+ ? finishedRoot.ownerDocument.body
+ : finishedRoot,
+ deletedFiber.stateNode
+ ),
retryIfBlockedOn(finishedRoot))
: clearSuspenseBoundary(hostParent, deletedFiber.stateNode));
break;
@@ -8557,7 +8539,7 @@
a: for (; null !== parent; ) {
switch (parent.tag) {
case 27:
- if ("head" === parent.type) {
+ if (isSingletonScope(parent.type)) {
hostParent = parent.stateNode;
hostParentIsContainer = !1;
break a;
@@ -10113,14 +10095,14 @@
function popToNextHostParent(fiber) {
for (hydrationParentFiber = fiber.return; hydrationParentFiber; )
switch (hydrationParentFiber.tag) {
- case 3:
- case 27:
- rootOrSingletonContext = !0;
- return;
case 5:
case 13:
rootOrSingletonContext = !1;
return;
+ case 27:
+ case 3:
+ rootOrSingletonContext = !0;
+ return;
default:
hydrationParentFiber = hydrationParentFiber.return;
}
@@ -10129,52 +10111,58 @@
if (fiber !== hydrationParentFiber) return !1;
if (!isHydrating)
return popToNextHostParent(fiber), (isHydrating = !0), !1;
- var shouldClear = !1,
+ var tag = fiber.tag,
JSCompiler_temp;
- if ((JSCompiler_temp = 3 !== fiber.tag && 27 !== fiber.tag)) {
- if ((JSCompiler_temp = 5 === fiber.tag))
+ if ((JSCompiler_temp = 3 !== tag && 27 !== tag)) {
+ if ((JSCompiler_temp = 5 === tag))
(JSCompiler_temp = fiber.type),
(JSCompiler_temp =
!("form" !== JSCompiler_temp && "button" !== JSCompiler_temp) ||
shouldSetTextContent(fiber.type, fiber.memoizedProps));
JSCompiler_temp = !JSCompiler_temp;
}
- JSCompiler_temp && (shouldClear = !0);
- shouldClear &&
+ JSCompiler_temp &&
nextHydratableInstance &&
throwOnHydrationMismatch(fiber);
popToNextHostParent(fiber);
- if (13 === fiber.tag) {
+ if (13 === tag) {
fiber = fiber.memoizedState;
fiber = null !== fiber ? fiber.dehydrated : null;
if (!fiber) throw Error(formatProdErrorMessage(317));
a: {
fiber = fiber.nextSibling;
- for (shouldClear = 0; fiber; ) {
+ for (tag = 0; fiber; ) {
if (8 === fiber.nodeType)
if (
((JSCompiler_temp = fiber.data), "/$" === JSCompiler_temp)
) {
- if (0 === shouldClear) {
+ if (0 === tag) {
nextHydratableInstance = getNextHydratable(
fiber.nextSibling
);
break a;
}
- shouldClear--;
+ tag--;
} else
("$" !== JSCompiler_temp &&
"$!" !== JSCompiler_temp &&
"$?" !== JSCompiler_temp) ||
- shouldClear++;
+ tag++;
fiber = fiber.nextSibling;
}
nextHydratableInstance = null;
}
} else
- nextHydratableInstance = hydrationParentFiber
- ? getNextHydratable(fiber.stateNode.nextSibling)
- : null;
+ 27 === tag
+ ? ((tag = nextHydratableInstance),
+ isSingletonScope(fiber.type)
+ ? ((fiber = previousHydratableOnEnteringScopedSingleton),
+ (previousHydratableOnEnteringScopedSingleton = null),
+ (nextHydratableInstance = fiber))
+ : (nextHydratableInstance = tag))
+ : (nextHydratableInstance = hydrationParentFiber
+ ? getNextHydratable(fiber.stateNode.nextSibling)
+ : null);
return !0;
}
function resetHydrationState() {
@@ -12528,20 +12516,20 @@
}
}
for (
- var i$jscomp$inline_1491 = 0;
- i$jscomp$inline_1491 < simpleEventPluginEvents.length;
- i$jscomp$inline_1491++
+ var i$jscomp$inline_1502 = 0;
+ i$jscomp$inline_1502 < simpleEventPluginEvents.length;
+ i$jscomp$inline_1502++
) {
- var eventName$jscomp$inline_1492 =
- simpleEventPluginEvents[i$jscomp$inline_1491],
- domEventName$jscomp$inline_1493 =
- eventName$jscomp$inline_1492.toLowerCase(),
- capitalizedEvent$jscomp$inline_1494 =
- eventName$jscomp$inline_1492[0].toUpperCase() +
- eventName$jscomp$inline_1492.slice(1);
+ var eventName$jscomp$inline_1503 =
+ simpleEventPluginEvents[i$jscomp$inline_1502],
+ domEventName$jscomp$inline_1504 =
+ eventName$jscomp$inline_1503.toLowerCase(),
+ capitalizedEvent$jscomp$inline_1505 =
+ eventName$jscomp$inline_1503[0].toUpperCase() +
+ eventName$jscomp$inline_1503.slice(1);
registerSimpleEvent(
- domEventName$jscomp$inline_1493,
- "on" + capitalizedEvent$jscomp$inline_1494
+ domEventName$jscomp$inline_1504,
+ "on" + capitalizedEvent$jscomp$inline_1505
);
}
registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
@@ -12770,23 +12758,15 @@
var nodeTag = targetInst$jscomp$0.tag;
if (3 === nodeTag || 4 === nodeTag) {
var container = targetInst$jscomp$0.stateNode.containerInfo;
- if (
- container === targetContainer ||
- (8 === container.nodeType &&
- container.parentNode === targetContainer)
- )
- break;
+ if (container === targetContainer) break;
if (4 === nodeTag)
for (nodeTag = targetInst$jscomp$0.return; null !== nodeTag; ) {
var grandTag = nodeTag.tag;
- if (3 === grandTag || 4 === grandTag)
- if (
- ((grandTag = nodeTag.stateNode.containerInfo),
- grandTag === targetContainer ||
- (8 === grandTag.nodeType &&
- grandTag.parentNode === targetContainer))
- )
- return;
+ if (
+ (3 === grandTag || 4 === grandTag) &&
+ nodeTag.stateNode.containerInfo === targetContainer
+ )
+ return;
nodeTag = nodeTag.return;
}
for (; null !== container; ) {
@@ -14476,21 +14456,57 @@
throw error;
});
}
+ function isSingletonScope(type) {
+ return "head" === type;
+ }
function clearSuspenseBoundary(parentInstance, suspenseInstance) {
var node = suspenseInstance,
+ possiblePreambleContribution = 0,
depth = 0;
do {
var nextNode = node.nextSibling;
parentInstance.removeChild(node);
if (nextNode && 8 === nextNode.nodeType)
if (((node = nextNode.data), "/$" === node)) {
+ if (
+ 0 < possiblePreambleContribution &&
+ 8 > possiblePreambleContribution
+ ) {
+ node = possiblePreambleContribution;
+ var ownerDocument = parentInstance.ownerDocument;
+ node & 1 &&
+ releaseSingletonInstance(ownerDocument.documentElement);
+ node & 2 && releaseSingletonInstance(ownerDocument.body);
+ if (node & 4)
+ for (
+ node = ownerDocument.head,
+ releaseSingletonInstance(node),
+ ownerDocument = node.firstChild;
+ ownerDocument;
+
+ ) {
+ var nextNode$jscomp$0 = ownerDocument.nextSibling,
+ nodeName = ownerDocument.nodeName;
+ ownerDocument[internalHoistableMarker] ||
+ "SCRIPT" === nodeName ||
+ "STYLE" === nodeName ||
+ ("LINK" === nodeName &&
+ "stylesheet" === ownerDocument.rel.toLowerCase()) ||
+ node.removeChild(ownerDocument);
+ ownerDocument = nextNode$jscomp$0;
+ }
+ }
if (0 === depth) {
parentInstance.removeChild(nextNode);
retryIfBlockedOn(suspenseInstance);
return;
}
depth--;
- } else ("$" !== node && "$?" !== node && "$!" !== node) || depth++;
+ } else
+ "$" === node || "$?" === node || "$!" === node
+ ? depth++
+ : (possiblePreambleContribution = node.charCodeAt(0) - 48);
+ else possiblePreambleContribution = 0;
node = nextNode;
} while (node);
retryIfBlockedOn(suspenseInstance);
@@ -14645,6 +14661,7 @@
}
return node;
}
+ var previousHydratableOnEnteringScopedSingleton = null;
function getParentSuspenseInstance(targetInstance) {
targetInstance = targetInstance.previousSibling;
for (var depth = 0; targetInstance; ) {
@@ -16232,16 +16249,16 @@
0 === i && attemptExplicitHydrationTarget(target);
}
};
- var isomorphicReactPackageVersion$jscomp$inline_1738 = React.version;
+ var isomorphicReactPackageVersion$jscomp$inline_1754 = React.version;
if (
- "19.1.0-canary-0a82580b-20250203" !==
- isomorphicReactPackageVersion$jscomp$inline_1738
+ "19.1.0-canary-d85cf3e5-20250205" !==
+ isomorphicReactPackageVersion$jscomp$inline_1754
)
throw Error(
formatProdErrorMessage(
527,
- isomorphicReactPackageVersion$jscomp$inline_1738,
- "19.1.0-canary-0a82580b-20250203"
+ isomorphicReactPackageVersion$jscomp$inline_1754,
+ "19.1.0-canary-d85cf3e5-20250205"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -16261,24 +16278,24 @@
null === componentOrElement ? null : componentOrElement.stateNode;
return componentOrElement;
};
- var internals$jscomp$inline_2215 = {
+ var internals$jscomp$inline_2235 = {
bundleType: 0,
- version: "19.1.0-canary-0a82580b-20250203",
+ version: "19.1.0-canary-d85cf3e5-20250205",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
- reconcilerVersion: "19.1.0-canary-0a82580b-20250203",
+ reconcilerVersion: "19.1.0-canary-d85cf3e5-20250205",
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
- var hook$jscomp$inline_2216 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
+ var hook$jscomp$inline_2236 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (
- !hook$jscomp$inline_2216.isDisabled &&
- hook$jscomp$inline_2216.supportsFiber
+ !hook$jscomp$inline_2236.isDisabled &&
+ hook$jscomp$inline_2236.supportsFiber
)
try {
- (rendererID = hook$jscomp$inline_2216.inject(
- internals$jscomp$inline_2215
+ (rendererID = hook$jscomp$inline_2236.inject(
+ internals$jscomp$inline_2235
)),
- (injectedHook = hook$jscomp$inline_2216);
+ (injectedHook = hook$jscomp$inline_2236);
} catch (err) {}
}
exports.createRoot = function (container, options) {
@@ -16318,9 +16335,7 @@
null
);
container[internalContainerInstanceKey] = options.current;
- listenToAllSupportedEvents(
- 8 === container.nodeType ? container.parentNode : container
- );
+ listenToAllSupportedEvents(container);
return new ReactDOMRoot(options);
};
exports.hydrateRoot = function (container, initialChildren, options) {
@@ -16376,7 +16391,7 @@
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
- exports.version = "19.1.0-canary-0a82580b-20250203";
+ exports.version = "19.1.0-canary-d85cf3e5-20250205";
/***/
},
Diff for main-HASH.js
Diff too large to display
Diff for app-page-exp..ntime.dev.js
Diff too large to display
Diff for app-page-exp..time.prod.js
Diff too large to display
Diff for app-page-tur..time.prod.js
Diff too large to display
Diff for app-page-tur..time.prod.js
Diff too large to display
Diff for app-page.runtime.dev.js
Diff too large to display
Diff for app-page.runtime.prod.js
Diff too large to display
ce022bf
to
d294640
Compare
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Base automatically changed from
sebbie/02-06-return_null_if_redbox_has_no_component_stack
to
canary
February 7, 2025 00:48
d294640
to
56ca555
Compare
eps1lon
approved these changes
Feb 7, 2025
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
diff facebook/[email protected]
React upstream changes