Skip to content

Commit 7225903

Browse files
eps1lonicyJoseph
authored andcommitted
Upgrade React from 55480b4d-20251208 to 80cb7a99-20251211 (#87078)
1 parent a8a421e commit 7225903

File tree

113 files changed

+10033
-9326
lines changed

Some content is hidden

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

113 files changed

+10033
-9326
lines changed

examples/reproduction-template/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
},
88
"dependencies": {
99
"next": "canary",
10-
"react": "19.2.1",
11-
"react-dom": "19.2.1"
10+
"react": "19.2.2",
11+
"react-dom": "19.2.2"
1212
},
1313
"devDependencies": {
1414
"@types/node": "^22",

package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@
197197
"eslint-plugin-jsdoc": "48.0.4",
198198
"eslint-plugin-mdx": "3.1.5",
199199
"eslint-plugin-react": "7.37.0",
200-
"eslint-plugin-react-hooks": "0.0.0-experimental-55480b4d-20251208",
200+
"eslint-plugin-react-hooks": "0.0.0-experimental-80cb7a99-20251211",
201201
"event-stream": "4.0.1",
202202
"execa": "2.0.3",
203203
"expect": "29.7.0",
@@ -257,16 +257,16 @@
257257
"pretty-ms": "7.0.0",
258258
"random-seed": "0.3.0",
259259
"react": "19.0.0",
260-
"react-builtin": "npm:react@19.3.0-canary-55480b4d-20251208",
260+
"react-builtin": "npm:react@19.3.0-canary-80cb7a99-20251211",
261261
"react-dom": "19.0.0",
262-
"react-dom-builtin": "npm:react-dom@19.3.0-canary-55480b4d-20251208",
263-
"react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-55480b4d-20251208",
264-
"react-experimental-builtin": "npm:react@0.0.0-experimental-55480b4d-20251208",
265-
"react-is-builtin": "npm:react-is@19.3.0-canary-55480b4d-20251208",
266-
"react-server-dom-turbopack": "19.3.0-canary-55480b4d-20251208",
267-
"react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-55480b4d-20251208",
268-
"react-server-dom-webpack": "19.3.0-canary-55480b4d-20251208",
269-
"react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-55480b4d-20251208",
262+
"react-dom-builtin": "npm:react-dom@19.3.0-canary-80cb7a99-20251211",
263+
"react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-80cb7a99-20251211",
264+
"react-experimental-builtin": "npm:react@0.0.0-experimental-80cb7a99-20251211",
265+
"react-is-builtin": "npm:react-is@19.3.0-canary-80cb7a99-20251211",
266+
"react-server-dom-turbopack": "19.3.0-canary-80cb7a99-20251211",
267+
"react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-80cb7a99-20251211",
268+
"react-server-dom-webpack": "19.3.0-canary-80cb7a99-20251211",
269+
"react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-80cb7a99-20251211",
270270
"react-ssr-prepass": "1.0.8",
271271
"react-virtualized": "9.22.3",
272272
"relay-compiler": "13.0.2",
@@ -276,8 +276,8 @@
276276
"resolve-from": "5.0.0",
277277
"sass": "1.54.0",
278278
"satori": "0.15.2",
279-
"scheduler-builtin": "npm:scheduler@0.28.0-canary-55480b4d-20251208",
280-
"scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-55480b4d-20251208",
279+
"scheduler-builtin": "npm:scheduler@0.28.0-canary-80cb7a99-20251211",
280+
"scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-80cb7a99-20251211",
281281
"seedrandom": "3.0.5",
282282
"semver": "7.3.7",
283283
"serve-handler": "6.1.6",
@@ -322,10 +322,10 @@
322322
"@types/react-dom": "19.2.1",
323323
"@types/retry": "0.12.0",
324324
"jest-snapshot": "30.0.0-alpha.6",
325-
"react": "19.3.0-canary-55480b4d-20251208",
326-
"react-dom": "19.3.0-canary-55480b4d-20251208",
327-
"react-is": "19.3.0-canary-55480b4d-20251208",
328-
"scheduler": "0.28.0-canary-55480b4d-20251208"
325+
"react": "19.3.0-canary-80cb7a99-20251211",
326+
"react-dom": "19.3.0-canary-80cb7a99-20251211",
327+
"react-is": "19.3.0-canary-80cb7a99-20251211",
328+
"scheduler": "0.28.0-canary-80cb7a99-20251211"
329329
},
330330
"packageExtensions": {
331331
"eslint-plugin-react-hooks@0.0.0-experimental-6de32a5a-20250822": {

packages/create-next-app/templates/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { Bundler, GetTemplateFileArgs, InstallTemplateArgs } from "./types";
1414

1515
// Do not rename or format. sync-react script relies on this line.
1616
// prettier-ignore
17-
const nextjsReactPeerVersion = "19.2.1";
17+
const nextjsReactPeerVersion = "19.2.2";
1818
function sorted(obj: Record<string, string>) {
1919
return Object.keys(obj)
2020
.sort()

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

Lines changed: 31 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -25640,21 +25640,6 @@
2564025640
var computedStyle = getComputedStyle(instance);
2564125641
return createMeasurement(measuredRect, computedStyle, instance);
2564225642
}
25643-
function cancelAllViewTransitionAnimations(scope) {
25644-
for (
25645-
var animations = scope.getAnimations({ subtree: !0 }), i = 0;
25646-
i < animations.length;
25647-
i++
25648-
) {
25649-
var anim = animations[i],
25650-
effect = anim.effect,
25651-
pseudo = effect.pseudoElement;
25652-
null != pseudo &&
25653-
pseudo.startsWith("::view-transition") &&
25654-
effect.target === scope &&
25655-
anim.cancel();
25656-
}
25657-
}
2565825643
function customizeViewTransitionError(error, ignoreAbort) {
2565925644
if ("object" === typeof error && null !== error)
2566025645
switch (error.name) {
@@ -25789,6 +25774,7 @@
2578925774
types: transitionTypes
2579025775
});
2579125776
ownerDocument.__reactViewTransition = transition;
25777+
var viewTransitionAnimations = [];
2579225778
transition.ready.then(
2579325779
function () {
2579425780
for (
@@ -25799,25 +25785,26 @@
2579925785
i < animations.length;
2580025786
i++
2580125787
) {
25802-
var effect = animations[i].effect,
25788+
var animation = animations[i],
25789+
effect = animation.effect,
2580325790
pseudoElement = effect.pseudoElement;
2580425791
if (
2580525792
null != pseudoElement &&
2580625793
pseudoElement.startsWith("::view-transition")
2580725794
) {
25808-
pseudoElement = effect.getKeyframes();
25795+
viewTransitionAnimations.push(animation);
25796+
animation = effect.getKeyframes();
2580925797
for (
25810-
var width = void 0,
25811-
height = void 0,
25798+
var height = (pseudoElement = void 0),
2581225799
unchangedDimensions = !0,
2581325800
j = 0;
25814-
j < pseudoElement.length;
25801+
j < animation.length;
2581525802
j++
2581625803
) {
25817-
var keyframe = pseudoElement[j],
25804+
var keyframe = animation[j],
2581825805
w = keyframe.width;
25819-
if (void 0 === width) width = w;
25820-
else if (width !== w) {
25806+
if (void 0 === pseudoElement) pseudoElement = w;
25807+
else if (pseudoElement !== w) {
2582125808
unchangedDimensions = !1;
2582225809
break;
2582325810
}
@@ -25832,23 +25819,22 @@
2583225819
"none" === keyframe.transform && delete keyframe.transform;
2583325820
}
2583425821
unchangedDimensions &&
25835-
void 0 !== width &&
25822+
void 0 !== pseudoElement &&
2583625823
void 0 !== height &&
25837-
(effect.setKeyframes(pseudoElement),
25824+
(effect.setKeyframes(animation),
2583825825
(unchangedDimensions = getComputedStyle(
2583925826
effect.target,
2584025827
effect.pseudoElement
2584125828
)),
25842-
unchangedDimensions.width !== width ||
25829+
unchangedDimensions.width !== pseudoElement ||
2584325830
unchangedDimensions.height !== height) &&
25844-
((unchangedDimensions = pseudoElement[0]),
25845-
(unchangedDimensions.width = width),
25831+
((unchangedDimensions = animation[0]),
25832+
(unchangedDimensions.width = pseudoElement),
2584625833
(unchangedDimensions.height = height),
25847-
(unchangedDimensions =
25848-
pseudoElement[pseudoElement.length - 1]),
25849-
(unchangedDimensions.width = width),
25834+
(unchangedDimensions = animation[animation.length - 1]),
25835+
(unchangedDimensions.width = pseudoElement),
2585025836
(unchangedDimensions.height = height),
25851-
effect.setKeyframes(pseudoElement));
25837+
effect.setKeyframes(animation));
2585225838
}
2585325839
}
2585425840
spawnedWorkCallback();
@@ -25868,7 +25854,8 @@
2586825854
}
2586925855
);
2587025856
transition.finished.finally(function () {
25871-
cancelAllViewTransitionAnimations(ownerDocument.documentElement);
25857+
for (var i = 0; i < viewTransitionAnimations.length; i++)
25858+
viewTransitionAnimations[i].cancel();
2587225859
ownerDocument.__reactViewTransition === transition &&
2587325860
(ownerDocument.__reactViewTransition = null);
2587425861
finishedAnimation();
@@ -26006,6 +25993,7 @@
2600625993
});
2600725994
ownerDocument.__reactViewTransition = transition;
2600825995
var customTimelineCleanup = [],
25996+
viewTransitionAnimations = [],
2600925997
readyCallback = function () {
2601025998
for (
2601125999
var documentElement = ownerDocument.documentElement,
@@ -26021,7 +26009,8 @@
2602126009
pseudoElement = effect.pseudoElement;
2602226010
null != pseudoElement &&
2602326011
pseudoElement.startsWith("::view-transition") &&
26024-
((effect = effect.getTiming()),
26012+
(viewTransitionAnimations.push(animations[i]),
26013+
(effect = effect.getTiming()),
2602526014
(effect =
2602626015
effect.delay +
2602726016
("number" === typeof effect.duration ? effect.duration : 0)),
@@ -26124,8 +26113,9 @@
2612426113
}
2612526114
});
2612626115
transition.finished.finally(function () {
26127-
cancelAllViewTransitionAnimations(ownerDocument.documentElement);
26128-
for (var i = 0; i < customTimelineCleanup.length; i++)
26116+
for (var i = 0; i < viewTransitionAnimations.length; i++)
26117+
viewTransitionAnimations[i].cancel();
26118+
for (i = 0; i < customTimelineCleanup.length; i++)
2612926119
(0, customTimelineCleanup[i])();
2613026120
ownerDocument.__reactViewTransition === transition &&
2613126121
(ownerDocument.__reactViewTransition = null);
@@ -32446,11 +32436,11 @@
3244632436
};
3244732437
(function () {
3244832438
var isomorphicReactPackageVersion = React.version;
32449-
if ("19.3.0-experimental-55480b4d-20251208" !== isomorphicReactPackageVersion)
32439+
if ("19.3.0-experimental-80cb7a99-20251211" !== isomorphicReactPackageVersion)
3245032440
throw Error(
3245132441
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
3245232442
(isomorphicReactPackageVersion +
32453-
"\n - react-dom: 19.3.0-experimental-55480b4d-20251208\nLearn more: https://react.dev/warnings/version-mismatch")
32443+
"\n - react-dom: 19.3.0-experimental-80cb7a99-20251211\nLearn more: https://react.dev/warnings/version-mismatch")
3245432444
);
3245532445
})();
3245632446
("function" === typeof Map &&
@@ -32487,10 +32477,10 @@
3248732477
!(function () {
3248832478
var internals = {
3248932479
bundleType: 1,
32490-
version: "19.3.0-experimental-55480b4d-20251208",
32480+
version: "19.3.0-experimental-80cb7a99-20251211",
3249132481
rendererPackageName: "react-dom",
3249232482
currentDispatcherRef: ReactSharedInternals,
32493-
reconcilerVersion: "19.3.0-experimental-55480b4d-20251208"
32483+
reconcilerVersion: "19.3.0-experimental-80cb7a99-20251211"
3249432484
};
3249532485
internals.overrideHookState = overrideHookState;
3249632486
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -32638,7 +32628,7 @@
3263832628
listenToAllSupportedEvents(container);
3263932629
return new ReactDOMHydrationRoot(initialChildren);
3264032630
};
32641-
exports.version = "19.3.0-experimental-55480b4d-20251208";
32631+
exports.version = "19.3.0-experimental-80cb7a99-20251211";
3264232632
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
3264332633
"function" ===
3264432634
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)