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 7771d3a7-20240827 to d1afcb43-20240903 #69687

Closed
wants to merge 5 commits into from
Closed
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-7771d3a7-20240827",
"react-dom": "19.0.0-rc-7771d3a7-20240827"
"react": "19.0.0-rc-d1afcb43-20240903",
"react-dom": "19.0.0-rc-d1afcb43-20240903"
},
"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 @@ -206,19 +206,19 @@
"pretty-bytes": "5.3.0",
"pretty-ms": "7.0.0",
"random-seed": "0.3.0",
"react": "19.0.0-rc-7771d3a7-20240827",
"react": "19.0.0-rc-d1afcb43-20240903",
"react-17": "npm:react@17.0.2",
"react-builtin": "npm:react@19.0.0-rc-7771d3a7-20240827",
"react-dom": "19.0.0-rc-7771d3a7-20240827",
"react-builtin": "npm:react@19.0.0-rc-d1afcb43-20240903",
"react-dom": "19.0.0-rc-d1afcb43-20240903",
"react-dom-17": "npm:react-dom@17.0.2",
"react-dom-builtin": "npm:react-dom@19.0.0-rc-7771d3a7-20240827",
"react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-7771d3a7-20240827",
"react-experimental-builtin": "npm:react@0.0.0-experimental-7771d3a7-20240827",
"react-is-builtin": "npm:react-is@19.0.0-rc-7771d3a7-20240827",
"react-server-dom-turbopack": "19.0.0-rc-7771d3a7-20240827",
"react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-7771d3a7-20240827",
"react-server-dom-webpack": "19.0.0-rc-7771d3a7-20240827",
"react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-7771d3a7-20240827",
"react-dom-builtin": "npm:react-dom@19.0.0-rc-d1afcb43-20240903",
"react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-d1afcb43-20240903",
"react-experimental-builtin": "npm:react@0.0.0-experimental-d1afcb43-20240903",
"react-is-builtin": "npm:react-is@19.0.0-rc-d1afcb43-20240903",
"react-server-dom-turbopack": "19.0.0-rc-d1afcb43-20240903",
"react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-d1afcb43-20240903",
"react-server-dom-webpack": "19.0.0-rc-d1afcb43-20240903",
"react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-d1afcb43-20240903",
"react-ssr-prepass": "1.0.8",
"react-virtualized": "9.22.3",
"relay-compiler": "13.0.2",
Expand All @@ -228,8 +228,8 @@
"resolve-from": "5.0.0",
"sass": "1.54.0",
"satori": "0.10.9",
"scheduler-builtin": "npm:scheduler@0.25.0-rc-7771d3a7-20240827",
"scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-7771d3a7-20240827",
"scheduler-builtin": "npm:scheduler@0.25.0-rc-d1afcb43-20240903",
"scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-d1afcb43-20240903",
"seedrandom": "3.0.5",
"semver": "7.3.7",
"shell-quote": "1.7.3",
Expand Down Expand Up @@ -269,10 +269,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-7771d3a7-20240827",
"react-dom": "19.0.0-rc-7771d3a7-20240827",
"react-is": "19.0.0-rc-7771d3a7-20240827",
"scheduler": "0.25.0-rc-7771d3a7-20240827"
"react": "19.0.0-rc-d1afcb43-20240903",
"react-dom": "19.0.0-rc-d1afcb43-20240903",
"react-is": "19.0.0-rc-d1afcb43-20240903",
"scheduler": "0.25.0-rc-d1afcb43-20240903"
},
"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-7771d3a7-20240827";
const nextjsReactPeerVersion = "19.0.0-rc-d1afcb43-20240903";

/**
* 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 @@ -108,8 +108,8 @@
"@opentelemetry/api": "^1.1.0",
"@playwright/test": "^1.41.2",
"babel-plugin-react-compiler": "*",
"react": "19.0.0-rc-7771d3a7-20240827",
"react-dom": "19.0.0-rc-7771d3a7-20240827",
"react": "19.0.0-rc-d1afcb43-20240903",
"react-dom": "19.0.0-rc-d1afcb43-20240903",
"sass": "^1.3.0"
},
"peerDependenciesMeta": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5855,6 +5855,14 @@
}
function finishRenderingHooks(current, workInProgress) {
workInProgress._debugHookTypes = hookTypesDev;
null === workInProgress.dependencies
? null !== thenableState &&
(workInProgress.dependencies = {
lanes: 0,
firstContext: null,
_debugThenableState: thenableState
})
: (workInProgress.dependencies._debugThenableState = thenableState);
ReactSharedInternals.H = ContextOnlyDispatcher;
var didRenderTooFewHooks =
null !== currentHook && null !== currentHook.next;
Expand Down Expand Up @@ -10444,7 +10452,11 @@
"Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."
);
lastContextDependency = context;
consumer.dependencies = { lanes: 0, firstContext: context };
consumer.dependencies = {
lanes: 0,
firstContext: context,
_debugThenableState: null
};
consumer.flags |= 524288;
} else lastContextDependency = lastContextDependency.next = context;
return value;
Expand Down Expand Up @@ -13359,7 +13371,8 @@
? null
: {
lanes: pendingProps.lanes,
firstContext: pendingProps.firstContext
firstContext: pendingProps.firstContext,
_debugThenableState: pendingProps._debugThenableState
};
workInProgress.sibling = current.sibling;
workInProgress.index = current.index;
Expand Down Expand Up @@ -13412,7 +13425,8 @@
? null
: {
lanes: renderLanes.lanes,
firstContext: renderLanes.firstContext
firstContext: renderLanes.firstContext,
_debugThenableState: renderLanes._debugThenableState
}),
(workInProgress.selfBaseDuration = current.selfBaseDuration),
(workInProgress.treeBaseDuration = current.treeBaseDuration));
Expand Down Expand Up @@ -24615,11 +24629,11 @@
};
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-experimental-7771d3a7-20240827" !== isomorphicReactPackageVersion)
if ("19.0.0-experimental-d1afcb43-20240903" !== 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-7771d3a7-20240827\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.0.0-experimental-d1afcb43-20240903\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
Expand Down Expand Up @@ -24656,11 +24670,11 @@
!(function () {
var internals = {
bundleType: 1,
version: "19.0.0-experimental-7771d3a7-20240827",
version: "19.0.0-experimental-d1afcb43-20240903",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getClosestInstanceFromNode,
reconcilerVersion: "19.0.0-experimental-7771d3a7-20240827"
reconcilerVersion: "19.0.0-experimental-d1afcb43-20240903"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -24804,7 +24818,7 @@
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.0.0-experimental-7771d3a7-20240827";
exports.version = "19.0.0-experimental-d1afcb43-20240903";
"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 @@ -15014,14 +15014,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_1635 = React.version;
if (
"19.0.0-experimental-7771d3a7-20240827" !==
"19.0.0-experimental-d1afcb43-20240903" !==
isomorphicReactPackageVersion$jscomp$inline_1635
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1635,
"19.0.0-experimental-7771d3a7-20240827"
"19.0.0-experimental-d1afcb43-20240903"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
Expand All @@ -15043,11 +15043,11 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2043 = {
bundleType: 0,
version: "19.0.0-experimental-7771d3a7-20240827",
version: "19.0.0-experimental-d1afcb43-20240903",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getClosestInstanceFromNode,
reconcilerVersion: "19.0.0-experimental-7771d3a7-20240827"
reconcilerVersion: "19.0.0-experimental-d1afcb43-20240903"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2044 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -15151,4 +15151,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.0.0-experimental-7771d3a7-20240827";
exports.version = "19.0.0-experimental-d1afcb43-20240903";
Original file line number Diff line number Diff line change
Expand Up @@ -5863,6 +5863,14 @@
}
function finishRenderingHooks(current, workInProgress) {
workInProgress._debugHookTypes = hookTypesDev;
null === workInProgress.dependencies
? null !== thenableState &&
(workInProgress.dependencies = {
lanes: 0,
firstContext: null,
_debugThenableState: thenableState
})
: (workInProgress.dependencies._debugThenableState = thenableState);
ReactSharedInternals.H = ContextOnlyDispatcher;
var didRenderTooFewHooks =
null !== currentHook && null !== currentHook.next;
Expand Down Expand Up @@ -10452,7 +10460,11 @@
"Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."
);
lastContextDependency = context;
consumer.dependencies = { lanes: 0, firstContext: context };
consumer.dependencies = {
lanes: 0,
firstContext: context,
_debugThenableState: null
};
consumer.flags |= 524288;
} else lastContextDependency = lastContextDependency.next = context;
return value;
Expand Down Expand Up @@ -13367,7 +13379,8 @@
? null
: {
lanes: pendingProps.lanes,
firstContext: pendingProps.firstContext
firstContext: pendingProps.firstContext,
_debugThenableState: pendingProps._debugThenableState
};
workInProgress.sibling = current.sibling;
workInProgress.index = current.index;
Expand Down Expand Up @@ -13420,7 +13433,8 @@
? null
: {
lanes: renderLanes.lanes,
firstContext: renderLanes.firstContext
firstContext: renderLanes.firstContext,
_debugThenableState: renderLanes._debugThenableState
}),
(workInProgress.selfBaseDuration = current.selfBaseDuration),
(workInProgress.treeBaseDuration = current.treeBaseDuration));
Expand Down Expand Up @@ -24672,11 +24686,11 @@
};
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-experimental-7771d3a7-20240827" !== isomorphicReactPackageVersion)
if ("19.0.0-experimental-d1afcb43-20240903" !== 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-7771d3a7-20240827\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.0.0-experimental-d1afcb43-20240903\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
Expand Down Expand Up @@ -24713,11 +24727,11 @@
!(function () {
var internals = {
bundleType: 1,
version: "19.0.0-experimental-7771d3a7-20240827",
version: "19.0.0-experimental-d1afcb43-20240903",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getClosestInstanceFromNode,
reconcilerVersion: "19.0.0-experimental-7771d3a7-20240827"
reconcilerVersion: "19.0.0-experimental-d1afcb43-20240903"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -25191,7 +25205,7 @@
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.0.0-experimental-7771d3a7-20240827";
exports.version = "19.0.0-experimental-d1afcb43-20240903";
"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 @@ -15717,14 +15717,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_1724 = React.version;
if (
"19.0.0-experimental-7771d3a7-20240827" !==
"19.0.0-experimental-d1afcb43-20240903" !==
isomorphicReactPackageVersion$jscomp$inline_1724
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1724,
"19.0.0-experimental-7771d3a7-20240827"
"19.0.0-experimental-d1afcb43-20240903"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
Expand All @@ -15746,11 +15746,11 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_1731 = {
bundleType: 0,
version: "19.0.0-experimental-7771d3a7-20240827",
version: "19.0.0-experimental-d1afcb43-20240903",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getClosestInstanceFromNode,
reconcilerVersion: "19.0.0-experimental-7771d3a7-20240827",
reconcilerVersion: "19.0.0-experimental-d1afcb43-20240903",
getLaneLabelMap: function () {
for (
var map = new Map(), lane = 1, index$292 = 0;
Expand Down Expand Up @@ -16030,7 +16030,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-experimental-7771d3a7-20240827";
exports.version = "19.0.0-experimental-d1afcb43-20240903";
"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-7771d3a7-20240827";
exports.version = "19.0.0-experimental-d1afcb43-20240903";
})();
Original file line number Diff line number Diff line change
Expand Up @@ -6055,4 +6055,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-7771d3a7-20240827";
exports.version = "19.0.0-experimental-d1afcb43-20240903";
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-7771d3a7-20240827";
exports.version = "19.0.0-experimental-d1afcb43-20240903";
})();
Original file line number Diff line number Diff line change
Expand Up @@ -6147,4 +6147,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-7771d3a7-20240827";
exports.version = "19.0.0-experimental-d1afcb43-20240903";
Original file line number Diff line number Diff line change
Expand Up @@ -8177,11 +8177,11 @@
}
function ensureCorrectIsomorphicReactVersion() {
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-experimental-7771d3a7-20240827" !== isomorphicReactPackageVersion)
if ("19.0.0-experimental-d1afcb43-20240903" !== 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-7771d3a7-20240827\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.0.0-experimental-d1afcb43-20240903\nLearn more: https://react.dev/warnings/version-mismatch")
);
}
var React = require("next/dist/compiled/react-experimental"),
Expand Down Expand Up @@ -9911,5 +9911,5 @@
startWork(request);
});
};
exports.version = "19.0.0-experimental-7771d3a7-20240827";
exports.version = "19.0.0-experimental-d1afcb43-20240903";
})();
Loading
Loading