Skip to content

Commit a25865f

Browse files
Upgrade React from 92f4fda3-20260629 to ec0fca31-20260701 (#95368)
Co-authored-by: next-js-bot[bot] <279046576+next-js-bot[bot]@users.noreply.github.com>
1 parent cd0aee9 commit a25865f

62 files changed

Lines changed: 1708 additions & 841 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎package.json‎

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -258,25 +258,25 @@
258258
"pretty-ms": "7.0.0",
259259
"random-seed": "0.3.0",
260260
"react": "19.0.0",
261-
"react-builtin": "npm:react@19.3.0-canary-92f4fda3-20260629",
261+
"react-builtin": "npm:react@19.3.0-canary-ec0fca31-20260701",
262262
"react-dom": "19.0.0",
263-
"react-dom-builtin": "npm:react-dom@19.3.0-canary-92f4fda3-20260629",
264-
"react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-92f4fda3-20260629",
265-
"react-experimental-builtin": "npm:react@0.0.0-experimental-92f4fda3-20260629",
266-
"react-is-builtin": "npm:react-is@19.3.0-canary-92f4fda3-20260629",
267-
"react-server-dom-turbopack": "npm:react-server-dom-turbopack@19.3.0-canary-92f4fda3-20260629",
268-
"react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-92f4fda3-20260629",
269-
"react-server-dom-webpack": "npm:react-server-dom-webpack@19.3.0-canary-92f4fda3-20260629",
270-
"react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-92f4fda3-20260629",
263+
"react-dom-builtin": "npm:react-dom@19.3.0-canary-ec0fca31-20260701",
264+
"react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-ec0fca31-20260701",
265+
"react-experimental-builtin": "npm:react@0.0.0-experimental-ec0fca31-20260701",
266+
"react-is-builtin": "npm:react-is@19.3.0-canary-ec0fca31-20260701",
267+
"react-server-dom-turbopack": "npm:react-server-dom-turbopack@19.3.0-canary-ec0fca31-20260701",
268+
"react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-ec0fca31-20260701",
269+
"react-server-dom-webpack": "npm:react-server-dom-webpack@19.3.0-canary-ec0fca31-20260701",
270+
"react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-ec0fca31-20260701",
271271
"react-ssr-prepass": "1.0.8",
272272
"react-virtualized": "9.22.3",
273273
"release": "6.3.1",
274274
"request-promise-core": "1.1.2",
275275
"resolve-from": "5.0.0",
276276
"sass": "1.54.0",
277277
"satori": "0.25.0",
278-
"scheduler-builtin": "npm:scheduler@0.28.0-canary-92f4fda3-20260629",
279-
"scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-92f4fda3-20260629",
278+
"scheduler-builtin": "npm:scheduler@0.28.0-canary-ec0fca31-20260701",
279+
"scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-ec0fca31-20260701",
280280
"seedrandom": "3.0.5",
281281
"semver": "7.3.7",
282282
"serve-handler": "6.1.6",
@@ -320,10 +320,10 @@
320320
"@types/react-dom": "19.2.3",
321321
"@types/retry": "0.12.0",
322322
"jest-snapshot": "30.0.0-alpha.6",
323-
"react": "npm:react@19.3.0-canary-92f4fda3-20260629",
324-
"react-dom": "npm:react-dom@19.3.0-canary-92f4fda3-20260629",
325-
"react-is": "npm:react-is@19.3.0-canary-92f4fda3-20260629",
326-
"scheduler": "npm:scheduler@0.28.0-canary-92f4fda3-20260629"
323+
"react": "npm:react@19.3.0-canary-ec0fca31-20260701",
324+
"react-dom": "npm:react-dom@19.3.0-canary-ec0fca31-20260701",
325+
"react-is": "npm:react-is@19.3.0-canary-ec0fca31-20260701",
326+
"scheduler": "npm:scheduler@0.28.0-canary-ec0fca31-20260701"
327327
},
328328
"packageExtensions": {
329329
"eslint-plugin-react-hooks@0.0.0-experimental-6de32a5a-20250822": {

‎packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.development.js‎

Lines changed: 158 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5069,7 +5069,7 @@
50695069
(workInProgress.key = current.key),
50705070
(workInProgress.actualDuration = -0),
50715071
(workInProgress.actualStartTime = -1.1));
5072-
workInProgress.flags = current.flags & 133169152;
5072+
workInProgress.flags = current.flags & 1206910976;
50735073
workInProgress.childLanes = current.childLanes;
50745074
workInProgress.lanes = current.lanes;
50755075
workInProgress.child = current.child;
@@ -5107,7 +5107,7 @@
51075107
return workInProgress;
51085108
}
51095109
function resetWorkInProgress(workInProgress, renderLanes) {
5110-
workInProgress.flags &= 133169154;
5110+
workInProgress.flags &= 1206910978;
51115111
var current = workInProgress.alternate;
51125112
null === current
51135113
? ((workInProgress.childLanes = 0),
@@ -8221,7 +8221,7 @@
82218221
null;
82228222
hookTypesUpdateIndexDev = -1;
82238223
null !== current &&
8224-
(current.flags & 133169152) !== (workInProgress.flags & 133169152) &&
8224+
(current.flags & 1206910976) !== (workInProgress.flags & 1206910976) &&
82258225
console.error(
82268226
"Internal React error: Expected static flag was missing. Please notify the React team."
82278227
);
@@ -11705,7 +11705,7 @@
1170511705
}
1170611706
)),
1170711707
(JSCompiler_object_inline_stack_3228.subtreeFlags =
11708-
componentStack.subtreeFlags & 133169152),
11708+
componentStack.subtreeFlags & 1206910976),
1170911709
null !== JSCompiler_object_inline_componentStack_3229
1171011710
? (nextPrimaryChildren = createWorkInProgress(
1171111711
JSCompiler_object_inline_componentStack_3229,
@@ -13109,8 +13109,8 @@
1310913109

1311013110
)
1311113111
(newChildLanes |= _child2.lanes | _child2.childLanes),
13112-
(subtreeFlags |= _child2.subtreeFlags & 133169152),
13113-
(subtreeFlags |= _child2.flags & 133169152),
13112+
(subtreeFlags |= _child2.subtreeFlags & 1206910976),
13113+
(subtreeFlags |= _child2.flags & 1206910976),
1311413114
(_treeBaseDuration += _child2.treeBaseDuration),
1311513115
(_child2 = _child2.sibling);
1311613116
completedWork.treeBaseDuration = _treeBaseDuration;
@@ -13122,8 +13122,8 @@
1312213122
)
1312313123
(newChildLanes |=
1312413124
_treeBaseDuration.lanes | _treeBaseDuration.childLanes),
13125-
(subtreeFlags |= _treeBaseDuration.subtreeFlags & 133169152),
13126-
(subtreeFlags |= _treeBaseDuration.flags & 133169152),
13125+
(subtreeFlags |= _treeBaseDuration.subtreeFlags & 1206910976),
13126+
(subtreeFlags |= _treeBaseDuration.flags & 1206910976),
1312713127
(_treeBaseDuration.return = completedWork),
1312813128
(_treeBaseDuration = _treeBaseDuration.sibling);
1312913129
else if ((completedWork.mode & ProfileMode) !== NoMode) {
@@ -13841,6 +13841,16 @@
1384113841
case 30:
1384213842
return (
1384313843
(workInProgress.flags |= 33554432),
13844+
(current = workInProgress.pendingProps),
13845+
(workInProgress.flags =
13846+
void 0 !== current.parentEnter ||
13847+
void 0 !== current.parentExit ||
13848+
null != current.onParentEnter ||
13849+
null != current.onParentExit ||
13850+
null != current.onGestureParentEnter ||
13851+
null != current.onGestureParentExit
13852+
? workInProgress.flags | 1073741824
13853+
: workInProgress.flags & -1073741825),
1384413854
bubbleProperties(workInProgress),
1384513855
null
1384613856
);
@@ -14771,6 +14781,130 @@
1477114781
placement = placement.sibling;
1477214782
}
1477314783
}
14784+
function commitParentEnterViewTransitions(parent, gesture) {
14785+
for (parent = parent.child; null !== parent; ) {
14786+
if (22 !== parent.tag || null === parent.memoizedState)
14787+
if (30 === parent.tag) {
14788+
var props = parent.memoizedProps,
14789+
hasParentClass = void 0 !== props.parentEnter,
14790+
hasParentHandler = gesture
14791+
? null != props.onGestureParentEnter
14792+
: null != props.onParentEnter;
14793+
if (hasParentClass || hasParentHandler) {
14794+
var relay = !0;
14795+
if (hasParentClass) {
14796+
hasParentClass = getViewTransitionName(props, parent.stateNode);
14797+
var className = getViewTransitionClassName(
14798+
props.default,
14799+
props.parentEnter
14800+
);
14801+
"none" === className
14802+
? (relay = !1)
14803+
: (applyViewTransitionToHostInstances(
14804+
parent,
14805+
hasParentClass,
14806+
className,
14807+
null,
14808+
!1
14809+
),
14810+
hasParentHandler &&
14811+
(gesture
14812+
? scheduleGestureTransitionEvent(
14813+
parent,
14814+
props.onGestureParentEnter
14815+
)
14816+
: scheduleViewTransitionEvent(
14817+
parent,
14818+
props.onParentEnter
14819+
)));
14820+
} else
14821+
gesture
14822+
? scheduleGestureTransitionEvent(
14823+
parent,
14824+
props.onGestureParentEnter
14825+
)
14826+
: scheduleViewTransitionEvent(parent, props.onParentEnter);
14827+
relay && commitParentEnterViewTransitions(parent, gesture);
14828+
}
14829+
} else
14830+
0 !== (parent.subtreeFlags & 1073741824) &&
14831+
commitParentEnterViewTransitions(parent, gesture);
14832+
parent = parent.sibling;
14833+
}
14834+
}
14835+
function commitParentExitViewTransitions(parent, gesture) {
14836+
for (parent = parent.child; null !== parent; ) {
14837+
if (22 !== parent.tag || null === parent.memoizedState)
14838+
if (30 === parent.tag) {
14839+
var props = parent.memoizedProps,
14840+
hasParentClass = void 0 !== props.parentExit,
14841+
hasParentHandler = gesture
14842+
? null != props.onGestureParentExit
14843+
: null != props.onParentExit;
14844+
if (hasParentClass || hasParentHandler) {
14845+
var relay = !0;
14846+
if (hasParentClass) {
14847+
hasParentClass = getViewTransitionName(props, parent.stateNode);
14848+
var className = getViewTransitionClassName(
14849+
props.default,
14850+
props.parentExit
14851+
);
14852+
"none" === className
14853+
? (relay = !1)
14854+
: (applyViewTransitionToHostInstances(
14855+
parent,
14856+
hasParentClass,
14857+
className,
14858+
null,
14859+
!1
14860+
),
14861+
hasParentHandler &&
14862+
(gesture
14863+
? scheduleGestureTransitionEvent(
14864+
parent,
14865+
props.onGestureParentExit
14866+
)
14867+
: scheduleViewTransitionEvent(
14868+
parent,
14869+
props.onParentExit
14870+
)));
14871+
} else
14872+
gesture
14873+
? scheduleGestureTransitionEvent(
14874+
parent,
14875+
props.onGestureParentExit
14876+
)
14877+
: scheduleViewTransitionEvent(parent, props.onParentExit);
14878+
relay && commitParentExitViewTransitions(parent, gesture);
14879+
}
14880+
} else
14881+
0 !== (parent.subtreeFlags & 1073741824) &&
14882+
commitParentExitViewTransitions(parent, gesture);
14883+
parent = parent.sibling;
14884+
}
14885+
}
14886+
function restoreParentEnterOrExitViewTransitions(parent) {
14887+
for (parent = parent.child; null !== parent; ) {
14888+
if (22 !== parent.tag || null === parent.memoizedState)
14889+
if (30 === parent.tag) {
14890+
var props = parent.memoizedProps,
14891+
hasParentClass =
14892+
void 0 !== props.parentEnter || void 0 !== props.parentExit;
14893+
props =
14894+
null != props.onParentEnter ||
14895+
null != props.onParentExit ||
14896+
null != props.onGestureParentEnter ||
14897+
null != props.onGestureParentExit;
14898+
hasParentClass &&
14899+
restoreViewTransitionOnHostInstances(parent.child, !1);
14900+
(hasParentClass || props) &&
14901+
restoreParentEnterOrExitViewTransitions(parent);
14902+
} else
14903+
0 !== (parent.subtreeFlags & 1073741824) &&
14904+
restoreParentEnterOrExitViewTransitions(parent);
14905+
parent = parent.sibling;
14906+
}
14907+
}
1477414908
function commitEnterViewTransitions(placement, gesture) {
1477514909
if (30 === placement.tag) {
1477614910
var state = placement.stateNode,
@@ -14795,7 +14929,8 @@
1479514929
placement,
1479614930
props.onGestureEnter
1479714931
)
14798-
: scheduleViewTransitionEvent(placement, props.onEnter)))
14932+
: scheduleViewTransitionEvent(placement, props.onEnter),
14933+
commitParentEnterViewTransitions(placement, gesture)))
1479914934
: restoreViewTransitionOnHostInstances(placement.child, !1)
1480014935
: commitAppearingPairViewTransitions(placement);
1480114936
} else if (0 !== (placement.subtreeFlags & 33554432))
@@ -14876,7 +15011,8 @@
1487615011
(className.paired = pair),
1487715012
appearingViewTransitions.delete(name),
1487815013
scheduleViewTransitionEvent(deletion, props.onShare))
14879-
: scheduleViewTransitionEvent(deletion, props.onExit)
15014+
: (scheduleViewTransitionEvent(deletion, props.onExit),
15015+
commitParentExitViewTransitions(deletion, !1))
1488015016
: restoreViewTransitionOnHostInstances(deletion.child, !1));
1488115017
null !== appearingViewTransitions &&
1488215018
commitDeletedPairViewTransitions(deletion);
@@ -14927,6 +15063,7 @@
1492715063
if (30 === fiber.tag)
1492815064
(fiber.stateNode.paired = null),
1492915065
restoreViewTransitionOnHostInstances(fiber.child, !1),
15066+
restoreParentEnterOrExitViewTransitions(fiber),
1493015067
restorePairedViewTransitions(fiber);
1493115068
else if (0 !== (fiber.subtreeFlags & 33554432))
1493215069
for (fiber = fiber.child; null !== fiber; )
@@ -18082,7 +18219,8 @@
1808218219
applyViewTransitionToClones(name, className, clones, placement);
1808318220
state.paired
1808418221
? scheduleGestureTransitionEvent(placement, props.onGestureShare)
18085-
: scheduleGestureTransitionEvent(placement, props.onGestureExit);
18222+
: (scheduleGestureTransitionEvent(placement, props.onGestureExit),
18223+
commitParentExitViewTransitions(placement, !0));
1808618224
}
1808718225
}
1808818226
function recursivelyInsertNew(
@@ -18955,7 +19093,10 @@
1895519093
errorRetryLanes,
1895619094
!1
1895719095
);
18958-
if (errorRetryLanes !== RootErrored) {
19096+
if (
19097+
errorRetryLanes !== RootErrored &&
19098+
errorRetryLanes !== RootSuspendedAtTheShell
19099+
) {
1895919100
if (
1896019101
workInProgressRootDidAttachPingListener &&
1896119102
!wasRootDehydrated
@@ -32915,11 +33056,11 @@
3291533056
};
3291633057
(function () {
3291733058
var isomorphicReactPackageVersion = React.version;
32918-
if ("19.3.0-experimental-92f4fda3-20260629" !== isomorphicReactPackageVersion)
33059+
if ("19.3.0-experimental-ec0fca31-20260701" !== isomorphicReactPackageVersion)
3291933060
throw Error(
3292033061
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
3292133062
(isomorphicReactPackageVersion +
32922-
"\n - react-dom: 19.3.0-experimental-92f4fda3-20260629\nLearn more: https://react.dev/warnings/version-mismatch")
33063+
"\n - react-dom: 19.3.0-experimental-ec0fca31-20260701\nLearn more: https://react.dev/warnings/version-mismatch")
3292333064
);
3292433065
})();
3292533066
("function" === typeof Map &&
@@ -32956,10 +33097,10 @@
3295633097
!(function () {
3295733098
var internals = {
3295833099
bundleType: 1,
32959-
version: "19.3.0-experimental-92f4fda3-20260629",
33100+
version: "19.3.0-experimental-ec0fca31-20260701",
3296033101
rendererPackageName: "react-dom",
3296133102
currentDispatcherRef: ReactSharedInternals,
32962-
reconcilerVersion: "19.3.0-experimental-92f4fda3-20260629"
33103+
reconcilerVersion: "19.3.0-experimental-ec0fca31-20260701"
3296333104
};
3296433105
internals.overrideHookState = overrideHookState;
3296533106
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -33107,7 +33248,7 @@
3310733248
listenToAllSupportedEvents(container);
3310833249
return new ReactDOMHydrationRoot(initialChildren);
3310933250
};
33110-
exports.version = "19.3.0-experimental-92f4fda3-20260629";
33251+
exports.version = "19.3.0-experimental-ec0fca31-20260701";
3311133252
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
3311233253
"function" ===
3311333254
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)