Unverified Commit da0c4690 authored by Sebastian Silbermann's avatar Sebastian Silbermann Committed by GitHub

Update React from `6230622a1a-20240610` to `3208e73e-20240730` (#68330)

Co-authored-by: 's avatarHendrik Liebau <mail@hendrik-liebau.de>
parent b46b1e11
19.0.0-rc-6230622a1a-20240610
\ No newline at end of file
19.0.0-rc-3208e73e-20240730
\ No newline at end of file
......@@ -7,8 +7,8 @@
},
"dependencies": {
"next": "canary",
"react": "19.0.0-rc.0",
"react-dom": "19.0.0-rc.0"
"react": "19.0.0-rc-3208e73e-20240730",
"react-dom": "19.0.0-rc-3208e73e-20240730"
},
"devDependencies": {
"@types/node": "20.12.12",
......
......@@ -200,19 +200,19 @@
"pretty-bytes": "5.3.0",
"pretty-ms": "7.0.0",
"random-seed": "0.3.0",
"react": "19.0.0-rc-6230622a1a-20240610",
"react": "19.0.0-rc-3208e73e-20240730",
"react-17": "npm:react@17.0.2",
"react-builtin": "npm:react@19.0.0-rc-6230622a1a-20240610",
"react-dom": "19.0.0-rc-6230622a1a-20240610",
"react-builtin": "npm:react@19.0.0-rc-3208e73e-20240730",
"react-dom": "19.0.0-rc-3208e73e-20240730",
"react-dom-17": "npm:react-dom@17.0.2",
"react-dom-builtin": "npm:react-dom@19.0.0-rc-6230622a1a-20240610",
"react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-6230622a1a-20240610",
"react-experimental-builtin": "npm:react@0.0.0-experimental-6230622a1a-20240610",
"react-is-builtin": "npm:react-is@19.0.0-rc-6230622a1a-20240610",
"react-server-dom-turbopack": "19.0.0-rc-6230622a1a-20240610",
"react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-6230622a1a-20240610",
"react-server-dom-webpack": "19.0.0-rc-6230622a1a-20240610",
"react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-6230622a1a-20240610",
"react-dom-builtin": "npm:react-dom@19.0.0-rc-3208e73e-20240730",
"react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-3208e73e-20240730",
"react-experimental-builtin": "npm:react@0.0.0-experimental-3208e73e-20240730",
"react-is-builtin": "npm:react-is@19.0.0-rc-3208e73e-20240730",
"react-server-dom-turbopack": "19.0.0-rc-3208e73e-20240730",
"react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-3208e73e-20240730",
"react-server-dom-webpack": "19.0.0-rc-3208e73e-20240730",
"react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-3208e73e-20240730",
"react-ssr-prepass": "1.0.8",
"react-virtualized": "9.22.3",
"relay-compiler": "13.0.2",
......@@ -222,8 +222,8 @@
"resolve-from": "5.0.0",
"sass": "1.54.0",
"satori": "0.10.9",
"scheduler-builtin": "npm:scheduler@0.25.0-rc-6230622a1a-20240610",
"scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-6230622a1a-20240610",
"scheduler-builtin": "npm:scheduler@0.25.0-rc-3208e73e-20240730",
"scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-3208e73e-20240730",
"seedrandom": "3.0.5",
"semver": "7.3.7",
"shell-quote": "1.7.3",
......@@ -263,10 +263,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-6230622a1a-20240610",
"react-dom": "19.0.0-rc-6230622a1a-20240610",
"react-is": "19.0.0-rc-6230622a1a-20240610",
"scheduler": "0.25.0-rc-6230622a1a-20240610"
"react": "19.0.0-rc-3208e73e-20240730",
"react-dom": "19.0.0-rc-3208e73e-20240730",
"react-is": "19.0.0-rc-3208e73e-20240730",
"scheduler": "0.25.0-rc-3208e73e-20240730"
},
"patchedDependencies": {
"webpack-sources@3.2.3": "patches/webpack-sources@3.2.3.patch"
......
......@@ -184,8 +184,8 @@ export const installTemplate = async ({
* Default dependencies.
*/
dependencies: {
react: "19.0.0-rc.0",
"react-dom": "19.0.0-rc.0",
react: "19.0.0-rc-3208e73e-20240730",
"react-dom": "19.0.0-rc-3208e73e-20240730",
next: version,
},
devDependencies: {},
......
......@@ -108,8 +108,8 @@
"@opentelemetry/api": "^1.1.0",
"@playwright/test": "^1.41.2",
"babel-plugin-react-compiler": "*",
"react": "19.0.0-rc.0",
"react-dom": "19.0.0-rc.0",
"react": "19.0.0-rc-3208e73e-20240730",
"react-dom": "19.0.0-rc-3208e73e-20240730",
"sass": "^1.3.0"
},
"peerDependenciesMeta": {
......
......@@ -17,10 +17,10 @@ export const hydrationErrorState: HydrationErrorState = {}
// https://github.com/facebook/react/blob/main/packages/react-dom/src/__tests__/ReactDOMHydrationDiff-test.js used as a reference
const htmlTagsWarnings = new Set([
'Warning: In HTML, %s cannot be a child of <%s>.%s\nThis will cause a hydration error.%s',
'Warning: In HTML, %s cannot be a descendant of <%s>.\nThis will cause a hydration error.%s',
'Warning: In HTML, text nodes cannot be a child of <%s>.\nThis will cause a hydration error.',
"Warning: In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.\nThis will cause a hydration error.",
'In HTML, %s cannot be a child of <%s>.%s\nThis will cause a hydration error.%s',
'In HTML, %s cannot be a descendant of <%s>.\nThis will cause a hydration error.%s',
'In HTML, text nodes cannot be a child of <%s>.\nThis will cause a hydration error.',
"In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.\nThis will cause a hydration error.",
])
export const getHydrationWarningType = (msg: NullableText): 'tag' | 'text' => {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -9,6 +9,7 @@
*/
"use strict";
var React = require("next/dist/compiled/react-experimental");
function formatProdErrorMessage(code) {
var url = "https://react.dev/errors/" + code;
if (1 < arguments.length) {
......@@ -24,8 +25,6 @@ function formatProdErrorMessage(code) {
" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
);
}
var ReactSharedInternals =
require("next/dist/compiled/react-experimental").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
function noop() {}
var Internals = {
d: {
......@@ -56,6 +55,8 @@ function createPortal$1(children, containerInfo, implementation) {
implementation: implementation
};
}
var ReactSharedInternals =
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
function getCrossOriginStringAs(as, input) {
if ("font" === as) return "";
if ("string" === typeof input)
......@@ -206,4 +207,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-experimental-6230622a1a-20240610";
exports.version = "19.0.0-experimental-3208e73e-20240730";
......@@ -9,13 +9,7 @@
*/
"use strict";
if (
!require("next/dist/compiled/react-experimental")
.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE
)
throw Error(
'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.'
);
var React = require("next/dist/compiled/react-experimental");
function noop() {}
var Internals = {
d: {
......@@ -36,6 +30,10 @@ var Internals = {
p: 0,
findDOMNode: null
};
if (!React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)
throw Error(
'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.'
);
function getCrossOriginStringAs(as, input) {
if ("font" === as) return "";
if ("string" === typeof input)
......@@ -151,4 +149,4 @@ exports.preloadModule = function (href, options) {
});
} else Internals.d.m(href);
};
exports.version = "19.0.0-experimental-6230622a1a-20240610";
exports.version = "19.0.0-experimental-3208e73e-20240730";
......@@ -16,9 +16,9 @@
"bun": "./server.bun.js",
"deno": "./server.browser.js",
"worker": "./server.browser.js",
"browser": "./server.browser.js",
"node": "./server.node.js",
"edge-light": "./server.edge.js",
"browser": "./server.browser.js",
"default": "./server.node.js"
},
"./server.browser": {
......@@ -42,9 +42,9 @@
"workerd": "./static.edge.js",
"deno": "./static.browser.js",
"worker": "./static.browser.js",
"browser": "./static.browser.js",
"node": "./static.node.js",
"edge-light": "./static.edge.js",
"browser": "./static.browser.js",
"default": "./static.node.js"
},
"./static.browser": {
......@@ -72,10 +72,10 @@
"./package.json": "./package.json"
},
"dependencies": {
"scheduler": "0.0.0-experimental-6230622a1a-20240610"
"scheduler": "0.0.0-experimental-3208e73e-20240730"
},
"peerDependencies": {
"react": "0.0.0-experimental-6230622a1a-20240610"
"react": "0.0.0-experimental-3208e73e-20240730"
},
"browser": {
"./server.js": "./server.browser.js",
......
......@@ -9,6 +9,7 @@
*/
"use strict";
var React = require("next/dist/compiled/react");
function formatProdErrorMessage(code) {
var url = "https://react.dev/errors/" + code;
if (1 < arguments.length) {
......@@ -24,8 +25,6 @@ function formatProdErrorMessage(code) {
" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
);
}
var ReactSharedInternals =
require("next/dist/compiled/react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
function noop() {}
var Internals = {
d: {
......@@ -56,6 +55,8 @@ function createPortal$1(children, containerInfo, implementation) {
implementation: implementation
};
}
var ReactSharedInternals =
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
function getCrossOriginStringAs(as, input) {
if ("font" === as) return "";
if ("string" === typeof input)
......@@ -206,4 +207,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-rc-6230622a1a-20240610";
exports.version = "19.0.0-rc-3208e73e-20240730";
......@@ -9,13 +9,7 @@
*/
"use strict";
if (
!require("next/dist/compiled/react")
.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE
)
throw Error(
'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.'
);
var React = require("next/dist/compiled/react");
function noop() {}
var Internals = {
d: {
......@@ -36,6 +30,10 @@ var Internals = {
p: 0,
findDOMNode: null
};
if (!React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)
throw Error(
'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.'
);
function getCrossOriginStringAs(as, input) {
if ("font" === as) return "";
if ("string" === typeof input)
......@@ -151,4 +149,4 @@ exports.preloadModule = function (href, options) {
});
} else Internals.d.m(href);
};
exports.version = "19.0.0-rc-6230622a1a-20240610";
exports.version = "19.0.0-rc-3208e73e-20240730";
......@@ -16,9 +16,9 @@
"bun": "./server.bun.js",
"deno": "./server.browser.js",
"worker": "./server.browser.js",
"browser": "./server.browser.js",
"node": "./server.node.js",
"edge-light": "./server.edge.js",
"browser": "./server.browser.js",
"default": "./server.node.js"
},
"./server.browser": {
......@@ -42,9 +42,9 @@
"workerd": "./static.edge.js",
"deno": "./static.browser.js",
"worker": "./static.browser.js",
"browser": "./static.browser.js",
"node": "./static.node.js",
"edge-light": "./static.edge.js",
"browser": "./static.browser.js",
"default": "./static.node.js"
},
"./static.browser": {
......@@ -67,10 +67,10 @@
"./package.json": "./package.json"
},
"dependencies": {
"scheduler": "0.25.0-rc-6230622a1a-20240610"
"scheduler": "0.25.0-rc-3208e73e-20240730"
},
"peerDependencies": {
"react": "19.0.0-rc-6230622a1a-20240610"
"react": "19.0.0-rc-3208e73e-20240730"
},
"browser": {
"./server.js": "./server.browser.js",
......
......@@ -8,90 +8,17 @@
* LICENSE file in the root directory of this source tree.
*/
'use strict';
if (process.env.NODE_ENV !== "production") {
(function() {
'use strict';
var React = require("next/dist/compiled/react-experimental");
var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
function error(format) {
{
{
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
args[_key2 - 1] = arguments[_key2];
}
printWarning('error', format, args, new Error('react-stack-top-frame'));
}
}
} // eslint-disable-next-line react-internal/no-production-logging
var supportsCreateTask = !!console.createTask;
function printWarning(level, format, args, currentStack) {
// When changing this logic, you might want to also
// update consoleWithStackDev.www.js as well.
{
var isErrorLogger = format === '%s\n\n%s\n' || format === '%o\n\n%s\n\n%s\n';
if (!supportsCreateTask && ReactSharedInternals.getCurrentStack) {
// We only add the current stack to the console when createTask is not supported.
// Since createTask requires DevTools to be open to work, this means that stacks
// can be lost while DevTools isn't open but we can't detect this.
var stack = ReactSharedInternals.getCurrentStack(currentStack);
if (stack !== '') {
format += '%s';
args = args.concat([stack]);
}
}
if (isErrorLogger) {
// Don't prefix our default logging formatting in ReactFiberErrorLoggger.
// Don't toString the arguments.
args.unshift(format);
} else {
// TODO: Remove this prefix and stop toStringing in the wrapper and
// instead do it at each callsite as needed.
// Careful: RN currently depends on this prefix
// eslint-disable-next-line react-internal/safe-string-coercion
args = args.map(function (item) {
return String(item);
});
args.unshift('Warning: ' + format);
} // We intentionally don't use spread (or .apply) directly because it
// breaks IE9: https://github.com/facebook/react/issues/13610
// eslint-disable-next-line react-internal/no-production-logging
Function.prototype.apply.call(console[level], console, args);
}
}
function resolveDispatcher() {
var dispatcher = ReactSharedInternals.H;
{
if (dispatcher === null) {
error('Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for' + ' one of the following reasons:\n' + '1. You might have mismatching versions of React and the renderer (such as React DOM)\n' + '2. You might be breaking the Rules of Hooks\n' + '3. You might have more than one copy of React in the same app\n' + 'See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.');
}
} // Will result in a null access error if accessed outside render phase. We
// intentionally don't throw our own error because this is in a hot path.
// Also helps ensure this is inlined.
return dispatcher;
}
function useMemoCache(size) {
var dispatcher = resolveDispatcher(); // $FlowFixMe[not-a-function] This is unstable, thus optional
return dispatcher.useMemoCache(size);
}
exports.c = useMemoCache;
"use strict";
"production" !== process.env.NODE_ENV &&
(function () {
var ReactSharedInternals =
require("next/dist/compiled/react-experimental").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
exports.c = function (size) {
var dispatcher = ReactSharedInternals.H;
null === dispatcher &&
console.error(
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
);
return dispatcher.useMemoCache(size);
};
})();
}
......@@ -373,6 +373,9 @@ exports.cache = function (fn) {
return fn.apply(null, arguments);
};
};
exports.captureOwnerStack = function () {
return null;
};
exports.cloneElement = function (element, config, children) {
if (null === element || void 0 === element)
throw Error(
......@@ -559,4 +562,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-experimental-6230622a1a-20240610";
exports.version = "19.0.0-experimental-3208e73e-20240730";
......@@ -404,6 +404,9 @@ exports.cache = function (fn) {
}
};
};
exports.captureOwnerStack = function () {
return null;
};
exports.cloneElement = function (element, config, children) {
if (null === element || void 0 === element)
throw Error(formatProdErrorMessage(267, element));
......@@ -564,4 +567,4 @@ exports.useId = function () {
exports.useMemo = function (create, deps) {
return ReactSharedInternals.H.useMemo(create, deps);
};
exports.version = "19.0.0-experimental-6230622a1a-20240610";
exports.version = "19.0.0-experimental-3208e73e-20240730";
{
"name": "react-is",
"version": "19.0.0-rc-6230622a1a-20240610",
"version": "19.0.0-rc-3208e73e-20240730",
"description": "Brand checking of React Elements.",
"main": "index.js",
"sideEffects": false,
......
......@@ -47,7 +47,7 @@
"neo-async": "^2.6.1"
},
"peerDependencies": {
"react": "0.0.0-experimental-6230622a1a-20240610",
"react-dom": "0.0.0-experimental-6230622a1a-20240610"
"react": "0.0.0-experimental-3208e73e-20240730",
"react-dom": "0.0.0-experimental-3208e73e-20240730"
}
}
\ No newline at end of file
......@@ -47,7 +47,7 @@
"neo-async": "^2.6.1"
},
"peerDependencies": {
"react": "19.0.0-rc-6230622a1a-20240610",
"react-dom": "19.0.0-rc-6230622a1a-20240610"
"react": "19.0.0-rc-3208e73e-20240730",
"react-dom": "19.0.0-rc-3208e73e-20240730"
}
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment