diff --git a/package.json b/package.json index d26a7a75f3c47..f36d1a1fad029 100644 --- a/package.json +++ b/package.json @@ -197,18 +197,18 @@ "pretty-bytes": "5.3.0", "pretty-ms": "7.0.0", "random-seed": "0.3.0", - "react": "19.0.0-rc-81c5ff2e04-20240521", + "react": "19.0.0-rc-f994737d14-20240522", "react-17": "npm:react@17.0.2", - "react-builtin": "npm:react@19.0.0-rc-81c5ff2e04-20240521", - "react-dom": "19.0.0-rc-81c5ff2e04-20240521", + "react-builtin": "npm:react@19.0.0-rc-f994737d14-20240522", + "react-dom": "19.0.0-rc-f994737d14-20240522", "react-dom-17": "npm:react-dom@17.0.2", - "react-dom-builtin": "npm:react-dom@19.0.0-rc-81c5ff2e04-20240521", - "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-81c5ff2e04-20240521", - "react-experimental-builtin": "npm:react@0.0.0-experimental-81c5ff2e04-20240521", - "react-server-dom-turbopack": "19.0.0-rc-81c5ff2e04-20240521", - "react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-81c5ff2e04-20240521", - "react-server-dom-webpack": "19.0.0-rc-81c5ff2e04-20240521", - "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-81c5ff2e04-20240521", + "react-dom-builtin": "npm:react-dom@19.0.0-rc-f994737d14-20240522", + "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-f994737d14-20240522", + "react-experimental-builtin": "npm:react@0.0.0-experimental-f994737d14-20240522", + "react-server-dom-turbopack": "19.0.0-rc-f994737d14-20240522", + "react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-f994737d14-20240522", + "react-server-dom-webpack": "19.0.0-rc-f994737d14-20240522", + "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-f994737d14-20240522", "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-rc-81c5ff2e04-20240521", - "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-81c5ff2e04-20240521", + "scheduler-builtin": "npm:scheduler@0.25.0-rc-f994737d14-20240522", + "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-f994737d14-20240522", "seedrandom": "3.0.5", "semver": "7.3.7", "shell-quote": "1.7.3", @@ -253,10 +253,10 @@ "@babel/traverse": "7.22.5", "@types/react": "18.2.74", "@types/react-dom": "18.2.23", - "react": "19.0.0-rc-81c5ff2e04-20240521", - "react-dom": "19.0.0-rc-81c5ff2e04-20240521", - "react-is": "19.0.0-rc-81c5ff2e04-20240521", - "scheduler": "0.25.0-rc-81c5ff2e04-20240521" + "react": "19.0.0-rc-f994737d14-20240522", + "react-dom": "19.0.0-rc-f994737d14-20240522", + "react-is": "19.0.0-rc-f994737d14-20240522", + "scheduler": "0.25.0-rc-f994737d14-20240522" }, "engines": { "node": ">=18.17.0", diff --git a/packages/create-next-app/templates/index.ts b/packages/create-next-app/templates/index.ts index 893e053b818f2..f0f4da018ea25 100644 --- a/packages/create-next-app/templates/index.ts +++ b/packages/create-next-app/templates/index.ts @@ -184,8 +184,8 @@ export const installTemplate = async ({ * Default dependencies. */ dependencies: { - react: "19.0.0-rc-81c5ff2e04-20240521", - "react-dom": "19.0.0-rc-81c5ff2e04-20240521", + react: "19.0.0-rc-f994737d14-20240522", + "react-dom": "19.0.0-rc-f994737d14-20240522", next: version, }, devDependencies: {}, diff --git a/packages/next/package.json b/packages/next/package.json index 688adbb4e00c2..a7d3462f349c1 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-rc-81c5ff2e04-20240521", - "react-dom": "19.0.0-rc-81c5ff2e04-20240521", + "react": "19.0.0-rc-f994737d14-20240522", + "react-dom": "19.0.0-rc-f994737d14-20240522", "sass": "^1.3.0" }, "peerDependenciesMeta": { diff --git a/packages/next/src/client/components/router-reducer/reducers/server-action-reducer.ts b/packages/next/src/client/components/router-reducer/reducers/server-action-reducer.ts index 4784cfbdee5f7..99c8cfed99815 100644 --- a/packages/next/src/client/components/router-reducer/reducers/server-action-reducer.ts +++ b/packages/next/src/client/components/router-reducer/reducers/server-action-reducer.ts @@ -14,7 +14,7 @@ import { // import { createFromFetch } from 'react-server-dom-webpack/client' // // eslint-disable-next-line import/no-extraneous-dependencies // import { encodeReply } from 'react-server-dom-webpack/client' -const { createFromFetch, encodeReply } = ( +const { createFromFetch, createTemporaryReferenceSet, encodeReply } = ( !!process.env.NEXT_RUNTIME ? // eslint-disable-next-line import/no-extraneous-dependencies require('react-server-dom-webpack/client.edge') @@ -57,7 +57,10 @@ async function fetchServerAction( nextUrl: ReadonlyReducerState['nextUrl'], { actionId, actionArgs }: ServerActionAction ): Promise { - const body = await encodeReply(actionArgs) + const temporaryReferences = createTemporaryReferenceSet() + const body = await encodeReply(actionArgs, { + temporaryReferences: temporaryReferences, + }) const res = await fetch('', { method: 'POST', @@ -114,6 +117,7 @@ async function fetchServerAction( Promise.resolve(res), { callServer, + temporaryReferences, } ) 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 850c3b557baad..19341958181a4 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 @@ -29632,6 +29632,7 @@ function recursivelyTraverseAndDoubleInvokeEffectsInDEV(root, parentFiber, isInS function doubleInvokeEffectsOnFiber(root, fiber) { var shouldDoubleInvokePassiveEffects = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; + setIsStrictModeForDevtools(true); disappearLayoutEffects(fiber); if (shouldDoubleInvokePassiveEffects) { @@ -29643,6 +29644,8 @@ function doubleInvokeEffectsOnFiber(root, fiber) { if (shouldDoubleInvokePassiveEffects) { reconnectPassiveEffects(root, fiber, NoLanes, null, false); } + + setIsStrictModeForDevtools(false); } function doubleInvokeEffectsInDEVIfNecessary(root, fiber, parentIsInStrictMode) { @@ -36253,7 +36256,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition return root; } -var ReactVersion = '19.0.0-experimental-81c5ff2e04-20240521'; +var ReactVersion = '19.0.0-experimental-f994737d14-20240522'; // Might add PROFILE later. 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 c9c3cd0cc4763..21330a0f2e998 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 @@ -14760,7 +14760,7 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { var devToolsConfig$jscomp$inline_1631 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-experimental-81c5ff2e04-20240521", + version: "19.0.0-experimental-f994737d14-20240522", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2009 = { @@ -14790,7 +14790,7 @@ var internals$jscomp$inline_2009 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-experimental-81c5ff2e04-20240521" + reconcilerVersion: "19.0.0-experimental-f994737d14-20240522" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2010 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -14896,4 +14896,4 @@ exports.hydrateRoot = function (container, initialChildren, options) { listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; -exports.version = "19.0.0-experimental-81c5ff2e04-20240521"; +exports.version = "19.0.0-experimental-f994737d14-20240522"; 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 f33e383407e24..1794ce963f54c 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 @@ -29680,6 +29680,7 @@ function recursivelyTraverseAndDoubleInvokeEffectsInDEV(root, parentFiber, isInS function doubleInvokeEffectsOnFiber(root, fiber) { var shouldDoubleInvokePassiveEffects = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; + setIsStrictModeForDevtools(true); disappearLayoutEffects(fiber); if (shouldDoubleInvokePassiveEffects) { @@ -29691,6 +29692,8 @@ function doubleInvokeEffectsOnFiber(root, fiber) { if (shouldDoubleInvokePassiveEffects) { reconnectPassiveEffects(root, fiber, NoLanes, null, false); } + + setIsStrictModeForDevtools(false); } function doubleInvokeEffectsInDEVIfNecessary(root, fiber, parentIsInStrictMode) { @@ -36301,7 +36304,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition return root; } -var ReactVersion = '19.0.0-experimental-81c5ff2e04-20240521'; +var ReactVersion = '19.0.0-experimental-f994737d14-20240522'; function createPortal$1(children, containerInfo, // TODO: figure out the API for cross-renderer implementation. implementation) { 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 a81a8bc685d40..4225412266d00 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 @@ -15471,7 +15471,7 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { var devToolsConfig$jscomp$inline_1718 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-experimental-81c5ff2e04-20240521", + version: "19.0.0-experimental-f994737d14-20240522", rendererPackageName: "react-dom" }; (function (internals) { @@ -15514,7 +15514,7 @@ var devToolsConfig$jscomp$inline_1718 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-experimental-81c5ff2e04-20240521" + reconcilerVersion: "19.0.0-experimental-f994737d14-20240522" }); function noop() {} function getCrossOriginStringAs(as, input) { @@ -15768,7 +15768,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-experimental-81c5ff2e04-20240521"; +exports.version = "19.0.0-experimental-f994737d14-20240522"; "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 e2546c46a72bb..339467db37d6f 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-81c5ff2e04-20240521'; +var ReactVersion = '19.0.0-experimental-f994737d14-20240522'; var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.js index f04ad8bbb84d6..8b2cd2f8fb192 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.js @@ -5863,4 +5863,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-81c5ff2e04-20240521"; +exports.version = "19.0.0-experimental-f994737d14-20240522"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.development.js index 627a95d2e6b7f..8c7bec161fe51 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.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-81c5ff2e04-20240521'; +var ReactVersion = '19.0.0-experimental-f994737d14-20240522'; var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.js index 61d1bab843e64..47bc13350dd5c 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.js @@ -5959,4 +5959,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-81c5ff2e04-20240521"; +exports.version = "19.0.0-experimental-f994737d14-20240522"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.development.js index 06e193961744d..77c7f1c048f1d 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.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-81c5ff2e04-20240521'; +var ReactVersion = '19.0.0-experimental-f994737d14-20240522'; var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.js index c27bcd42a9615..e367fd47c8016 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.js @@ -6542,4 +6542,4 @@ exports.resume = function (children, postponedState, options) { startWork(request); }); }; -exports.version = "19.0.0-experimental-81c5ff2e04-20240521"; +exports.version = "19.0.0-experimental-f994737d14-20240522"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.bun.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.bun.production.js index 7d4a439093579..59b1bbe66ed29 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.bun.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.bun.production.js @@ -5951,4 +5951,4 @@ exports.renderToReadableStream = function (children, options) { safelyEmitEarlyPreloads(request, 0 === request.pendingRootTasks); }); }; -exports.version = "19.0.0-experimental-81c5ff2e04-20240521"; +exports.version = "19.0.0-experimental-f994737d14-20240522"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.development.js index d13d1c39f5c90..5fb20970ba557 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.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-81c5ff2e04-20240521'; +var ReactVersion = '19.0.0-experimental-f994737d14-20240522'; var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.production.js index ac8ae6cab0e19..0f2ef54871d0a 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.production.js @@ -6665,4 +6665,4 @@ exports.resume = function (children, postponedState, options) { startWork(request); }); }; -exports.version = "19.0.0-experimental-81c5ff2e04-20240521"; +exports.version = "19.0.0-experimental-f994737d14-20240522"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.development.js index c5d2e410e37f7..65fed8727ae8a 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.development.js @@ -21,7 +21,7 @@ var async_hooks = require('async_hooks'); var ReactDOM = require('react-dom'); var stream = require('stream'); -var ReactVersion = '19.0.0-experimental-81c5ff2e04-20240521'; +var ReactVersion = '19.0.0-experimental-f994737d14-20240522'; var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.production.js index 3a56a37b40e06..689b8cfd2ea58 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.production.js @@ -6537,4 +6537,4 @@ exports.resumeToPipeableStream = function (children, postponedState, options) { } }; }; -exports.version = "19.0.0-experimental-81c5ff2e04-20240521"; +exports.version = "19.0.0-experimental-f994737d14-20240522"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.development.js index 557e902107f14..8c0ccdfc8bffd 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.development.js @@ -30198,6 +30198,7 @@ function recursivelyTraverseAndDoubleInvokeEffectsInDEV(root, parentFiber, isInS function doubleInvokeEffectsOnFiber(root, fiber) { var shouldDoubleInvokePassiveEffects = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; + setIsStrictModeForDevtools(true); disappearLayoutEffects(fiber); if (shouldDoubleInvokePassiveEffects) { @@ -30209,6 +30210,8 @@ function doubleInvokeEffectsOnFiber(root, fiber) { if (shouldDoubleInvokePassiveEffects) { reconnectPassiveEffects(root, fiber, NoLanes, null, false); } + + setIsStrictModeForDevtools(false); } function doubleInvokeEffectsInDEVIfNecessary(root, fiber, parentIsInStrictMode) { @@ -36954,7 +36957,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition return root; } -var ReactVersion = '19.0.0-experimental-81c5ff2e04-20240521'; +var ReactVersion = '19.0.0-experimental-f994737d14-20240522'; // Might add PROFILE later. diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.production.js index aab248590b7fb..40c4c94a4b6e6 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.production.js @@ -15139,7 +15139,7 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { var devToolsConfig$jscomp$inline_1660 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-experimental-81c5ff2e04-20240521", + version: "19.0.0-experimental-f994737d14-20240522", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2043 = { @@ -15169,7 +15169,7 @@ var internals$jscomp$inline_2043 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-experimental-81c5ff2e04-20240521" + reconcilerVersion: "19.0.0-experimental-f994737d14-20240522" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2044 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -15426,4 +15426,4 @@ exports.observeVisibleRects = function ( } }; }; -exports.version = "19.0.0-experimental-81c5ff2e04-20240521"; +exports.version = "19.0.0-experimental-f994737d14-20240522"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.development.js index feb46fd379d14..d3ab89688167f 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.development.js @@ -126,7 +126,7 @@ var Internals = { findDOMNode: null }; -var ReactVersion = '19.0.0-experimental-81c5ff2e04-20240521'; +var ReactVersion = '19.0.0-experimental-f994737d14-20240522'; /** * HTML nodeType values that represent the type of the node diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.production.js index 6d26fc0053607..ca9953b78fd8c 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.production.js @@ -206,4 +206,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-experimental-81c5ff2e04-20240521"; +exports.version = "19.0.0-experimental-f994737d14-20240522"; diff --git a/packages/next/src/compiled/react-dom-experimental/package.json b/packages/next/src/compiled/react-dom-experimental/package.json index ad3ecbf08b9f6..9b7a1b007d981 100644 --- a/packages/next/src/compiled/react-dom-experimental/package.json +++ b/packages/next/src/compiled/react-dom-experimental/package.json @@ -72,10 +72,10 @@ "./package.json": "./package.json" }, "dependencies": { - "scheduler": "0.0.0-experimental-81c5ff2e04-20240521" + "scheduler": "0.0.0-experimental-f994737d14-20240522" }, "peerDependencies": { - "react": "0.0.0-experimental-81c5ff2e04-20240521" + "react": "0.0.0-experimental-f994737d14-20240522" }, "browser": { "./server.js": "./server.browser.js", diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-client.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-client.development.js index 6c31ab990562b..ded628fee6c57 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-client.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-client.development.js @@ -29423,6 +29423,7 @@ function recursivelyTraverseAndDoubleInvokeEffectsInDEV(root, parentFiber, isInS function doubleInvokeEffectsOnFiber(root, fiber) { var shouldDoubleInvokePassiveEffects = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; + setIsStrictModeForDevtools(true); disappearLayoutEffects(fiber); if (shouldDoubleInvokePassiveEffects) { @@ -29434,6 +29435,8 @@ function doubleInvokeEffectsOnFiber(root, fiber) { if (shouldDoubleInvokePassiveEffects) { reconnectPassiveEffects(root, fiber, NoLanes, null, false); } + + setIsStrictModeForDevtools(false); } function doubleInvokeEffectsInDEVIfNecessary(root, fiber, parentIsInStrictMode) { @@ -36044,7 +36047,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition return root; } -var ReactVersion = '19.0.0-rc-81c5ff2e04-20240521'; +var ReactVersion = '19.0.0-rc-f994737d14-20240522'; // Might add PROFILE later. diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-client.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-client.production.js index b8716d7dc74ba..01b6aa3878fa6 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-client.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-client.production.js @@ -14604,7 +14604,7 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { var devToolsConfig$jscomp$inline_1651 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-rc-81c5ff2e04-20240521", + version: "19.0.0-rc-f994737d14-20240522", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2029 = { @@ -14634,7 +14634,7 @@ var internals$jscomp$inline_2029 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-rc-81c5ff2e04-20240521" + reconcilerVersion: "19.0.0-rc-f994737d14-20240522" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2030 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -14740,4 +14740,4 @@ exports.hydrateRoot = function (container, initialChildren, options) { listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; -exports.version = "19.0.0-rc-81c5ff2e04-20240521"; +exports.version = "19.0.0-rc-f994737d14-20240522"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.development.js index 4fdd1ae4d9186..360edd0be2c35 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.development.js @@ -29471,6 +29471,7 @@ function recursivelyTraverseAndDoubleInvokeEffectsInDEV(root, parentFiber, isInS function doubleInvokeEffectsOnFiber(root, fiber) { var shouldDoubleInvokePassiveEffects = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; + setIsStrictModeForDevtools(true); disappearLayoutEffects(fiber); if (shouldDoubleInvokePassiveEffects) { @@ -29482,6 +29483,8 @@ function doubleInvokeEffectsOnFiber(root, fiber) { if (shouldDoubleInvokePassiveEffects) { reconnectPassiveEffects(root, fiber, NoLanes, null, false); } + + setIsStrictModeForDevtools(false); } function doubleInvokeEffectsInDEVIfNecessary(root, fiber, parentIsInStrictMode) { @@ -36092,7 +36095,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition return root; } -var ReactVersion = '19.0.0-rc-81c5ff2e04-20240521'; +var ReactVersion = '19.0.0-rc-f994737d14-20240522'; function createPortal$1(children, containerInfo, // TODO: figure out the API for cross-renderer implementation. implementation) { diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.profiling.js b/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.profiling.js index 51b99f027cee7..7ac02445e675f 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.profiling.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.profiling.js @@ -15315,7 +15315,7 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { var devToolsConfig$jscomp$inline_1738 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-rc-81c5ff2e04-20240521", + version: "19.0.0-rc-f994737d14-20240522", rendererPackageName: "react-dom" }; (function (internals) { @@ -15358,7 +15358,7 @@ var devToolsConfig$jscomp$inline_1738 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-rc-81c5ff2e04-20240521" + reconcilerVersion: "19.0.0-rc-f994737d14-20240522" }); function noop() {} function getCrossOriginStringAs(as, input) { @@ -15612,7 +15612,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-rc-81c5ff2e04-20240521"; +exports.version = "19.0.0-rc-f994737d14-20240522"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.development.js index 6203eb0d2aa94..4443f38bba1a3 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.development.js +++ b/packages/next/src/compiled/react-dom/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"); var ReactDOM = require('react-dom'); -var ReactVersion = '19.0.0-rc-81c5ff2e04-20240521'; +var ReactVersion = '19.0.0-rc-f994737d14-20240522'; var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.production.js index fbadd66fdfabc..a58cdc28b2cba 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.production.js @@ -5469,4 +5469,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-rc-81c5ff2e04-20240521"; +exports.version = "19.0.0-rc-f994737d14-20240522"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.development.js index f457a90dbab65..d124319b49fdf 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.development.js @@ -17,7 +17,7 @@ if (process.env.NODE_ENV !== "production") { var React = require("next/dist/compiled/react"); var ReactDOM = require('react-dom'); -var ReactVersion = '19.0.0-rc-81c5ff2e04-20240521'; +var ReactVersion = '19.0.0-rc-f994737d14-20240522'; var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.production.js index 4a8db7e9e6a72..e3d194bbaaa61 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.production.js @@ -5551,4 +5551,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-rc-81c5ff2e04-20240521"; +exports.version = "19.0.0-rc-f994737d14-20240522"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.development.js index 4fa8b30577738..a639b50361ece 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.development.js @@ -17,7 +17,7 @@ if (process.env.NODE_ENV !== "production") { var React = require("next/dist/compiled/react"); var ReactDOM = require('react-dom'); -var ReactVersion = '19.0.0-rc-81c5ff2e04-20240521'; +var ReactVersion = '19.0.0-rc-f994737d14-20240522'; var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.production.js index 6ccc12b12a952..087eb542b1749 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.production.js @@ -5804,4 +5804,4 @@ exports.renderToReadableStream = function (children, options) { safelyEmitEarlyPreloads(request, 0 === request.pendingRootTasks); }); }; -exports.version = "19.0.0-rc-81c5ff2e04-20240521"; +exports.version = "19.0.0-rc-f994737d14-20240522"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.bun.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.bun.production.js index 5b570cc60baed..f6e28b3430499 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.bun.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.bun.production.js @@ -5517,4 +5517,4 @@ exports.renderToReadableStream = function (children, options) { safelyEmitEarlyPreloads(request, 0 === request.pendingRootTasks); }); }; -exports.version = "19.0.0-rc-81c5ff2e04-20240521"; +exports.version = "19.0.0-rc-f994737d14-20240522"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.development.js index a23ae91b18c53..3b58a2138f8a6 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.development.js @@ -17,7 +17,7 @@ if (process.env.NODE_ENV !== "production") { var React = require("next/dist/compiled/react"); var ReactDOM = require('react-dom'); -var ReactVersion = '19.0.0-rc-81c5ff2e04-20240521'; +var ReactVersion = '19.0.0-rc-f994737d14-20240522'; var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.production.js index 80f0449daa4af..1776d631e4caf 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.production.js @@ -5916,4 +5916,4 @@ exports.renderToReadableStream = function (children, options) { startWork(request); }); }; -exports.version = "19.0.0-rc-81c5ff2e04-20240521"; +exports.version = "19.0.0-rc-f994737d14-20240522"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.development.js index 8240a025899ea..c9c26bc079a6d 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.development.js @@ -20,7 +20,7 @@ var crypto = require('crypto'); var async_hooks = require('async_hooks'); var ReactDOM = require('react-dom'); -var ReactVersion = '19.0.0-rc-81c5ff2e04-20240521'; +var ReactVersion = '19.0.0-rc-f994737d14-20240522'; var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.production.js index 56dde6de9103a..d0729c3adbdba 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.production.js @@ -5779,4 +5779,4 @@ exports.renderToPipeableStream = function (children, options) { } }; }; -exports.version = "19.0.0-rc-81c5ff2e04-20240521"; +exports.version = "19.0.0-rc-f994737d14-20240522"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom.development.js index d238001fa58f8..5ad4d4d160ec3 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom.development.js @@ -126,7 +126,7 @@ var Internals = { findDOMNode: null }; -var ReactVersion = '19.0.0-rc-81c5ff2e04-20240521'; +var ReactVersion = '19.0.0-rc-f994737d14-20240522'; /** * HTML nodeType values that represent the type of the node diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom.production.js index e84c748f3e5f7..4a002856f0ff7 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom.production.js @@ -206,4 +206,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-rc-81c5ff2e04-20240521"; +exports.version = "19.0.0-rc-f994737d14-20240522"; diff --git a/packages/next/src/compiled/react-dom/package.json b/packages/next/src/compiled/react-dom/package.json index e68a79ede31ed..39747c5e06b4c 100644 --- a/packages/next/src/compiled/react-dom/package.json +++ b/packages/next/src/compiled/react-dom/package.json @@ -67,10 +67,10 @@ "./package.json": "./package.json" }, "dependencies": { - "scheduler": "0.25.0-rc-81c5ff2e04-20240521" + "scheduler": "0.25.0-rc-f994737d14-20240522" }, "peerDependencies": { - "react": "19.0.0-rc-81c5ff2e04-20240521" + "react": "19.0.0-rc-f994737d14-20240522" }, "browser": { "./server.js": "./server.browser.js", diff --git a/packages/next/src/compiled/react-experimental/cjs/react.development.js b/packages/next/src/compiled/react-experimental/cjs/react.development.js index 7b7e048e5a60a..bef51fda7fa22 100644 --- a/packages/next/src/compiled/react-experimental/cjs/react.development.js +++ b/packages/next/src/compiled/react-experimental/cjs/react.development.js @@ -111,7 +111,7 @@ function printWarning(level, format, args) { } } -var ReactVersion = '19.0.0-experimental-81c5ff2e04-20240521'; +var ReactVersion = '19.0.0-experimental-f994737d14-20240522'; // ----------------------------------------------------------------------------- diff --git a/packages/next/src/compiled/react-experimental/cjs/react.production.js b/packages/next/src/compiled/react-experimental/cjs/react.production.js index 937a7a88a55bc..f5232fcd7802f 100644 --- a/packages/next/src/compiled/react-experimental/cjs/react.production.js +++ b/packages/next/src/compiled/react-experimental/cjs/react.production.js @@ -559,4 +559,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-experimental-81c5ff2e04-20240521"; +exports.version = "19.0.0-experimental-f994737d14-20240522"; diff --git a/packages/next/src/compiled/react-experimental/cjs/react.react-server.development.js b/packages/next/src/compiled/react-experimental/cjs/react.react-server.development.js index 29dcd9561fb69..964d8fd206620 100644 --- a/packages/next/src/compiled/react-experimental/cjs/react.react-server.development.js +++ b/packages/next/src/compiled/react-experimental/cjs/react.react-server.development.js @@ -2234,7 +2234,7 @@ function postpone(reason) { throw postponeInstance; } -var ReactVersion = '19.0.0-experimental-81c5ff2e04-20240521'; +var ReactVersion = '19.0.0-experimental-f994737d14-20240522'; var getPrototypeOf = Object.getPrototypeOf; diff --git a/packages/next/src/compiled/react-experimental/cjs/react.react-server.production.js b/packages/next/src/compiled/react-experimental/cjs/react.react-server.production.js index 68a5664a2ec7d..b55ffb0dab070 100644 --- a/packages/next/src/compiled/react-experimental/cjs/react.react-server.production.js +++ b/packages/next/src/compiled/react-experimental/cjs/react.react-server.production.js @@ -564,4 +564,4 @@ exports.useId = function () { exports.useMemo = function (create, deps) { return ReactSharedInternals.H.useMemo(create, deps); }; -exports.version = "19.0.0-experimental-81c5ff2e04-20240521"; +exports.version = "19.0.0-experimental-f994737d14-20240522"; diff --git a/packages/next/src/compiled/react-is/package.json b/packages/next/src/compiled/react-is/package.json index 976411e70de29..3bf5d04aba4d7 100644 --- a/packages/next/src/compiled/react-is/package.json +++ b/packages/next/src/compiled/react-is/package.json @@ -1,6 +1,6 @@ { "name": "react-is", - "version": "19.0.0-rc-81c5ff2e04-20240521", + "version": "19.0.0-rc-f994737d14-20240522", "description": "Brand checking of React Elements.", "main": "index.js", "sideEffects": false, diff --git a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.development.js b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.development.js index a52f3d07c082b..930aaa8d87473 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.development.js +++ b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.development.js @@ -5692,8 +5692,8 @@ function renderToPipeableStream(model, turbopackMap, options) { }; } -function decodeReplyFromBusboy(busboyStream, turbopackMap) { - var response = createResponse(turbopackMap, ''); +function decodeReplyFromBusboy(busboyStream, turbopackMap, options) { + var response = createResponse(turbopackMap, '', options ? options.temporaryReferences : undefined); var pendingFiles = 0; var queuedFields = []; busboyStream.on('field', function (name, value) { diff --git a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.production.js b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.production.js index 7b62ab8ce58c7..871ee84c27c15 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.production.js +++ b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.production.js @@ -2750,8 +2750,12 @@ exports.decodeReply = function (body, turbopackMap, options) { close(body); return turbopackMap; }; -exports.decodeReplyFromBusboy = function (busboyStream, turbopackMap) { - var response = createResponse(turbopackMap, ""), +exports.decodeReplyFromBusboy = function (busboyStream, turbopackMap, options) { + var response = createResponse( + turbopackMap, + "", + options ? options.temporaryReferences : void 0 + ), pendingFiles = 0, queuedFields = []; busboyStream.on("field", function (name, value) { diff --git a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.unbundled.development.js b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.unbundled.development.js index a70687fd9bb8b..0691f8e20a7e1 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.unbundled.development.js +++ b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.unbundled.development.js @@ -5621,8 +5621,8 @@ function renderToPipeableStream(model, turbopackMap, options) { }; } -function decodeReplyFromBusboy(busboyStream, turbopackMap) { - var response = createResponse(turbopackMap, ''); +function decodeReplyFromBusboy(busboyStream, turbopackMap, options) { + var response = createResponse(turbopackMap, '', options ? options.temporaryReferences : undefined); var pendingFiles = 0; var queuedFields = []; busboyStream.on('field', function (name, value) { diff --git a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.unbundled.production.js b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.unbundled.production.js index 8265c99a7ce84..0118e63fb8587 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.unbundled.production.js +++ b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.unbundled.production.js @@ -2719,8 +2719,12 @@ exports.decodeReply = function (body, turbopackMap, options) { close(body); return turbopackMap; }; -exports.decodeReplyFromBusboy = function (busboyStream, turbopackMap) { - var response = createResponse(turbopackMap, ""), +exports.decodeReplyFromBusboy = function (busboyStream, turbopackMap, options) { + var response = createResponse( + turbopackMap, + "", + options ? options.temporaryReferences : void 0 + ), pendingFiles = 0, queuedFields = []; busboyStream.on("field", function (name, value) { diff --git a/packages/next/src/compiled/react-server-dom-turbopack-experimental/package.json b/packages/next/src/compiled/react-server-dom-turbopack-experimental/package.json index 536407cc88625..5a784ad758444 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack-experimental/package.json +++ b/packages/next/src/compiled/react-server-dom-turbopack-experimental/package.json @@ -47,7 +47,7 @@ "neo-async": "^2.6.1" }, "peerDependencies": { - "react": "0.0.0-experimental-81c5ff2e04-20240521", - "react-dom": "0.0.0-experimental-81c5ff2e04-20240521" + "react": "0.0.0-experimental-f994737d14-20240522", + "react-dom": "0.0.0-experimental-f994737d14-20240522" } } \ No newline at end of file diff --git a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.development.js b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.development.js index b26e69b50fa20..278117dcd33d2 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.development.js +++ b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.development.js @@ -5321,8 +5321,8 @@ function renderToPipeableStream(model, turbopackMap, options) { }; } -function decodeReplyFromBusboy(busboyStream, turbopackMap) { - var response = createResponse(turbopackMap, ''); +function decodeReplyFromBusboy(busboyStream, turbopackMap, options) { + var response = createResponse(turbopackMap, '', options ? options.temporaryReferences : undefined); var pendingFiles = 0; var queuedFields = []; busboyStream.on('field', function (name, value) { diff --git a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.production.js b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.production.js index afad370b0b4a9..011ba3e95ad06 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.production.js +++ b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.production.js @@ -2618,8 +2618,12 @@ exports.decodeReply = function (body, turbopackMap, options) { close(body); return turbopackMap; }; -exports.decodeReplyFromBusboy = function (busboyStream, turbopackMap) { - var response = createResponse(turbopackMap, ""), +exports.decodeReplyFromBusboy = function (busboyStream, turbopackMap, options) { + var response = createResponse( + turbopackMap, + "", + options ? options.temporaryReferences : void 0 + ), pendingFiles = 0, queuedFields = []; busboyStream.on("field", function (name, value) { diff --git a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.development.js b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.development.js index 736bf5fa14070..895782c29c6b1 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.development.js +++ b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.development.js @@ -5250,8 +5250,8 @@ function renderToPipeableStream(model, turbopackMap, options) { }; } -function decodeReplyFromBusboy(busboyStream, turbopackMap) { - var response = createResponse(turbopackMap, ''); +function decodeReplyFromBusboy(busboyStream, turbopackMap, options) { + var response = createResponse(turbopackMap, '', options ? options.temporaryReferences : undefined); var pendingFiles = 0; var queuedFields = []; busboyStream.on('field', function (name, value) { diff --git a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.production.js b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.production.js index db01abab348de..c7610b788fe28 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.production.js +++ b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.production.js @@ -2587,8 +2587,12 @@ exports.decodeReply = function (body, turbopackMap, options) { close(body); return turbopackMap; }; -exports.decodeReplyFromBusboy = function (busboyStream, turbopackMap) { - var response = createResponse(turbopackMap, ""), +exports.decodeReplyFromBusboy = function (busboyStream, turbopackMap, options) { + var response = createResponse( + turbopackMap, + "", + options ? options.temporaryReferences : void 0 + ), pendingFiles = 0, queuedFields = []; busboyStream.on("field", function (name, value) { diff --git a/packages/next/src/compiled/react-server-dom-turbopack/package.json b/packages/next/src/compiled/react-server-dom-turbopack/package.json index 556f184fd0b27..a74168ac62e9b 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack/package.json +++ b/packages/next/src/compiled/react-server-dom-turbopack/package.json @@ -47,7 +47,7 @@ "neo-async": "^2.6.1" }, "peerDependencies": { - "react": "19.0.0-rc-81c5ff2e04-20240521", - "react-dom": "19.0.0-rc-81c5ff2e04-20240521" + "react": "19.0.0-rc-f994737d14-20240522", + "react-dom": "19.0.0-rc-f994737d14-20240522" } } \ No newline at end of file diff --git a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.development.js b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.development.js index f67c5f93e95d7..169c88a2a44ae 100644 --- a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.development.js +++ b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.development.js @@ -5702,8 +5702,8 @@ function renderToPipeableStream(model, webpackMap, options) { }; } -function decodeReplyFromBusboy(busboyStream, webpackMap) { - var response = createResponse(webpackMap, ''); +function decodeReplyFromBusboy(busboyStream, webpackMap, options) { + var response = createResponse(webpackMap, '', options ? options.temporaryReferences : undefined); var pendingFiles = 0; var queuedFields = []; busboyStream.on('field', function (name, value) { diff --git a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.production.js b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.production.js index 796f25d34fd85..ff7624266829d 100644 --- a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.production.js +++ b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.production.js @@ -2751,8 +2751,12 @@ exports.decodeReply = function (body, webpackMap, options) { close(body); return webpackMap; }; -exports.decodeReplyFromBusboy = function (busboyStream, webpackMap) { - var response = createResponse(webpackMap, ""), +exports.decodeReplyFromBusboy = function (busboyStream, webpackMap, options) { + var response = createResponse( + webpackMap, + "", + options ? options.temporaryReferences : void 0 + ), pendingFiles = 0, queuedFields = []; busboyStream.on("field", function (name, value) { diff --git a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.unbundled.development.js b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.unbundled.development.js index 242e80dd8c078..c17c3dcd4630e 100644 --- a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.unbundled.development.js +++ b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.unbundled.development.js @@ -5629,8 +5629,8 @@ function renderToPipeableStream(model, webpackMap, options) { }; } -function decodeReplyFromBusboy(busboyStream, webpackMap) { - var response = createResponse(webpackMap, ''); +function decodeReplyFromBusboy(busboyStream, webpackMap, options) { + var response = createResponse(webpackMap, '', options ? options.temporaryReferences : undefined); var pendingFiles = 0; var queuedFields = []; busboyStream.on('field', function (name, value) { diff --git a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.unbundled.production.js b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.unbundled.production.js index 0cd71f763ea6f..9abbad1e864e3 100644 --- a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.unbundled.production.js +++ b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.unbundled.production.js @@ -2719,8 +2719,12 @@ exports.decodeReply = function (body, webpackMap, options) { close(body); return webpackMap; }; -exports.decodeReplyFromBusboy = function (busboyStream, webpackMap) { - var response = createResponse(webpackMap, ""), +exports.decodeReplyFromBusboy = function (busboyStream, webpackMap, options) { + var response = createResponse( + webpackMap, + "", + options ? options.temporaryReferences : void 0 + ), pendingFiles = 0, queuedFields = []; busboyStream.on("field", function (name, value) { diff --git a/packages/next/src/compiled/react-server-dom-webpack-experimental/package.json b/packages/next/src/compiled/react-server-dom-webpack-experimental/package.json index 862001aad3a34..373114628f035 100644 --- a/packages/next/src/compiled/react-server-dom-webpack-experimental/package.json +++ b/packages/next/src/compiled/react-server-dom-webpack-experimental/package.json @@ -46,8 +46,8 @@ "neo-async": "^2.6.1" }, "peerDependencies": { - "react": "0.0.0-experimental-81c5ff2e04-20240521", - "react-dom": "0.0.0-experimental-81c5ff2e04-20240521", + "react": "0.0.0-experimental-f994737d14-20240522", + "react-dom": "0.0.0-experimental-f994737d14-20240522", "webpack": "^5.59.0" } } \ No newline at end of file diff --git a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.development.js b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.development.js index 7d45a2098824b..2a0a2c4818787 100644 --- a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.development.js +++ b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.development.js @@ -5331,8 +5331,8 @@ function renderToPipeableStream(model, webpackMap, options) { }; } -function decodeReplyFromBusboy(busboyStream, webpackMap) { - var response = createResponse(webpackMap, ''); +function decodeReplyFromBusboy(busboyStream, webpackMap, options) { + var response = createResponse(webpackMap, '', options ? options.temporaryReferences : undefined); var pendingFiles = 0; var queuedFields = []; busboyStream.on('field', function (name, value) { diff --git a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.production.js b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.production.js index 3f0ffd06fe87a..49ab30866c82e 100644 --- a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.production.js +++ b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.production.js @@ -2619,8 +2619,12 @@ exports.decodeReply = function (body, webpackMap, options) { close(body); return webpackMap; }; -exports.decodeReplyFromBusboy = function (busboyStream, webpackMap) { - var response = createResponse(webpackMap, ""), +exports.decodeReplyFromBusboy = function (busboyStream, webpackMap, options) { + var response = createResponse( + webpackMap, + "", + options ? options.temporaryReferences : void 0 + ), pendingFiles = 0, queuedFields = []; busboyStream.on("field", function (name, value) { diff --git a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.unbundled.development.js b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.unbundled.development.js index 3744eac8ff14b..6d3d986846890 100644 --- a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.unbundled.development.js +++ b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.unbundled.development.js @@ -5258,8 +5258,8 @@ function renderToPipeableStream(model, webpackMap, options) { }; } -function decodeReplyFromBusboy(busboyStream, webpackMap) { - var response = createResponse(webpackMap, ''); +function decodeReplyFromBusboy(busboyStream, webpackMap, options) { + var response = createResponse(webpackMap, '', options ? options.temporaryReferences : undefined); var pendingFiles = 0; var queuedFields = []; busboyStream.on('field', function (name, value) { diff --git a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.unbundled.production.js b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.unbundled.production.js index 797f4b5161d77..c1eab5d2118f4 100644 --- a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.unbundled.production.js +++ b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.unbundled.production.js @@ -2587,8 +2587,12 @@ exports.decodeReply = function (body, webpackMap, options) { close(body); return webpackMap; }; -exports.decodeReplyFromBusboy = function (busboyStream, webpackMap) { - var response = createResponse(webpackMap, ""), +exports.decodeReplyFromBusboy = function (busboyStream, webpackMap, options) { + var response = createResponse( + webpackMap, + "", + options ? options.temporaryReferences : void 0 + ), pendingFiles = 0, queuedFields = []; busboyStream.on("field", function (name, value) { diff --git a/packages/next/src/compiled/react-server-dom-webpack/package.json b/packages/next/src/compiled/react-server-dom-webpack/package.json index a6195bd18243b..4ca5f79dbe1cc 100644 --- a/packages/next/src/compiled/react-server-dom-webpack/package.json +++ b/packages/next/src/compiled/react-server-dom-webpack/package.json @@ -46,8 +46,8 @@ "neo-async": "^2.6.1" }, "peerDependencies": { - "react": "19.0.0-rc-81c5ff2e04-20240521", - "react-dom": "19.0.0-rc-81c5ff2e04-20240521", + "react": "19.0.0-rc-f994737d14-20240522", + "react-dom": "19.0.0-rc-f994737d14-20240522", "webpack": "^5.59.0" } } \ No newline at end of file diff --git a/packages/next/src/compiled/react/cjs/react.development.js b/packages/next/src/compiled/react/cjs/react.development.js index d75437ad16b48..f0f8f81ab6b0f 100644 --- a/packages/next/src/compiled/react/cjs/react.development.js +++ b/packages/next/src/compiled/react/cjs/react.development.js @@ -20,7 +20,7 @@ if ( ) { __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); } -var ReactVersion = '19.0.0-rc-81c5ff2e04-20240521'; +var ReactVersion = '19.0.0-rc-f994737d14-20240522'; // ----------------------------------------------------------------------------- diff --git a/packages/next/src/compiled/react/cjs/react.production.js b/packages/next/src/compiled/react/cjs/react.production.js index a3d4e276110d3..53e534a831e61 100644 --- a/packages/next/src/compiled/react/cjs/react.production.js +++ b/packages/next/src/compiled/react/cjs/react.production.js @@ -536,4 +536,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-rc-81c5ff2e04-20240521"; +exports.version = "19.0.0-rc-f994737d14-20240522"; diff --git a/packages/next/src/compiled/react/cjs/react.react-server.development.js b/packages/next/src/compiled/react/cjs/react.react-server.development.js index d2ceabeef2b4f..dee3602a24fdd 100644 --- a/packages/next/src/compiled/react/cjs/react.react-server.development.js +++ b/packages/next/src/compiled/react/cjs/react.react-server.development.js @@ -2158,7 +2158,7 @@ function warnAboutTransitionSubscriptions(prevTransition, currentTransition) { function noop() {} -var ReactVersion = '19.0.0-rc-81c5ff2e04-20240521'; +var ReactVersion = '19.0.0-rc-f994737d14-20240522'; var Children = { map: mapChildren, diff --git a/packages/next/src/compiled/react/cjs/react.react-server.production.js b/packages/next/src/compiled/react/cjs/react.react-server.production.js index d7a0610902632..68feab1508dd7 100644 --- a/packages/next/src/compiled/react/cjs/react.react-server.production.js +++ b/packages/next/src/compiled/react/cjs/react.react-server.production.js @@ -476,4 +476,4 @@ exports.useId = function () { exports.useMemo = function (create, deps) { return ReactSharedInternals.H.useMemo(create, deps); }; -exports.version = "19.0.0-rc-81c5ff2e04-20240521"; +exports.version = "19.0.0-rc-f994737d14-20240522"; diff --git a/packages/next/src/compiled/unistore/unistore.js b/packages/next/src/compiled/unistore/unistore.js index 2a934c597e1fd..f7a217ba8da58 100644 --- a/packages/next/src/compiled/unistore/unistore.js +++ b/packages/next/src/compiled/unistore/unistore.js @@ -1 +1 @@ -(()=>{var t={710:t=>{function n(t,i){for(var _ in i)t[_]=i[_];return t}t.exports=function(t){var i=[];function u(t){for(var _=[],a=0;a{var t={121:t=>{function n(t,i){for(var _ in i)t[_]=i[_];return t}t.exports=function(t){var i=[];function u(t){for(var _=[],a=0;a + ) {} public async render(children: JSX.Element): Promise { const stream = await this.renderToReadableStream(children, this.options) diff --git a/packages/next/src/server/app-render/use-flight-response.tsx b/packages/next/src/server/app-render/use-flight-response.tsx index 6069a71aff358..4c4667e436521 100644 --- a/packages/next/src/server/app-render/use-flight-response.tsx +++ b/packages/next/src/server/app-render/use-flight-response.tsx @@ -90,7 +90,7 @@ export async function flightRenderComplete( export function createInlinedDataReadableStream( flightStream: ReadableStream, nonce: string | undefined, - formState: unknown | null + formState: unknown | null, ): ReadableStream { const startScriptTag = nonce ? `