Skip to content

Commit 72be937

Browse files
Upgrade React from 5b51a2b9-20250116 to 9b62ee71-20250122 (#75187)
1 parent 07d2820 commit 72be937

File tree

86 files changed

+8365
-2866
lines changed

Some content is hidden

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

86 files changed

+8365
-2866
lines changed

package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -213,16 +213,16 @@
213213
"pretty-ms": "7.0.0",
214214
"random-seed": "0.3.0",
215215
"react": "19.0.0",
216-
"react-builtin": "npm:react@19.1.0-canary-5b51a2b9-20250116",
216+
"react-builtin": "npm:react@19.1.0-canary-9b62ee71-20250122",
217217
"react-dom": "19.0.0",
218-
"react-dom-builtin": "npm:react-dom@19.1.0-canary-5b51a2b9-20250116",
219-
"react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-5b51a2b9-20250116",
220-
"react-experimental-builtin": "npm:react@0.0.0-experimental-5b51a2b9-20250116",
221-
"react-is-builtin": "npm:react-is@19.1.0-canary-5b51a2b9-20250116",
222-
"react-server-dom-turbopack": "19.1.0-canary-5b51a2b9-20250116",
223-
"react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-5b51a2b9-20250116",
224-
"react-server-dom-webpack": "19.1.0-canary-5b51a2b9-20250116",
225-
"react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-5b51a2b9-20250116",
218+
"react-dom-builtin": "npm:react-dom@19.1.0-canary-9b62ee71-20250122",
219+
"react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-9b62ee71-20250122",
220+
"react-experimental-builtin": "npm:react@0.0.0-experimental-9b62ee71-20250122",
221+
"react-is-builtin": "npm:react-is@19.1.0-canary-9b62ee71-20250122",
222+
"react-server-dom-turbopack": "19.1.0-canary-9b62ee71-20250122",
223+
"react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-9b62ee71-20250122",
224+
"react-server-dom-webpack": "19.1.0-canary-9b62ee71-20250122",
225+
"react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-9b62ee71-20250122",
226226
"react-ssr-prepass": "1.0.8",
227227
"react-virtualized": "9.22.3",
228228
"relay-compiler": "13.0.2",
@@ -232,8 +232,8 @@
232232
"resolve-from": "5.0.0",
233233
"sass": "1.54.0",
234234
"satori": "0.10.9",
235-
"scheduler-builtin": "npm:scheduler@0.26.0-canary-5b51a2b9-20250116",
236-
"scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-5b51a2b9-20250116",
235+
"scheduler-builtin": "npm:scheduler@0.26.0-canary-9b62ee71-20250122",
236+
"scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-9b62ee71-20250122",
237237
"seedrandom": "3.0.5",
238238
"semver": "7.3.7",
239239
"shell-quote": "1.7.3",
@@ -274,10 +274,10 @@
274274
"@types/react": "19.0.0",
275275
"@types/react-dom": "19.0.0",
276276
"jest-snapshot": "30.0.0-alpha.6",
277-
"react": "19.1.0-canary-5b51a2b9-20250116",
278-
"react-dom": "19.1.0-canary-5b51a2b9-20250116",
279-
"react-is": "19.1.0-canary-5b51a2b9-20250116",
280-
"scheduler": "0.26.0-canary-5b51a2b9-20250116"
277+
"react": "19.1.0-canary-9b62ee71-20250122",
278+
"react-dom": "19.1.0-canary-9b62ee71-20250122",
279+
"react-is": "19.1.0-canary-9b62ee71-20250122",
280+
"scheduler": "0.26.0-canary-9b62ee71-20250122"
281281
},
282282
"patchedDependencies": {
283283
"webpack-sources@3.2.3": "patches/webpack-sources@3.2.3.patch",

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

Lines changed: 48 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14846,14 +14846,31 @@
1484614846
? props.name
1484714847
: instance.autoName;
1484814848
}
14849-
function getViewTransitionClassName(className, eventClassName) {
14850-
return null == eventClassName
14851-
? className
14852-
: "none" === eventClassName
14853-
? eventClassName
14854-
: null != className
14855-
? className + " " + eventClassName
14856-
: eventClassName;
14849+
function getClassNameByType(classByType) {
14850+
if (null == classByType || "string" === typeof classByType)
14851+
return classByType;
14852+
var className = null,
14853+
activeTypes = pendingTransitionTypes;
14854+
if (null !== activeTypes)
14855+
for (var i = 0; i < activeTypes.length; i++) {
14856+
var match = classByType[activeTypes[i]];
14857+
if (null != match) {
14858+
if ("none" === match) return "none";
14859+
className = null == className ? match : className + (" " + match);
14860+
}
14861+
}
14862+
return null == className ? classByType.default : className;
14863+
}
14864+
function getViewTransitionClassName(defaultClass, eventClass) {
14865+
defaultClass = getClassNameByType(defaultClass);
14866+
eventClass = getClassNameByType(eventClass);
14867+
return null == eventClass
14868+
? defaultClass
14869+
: "none" === eventClass
14870+
? eventClass
14871+
: null != defaultClass && "none" !== defaultClass
14872+
? defaultClass + " " + eventClass
14873+
: eventClass;
1485714874
}
1485814875
function markUpdate(workInProgress) {
1485914876
workInProgress.flags |= 4;
@@ -17005,10 +17022,14 @@
1700517022
pendingEffectsRemainingLanes = didIncludeRenderPhaseUpdate;
1700617023
pendingPassiveTransitions = transitions;
1700717024
pendingRecoverableErrors = recoverableErrors;
17008-
pendingViewTransitionEvents = null;
1700917025
pendingEffectsRenderEndTime = completedRenderEndTime;
1701017026
pendingSuspendedCommitReason = suspendedCommitReason;
17011-
recoverableErrors = (lanes & 335544192) === lanes ? 10262 : 10256;
17027+
pendingViewTransitionEvents = null;
17028+
(lanes & 335544192) === lanes
17029+
? ((pendingTransitionTypes = ReactSharedInternals.V),
17030+
(ReactSharedInternals.V = null),
17031+
(recoverableErrors = 10262))
17032+
: ((pendingTransitionTypes = null), (recoverableErrors = 10256));
1701217033
0 !== finishedWork.actualDuration ||
1701317034
0 !== (finishedWork.subtreeFlags & recoverableErrors) ||
1701417035
0 !== (finishedWork.flags & recoverableErrors)
@@ -17054,6 +17075,7 @@
1705417075
(shouldStartViewTransition &&
1705517076
startViewTransition(
1705617077
root.containerInfo,
17078+
pendingTransitionTypes,
1705717079
flushMutationEffects,
1705817080
flushLayoutEffects,
1705917081
flushAfterMutationEffects,
@@ -17351,13 +17373,17 @@
1735117373
}
1735217374
}
1735317375
recoverableErrors = pendingViewTransitionEvents;
17376+
onRecoverableError = pendingTransitionTypes;
17377+
pendingTransitionTypes = null;
1735417378
if (null !== recoverableErrors)
1735517379
for (
17356-
pendingViewTransitionEvents = null, onRecoverableError = 0;
17357-
onRecoverableError < recoverableErrors.length;
17358-
onRecoverableError++
17380+
pendingViewTransitionEvents = null,
17381+
null === onRecoverableError && (onRecoverableError = []),
17382+
recoverableError = 0;
17383+
recoverableError < recoverableErrors.length;
17384+
recoverableError++
1735917385
)
17360-
(0, recoverableErrors[onRecoverableError])();
17386+
(0, recoverableErrors[recoverableError])(onRecoverableError);
1736117387
0 !== (pendingEffectsLanes & 3) && flushPendingEffects();
1736217388
ensureRootIsScheduled(root);
1736317389
suspendedCommitReason = root.pendingLanes;
@@ -21222,6 +21248,7 @@
2122221248
}
2122321249
function startViewTransition(
2122421250
rootContainer,
21251+
transitionTypes,
2122521252
mutationCallback,
2122621253
layoutCallback,
2122721254
afterMutationCallback,
@@ -21268,7 +21295,7 @@
2126821295
);
2126921296
afterMutationCallback();
2127021297
},
21271-
types: null
21298+
types: transitionTypes
2127221299
});
2127321300
ownerDocument.__reactViewTransition = transition;
2127421301
transition.ready.then(void 0, function (reason) {
@@ -26218,6 +26245,7 @@
2621826245
pendingPassiveTransitions = null,
2621926246
pendingRecoverableErrors = null,
2622026247
pendingViewTransitionEvents = null,
26248+
pendingTransitionTypes = null,
2622126249
pendingSuspendedCommitReason = IMMEDIATE_COMMIT,
2622226250
NESTED_UPDATE_LIMIT = 50,
2622326251
nestedUpdateCount = 0,
@@ -26794,11 +26822,11 @@
2679426822
};
2679526823
(function () {
2679626824
var isomorphicReactPackageVersion = React.version;
26797-
if ("19.1.0-experimental-5b51a2b9-20250116" !== isomorphicReactPackageVersion)
26825+
if ("19.1.0-experimental-9b62ee71-20250122" !== isomorphicReactPackageVersion)
2679826826
throw Error(
2679926827
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
2680026828
(isomorphicReactPackageVersion +
26801-
"\n - react-dom: 19.1.0-experimental-5b51a2b9-20250116\nLearn more: https://react.dev/warnings/version-mismatch")
26829+
"\n - react-dom: 19.1.0-experimental-9b62ee71-20250122\nLearn more: https://react.dev/warnings/version-mismatch")
2680226830
);
2680326831
})();
2680426832
("function" === typeof Map &&
@@ -26835,10 +26863,10 @@
2683526863
!(function () {
2683626864
var internals = {
2683726865
bundleType: 1,
26838-
version: "19.1.0-experimental-5b51a2b9-20250116",
26866+
version: "19.1.0-experimental-9b62ee71-20250122",
2683926867
rendererPackageName: "react-dom",
2684026868
currentDispatcherRef: ReactSharedInternals,
26841-
reconcilerVersion: "19.1.0-experimental-5b51a2b9-20250116"
26869+
reconcilerVersion: "19.1.0-experimental-9b62ee71-20250122"
2684226870
};
2684326871
internals.overrideHookState = overrideHookState;
2684426872
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -26982,7 +27010,7 @@
2698227010
listenToAllSupportedEvents(container);
2698327011
return new ReactDOMHydrationRoot(initialChildren);
2698427012
};
26985-
exports.version = "19.1.0-experimental-5b51a2b9-20250116";
27013+
exports.version = "19.1.0-experimental-9b62ee71-20250122";
2698627014
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2698727015
"function" ===
2698827016
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

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

Lines changed: 47 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10455,14 +10455,31 @@ function getViewTransitionName(props, instance) {
1045510455
? props.name
1045610456
: instance.autoName;
1045710457
}
10458-
function getViewTransitionClassName(className, eventClassName) {
10459-
return null == eventClassName
10460-
? className
10461-
: "none" === eventClassName
10462-
? eventClassName
10463-
: null != className
10464-
? className + " " + eventClassName
10465-
: eventClassName;
10458+
function getClassNameByType(classByType) {
10459+
if (null == classByType || "string" === typeof classByType)
10460+
return classByType;
10461+
var className = null,
10462+
activeTypes = pendingTransitionTypes;
10463+
if (null !== activeTypes)
10464+
for (var i = 0; i < activeTypes.length; i++) {
10465+
var match = classByType[activeTypes[i]];
10466+
if (null != match) {
10467+
if ("none" === match) return "none";
10468+
className = null == className ? match : className + (" " + match);
10469+
}
10470+
}
10471+
return null == className ? classByType.default : className;
10472+
}
10473+
function getViewTransitionClassName(defaultClass, eventClass) {
10474+
defaultClass = getClassNameByType(defaultClass);
10475+
eventClass = getClassNameByType(eventClass);
10476+
return null == eventClass
10477+
? defaultClass
10478+
: "none" === eventClass
10479+
? eventClass
10480+
: null != defaultClass && "none" !== defaultClass
10481+
? defaultClass + " " + eventClass
10482+
: eventClass;
1046610483
}
1046710484
function markUpdate(workInProgress) {
1046810485
workInProgress.flags |= 4;
@@ -11142,6 +11159,7 @@ var DefaultAsyncDispatcher = {
1114211159
pendingPassiveTransitions = null,
1114311160
pendingRecoverableErrors = null,
1114411161
pendingViewTransitionEvents = null,
11162+
pendingTransitionTypes = null,
1114511163
nestedUpdateCount = 0,
1114611164
rootWithNestedUpdates = null;
1114711165
function requestUpdateLane() {
@@ -12010,7 +12028,11 @@ function commitRoot(
1201012028
pendingPassiveTransitions = transitions;
1201112029
pendingRecoverableErrors = recoverableErrors;
1201212030
pendingViewTransitionEvents = null;
12013-
recoverableErrors = (lanes & 335544192) === lanes ? 10262 : 10256;
12031+
(lanes & 335544192) === lanes
12032+
? ((pendingTransitionTypes = ReactSharedInternals.V),
12033+
(ReactSharedInternals.V = null),
12034+
(recoverableErrors = 10262))
12035+
: ((pendingTransitionTypes = null), (recoverableErrors = 10256));
1201412036
0 !== (finishedWork.subtreeFlags & recoverableErrors) ||
1201512037
0 !== (finishedWork.flags & recoverableErrors)
1201612038
? ((root.callbackNode = null),
@@ -12045,6 +12067,7 @@ function commitRoot(
1204512067
(shouldStartViewTransition &&
1204612068
startViewTransition(
1204712069
root.containerInfo,
12070+
pendingTransitionTypes,
1204812071
flushMutationEffects,
1204912072
flushLayoutEffects,
1205012073
flushAfterMutationEffects,
@@ -12257,13 +12280,17 @@ function flushSpawnedWork() {
1225712280
}
1225812281
}
1225912282
recoverableErrors = pendingViewTransitionEvents;
12283+
onRecoverableError = pendingTransitionTypes;
12284+
pendingTransitionTypes = null;
1226012285
if (null !== recoverableErrors)
1226112286
for (
12262-
pendingViewTransitionEvents = null, onRecoverableError = 0;
12263-
onRecoverableError < recoverableErrors.length;
12264-
onRecoverableError++
12287+
pendingViewTransitionEvents = null,
12288+
null === onRecoverableError && (onRecoverableError = []),
12289+
recoverableError = 0;
12290+
recoverableError < recoverableErrors.length;
12291+
recoverableError++
1226512292
)
12266-
(0, recoverableErrors[onRecoverableError])();
12293+
(0, recoverableErrors[recoverableError])(onRecoverableError);
1226712294
0 !== (pendingEffectsLanes & 3) && flushPendingEffects();
1226812295
ensureRootIsScheduled(root);
1226912296
passiveSubtreeMask = root.pendingLanes;
@@ -14609,6 +14636,7 @@ function measureInstance(instance) {
1460914636
}
1461014637
function startViewTransition(
1461114638
rootContainer,
14639+
transitionTypes,
1461214640
mutationCallback,
1461314641
layoutCallback,
1461414642
afterMutationCallback,
@@ -14653,7 +14681,7 @@ function startViewTransition(
1465314681
);
1465414682
afterMutationCallback();
1465514683
},
14656-
types: null
14684+
types: transitionTypes
1465714685
});
1465814686
ownerDocument.__reactViewTransition = transition;
1465914687
transition.ready.then(spawnedWorkCallback, spawnedWorkCallback);
@@ -16373,14 +16401,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1637316401
};
1637416402
var isomorphicReactPackageVersion$jscomp$inline_1799 = React.version;
1637516403
if (
16376-
"19.1.0-experimental-5b51a2b9-20250116" !==
16404+
"19.1.0-experimental-9b62ee71-20250122" !==
1637716405
isomorphicReactPackageVersion$jscomp$inline_1799
1637816406
)
1637916407
throw Error(
1638016408
formatProdErrorMessage(
1638116409
527,
1638216410
isomorphicReactPackageVersion$jscomp$inline_1799,
16383-
"19.1.0-experimental-5b51a2b9-20250116"
16411+
"19.1.0-experimental-9b62ee71-20250122"
1638416412
)
1638516413
);
1638616414
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -16402,10 +16430,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1640216430
};
1640316431
var internals$jscomp$inline_2330 = {
1640416432
bundleType: 0,
16405-
version: "19.1.0-experimental-5b51a2b9-20250116",
16433+
version: "19.1.0-experimental-9b62ee71-20250122",
1640616434
rendererPackageName: "react-dom",
1640716435
currentDispatcherRef: ReactSharedInternals,
16408-
reconcilerVersion: "19.1.0-experimental-5b51a2b9-20250116"
16436+
reconcilerVersion: "19.1.0-experimental-9b62ee71-20250122"
1640916437
};
1641016438
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1641116439
var hook$jscomp$inline_2331 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -16511,4 +16539,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1651116539
listenToAllSupportedEvents(container);
1651216540
return new ReactDOMHydrationRoot(initialChildren);
1651316541
};
16514-
exports.version = "19.1.0-experimental-5b51a2b9-20250116";
16542+
exports.version = "19.1.0-experimental-9b62ee71-20250122";

0 commit comments

Comments
 (0)