Skip to content

Commit

Permalink
Upgrade React from 70fb1363-20241010 to cd22717c-20241013 (#71223)
Browse files Browse the repository at this point in the history
  • Loading branch information
vercel-release-bot authored Oct 13, 2024
1 parent 39dfa3a commit 69efa49
Show file tree
Hide file tree
Showing 94 changed files with 468 additions and 370 deletions.
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-70fb1363-20241010",
"react-dom": "19.0.0-rc-70fb1363-20241010"
"react": "19.0.0-rc-cd22717c-20241013",
"react-dom": "19.0.0-rc-cd22717c-20241013"
},
"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 @@ -208,19 +208,19 @@
"pretty-bytes": "5.3.0",
"pretty-ms": "7.0.0",
"random-seed": "0.3.0",
"react": "19.0.0-rc-70fb1363-20241010",
"react": "19.0.0-rc-cd22717c-20241013",
"react-17": "npm:react@17.0.2",
"react-builtin": "npm:react@19.0.0-rc-70fb1363-20241010",
"react-dom": "19.0.0-rc-70fb1363-20241010",
"react-builtin": "npm:react@19.0.0-rc-cd22717c-20241013",
"react-dom": "19.0.0-rc-cd22717c-20241013",
"react-dom-17": "npm:react-dom@17.0.2",
"react-dom-builtin": "npm:react-dom@19.0.0-rc-70fb1363-20241010",
"react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-70fb1363-20241010",
"react-experimental-builtin": "npm:react@0.0.0-experimental-70fb1363-20241010",
"react-is-builtin": "npm:react-is@19.0.0-rc-70fb1363-20241010",
"react-server-dom-turbopack": "19.0.0-rc-70fb1363-20241010",
"react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-70fb1363-20241010",
"react-server-dom-webpack": "19.0.0-rc-70fb1363-20241010",
"react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-70fb1363-20241010",
"react-dom-builtin": "npm:react-dom@19.0.0-rc-cd22717c-20241013",
"react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-cd22717c-20241013",
"react-experimental-builtin": "npm:react@0.0.0-experimental-cd22717c-20241013",
"react-is-builtin": "npm:react-is@19.0.0-rc-cd22717c-20241013",
"react-server-dom-turbopack": "19.0.0-rc-cd22717c-20241013",
"react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-cd22717c-20241013",
"react-server-dom-webpack": "19.0.0-rc-cd22717c-20241013",
"react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-cd22717c-20241013",
"react-ssr-prepass": "1.0.8",
"react-virtualized": "9.22.3",
"relay-compiler": "13.0.2",
Expand All @@ -230,8 +230,8 @@
"resolve-from": "5.0.0",
"sass": "1.54.0",
"satori": "0.10.9",
"scheduler-builtin": "npm:scheduler@0.25.0-rc-70fb1363-20241010",
"scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-70fb1363-20241010",
"scheduler-builtin": "npm:scheduler@0.25.0-rc-cd22717c-20241013",
"scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-cd22717c-20241013",
"seedrandom": "3.0.5",
"semver": "7.3.7",
"shell-quote": "1.7.3",
Expand Down Expand Up @@ -271,10 +271,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-70fb1363-20241010",
"react-dom": "19.0.0-rc-70fb1363-20241010",
"react-is": "19.0.0-rc-70fb1363-20241010",
"scheduler": "0.25.0-rc-70fb1363-20241010"
"react": "19.0.0-rc-cd22717c-20241013",
"react-dom": "19.0.0-rc-cd22717c-20241013",
"react-is": "19.0.0-rc-cd22717c-20241013",
"scheduler": "0.25.0-rc-cd22717c-20241013"
},
"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-70fb1363-20241010";
const nextjsReactPeerVersion = "19.0.0-rc-cd22717c-20241013";

/**
* 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 @@ -107,8 +107,8 @@
"@opentelemetry/api": "^1.1.0",
"@playwright/test": "^1.41.2",
"babel-plugin-react-compiler": "*",
"react": "^18.2.0 || 19.0.0-rc-70fb1363-20241010",
"react-dom": "^18.2.0 || 19.0.0-rc-70fb1363-20241010",
"react": "^18.2.0 || 19.0.0-rc-cd22717c-20241013",
"react-dom": "^18.2.0 || 19.0.0-rc-cd22717c-20241013",
"sass": "^1.3.0"
},
"peerDependenciesMeta": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24918,11 +24918,11 @@
};
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-experimental-70fb1363-20241010" !== isomorphicReactPackageVersion)
if ("19.0.0-experimental-cd22717c-20241013" !== 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-70fb1363-20241010\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.0.0-experimental-cd22717c-20241013\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
Expand Down Expand Up @@ -24959,11 +24959,11 @@
!(function () {
var internals = {
bundleType: 1,
version: "19.0.0-experimental-70fb1363-20241010",
version: "19.0.0-experimental-cd22717c-20241013",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getClosestInstanceFromNode,
reconcilerVersion: "19.0.0-experimental-70fb1363-20241010"
reconcilerVersion: "19.0.0-experimental-cd22717c-20241013"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -25105,7 +25105,7 @@
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.0.0-experimental-70fb1363-20241010";
exports.version = "19.0.0-experimental-cd22717c-20241013";
"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 @@ -15151,14 +15151,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_1672 = React.version;
if (
"19.0.0-experimental-70fb1363-20241010" !==
"19.0.0-experimental-cd22717c-20241013" !==
isomorphicReactPackageVersion$jscomp$inline_1672
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1672,
"19.0.0-experimental-70fb1363-20241010"
"19.0.0-experimental-cd22717c-20241013"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
Expand All @@ -15180,11 +15180,11 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2137 = {
bundleType: 0,
version: "19.0.0-experimental-70fb1363-20241010",
version: "19.0.0-experimental-cd22717c-20241013",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getClosestInstanceFromNode,
reconcilerVersion: "19.0.0-experimental-70fb1363-20241010"
reconcilerVersion: "19.0.0-experimental-cd22717c-20241013"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2138 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -15288,4 +15288,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.0.0-experimental-70fb1363-20241010";
exports.version = "19.0.0-experimental-cd22717c-20241013";
Original file line number Diff line number Diff line change
Expand Up @@ -24975,11 +24975,11 @@
};
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-experimental-70fb1363-20241010" !== isomorphicReactPackageVersion)
if ("19.0.0-experimental-cd22717c-20241013" !== 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-70fb1363-20241010\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.0.0-experimental-cd22717c-20241013\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
Expand Down Expand Up @@ -25016,11 +25016,11 @@
!(function () {
var internals = {
bundleType: 1,
version: "19.0.0-experimental-70fb1363-20241010",
version: "19.0.0-experimental-cd22717c-20241013",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getClosestInstanceFromNode,
reconcilerVersion: "19.0.0-experimental-70fb1363-20241010"
reconcilerVersion: "19.0.0-experimental-cd22717c-20241013"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -25492,7 +25492,7 @@
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.0.0-experimental-70fb1363-20241010";
exports.version = "19.0.0-experimental-cd22717c-20241013";
"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 @@ -16039,14 +16039,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_1745 = React.version;
if (
"19.0.0-experimental-70fb1363-20241010" !==
"19.0.0-experimental-cd22717c-20241013" !==
isomorphicReactPackageVersion$jscomp$inline_1745
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1745,
"19.0.0-experimental-70fb1363-20241010"
"19.0.0-experimental-cd22717c-20241013"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
Expand All @@ -16068,11 +16068,11 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2183 = {
bundleType: 0,
version: "19.0.0-experimental-70fb1363-20241010",
version: "19.0.0-experimental-cd22717c-20241013",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getClosestInstanceFromNode,
reconcilerVersion: "19.0.0-experimental-70fb1363-20241010"
reconcilerVersion: "19.0.0-experimental-cd22717c-20241013"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2184 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -16337,7 +16337,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-experimental-70fb1363-20241010";
exports.version = "19.0.0-experimental-cd22717c-20241013";
"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 @@ -9291,5 +9291,5 @@
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.0.0-experimental-70fb1363-20241010";
exports.version = "19.0.0-experimental-cd22717c-20241013";
})();
Original file line number Diff line number Diff line change
Expand Up @@ -6058,4 +6058,4 @@ exports.renderToString = function (children, options) {
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.0.0-experimental-70fb1363-20241010";
exports.version = "19.0.0-experimental-cd22717c-20241013";
Original file line number Diff line number Diff line change
Expand Up @@ -9291,5 +9291,5 @@
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToPipeableStream" which supports Suspense on the server'
);
};
exports.version = "19.0.0-experimental-70fb1363-20241010";
exports.version = "19.0.0-experimental-cd22717c-20241013";
})();
Original file line number Diff line number Diff line change
Expand Up @@ -6150,4 +6150,4 @@ exports.renderToString = function (children, options) {
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToPipeableStream" which supports Suspense on the server'
);
};
exports.version = "19.0.0-experimental-70fb1363-20241010";
exports.version = "19.0.0-experimental-cd22717c-20241013";
Original file line number Diff line number Diff line change
Expand Up @@ -8189,11 +8189,11 @@
}
function ensureCorrectIsomorphicReactVersion() {
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-experimental-70fb1363-20241010" !== isomorphicReactPackageVersion)
if ("19.0.0-experimental-cd22717c-20241013" !== 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-70fb1363-20241010\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.0.0-experimental-cd22717c-20241013\nLearn more: https://react.dev/warnings/version-mismatch")
);
}
var React = require("next/dist/compiled/react-experimental"),
Expand Down Expand Up @@ -9973,5 +9973,5 @@
startWork(request);
});
};
exports.version = "19.0.0-experimental-70fb1363-20241010";
exports.version = "19.0.0-experimental-cd22717c-20241013";
})();
Original file line number Diff line number Diff line change
Expand Up @@ -6587,12 +6587,12 @@ function getPostponedState(request) {
}
function ensureCorrectIsomorphicReactVersion() {
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-experimental-70fb1363-20241010" !== isomorphicReactPackageVersion)
if ("19.0.0-experimental-cd22717c-20241013" !== isomorphicReactPackageVersion)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion,
"19.0.0-experimental-70fb1363-20241010"
"19.0.0-experimental-cd22717c-20241013"
)
);
}
Expand Down Expand Up @@ -6847,4 +6847,4 @@ exports.resumeAndPrerender = function (children, postponedState, options) {
startWork(request);
});
};
exports.version = "19.0.0-experimental-70fb1363-20241010";
exports.version = "19.0.0-experimental-cd22717c-20241013";
Original file line number Diff line number Diff line change
Expand Up @@ -6069,13 +6069,13 @@ function addToReplayParent(node, parentKeyPath, trackedPostpones) {
}
var isomorphicReactPackageVersion$jscomp$inline_779 = React.version;
if (
"19.0.0-experimental-70fb1363-20241010" !==
"19.0.0-experimental-cd22717c-20241013" !==
isomorphicReactPackageVersion$jscomp$inline_779
)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion$jscomp$inline_779 +
"\n - react-dom: 19.0.0-experimental-70fb1363-20241010\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.0.0-experimental-cd22717c-20241013\nLearn more: https://react.dev/warnings/version-mismatch")
);
exports.renderToReadableStream = function (children, options) {
return new Promise(function (resolve, reject) {
Expand Down Expand Up @@ -6166,4 +6166,4 @@ exports.renderToReadableStream = function (children, options) {
startWork(request);
});
};
exports.version = "19.0.0-experimental-70fb1363-20241010";
exports.version = "19.0.0-experimental-cd22717c-20241013";
Original file line number Diff line number Diff line change
Expand Up @@ -8206,11 +8206,11 @@
}
function ensureCorrectIsomorphicReactVersion() {
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-experimental-70fb1363-20241010" !== isomorphicReactPackageVersion)
if ("19.0.0-experimental-cd22717c-20241013" !== 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-70fb1363-20241010\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.0.0-experimental-cd22717c-20241013\nLearn more: https://react.dev/warnings/version-mismatch")
);
}
var React = require("next/dist/compiled/react-experimental"),
Expand Down Expand Up @@ -9997,5 +9997,5 @@ const setTimeoutOrImmediate =
? globalThis['set' + 'Immediate']
: setTimeout;

exports.version = "19.0.0-experimental-70fb1363-20241010";
exports.version = "19.0.0-experimental-cd22717c-20241013";
})();
Original file line number Diff line number Diff line change
Expand Up @@ -6689,11 +6689,11 @@ function getPostponedState(request) {
}
function ensureCorrectIsomorphicReactVersion() {
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-experimental-70fb1363-20241010" !== isomorphicReactPackageVersion)
if ("19.0.0-experimental-cd22717c-20241013" !== 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-70fb1363-20241010\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.0.0-experimental-cd22717c-20241013\nLearn more: https://react.dev/warnings/version-mismatch")
);
}
ensureCorrectIsomorphicReactVersion();
Expand Down Expand Up @@ -6958,4 +6958,4 @@ const setTimeoutOrImmediate =
? globalThis['set' + 'Immediate']
: setTimeout;

exports.version = "19.0.0-experimental-70fb1363-20241010";
exports.version = "19.0.0-experimental-cd22717c-20241013";
Original file line number Diff line number Diff line change
Expand Up @@ -8070,11 +8070,11 @@
}
function ensureCorrectIsomorphicReactVersion() {
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-experimental-70fb1363-20241010" !== isomorphicReactPackageVersion)
if ("19.0.0-experimental-cd22717c-20241013" !== 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-70fb1363-20241010\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.0.0-experimental-cd22717c-20241013\nLearn more: https://react.dev/warnings/version-mismatch")
);
}
function createDrainHandler(destination, request) {
Expand Down Expand Up @@ -9847,5 +9847,5 @@
}
};
};
exports.version = "19.0.0-experimental-70fb1363-20241010";
exports.version = "19.0.0-experimental-cd22717c-20241013";
})();
Loading

0 comments on commit 69efa49

Please sign in to comment.