From 66da039002b7add53d839c52ded9004622e463c6 Mon Sep 17 00:00:00 2001 From: eps1lon Date: Thu, 16 May 2024 13:21:09 -0700 Subject: [PATCH] Update React from 4508873393 to 04b058868c --- package.json | 14 +- packages/next/package.json | 4 +- .../cjs/react-dom-client.development.js | 17 +- .../cjs/react-dom-client.production.js | 8 +- .../cjs/react-dom-profiling.development.js | 17 +- .../cjs/react-dom-profiling.profiling.js | 8 +- ...t-dom-server-legacy.browser.development.js | 31 +- ...ct-dom-server-legacy.browser.production.js | 54 +- ...eact-dom-server-legacy.node.development.js | 31 +- ...react-dom-server-legacy.node.production.js | 60 ++- .../react-dom-server.browser.development.js | 31 +- .../react-dom-server.browser.production.js | 14 +- .../cjs/react-dom-server.bun.production.js | 20 +- .../cjs/react-dom-server.edge.development.js | 31 +- .../cjs/react-dom-server.edge.production.js | 20 +- .../cjs/react-dom-server.node.development.js | 31 +- .../cjs/react-dom-server.node.production.js | 20 +- .../react-dom-unstable_testing.development.js | 7 +- .../react-dom-unstable_testing.production.js | 8 +- .../cjs/react-dom.development.js | 12 +- .../cjs/react-dom.production.js | 2 +- .../react-dom-experimental/package.json | 4 +- .../cjs/react.development.js | 12 +- .../cjs/react.production.js | 2 +- .../cjs/react.react-server.development.js | 2 +- .../cjs/react.react-server.production.js | 2 +- ...om-turbopack-client.browser.development.js | 211 +++++++- ...dom-turbopack-client.browser.production.js | 163 ++++-- ...r-dom-turbopack-client.edge.development.js | 211 +++++++- ...er-dom-turbopack-client.edge.production.js | 163 ++++-- ...r-dom-turbopack-client.node.development.js | 211 +++++++- ...er-dom-turbopack-client.node.production.js | 163 ++++-- ...opack-client.node.unbundled.development.js | 211 +++++++- ...bopack-client.node.unbundled.production.js | 163 ++++-- ...om-turbopack-server.browser.development.js | 467 ++++++++++++++--- ...dom-turbopack-server.browser.production.js | 378 +++++++++++--- ...r-dom-turbopack-server.edge.development.js | 477 +++++++++++++++--- ...er-dom-turbopack-server.edge.production.js | 378 +++++++++++--- ...r-dom-turbopack-server.node.development.js | 432 +++++++++++++--- ...er-dom-turbopack-server.node.production.js | 408 +++++++++++---- ...opack-server.node.unbundled.development.js | 432 +++++++++++++--- ...bopack-server.node.unbundled.production.js | 408 +++++++++++---- .../package.json | 4 +- ...-dom-webpack-client.browser.development.js | 211 +++++++- ...r-dom-webpack-client.browser.production.js | 163 ++++-- ...ver-dom-webpack-client.edge.development.js | 211 +++++++- ...rver-dom-webpack-client.edge.production.js | 163 ++++-- ...ver-dom-webpack-client.node.development.js | 211 +++++++- ...rver-dom-webpack-client.node.production.js | 163 ++++-- ...bpack-client.node.unbundled.development.js | 211 +++++++- ...ebpack-client.node.unbundled.production.js | 163 ++++-- ...-dom-webpack-server.browser.development.js | 467 ++++++++++++++--- ...r-dom-webpack-server.browser.production.js | 378 +++++++++++--- ...ver-dom-webpack-server.edge.development.js | 477 +++++++++++++++--- ...rver-dom-webpack-server.edge.production.js | 378 +++++++++++--- ...ver-dom-webpack-server.node.development.js | 432 +++++++++++++--- ...rver-dom-webpack-server.node.production.js | 408 +++++++++++---- ...bpack-server.node.unbundled.development.js | 432 +++++++++++++--- ...ebpack-server.node.unbundled.production.js | 408 +++++++++++---- .../package.json | 4 +- .../cjs/scheduler.development.js | 10 +- .../scheduler/cjs/scheduler.development.js | 10 +- pnpm-lock.yaml | 60 +-- 63 files changed, 8376 insertions(+), 1926 deletions(-) diff --git a/package.json b/package.json index 4045eb4bd4f68..b2f5809186e40 100644 --- a/package.json +++ b/package.json @@ -203,12 +203,12 @@ "react-dom": "19.0.0-beta-04b058868c-20240508", "react-dom-17": "npm:react-dom@17.0.2", "react-dom-builtin": "npm:react-dom@19.0.0-beta-04b058868c-20240508", - "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-4508873393-20240430", - "react-experimental-builtin": "npm:react@0.0.0-experimental-4508873393-20240430", + "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-04b058868c-20240508", + "react-experimental-builtin": "npm:react@0.0.0-experimental-04b058868c-20240508", "react-server-dom-turbopack": "19.0.0-beta-04b058868c-20240508", - "react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-4508873393-20240430", + "react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-04b058868c-20240508", "react-server-dom-webpack": "19.0.0-beta-04b058868c-20240508", - "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-4508873393-20240430", + "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-04b058868c-20240508", "react-ssr-prepass": "1.0.8", "react-virtualized": "9.22.3", "relay-compiler": "13.0.2", @@ -218,8 +218,8 @@ "resolve-from": "5.0.0", "sass": "1.54.0", "satori": "0.10.9", - "scheduler-builtin": "npm:scheduler@0.25.0-beta-4508873393-20240430", - "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-4508873393-20240430", + "scheduler-builtin": "npm:scheduler@0.25.0-beta-04b058868c-20240508", + "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-04b058868c-20240508", "seedrandom": "3.0.5", "semver": "7.3.7", "shell-quote": "1.7.3", @@ -256,7 +256,7 @@ "react": "19.0.0-beta-04b058868c-20240508", "react-dom": "19.0.0-beta-04b058868c-20240508", "react-is": "19.0.0-beta-04b058868c-20240508", - "scheduler": "0.25.0-beta-94eed63c49-20240425" + "scheduler": "0.25.0-beta-04b058868c-20240508" }, "engines": { "node": ">=18.17.0", diff --git a/packages/next/package.json b/packages/next/package.json index 515ebed8886e6..8884e9d5dd2e7 100644 --- a/packages/next/package.json +++ b/packages/next/package.json @@ -105,8 +105,8 @@ "@opentelemetry/api": "^1.1.0", "@playwright/test": "^1.41.2", "babel-plugin-react-compiler": "*", - "react": "^19.0.0-0", - "react-dom": "^19.0.0-0", + "react": "19.0.0-beta-04b058868c-20240508", + "react-dom": "19.0.0-beta-04b058868c-20240508", "sass": "^1.3.0" }, "peerDependenciesMeta": { diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.development.js index 56ad0950abf4a..355746f3d2aed 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.development.js @@ -12,10 +12,7 @@ if (process.env.NODE_ENV !== "production") { (function() { - - 'use strict'; - -/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ +'use strict'; if ( typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === @@ -23,7 +20,7 @@ if ( ) { __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); } - var React = require("next/dist/compiled/react-experimental"); +var React = require("next/dist/compiled/react-experimental"); var Scheduler = require("next/dist/compiled/scheduler-experimental"); var ReactDOM = require('react-dom'); @@ -8784,6 +8781,11 @@ function extractEvents$1(dispatchQueue, domEventName, maybeTargetInst, nativeEve var temp = submitter.ownerDocument.createElement('input'); temp.name = submitter.name; temp.value = submitter.value; + + if (form.id) { + temp.setAttribute('form', form.id); + } + submitter.parentNode.insertBefore(temp, submitter); formData = new FormData(form); temp.parentNode.removeChild(temp); @@ -36167,7 +36169,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition return root; } -var ReactVersion = '19.0.0-experimental-4508873393-20240430'; +var ReactVersion = '19.0.0-experimental-04b058868c-20240508'; // Might add PROFILE later. @@ -37667,7 +37669,6 @@ var foundDevTools = injectIntoDevTools({ exports.createRoot = createRoot; exports.hydrateRoot = hydrateRoot; exports.version = ReactVersion; - /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === @@ -37675,6 +37676,6 @@ if ( ) { __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); } - + })(); } diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.production.js index 5dd6ba6969213..1f75c262ceee2 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.production.js @@ -2292,6 +2292,8 @@ function extractEvents$1( var temp = submitter.ownerDocument.createElement("input"); temp.name = submitter.name; temp.value = submitter.value; + nativeEventTarget.id && + temp.setAttribute("form", nativeEventTarget.id); submitter.parentNode.insertBefore(temp, submitter); var formData = new FormData(nativeEventTarget); temp.parentNode.removeChild(temp); @@ -14696,7 +14698,7 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { var devToolsConfig$jscomp$inline_1621 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-experimental-4508873393-20240430", + version: "19.0.0-experimental-04b058868c-20240508", rendererPackageName: "react-dom" }; var internals$jscomp$inline_1999 = { @@ -14726,7 +14728,7 @@ var internals$jscomp$inline_1999 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-experimental-4508873393-20240430" + reconcilerVersion: "19.0.0-experimental-04b058868c-20240508" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2000 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -14832,4 +14834,4 @@ exports.hydrateRoot = function (container, initialChildren, options) { listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; -exports.version = "19.0.0-experimental-4508873393-20240430"; +exports.version = "19.0.0-experimental-04b058868c-20240508"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.development.js index 50e824c12877e..d925dc50635d9 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.development.js @@ -12,10 +12,7 @@ if (process.env.NODE_ENV !== "production") { (function() { - - 'use strict'; - -/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ +'use strict'; if ( typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === @@ -23,7 +20,7 @@ if ( ) { __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); } - var React = require("next/dist/compiled/react-experimental"); +var React = require("next/dist/compiled/react-experimental"); var Scheduler = require("next/dist/compiled/scheduler-experimental"); var ReactDOM = require('react-dom'); @@ -8832,6 +8829,11 @@ function extractEvents$1(dispatchQueue, domEventName, maybeTargetInst, nativeEve var temp = submitter.ownerDocument.createElement('input'); temp.name = submitter.name; temp.value = submitter.value; + + if (form.id) { + temp.setAttribute('form', form.id); + } + submitter.parentNode.insertBefore(temp, submitter); formData = new FormData(form); temp.parentNode.removeChild(temp); @@ -36215,7 +36217,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition return root; } -var ReactVersion = '19.0.0-experimental-4508873393-20240430'; +var ReactVersion = '19.0.0-experimental-04b058868c-20240508'; function createPortal$1(children, containerInfo, // TODO: figure out the API for cross-renderer implementation. implementation) { @@ -38121,7 +38123,6 @@ exports.unstable_batchedUpdates = batchedUpdates; exports.useFormState = useFormState; exports.useFormStatus = useFormStatus; exports.version = ReactVersion; - /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === @@ -38129,6 +38130,6 @@ if ( ) { __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); } - + })(); } diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.profiling.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.profiling.js index 7b251c79e2cae..d932d63cbc27a 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.profiling.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.profiling.js @@ -2414,6 +2414,8 @@ function extractEvents$1( var temp = submitter.ownerDocument.createElement("input"); temp.name = submitter.name; temp.value = submitter.value; + nativeEventTarget.id && + temp.setAttribute("form", nativeEventTarget.id); submitter.parentNode.insertBefore(temp, submitter); var formData = new FormData(nativeEventTarget); temp.parentNode.removeChild(temp); @@ -15407,7 +15409,7 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { var devToolsConfig$jscomp$inline_1708 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-experimental-4508873393-20240430", + version: "19.0.0-experimental-04b058868c-20240508", rendererPackageName: "react-dom" }; (function (internals) { @@ -15450,7 +15452,7 @@ var devToolsConfig$jscomp$inline_1708 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-experimental-4508873393-20240430" + reconcilerVersion: "19.0.0-experimental-04b058868c-20240508" }); function noop() {} function getCrossOriginStringAs(as, input) { @@ -15704,7 +15706,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-experimental-4508873393-20240430"; +exports.version = "19.0.0-experimental-04b058868c-20240508"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js index d9189546f1663..4360146ead0d5 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js @@ -17,7 +17,7 @@ if (process.env.NODE_ENV !== "production") { var React = require("next/dist/compiled/react-experimental"); var ReactDOM = require('react-dom'); -var ReactVersion = '19.0.0-experimental-4508873393-20240430'; +var ReactVersion = '19.0.0-experimental-04b058868c-20240508'; var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; @@ -2565,11 +2565,7 @@ var startHiddenInputChunk = stringToPrecomputedChunk('"); } +function validateAdditionalFormField(value) { + if ("string" !== typeof value) throw Error(formatProdErrorMessage(480)); +} function getCustomFormFields(resumableState, formAction) { if ("function" === typeof formAction.$$FORM_ACTION) { var id = resumableState.nextFormID++; resumableState = resumableState.idPrefix + id; try { - return formAction.$$FORM_ACTION(resumableState); + var customFields = formAction.$$FORM_ACTION(resumableState); + if (customFields) { + var formData = customFields.data; + null != formData && formData.forEach(validateAdditionalFormField); + } + return customFields; } catch (x) { if ("object" === typeof x && null !== x && "function" === typeof x.then) throw x; @@ -2618,16 +2626,16 @@ function createRenderState(resumableState, generateStaticMarkup) { "\x3c/script>" ); bootstrapScriptContent = idPrefix + "P:"; - var JSCompiler_object_inline_segmentPrefix_1686 = idPrefix + "S:"; + var JSCompiler_object_inline_segmentPrefix_1688 = idPrefix + "S:"; idPrefix += "B:"; - var JSCompiler_object_inline_preconnects_1700 = new Set(), - JSCompiler_object_inline_fontPreloads_1701 = new Set(), - JSCompiler_object_inline_highImagePreloads_1702 = new Set(), - JSCompiler_object_inline_styles_1703 = new Map(), - JSCompiler_object_inline_bootstrapScripts_1704 = new Set(), - JSCompiler_object_inline_scripts_1705 = new Set(), - JSCompiler_object_inline_bulkPreloads_1706 = new Set(), - JSCompiler_object_inline_preloads_1707 = { + var JSCompiler_object_inline_preconnects_1702 = new Set(), + JSCompiler_object_inline_fontPreloads_1703 = new Set(), + JSCompiler_object_inline_highImagePreloads_1704 = new Set(), + JSCompiler_object_inline_styles_1705 = new Map(), + JSCompiler_object_inline_bootstrapScripts_1706 = new Set(), + JSCompiler_object_inline_scripts_1707 = new Set(), + JSCompiler_object_inline_bulkPreloads_1708 = new Set(), + JSCompiler_object_inline_preloads_1709 = { images: new Map(), stylesheets: new Map(), scripts: new Map(), @@ -2664,7 +2672,7 @@ function createRenderState(resumableState, generateStaticMarkup) { scriptConfig.moduleScriptResources[href] = null; scriptConfig = []; pushLinkImpl(scriptConfig, props); - JSCompiler_object_inline_bootstrapScripts_1704.add(scriptConfig); + JSCompiler_object_inline_bootstrapScripts_1706.add(scriptConfig); bootstrapChunks.push('