From 89f9ba18d62332b51a2726f28cd4fa562a9b69f4 Mon Sep 17 00:00:00 2001 From: Andrew Clark Date: Wed, 3 May 2023 11:44:30 -0400 Subject: [PATCH] Upgrade React to 18.3.0-next-5dd90c562-20230502 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Includes the following upstream changes: - [5dd90c562](https://github.com/facebook/react/commits/5dd90c562) Use content hash for react-native builds ([#26734](https://github.com/facebook/react/pull/26734)) (Samuel Susla) - [559e83aeb](https://github.com/facebook/react/commits/559e83aeb) [Fizz] Allow an action provide a custom set of props to use for progressive enhancement ([#26749](https://github.com/facebook/react/pull/26749)) (Sebastian Markbåge) - [67f4fb021](https://github.com/facebook/react/commits/67f4fb021) Allow forms to skip hydration of hidden inputs ([#26735](https://github.com/facebook/react/pull/26735)) (Sebastian Markbåge) - [8ea96ef84](https://github.com/facebook/react/commits/8ea96ef84) [Fizz] Encode external fizz runtime into chunks eagerly ([#26752](https://github.com/facebook/react/pull/26752)) (Josh Story) - [491aec5d6](https://github.com/facebook/react/commits/491aec5d6) Implement experimental_useOptimisticState ([#26740](https://github.com/facebook/react/pull/26740)) (Andrew Clark) - [9545e4810](https://github.com/facebook/react/commits/9545e4810) Add nonce support to bootstrap scripts and external runtime ([#26738](https://github.com/facebook/react/pull/26738)) (Dan Ott) - [86b0e9199](https://github.com/facebook/react/commits/86b0e9199) Gate DevTools test to fix CI ([#26742](https://github.com/facebook/react/pull/26742)) (Andrew Clark) - [b12bea62d](https://github.com/facebook/react/commits/b12bea62d) Preinits should support a nonce option ([#26744](https://github.com/facebook/react/pull/26744)) (Josh Story) - [efbd68511](https://github.com/facebook/react/commits/efbd68511) Remove unused `initialStatus` parameter from `useHostTransitionStatus` ([#26743](https://github.com/facebook/react/pull/26743)) (Sebastian Silbermann) - [18282f881](https://github.com/facebook/react/commits/18282f881) Fix: Update while suspended fails to interrupt ([#26739](https://github.com/facebook/react/pull/26739)) (Andrew Clark) - [540bab085](https://github.com/facebook/react/commits/540bab085) Implement experimental_useFormStatus ([#26722](https://github.com/facebook/react/pull/26722)) (Andrew Clark) --- package.json | 16 +- ...t-dom-server-legacy.browser.development.js | 285 +- ...om-server-legacy.browser.production.min.js | 254 +- ...eact-dom-server-legacy.node.development.js | 285 +- ...t-dom-server-legacy.node.production.min.js | 271 +- ...t-dom-server-rendering-stub.development.js | 2 +- ...om-server-rendering-stub.production.min.js | 2 +- .../react-dom-server.browser.development.js | 284 +- ...react-dom-server.browser.production.min.js | 263 +- .../cjs/react-dom-server.edge.development.js | 284 +- .../react-dom-server.edge.production.min.js | 280 +- .../cjs/react-dom-server.node.development.js | 284 +- .../react-dom-server.node.production.min.js | 281 +- .../react-dom-static.browser.development.js | 284 +- ...react-dom-static.browser.production.min.js | 263 +- .../cjs/react-dom-static.edge.development.js | 284 +- .../react-dom-static.edge.production.min.js | 265 +- .../cjs/react-dom-static.node.development.js | 284 +- .../react-dom-static.node.production.min.js | 284 +- .../react-dom-unstable_testing.development.js | 1151 ++-- ...act-dom-unstable_testing.production.min.js | 818 +-- .../cjs/react-dom.development.js | 1151 ++-- .../cjs/react-dom.production.min.js | 782 +-- .../cjs/react-dom.profiling.min.js | 818 +-- .../react-dom-experimental/package.json | 4 +- ...t-dom-server-legacy.browser.development.js | 168 +- ...om-server-legacy.browser.production.min.js | 211 +- ...eact-dom-server-legacy.node.development.js | 168 +- ...t-dom-server-legacy.node.production.min.js | 235 +- ...t-dom-server-rendering-stub.development.js | 2 +- ...om-server-rendering-stub.production.min.js | 2 +- .../react-dom-server.browser.development.js | 166 +- ...react-dom-server.browser.production.min.js | 238 +- .../cjs/react-dom-server.edge.development.js | 166 +- .../react-dom-server.edge.production.min.js | 253 +- .../cjs/react-dom-server.node.development.js | 166 +- .../react-dom-server.node.production.min.js | 263 +- .../react-dom/cjs/react-dom.development.js | 649 ++- .../react-dom/cjs/react-dom.production.min.js | 705 +-- .../react-dom/cjs/react-dom.profiling.min.js | 745 +-- .../next/src/compiled/react-dom/package.json | 4 +- .../cjs/react.development.js | 8 +- .../cjs/react.production.min.js | 10 +- .../cjs/react.shared-subset.development.js | 2 +- .../cjs/react.shared-subset.production.min.js | 2 +- .../package.json | 4 +- .../react-server-dom-webpack/package.json | 4 +- .../compiled/react/cjs/react.development.js | 2 +- .../react/cjs/react.production.min.js | 2 +- .../cjs/react.shared-subset.development.js | 2 +- .../cjs/react.shared-subset.production.min.js | 2 +- pnpm-lock.yaml | 5089 ++++++++++++++--- 52 files changed, 12155 insertions(+), 6292 deletions(-) diff --git a/package.json b/package.json index b8e618cf6b711..7e819d7d333d4 100644 --- a/package.json +++ b/package.json @@ -197,14 +197,14 @@ "random-seed": "0.3.0", "react": "18.2.0", "react-17": "npm:react@17.0.2", - "react-builtin": "npm:react@18.3.0-next-6eadbe0c4-20230425", - "react-experimental-builtin": "npm:react@0.0.0-experimental-6eadbe0c4-20230425", + "react-builtin": "npm:react@18.3.0-next-5dd90c562-20230502", + "react-experimental-builtin": "npm:react@0.0.0-experimental-5dd90c562-20230502", "react-dom": "18.2.0", "react-dom-17": "npm:react-dom@17.0.2", - "react-dom-builtin": "npm:react-dom@18.3.0-next-6eadbe0c4-20230425", - "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-6eadbe0c4-20230425", - "react-server-dom-webpack": "18.3.0-next-6eadbe0c4-20230425", - "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-6eadbe0c4-20230425", + "react-dom-builtin": "npm:react-dom@18.3.0-next-5dd90c562-20230502", + "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-5dd90c562-20230502", + "react-server-dom-webpack": "18.3.0-next-5dd90c562-20230502", + "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-5dd90c562-20230502", "react-ssr-prepass": "1.0.8", "react-virtualized": "9.22.3", "relay-compiler": "13.0.2", @@ -215,8 +215,8 @@ "rimraf": "3.0.2", "sass": "1.54.0", "satori": "0.4.4", - "scheduler-builtin": "npm:scheduler@0.24.0-next-6eadbe0c4-20230425", - "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-6eadbe0c4-20230425", + "scheduler-builtin": "npm:scheduler@0.24.0-next-5dd90c562-20230502", + "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-5dd90c562-20230502", "seedrandom": "3.0.5", "selenium-webdriver": "4.0.0-beta.4", "semver": "7.3.7", 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 0a4609978b1be..7577536820c21 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 = '18.3.0-experimental-6eadbe0c4-20230425'; +var ReactVersion = '18.3.0-experimental-5dd90c562-20230502'; var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; @@ -1827,6 +1827,16 @@ function describeDifferencesForPreinitOverScript(newProps, currentProps) { return description; } +// same object across all transitions. + +var sharedNotPendingObject = { + pending: false, + data: null, + method: null, + action: null +}; +var NotPending = Object.freeze(sharedNotPendingObject) ; + var ReactDOMSharedInternals = ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; var ReactDOMCurrentDispatcher = ReactDOMSharedInternals.Dispatcher; @@ -1865,6 +1875,7 @@ var startInlineScript = stringToPrecomputedChunk(''); var startScriptSrc = stringToPrecomputedChunk(''); /** @@ -1899,7 +1910,7 @@ function createResponseState$1(identifierPrefix, nonce, bootstrapScriptContent, var idPrefix = identifierPrefix === undefined ? '' : identifierPrefix; var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); var startScriptSrc = stringToPrecomputedChunk(''); /** @@ -1906,7 +1917,7 @@ function createResponseState$1(identifierPrefix, nonce, bootstrapScriptContent, var idPrefix = identifierPrefix === undefined ? '' : identifierPrefix; var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); var startScriptSrc = stringToPrecomputedChunk(''); /** @@ -1979,7 +1990,7 @@ function createResponseState(identifierPrefix, nonce, bootstrapScriptContent, bo var idPrefix = identifierPrefix === undefined ? '' : identifierPrefix; var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); var startScriptSrc = stringToPrecomputedChunk(''); /** @@ -1979,7 +1990,7 @@ function createResponseState(identifierPrefix, nonce, bootstrapScriptContent, bo var idPrefix = identifierPrefix === undefined ? '' : identifierPrefix; var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); var startScriptSrc = stringToPrecomputedChunk(''); /** @@ -2047,7 +2058,7 @@ function createResponseState(identifierPrefix, nonce, bootstrapScriptContent, bo var idPrefix = identifierPrefix === undefined ? '' : identifierPrefix; var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); var startScriptSrc = stringToPrecomputedChunk(''); /** @@ -1979,7 +1990,7 @@ function createResponseState(identifierPrefix, nonce, bootstrapScriptContent, bo var idPrefix = identifierPrefix === undefined ? '' : identifierPrefix; var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); var startScriptSrc = stringToPrecomputedChunk(''); /** @@ -1979,7 +1990,7 @@ function createResponseState(identifierPrefix, nonce, bootstrapScriptContent, bo var idPrefix = identifierPrefix === undefined ? '' : identifierPrefix; var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); var startScriptSrc = stringToPrecomputedChunk(''); /** @@ -2048,7 +2059,7 @@ function createResponseState(identifierPrefix, nonce, bootstrapScriptContent, bo var idPrefix = identifierPrefix === undefined ? '' : identifierPrefix; var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); var startScriptSrc = stringToPrecomputedChunk(''); /** @@ -1871,7 +1872,7 @@ function createResponseState$1(identifierPrefix, nonce, bootstrapScriptContent, var idPrefix = identifierPrefix === undefined ? '' : identifierPrefix; var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); var startScriptSrc = stringToPrecomputedChunk(''); /** @@ -1878,7 +1879,7 @@ function createResponseState$1(identifierPrefix, nonce, bootstrapScriptContent, var idPrefix = identifierPrefix === undefined ? '' : identifierPrefix; var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); var startScriptSrc = stringToPrecomputedChunk(''); /** @@ -1952,7 +1953,7 @@ function createResponseState(identifierPrefix, nonce, bootstrapScriptContent, bo var idPrefix = identifierPrefix === undefined ? '' : identifierPrefix; var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); var startScriptSrc = stringToPrecomputedChunk(''); /** @@ -1952,7 +1953,7 @@ function createResponseState(identifierPrefix, nonce, bootstrapScriptContent, bo var idPrefix = identifierPrefix === undefined ? '' : identifierPrefix; var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); var startScriptSrc = stringToPrecomputedChunk(''); /** @@ -2020,7 +2021,7 @@ function createResponseState(identifierPrefix, nonce, bootstrapScriptContent, bo var idPrefix = identifierPrefix === undefined ? '' : identifierPrefix; var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk('