Skip to content
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

Upgrade React from 603e6108-20241029 to 7c8e5e7a-20241101 #72199

Merged
merged 6 commits into from
Nov 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/reproduction-template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
},
"dependencies": {
"next": "canary",
"react": "19.0.0-rc-603e6108-20241029",
"react-dom": "19.0.0-rc-603e6108-20241029"
"react": "19.0.0-rc-7c8e5e7a-20241101",
"react-dom": "19.0.0-rc-7c8e5e7a-20241101"
},
"devDependencies": {
"@types/node": "20.12.12",
Expand Down
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -209,19 +209,19 @@
"pretty-bytes": "5.3.0",
"pretty-ms": "7.0.0",
"random-seed": "0.3.0",
"react": "19.0.0-rc-603e6108-20241029",
"react": "19.0.0-rc-7c8e5e7a-20241101",
"react-17": "npm:react@17.0.2",
"react-builtin": "npm:react@19.0.0-rc-603e6108-20241029",
"react-dom": "19.0.0-rc-603e6108-20241029",
"react-builtin": "npm:react@19.0.0-rc-7c8e5e7a-20241101",
"react-dom": "19.0.0-rc-7c8e5e7a-20241101",
"react-dom-17": "npm:react-dom@17.0.2",
"react-dom-builtin": "npm:react-dom@19.0.0-rc-603e6108-20241029",
"react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-603e6108-20241029",
"react-experimental-builtin": "npm:react@0.0.0-experimental-603e6108-20241029",
"react-is-builtin": "npm:react-is@19.0.0-rc-603e6108-20241029",
"react-server-dom-turbopack": "19.0.0-rc-603e6108-20241029",
"react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-603e6108-20241029",
"react-server-dom-webpack": "19.0.0-rc-603e6108-20241029",
"react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-603e6108-20241029",
"react-dom-builtin": "npm:react-dom@19.0.0-rc-7c8e5e7a-20241101",
"react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-7c8e5e7a-20241101",
"react-experimental-builtin": "npm:react@0.0.0-experimental-7c8e5e7a-20241101",
"react-is-builtin": "npm:react-is@19.0.0-rc-7c8e5e7a-20241101",
"react-server-dom-turbopack": "19.0.0-rc-7c8e5e7a-20241101",
"react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-7c8e5e7a-20241101",
"react-server-dom-webpack": "19.0.0-rc-7c8e5e7a-20241101",
"react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-7c8e5e7a-20241101",
"react-ssr-prepass": "1.0.8",
"react-virtualized": "9.22.3",
"relay-compiler": "13.0.2",
Expand All @@ -231,8 +231,8 @@
"resolve-from": "5.0.0",
"sass": "1.54.0",
"satori": "0.10.9",
"scheduler-builtin": "npm:scheduler@0.25.0-rc-603e6108-20241029",
"scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-603e6108-20241029",
"scheduler-builtin": "npm:scheduler@0.25.0-rc-7c8e5e7a-20241101",
"scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-7c8e5e7a-20241101",
"seedrandom": "3.0.5",
"semver": "7.3.7",
"shell-quote": "1.7.3",
Expand Down Expand Up @@ -272,10 +272,10 @@
"@babel/traverse": "7.22.5",
"@types/react": "npm:types-react@19.0.0-rc.0",
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
"react": "19.0.0-rc-603e6108-20241029",
"react-dom": "19.0.0-rc-603e6108-20241029",
"react-is": "19.0.0-rc-603e6108-20241029",
"scheduler": "0.25.0-rc-603e6108-20241029"
"react": "19.0.0-rc-7c8e5e7a-20241101",
"react-dom": "19.0.0-rc-7c8e5e7a-20241101",
"react-is": "19.0.0-rc-7c8e5e7a-20241101",
"scheduler": "0.25.0-rc-7c8e5e7a-20241101"
},
"patchedDependencies": {
"webpack-sources@3.2.3": "patches/webpack-sources@3.2.3.patch"
Expand Down
2 changes: 1 addition & 1 deletion packages/create-next-app/templates/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { GetTemplateFileArgs, InstallTemplateArgs } from "./types";

// Do not rename or format. sync-react script relies on this line.
// prettier-ignore
const nextjsReactPeerVersion = "19.0.0-rc-603e6108-20241029";
const nextjsReactPeerVersion = "19.0.0-rc-7c8e5e7a-20241101";

/**
* Get the file path for a given file in a template, e.g. "next.config.js".
Expand Down
4 changes: 2 additions & 2 deletions packages/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@
"@opentelemetry/api": "^1.1.0",
"@playwright/test": "^1.41.2",
"babel-plugin-react-compiler": "*",
"react": "^18.2.0 || 19.0.0-rc-603e6108-20241029",
"react-dom": "^18.2.0 || 19.0.0-rc-603e6108-20241029",
"react": "^18.2.0 || 19.0.0-rc-7c8e5e7a-20241101",
"react-dom": "^18.2.0 || 19.0.0-rc-7c8e5e7a-20241101",
"sass": "^1.3.0"
},
"peerDependenciesMeta": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12039,7 +12039,8 @@
);
break;
case 22:
safelyDetachRef(deletedFiber, nearestMountedAncestor);
offscreenSubtreeWasHidden ||
safelyDetachRef(deletedFiber, nearestMountedAncestor);
offscreenSubtreeWasHidden =
(prevHostParent = offscreenSubtreeWasHidden) ||
null !== deletedFiber.memoizedState;
Expand Down Expand Up @@ -12196,8 +12197,9 @@
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
flags & 512 &&
null !== current &&
safelyDetachRef(current, current.return);
(offscreenSubtreeWasHidden ||
null === current ||
safelyDetachRef(current, current.return));
flags & 64 &&
offscreenSubtreeIsHidden &&
((flags = finishedWork.updateQueue),
Expand All @@ -12213,8 +12215,9 @@
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
flags & 512 &&
null !== current &&
safelyDetachRef(current, current.return);
(offscreenSubtreeWasHidden ||
null === current ||
safelyDetachRef(current, current.return));
if (flags & 4)
if (
((root = null !== current ? current.memoizedState : null),
Expand Down Expand Up @@ -12404,8 +12407,9 @@
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
flags & 512 &&
null !== current &&
safelyDetachRef(current, current.return);
(offscreenSubtreeWasHidden ||
null === current ||
safelyDetachRef(current, current.return));
if (finishedWork.flags & 32) {
root = finishedWork.stateNode;
try {
Expand Down Expand Up @@ -12510,8 +12514,9 @@
break;
case 22:
flags & 512 &&
null !== current &&
safelyDetachRef(current, current.return);
(offscreenSubtreeWasHidden ||
null === current ||
safelyDetachRef(current, current.return));
i = null !== finishedWork.memoizedState;
nextNode = null !== current && null !== current.memoizedState;
nodeName = offscreenSubtreeIsHidden;
Expand Down Expand Up @@ -24913,11 +24918,11 @@
};
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-experimental-603e6108-20241029" !== isomorphicReactPackageVersion)
if ("19.0.0-experimental-7c8e5e7a-20241101" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.0.0-experimental-603e6108-20241029\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.0.0-experimental-7c8e5e7a-20241101\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
Expand Down Expand Up @@ -24954,11 +24959,11 @@
!(function () {
var internals = {
bundleType: 1,
version: "19.0.0-experimental-603e6108-20241029",
version: "19.0.0-experimental-7c8e5e7a-20241101",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getClosestInstanceFromNode,
reconcilerVersion: "19.0.0-experimental-603e6108-20241029"
reconcilerVersion: "19.0.0-experimental-7c8e5e7a-20241101"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -25100,7 +25105,7 @@
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.0.0-experimental-603e6108-20241029";
exports.version = "19.0.0-experimental-7c8e5e7a-20241101";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8296,7 +8296,8 @@ function commitDeletionEffectsOnFiber(
);
break;
case 22:
safelyDetachRef(deletedFiber, nearestMountedAncestor);
offscreenSubtreeWasHidden ||
safelyDetachRef(deletedFiber, nearestMountedAncestor);
offscreenSubtreeWasHidden =
(prevHostParent = offscreenSubtreeWasHidden) ||
null !== deletedFiber.memoizedState;
Expand Down Expand Up @@ -8417,8 +8418,9 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
flags & 512 &&
null !== current &&
safelyDetachRef(current, current.return);
(offscreenSubtreeWasHidden ||
null === current ||
safelyDetachRef(current, current.return));
flags & 64 &&
offscreenSubtreeIsHidden &&
((finishedWork = finishedWork.updateQueue),
Expand All @@ -8434,8 +8436,9 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
flags & 512 &&
null !== current &&
safelyDetachRef(current, current.return);
(offscreenSubtreeWasHidden ||
null === current ||
safelyDetachRef(current, current.return));
if (flags & 4) {
var currentResource = null !== current ? current.memoizedState : null;
flags = finishedWork.memoizedState;
Expand Down Expand Up @@ -8615,8 +8618,9 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
flags & 512 &&
null !== current &&
safelyDetachRef(current, current.return);
(offscreenSubtreeWasHidden ||
null === current ||
safelyDetachRef(current, current.return));
if (finishedWork.flags & 32) {
hoistableRoot = finishedWork.stateNode;
try {
Expand Down Expand Up @@ -8694,8 +8698,9 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
break;
case 22:
flags & 512 &&
null !== current &&
safelyDetachRef(current, current.return);
(offscreenSubtreeWasHidden ||
null === current ||
safelyDetachRef(current, current.return));
node = null !== finishedWork.memoizedState;
nextNode = null !== current && null !== current.memoizedState;
nodeName = offscreenSubtreeIsHidden;
Expand Down Expand Up @@ -15133,14 +15138,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_1669 = React.version;
if (
"19.0.0-experimental-603e6108-20241029" !==
"19.0.0-experimental-7c8e5e7a-20241101" !==
isomorphicReactPackageVersion$jscomp$inline_1669
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1669,
"19.0.0-experimental-603e6108-20241029"
"19.0.0-experimental-7c8e5e7a-20241101"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
Expand All @@ -15162,11 +15167,11 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2135 = {
bundleType: 0,
version: "19.0.0-experimental-603e6108-20241029",
version: "19.0.0-experimental-7c8e5e7a-20241101",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getClosestInstanceFromNode,
reconcilerVersion: "19.0.0-experimental-603e6108-20241029"
reconcilerVersion: "19.0.0-experimental-7c8e5e7a-20241101"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2136 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -15270,4 +15275,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.0.0-experimental-603e6108-20241029";
exports.version = "19.0.0-experimental-7c8e5e7a-20241101";
Original file line number Diff line number Diff line change
Expand Up @@ -12047,7 +12047,8 @@
);
break;
case 22:
safelyDetachRef(deletedFiber, nearestMountedAncestor);
offscreenSubtreeWasHidden ||
safelyDetachRef(deletedFiber, nearestMountedAncestor);
offscreenSubtreeWasHidden =
(prevHostParent = offscreenSubtreeWasHidden) ||
null !== deletedFiber.memoizedState;
Expand Down Expand Up @@ -12204,8 +12205,9 @@
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
flags & 512 &&
null !== current &&
safelyDetachRef(current, current.return);
(offscreenSubtreeWasHidden ||
null === current ||
safelyDetachRef(current, current.return));
flags & 64 &&
offscreenSubtreeIsHidden &&
((flags = finishedWork.updateQueue),
Expand All @@ -12221,8 +12223,9 @@
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
flags & 512 &&
null !== current &&
safelyDetachRef(current, current.return);
(offscreenSubtreeWasHidden ||
null === current ||
safelyDetachRef(current, current.return));
if (flags & 4)
if (
((root = null !== current ? current.memoizedState : null),
Expand Down Expand Up @@ -12412,8 +12415,9 @@
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
flags & 512 &&
null !== current &&
safelyDetachRef(current, current.return);
(offscreenSubtreeWasHidden ||
null === current ||
safelyDetachRef(current, current.return));
if (finishedWork.flags & 32) {
root = finishedWork.stateNode;
try {
Expand Down Expand Up @@ -12518,8 +12522,9 @@
break;
case 22:
flags & 512 &&
null !== current &&
safelyDetachRef(current, current.return);
(offscreenSubtreeWasHidden ||
null === current ||
safelyDetachRef(current, current.return));
i = null !== finishedWork.memoizedState;
nextNode = null !== current && null !== current.memoizedState;
nodeName = offscreenSubtreeIsHidden;
Expand Down Expand Up @@ -24970,11 +24975,11 @@
};
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-experimental-603e6108-20241029" !== isomorphicReactPackageVersion)
if ("19.0.0-experimental-7c8e5e7a-20241101" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.0.0-experimental-603e6108-20241029\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.0.0-experimental-7c8e5e7a-20241101\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
Expand Down Expand Up @@ -25011,11 +25016,11 @@
!(function () {
var internals = {
bundleType: 1,
version: "19.0.0-experimental-603e6108-20241029",
version: "19.0.0-experimental-7c8e5e7a-20241101",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getClosestInstanceFromNode,
reconcilerVersion: "19.0.0-experimental-603e6108-20241029"
reconcilerVersion: "19.0.0-experimental-7c8e5e7a-20241101"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -25487,7 +25492,7 @@
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.0.0-experimental-603e6108-20241029";
exports.version = "19.0.0-experimental-7c8e5e7a-20241101";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
Loading
Loading