From 5e5acd9a08682a8b514b0b0ed4513a2f767939b6 Mon Sep 17 00:00:00 2001 From: Zack Tanner <1939140+ztanner@users.noreply.github.com> Date: Tue, 21 May 2024 17:10:54 -0700 Subject: [PATCH] Update React from 8f3c0525f9 to 81c5ff2e04 --- package.json | 32 +- packages/create-next-app/templates/index.ts | 4 +- packages/next/package.json | 4 +- .../cjs/react-dom-client.development.js | 36 +- .../cjs/react-dom-client.production.js | 111 +++---- .../cjs/react-dom-profiling.development.js | 36 +- .../cjs/react-dom-profiling.profiling.js | 97 +++--- ...t-dom-server-legacy.browser.development.js | 2 +- ...ct-dom-server-legacy.browser.production.js | 2 +- ...eact-dom-server-legacy.node.development.js | 2 +- ...react-dom-server-legacy.node.production.js | 2 +- .../react-dom-server.browser.development.js | 2 +- .../react-dom-server.browser.production.js | 2 +- .../cjs/react-dom-server.bun.production.js | 2 +- .../cjs/react-dom-server.edge.development.js | 2 +- .../cjs/react-dom-server.edge.production.js | 2 +- .../cjs/react-dom-server.node.development.js | 2 +- .../cjs/react-dom-server.node.production.js | 2 +- .../react-dom-unstable_testing.development.js | 36 +- .../react-dom-unstable_testing.production.js | 111 +++---- .../cjs/react-dom.development.js | 2 +- .../cjs/react-dom.production.js | 2 +- .../react-dom-experimental/package.json | 4 +- .../cjs/react-dom-client.development.js | 36 +- .../cjs/react-dom-client.production.js | 111 +++---- .../cjs/react-dom-profiling.development.js | 36 +- .../cjs/react-dom-profiling.profiling.js | 97 +++--- ...t-dom-server-legacy.browser.development.js | 2 +- ...ct-dom-server-legacy.browser.production.js | 2 +- ...eact-dom-server-legacy.node.development.js | 2 +- ...react-dom-server-legacy.node.production.js | 2 +- .../react-dom-server.browser.development.js | 2 +- .../react-dom-server.browser.production.js | 2 +- .../cjs/react-dom-server.bun.production.js | 2 +- .../cjs/react-dom-server.edge.development.js | 2 +- .../cjs/react-dom-server.edge.production.js | 2 +- .../cjs/react-dom-server.node.development.js | 2 +- .../cjs/react-dom-server.node.production.js | 2 +- .../react-dom/cjs/react-dom.development.js | 2 +- .../react-dom/cjs/react-dom.production.js | 2 +- .../next/src/compiled/react-dom/package.json | 4 +- .../cjs/react.development.js | 2 +- .../cjs/react.production.js | 2 +- .../cjs/react.react-server.development.js | 2 +- .../cjs/react.react-server.production.js | 2 +- .../next/src/compiled/react-is/package.json | 2 +- ...om-turbopack-client.browser.development.js | 24 +- ...dom-turbopack-client.browser.production.js | 29 +- ...r-dom-turbopack-client.edge.development.js | 24 +- ...er-dom-turbopack-client.edge.production.js | 29 +- ...r-dom-turbopack-client.node.development.js | 24 +- ...er-dom-turbopack-client.node.production.js | 29 +- ...opack-client.node.unbundled.development.js | 24 +- ...bopack-client.node.unbundled.production.js | 29 +- ...om-turbopack-server.browser.development.js | 20 +- ...dom-turbopack-server.browser.production.js | 21 +- ...r-dom-turbopack-server.edge.development.js | 20 +- ...er-dom-turbopack-server.edge.production.js | 21 +- ...r-dom-turbopack-server.node.development.js | 20 +- ...er-dom-turbopack-server.node.production.js | 27 +- ...opack-server.node.unbundled.development.js | 20 +- ...bopack-server.node.unbundled.production.js | 27 +- .../package.json | 4 +- ...om-turbopack-client.browser.development.js | 24 +- ...dom-turbopack-client.browser.production.js | 29 +- ...r-dom-turbopack-client.edge.development.js | 24 +- ...er-dom-turbopack-client.edge.production.js | 29 +- ...r-dom-turbopack-client.node.development.js | 24 +- ...er-dom-turbopack-client.node.production.js | 29 +- ...opack-client.node.unbundled.development.js | 24 +- ...bopack-client.node.unbundled.production.js | 29 +- ...om-turbopack-server.browser.development.js | 20 +- ...dom-turbopack-server.browser.production.js | 21 +- ...r-dom-turbopack-server.edge.development.js | 20 +- ...er-dom-turbopack-server.edge.production.js | 21 +- ...r-dom-turbopack-server.node.development.js | 20 +- ...er-dom-turbopack-server.node.production.js | 27 +- ...opack-server.node.unbundled.development.js | 20 +- ...bopack-server.node.unbundled.production.js | 27 +- .../react-server-dom-turbopack/package.json | 4 +- ...-dom-webpack-client.browser.development.js | 24 +- ...r-dom-webpack-client.browser.production.js | 29 +- ...ver-dom-webpack-client.edge.development.js | 24 +- ...rver-dom-webpack-client.edge.production.js | 29 +- ...ver-dom-webpack-client.node.development.js | 24 +- ...rver-dom-webpack-client.node.production.js | 29 +- ...bpack-client.node.unbundled.development.js | 24 +- ...ebpack-client.node.unbundled.production.js | 29 +- ...-dom-webpack-server.browser.development.js | 20 +- ...r-dom-webpack-server.browser.production.js | 21 +- ...ver-dom-webpack-server.edge.development.js | 20 +- ...rver-dom-webpack-server.edge.production.js | 21 +- ...ver-dom-webpack-server.node.development.js | 20 +- ...rver-dom-webpack-server.node.production.js | 27 +- ...bpack-server.node.unbundled.development.js | 20 +- ...ebpack-server.node.unbundled.production.js | 27 +- .../package.json | 4 +- ...-dom-webpack-client.browser.development.js | 24 +- ...r-dom-webpack-client.browser.production.js | 29 +- ...ver-dom-webpack-client.edge.development.js | 24 +- ...rver-dom-webpack-client.edge.production.js | 29 +- ...ver-dom-webpack-client.node.development.js | 24 +- ...rver-dom-webpack-client.node.production.js | 29 +- ...bpack-client.node.unbundled.development.js | 24 +- ...ebpack-client.node.unbundled.production.js | 29 +- ...-dom-webpack-server.browser.development.js | 20 +- ...r-dom-webpack-server.browser.production.js | 21 +- ...ver-dom-webpack-server.edge.development.js | 20 +- ...rver-dom-webpack-server.edge.production.js | 21 +- ...ver-dom-webpack-server.node.development.js | 20 +- ...rver-dom-webpack-server.node.production.js | 27 +- ...bpack-server.node.unbundled.development.js | 20 +- ...ebpack-server.node.unbundled.production.js | 27 +- .../react-server-dom-webpack/package.json | 4 +- .../compiled/react/cjs/react.development.js | 2 +- .../compiled/react/cjs/react.production.js | 2 +- .../cjs/react.react-server.development.js | 2 +- .../cjs/react.react-server.production.js | 2 +- pnpm-lock.yaml | 308 +++++++++--------- test/.stats-app/package.json | 6 +- .../acceptance-app/ReactRefresh.test.ts | 4 +- .../ReactRefreshLogBox-builtins.test.ts | 4 +- .../ReactRefreshLogBox-scss.test.ts | 4 +- .../acceptance-app/ReactRefreshLogBox.test.ts | 4 +- .../ReactRefreshLogBoxMisc.test.ts | 4 +- .../acceptance-app/ReactRefreshModule.test.ts | 4 +- .../ReactRefreshRegression.test.ts | 4 +- .../ReactRefreshRequire.test.ts | 4 +- .../acceptance-app/editor-links.test.ts | 4 +- .../acceptance-app/error-message-url.test.ts | 4 +- .../acceptance-app/error-recovery.test.ts | 4 +- .../acceptance-app/hydration-error.test.ts | 4 +- .../acceptance-app/invalid-imports.test.ts | 4 +- .../acceptance-app/rsc-build-errors.test.ts | 4 +- .../acceptance-app/server-components.test.ts | 4 +- .../acceptance/hydration-error.test.ts | 4 +- ...component-compiler-errors-in-pages.test.ts | 4 +- .../next-font/deprecated-package.test.ts | 4 +- .../app-action-allowed-origins.test.ts | 4 +- .../app-action-disallowed-origins.test.ts | 4 +- .../app-dir/actions/app-action-export.test.ts | 4 +- .../actions/app-action-form-state.test.ts | 4 +- ...app-action-progressive-enhancement.test.ts | 4 +- .../app-action-size-limit-invalid.test.ts | 4 +- test/e2e/app-dir/actions/app-action.test.ts | 4 +- .../app-css-pageextensions/index.test.ts | 4 +- test/e2e/app-dir/app-css/index.test.ts | 4 +- .../app-routes-client-component.test.ts | 4 +- .../create-root-layout.test.ts | 12 +- .../navigation.test.ts | 4 +- .../rewrites-redirects.test.ts | 4 +- .../child-a-tag-error.test.ts | 4 +- .../e2e/new-link-behavior/material-ui.test.ts | 4 +- test/e2e/new-link-behavior/stitches.test.ts | 4 +- test/e2e/next-font/with-proxy.test.ts | 4 +- test/e2e/next-script/index.test.ts | 32 +- .../first-time-setup-js/package.json | 4 +- .../first-time-setup-ts/package.json | 4 +- test/e2e/switchable-runtime/index.test.ts | 4 +- test/e2e/transpile-packages/index.test.ts | 4 +- test/e2e/yarn-pnp/test/utils.ts | 4 +- test/lib/next-modes/base.ts | 2 +- 162 files changed, 1862 insertions(+), 1047 deletions(-) diff --git a/package.json b/package.json index a510cac8cced4c..0f6330f3a37a8f 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-8f3c0525f9-20240521", + "react": "19.0.0-rc-81c5ff2e04-20240521", "react-17": "npm:react@17.0.2", - "react-builtin": "npm:react@19.0.0-rc-8f3c0525f9-20240521", - "react-dom": "19.0.0-rc-8f3c0525f9-20240521", + "react-builtin": "npm:react@19.0.0-rc-81c5ff2e04-20240521", + "react-dom": "19.0.0-rc-81c5ff2e04-20240521", "react-dom-17": "npm:react-dom@17.0.2", - "react-dom-builtin": "npm:react-dom@19.0.0-rc-8f3c0525f9-20240521", - "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-8f3c0525f9-20240521", - "react-experimental-builtin": "npm:react@0.0.0-experimental-8f3c0525f9-20240521", - "react-server-dom-turbopack": "19.0.0-rc-8f3c0525f9-20240521", - "react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-8f3c0525f9-20240521", - "react-server-dom-webpack": "19.0.0-rc-8f3c0525f9-20240521", - "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-8f3c0525f9-20240521", + "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-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-8f3c0525f9-20240521", - "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-8f3c0525f9-20240521", + "scheduler-builtin": "npm:scheduler@0.25.0-rc-81c5ff2e04-20240521", + "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-81c5ff2e04-20240521", "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-8f3c0525f9-20240521", - "react-dom": "19.0.0-rc-8f3c0525f9-20240521", - "react-is": "19.0.0-rc-8f3c0525f9-20240521", - "scheduler": "0.25.0-rc-8f3c0525f9-20240521" + "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" }, "engines": { "node": ">=18.17.0", diff --git a/packages/create-next-app/templates/index.ts b/packages/create-next-app/templates/index.ts index fe6b4ce6737edb..893e053b818f2c 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-8f3c0525f9-20240521", - "react-dom": "19.0.0-rc-8f3c0525f9-20240521", + react: "19.0.0-rc-81c5ff2e04-20240521", + "react-dom": "19.0.0-rc-81c5ff2e04-20240521", next: version, }, devDependencies: {}, diff --git a/packages/next/package.json b/packages/next/package.json index e8800da2446879..99f1b23753e3c8 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-8f3c0525f9-20240521", - "react-dom": "19.0.0-rc-8f3c0525f9-20240521", + "react": "19.0.0-rc-81c5ff2e04-20240521", + "react-dom": "19.0.0-rc-81c5ff2e04-20240521", "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 a48492e5b35120..850c3b557baad5 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 @@ -25685,17 +25685,13 @@ function preloadResourceAndSuspendIfNeeded(workInProgress, resource, type, props } workInProgress.flags |= MaySuspendCommit; - var rootRenderLanes = getWorkInProgressRootRenderLanes(); + var isReady = preloadResource(resource); - if (!includesOnlyNonUrgentLanes(rootRenderLanes)) ; else { - var isReady = preloadResource(resource); - - if (!isReady) { - if (shouldRemainOnPreviousScreen()) { - workInProgress.flags |= ShouldSuspendCommit; - } else { - suspendCommit(); - } + if (!isReady) { + if (shouldRemainOnPreviousScreen()) { + workInProgress.flags |= ShouldSuspendCommit; + } else { + suspendCommit(); } } } @@ -27575,7 +27571,7 @@ function finishConcurrentRender(root, exitStatus, finishedWork, lanes) { function commitRootWhenReady(root, finishedWork, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane) { // TODO: Combine retry throttling with Suspensey commits. Right now they run // one after the other. - if (includesOnlyNonUrgentLanes(lanes)) { + if (finishedWork.subtreeFlags & ShouldSuspendCommit) { // Before committing, ask the renderer whether the host tree is ready. // If it's not, we'll wait until it notifies us. startSuspendingCommit(); // This will walk the completed fiber tree and attach listeners to all @@ -28413,9 +28409,16 @@ function renderRootConcurrent(root, lanes) { case SuspendedOnInstanceAndReadyToContinue: { + var resource = null; + switch (workInProgress.tag) { - case HostComponent: case HostHoistable: + { + resource = workInProgress.memoizedState; + } + // intentional fallthrough + + case HostComponent: case HostSingleton: { // Before unwinding the stack, check one more time if the @@ -28426,7 +28429,7 @@ function renderRootConcurrent(root, lanes) { var hostFiber = workInProgress; var type = hostFiber.type; var props = hostFiber.pendingProps; - var isReady = preloadInstance(type, props); + var isReady = resource ? preloadResource(resource) : preloadInstance(type, props); if (isReady) { // The data resolved. Resume the work loop as if nothing @@ -35880,14 +35883,13 @@ function mayResourceSuspendCommit(resource) { return resource.type === 'stylesheet' && (resource.state.loading & Inserted) === NotLoaded; } function preloadInstance(type, props) { - // Return true to indicate it's already loaded return true; } function preloadResource(resource) { if (resource.type === 'stylesheet' && (resource.state.loading & Settled) === NotLoaded) { - // we have not finished loading the underlying stylesheet yet. + // Return false to indicate this resource should suspend return false; - } // Return true to indicate it's already loaded + } // Return true to indicate this resource should not suspend return true; @@ -36251,7 +36253,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition return root; } -var ReactVersion = '19.0.0-experimental-8f3c0525f9-20240521'; +var ReactVersion = '19.0.0-experimental-81c5ff2e04-20240521'; // 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 887909680ba316..c9c3cd0cc47636 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 @@ -1908,7 +1908,7 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$268; + var JSCompiler_inline_result$jscomp$269; if (canUseDOM) { var isSupported$jscomp$inline_400 = "oninput" in document; if (!isSupported$jscomp$inline_400) { @@ -1917,10 +1917,10 @@ if (canUseDOM) { isSupported$jscomp$inline_400 = "function" === typeof element$jscomp$inline_401.oninput; } - JSCompiler_inline_result$jscomp$268 = isSupported$jscomp$inline_400; - } else JSCompiler_inline_result$jscomp$268 = !1; + JSCompiler_inline_result$jscomp$269 = isSupported$jscomp$inline_400; + } else JSCompiler_inline_result$jscomp$269 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$268 && + JSCompiler_inline_result$jscomp$269 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -9407,15 +9407,7 @@ function markUpdate(workInProgress) { function preloadResourceAndSuspendIfNeeded(workInProgress, resource) { if ("stylesheet" !== resource.type || 0 !== (resource.state.loading & 4)) workInProgress.flags &= -16777217; - else if ( - ((workInProgress.flags |= 16777216), - 0 === (workInProgressRootRenderLanes & 42) && - ((resource = - "stylesheet" === resource.type && 0 === (resource.state.loading & 3) - ? !1 - : !0), - !resource)) - ) + else if (((workInProgress.flags |= 16777216), !preloadResource(resource))) if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192; else throw ( @@ -10275,7 +10267,7 @@ function commitRootWhenReady( spawnedLane ) { if ( - 0 === (lanes & 42) && + finishedWork.subtreeFlags & 8192 && ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }), accumulateSuspenseyCommitOnFiber(finishedWork), (finishedWork = waitForCommitToBeReady()), @@ -10638,23 +10630,27 @@ function renderRootConcurrent(root, lanes) { throwAndUnwindWorkLoop(root, lanes, thrownValue)); break; case 5: + var resource = null; switch (workInProgress.tag) { - case 5: case 26: + resource = workInProgress.memoizedState; + case 5: case 27: - lanes = workInProgress; - workInProgressSuspendedReason = 0; - workInProgressThrownValue = null; - var sibling = lanes.sibling; - if (null !== sibling) workInProgress = sibling; - else { - var returnFiber = lanes.return; - null !== returnFiber - ? ((workInProgress = returnFiber), - completeUnitOfWork(returnFiber)) - : (workInProgress = null); + var hostFiber = workInProgress; + if (resource ? preloadResource(resource) : 1) { + workInProgressSuspendedReason = 0; + workInProgressThrownValue = null; + var sibling = hostFiber.sibling; + if (null !== sibling) workInProgress = sibling; + else { + var returnFiber = hostFiber.return; + null !== returnFiber + ? ((workInProgress = returnFiber), + completeUnitOfWork(returnFiber)) + : (workInProgress = null); + } + break b; } - break b; } workInProgressSuspendedReason = 0; workInProgressThrownValue = null; @@ -11352,20 +11348,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1377 = 0; - i$jscomp$inline_1377 < simpleEventPluginEvents.length; - i$jscomp$inline_1377++ + var i$jscomp$inline_1378 = 0; + i$jscomp$inline_1378 < simpleEventPluginEvents.length; + i$jscomp$inline_1378++ ) { - var eventName$jscomp$inline_1378 = - simpleEventPluginEvents[i$jscomp$inline_1377], - domEventName$jscomp$inline_1379 = - eventName$jscomp$inline_1378.toLowerCase(), - capitalizedEvent$jscomp$inline_1380 = - eventName$jscomp$inline_1378[0].toUpperCase() + - eventName$jscomp$inline_1378.slice(1); + var eventName$jscomp$inline_1379 = + simpleEventPluginEvents[i$jscomp$inline_1378], + domEventName$jscomp$inline_1380 = + eventName$jscomp$inline_1379.toLowerCase(), + capitalizedEvent$jscomp$inline_1381 = + eventName$jscomp$inline_1379[0].toUpperCase() + + eventName$jscomp$inline_1379.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1379, - "on" + capitalizedEvent$jscomp$inline_1380 + domEventName$jscomp$inline_1380, + "on" + capitalizedEvent$jscomp$inline_1381 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -13870,6 +13866,11 @@ function isHostHoistableType(type, props, hostContext) { } return !1; } +function preloadResource(resource) { + return "stylesheet" === resource.type && 0 === (resource.state.loading & 3) + ? !1 + : !0; +} var suspendedState = null; function noop() {} function suspendResource(hoistableRoot, resource, props) { @@ -14756,17 +14757,17 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var devToolsConfig$jscomp$inline_1630 = { +var devToolsConfig$jscomp$inline_1631 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-experimental-8f3c0525f9-20240521", + version: "19.0.0-experimental-81c5ff2e04-20240521", rendererPackageName: "react-dom" }; -var internals$jscomp$inline_2008 = { - bundleType: devToolsConfig$jscomp$inline_1630.bundleType, - version: devToolsConfig$jscomp$inline_1630.version, - rendererPackageName: devToolsConfig$jscomp$inline_1630.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1630.rendererConfig, +var internals$jscomp$inline_2009 = { + bundleType: devToolsConfig$jscomp$inline_1631.bundleType, + version: devToolsConfig$jscomp$inline_1631.version, + rendererPackageName: devToolsConfig$jscomp$inline_1631.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1631.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -14782,26 +14783,26 @@ var internals$jscomp$inline_2008 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1630.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1631.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-experimental-8f3c0525f9-20240521" + reconcilerVersion: "19.0.0-experimental-81c5ff2e04-20240521" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2009 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2010 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2009.isDisabled && - hook$jscomp$inline_2009.supportsFiber + !hook$jscomp$inline_2010.isDisabled && + hook$jscomp$inline_2010.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2009.inject( - internals$jscomp$inline_2008 + (rendererID = hook$jscomp$inline_2010.inject( + internals$jscomp$inline_2009 )), - (injectedHook = hook$jscomp$inline_2009); + (injectedHook = hook$jscomp$inline_2010); } catch (err) {} } exports.createRoot = function (container, options) { @@ -14895,4 +14896,4 @@ exports.hydrateRoot = function (container, initialChildren, options) { listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; -exports.version = "19.0.0-experimental-8f3c0525f9-20240521"; +exports.version = "19.0.0-experimental-81c5ff2e04-20240521"; 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 46f54d337b6745..f33e383407e24d 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 @@ -25733,17 +25733,13 @@ function preloadResourceAndSuspendIfNeeded(workInProgress, resource, type, props } workInProgress.flags |= MaySuspendCommit; - var rootRenderLanes = getWorkInProgressRootRenderLanes(); + var isReady = preloadResource(resource); - if (!includesOnlyNonUrgentLanes(rootRenderLanes)) ; else { - var isReady = preloadResource(resource); - - if (!isReady) { - if (shouldRemainOnPreviousScreen()) { - workInProgress.flags |= ShouldSuspendCommit; - } else { - suspendCommit(); - } + if (!isReady) { + if (shouldRemainOnPreviousScreen()) { + workInProgress.flags |= ShouldSuspendCommit; + } else { + suspendCommit(); } } } @@ -27623,7 +27619,7 @@ function finishConcurrentRender(root, exitStatus, finishedWork, lanes) { function commitRootWhenReady(root, finishedWork, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane) { // TODO: Combine retry throttling with Suspensey commits. Right now they run // one after the other. - if (includesOnlyNonUrgentLanes(lanes)) { + if (finishedWork.subtreeFlags & ShouldSuspendCommit) { // Before committing, ask the renderer whether the host tree is ready. // If it's not, we'll wait until it notifies us. startSuspendingCommit(); // This will walk the completed fiber tree and attach listeners to all @@ -28461,9 +28457,16 @@ function renderRootConcurrent(root, lanes) { case SuspendedOnInstanceAndReadyToContinue: { + var resource = null; + switch (workInProgress.tag) { - case HostComponent: case HostHoistable: + { + resource = workInProgress.memoizedState; + } + // intentional fallthrough + + case HostComponent: case HostSingleton: { // Before unwinding the stack, check one more time if the @@ -28474,7 +28477,7 @@ function renderRootConcurrent(root, lanes) { var hostFiber = workInProgress; var type = hostFiber.type; var props = hostFiber.pendingProps; - var isReady = preloadInstance(type, props); + var isReady = resource ? preloadResource(resource) : preloadInstance(type, props); if (isReady) { // The data resolved. Resume the work loop as if nothing @@ -35928,14 +35931,13 @@ function mayResourceSuspendCommit(resource) { return resource.type === 'stylesheet' && (resource.state.loading & Inserted) === NotLoaded; } function preloadInstance(type, props) { - // Return true to indicate it's already loaded return true; } function preloadResource(resource) { if (resource.type === 'stylesheet' && (resource.state.loading & Settled) === NotLoaded) { - // we have not finished loading the underlying stylesheet yet. + // Return false to indicate this resource should suspend return false; - } // Return true to indicate it's already loaded + } // Return true to indicate this resource should not suspend return true; @@ -36299,7 +36301,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition return root; } -var ReactVersion = '19.0.0-experimental-8f3c0525f9-20240521'; +var ReactVersion = '19.0.0-experimental-81c5ff2e04-20240521'; 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 73c8b99f9d12c7..a81a8bc685d40d 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 @@ -2030,7 +2030,7 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$288; + var JSCompiler_inline_result$jscomp$289; if (canUseDOM) { var isSupported$jscomp$inline_421 = "oninput" in document; if (!isSupported$jscomp$inline_421) { @@ -2039,10 +2039,10 @@ if (canUseDOM) { isSupported$jscomp$inline_421 = "function" === typeof element$jscomp$inline_422.oninput; } - JSCompiler_inline_result$jscomp$288 = isSupported$jscomp$inline_421; - } else JSCompiler_inline_result$jscomp$288 = !1; + JSCompiler_inline_result$jscomp$289 = isSupported$jscomp$inline_421; + } else JSCompiler_inline_result$jscomp$289 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$288 && + JSCompiler_inline_result$jscomp$289 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -9867,15 +9867,7 @@ function markUpdate(workInProgress) { function preloadResourceAndSuspendIfNeeded(workInProgress, resource) { if ("stylesheet" !== resource.type || 0 !== (resource.state.loading & 4)) workInProgress.flags &= -16777217; - else if ( - ((workInProgress.flags |= 16777216), - 0 === (workInProgressRootRenderLanes & 42) && - ((resource = - "stylesheet" === resource.type && 0 === (resource.state.loading & 3) - ? !1 - : !0), - !resource)) - ) + else if (((workInProgress.flags |= 16777216), !preloadResource(resource))) if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192; else throw ( @@ -10806,7 +10798,7 @@ function commitRootWhenReady( spawnedLane ) { if ( - 0 === (lanes & 42) && + finishedWork.subtreeFlags & 8192 && ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop$1 }), accumulateSuspenseyCommitOnFiber(finishedWork), (finishedWork = waitForCommitToBeReady()), @@ -11222,23 +11214,27 @@ function renderRootConcurrent(root, lanes) { throwAndUnwindWorkLoop(root, lanes, memoizedUpdaters)); break; case 5: + var resource = null; switch (workInProgress.tag) { - case 5: case 26: + resource = workInProgress.memoizedState; + case 5: case 27: - lanes = workInProgress; - workInProgressSuspendedReason = 0; - workInProgressThrownValue = null; - var sibling = lanes.sibling; - if (null !== sibling) workInProgress = sibling; - else { - var returnFiber = lanes.return; - null !== returnFiber - ? ((workInProgress = returnFiber), - completeUnitOfWork(returnFiber)) - : (workInProgress = null); + var hostFiber = workInProgress; + if (resource ? preloadResource(resource) : 1) { + workInProgressSuspendedReason = 0; + workInProgressThrownValue = null; + var sibling = hostFiber.sibling; + if (null !== sibling) workInProgress = sibling; + else { + var returnFiber = hostFiber.return; + null !== returnFiber + ? ((workInProgress = returnFiber), + completeUnitOfWork(returnFiber)) + : (workInProgress = null); + } + break b; } - break b; } workInProgressSuspendedReason = 0; workInProgressThrownValue = null; @@ -12044,20 +12040,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1462 = 0; - i$jscomp$inline_1462 < simpleEventPluginEvents.length; - i$jscomp$inline_1462++ + var i$jscomp$inline_1463 = 0; + i$jscomp$inline_1463 < simpleEventPluginEvents.length; + i$jscomp$inline_1463++ ) { - var eventName$jscomp$inline_1463 = - simpleEventPluginEvents[i$jscomp$inline_1462], - domEventName$jscomp$inline_1464 = - eventName$jscomp$inline_1463.toLowerCase(), - capitalizedEvent$jscomp$inline_1465 = - eventName$jscomp$inline_1463[0].toUpperCase() + - eventName$jscomp$inline_1463.slice(1); + var eventName$jscomp$inline_1464 = + simpleEventPluginEvents[i$jscomp$inline_1463], + domEventName$jscomp$inline_1465 = + eventName$jscomp$inline_1464.toLowerCase(), + capitalizedEvent$jscomp$inline_1466 = + eventName$jscomp$inline_1464[0].toUpperCase() + + eventName$jscomp$inline_1464.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1464, - "on" + capitalizedEvent$jscomp$inline_1465 + domEventName$jscomp$inline_1465, + "on" + capitalizedEvent$jscomp$inline_1466 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -14562,6 +14558,11 @@ function isHostHoistableType(type, props, hostContext) { } return !1; } +function preloadResource(resource) { + return "stylesheet" === resource.type && 0 === (resource.state.loading & 3) + ? !1 + : !0; +} var suspendedState = null; function noop$1() {} function suspendResource(hoistableRoot, resource, props) { @@ -15467,10 +15468,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var devToolsConfig$jscomp$inline_1717 = { +var devToolsConfig$jscomp$inline_1718 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-experimental-8f3c0525f9-20240521", + version: "19.0.0-experimental-81c5ff2e04-20240521", rendererPackageName: "react-dom" }; (function (internals) { @@ -15487,10 +15488,10 @@ var devToolsConfig$jscomp$inline_1717 = { } catch (err) {} return hook.checkDCE ? !0 : !1; })({ - bundleType: devToolsConfig$jscomp$inline_1717.bundleType, - version: devToolsConfig$jscomp$inline_1717.version, - rendererPackageName: devToolsConfig$jscomp$inline_1717.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1717.rendererConfig, + bundleType: devToolsConfig$jscomp$inline_1718.bundleType, + version: devToolsConfig$jscomp$inline_1718.version, + rendererPackageName: devToolsConfig$jscomp$inline_1718.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1718.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -15506,14 +15507,14 @@ var devToolsConfig$jscomp$inline_1717 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1717.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1718.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-experimental-8f3c0525f9-20240521" + reconcilerVersion: "19.0.0-experimental-81c5ff2e04-20240521" }); function noop() {} function getCrossOriginStringAs(as, input) { @@ -15767,7 +15768,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-experimental-8f3c0525f9-20240521"; +exports.version = "19.0.0-experimental-81c5ff2e04-20240521"; "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 65fe629ed646cd..e2546c46a72bb9 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-8f3c0525f9-20240521'; +var ReactVersion = '19.0.0-experimental-81c5ff2e04-20240521'; 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 6b94c7a9e6fda0..f04ad8bbb84d6d 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-8f3c0525f9-20240521"; +exports.version = "19.0.0-experimental-81c5ff2e04-20240521"; 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 ff7459263b91df..627a95d2e6b7f0 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-8f3c0525f9-20240521'; +var ReactVersion = '19.0.0-experimental-81c5ff2e04-20240521'; 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 7e8b65a969f3c9..61d1bab843e646 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-8f3c0525f9-20240521"; +exports.version = "19.0.0-experimental-81c5ff2e04-20240521"; 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 15b84a16fa4d06..06e193961744d1 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-8f3c0525f9-20240521'; +var ReactVersion = '19.0.0-experimental-81c5ff2e04-20240521'; 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 1663c422076447..c27bcd42a96150 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-8f3c0525f9-20240521"; +exports.version = "19.0.0-experimental-81c5ff2e04-20240521"; 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 63a60e77a93e30..7d4a439093579f 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-8f3c0525f9-20240521"; +exports.version = "19.0.0-experimental-81c5ff2e04-20240521"; 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 39962e401006b6..d13d1c39f5c907 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-8f3c0525f9-20240521'; +var ReactVersion = '19.0.0-experimental-81c5ff2e04-20240521'; 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 0ef3eb24011202..ac8ae6cab0e193 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-8f3c0525f9-20240521"; +exports.version = "19.0.0-experimental-81c5ff2e04-20240521"; 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 246484b47b967a..c5d2e410e37f78 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-8f3c0525f9-20240521'; +var ReactVersion = '19.0.0-experimental-81c5ff2e04-20240521'; 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 cdac23546c2f3e..3a56a37b40e06a 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-8f3c0525f9-20240521"; +exports.version = "19.0.0-experimental-81c5ff2e04-20240521"; 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 0a48972b74fdb3..557e902107f14f 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 @@ -25826,17 +25826,13 @@ function preloadResourceAndSuspendIfNeeded(workInProgress, resource, type, props } workInProgress.flags |= MaySuspendCommit; - var rootRenderLanes = getWorkInProgressRootRenderLanes(); + var isReady = preloadResource(resource); - if (!includesOnlyNonUrgentLanes(rootRenderLanes)) ; else { - var isReady = preloadResource(resource); - - if (!isReady) { - if (shouldRemainOnPreviousScreen()) { - workInProgress.flags |= ShouldSuspendCommit; - } else { - suspendCommit(); - } + if (!isReady) { + if (shouldRemainOnPreviousScreen()) { + workInProgress.flags |= ShouldSuspendCommit; + } else { + suspendCommit(); } } } @@ -28141,7 +28137,7 @@ function finishConcurrentRender(root, exitStatus, finishedWork, lanes) { function commitRootWhenReady(root, finishedWork, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane) { // TODO: Combine retry throttling with Suspensey commits. Right now they run // one after the other. - if (includesOnlyNonUrgentLanes(lanes)) { + if (finishedWork.subtreeFlags & ShouldSuspendCommit) { // Before committing, ask the renderer whether the host tree is ready. // If it's not, we'll wait until it notifies us. startSuspendingCommit(); // This will walk the completed fiber tree and attach listeners to all @@ -28979,9 +28975,16 @@ function renderRootConcurrent(root, lanes) { case SuspendedOnInstanceAndReadyToContinue: { + var resource = null; + switch (workInProgress.tag) { - case HostComponent: case HostHoistable: + { + resource = workInProgress.memoizedState; + } + // intentional fallthrough + + case HostComponent: case HostSingleton: { // Before unwinding the stack, check one more time if the @@ -28992,7 +28995,7 @@ function renderRootConcurrent(root, lanes) { var hostFiber = workInProgress; var type = hostFiber.type; var props = hostFiber.pendingProps; - var isReady = preloadInstance(type, props); + var isReady = resource ? preloadResource(resource) : preloadInstance(type, props); if (isReady) { // The data resolved. Resume the work loop as if nothing @@ -36581,14 +36584,13 @@ function mayResourceSuspendCommit(resource) { return resource.type === 'stylesheet' && (resource.state.loading & Inserted) === NotLoaded; } function preloadInstance(type, props) { - // Return true to indicate it's already loaded return true; } function preloadResource(resource) { if (resource.type === 'stylesheet' && (resource.state.loading & Settled) === NotLoaded) { - // we have not finished loading the underlying stylesheet yet. + // Return false to indicate this resource should suspend return false; - } // Return true to indicate it's already loaded + } // Return true to indicate this resource should not suspend return true; @@ -36952,7 +36954,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition return root; } -var ReactVersion = '19.0.0-experimental-8f3c0525f9-20240521'; +var ReactVersion = '19.0.0-experimental-81c5ff2e04-20240521'; // 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 49290bbd52b488..aab248590b7fb4 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 @@ -2044,7 +2044,7 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$269; + var JSCompiler_inline_result$jscomp$270; if (canUseDOM) { var isSupported$jscomp$inline_405 = "oninput" in document; if (!isSupported$jscomp$inline_405) { @@ -2053,10 +2053,10 @@ if (canUseDOM) { isSupported$jscomp$inline_405 = "function" === typeof element$jscomp$inline_406.oninput; } - JSCompiler_inline_result$jscomp$269 = isSupported$jscomp$inline_405; - } else JSCompiler_inline_result$jscomp$269 = !1; + JSCompiler_inline_result$jscomp$270 = isSupported$jscomp$inline_405; + } else JSCompiler_inline_result$jscomp$270 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$269 && + JSCompiler_inline_result$jscomp$270 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -9543,15 +9543,7 @@ function markUpdate(workInProgress) { function preloadResourceAndSuspendIfNeeded(workInProgress, resource) { if ("stylesheet" !== resource.type || 0 !== (resource.state.loading & 4)) workInProgress.flags &= -16777217; - else if ( - ((workInProgress.flags |= 16777216), - 0 === (workInProgressRootRenderLanes & 42) && - ((resource = - "stylesheet" === resource.type && 0 === (resource.state.loading & 3) - ? !1 - : !0), - !resource)) - ) + else if (((workInProgress.flags |= 16777216), !preloadResource(resource))) if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192; else throw ( @@ -10597,7 +10589,7 @@ function commitRootWhenReady( spawnedLane ) { if ( - 0 === (lanes & 42) && + finishedWork.subtreeFlags & 8192 && ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }), accumulateSuspenseyCommitOnFiber(finishedWork), (finishedWork = waitForCommitToBeReady()), @@ -10960,23 +10952,27 @@ function renderRootConcurrent(root, lanes) { throwAndUnwindWorkLoop(root, lanes, thrownValue)); break; case 5: + var resource = null; switch (workInProgress.tag) { - case 5: case 26: + resource = workInProgress.memoizedState; + case 5: case 27: - lanes = workInProgress; - workInProgressSuspendedReason = 0; - workInProgressThrownValue = null; - var sibling = lanes.sibling; - if (null !== sibling) workInProgress = sibling; - else { - var returnFiber = lanes.return; - null !== returnFiber - ? ((workInProgress = returnFiber), - completeUnitOfWork(returnFiber)) - : (workInProgress = null); + var hostFiber = workInProgress; + if (resource ? preloadResource(resource) : 1) { + workInProgressSuspendedReason = 0; + workInProgressThrownValue = null; + var sibling = hostFiber.sibling; + if (null !== sibling) workInProgress = sibling; + else { + var returnFiber = hostFiber.return; + null !== returnFiber + ? ((workInProgress = returnFiber), + completeUnitOfWork(returnFiber)) + : (workInProgress = null); + } + break b; } - break b; } workInProgressSuspendedReason = 0; workInProgressThrownValue = null; @@ -11674,20 +11670,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1406 = 0; - i$jscomp$inline_1406 < simpleEventPluginEvents.length; - i$jscomp$inline_1406++ + var i$jscomp$inline_1407 = 0; + i$jscomp$inline_1407 < simpleEventPluginEvents.length; + i$jscomp$inline_1407++ ) { - var eventName$jscomp$inline_1407 = - simpleEventPluginEvents[i$jscomp$inline_1406], - domEventName$jscomp$inline_1408 = - eventName$jscomp$inline_1407.toLowerCase(), - capitalizedEvent$jscomp$inline_1409 = - eventName$jscomp$inline_1407[0].toUpperCase() + - eventName$jscomp$inline_1407.slice(1); + var eventName$jscomp$inline_1408 = + simpleEventPluginEvents[i$jscomp$inline_1407], + domEventName$jscomp$inline_1409 = + eventName$jscomp$inline_1408.toLowerCase(), + capitalizedEvent$jscomp$inline_1410 = + eventName$jscomp$inline_1408[0].toUpperCase() + + eventName$jscomp$inline_1408.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1408, - "on" + capitalizedEvent$jscomp$inline_1409 + domEventName$jscomp$inline_1409, + "on" + capitalizedEvent$jscomp$inline_1410 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -14249,6 +14245,11 @@ function isHostHoistableType(type, props, hostContext) { } return !1; } +function preloadResource(resource) { + return "stylesheet" === resource.type && 0 === (resource.state.loading & 3) + ? !1 + : !0; +} var suspendedState = null; function noop() {} function suspendResource(hoistableRoot, resource, props) { @@ -15135,17 +15136,17 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var devToolsConfig$jscomp$inline_1659 = { +var devToolsConfig$jscomp$inline_1660 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-experimental-8f3c0525f9-20240521", + version: "19.0.0-experimental-81c5ff2e04-20240521", rendererPackageName: "react-dom" }; -var internals$jscomp$inline_2042 = { - bundleType: devToolsConfig$jscomp$inline_1659.bundleType, - version: devToolsConfig$jscomp$inline_1659.version, - rendererPackageName: devToolsConfig$jscomp$inline_1659.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1659.rendererConfig, +var internals$jscomp$inline_2043 = { + bundleType: devToolsConfig$jscomp$inline_1660.bundleType, + version: devToolsConfig$jscomp$inline_1660.version, + rendererPackageName: devToolsConfig$jscomp$inline_1660.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1660.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -15161,26 +15162,26 @@ var internals$jscomp$inline_2042 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1659.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1660.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-experimental-8f3c0525f9-20240521" + reconcilerVersion: "19.0.0-experimental-81c5ff2e04-20240521" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2043 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2044 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2043.isDisabled && - hook$jscomp$inline_2043.supportsFiber + !hook$jscomp$inline_2044.isDisabled && + hook$jscomp$inline_2044.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2043.inject( - internals$jscomp$inline_2042 + (rendererID = hook$jscomp$inline_2044.inject( + internals$jscomp$inline_2043 )), - (injectedHook = hook$jscomp$inline_2043); + (injectedHook = hook$jscomp$inline_2044); } catch (err) {} } exports.createComponentSelector = function (component) { @@ -15425,4 +15426,4 @@ exports.observeVisibleRects = function ( } }; }; -exports.version = "19.0.0-experimental-8f3c0525f9-20240521"; +exports.version = "19.0.0-experimental-81c5ff2e04-20240521"; 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 c60bdb4a454dcb..feb46fd379d149 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-8f3c0525f9-20240521'; +var ReactVersion = '19.0.0-experimental-81c5ff2e04-20240521'; /** * 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 10ac14805afe41..6d26fc0053607c 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-8f3c0525f9-20240521"; +exports.version = "19.0.0-experimental-81c5ff2e04-20240521"; diff --git a/packages/next/src/compiled/react-dom-experimental/package.json b/packages/next/src/compiled/react-dom-experimental/package.json index 39feea756d301c..ad3ecbf08b9f6e 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-8f3c0525f9-20240521" + "scheduler": "0.0.0-experimental-81c5ff2e04-20240521" }, "peerDependencies": { - "react": "0.0.0-experimental-8f3c0525f9-20240521" + "react": "0.0.0-experimental-81c5ff2e04-20240521" }, "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 386d6c6945bc3e..6c31ab990562b9 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 @@ -25480,17 +25480,13 @@ function preloadResourceAndSuspendIfNeeded(workInProgress, resource, type, props } workInProgress.flags |= MaySuspendCommit; - var rootRenderLanes = getWorkInProgressRootRenderLanes(); + var isReady = preloadResource(resource); - if (!includesOnlyNonUrgentLanes(rootRenderLanes)) ; else { - var isReady = preloadResource(resource); - - if (!isReady) { - if (shouldRemainOnPreviousScreen()) { - workInProgress.flags |= ShouldSuspendCommit; - } else { - suspendCommit(); - } + if (!isReady) { + if (shouldRemainOnPreviousScreen()) { + workInProgress.flags |= ShouldSuspendCommit; + } else { + suspendCommit(); } } } @@ -27370,7 +27366,7 @@ function finishConcurrentRender(root, exitStatus, finishedWork, lanes) { function commitRootWhenReady(root, finishedWork, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane) { // TODO: Combine retry throttling with Suspensey commits. Right now they run // one after the other. - if (includesOnlyNonUrgentLanes(lanes)) { + if (finishedWork.subtreeFlags & ShouldSuspendCommit) { // Before committing, ask the renderer whether the host tree is ready. // If it's not, we'll wait until it notifies us. startSuspendingCommit(); // This will walk the completed fiber tree and attach listeners to all @@ -28204,9 +28200,16 @@ function renderRootConcurrent(root, lanes) { case SuspendedOnInstanceAndReadyToContinue: { + var resource = null; + switch (workInProgress.tag) { - case HostComponent: case HostHoistable: + { + resource = workInProgress.memoizedState; + } + // intentional fallthrough + + case HostComponent: case HostSingleton: { // Before unwinding the stack, check one more time if the @@ -28217,7 +28220,7 @@ function renderRootConcurrent(root, lanes) { var hostFiber = workInProgress; var type = hostFiber.type; var props = hostFiber.pendingProps; - var isReady = preloadInstance(type, props); + var isReady = resource ? preloadResource(resource) : preloadInstance(type, props); if (isReady) { // The data resolved. Resume the work loop as if nothing @@ -35671,14 +35674,13 @@ function mayResourceSuspendCommit(resource) { return resource.type === 'stylesheet' && (resource.state.loading & Inserted) === NotLoaded; } function preloadInstance(type, props) { - // Return true to indicate it's already loaded return true; } function preloadResource(resource) { if (resource.type === 'stylesheet' && (resource.state.loading & Settled) === NotLoaded) { - // we have not finished loading the underlying stylesheet yet. + // Return false to indicate this resource should suspend return false; - } // Return true to indicate it's already loaded + } // Return true to indicate this resource should not suspend return true; @@ -36042,7 +36044,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition return root; } -var ReactVersion = '19.0.0-rc-8f3c0525f9-20240521'; +var ReactVersion = '19.0.0-rc-81c5ff2e04-20240521'; // 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 ab8264c29808a6..b8716d7dc74ba2 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 @@ -1906,7 +1906,7 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$266; + var JSCompiler_inline_result$jscomp$267; if (canUseDOM) { var isSupported$jscomp$inline_399 = "oninput" in document; if (!isSupported$jscomp$inline_399) { @@ -1915,10 +1915,10 @@ if (canUseDOM) { isSupported$jscomp$inline_399 = "function" === typeof element$jscomp$inline_400.oninput; } - JSCompiler_inline_result$jscomp$266 = isSupported$jscomp$inline_399; - } else JSCompiler_inline_result$jscomp$266 = !1; + JSCompiler_inline_result$jscomp$267 = isSupported$jscomp$inline_399; + } else JSCompiler_inline_result$jscomp$267 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$266 && + JSCompiler_inline_result$jscomp$267 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -9256,15 +9256,7 @@ function markUpdate(workInProgress) { function preloadResourceAndSuspendIfNeeded(workInProgress, resource) { if ("stylesheet" !== resource.type || 0 !== (resource.state.loading & 4)) workInProgress.flags &= -16777217; - else if ( - ((workInProgress.flags |= 16777216), - 0 === (workInProgressRootRenderLanes & 42) && - ((resource = - "stylesheet" === resource.type && 0 === (resource.state.loading & 3) - ? !1 - : !0), - !resource)) - ) + else if (((workInProgress.flags |= 16777216), !preloadResource(resource))) if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192; else throw ( @@ -10124,7 +10116,7 @@ function commitRootWhenReady( spawnedLane ) { if ( - 0 === (lanes & 42) && + finishedWork.subtreeFlags & 8192 && ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }), accumulateSuspenseyCommitOnFiber(finishedWork), (finishedWork = waitForCommitToBeReady()), @@ -10482,23 +10474,27 @@ function renderRootConcurrent(root, lanes) { throwAndUnwindWorkLoop(root, lanes, thrownValue)); break; case 5: + var resource = null; switch (workInProgress.tag) { - case 5: case 26: + resource = workInProgress.memoizedState; + case 5: case 27: - lanes = workInProgress; - workInProgressSuspendedReason = 0; - workInProgressThrownValue = null; - var sibling = lanes.sibling; - if (null !== sibling) workInProgress = sibling; - else { - var returnFiber = lanes.return; - null !== returnFiber - ? ((workInProgress = returnFiber), - completeUnitOfWork(returnFiber)) - : (workInProgress = null); + var hostFiber = workInProgress; + if (resource ? preloadResource(resource) : 1) { + workInProgressSuspendedReason = 0; + workInProgressThrownValue = null; + var sibling = hostFiber.sibling; + if (null !== sibling) workInProgress = sibling; + else { + var returnFiber = hostFiber.return; + null !== returnFiber + ? ((workInProgress = returnFiber), + completeUnitOfWork(returnFiber)) + : (workInProgress = null); + } + break b; } - break b; } workInProgressSuspendedReason = 0; workInProgressThrownValue = null; @@ -11196,20 +11192,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1397 = 0; - i$jscomp$inline_1397 < simpleEventPluginEvents.length; - i$jscomp$inline_1397++ + var i$jscomp$inline_1398 = 0; + i$jscomp$inline_1398 < simpleEventPluginEvents.length; + i$jscomp$inline_1398++ ) { - var eventName$jscomp$inline_1398 = - simpleEventPluginEvents[i$jscomp$inline_1397], - domEventName$jscomp$inline_1399 = - eventName$jscomp$inline_1398.toLowerCase(), - capitalizedEvent$jscomp$inline_1400 = - eventName$jscomp$inline_1398[0].toUpperCase() + - eventName$jscomp$inline_1398.slice(1); + var eventName$jscomp$inline_1399 = + simpleEventPluginEvents[i$jscomp$inline_1398], + domEventName$jscomp$inline_1400 = + eventName$jscomp$inline_1399.toLowerCase(), + capitalizedEvent$jscomp$inline_1401 = + eventName$jscomp$inline_1399[0].toUpperCase() + + eventName$jscomp$inline_1399.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1399, - "on" + capitalizedEvent$jscomp$inline_1400 + domEventName$jscomp$inline_1400, + "on" + capitalizedEvent$jscomp$inline_1401 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -13714,6 +13710,11 @@ function isHostHoistableType(type, props, hostContext) { } return !1; } +function preloadResource(resource) { + return "stylesheet" === resource.type && 0 === (resource.state.loading & 3) + ? !1 + : !0; +} var suspendedState = null; function noop() {} function suspendResource(hoistableRoot, resource, props) { @@ -14600,17 +14601,17 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var devToolsConfig$jscomp$inline_1650 = { +var devToolsConfig$jscomp$inline_1651 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-rc-8f3c0525f9-20240521", + version: "19.0.0-rc-81c5ff2e04-20240521", rendererPackageName: "react-dom" }; -var internals$jscomp$inline_2028 = { - bundleType: devToolsConfig$jscomp$inline_1650.bundleType, - version: devToolsConfig$jscomp$inline_1650.version, - rendererPackageName: devToolsConfig$jscomp$inline_1650.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1650.rendererConfig, +var internals$jscomp$inline_2029 = { + bundleType: devToolsConfig$jscomp$inline_1651.bundleType, + version: devToolsConfig$jscomp$inline_1651.version, + rendererPackageName: devToolsConfig$jscomp$inline_1651.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1651.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -14626,26 +14627,26 @@ var internals$jscomp$inline_2028 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1650.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1651.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-rc-8f3c0525f9-20240521" + reconcilerVersion: "19.0.0-rc-81c5ff2e04-20240521" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2029 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2030 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2029.isDisabled && - hook$jscomp$inline_2029.supportsFiber + !hook$jscomp$inline_2030.isDisabled && + hook$jscomp$inline_2030.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2029.inject( - internals$jscomp$inline_2028 + (rendererID = hook$jscomp$inline_2030.inject( + internals$jscomp$inline_2029 )), - (injectedHook = hook$jscomp$inline_2029); + (injectedHook = hook$jscomp$inline_2030); } catch (err) {} } exports.createRoot = function (container, options) { @@ -14739,4 +14740,4 @@ exports.hydrateRoot = function (container, initialChildren, options) { listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; -exports.version = "19.0.0-rc-8f3c0525f9-20240521"; +exports.version = "19.0.0-rc-81c5ff2e04-20240521"; 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 46cc97fd9461b0..4fdd1ae4d91860 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 @@ -25528,17 +25528,13 @@ function preloadResourceAndSuspendIfNeeded(workInProgress, resource, type, props } workInProgress.flags |= MaySuspendCommit; - var rootRenderLanes = getWorkInProgressRootRenderLanes(); + var isReady = preloadResource(resource); - if (!includesOnlyNonUrgentLanes(rootRenderLanes)) ; else { - var isReady = preloadResource(resource); - - if (!isReady) { - if (shouldRemainOnPreviousScreen()) { - workInProgress.flags |= ShouldSuspendCommit; - } else { - suspendCommit(); - } + if (!isReady) { + if (shouldRemainOnPreviousScreen()) { + workInProgress.flags |= ShouldSuspendCommit; + } else { + suspendCommit(); } } } @@ -27418,7 +27414,7 @@ function finishConcurrentRender(root, exitStatus, finishedWork, lanes) { function commitRootWhenReady(root, finishedWork, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane) { // TODO: Combine retry throttling with Suspensey commits. Right now they run // one after the other. - if (includesOnlyNonUrgentLanes(lanes)) { + if (finishedWork.subtreeFlags & ShouldSuspendCommit) { // Before committing, ask the renderer whether the host tree is ready. // If it's not, we'll wait until it notifies us. startSuspendingCommit(); // This will walk the completed fiber tree and attach listeners to all @@ -28252,9 +28248,16 @@ function renderRootConcurrent(root, lanes) { case SuspendedOnInstanceAndReadyToContinue: { + var resource = null; + switch (workInProgress.tag) { - case HostComponent: case HostHoistable: + { + resource = workInProgress.memoizedState; + } + // intentional fallthrough + + case HostComponent: case HostSingleton: { // Before unwinding the stack, check one more time if the @@ -28265,7 +28268,7 @@ function renderRootConcurrent(root, lanes) { var hostFiber = workInProgress; var type = hostFiber.type; var props = hostFiber.pendingProps; - var isReady = preloadInstance(type, props); + var isReady = resource ? preloadResource(resource) : preloadInstance(type, props); if (isReady) { // The data resolved. Resume the work loop as if nothing @@ -35719,14 +35722,13 @@ function mayResourceSuspendCommit(resource) { return resource.type === 'stylesheet' && (resource.state.loading & Inserted) === NotLoaded; } function preloadInstance(type, props) { - // Return true to indicate it's already loaded return true; } function preloadResource(resource) { if (resource.type === 'stylesheet' && (resource.state.loading & Settled) === NotLoaded) { - // we have not finished loading the underlying stylesheet yet. + // Return false to indicate this resource should suspend return false; - } // Return true to indicate it's already loaded + } // Return true to indicate this resource should not suspend return true; @@ -36090,7 +36092,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition return root; } -var ReactVersion = '19.0.0-rc-8f3c0525f9-20240521'; +var ReactVersion = '19.0.0-rc-81c5ff2e04-20240521'; 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 d5f70778d82a18..51b99f027cee76 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 @@ -2028,7 +2028,7 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$286; + var JSCompiler_inline_result$jscomp$287; if (canUseDOM) { var isSupported$jscomp$inline_420 = "oninput" in document; if (!isSupported$jscomp$inline_420) { @@ -2037,10 +2037,10 @@ if (canUseDOM) { isSupported$jscomp$inline_420 = "function" === typeof element$jscomp$inline_421.oninput; } - JSCompiler_inline_result$jscomp$286 = isSupported$jscomp$inline_420; - } else JSCompiler_inline_result$jscomp$286 = !1; + JSCompiler_inline_result$jscomp$287 = isSupported$jscomp$inline_420; + } else JSCompiler_inline_result$jscomp$287 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$286 && + JSCompiler_inline_result$jscomp$287 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -9716,15 +9716,7 @@ function markUpdate(workInProgress) { function preloadResourceAndSuspendIfNeeded(workInProgress, resource) { if ("stylesheet" !== resource.type || 0 !== (resource.state.loading & 4)) workInProgress.flags &= -16777217; - else if ( - ((workInProgress.flags |= 16777216), - 0 === (workInProgressRootRenderLanes & 42) && - ((resource = - "stylesheet" === resource.type && 0 === (resource.state.loading & 3) - ? !1 - : !0), - !resource)) - ) + else if (((workInProgress.flags |= 16777216), !preloadResource(resource))) if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192; else throw ( @@ -10655,7 +10647,7 @@ function commitRootWhenReady( spawnedLane ) { if ( - 0 === (lanes & 42) && + finishedWork.subtreeFlags & 8192 && ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop$1 }), accumulateSuspenseyCommitOnFiber(finishedWork), (finishedWork = waitForCommitToBeReady()), @@ -11066,23 +11058,27 @@ function renderRootConcurrent(root, lanes) { throwAndUnwindWorkLoop(root, lanes, memoizedUpdaters)); break; case 5: + var resource = null; switch (workInProgress.tag) { - case 5: case 26: + resource = workInProgress.memoizedState; + case 5: case 27: - lanes = workInProgress; - workInProgressSuspendedReason = 0; - workInProgressThrownValue = null; - var sibling = lanes.sibling; - if (null !== sibling) workInProgress = sibling; - else { - var returnFiber = lanes.return; - null !== returnFiber - ? ((workInProgress = returnFiber), - completeUnitOfWork(returnFiber)) - : (workInProgress = null); + var hostFiber = workInProgress; + if (resource ? preloadResource(resource) : 1) { + workInProgressSuspendedReason = 0; + workInProgressThrownValue = null; + var sibling = hostFiber.sibling; + if (null !== sibling) workInProgress = sibling; + else { + var returnFiber = hostFiber.return; + null !== returnFiber + ? ((workInProgress = returnFiber), + completeUnitOfWork(returnFiber)) + : (workInProgress = null); + } + break b; } - break b; } workInProgressSuspendedReason = 0; workInProgressThrownValue = null; @@ -11888,20 +11884,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1482 = 0; - i$jscomp$inline_1482 < simpleEventPluginEvents.length; - i$jscomp$inline_1482++ + var i$jscomp$inline_1483 = 0; + i$jscomp$inline_1483 < simpleEventPluginEvents.length; + i$jscomp$inline_1483++ ) { - var eventName$jscomp$inline_1483 = - simpleEventPluginEvents[i$jscomp$inline_1482], - domEventName$jscomp$inline_1484 = - eventName$jscomp$inline_1483.toLowerCase(), - capitalizedEvent$jscomp$inline_1485 = - eventName$jscomp$inline_1483[0].toUpperCase() + - eventName$jscomp$inline_1483.slice(1); + var eventName$jscomp$inline_1484 = + simpleEventPluginEvents[i$jscomp$inline_1483], + domEventName$jscomp$inline_1485 = + eventName$jscomp$inline_1484.toLowerCase(), + capitalizedEvent$jscomp$inline_1486 = + eventName$jscomp$inline_1484[0].toUpperCase() + + eventName$jscomp$inline_1484.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1484, - "on" + capitalizedEvent$jscomp$inline_1485 + domEventName$jscomp$inline_1485, + "on" + capitalizedEvent$jscomp$inline_1486 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -14406,6 +14402,11 @@ function isHostHoistableType(type, props, hostContext) { } return !1; } +function preloadResource(resource) { + return "stylesheet" === resource.type && 0 === (resource.state.loading & 3) + ? !1 + : !0; +} var suspendedState = null; function noop$1() {} function suspendResource(hoistableRoot, resource, props) { @@ -15311,10 +15312,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var devToolsConfig$jscomp$inline_1737 = { +var devToolsConfig$jscomp$inline_1738 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-rc-8f3c0525f9-20240521", + version: "19.0.0-rc-81c5ff2e04-20240521", rendererPackageName: "react-dom" }; (function (internals) { @@ -15331,10 +15332,10 @@ var devToolsConfig$jscomp$inline_1737 = { } catch (err) {} return hook.checkDCE ? !0 : !1; })({ - bundleType: devToolsConfig$jscomp$inline_1737.bundleType, - version: devToolsConfig$jscomp$inline_1737.version, - rendererPackageName: devToolsConfig$jscomp$inline_1737.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1737.rendererConfig, + bundleType: devToolsConfig$jscomp$inline_1738.bundleType, + version: devToolsConfig$jscomp$inline_1738.version, + rendererPackageName: devToolsConfig$jscomp$inline_1738.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1738.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -15350,14 +15351,14 @@ var devToolsConfig$jscomp$inline_1737 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1737.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1738.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-rc-8f3c0525f9-20240521" + reconcilerVersion: "19.0.0-rc-81c5ff2e04-20240521" }); function noop() {} function getCrossOriginStringAs(as, input) { @@ -15611,7 +15612,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-rc-8f3c0525f9-20240521"; +exports.version = "19.0.0-rc-81c5ff2e04-20240521"; "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 bc59de6cc17d73..6203eb0d2aa943 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-8f3c0525f9-20240521'; +var ReactVersion = '19.0.0-rc-81c5ff2e04-20240521'; 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 07ed5596125b7d..fbadd66fdfabc8 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-8f3c0525f9-20240521"; +exports.version = "19.0.0-rc-81c5ff2e04-20240521"; 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 520f19d33a9976..f457a90dbab65f 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-8f3c0525f9-20240521'; +var ReactVersion = '19.0.0-rc-81c5ff2e04-20240521'; 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 d09a63f5546df3..4a8db7e9e6a72d 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-8f3c0525f9-20240521"; +exports.version = "19.0.0-rc-81c5ff2e04-20240521"; 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 ec31a2b3fa4153..4fa8b30577738a 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-8f3c0525f9-20240521'; +var ReactVersion = '19.0.0-rc-81c5ff2e04-20240521'; 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 0f803c61607aee..6ccc12b12a9521 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-8f3c0525f9-20240521"; +exports.version = "19.0.0-rc-81c5ff2e04-20240521"; 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 ddbfb31a9d3a0a..5b570cc60baede 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-8f3c0525f9-20240521"; +exports.version = "19.0.0-rc-81c5ff2e04-20240521"; 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 8751fe4a2956cc..a23ae91b18c53c 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-8f3c0525f9-20240521'; +var ReactVersion = '19.0.0-rc-81c5ff2e04-20240521'; 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 cc96be36d22447..80f0449daa4af4 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-8f3c0525f9-20240521"; +exports.version = "19.0.0-rc-81c5ff2e04-20240521"; 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 9c56b012028e24..8240a025899ea1 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-8f3c0525f9-20240521'; +var ReactVersion = '19.0.0-rc-81c5ff2e04-20240521'; 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 26494a8dce2531..56dde6de9103a1 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-8f3c0525f9-20240521"; +exports.version = "19.0.0-rc-81c5ff2e04-20240521"; 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 b54a548b71c020..d238001fa58f84 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-8f3c0525f9-20240521'; +var ReactVersion = '19.0.0-rc-81c5ff2e04-20240521'; /** * 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 15d969271c7265..e84c748f3e5f76 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-8f3c0525f9-20240521"; +exports.version = "19.0.0-rc-81c5ff2e04-20240521"; diff --git a/packages/next/src/compiled/react-dom/package.json b/packages/next/src/compiled/react-dom/package.json index 1447b4c7809e00..e68a79ede31eda 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-8f3c0525f9-20240521" + "scheduler": "0.25.0-rc-81c5ff2e04-20240521" }, "peerDependencies": { - "react": "19.0.0-rc-8f3c0525f9-20240521" + "react": "19.0.0-rc-81c5ff2e04-20240521" }, "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 821d8b03608425..7b7e048e5a60a5 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-8f3c0525f9-20240521'; +var ReactVersion = '19.0.0-experimental-81c5ff2e04-20240521'; // ----------------------------------------------------------------------------- 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 b1f8b93180b209..937a7a88a55bc2 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-8f3c0525f9-20240521"; +exports.version = "19.0.0-experimental-81c5ff2e04-20240521"; 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 26f834a577bfd3..29dcd9561fb692 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-8f3c0525f9-20240521'; +var ReactVersion = '19.0.0-experimental-81c5ff2e04-20240521'; 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 baae30a447a284..68a5664a2ec7de 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-8f3c0525f9-20240521"; +exports.version = "19.0.0-experimental-81c5ff2e04-20240521"; diff --git a/packages/next/src/compiled/react-is/package.json b/packages/next/src/compiled/react-is/package.json index 6325c12ac1a3bc..976411e70de291 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-8f3c0525f9-20240521", + "version": "19.0.0-rc-81c5ff2e04-20240521", "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-client.browser.development.js b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.browser.development.js index 0ee25074c3dfbb..f09bead894163a 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.browser.development.js +++ b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.browser.development.js @@ -1713,8 +1713,24 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case PENDING: case BLOCKED: case CYCLIC: - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) { + for (var i = 0; i < resolveListeners.length; i++) { + chunk.value.push(resolveListeners[i]); + } + } else { + chunk.value = resolveListeners; + } + + if (chunk.reason) { + if (rejectListeners) { + for (var _i = 0; _i < rejectListeners.length; _i++) { + chunk.reason.push(rejectListeners[_i]); + } + } + } else { + chunk.reason = rejectListeners; + } + break; case ERRORED: @@ -2812,8 +2828,8 @@ function mergeBuffer(buffer, lastChunk) { var result = new Uint8Array(byteLength); var offset = 0; // Copy all the buffers into it. - for (var _i = 0; _i < l; _i++) { - var chunk = buffer[_i]; + for (var _i2 = 0; _i2 < l; _i2++) { + var chunk = buffer[_i2]; result.set(chunk, offset); offset += chunk.byteLength; } diff --git a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.browser.production.js b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.browser.production.js index cac37989aea2c2..4f76a708c0710c 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.browser.production.js +++ b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.browser.production.js @@ -522,8 +522,19 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case "pending": case "blocked": case "cyclic": - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) + for (var i = 0; i < resolveListeners.length; i++) + chunk.value.push(resolveListeners[i]); + else chunk.value = resolveListeners; + if (chunk.reason) { + if (rejectListeners) + for ( + resolveListeners = 0; + resolveListeners < rejectListeners.length; + resolveListeners++ + ) + chunk.reason.push(rejectListeners[resolveListeners]); + } else chunk.reason = rejectListeners; break; case "rejected": rejectListeners && wakeChunk(rejectListeners, chunk.reason); @@ -919,8 +930,8 @@ function startReadableStream(response, id, type) { (previousBlockedChunk = chunk)); } else { chunk = previousBlockedChunk; - var chunk$50 = createPendingChunk(response); - chunk$50.then( + var chunk$51 = createPendingChunk(response); + chunk$51.then( function (v) { return controller.enqueue(v); }, @@ -928,10 +939,10 @@ function startReadableStream(response, id, type) { return controller.error(e); } ); - previousBlockedChunk = chunk$50; + previousBlockedChunk = chunk$51; chunk.then(function () { - previousBlockedChunk === chunk$50 && (previousBlockedChunk = null); - resolveModelChunk(chunk$50, json); + previousBlockedChunk === chunk$51 && (previousBlockedChunk = null); + resolveModelChunk(chunk$51, json); }); } }, @@ -1059,8 +1070,8 @@ function mergeBuffer(buffer, lastChunk) { for (var l = buffer.length, byteLength = lastChunk.length, i = 0; i < l; i++) byteLength += buffer[i].byteLength; byteLength = new Uint8Array(byteLength); - for (var i$51 = (i = 0); i$51 < l; i$51++) { - var chunk = buffer[i$51]; + for (var i$52 = (i = 0); i$52 < l; i$52++) { + var chunk = buffer[i$52]; byteLength.set(chunk, i); i += chunk.byteLength; } diff --git a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.edge.development.js b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.edge.development.js index fafcbcc32947a9..ed12dd7c35696b 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.edge.development.js +++ b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.edge.development.js @@ -1985,8 +1985,24 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case PENDING: case BLOCKED: case CYCLIC: - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) { + for (var i = 0; i < resolveListeners.length; i++) { + chunk.value.push(resolveListeners[i]); + } + } else { + chunk.value = resolveListeners; + } + + if (chunk.reason) { + if (rejectListeners) { + for (var _i = 0; _i < rejectListeners.length; _i++) { + chunk.reason.push(rejectListeners[_i]); + } + } + } else { + chunk.reason = rejectListeners; + } + break; case ERRORED: @@ -3085,8 +3101,8 @@ function mergeBuffer(buffer, lastChunk) { var result = new Uint8Array(byteLength); var offset = 0; // Copy all the buffers into it. - for (var _i = 0; _i < l; _i++) { - var chunk = buffer[_i]; + for (var _i2 = 0; _i2 < l; _i2++) { + var chunk = buffer[_i2]; result.set(chunk, offset); offset += chunk.byteLength; } diff --git a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.edge.production.js b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.edge.production.js index 1202aa6d5fd164..f3dfe37a3e24e1 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.edge.production.js +++ b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.edge.production.js @@ -685,8 +685,19 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case "pending": case "blocked": case "cyclic": - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) + for (var i = 0; i < resolveListeners.length; i++) + chunk.value.push(resolveListeners[i]); + else chunk.value = resolveListeners; + if (chunk.reason) { + if (rejectListeners) + for ( + resolveListeners = 0; + resolveListeners < rejectListeners.length; + resolveListeners++ + ) + chunk.reason.push(rejectListeners[resolveListeners]); + } else chunk.reason = rejectListeners; break; case "rejected": rejectListeners && wakeChunk(rejectListeners, chunk.reason); @@ -1087,8 +1098,8 @@ function startReadableStream(response, id, type) { (previousBlockedChunk = chunk)); } else { chunk = previousBlockedChunk; - var chunk$50 = createPendingChunk(response); - chunk$50.then( + var chunk$51 = createPendingChunk(response); + chunk$51.then( function (v) { return controller.enqueue(v); }, @@ -1096,10 +1107,10 @@ function startReadableStream(response, id, type) { return controller.error(e); } ); - previousBlockedChunk = chunk$50; + previousBlockedChunk = chunk$51; chunk.then(function () { - previousBlockedChunk === chunk$50 && (previousBlockedChunk = null); - resolveModelChunk(chunk$50, json); + previousBlockedChunk === chunk$51 && (previousBlockedChunk = null); + resolveModelChunk(chunk$51, json); }); } }, @@ -1227,8 +1238,8 @@ function mergeBuffer(buffer, lastChunk) { for (var l = buffer.length, byteLength = lastChunk.length, i = 0; i < l; i++) byteLength += buffer[i].byteLength; byteLength = new Uint8Array(byteLength); - for (var i$51 = (i = 0); i$51 < l; i$51++) { - var chunk = buffer[i$51]; + for (var i$52 = (i = 0); i$52 < l; i$52++) { + var chunk = buffer[i$52]; byteLength.set(chunk, i); i += chunk.byteLength; } diff --git a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.node.development.js b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.node.development.js index aa6b955e7befdd..9226f9f98fcaa8 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.node.development.js +++ b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.node.development.js @@ -1983,8 +1983,24 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case PENDING: case BLOCKED: case CYCLIC: - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) { + for (var i = 0; i < resolveListeners.length; i++) { + chunk.value.push(resolveListeners[i]); + } + } else { + chunk.value = resolveListeners; + } + + if (chunk.reason) { + if (rejectListeners) { + for (var _i = 0; _i < rejectListeners.length; _i++) { + chunk.reason.push(rejectListeners[_i]); + } + } + } else { + chunk.reason = rejectListeners; + } + break; case ERRORED: @@ -3083,8 +3099,8 @@ function mergeBuffer(buffer, lastChunk) { var result = new Uint8Array(byteLength); var offset = 0; // Copy all the buffers into it. - for (var _i = 0; _i < l; _i++) { - var chunk = buffer[_i]; + for (var _i2 = 0; _i2 < l; _i2++) { + var chunk = buffer[_i2]; result.set(chunk, offset); offset += chunk.byteLength; } diff --git a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.node.production.js b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.node.production.js index 62126fb258f706..53d4037941563e 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.node.production.js +++ b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.node.production.js @@ -686,8 +686,19 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case "pending": case "blocked": case "cyclic": - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) + for (var i = 0; i < resolveListeners.length; i++) + chunk.value.push(resolveListeners[i]); + else chunk.value = resolveListeners; + if (chunk.reason) { + if (rejectListeners) + for ( + resolveListeners = 0; + resolveListeners < rejectListeners.length; + resolveListeners++ + ) + chunk.reason.push(rejectListeners[resolveListeners]); + } else chunk.reason = rejectListeners; break; case "rejected": rejectListeners && wakeChunk(rejectListeners, chunk.reason); @@ -1116,8 +1127,8 @@ function startReadableStream(response, id, type) { (previousBlockedChunk = chunk)); } else { chunk = previousBlockedChunk; - var chunk$50 = createPendingChunk(response); - chunk$50.then( + var chunk$51 = createPendingChunk(response); + chunk$51.then( function (v) { return controller.enqueue(v); }, @@ -1125,10 +1136,10 @@ function startReadableStream(response, id, type) { return controller.error(e); } ); - previousBlockedChunk = chunk$50; + previousBlockedChunk = chunk$51; chunk.then(function () { - previousBlockedChunk === chunk$50 && (previousBlockedChunk = null); - resolveModelChunk(chunk$50, json); + previousBlockedChunk === chunk$51 && (previousBlockedChunk = null); + resolveModelChunk(chunk$51, json); }); } }, @@ -1256,8 +1267,8 @@ function mergeBuffer(buffer, lastChunk) { for (var l = buffer.length, byteLength = lastChunk.length, i = 0; i < l; i++) byteLength += buffer[i].byteLength; byteLength = new Uint8Array(byteLength); - for (var i$51 = (i = 0); i$51 < l; i$51++) { - var chunk = buffer[i$51]; + for (var i$52 = (i = 0); i$52 < l; i$52++) { + var chunk = buffer[i$52]; byteLength.set(chunk, i); i += chunk.byteLength; } diff --git a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.node.unbundled.development.js b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.node.unbundled.development.js index c692f1f10744e1..272e8ce95b197c 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.node.unbundled.development.js +++ b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.node.unbundled.development.js @@ -1938,8 +1938,24 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case PENDING: case BLOCKED: case CYCLIC: - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) { + for (var i = 0; i < resolveListeners.length; i++) { + chunk.value.push(resolveListeners[i]); + } + } else { + chunk.value = resolveListeners; + } + + if (chunk.reason) { + if (rejectListeners) { + for (var _i = 0; _i < rejectListeners.length; _i++) { + chunk.reason.push(rejectListeners[_i]); + } + } + } else { + chunk.reason = rejectListeners; + } + break; case ERRORED: @@ -3038,8 +3054,8 @@ function mergeBuffer(buffer, lastChunk) { var result = new Uint8Array(byteLength); var offset = 0; // Copy all the buffers into it. - for (var _i = 0; _i < l; _i++) { - var chunk = buffer[_i]; + for (var _i2 = 0; _i2 < l; _i2++) { + var chunk = buffer[_i2]; result.set(chunk, offset); offset += chunk.byteLength; } diff --git a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.node.unbundled.production.js b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.node.unbundled.production.js index bd3089b6cfbd92..c75ecb1c031f90 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.node.unbundled.production.js +++ b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.node.unbundled.production.js @@ -670,8 +670,19 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case "pending": case "blocked": case "cyclic": - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) + for (var i = 0; i < resolveListeners.length; i++) + chunk.value.push(resolveListeners[i]); + else chunk.value = resolveListeners; + if (chunk.reason) { + if (rejectListeners) + for ( + resolveListeners = 0; + resolveListeners < rejectListeners.length; + resolveListeners++ + ) + chunk.reason.push(rejectListeners[resolveListeners]); + } else chunk.reason = rejectListeners; break; case "rejected": rejectListeners && wakeChunk(rejectListeners, chunk.reason); @@ -1096,8 +1107,8 @@ function startReadableStream(response, id, type) { (previousBlockedChunk = chunk)); } else { chunk = previousBlockedChunk; - var chunk$50 = createPendingChunk(response); - chunk$50.then( + var chunk$51 = createPendingChunk(response); + chunk$51.then( function (v) { return controller.enqueue(v); }, @@ -1105,10 +1116,10 @@ function startReadableStream(response, id, type) { return controller.error(e); } ); - previousBlockedChunk = chunk$50; + previousBlockedChunk = chunk$51; chunk.then(function () { - previousBlockedChunk === chunk$50 && (previousBlockedChunk = null); - resolveModelChunk(chunk$50, json); + previousBlockedChunk === chunk$51 && (previousBlockedChunk = null); + resolveModelChunk(chunk$51, json); }); } }, @@ -1236,8 +1247,8 @@ function mergeBuffer(buffer, lastChunk) { for (var l = buffer.length, byteLength = lastChunk.length, i = 0; i < l; i++) byteLength += buffer[i].byteLength; byteLength = new Uint8Array(byteLength); - for (var i$51 = (i = 0); i$51 < l; i$51++) { - var chunk = buffer[i$51]; + for (var i$52 = (i = 0); i$52 < l; i$52++) { + var chunk = buffer[i$52]; byteLength.set(chunk, i); i += chunk.byteLength; } diff --git a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.browser.development.js b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.browser.development.js index c3df8fdf325107..d3162922f19dd9 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.browser.development.js +++ b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.browser.development.js @@ -4576,8 +4576,24 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case PENDING: case BLOCKED: case CYCLIC: - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) { + for (var i = 0; i < resolveListeners.length; i++) { + chunk.value.push(resolveListeners[i]); + } + } else { + chunk.value = resolveListeners; + } + + if (chunk.reason) { + if (rejectListeners) { + for (var _i = 0; _i < rejectListeners.length; _i++) { + chunk.reason.push(rejectListeners[_i]); + } + } + } else { + chunk.reason = rejectListeners; + } + break; case ERRORED: diff --git a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.browser.production.js b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.browser.production.js index 8383711f1c6455..1cac8aae637c4f 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.browser.production.js +++ b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.browser.production.js @@ -2022,8 +2022,15 @@ function resolveModelChunk(chunk, value, id) { case "pending": case "blocked": case "cyclic": - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) + for (value = 0; value < resolveListeners.length; value++) + chunk.value.push(resolveListeners[value]); + else chunk.value = resolveListeners; + if (chunk.reason) { + if (rejectListeners) + for (value = 0; value < rejectListeners.length; value++) + chunk.reason.push(rejectListeners[value]); + } else chunk.reason = rejectListeners; break; case "rejected": rejectListeners && wakeChunk(rejectListeners, chunk.reason); @@ -2317,8 +2324,8 @@ function parseReadableStream(response, reference, type) { (previousBlockedChunk = chunk)); } else { chunk = previousBlockedChunk; - var chunk$29 = createPendingChunk(response); - chunk$29.then( + var chunk$30 = createPendingChunk(response); + chunk$30.then( function (v) { return controller.enqueue(v); }, @@ -2326,10 +2333,10 @@ function parseReadableStream(response, reference, type) { return controller.error(e); } ); - previousBlockedChunk = chunk$29; + previousBlockedChunk = chunk$30; chunk.then(function () { - previousBlockedChunk === chunk$29 && (previousBlockedChunk = null); - resolveModelChunk(chunk$29, json, -1); + previousBlockedChunk === chunk$30 && (previousBlockedChunk = null); + resolveModelChunk(chunk$30, json, -1); }); } }, diff --git a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.edge.development.js b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.edge.development.js index c0bb0ace585c7c..283f6d9c6dfbe6 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.edge.development.js +++ b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.edge.development.js @@ -4629,8 +4629,24 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case PENDING: case BLOCKED: case CYCLIC: - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) { + for (var i = 0; i < resolveListeners.length; i++) { + chunk.value.push(resolveListeners[i]); + } + } else { + chunk.value = resolveListeners; + } + + if (chunk.reason) { + if (rejectListeners) { + for (var _i = 0; _i < rejectListeners.length; _i++) { + chunk.reason.push(rejectListeners[_i]); + } + } + } else { + chunk.reason = rejectListeners; + } + break; case ERRORED: diff --git a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.edge.production.js b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.edge.production.js index 219684012b1aa3..1bba681775449b 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.edge.production.js +++ b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.edge.production.js @@ -2055,8 +2055,15 @@ function resolveModelChunk(chunk, value, id) { case "pending": case "blocked": case "cyclic": - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) + for (value = 0; value < resolveListeners.length; value++) + chunk.value.push(resolveListeners[value]); + else chunk.value = resolveListeners; + if (chunk.reason) { + if (rejectListeners) + for (value = 0; value < rejectListeners.length; value++) + chunk.reason.push(rejectListeners[value]); + } else chunk.reason = rejectListeners; break; case "rejected": rejectListeners && wakeChunk(rejectListeners, chunk.reason); @@ -2350,8 +2357,8 @@ function parseReadableStream(response, reference, type) { (previousBlockedChunk = chunk)); } else { chunk = previousBlockedChunk; - var chunk$29 = createPendingChunk(response); - chunk$29.then( + var chunk$30 = createPendingChunk(response); + chunk$30.then( function (v) { return controller.enqueue(v); }, @@ -2359,10 +2366,10 @@ function parseReadableStream(response, reference, type) { return controller.error(e); } ); - previousBlockedChunk = chunk$29; + previousBlockedChunk = chunk$30; chunk.then(function () { - previousBlockedChunk === chunk$29 && (previousBlockedChunk = null); - resolveModelChunk(chunk$29, json, -1); + previousBlockedChunk === chunk$30 && (previousBlockedChunk = null); + resolveModelChunk(chunk$30, json, -1); }); } }, 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 d59ec8da5d8856..a52f3d07c082be 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 @@ -4674,8 +4674,24 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case PENDING: case BLOCKED: case CYCLIC: - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) { + for (var i = 0; i < resolveListeners.length; i++) { + chunk.value.push(resolveListeners[i]); + } + } else { + chunk.value = resolveListeners; + } + + if (chunk.reason) { + if (rejectListeners) { + for (var _i = 0; _i < rejectListeners.length; _i++) { + chunk.reason.push(rejectListeners[_i]); + } + } + } else { + chunk.reason = rejectListeners; + } + break; case ERRORED: 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 ebaabf306834d5..7b62ab8ce58c78 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 @@ -2099,8 +2099,15 @@ function resolveModelChunk(chunk, value, id) { case "pending": case "blocked": case "cyclic": - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) + for (value = 0; value < resolveListeners.length; value++) + chunk.value.push(resolveListeners[value]); + else chunk.value = resolveListeners; + if (chunk.reason) { + if (rejectListeners) + for (value = 0; value < rejectListeners.length; value++) + chunk.reason.push(rejectListeners[value]); + } else chunk.reason = rejectListeners; break; case "rejected": rejectListeners && wakeChunk(rejectListeners, chunk.reason); @@ -2394,8 +2401,8 @@ function parseReadableStream(response, reference, type) { (previousBlockedChunk = chunk)); } else { chunk = previousBlockedChunk; - var chunk$29 = createPendingChunk(response); - chunk$29.then( + var chunk$30 = createPendingChunk(response); + chunk$30.then( function (v) { return controller.enqueue(v); }, @@ -2403,10 +2410,10 @@ function parseReadableStream(response, reference, type) { return controller.error(e); } ); - previousBlockedChunk = chunk$29; + previousBlockedChunk = chunk$30; chunk.then(function () { - previousBlockedChunk === chunk$29 && (previousBlockedChunk = null); - resolveModelChunk(chunk$29, json, -1); + previousBlockedChunk === chunk$30 && (previousBlockedChunk = null); + resolveModelChunk(chunk$30, json, -1); }); } }, @@ -2760,12 +2767,12 @@ exports.decodeReplyFromBusboy = function (busboyStream, turbopackMap) { "React doesn't accept base64 encoded file uploads because we don't expect form data passed from a browser to ever encode data that way. If that's the wrong assumption, we can easily fix it." ); pendingFiles++; - var JSCompiler_object_inline_chunks_200 = []; + var JSCompiler_object_inline_chunks_203 = []; value.on("data", function (chunk) { - JSCompiler_object_inline_chunks_200.push(chunk); + JSCompiler_object_inline_chunks_203.push(chunk); }); value.on("end", function () { - var blob = new Blob(JSCompiler_object_inline_chunks_200, { + var blob = new Blob(JSCompiler_object_inline_chunks_203, { type: mimeType }); response._formData.append(name, blob, filename); 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 091e150501948c..a70687fd9bb8b4 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 @@ -4603,8 +4603,24 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case PENDING: case BLOCKED: case CYCLIC: - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) { + for (var i = 0; i < resolveListeners.length; i++) { + chunk.value.push(resolveListeners[i]); + } + } else { + chunk.value = resolveListeners; + } + + if (chunk.reason) { + if (rejectListeners) { + for (var _i = 0; _i < rejectListeners.length; _i++) { + chunk.reason.push(rejectListeners[_i]); + } + } + } else { + chunk.reason = rejectListeners; + } + break; case ERRORED: 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 c3d8c07e256686..8265c99a7ce84f 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 @@ -2068,8 +2068,15 @@ function resolveModelChunk(chunk, value, id) { case "pending": case "blocked": case "cyclic": - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) + for (value = 0; value < resolveListeners.length; value++) + chunk.value.push(resolveListeners[value]); + else chunk.value = resolveListeners; + if (chunk.reason) { + if (rejectListeners) + for (value = 0; value < rejectListeners.length; value++) + chunk.reason.push(rejectListeners[value]); + } else chunk.reason = rejectListeners; break; case "rejected": rejectListeners && wakeChunk(rejectListeners, chunk.reason); @@ -2363,8 +2370,8 @@ function parseReadableStream(response, reference, type) { (previousBlockedChunk = chunk)); } else { chunk = previousBlockedChunk; - var chunk$29 = createPendingChunk(response); - chunk$29.then( + var chunk$30 = createPendingChunk(response); + chunk$30.then( function (v) { return controller.enqueue(v); }, @@ -2372,10 +2379,10 @@ function parseReadableStream(response, reference, type) { return controller.error(e); } ); - previousBlockedChunk = chunk$29; + previousBlockedChunk = chunk$30; chunk.then(function () { - previousBlockedChunk === chunk$29 && (previousBlockedChunk = null); - resolveModelChunk(chunk$29, json, -1); + previousBlockedChunk === chunk$30 && (previousBlockedChunk = null); + resolveModelChunk(chunk$30, json, -1); }); } }, @@ -2729,12 +2736,12 @@ exports.decodeReplyFromBusboy = function (busboyStream, turbopackMap) { "React doesn't accept base64 encoded file uploads because we don't expect form data passed from a browser to ever encode data that way. If that's the wrong assumption, we can easily fix it." ); pendingFiles++; - var JSCompiler_object_inline_chunks_200 = []; + var JSCompiler_object_inline_chunks_203 = []; value.on("data", function (chunk) { - JSCompiler_object_inline_chunks_200.push(chunk); + JSCompiler_object_inline_chunks_203.push(chunk); }); value.on("end", function () { - var blob = new Blob(JSCompiler_object_inline_chunks_200, { + var blob = new Blob(JSCompiler_object_inline_chunks_203, { type: mimeType }); response._formData.append(name, blob, filename); 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 509d6b8378674a..536407cc88625c 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-8f3c0525f9-20240521", - "react-dom": "0.0.0-experimental-8f3c0525f9-20240521" + "react": "0.0.0-experimental-81c5ff2e04-20240521", + "react-dom": "0.0.0-experimental-81c5ff2e04-20240521" } } \ No newline at end of file diff --git a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js index 9f57497b5b8524..106863e2b2d654 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js +++ b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js @@ -1712,8 +1712,24 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case PENDING: case BLOCKED: case CYCLIC: - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) { + for (var i = 0; i < resolveListeners.length; i++) { + chunk.value.push(resolveListeners[i]); + } + } else { + chunk.value = resolveListeners; + } + + if (chunk.reason) { + if (rejectListeners) { + for (var _i = 0; _i < rejectListeners.length; _i++) { + chunk.reason.push(rejectListeners[_i]); + } + } + } else { + chunk.reason = rejectListeners; + } + break; case ERRORED: @@ -2777,8 +2793,8 @@ function mergeBuffer(buffer, lastChunk) { var result = new Uint8Array(byteLength); var offset = 0; // Copy all the buffers into it. - for (var _i = 0; _i < l; _i++) { - var chunk = buffer[_i]; + for (var _i2 = 0; _i2 < l; _i2++) { + var chunk = buffer[_i2]; result.set(chunk, offset); offset += chunk.byteLength; } diff --git a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.production.js b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.production.js index c56e0aa5210126..abc08f0de0a914 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.production.js +++ b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.production.js @@ -521,8 +521,19 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case "pending": case "blocked": case "cyclic": - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) + for (var i = 0; i < resolveListeners.length; i++) + chunk.value.push(resolveListeners[i]); + else chunk.value = resolveListeners; + if (chunk.reason) { + if (rejectListeners) + for ( + resolveListeners = 0; + resolveListeners < rejectListeners.length; + resolveListeners++ + ) + chunk.reason.push(rejectListeners[resolveListeners]); + } else chunk.reason = rejectListeners; break; case "rejected": rejectListeners && wakeChunk(rejectListeners, chunk.reason); @@ -918,8 +929,8 @@ function startReadableStream(response, id, type) { (previousBlockedChunk = chunk)); } else { chunk = previousBlockedChunk; - var chunk$50 = createPendingChunk(response); - chunk$50.then( + var chunk$51 = createPendingChunk(response); + chunk$51.then( function (v) { return controller.enqueue(v); }, @@ -927,10 +938,10 @@ function startReadableStream(response, id, type) { return controller.error(e); } ); - previousBlockedChunk = chunk$50; + previousBlockedChunk = chunk$51; chunk.then(function () { - previousBlockedChunk === chunk$50 && (previousBlockedChunk = null); - resolveModelChunk(chunk$50, json); + previousBlockedChunk === chunk$51 && (previousBlockedChunk = null); + resolveModelChunk(chunk$51, json); }); } }, @@ -1058,8 +1069,8 @@ function mergeBuffer(buffer, lastChunk) { for (var l = buffer.length, byteLength = lastChunk.length, i = 0; i < l; i++) byteLength += buffer[i].byteLength; byteLength = new Uint8Array(byteLength); - for (var i$51 = (i = 0); i$51 < l; i$51++) { - var chunk = buffer[i$51]; + for (var i$52 = (i = 0); i$52 < l; i$52++) { + var chunk = buffer[i$52]; byteLength.set(chunk, i); i += chunk.byteLength; } diff --git a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.edge.development.js b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.edge.development.js index bad97e26bf07a3..b1c41ce34e206f 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.edge.development.js +++ b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.edge.development.js @@ -1984,8 +1984,24 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case PENDING: case BLOCKED: case CYCLIC: - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) { + for (var i = 0; i < resolveListeners.length; i++) { + chunk.value.push(resolveListeners[i]); + } + } else { + chunk.value = resolveListeners; + } + + if (chunk.reason) { + if (rejectListeners) { + for (var _i = 0; _i < rejectListeners.length; _i++) { + chunk.reason.push(rejectListeners[_i]); + } + } + } else { + chunk.reason = rejectListeners; + } + break; case ERRORED: @@ -3050,8 +3066,8 @@ function mergeBuffer(buffer, lastChunk) { var result = new Uint8Array(byteLength); var offset = 0; // Copy all the buffers into it. - for (var _i = 0; _i < l; _i++) { - var chunk = buffer[_i]; + for (var _i2 = 0; _i2 < l; _i2++) { + var chunk = buffer[_i2]; result.set(chunk, offset); offset += chunk.byteLength; } diff --git a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.edge.production.js b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.edge.production.js index 4396f453383611..76c0a22e2be398 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.edge.production.js +++ b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.edge.production.js @@ -684,8 +684,19 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case "pending": case "blocked": case "cyclic": - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) + for (var i = 0; i < resolveListeners.length; i++) + chunk.value.push(resolveListeners[i]); + else chunk.value = resolveListeners; + if (chunk.reason) { + if (rejectListeners) + for ( + resolveListeners = 0; + resolveListeners < rejectListeners.length; + resolveListeners++ + ) + chunk.reason.push(rejectListeners[resolveListeners]); + } else chunk.reason = rejectListeners; break; case "rejected": rejectListeners && wakeChunk(rejectListeners, chunk.reason); @@ -1086,8 +1097,8 @@ function startReadableStream(response, id, type) { (previousBlockedChunk = chunk)); } else { chunk = previousBlockedChunk; - var chunk$50 = createPendingChunk(response); - chunk$50.then( + var chunk$51 = createPendingChunk(response); + chunk$51.then( function (v) { return controller.enqueue(v); }, @@ -1095,10 +1106,10 @@ function startReadableStream(response, id, type) { return controller.error(e); } ); - previousBlockedChunk = chunk$50; + previousBlockedChunk = chunk$51; chunk.then(function () { - previousBlockedChunk === chunk$50 && (previousBlockedChunk = null); - resolveModelChunk(chunk$50, json); + previousBlockedChunk === chunk$51 && (previousBlockedChunk = null); + resolveModelChunk(chunk$51, json); }); } }, @@ -1226,8 +1237,8 @@ function mergeBuffer(buffer, lastChunk) { for (var l = buffer.length, byteLength = lastChunk.length, i = 0; i < l; i++) byteLength += buffer[i].byteLength; byteLength = new Uint8Array(byteLength); - for (var i$51 = (i = 0); i$51 < l; i$51++) { - var chunk = buffer[i$51]; + for (var i$52 = (i = 0); i$52 < l; i$52++) { + var chunk = buffer[i$52]; byteLength.set(chunk, i); i += chunk.byteLength; } diff --git a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.development.js b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.development.js index 962919c65d4ffd..1f1e4c89172a6e 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.development.js +++ b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.development.js @@ -1982,8 +1982,24 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case PENDING: case BLOCKED: case CYCLIC: - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) { + for (var i = 0; i < resolveListeners.length; i++) { + chunk.value.push(resolveListeners[i]); + } + } else { + chunk.value = resolveListeners; + } + + if (chunk.reason) { + if (rejectListeners) { + for (var _i = 0; _i < rejectListeners.length; _i++) { + chunk.reason.push(rejectListeners[_i]); + } + } + } else { + chunk.reason = rejectListeners; + } + break; case ERRORED: @@ -3048,8 +3064,8 @@ function mergeBuffer(buffer, lastChunk) { var result = new Uint8Array(byteLength); var offset = 0; // Copy all the buffers into it. - for (var _i = 0; _i < l; _i++) { - var chunk = buffer[_i]; + for (var _i2 = 0; _i2 < l; _i2++) { + var chunk = buffer[_i2]; result.set(chunk, offset); offset += chunk.byteLength; } diff --git a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.production.js b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.production.js index 0eb17a317fbf24..ca1ca5681be379 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.production.js +++ b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.production.js @@ -685,8 +685,19 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case "pending": case "blocked": case "cyclic": - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) + for (var i = 0; i < resolveListeners.length; i++) + chunk.value.push(resolveListeners[i]); + else chunk.value = resolveListeners; + if (chunk.reason) { + if (rejectListeners) + for ( + resolveListeners = 0; + resolveListeners < rejectListeners.length; + resolveListeners++ + ) + chunk.reason.push(rejectListeners[resolveListeners]); + } else chunk.reason = rejectListeners; break; case "rejected": rejectListeners && wakeChunk(rejectListeners, chunk.reason); @@ -1115,8 +1126,8 @@ function startReadableStream(response, id, type) { (previousBlockedChunk = chunk)); } else { chunk = previousBlockedChunk; - var chunk$50 = createPendingChunk(response); - chunk$50.then( + var chunk$51 = createPendingChunk(response); + chunk$51.then( function (v) { return controller.enqueue(v); }, @@ -1124,10 +1135,10 @@ function startReadableStream(response, id, type) { return controller.error(e); } ); - previousBlockedChunk = chunk$50; + previousBlockedChunk = chunk$51; chunk.then(function () { - previousBlockedChunk === chunk$50 && (previousBlockedChunk = null); - resolveModelChunk(chunk$50, json); + previousBlockedChunk === chunk$51 && (previousBlockedChunk = null); + resolveModelChunk(chunk$51, json); }); } }, @@ -1255,8 +1266,8 @@ function mergeBuffer(buffer, lastChunk) { for (var l = buffer.length, byteLength = lastChunk.length, i = 0; i < l; i++) byteLength += buffer[i].byteLength; byteLength = new Uint8Array(byteLength); - for (var i$51 = (i = 0); i$51 < l; i$51++) { - var chunk = buffer[i$51]; + for (var i$52 = (i = 0); i$52 < l; i$52++) { + var chunk = buffer[i$52]; byteLength.set(chunk, i); i += chunk.byteLength; } diff --git a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.unbundled.development.js b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.unbundled.development.js index 6c35dd2209445d..3d0843769c9a1a 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.unbundled.development.js +++ b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.unbundled.development.js @@ -1937,8 +1937,24 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case PENDING: case BLOCKED: case CYCLIC: - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) { + for (var i = 0; i < resolveListeners.length; i++) { + chunk.value.push(resolveListeners[i]); + } + } else { + chunk.value = resolveListeners; + } + + if (chunk.reason) { + if (rejectListeners) { + for (var _i = 0; _i < rejectListeners.length; _i++) { + chunk.reason.push(rejectListeners[_i]); + } + } + } else { + chunk.reason = rejectListeners; + } + break; case ERRORED: @@ -3003,8 +3019,8 @@ function mergeBuffer(buffer, lastChunk) { var result = new Uint8Array(byteLength); var offset = 0; // Copy all the buffers into it. - for (var _i = 0; _i < l; _i++) { - var chunk = buffer[_i]; + for (var _i2 = 0; _i2 < l; _i2++) { + var chunk = buffer[_i2]; result.set(chunk, offset); offset += chunk.byteLength; } diff --git a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.unbundled.production.js b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.unbundled.production.js index 7b5de2366321b9..7e358dfba9ad90 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.unbundled.production.js +++ b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.unbundled.production.js @@ -669,8 +669,19 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case "pending": case "blocked": case "cyclic": - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) + for (var i = 0; i < resolveListeners.length; i++) + chunk.value.push(resolveListeners[i]); + else chunk.value = resolveListeners; + if (chunk.reason) { + if (rejectListeners) + for ( + resolveListeners = 0; + resolveListeners < rejectListeners.length; + resolveListeners++ + ) + chunk.reason.push(rejectListeners[resolveListeners]); + } else chunk.reason = rejectListeners; break; case "rejected": rejectListeners && wakeChunk(rejectListeners, chunk.reason); @@ -1095,8 +1106,8 @@ function startReadableStream(response, id, type) { (previousBlockedChunk = chunk)); } else { chunk = previousBlockedChunk; - var chunk$50 = createPendingChunk(response); - chunk$50.then( + var chunk$51 = createPendingChunk(response); + chunk$51.then( function (v) { return controller.enqueue(v); }, @@ -1104,10 +1115,10 @@ function startReadableStream(response, id, type) { return controller.error(e); } ); - previousBlockedChunk = chunk$50; + previousBlockedChunk = chunk$51; chunk.then(function () { - previousBlockedChunk === chunk$50 && (previousBlockedChunk = null); - resolveModelChunk(chunk$50, json); + previousBlockedChunk === chunk$51 && (previousBlockedChunk = null); + resolveModelChunk(chunk$51, json); }); } }, @@ -1235,8 +1246,8 @@ function mergeBuffer(buffer, lastChunk) { for (var l = buffer.length, byteLength = lastChunk.length, i = 0; i < l; i++) byteLength += buffer[i].byteLength; byteLength = new Uint8Array(byteLength); - for (var i$51 = (i = 0); i$51 < l; i$51++) { - var chunk = buffer[i$51]; + for (var i$52 = (i = 0); i$52 < l; i$52++) { + var chunk = buffer[i$52]; byteLength.set(chunk, i); i += chunk.byteLength; } diff --git a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.development.js b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.development.js index 5f189d9163a4c1..d647831a01a7ea 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.development.js +++ b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.development.js @@ -4227,8 +4227,24 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case PENDING: case BLOCKED: case CYCLIC: - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) { + for (var i = 0; i < resolveListeners.length; i++) { + chunk.value.push(resolveListeners[i]); + } + } else { + chunk.value = resolveListeners; + } + + if (chunk.reason) { + if (rejectListeners) { + for (var _i = 0; _i < rejectListeners.length; _i++) { + chunk.reason.push(rejectListeners[_i]); + } + } + } else { + chunk.reason = rejectListeners; + } + break; case ERRORED: diff --git a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.production.js b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.production.js index f23b0f7d0e85ba..a0c15d6ab9bd95 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.production.js +++ b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.production.js @@ -1888,8 +1888,15 @@ function resolveModelChunk(chunk, value, id) { case "pending": case "blocked": case "cyclic": - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) + for (value = 0; value < resolveListeners.length; value++) + chunk.value.push(resolveListeners[value]); + else chunk.value = resolveListeners; + if (chunk.reason) { + if (rejectListeners) + for (value = 0; value < rejectListeners.length; value++) + chunk.reason.push(rejectListeners[value]); + } else chunk.reason = rejectListeners; break; case "rejected": rejectListeners && wakeChunk(rejectListeners, chunk.reason); @@ -2183,8 +2190,8 @@ function parseReadableStream(response, reference, type) { (previousBlockedChunk = chunk)); } else { chunk = previousBlockedChunk; - var chunk$25 = createPendingChunk(response); - chunk$25.then( + var chunk$26 = createPendingChunk(response); + chunk$26.then( function (v) { return controller.enqueue(v); }, @@ -2192,10 +2199,10 @@ function parseReadableStream(response, reference, type) { return controller.error(e); } ); - previousBlockedChunk = chunk$25; + previousBlockedChunk = chunk$26; chunk.then(function () { - previousBlockedChunk === chunk$25 && (previousBlockedChunk = null); - resolveModelChunk(chunk$25, json, -1); + previousBlockedChunk === chunk$26 && (previousBlockedChunk = null); + resolveModelChunk(chunk$26, json, -1); }); } }, diff --git a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.development.js b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.development.js index bac622329254de..8e31230e7473c8 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.development.js +++ b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.development.js @@ -4258,8 +4258,24 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case PENDING: case BLOCKED: case CYCLIC: - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) { + for (var i = 0; i < resolveListeners.length; i++) { + chunk.value.push(resolveListeners[i]); + } + } else { + chunk.value = resolveListeners; + } + + if (chunk.reason) { + if (rejectListeners) { + for (var _i = 0; _i < rejectListeners.length; _i++) { + chunk.reason.push(rejectListeners[_i]); + } + } + } else { + chunk.reason = rejectListeners; + } + break; case ERRORED: diff --git a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.production.js b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.production.js index 940009385b2cc4..eb797f4e51d21a 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.production.js +++ b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.production.js @@ -1919,8 +1919,15 @@ function resolveModelChunk(chunk, value, id) { case "pending": case "blocked": case "cyclic": - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) + for (value = 0; value < resolveListeners.length; value++) + chunk.value.push(resolveListeners[value]); + else chunk.value = resolveListeners; + if (chunk.reason) { + if (rejectListeners) + for (value = 0; value < rejectListeners.length; value++) + chunk.reason.push(rejectListeners[value]); + } else chunk.reason = rejectListeners; break; case "rejected": rejectListeners && wakeChunk(rejectListeners, chunk.reason); @@ -2214,8 +2221,8 @@ function parseReadableStream(response, reference, type) { (previousBlockedChunk = chunk)); } else { chunk = previousBlockedChunk; - var chunk$25 = createPendingChunk(response); - chunk$25.then( + var chunk$26 = createPendingChunk(response); + chunk$26.then( function (v) { return controller.enqueue(v); }, @@ -2223,10 +2230,10 @@ function parseReadableStream(response, reference, type) { return controller.error(e); } ); - previousBlockedChunk = chunk$25; + previousBlockedChunk = chunk$26; chunk.then(function () { - previousBlockedChunk === chunk$25 && (previousBlockedChunk = null); - resolveModelChunk(chunk$25, json, -1); + previousBlockedChunk === chunk$26 && (previousBlockedChunk = null); + resolveModelChunk(chunk$26, json, -1); }); } }, 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 fe0f6b92103b5d..b26e69b50fa20b 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 @@ -4303,8 +4303,24 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case PENDING: case BLOCKED: case CYCLIC: - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) { + for (var i = 0; i < resolveListeners.length; i++) { + chunk.value.push(resolveListeners[i]); + } + } else { + chunk.value = resolveListeners; + } + + if (chunk.reason) { + if (rejectListeners) { + for (var _i = 0; _i < rejectListeners.length; _i++) { + chunk.reason.push(rejectListeners[_i]); + } + } + } else { + chunk.reason = rejectListeners; + } + break; case ERRORED: 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 cf5cfc74be9249..afad370b0b4a91 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 @@ -1967,8 +1967,15 @@ function resolveModelChunk(chunk, value, id) { case "pending": case "blocked": case "cyclic": - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) + for (value = 0; value < resolveListeners.length; value++) + chunk.value.push(resolveListeners[value]); + else chunk.value = resolveListeners; + if (chunk.reason) { + if (rejectListeners) + for (value = 0; value < rejectListeners.length; value++) + chunk.reason.push(rejectListeners[value]); + } else chunk.reason = rejectListeners; break; case "rejected": rejectListeners && wakeChunk(rejectListeners, chunk.reason); @@ -2262,8 +2269,8 @@ function parseReadableStream(response, reference, type) { (previousBlockedChunk = chunk)); } else { chunk = previousBlockedChunk; - var chunk$25 = createPendingChunk(response); - chunk$25.then( + var chunk$26 = createPendingChunk(response); + chunk$26.then( function (v) { return controller.enqueue(v); }, @@ -2271,10 +2278,10 @@ function parseReadableStream(response, reference, type) { return controller.error(e); } ); - previousBlockedChunk = chunk$25; + previousBlockedChunk = chunk$26; chunk.then(function () { - previousBlockedChunk === chunk$25 && (previousBlockedChunk = null); - resolveModelChunk(chunk$25, json, -1); + previousBlockedChunk === chunk$26 && (previousBlockedChunk = null); + resolveModelChunk(chunk$26, json, -1); }); } }, @@ -2628,12 +2635,12 @@ exports.decodeReplyFromBusboy = function (busboyStream, turbopackMap) { "React doesn't accept base64 encoded file uploads because we don't expect form data passed from a browser to ever encode data that way. If that's the wrong assumption, we can easily fix it." ); pendingFiles++; - var JSCompiler_object_inline_chunks_213 = []; + var JSCompiler_object_inline_chunks_216 = []; value.on("data", function (chunk) { - JSCompiler_object_inline_chunks_213.push(chunk); + JSCompiler_object_inline_chunks_216.push(chunk); }); value.on("end", function () { - var blob = new Blob(JSCompiler_object_inline_chunks_213, { + var blob = new Blob(JSCompiler_object_inline_chunks_216, { type: mimeType }); response._formData.append(name, blob, filename); 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 8bc4e4583bec7b..736bf5fa140706 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 @@ -4232,8 +4232,24 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case PENDING: case BLOCKED: case CYCLIC: - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) { + for (var i = 0; i < resolveListeners.length; i++) { + chunk.value.push(resolveListeners[i]); + } + } else { + chunk.value = resolveListeners; + } + + if (chunk.reason) { + if (rejectListeners) { + for (var _i = 0; _i < rejectListeners.length; _i++) { + chunk.reason.push(rejectListeners[_i]); + } + } + } else { + chunk.reason = rejectListeners; + } + break; case ERRORED: 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 885d44af8c33f5..db01abab348de9 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 @@ -1936,8 +1936,15 @@ function resolveModelChunk(chunk, value, id) { case "pending": case "blocked": case "cyclic": - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) + for (value = 0; value < resolveListeners.length; value++) + chunk.value.push(resolveListeners[value]); + else chunk.value = resolveListeners; + if (chunk.reason) { + if (rejectListeners) + for (value = 0; value < rejectListeners.length; value++) + chunk.reason.push(rejectListeners[value]); + } else chunk.reason = rejectListeners; break; case "rejected": rejectListeners && wakeChunk(rejectListeners, chunk.reason); @@ -2231,8 +2238,8 @@ function parseReadableStream(response, reference, type) { (previousBlockedChunk = chunk)); } else { chunk = previousBlockedChunk; - var chunk$25 = createPendingChunk(response); - chunk$25.then( + var chunk$26 = createPendingChunk(response); + chunk$26.then( function (v) { return controller.enqueue(v); }, @@ -2240,10 +2247,10 @@ function parseReadableStream(response, reference, type) { return controller.error(e); } ); - previousBlockedChunk = chunk$25; + previousBlockedChunk = chunk$26; chunk.then(function () { - previousBlockedChunk === chunk$25 && (previousBlockedChunk = null); - resolveModelChunk(chunk$25, json, -1); + previousBlockedChunk === chunk$26 && (previousBlockedChunk = null); + resolveModelChunk(chunk$26, json, -1); }); } }, @@ -2597,12 +2604,12 @@ exports.decodeReplyFromBusboy = function (busboyStream, turbopackMap) { "React doesn't accept base64 encoded file uploads because we don't expect form data passed from a browser to ever encode data that way. If that's the wrong assumption, we can easily fix it." ); pendingFiles++; - var JSCompiler_object_inline_chunks_213 = []; + var JSCompiler_object_inline_chunks_216 = []; value.on("data", function (chunk) { - JSCompiler_object_inline_chunks_213.push(chunk); + JSCompiler_object_inline_chunks_216.push(chunk); }); value.on("end", function () { - var blob = new Blob(JSCompiler_object_inline_chunks_213, { + var blob = new Blob(JSCompiler_object_inline_chunks_216, { type: mimeType }); response._formData.append(name, blob, filename); 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 0039feb38a2013..556f184fd0b27b 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-8f3c0525f9-20240521", - "react-dom": "19.0.0-rc-8f3c0525f9-20240521" + "react": "19.0.0-rc-81c5ff2e04-20240521", + "react-dom": "19.0.0-rc-81c5ff2e04-20240521" } } \ No newline at end of file diff --git a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.browser.development.js b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.browser.development.js index e760450f644dfc..de55bb54826f97 100644 --- a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.browser.development.js +++ b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.browser.development.js @@ -1734,8 +1734,24 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case PENDING: case BLOCKED: case CYCLIC: - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) { + for (var i = 0; i < resolveListeners.length; i++) { + chunk.value.push(resolveListeners[i]); + } + } else { + chunk.value = resolveListeners; + } + + if (chunk.reason) { + if (rejectListeners) { + for (var _i = 0; _i < rejectListeners.length; _i++) { + chunk.reason.push(rejectListeners[_i]); + } + } + } else { + chunk.reason = rejectListeners; + } + break; case ERRORED: @@ -2833,8 +2849,8 @@ function mergeBuffer(buffer, lastChunk) { var result = new Uint8Array(byteLength); var offset = 0; // Copy all the buffers into it. - for (var _i = 0; _i < l; _i++) { - var chunk = buffer[_i]; + for (var _i2 = 0; _i2 < l; _i2++) { + var chunk = buffer[_i2]; result.set(chunk, offset); offset += chunk.byteLength; } diff --git a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.browser.production.js b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.browser.production.js index 49c8c7747fcb7f..85c4f76a7256a7 100644 --- a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.browser.production.js +++ b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.browser.production.js @@ -532,8 +532,19 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case "pending": case "blocked": case "cyclic": - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) + for (var i = 0; i < resolveListeners.length; i++) + chunk.value.push(resolveListeners[i]); + else chunk.value = resolveListeners; + if (chunk.reason) { + if (rejectListeners) + for ( + resolveListeners = 0; + resolveListeners < rejectListeners.length; + resolveListeners++ + ) + chunk.reason.push(rejectListeners[resolveListeners]); + } else chunk.reason = rejectListeners; break; case "rejected": rejectListeners && wakeChunk(rejectListeners, chunk.reason); @@ -929,8 +940,8 @@ function startReadableStream(response, id, type) { (previousBlockedChunk = chunk)); } else { chunk = previousBlockedChunk; - var chunk$50 = createPendingChunk(response); - chunk$50.then( + var chunk$51 = createPendingChunk(response); + chunk$51.then( function (v) { return controller.enqueue(v); }, @@ -938,10 +949,10 @@ function startReadableStream(response, id, type) { return controller.error(e); } ); - previousBlockedChunk = chunk$50; + previousBlockedChunk = chunk$51; chunk.then(function () { - previousBlockedChunk === chunk$50 && (previousBlockedChunk = null); - resolveModelChunk(chunk$50, json); + previousBlockedChunk === chunk$51 && (previousBlockedChunk = null); + resolveModelChunk(chunk$51, json); }); } }, @@ -1069,8 +1080,8 @@ function mergeBuffer(buffer, lastChunk) { for (var l = buffer.length, byteLength = lastChunk.length, i = 0; i < l; i++) byteLength += buffer[i].byteLength; byteLength = new Uint8Array(byteLength); - for (var i$51 = (i = 0); i$51 < l; i$51++) { - var chunk = buffer[i$51]; + for (var i$52 = (i = 0); i$52 < l; i$52++) { + var chunk = buffer[i$52]; byteLength.set(chunk, i); i += chunk.byteLength; } diff --git a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.edge.development.js b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.edge.development.js index 230320d3719640..7f11ed1f10f419 100644 --- a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.edge.development.js +++ b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.edge.development.js @@ -1987,8 +1987,24 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case PENDING: case BLOCKED: case CYCLIC: - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) { + for (var i = 0; i < resolveListeners.length; i++) { + chunk.value.push(resolveListeners[i]); + } + } else { + chunk.value = resolveListeners; + } + + if (chunk.reason) { + if (rejectListeners) { + for (var _i = 0; _i < rejectListeners.length; _i++) { + chunk.reason.push(rejectListeners[_i]); + } + } + } else { + chunk.reason = rejectListeners; + } + break; case ERRORED: @@ -3087,8 +3103,8 @@ function mergeBuffer(buffer, lastChunk) { var result = new Uint8Array(byteLength); var offset = 0; // Copy all the buffers into it. - for (var _i = 0; _i < l; _i++) { - var chunk = buffer[_i]; + for (var _i2 = 0; _i2 < l; _i2++) { + var chunk = buffer[_i2]; result.set(chunk, offset); offset += chunk.byteLength; } diff --git a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.edge.production.js b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.edge.production.js index 86de8340da5e4c..c5cafd3e294d08 100644 --- a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.edge.production.js +++ b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.edge.production.js @@ -686,8 +686,19 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case "pending": case "blocked": case "cyclic": - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) + for (var i = 0; i < resolveListeners.length; i++) + chunk.value.push(resolveListeners[i]); + else chunk.value = resolveListeners; + if (chunk.reason) { + if (rejectListeners) + for ( + resolveListeners = 0; + resolveListeners < rejectListeners.length; + resolveListeners++ + ) + chunk.reason.push(rejectListeners[resolveListeners]); + } else chunk.reason = rejectListeners; break; case "rejected": rejectListeners && wakeChunk(rejectListeners, chunk.reason); @@ -1088,8 +1099,8 @@ function startReadableStream(response, id, type) { (previousBlockedChunk = chunk)); } else { chunk = previousBlockedChunk; - var chunk$50 = createPendingChunk(response); - chunk$50.then( + var chunk$51 = createPendingChunk(response); + chunk$51.then( function (v) { return controller.enqueue(v); }, @@ -1097,10 +1108,10 @@ function startReadableStream(response, id, type) { return controller.error(e); } ); - previousBlockedChunk = chunk$50; + previousBlockedChunk = chunk$51; chunk.then(function () { - previousBlockedChunk === chunk$50 && (previousBlockedChunk = null); - resolveModelChunk(chunk$50, json); + previousBlockedChunk === chunk$51 && (previousBlockedChunk = null); + resolveModelChunk(chunk$51, json); }); } }, @@ -1228,8 +1239,8 @@ function mergeBuffer(buffer, lastChunk) { for (var l = buffer.length, byteLength = lastChunk.length, i = 0; i < l; i++) byteLength += buffer[i].byteLength; byteLength = new Uint8Array(byteLength); - for (var i$51 = (i = 0); i$51 < l; i$51++) { - var chunk = buffer[i$51]; + for (var i$52 = (i = 0); i$52 < l; i$52++) { + var chunk = buffer[i$52]; byteLength.set(chunk, i); i += chunk.byteLength; } diff --git a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.node.development.js b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.node.development.js index f995ef15252d0c..88f7143e0c059f 100644 --- a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.node.development.js +++ b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.node.development.js @@ -1985,8 +1985,24 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case PENDING: case BLOCKED: case CYCLIC: - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) { + for (var i = 0; i < resolveListeners.length; i++) { + chunk.value.push(resolveListeners[i]); + } + } else { + chunk.value = resolveListeners; + } + + if (chunk.reason) { + if (rejectListeners) { + for (var _i = 0; _i < rejectListeners.length; _i++) { + chunk.reason.push(rejectListeners[_i]); + } + } + } else { + chunk.reason = rejectListeners; + } + break; case ERRORED: @@ -3085,8 +3101,8 @@ function mergeBuffer(buffer, lastChunk) { var result = new Uint8Array(byteLength); var offset = 0; // Copy all the buffers into it. - for (var _i = 0; _i < l; _i++) { - var chunk = buffer[_i]; + for (var _i2 = 0; _i2 < l; _i2++) { + var chunk = buffer[_i2]; result.set(chunk, offset); offset += chunk.byteLength; } diff --git a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.node.production.js b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.node.production.js index 6f0b3e12098242..5e7afb45c277a9 100644 --- a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.node.production.js +++ b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.node.production.js @@ -687,8 +687,19 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case "pending": case "blocked": case "cyclic": - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) + for (var i = 0; i < resolveListeners.length; i++) + chunk.value.push(resolveListeners[i]); + else chunk.value = resolveListeners; + if (chunk.reason) { + if (rejectListeners) + for ( + resolveListeners = 0; + resolveListeners < rejectListeners.length; + resolveListeners++ + ) + chunk.reason.push(rejectListeners[resolveListeners]); + } else chunk.reason = rejectListeners; break; case "rejected": rejectListeners && wakeChunk(rejectListeners, chunk.reason); @@ -1117,8 +1128,8 @@ function startReadableStream(response, id, type) { (previousBlockedChunk = chunk)); } else { chunk = previousBlockedChunk; - var chunk$50 = createPendingChunk(response); - chunk$50.then( + var chunk$51 = createPendingChunk(response); + chunk$51.then( function (v) { return controller.enqueue(v); }, @@ -1126,10 +1137,10 @@ function startReadableStream(response, id, type) { return controller.error(e); } ); - previousBlockedChunk = chunk$50; + previousBlockedChunk = chunk$51; chunk.then(function () { - previousBlockedChunk === chunk$50 && (previousBlockedChunk = null); - resolveModelChunk(chunk$50, json); + previousBlockedChunk === chunk$51 && (previousBlockedChunk = null); + resolveModelChunk(chunk$51, json); }); } }, @@ -1257,8 +1268,8 @@ function mergeBuffer(buffer, lastChunk) { for (var l = buffer.length, byteLength = lastChunk.length, i = 0; i < l; i++) byteLength += buffer[i].byteLength; byteLength = new Uint8Array(byteLength); - for (var i$51 = (i = 0); i$51 < l; i$51++) { - var chunk = buffer[i$51]; + for (var i$52 = (i = 0); i$52 < l; i$52++) { + var chunk = buffer[i$52]; byteLength.set(chunk, i); i += chunk.byteLength; } diff --git a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.node.unbundled.development.js b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.node.unbundled.development.js index 851fb2a484c9a1..785b25656684ac 100644 --- a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.node.unbundled.development.js +++ b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.node.unbundled.development.js @@ -1938,8 +1938,24 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case PENDING: case BLOCKED: case CYCLIC: - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) { + for (var i = 0; i < resolveListeners.length; i++) { + chunk.value.push(resolveListeners[i]); + } + } else { + chunk.value = resolveListeners; + } + + if (chunk.reason) { + if (rejectListeners) { + for (var _i = 0; _i < rejectListeners.length; _i++) { + chunk.reason.push(rejectListeners[_i]); + } + } + } else { + chunk.reason = rejectListeners; + } + break; case ERRORED: @@ -3038,8 +3054,8 @@ function mergeBuffer(buffer, lastChunk) { var result = new Uint8Array(byteLength); var offset = 0; // Copy all the buffers into it. - for (var _i = 0; _i < l; _i++) { - var chunk = buffer[_i]; + for (var _i2 = 0; _i2 < l; _i2++) { + var chunk = buffer[_i2]; result.set(chunk, offset); offset += chunk.byteLength; } diff --git a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.node.unbundled.production.js b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.node.unbundled.production.js index 54115e2bb77d7e..6e218b04c9be93 100644 --- a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.node.unbundled.production.js +++ b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.node.unbundled.production.js @@ -670,8 +670,19 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case "pending": case "blocked": case "cyclic": - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) + for (var i = 0; i < resolveListeners.length; i++) + chunk.value.push(resolveListeners[i]); + else chunk.value = resolveListeners; + if (chunk.reason) { + if (rejectListeners) + for ( + resolveListeners = 0; + resolveListeners < rejectListeners.length; + resolveListeners++ + ) + chunk.reason.push(rejectListeners[resolveListeners]); + } else chunk.reason = rejectListeners; break; case "rejected": rejectListeners && wakeChunk(rejectListeners, chunk.reason); @@ -1096,8 +1107,8 @@ function startReadableStream(response, id, type) { (previousBlockedChunk = chunk)); } else { chunk = previousBlockedChunk; - var chunk$50 = createPendingChunk(response); - chunk$50.then( + var chunk$51 = createPendingChunk(response); + chunk$51.then( function (v) { return controller.enqueue(v); }, @@ -1105,10 +1116,10 @@ function startReadableStream(response, id, type) { return controller.error(e); } ); - previousBlockedChunk = chunk$50; + previousBlockedChunk = chunk$51; chunk.then(function () { - previousBlockedChunk === chunk$50 && (previousBlockedChunk = null); - resolveModelChunk(chunk$50, json); + previousBlockedChunk === chunk$51 && (previousBlockedChunk = null); + resolveModelChunk(chunk$51, json); }); } }, @@ -1236,8 +1247,8 @@ function mergeBuffer(buffer, lastChunk) { for (var l = buffer.length, byteLength = lastChunk.length, i = 0; i < l; i++) byteLength += buffer[i].byteLength; byteLength = new Uint8Array(byteLength); - for (var i$51 = (i = 0); i$51 < l; i$51++) { - var chunk = buffer[i$51]; + for (var i$52 = (i = 0); i$52 < l; i$52++) { + var chunk = buffer[i$52]; byteLength.set(chunk, i); i += chunk.byteLength; } diff --git a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.browser.development.js b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.browser.development.js index 6a7c404248b6aa..75a6e8a7c85094 100644 --- a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.browser.development.js +++ b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.browser.development.js @@ -4605,8 +4605,24 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case PENDING: case BLOCKED: case CYCLIC: - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) { + for (var i = 0; i < resolveListeners.length; i++) { + chunk.value.push(resolveListeners[i]); + } + } else { + chunk.value = resolveListeners; + } + + if (chunk.reason) { + if (rejectListeners) { + for (var _i = 0; _i < rejectListeners.length; _i++) { + chunk.reason.push(rejectListeners[_i]); + } + } + } else { + chunk.reason = rejectListeners; + } + break; case ERRORED: diff --git a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.browser.production.js b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.browser.production.js index 77bba895fa58b4..c5ded6bfc7e771 100644 --- a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.browser.production.js +++ b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.browser.production.js @@ -2032,8 +2032,15 @@ function resolveModelChunk(chunk, value, id) { case "pending": case "blocked": case "cyclic": - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) + for (value = 0; value < resolveListeners.length; value++) + chunk.value.push(resolveListeners[value]); + else chunk.value = resolveListeners; + if (chunk.reason) { + if (rejectListeners) + for (value = 0; value < rejectListeners.length; value++) + chunk.reason.push(rejectListeners[value]); + } else chunk.reason = rejectListeners; break; case "rejected": rejectListeners && wakeChunk(rejectListeners, chunk.reason); @@ -2327,8 +2334,8 @@ function parseReadableStream(response, reference, type) { (previousBlockedChunk = chunk)); } else { chunk = previousBlockedChunk; - var chunk$29 = createPendingChunk(response); - chunk$29.then( + var chunk$30 = createPendingChunk(response); + chunk$30.then( function (v) { return controller.enqueue(v); }, @@ -2336,10 +2343,10 @@ function parseReadableStream(response, reference, type) { return controller.error(e); } ); - previousBlockedChunk = chunk$29; + previousBlockedChunk = chunk$30; chunk.then(function () { - previousBlockedChunk === chunk$29 && (previousBlockedChunk = null); - resolveModelChunk(chunk$29, json, -1); + previousBlockedChunk === chunk$30 && (previousBlockedChunk = null); + resolveModelChunk(chunk$30, json, -1); }); } }, diff --git a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.edge.development.js b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.edge.development.js index 6720304ea5f802..bff77ad9492702 100644 --- a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.edge.development.js +++ b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.edge.development.js @@ -4639,8 +4639,24 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case PENDING: case BLOCKED: case CYCLIC: - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) { + for (var i = 0; i < resolveListeners.length; i++) { + chunk.value.push(resolveListeners[i]); + } + } else { + chunk.value = resolveListeners; + } + + if (chunk.reason) { + if (rejectListeners) { + for (var _i = 0; _i < rejectListeners.length; _i++) { + chunk.reason.push(rejectListeners[_i]); + } + } + } else { + chunk.reason = rejectListeners; + } + break; case ERRORED: diff --git a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.edge.production.js b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.edge.production.js index ddae72148c7c98..cbd638bc873fbc 100644 --- a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.edge.production.js +++ b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.edge.production.js @@ -2056,8 +2056,15 @@ function resolveModelChunk(chunk, value, id) { case "pending": case "blocked": case "cyclic": - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) + for (value = 0; value < resolveListeners.length; value++) + chunk.value.push(resolveListeners[value]); + else chunk.value = resolveListeners; + if (chunk.reason) { + if (rejectListeners) + for (value = 0; value < rejectListeners.length; value++) + chunk.reason.push(rejectListeners[value]); + } else chunk.reason = rejectListeners; break; case "rejected": rejectListeners && wakeChunk(rejectListeners, chunk.reason); @@ -2351,8 +2358,8 @@ function parseReadableStream(response, reference, type) { (previousBlockedChunk = chunk)); } else { chunk = previousBlockedChunk; - var chunk$29 = createPendingChunk(response); - chunk$29.then( + var chunk$30 = createPendingChunk(response); + chunk$30.then( function (v) { return controller.enqueue(v); }, @@ -2360,10 +2367,10 @@ function parseReadableStream(response, reference, type) { return controller.error(e); } ); - previousBlockedChunk = chunk$29; + previousBlockedChunk = chunk$30; chunk.then(function () { - previousBlockedChunk === chunk$29 && (previousBlockedChunk = null); - resolveModelChunk(chunk$29, json, -1); + previousBlockedChunk === chunk$30 && (previousBlockedChunk = null); + resolveModelChunk(chunk$30, json, -1); }); } }, 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 27eec42f50ab6a..f67c5f93e95d75 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 @@ -4684,8 +4684,24 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case PENDING: case BLOCKED: case CYCLIC: - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) { + for (var i = 0; i < resolveListeners.length; i++) { + chunk.value.push(resolveListeners[i]); + } + } else { + chunk.value = resolveListeners; + } + + if (chunk.reason) { + if (rejectListeners) { + for (var _i = 0; _i < rejectListeners.length; _i++) { + chunk.reason.push(rejectListeners[_i]); + } + } + } else { + chunk.reason = rejectListeners; + } + break; case ERRORED: 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 0eb6d0fbf5ccd5..796f25d34fd857 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 @@ -2100,8 +2100,15 @@ function resolveModelChunk(chunk, value, id) { case "pending": case "blocked": case "cyclic": - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) + for (value = 0; value < resolveListeners.length; value++) + chunk.value.push(resolveListeners[value]); + else chunk.value = resolveListeners; + if (chunk.reason) { + if (rejectListeners) + for (value = 0; value < rejectListeners.length; value++) + chunk.reason.push(rejectListeners[value]); + } else chunk.reason = rejectListeners; break; case "rejected": rejectListeners && wakeChunk(rejectListeners, chunk.reason); @@ -2395,8 +2402,8 @@ function parseReadableStream(response, reference, type) { (previousBlockedChunk = chunk)); } else { chunk = previousBlockedChunk; - var chunk$29 = createPendingChunk(response); - chunk$29.then( + var chunk$30 = createPendingChunk(response); + chunk$30.then( function (v) { return controller.enqueue(v); }, @@ -2404,10 +2411,10 @@ function parseReadableStream(response, reference, type) { return controller.error(e); } ); - previousBlockedChunk = chunk$29; + previousBlockedChunk = chunk$30; chunk.then(function () { - previousBlockedChunk === chunk$29 && (previousBlockedChunk = null); - resolveModelChunk(chunk$29, json, -1); + previousBlockedChunk === chunk$30 && (previousBlockedChunk = null); + resolveModelChunk(chunk$30, json, -1); }); } }, @@ -2761,12 +2768,12 @@ exports.decodeReplyFromBusboy = function (busboyStream, webpackMap) { "React doesn't accept base64 encoded file uploads because we don't expect form data passed from a browser to ever encode data that way. If that's the wrong assumption, we can easily fix it." ); pendingFiles++; - var JSCompiler_object_inline_chunks_200 = []; + var JSCompiler_object_inline_chunks_203 = []; value.on("data", function (chunk) { - JSCompiler_object_inline_chunks_200.push(chunk); + JSCompiler_object_inline_chunks_203.push(chunk); }); value.on("end", function () { - var blob = new Blob(JSCompiler_object_inline_chunks_200, { + var blob = new Blob(JSCompiler_object_inline_chunks_203, { type: mimeType }); response._formData.append(name, blob, filename); 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 1e4610706c4243..242e80dd8c0789 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 @@ -4611,8 +4611,24 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case PENDING: case BLOCKED: case CYCLIC: - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) { + for (var i = 0; i < resolveListeners.length; i++) { + chunk.value.push(resolveListeners[i]); + } + } else { + chunk.value = resolveListeners; + } + + if (chunk.reason) { + if (rejectListeners) { + for (var _i = 0; _i < rejectListeners.length; _i++) { + chunk.reason.push(rejectListeners[_i]); + } + } + } else { + chunk.reason = rejectListeners; + } + break; case ERRORED: 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 4ba4979f4b2a38..0cd71f763ea6f0 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 @@ -2068,8 +2068,15 @@ function resolveModelChunk(chunk, value, id) { case "pending": case "blocked": case "cyclic": - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) + for (value = 0; value < resolveListeners.length; value++) + chunk.value.push(resolveListeners[value]); + else chunk.value = resolveListeners; + if (chunk.reason) { + if (rejectListeners) + for (value = 0; value < rejectListeners.length; value++) + chunk.reason.push(rejectListeners[value]); + } else chunk.reason = rejectListeners; break; case "rejected": rejectListeners && wakeChunk(rejectListeners, chunk.reason); @@ -2363,8 +2370,8 @@ function parseReadableStream(response, reference, type) { (previousBlockedChunk = chunk)); } else { chunk = previousBlockedChunk; - var chunk$29 = createPendingChunk(response); - chunk$29.then( + var chunk$30 = createPendingChunk(response); + chunk$30.then( function (v) { return controller.enqueue(v); }, @@ -2372,10 +2379,10 @@ function parseReadableStream(response, reference, type) { return controller.error(e); } ); - previousBlockedChunk = chunk$29; + previousBlockedChunk = chunk$30; chunk.then(function () { - previousBlockedChunk === chunk$29 && (previousBlockedChunk = null); - resolveModelChunk(chunk$29, json, -1); + previousBlockedChunk === chunk$30 && (previousBlockedChunk = null); + resolveModelChunk(chunk$30, json, -1); }); } }, @@ -2729,12 +2736,12 @@ exports.decodeReplyFromBusboy = function (busboyStream, webpackMap) { "React doesn't accept base64 encoded file uploads because we don't expect form data passed from a browser to ever encode data that way. If that's the wrong assumption, we can easily fix it." ); pendingFiles++; - var JSCompiler_object_inline_chunks_200 = []; + var JSCompiler_object_inline_chunks_203 = []; value.on("data", function (chunk) { - JSCompiler_object_inline_chunks_200.push(chunk); + JSCompiler_object_inline_chunks_203.push(chunk); }); value.on("end", function () { - var blob = new Blob(JSCompiler_object_inline_chunks_200, { + var blob = new Blob(JSCompiler_object_inline_chunks_203, { type: mimeType }); response._formData.append(name, blob, filename); 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 69f19beab95467..862001aad3a34f 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-8f3c0525f9-20240521", - "react-dom": "0.0.0-experimental-8f3c0525f9-20240521", + "react": "0.0.0-experimental-81c5ff2e04-20240521", + "react-dom": "0.0.0-experimental-81c5ff2e04-20240521", "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-client.browser.development.js b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js index 9fbefea19bf985..036e40d99d8c6c 100644 --- a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js +++ b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js @@ -1733,8 +1733,24 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case PENDING: case BLOCKED: case CYCLIC: - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) { + for (var i = 0; i < resolveListeners.length; i++) { + chunk.value.push(resolveListeners[i]); + } + } else { + chunk.value = resolveListeners; + } + + if (chunk.reason) { + if (rejectListeners) { + for (var _i = 0; _i < rejectListeners.length; _i++) { + chunk.reason.push(rejectListeners[_i]); + } + } + } else { + chunk.reason = rejectListeners; + } + break; case ERRORED: @@ -2798,8 +2814,8 @@ function mergeBuffer(buffer, lastChunk) { var result = new Uint8Array(byteLength); var offset = 0; // Copy all the buffers into it. - for (var _i = 0; _i < l; _i++) { - var chunk = buffer[_i]; + for (var _i2 = 0; _i2 < l; _i2++) { + var chunk = buffer[_i2]; result.set(chunk, offset); offset += chunk.byteLength; } diff --git a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.production.js b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.production.js index 528ae2a5a996b7..6a7df372718e6a 100644 --- a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.production.js +++ b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.production.js @@ -531,8 +531,19 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case "pending": case "blocked": case "cyclic": - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) + for (var i = 0; i < resolveListeners.length; i++) + chunk.value.push(resolveListeners[i]); + else chunk.value = resolveListeners; + if (chunk.reason) { + if (rejectListeners) + for ( + resolveListeners = 0; + resolveListeners < rejectListeners.length; + resolveListeners++ + ) + chunk.reason.push(rejectListeners[resolveListeners]); + } else chunk.reason = rejectListeners; break; case "rejected": rejectListeners && wakeChunk(rejectListeners, chunk.reason); @@ -928,8 +939,8 @@ function startReadableStream(response, id, type) { (previousBlockedChunk = chunk)); } else { chunk = previousBlockedChunk; - var chunk$50 = createPendingChunk(response); - chunk$50.then( + var chunk$51 = createPendingChunk(response); + chunk$51.then( function (v) { return controller.enqueue(v); }, @@ -937,10 +948,10 @@ function startReadableStream(response, id, type) { return controller.error(e); } ); - previousBlockedChunk = chunk$50; + previousBlockedChunk = chunk$51; chunk.then(function () { - previousBlockedChunk === chunk$50 && (previousBlockedChunk = null); - resolveModelChunk(chunk$50, json); + previousBlockedChunk === chunk$51 && (previousBlockedChunk = null); + resolveModelChunk(chunk$51, json); }); } }, @@ -1068,8 +1079,8 @@ function mergeBuffer(buffer, lastChunk) { for (var l = buffer.length, byteLength = lastChunk.length, i = 0; i < l; i++) byteLength += buffer[i].byteLength; byteLength = new Uint8Array(byteLength); - for (var i$51 = (i = 0); i$51 < l; i$51++) { - var chunk = buffer[i$51]; + for (var i$52 = (i = 0); i$52 < l; i$52++) { + var chunk = buffer[i$52]; byteLength.set(chunk, i); i += chunk.byteLength; } diff --git a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js index 0994b11cc427a6..211052c25e0255 100644 --- a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js +++ b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js @@ -1986,8 +1986,24 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case PENDING: case BLOCKED: case CYCLIC: - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) { + for (var i = 0; i < resolveListeners.length; i++) { + chunk.value.push(resolveListeners[i]); + } + } else { + chunk.value = resolveListeners; + } + + if (chunk.reason) { + if (rejectListeners) { + for (var _i = 0; _i < rejectListeners.length; _i++) { + chunk.reason.push(rejectListeners[_i]); + } + } + } else { + chunk.reason = rejectListeners; + } + break; case ERRORED: @@ -3052,8 +3068,8 @@ function mergeBuffer(buffer, lastChunk) { var result = new Uint8Array(byteLength); var offset = 0; // Copy all the buffers into it. - for (var _i = 0; _i < l; _i++) { - var chunk = buffer[_i]; + for (var _i2 = 0; _i2 < l; _i2++) { + var chunk = buffer[_i2]; result.set(chunk, offset); offset += chunk.byteLength; } diff --git a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.production.js b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.production.js index e88d033ab9c586..d5060d971c8ed2 100644 --- a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.production.js +++ b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.production.js @@ -685,8 +685,19 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case "pending": case "blocked": case "cyclic": - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) + for (var i = 0; i < resolveListeners.length; i++) + chunk.value.push(resolveListeners[i]); + else chunk.value = resolveListeners; + if (chunk.reason) { + if (rejectListeners) + for ( + resolveListeners = 0; + resolveListeners < rejectListeners.length; + resolveListeners++ + ) + chunk.reason.push(rejectListeners[resolveListeners]); + } else chunk.reason = rejectListeners; break; case "rejected": rejectListeners && wakeChunk(rejectListeners, chunk.reason); @@ -1087,8 +1098,8 @@ function startReadableStream(response, id, type) { (previousBlockedChunk = chunk)); } else { chunk = previousBlockedChunk; - var chunk$50 = createPendingChunk(response); - chunk$50.then( + var chunk$51 = createPendingChunk(response); + chunk$51.then( function (v) { return controller.enqueue(v); }, @@ -1096,10 +1107,10 @@ function startReadableStream(response, id, type) { return controller.error(e); } ); - previousBlockedChunk = chunk$50; + previousBlockedChunk = chunk$51; chunk.then(function () { - previousBlockedChunk === chunk$50 && (previousBlockedChunk = null); - resolveModelChunk(chunk$50, json); + previousBlockedChunk === chunk$51 && (previousBlockedChunk = null); + resolveModelChunk(chunk$51, json); }); } }, @@ -1227,8 +1238,8 @@ function mergeBuffer(buffer, lastChunk) { for (var l = buffer.length, byteLength = lastChunk.length, i = 0; i < l; i++) byteLength += buffer[i].byteLength; byteLength = new Uint8Array(byteLength); - for (var i$51 = (i = 0); i$51 < l; i$51++) { - var chunk = buffer[i$51]; + for (var i$52 = (i = 0); i$52 < l; i$52++) { + var chunk = buffer[i$52]; byteLength.set(chunk, i); i += chunk.byteLength; } diff --git a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.development.js b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.development.js index 4a008c21e93198..5b133541ecd25c 100644 --- a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.development.js +++ b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.development.js @@ -1984,8 +1984,24 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case PENDING: case BLOCKED: case CYCLIC: - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) { + for (var i = 0; i < resolveListeners.length; i++) { + chunk.value.push(resolveListeners[i]); + } + } else { + chunk.value = resolveListeners; + } + + if (chunk.reason) { + if (rejectListeners) { + for (var _i = 0; _i < rejectListeners.length; _i++) { + chunk.reason.push(rejectListeners[_i]); + } + } + } else { + chunk.reason = rejectListeners; + } + break; case ERRORED: @@ -3050,8 +3066,8 @@ function mergeBuffer(buffer, lastChunk) { var result = new Uint8Array(byteLength); var offset = 0; // Copy all the buffers into it. - for (var _i = 0; _i < l; _i++) { - var chunk = buffer[_i]; + for (var _i2 = 0; _i2 < l; _i2++) { + var chunk = buffer[_i2]; result.set(chunk, offset); offset += chunk.byteLength; } diff --git a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.production.js b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.production.js index f443f183639d30..ca9374b156038f 100644 --- a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.production.js +++ b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.production.js @@ -686,8 +686,19 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case "pending": case "blocked": case "cyclic": - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) + for (var i = 0; i < resolveListeners.length; i++) + chunk.value.push(resolveListeners[i]); + else chunk.value = resolveListeners; + if (chunk.reason) { + if (rejectListeners) + for ( + resolveListeners = 0; + resolveListeners < rejectListeners.length; + resolveListeners++ + ) + chunk.reason.push(rejectListeners[resolveListeners]); + } else chunk.reason = rejectListeners; break; case "rejected": rejectListeners && wakeChunk(rejectListeners, chunk.reason); @@ -1116,8 +1127,8 @@ function startReadableStream(response, id, type) { (previousBlockedChunk = chunk)); } else { chunk = previousBlockedChunk; - var chunk$50 = createPendingChunk(response); - chunk$50.then( + var chunk$51 = createPendingChunk(response); + chunk$51.then( function (v) { return controller.enqueue(v); }, @@ -1125,10 +1136,10 @@ function startReadableStream(response, id, type) { return controller.error(e); } ); - previousBlockedChunk = chunk$50; + previousBlockedChunk = chunk$51; chunk.then(function () { - previousBlockedChunk === chunk$50 && (previousBlockedChunk = null); - resolveModelChunk(chunk$50, json); + previousBlockedChunk === chunk$51 && (previousBlockedChunk = null); + resolveModelChunk(chunk$51, json); }); } }, @@ -1256,8 +1267,8 @@ function mergeBuffer(buffer, lastChunk) { for (var l = buffer.length, byteLength = lastChunk.length, i = 0; i < l; i++) byteLength += buffer[i].byteLength; byteLength = new Uint8Array(byteLength); - for (var i$51 = (i = 0); i$51 < l; i$51++) { - var chunk = buffer[i$51]; + for (var i$52 = (i = 0); i$52 < l; i$52++) { + var chunk = buffer[i$52]; byteLength.set(chunk, i); i += chunk.byteLength; } diff --git a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.development.js b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.development.js index e84ab42a99fc3f..823b15576f63ce 100644 --- a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.development.js +++ b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.development.js @@ -1937,8 +1937,24 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case PENDING: case BLOCKED: case CYCLIC: - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) { + for (var i = 0; i < resolveListeners.length; i++) { + chunk.value.push(resolveListeners[i]); + } + } else { + chunk.value = resolveListeners; + } + + if (chunk.reason) { + if (rejectListeners) { + for (var _i = 0; _i < rejectListeners.length; _i++) { + chunk.reason.push(rejectListeners[_i]); + } + } + } else { + chunk.reason = rejectListeners; + } + break; case ERRORED: @@ -3003,8 +3019,8 @@ function mergeBuffer(buffer, lastChunk) { var result = new Uint8Array(byteLength); var offset = 0; // Copy all the buffers into it. - for (var _i = 0; _i < l; _i++) { - var chunk = buffer[_i]; + for (var _i2 = 0; _i2 < l; _i2++) { + var chunk = buffer[_i2]; result.set(chunk, offset); offset += chunk.byteLength; } diff --git a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.production.js b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.production.js index af42c4db54a50b..544d5f31964f0f 100644 --- a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.production.js +++ b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.production.js @@ -669,8 +669,19 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case "pending": case "blocked": case "cyclic": - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) + for (var i = 0; i < resolveListeners.length; i++) + chunk.value.push(resolveListeners[i]); + else chunk.value = resolveListeners; + if (chunk.reason) { + if (rejectListeners) + for ( + resolveListeners = 0; + resolveListeners < rejectListeners.length; + resolveListeners++ + ) + chunk.reason.push(rejectListeners[resolveListeners]); + } else chunk.reason = rejectListeners; break; case "rejected": rejectListeners && wakeChunk(rejectListeners, chunk.reason); @@ -1095,8 +1106,8 @@ function startReadableStream(response, id, type) { (previousBlockedChunk = chunk)); } else { chunk = previousBlockedChunk; - var chunk$50 = createPendingChunk(response); - chunk$50.then( + var chunk$51 = createPendingChunk(response); + chunk$51.then( function (v) { return controller.enqueue(v); }, @@ -1104,10 +1115,10 @@ function startReadableStream(response, id, type) { return controller.error(e); } ); - previousBlockedChunk = chunk$50; + previousBlockedChunk = chunk$51; chunk.then(function () { - previousBlockedChunk === chunk$50 && (previousBlockedChunk = null); - resolveModelChunk(chunk$50, json); + previousBlockedChunk === chunk$51 && (previousBlockedChunk = null); + resolveModelChunk(chunk$51, json); }); } }, @@ -1235,8 +1246,8 @@ function mergeBuffer(buffer, lastChunk) { for (var l = buffer.length, byteLength = lastChunk.length, i = 0; i < l; i++) byteLength += buffer[i].byteLength; byteLength = new Uint8Array(byteLength); - for (var i$51 = (i = 0); i$51 < l; i$51++) { - var chunk = buffer[i$51]; + for (var i$52 = (i = 0); i$52 < l; i$52++) { + var chunk = buffer[i$52]; byteLength.set(chunk, i); i += chunk.byteLength; } diff --git a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.development.js b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.development.js index 05c84449a295d1..fb6de630494715 100644 --- a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.development.js +++ b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.development.js @@ -4256,8 +4256,24 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case PENDING: case BLOCKED: case CYCLIC: - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) { + for (var i = 0; i < resolveListeners.length; i++) { + chunk.value.push(resolveListeners[i]); + } + } else { + chunk.value = resolveListeners; + } + + if (chunk.reason) { + if (rejectListeners) { + for (var _i = 0; _i < rejectListeners.length; _i++) { + chunk.reason.push(rejectListeners[_i]); + } + } + } else { + chunk.reason = rejectListeners; + } + break; case ERRORED: diff --git a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.production.js b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.production.js index fdc63d0f819621..3c4448228ef261 100644 --- a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.production.js +++ b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.production.js @@ -1898,8 +1898,15 @@ function resolveModelChunk(chunk, value, id) { case "pending": case "blocked": case "cyclic": - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) + for (value = 0; value < resolveListeners.length; value++) + chunk.value.push(resolveListeners[value]); + else chunk.value = resolveListeners; + if (chunk.reason) { + if (rejectListeners) + for (value = 0; value < rejectListeners.length; value++) + chunk.reason.push(rejectListeners[value]); + } else chunk.reason = rejectListeners; break; case "rejected": rejectListeners && wakeChunk(rejectListeners, chunk.reason); @@ -2193,8 +2200,8 @@ function parseReadableStream(response, reference, type) { (previousBlockedChunk = chunk)); } else { chunk = previousBlockedChunk; - var chunk$25 = createPendingChunk(response); - chunk$25.then( + var chunk$26 = createPendingChunk(response); + chunk$26.then( function (v) { return controller.enqueue(v); }, @@ -2202,10 +2209,10 @@ function parseReadableStream(response, reference, type) { return controller.error(e); } ); - previousBlockedChunk = chunk$25; + previousBlockedChunk = chunk$26; chunk.then(function () { - previousBlockedChunk === chunk$25 && (previousBlockedChunk = null); - resolveModelChunk(chunk$25, json, -1); + previousBlockedChunk === chunk$26 && (previousBlockedChunk = null); + resolveModelChunk(chunk$26, json, -1); }); } }, diff --git a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.development.js b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.development.js index d3cfb795244faa..b6cd9aab9bd1b8 100644 --- a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.development.js +++ b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.development.js @@ -4268,8 +4268,24 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case PENDING: case BLOCKED: case CYCLIC: - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) { + for (var i = 0; i < resolveListeners.length; i++) { + chunk.value.push(resolveListeners[i]); + } + } else { + chunk.value = resolveListeners; + } + + if (chunk.reason) { + if (rejectListeners) { + for (var _i = 0; _i < rejectListeners.length; _i++) { + chunk.reason.push(rejectListeners[_i]); + } + } + } else { + chunk.reason = rejectListeners; + } + break; case ERRORED: diff --git a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.js b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.js index f8fb22d76689f7..ffe9615ffdfd49 100644 --- a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.js +++ b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.js @@ -1920,8 +1920,15 @@ function resolveModelChunk(chunk, value, id) { case "pending": case "blocked": case "cyclic": - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) + for (value = 0; value < resolveListeners.length; value++) + chunk.value.push(resolveListeners[value]); + else chunk.value = resolveListeners; + if (chunk.reason) { + if (rejectListeners) + for (value = 0; value < rejectListeners.length; value++) + chunk.reason.push(rejectListeners[value]); + } else chunk.reason = rejectListeners; break; case "rejected": rejectListeners && wakeChunk(rejectListeners, chunk.reason); @@ -2215,8 +2222,8 @@ function parseReadableStream(response, reference, type) { (previousBlockedChunk = chunk)); } else { chunk = previousBlockedChunk; - var chunk$25 = createPendingChunk(response); - chunk$25.then( + var chunk$26 = createPendingChunk(response); + chunk$26.then( function (v) { return controller.enqueue(v); }, @@ -2224,10 +2231,10 @@ function parseReadableStream(response, reference, type) { return controller.error(e); } ); - previousBlockedChunk = chunk$25; + previousBlockedChunk = chunk$26; chunk.then(function () { - previousBlockedChunk === chunk$25 && (previousBlockedChunk = null); - resolveModelChunk(chunk$25, json, -1); + previousBlockedChunk === chunk$26 && (previousBlockedChunk = null); + resolveModelChunk(chunk$26, json, -1); }); } }, 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 512abe631d3323..7d45a2098824bb 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 @@ -4313,8 +4313,24 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case PENDING: case BLOCKED: case CYCLIC: - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) { + for (var i = 0; i < resolveListeners.length; i++) { + chunk.value.push(resolveListeners[i]); + } + } else { + chunk.value = resolveListeners; + } + + if (chunk.reason) { + if (rejectListeners) { + for (var _i = 0; _i < rejectListeners.length; _i++) { + chunk.reason.push(rejectListeners[_i]); + } + } + } else { + chunk.reason = rejectListeners; + } + break; case ERRORED: 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 009030b64fe269..3f0ffd06fe87a2 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 @@ -1968,8 +1968,15 @@ function resolveModelChunk(chunk, value, id) { case "pending": case "blocked": case "cyclic": - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) + for (value = 0; value < resolveListeners.length; value++) + chunk.value.push(resolveListeners[value]); + else chunk.value = resolveListeners; + if (chunk.reason) { + if (rejectListeners) + for (value = 0; value < rejectListeners.length; value++) + chunk.reason.push(rejectListeners[value]); + } else chunk.reason = rejectListeners; break; case "rejected": rejectListeners && wakeChunk(rejectListeners, chunk.reason); @@ -2263,8 +2270,8 @@ function parseReadableStream(response, reference, type) { (previousBlockedChunk = chunk)); } else { chunk = previousBlockedChunk; - var chunk$25 = createPendingChunk(response); - chunk$25.then( + var chunk$26 = createPendingChunk(response); + chunk$26.then( function (v) { return controller.enqueue(v); }, @@ -2272,10 +2279,10 @@ function parseReadableStream(response, reference, type) { return controller.error(e); } ); - previousBlockedChunk = chunk$25; + previousBlockedChunk = chunk$26; chunk.then(function () { - previousBlockedChunk === chunk$25 && (previousBlockedChunk = null); - resolveModelChunk(chunk$25, json, -1); + previousBlockedChunk === chunk$26 && (previousBlockedChunk = null); + resolveModelChunk(chunk$26, json, -1); }); } }, @@ -2629,12 +2636,12 @@ exports.decodeReplyFromBusboy = function (busboyStream, webpackMap) { "React doesn't accept base64 encoded file uploads because we don't expect form data passed from a browser to ever encode data that way. If that's the wrong assumption, we can easily fix it." ); pendingFiles++; - var JSCompiler_object_inline_chunks_213 = []; + var JSCompiler_object_inline_chunks_216 = []; value.on("data", function (chunk) { - JSCompiler_object_inline_chunks_213.push(chunk); + JSCompiler_object_inline_chunks_216.push(chunk); }); value.on("end", function () { - var blob = new Blob(JSCompiler_object_inline_chunks_213, { + var blob = new Blob(JSCompiler_object_inline_chunks_216, { type: mimeType }); response._formData.append(name, blob, filename); 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 523f91abca3ae4..3744eac8ff14be 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 @@ -4240,8 +4240,24 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { case PENDING: case BLOCKED: case CYCLIC: - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) { + for (var i = 0; i < resolveListeners.length; i++) { + chunk.value.push(resolveListeners[i]); + } + } else { + chunk.value = resolveListeners; + } + + if (chunk.reason) { + if (rejectListeners) { + for (var _i = 0; _i < rejectListeners.length; _i++) { + chunk.reason.push(rejectListeners[_i]); + } + } + } else { + chunk.reason = rejectListeners; + } + break; case ERRORED: 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 43d21de49f70f4..797f4b5161d775 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 @@ -1936,8 +1936,15 @@ function resolveModelChunk(chunk, value, id) { case "pending": case "blocked": case "cyclic": - chunk.value = resolveListeners; - chunk.reason = rejectListeners; + if (chunk.value) + for (value = 0; value < resolveListeners.length; value++) + chunk.value.push(resolveListeners[value]); + else chunk.value = resolveListeners; + if (chunk.reason) { + if (rejectListeners) + for (value = 0; value < rejectListeners.length; value++) + chunk.reason.push(rejectListeners[value]); + } else chunk.reason = rejectListeners; break; case "rejected": rejectListeners && wakeChunk(rejectListeners, chunk.reason); @@ -2231,8 +2238,8 @@ function parseReadableStream(response, reference, type) { (previousBlockedChunk = chunk)); } else { chunk = previousBlockedChunk; - var chunk$25 = createPendingChunk(response); - chunk$25.then( + var chunk$26 = createPendingChunk(response); + chunk$26.then( function (v) { return controller.enqueue(v); }, @@ -2240,10 +2247,10 @@ function parseReadableStream(response, reference, type) { return controller.error(e); } ); - previousBlockedChunk = chunk$25; + previousBlockedChunk = chunk$26; chunk.then(function () { - previousBlockedChunk === chunk$25 && (previousBlockedChunk = null); - resolveModelChunk(chunk$25, json, -1); + previousBlockedChunk === chunk$26 && (previousBlockedChunk = null); + resolveModelChunk(chunk$26, json, -1); }); } }, @@ -2597,12 +2604,12 @@ exports.decodeReplyFromBusboy = function (busboyStream, webpackMap) { "React doesn't accept base64 encoded file uploads because we don't expect form data passed from a browser to ever encode data that way. If that's the wrong assumption, we can easily fix it." ); pendingFiles++; - var JSCompiler_object_inline_chunks_213 = []; + var JSCompiler_object_inline_chunks_216 = []; value.on("data", function (chunk) { - JSCompiler_object_inline_chunks_213.push(chunk); + JSCompiler_object_inline_chunks_216.push(chunk); }); value.on("end", function () { - var blob = new Blob(JSCompiler_object_inline_chunks_213, { + var blob = new Blob(JSCompiler_object_inline_chunks_216, { type: mimeType }); response._formData.append(name, blob, filename); 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 94c2badc5a0d0a..a6195bd18243ba 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-8f3c0525f9-20240521", - "react-dom": "19.0.0-rc-8f3c0525f9-20240521", + "react": "19.0.0-rc-81c5ff2e04-20240521", + "react-dom": "19.0.0-rc-81c5ff2e04-20240521", "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 934a3e024e4937..d75437ad16b482 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-8f3c0525f9-20240521'; +var ReactVersion = '19.0.0-rc-81c5ff2e04-20240521'; // ----------------------------------------------------------------------------- diff --git a/packages/next/src/compiled/react/cjs/react.production.js b/packages/next/src/compiled/react/cjs/react.production.js index a7be1ba4b1cb9d..a3d4e276110d33 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-8f3c0525f9-20240521"; +exports.version = "19.0.0-rc-81c5ff2e04-20240521"; 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 c0f5647dbf9a71..d2ceabeef2b4fb 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-8f3c0525f9-20240521'; +var ReactVersion = '19.0.0-rc-81c5ff2e04-20240521'; 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 29194a4dba2c16..d7a0610902632f 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-8f3c0525f9-20240521"; +exports.version = "19.0.0-rc-81c5ff2e04-20240521"; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9f450791c54dc8..6d2162e894fe93 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,10 +15,10 @@ overrides: '@babel/traverse': 7.22.5 '@types/react': 18.2.74 '@types/react-dom': 18.2.23 - react: 19.0.0-rc-8f3c0525f9-20240521 - react-dom: 19.0.0-rc-8f3c0525f9-20240521 - react-is: 19.0.0-rc-8f3c0525f9-20240521 - scheduler: 0.25.0-rc-8f3c0525f9-20240521 + 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 importers: @@ -56,7 +56,7 @@ importers: version: 11.11.0 '@emotion/react': specifier: 11.11.1 - version: 11.11.1(@types/react@18.2.74)(react@19.0.0-rc-8f3c0525f9-20240521) + version: 11.11.1(@types/react@18.2.74)(react@19.0.0-rc-81c5ff2e04-20240521) '@fullhuman/postcss-purgecss': specifier: 1.3.0 version: 1.3.0 @@ -65,7 +65,7 @@ importers: version: 2.2.1(webpack@5.90.0) '@mdx-js/react': specifier: 2.2.1 - version: 2.2.1(react@19.0.0-rc-8f3c0525f9-20240521) + version: 2.2.1(react@19.0.0-rc-81c5ff2e04-20240521) '@next/bundle-analyzer': specifier: workspace:* version: link:packages/next-bundle-analyzer @@ -131,7 +131,7 @@ importers: version: 6.1.2(@types/jest@29.5.5)(jest@29.7.0) '@testing-library/react': specifier: ^15.0.5 - version: 15.0.7(@types/react@18.2.74)(react-dom@19.0.0-rc-8f3c0525f9-20240521)(react@19.0.0-rc-8f3c0525f9-20240521) + version: 15.0.7(@types/react@18.2.74)(react-dom@19.0.0-rc-81c5ff2e04-20240521)(react@19.0.0-rc-81c5ff2e04-20240521) '@types/busboy': specifier: 1.5.3 version: 1.5.3 @@ -436,47 +436,47 @@ importers: specifier: 0.3.0 version: 0.3.0 react: - specifier: 19.0.0-rc-8f3c0525f9-20240521 - version: 19.0.0-rc-8f3c0525f9-20240521 + specifier: 19.0.0-rc-81c5ff2e04-20240521 + version: 19.0.0-rc-81c5ff2e04-20240521 react-17: specifier: npm:react@17.0.2 version: /react@17.0.2 react-builtin: - specifier: npm:react@19.0.0-rc-8f3c0525f9-20240521 - version: /react@19.0.0-rc-8f3c0525f9-20240521 + specifier: npm:react@19.0.0-rc-81c5ff2e04-20240521 + version: /react@19.0.0-rc-81c5ff2e04-20240521 react-dom: - specifier: 19.0.0-rc-8f3c0525f9-20240521 - version: 19.0.0-rc-8f3c0525f9-20240521(react@19.0.0-rc-8f3c0525f9-20240521) + specifier: 19.0.0-rc-81c5ff2e04-20240521 + version: 19.0.0-rc-81c5ff2e04-20240521(react@19.0.0-rc-81c5ff2e04-20240521) react-dom-17: specifier: npm:react-dom@17.0.2 - version: /react-dom@17.0.2(react@19.0.0-rc-8f3c0525f9-20240521) + version: /react-dom@17.0.2(react@19.0.0-rc-81c5ff2e04-20240521) react-dom-builtin: - specifier: npm:react-dom@19.0.0-rc-8f3c0525f9-20240521 - version: /react-dom@19.0.0-rc-8f3c0525f9-20240521(react@19.0.0-rc-8f3c0525f9-20240521) + specifier: npm:react-dom@19.0.0-rc-81c5ff2e04-20240521 + version: /react-dom@19.0.0-rc-81c5ff2e04-20240521(react@19.0.0-rc-81c5ff2e04-20240521) react-dom-experimental-builtin: - specifier: npm:react-dom@0.0.0-experimental-8f3c0525f9-20240521 - version: /react-dom@0.0.0-experimental-8f3c0525f9-20240521(react@19.0.0-rc-8f3c0525f9-20240521) + specifier: npm:react-dom@0.0.0-experimental-81c5ff2e04-20240521 + version: /react-dom@0.0.0-experimental-81c5ff2e04-20240521(react@19.0.0-rc-81c5ff2e04-20240521) react-experimental-builtin: - specifier: npm:react@0.0.0-experimental-8f3c0525f9-20240521 - version: /react@0.0.0-experimental-8f3c0525f9-20240521 + specifier: npm:react@0.0.0-experimental-81c5ff2e04-20240521 + version: /react@0.0.0-experimental-81c5ff2e04-20240521 react-server-dom-turbopack: - specifier: 19.0.0-rc-8f3c0525f9-20240521 - version: 19.0.0-rc-8f3c0525f9-20240521(react-dom@19.0.0-rc-8f3c0525f9-20240521)(react@19.0.0-rc-8f3c0525f9-20240521) + specifier: 19.0.0-rc-81c5ff2e04-20240521 + version: 19.0.0-rc-81c5ff2e04-20240521(react-dom@19.0.0-rc-81c5ff2e04-20240521)(react@19.0.0-rc-81c5ff2e04-20240521) react-server-dom-turbopack-experimental: - specifier: npm:react-server-dom-turbopack@0.0.0-experimental-8f3c0525f9-20240521 - version: /react-server-dom-turbopack@0.0.0-experimental-8f3c0525f9-20240521(react-dom@19.0.0-rc-8f3c0525f9-20240521)(react@19.0.0-rc-8f3c0525f9-20240521) + specifier: npm:react-server-dom-turbopack@0.0.0-experimental-81c5ff2e04-20240521 + version: /react-server-dom-turbopack@0.0.0-experimental-81c5ff2e04-20240521(react-dom@19.0.0-rc-81c5ff2e04-20240521)(react@19.0.0-rc-81c5ff2e04-20240521) react-server-dom-webpack: - specifier: 19.0.0-rc-8f3c0525f9-20240521 - version: 19.0.0-rc-8f3c0525f9-20240521(react-dom@19.0.0-rc-8f3c0525f9-20240521)(react@19.0.0-rc-8f3c0525f9-20240521)(webpack@5.90.0) + specifier: 19.0.0-rc-81c5ff2e04-20240521 + version: 19.0.0-rc-81c5ff2e04-20240521(react-dom@19.0.0-rc-81c5ff2e04-20240521)(react@19.0.0-rc-81c5ff2e04-20240521)(webpack@5.90.0) react-server-dom-webpack-experimental: - specifier: npm:react-server-dom-webpack@0.0.0-experimental-8f3c0525f9-20240521 - version: /react-server-dom-webpack@0.0.0-experimental-8f3c0525f9-20240521(react-dom@19.0.0-rc-8f3c0525f9-20240521)(react@19.0.0-rc-8f3c0525f9-20240521)(webpack@5.90.0) + specifier: npm:react-server-dom-webpack@0.0.0-experimental-81c5ff2e04-20240521 + version: /react-server-dom-webpack@0.0.0-experimental-81c5ff2e04-20240521(react-dom@19.0.0-rc-81c5ff2e04-20240521)(react@19.0.0-rc-81c5ff2e04-20240521)(webpack@5.90.0) react-ssr-prepass: specifier: 1.0.8 - version: 1.0.8(react-is@19.0.0-rc-8f3c0525f9-20240521)(react@19.0.0-rc-8f3c0525f9-20240521) + version: 1.0.8(react-is@19.0.0-rc-81c5ff2e04-20240521)(react@19.0.0-rc-81c5ff2e04-20240521) react-virtualized: specifier: 9.22.3 - version: 9.22.3(react-dom@19.0.0-rc-8f3c0525f9-20240521)(react@19.0.0-rc-8f3c0525f9-20240521) + version: 9.22.3(react-dom@19.0.0-rc-81c5ff2e04-20240521)(react@19.0.0-rc-81c5ff2e04-20240521) relay-compiler: specifier: 13.0.2 version: 13.0.2 @@ -499,11 +499,11 @@ importers: specifier: 0.10.9 version: 0.10.9 scheduler-builtin: - specifier: npm:scheduler@0.25.0-rc-8f3c0525f9-20240521 - version: /scheduler@0.25.0-rc-8f3c0525f9-20240521 + specifier: npm:scheduler@0.25.0-rc-81c5ff2e04-20240521 + version: /scheduler@0.25.0-rc-81c5ff2e04-20240521 scheduler-experimental-builtin: - specifier: npm:scheduler@0.0.0-experimental-8f3c0525f9-20240521 - version: /scheduler@0.0.0-experimental-8f3c0525f9-20240521 + specifier: npm:scheduler@0.0.0-experimental-81c5ff2e04-20240521 + version: /scheduler@0.0.0-experimental-81c5ff2e04-20240521 seedrandom: specifier: 3.0.5 version: 3.0.5 @@ -518,16 +518,16 @@ importers: version: 6.0.0 styled-components: specifier: 6.0.0-rc.3 - version: 6.0.0-rc.3(react-dom@19.0.0-rc-8f3c0525f9-20240521)(react@19.0.0-rc-8f3c0525f9-20240521) + version: 6.0.0-rc.3(react-dom@19.0.0-rc-81c5ff2e04-20240521)(react@19.0.0-rc-81c5ff2e04-20240521) styled-jsx: specifier: 5.1.3 - version: 5.1.3(@babel/core@7.22.5)(react@19.0.0-rc-8f3c0525f9-20240521) + version: 5.1.3(@babel/core@7.22.5)(react@19.0.0-rc-81c5ff2e04-20240521) styled-jsx-plugin-postcss: specifier: 3.0.2 version: 3.0.2 swr: specifier: ^2.2.4 - version: 2.2.4(react@19.0.0-rc-8f3c0525f9-20240521) + version: 2.2.4(react@19.0.0-rc-81c5ff2e04-20240521) tailwindcss: specifier: 3.2.7 version: 3.2.7(postcss@8.4.31) @@ -795,7 +795,7 @@ importers: dependencies: next: specifier: 14.3.0-canary.15 - version: 14.3.0-canary.15(@babel/core@7.22.5)(@opentelemetry/api@1.4.1)(@playwright/test@1.19.2)(react-dom@19.0.0-rc-8f3c0525f9-20240521)(react@19.0.0-rc-8f3c0525f9-20240521)(sass@1.54.0) + version: 14.3.0-canary.15(@babel/core@7.22.5)(@opentelemetry/api@1.4.1)(@playwright/test@1.19.2)(react-dom@19.0.0-rc-81c5ff2e04-20240521)(react@19.0.0-rc-81c5ff2e04-20240521)(sass@1.54.0) devDependencies: '@types/fontkit': specifier: 2.0.0 @@ -831,17 +831,17 @@ importers: specifier: 8.4.31 version: 8.4.31 react: - specifier: 19.0.0-rc-8f3c0525f9-20240521 - version: 19.0.0-rc-8f3c0525f9-20240521 + specifier: 19.0.0-rc-81c5ff2e04-20240521 + version: 19.0.0-rc-81c5ff2e04-20240521 react-dom: - specifier: 19.0.0-rc-8f3c0525f9-20240521 - version: 19.0.0-rc-8f3c0525f9-20240521(react@19.0.0-rc-8f3c0525f9-20240521) + specifier: 19.0.0-rc-81c5ff2e04-20240521 + version: 19.0.0-rc-81c5ff2e04-20240521(react@19.0.0-rc-81c5ff2e04-20240521) sass: specifier: ^1.3.0 version: 1.54.0 styled-jsx: specifier: 5.1.3 - version: 5.1.3(@babel/core@7.22.5)(react@19.0.0-rc-8f3c0525f9-20240521) + version: 5.1.3(@babel/core@7.22.5)(react@19.0.0-rc-81c5ff2e04-20240521) optionalDependencies: sharp: specifier: ^0.33.4 @@ -1334,8 +1334,8 @@ importers: specifier: 2.4.1 version: 2.4.1 react-is: - specifier: 19.0.0-rc-8f3c0525f9-20240521 - version: 19.0.0-rc-8f3c0525f9-20240521 + specifier: 19.0.0-rc-81c5ff2e04-20240521 + version: 19.0.0-rc-81c5ff2e04-20240521 react-refresh: specifier: 0.12.0 version: 0.12.0 @@ -1425,7 +1425,7 @@ importers: version: 1.0.35 unistore: specifier: 3.4.1 - version: 3.4.1(react@19.0.0-rc-8f3c0525f9-20240521) + version: 3.4.1(react@19.0.0-rc-81c5ff2e04-20240521) util: specifier: 0.12.4 version: 0.12.4 @@ -1513,7 +1513,7 @@ importers: version: 2.2.1(webpack@5.90.0) '@mdx-js/react': specifier: '>=0.15.0' - version: 2.2.1(react@19.0.0-rc-8f3c0525f9-20240521) + version: 2.2.1(react@19.0.0-rc-81c5ff2e04-20240521) source-map: specifier: ^0.7.0 version: 0.7.3 @@ -1564,8 +1564,8 @@ importers: packages/third-parties: dependencies: react: - specifier: 19.0.0-rc-8f3c0525f9-20240521 - version: 19.0.0-rc-8f3c0525f9-20240521 + specifier: 19.0.0-rc-81c5ff2e04-20240521 + version: 19.0.0-rc-81c5ff2e04-20240521 third-party-capital: specifier: 1.0.20 version: 1.0.20 @@ -3645,11 +3645,11 @@ packages: resolution: {integrity: sha512-W2P2c/VRW1/1tLox0mVUalvnWXxavmv/Oum2aPsRcoDJuob75FC3Y8FbpfLwUegRcxINtGUMPq0tFCvYNTBXNA==} dev: true - /@emotion/react@11.11.1(@types/react@18.2.74)(react@19.0.0-rc-8f3c0525f9-20240521): + /@emotion/react@11.11.1(@types/react@18.2.74)(react@19.0.0-rc-81c5ff2e04-20240521): resolution: {integrity: sha512-5mlW1DquU5HaxjLkfkGN1GA/fvVGdyHURRiX/0FHl2cfIfRxSOfmxEH5YS43edp0OldZrZ+dkBKbngxcNCdZvA==} peerDependencies: '@types/react': '*' - react: 19.0.0-rc-8f3c0525f9-20240521 + react: 19.0.0-rc-81c5ff2e04-20240521 peerDependenciesMeta: '@types/react': optional: true @@ -3658,12 +3658,12 @@ packages: '@emotion/babel-plugin': 11.11.0 '@emotion/cache': 11.11.0 '@emotion/serialize': 1.1.2 - '@emotion/use-insertion-effect-with-fallbacks': 1.0.1(react@19.0.0-rc-8f3c0525f9-20240521) + '@emotion/use-insertion-effect-with-fallbacks': 1.0.1(react@19.0.0-rc-81c5ff2e04-20240521) '@emotion/utils': 1.2.1 '@emotion/weak-memoize': 0.3.1 '@types/react': 18.2.74 hoist-non-react-statics: 3.3.2 - react: 19.0.0-rc-8f3c0525f9-20240521 + react: 19.0.0-rc-81c5ff2e04-20240521 dev: true /@emotion/serialize@1.1.2: @@ -3684,12 +3684,12 @@ packages: resolution: {integrity: sha512-KOEGMu6dmJZtpadb476IsZBclKvILjopjUii3V+7MnXIQCYh8W3NgNcgwo21n9LXZX6EDIKvqfjYxXebDwxKmQ==} dev: true - /@emotion/use-insertion-effect-with-fallbacks@1.0.1(react@19.0.0-rc-8f3c0525f9-20240521): + /@emotion/use-insertion-effect-with-fallbacks@1.0.1(react@19.0.0-rc-81c5ff2e04-20240521): resolution: {integrity: sha512-jT/qyKZ9rzLErtrjGgdkMBn2OP8wl0G3sQlBb3YPryvKHsjvINUhVaPFfP+fpBcOkmrVOVEEHQFJ7nbj2TH2gw==} peerDependencies: - react: 19.0.0-rc-8f3c0525f9-20240521 + react: 19.0.0-rc-81c5ff2e04-20240521 dependencies: - react: 19.0.0-rc-8f3c0525f9-20240521 + react: 19.0.0-rc-81c5ff2e04-20240521 dev: true /@emotion/utils@1.2.1: @@ -5533,14 +5533,14 @@ packages: transitivePeerDependencies: - supports-color - /@mdx-js/react@2.2.1(react@19.0.0-rc-8f3c0525f9-20240521): + /@mdx-js/react@2.2.1(react@19.0.0-rc-81c5ff2e04-20240521): resolution: {integrity: sha512-YdXcMcEnqZhzql98RNrqYo9cEhTTesBiCclEtoiQUbJwx87q9453GTapYU6kJ8ZZ2ek1Vp25SiAXEFy5O/eAPw==} peerDependencies: - react: 19.0.0-rc-8f3c0525f9-20240521 + react: 19.0.0-rc-81c5ff2e04-20240521 dependencies: '@types/mdx': 2.0.3 '@types/react': 18.2.74 - react: 19.0.0-rc-8f3c0525f9-20240521 + react: 19.0.0-rc-81c5ff2e04-20240521 /@mswjs/cookies@0.2.2: resolution: {integrity: sha512-mlN83YSrcFgk7Dm1Mys40DLssI1KdJji2CMKN8eOlBqsTADYzj2+jWzsANsUTFbxDMWPD5e9bfA1RGqBpS3O1g==} @@ -6908,13 +6908,13 @@ packages: redent: 3.0.0 dev: true - /@testing-library/react@15.0.7(@types/react@18.2.74)(react-dom@19.0.0-rc-8f3c0525f9-20240521)(react@19.0.0-rc-8f3c0525f9-20240521): + /@testing-library/react@15.0.7(@types/react@18.2.74)(react-dom@19.0.0-rc-81c5ff2e04-20240521)(react@19.0.0-rc-81c5ff2e04-20240521): resolution: {integrity: sha512-cg0RvEdD1TIhhkm1IeYMQxrzy0MtUNfa3minv4MjbgcYzJAZ7yD0i0lwoPOTPr+INtiXFezt2o8xMSnyHhEn2Q==} engines: {node: '>=18'} peerDependencies: '@types/react': 18.2.74 - react: 19.0.0-rc-8f3c0525f9-20240521 - react-dom: 19.0.0-rc-8f3c0525f9-20240521 + react: 19.0.0-rc-81c5ff2e04-20240521 + react-dom: 19.0.0-rc-81c5ff2e04-20240521 peerDependenciesMeta: '@types/react': optional: true @@ -6923,8 +6923,8 @@ packages: '@testing-library/dom': 10.1.0 '@types/react': 18.2.74 '@types/react-dom': 18.2.23 - react: 19.0.0-rc-8f3c0525f9-20240521 - react-dom: 19.0.0-rc-8f3c0525f9-20240521(react@19.0.0-rc-8f3c0525f9-20240521) + react: 19.0.0-rc-81c5ff2e04-20240521 + react-dom: 19.0.0-rc-81c5ff2e04-20240521(react@19.0.0-rc-81c5ff2e04-20240521) dev: true /@tootallnate/once@1.1.2: @@ -14098,7 +14098,7 @@ packages: /hoist-non-react-statics@3.3.2: resolution: {integrity: sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==} dependencies: - react-is: 19.0.0-rc-8f3c0525f9-20240521 + react-is: 19.0.0-rc-81c5ff2e04-20240521 dev: true /homedir-polyfill@1.0.3: @@ -18295,15 +18295,15 @@ packages: resolution: {integrity: sha1-yobR/ogoFpsBICCOPchCS524NCw=} dev: true - /next@14.3.0-canary.15(@babel/core@7.22.5)(@opentelemetry/api@1.4.1)(@playwright/test@1.19.2)(react-dom@19.0.0-rc-8f3c0525f9-20240521)(react@19.0.0-rc-8f3c0525f9-20240521)(sass@1.54.0): + /next@14.3.0-canary.15(@babel/core@7.22.5)(@opentelemetry/api@1.4.1)(@playwright/test@1.19.2)(react-dom@19.0.0-rc-81c5ff2e04-20240521)(react@19.0.0-rc-81c5ff2e04-20240521)(sass@1.54.0): resolution: {integrity: sha512-vQ376NxcS/zYLJKIZRRfyis9nK+Y23KUqD8Hg93kbrgVWhJW0fZIcKf14ATm8AZg2uxDt4/vj7gVOt1QrWtMIQ==} engines: {node: '>=18.17.0'} hasBin: true peerDependencies: '@opentelemetry/api': ^1.1.0 '@playwright/test': ^1.41.2 - react: 19.0.0-rc-8f3c0525f9-20240521 - react-dom: 19.0.0-rc-8f3c0525f9-20240521 + react: 19.0.0-rc-81c5ff2e04-20240521 + react-dom: 19.0.0-rc-81c5ff2e04-20240521 sass: ^1.3.0 peerDependenciesMeta: '@opentelemetry/api': @@ -18321,10 +18321,10 @@ packages: caniuse-lite: 1.0.30001579 graceful-fs: 4.2.11 postcss: 8.4.31 - react: 19.0.0-rc-8f3c0525f9-20240521 - react-dom: 19.0.0-rc-8f3c0525f9-20240521(react@19.0.0-rc-8f3c0525f9-20240521) + react: 19.0.0-rc-81c5ff2e04-20240521 + react-dom: 19.0.0-rc-81c5ff2e04-20240521(react@19.0.0-rc-81c5ff2e04-20240521) sass: 1.54.0 - styled-jsx: 5.1.1(@babel/core@7.22.5)(react@19.0.0-rc-8f3c0525f9-20240521) + styled-jsx: 5.1.1(@babel/core@7.22.5)(react@19.0.0-rc-81c5ff2e04-20240521) optionalDependencies: '@next/swc-darwin-arm64': 14.3.0-canary.15 '@next/swc-darwin-x64': 14.3.0-canary.15 @@ -20936,7 +20936,7 @@ packages: '@jest/types': 24.9.0 ansi-regex: 4.1.0 ansi-styles: 3.2.1 - react-is: 19.0.0-rc-8f3c0525f9-20240521 + react-is: 19.0.0-rc-81c5ff2e04-20240521 /pretty-format@27.5.1: resolution: {integrity: sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==} @@ -20944,7 +20944,7 @@ packages: dependencies: ansi-regex: 5.0.1 ansi-styles: 5.2.0 - react-is: 19.0.0-rc-8f3c0525f9-20240521 + react-is: 19.0.0-rc-81c5ff2e04-20240521 /pretty-format@29.5.0: resolution: {integrity: sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==} @@ -20952,7 +20952,7 @@ packages: dependencies: '@jest/schemas': 29.4.3 ansi-styles: 5.2.0 - react-is: 19.0.0-rc-8f3c0525f9-20240521 + react-is: 19.0.0-rc-81c5ff2e04-20240521 dev: true /pretty-format@29.7.0: @@ -20961,7 +20961,7 @@ packages: dependencies: '@jest/schemas': 29.6.3 ansi-styles: 5.2.0 - react-is: 19.0.0-rc-8f3c0525f9-20240521 + react-is: 19.0.0-rc-81c5ff2e04-20240521 dev: true /pretty-ms@7.0.0: @@ -21063,7 +21063,7 @@ packages: dependencies: loose-envify: 1.4.0 object-assign: 4.1.1 - react-is: 19.0.0-rc-8f3c0525f9-20240521 + react-is: 19.0.0-rc-81c5ff2e04-20240521 /proper-lockfile@4.1.2: resolution: {integrity: sha512-TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA==} @@ -21343,36 +21343,36 @@ packages: strip-json-comments: 2.0.1 dev: true - /react-dom@0.0.0-experimental-8f3c0525f9-20240521(react@19.0.0-rc-8f3c0525f9-20240521): - resolution: {integrity: sha512-fehs/Y2fqMzAUPyOHlc/L7bCl4X4tMsa+OnypsV9VkpnH7/1ysbJjx2tzMoZDeeBXdMMsWUkac/8r6uhEyGCtA==} + /react-dom@0.0.0-experimental-81c5ff2e04-20240521(react@19.0.0-rc-81c5ff2e04-20240521): + resolution: {integrity: sha512-FrdBIpKgtVMHQeqTNoLgPQgyg8e5AMqq9K7qH4JTm38y/ZKxzGYbSuQVaBb/3rzSZZglbZMjOzCPfNzLIUsAVw==} peerDependencies: - react: 19.0.0-rc-8f3c0525f9-20240521 + react: 19.0.0-rc-81c5ff2e04-20240521 dependencies: - react: 19.0.0-rc-8f3c0525f9-20240521 - scheduler: 0.25.0-rc-8f3c0525f9-20240521 + react: 19.0.0-rc-81c5ff2e04-20240521 + scheduler: 0.25.0-rc-81c5ff2e04-20240521 dev: true - /react-dom@17.0.2(react@19.0.0-rc-8f3c0525f9-20240521): + /react-dom@17.0.2(react@19.0.0-rc-81c5ff2e04-20240521): resolution: {integrity: sha512-s4h96KtLDUQlsENhMn1ar8t2bEa+q/YAtj8pPPdIjPDGBDIVNsrD9aXNWqspUe6AzKCIG0C1HZZLqLV7qpOBGA==} peerDependencies: - react: 19.0.0-rc-8f3c0525f9-20240521 + react: 19.0.0-rc-81c5ff2e04-20240521 dependencies: loose-envify: 1.4.0 object-assign: 4.1.1 - react: 19.0.0-rc-8f3c0525f9-20240521 - scheduler: 0.25.0-rc-8f3c0525f9-20240521 + react: 19.0.0-rc-81c5ff2e04-20240521 + scheduler: 0.25.0-rc-81c5ff2e04-20240521 dev: true - /react-dom@19.0.0-rc-8f3c0525f9-20240521(react@19.0.0-rc-8f3c0525f9-20240521): - resolution: {integrity: sha512-fLopgMEm6RQxfCXVoLKfGFcLJSqqxfFIDxznJCJsYUFrZIYLXTSJCwlSoCuU/LPHyweAoJh871l/9695jqnWaw==} + /react-dom@19.0.0-rc-81c5ff2e04-20240521(react@19.0.0-rc-81c5ff2e04-20240521): + resolution: {integrity: sha512-oRvLt3+En5x4xTwZ6mtUxEviKL5tpa4Rll4aIoFZMpmLxCy9a1y9GnToYqa5s/ARCKQPfA98+xK+XZrnp9txFA==} peerDependencies: - react: 19.0.0-rc-8f3c0525f9-20240521 + react: 19.0.0-rc-81c5ff2e04-20240521 dependencies: - react: 19.0.0-rc-8f3c0525f9-20240521 - scheduler: 0.25.0-rc-8f3c0525f9-20240521 + react: 19.0.0-rc-81c5ff2e04-20240521 + scheduler: 0.25.0-rc-81c5ff2e04-20240521 - /react-is@19.0.0-rc-8f3c0525f9-20240521: - resolution: {integrity: sha512-GnMAsKT8fh3lacOG741zE9n3sI62/wJMBaEDIL+EpfS1oI3jV618R+tFNkS9Idrv7kkkc2CYpfWXQCHrM/VeqA==} + /react-is@19.0.0-rc-81c5ff2e04-20240521: + resolution: {integrity: sha512-nsqtQrTMzfF8HMdZZbUPyRUiqTJL2bpVEUp4Qf5Tj6/kQMx3ywMREd2aMLU9TrIriomCq5UqMVsz5UrW/hA+kw==} /react-lifecycles-compat@3.0.4: resolution: {integrity: sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==} @@ -21383,91 +21383,91 @@ packages: engines: {node: '>=0.10.0'} dev: true - /react-server-dom-turbopack@0.0.0-experimental-8f3c0525f9-20240521(react-dom@19.0.0-rc-8f3c0525f9-20240521)(react@19.0.0-rc-8f3c0525f9-20240521): - resolution: {integrity: sha512-/pcx7OjonhsBCtsqCLnKCNKkox2XSTQGpte4+TEZ0znimyOxp92Rz0QAN0xveGl9pUa0O0TFwgR1Ws9NngokeA==} + /react-server-dom-turbopack@0.0.0-experimental-81c5ff2e04-20240521(react-dom@19.0.0-rc-81c5ff2e04-20240521)(react@19.0.0-rc-81c5ff2e04-20240521): + resolution: {integrity: sha512-nT50BUQf7jLWVvMEtyKUChA6iKVziW4FfZgz4XJoNGwDjITwAiwLONucgL78qvnfXR4NrrB3K6zxSQ86BJ/3QA==} engines: {node: '>=0.10.0'} peerDependencies: - react: 19.0.0-rc-8f3c0525f9-20240521 - react-dom: 19.0.0-rc-8f3c0525f9-20240521 + react: 19.0.0-rc-81c5ff2e04-20240521 + react-dom: 19.0.0-rc-81c5ff2e04-20240521 dependencies: acorn-loose: 8.3.0 neo-async: 2.6.1 - react: 19.0.0-rc-8f3c0525f9-20240521 - react-dom: 19.0.0-rc-8f3c0525f9-20240521(react@19.0.0-rc-8f3c0525f9-20240521) + react: 19.0.0-rc-81c5ff2e04-20240521 + react-dom: 19.0.0-rc-81c5ff2e04-20240521(react@19.0.0-rc-81c5ff2e04-20240521) dev: true - /react-server-dom-turbopack@19.0.0-rc-8f3c0525f9-20240521(react-dom@19.0.0-rc-8f3c0525f9-20240521)(react@19.0.0-rc-8f3c0525f9-20240521): - resolution: {integrity: sha512-W0Ad91dHRHZN+KsJRg2fNNHIMAKft8Sl9lqXYmOinUpwD4dXJbwIrFiNKjamgR1cTUFZC3oLZnEgmxyyu2/CYw==} + /react-server-dom-turbopack@19.0.0-rc-81c5ff2e04-20240521(react-dom@19.0.0-rc-81c5ff2e04-20240521)(react@19.0.0-rc-81c5ff2e04-20240521): + resolution: {integrity: sha512-gmn7/CB1VuIi25nT+o8OZpqQhRndWadayCCPhbz6PVtPeD+DlLAlHBkS9ReoRj1lAXh+aPZpRXYlDz7jP3CnZg==} engines: {node: '>=0.10.0'} peerDependencies: - react: 19.0.0-rc-8f3c0525f9-20240521 - react-dom: 19.0.0-rc-8f3c0525f9-20240521 + react: 19.0.0-rc-81c5ff2e04-20240521 + react-dom: 19.0.0-rc-81c5ff2e04-20240521 dependencies: acorn-loose: 8.3.0 neo-async: 2.6.1 - react: 19.0.0-rc-8f3c0525f9-20240521 - react-dom: 19.0.0-rc-8f3c0525f9-20240521(react@19.0.0-rc-8f3c0525f9-20240521) + react: 19.0.0-rc-81c5ff2e04-20240521 + react-dom: 19.0.0-rc-81c5ff2e04-20240521(react@19.0.0-rc-81c5ff2e04-20240521) dev: true - /react-server-dom-webpack@0.0.0-experimental-8f3c0525f9-20240521(react-dom@19.0.0-rc-8f3c0525f9-20240521)(react@19.0.0-rc-8f3c0525f9-20240521)(webpack@5.90.0): - resolution: {integrity: sha512-IcYQ+vNFglaARtIGK8ZlbshrgnbwIUO8ynT+RZICYIYap9BWGiDn4Rjq3cNbIBqfQnjK8lmYV8XDcJM12FyD0w==} + /react-server-dom-webpack@0.0.0-experimental-81c5ff2e04-20240521(react-dom@19.0.0-rc-81c5ff2e04-20240521)(react@19.0.0-rc-81c5ff2e04-20240521)(webpack@5.90.0): + resolution: {integrity: sha512-k6xL3UMS0G9AXpRXHqx6B43hNUDqUS/2tUQuuaiBs/9UIwjwALeWva+JNk4i54WqnSDRjzu3787QmZfoMMmcBQ==} engines: {node: '>=0.10.0'} peerDependencies: - react: 19.0.0-rc-8f3c0525f9-20240521 - react-dom: 19.0.0-rc-8f3c0525f9-20240521 + react: 19.0.0-rc-81c5ff2e04-20240521 + react-dom: 19.0.0-rc-81c5ff2e04-20240521 webpack: 5.90.0 dependencies: acorn-loose: 8.3.0 neo-async: 2.6.1 - react: 19.0.0-rc-8f3c0525f9-20240521 - react-dom: 19.0.0-rc-8f3c0525f9-20240521(react@19.0.0-rc-8f3c0525f9-20240521) + react: 19.0.0-rc-81c5ff2e04-20240521 + react-dom: 19.0.0-rc-81c5ff2e04-20240521(react@19.0.0-rc-81c5ff2e04-20240521) webpack: 5.90.0(@swc/core@1.5.7) dev: true - /react-server-dom-webpack@19.0.0-rc-8f3c0525f9-20240521(react-dom@19.0.0-rc-8f3c0525f9-20240521)(react@19.0.0-rc-8f3c0525f9-20240521)(webpack@5.90.0): - resolution: {integrity: sha512-pzbj+T5d76qRCH8ynKhO37gXMKUfKuI3d+CqACzysaSlDhkv2b0Q+pqoPRf19S7zGrLsAaBHF2vHXnSdDtyg6Q==} + /react-server-dom-webpack@19.0.0-rc-81c5ff2e04-20240521(react-dom@19.0.0-rc-81c5ff2e04-20240521)(react@19.0.0-rc-81c5ff2e04-20240521)(webpack@5.90.0): + resolution: {integrity: sha512-Z6SKWqaUMxrB6a9cQMxZzOerb6o5d23IYjLe5x1+Vv8z3PJ0PP8Hw4o7hDVbYdIUbw0lHzGMXBaNRd6PCsbULA==} engines: {node: '>=0.10.0'} peerDependencies: - react: 19.0.0-rc-8f3c0525f9-20240521 - react-dom: 19.0.0-rc-8f3c0525f9-20240521 + react: 19.0.0-rc-81c5ff2e04-20240521 + react-dom: 19.0.0-rc-81c5ff2e04-20240521 webpack: 5.90.0 dependencies: acorn-loose: 8.3.0 neo-async: 2.6.1 - react: 19.0.0-rc-8f3c0525f9-20240521 - react-dom: 19.0.0-rc-8f3c0525f9-20240521(react@19.0.0-rc-8f3c0525f9-20240521) + react: 19.0.0-rc-81c5ff2e04-20240521 + react-dom: 19.0.0-rc-81c5ff2e04-20240521(react@19.0.0-rc-81c5ff2e04-20240521) webpack: 5.90.0(@swc/core@1.5.7) dev: true - /react-ssr-prepass@1.0.8(react-is@19.0.0-rc-8f3c0525f9-20240521)(react@19.0.0-rc-8f3c0525f9-20240521): + /react-ssr-prepass@1.0.8(react-is@19.0.0-rc-81c5ff2e04-20240521)(react@19.0.0-rc-81c5ff2e04-20240521): resolution: {integrity: sha512-O0gfRA1SaK+9ITKxqfnXsej2jF+OHGP/+GxD4unROQaM/0/UczGF9fuF+wTboxaQoKdIf4FvS3h/OigWh704VA==} peerDependencies: - react: 19.0.0-rc-8f3c0525f9-20240521 - react-is: 19.0.0-rc-8f3c0525f9-20240521 + react: 19.0.0-rc-81c5ff2e04-20240521 + react-is: 19.0.0-rc-81c5ff2e04-20240521 dependencies: object-is: 1.0.2 - react: 19.0.0-rc-8f3c0525f9-20240521 - react-is: 19.0.0-rc-8f3c0525f9-20240521 + react: 19.0.0-rc-81c5ff2e04-20240521 + react-is: 19.0.0-rc-81c5ff2e04-20240521 dev: true - /react-virtualized@9.22.3(react-dom@19.0.0-rc-8f3c0525f9-20240521)(react@19.0.0-rc-8f3c0525f9-20240521): + /react-virtualized@9.22.3(react-dom@19.0.0-rc-81c5ff2e04-20240521)(react@19.0.0-rc-81c5ff2e04-20240521): resolution: {integrity: sha512-MKovKMxWTcwPSxE1kK1HcheQTWfuCxAuBoSTf2gwyMM21NdX/PXUhnoP8Uc5dRKd+nKm8v41R36OellhdCpkrw==} peerDependencies: - react: 19.0.0-rc-8f3c0525f9-20240521 - react-dom: 19.0.0-rc-8f3c0525f9-20240521 + react: 19.0.0-rc-81c5ff2e04-20240521 + react-dom: 19.0.0-rc-81c5ff2e04-20240521 dependencies: '@babel/runtime': 7.22.5 clsx: 1.1.1 dom-helpers: 5.2.1 loose-envify: 1.4.0 prop-types: 15.8.1 - react: 19.0.0-rc-8f3c0525f9-20240521 - react-dom: 19.0.0-rc-8f3c0525f9-20240521(react@19.0.0-rc-8f3c0525f9-20240521) + react: 19.0.0-rc-81c5ff2e04-20240521 + react-dom: 19.0.0-rc-81c5ff2e04-20240521(react@19.0.0-rc-81c5ff2e04-20240521) react-lifecycles-compat: 3.0.4 dev: true - /react@0.0.0-experimental-8f3c0525f9-20240521: - resolution: {integrity: sha512-BCs3o0YhOEZRso0Gt+JQ3Z9I1pHBrmMh1AZ5DCwh5JU6OHYNoUckuPW7eAO4Un1vDwAEBeMQkXkIwvLi3sWNWg==} + /react@0.0.0-experimental-81c5ff2e04-20240521: + resolution: {integrity: sha512-b+pezSeuWjokAdwAuSnonsnUxvSi2Pde8cExKX5N3N7mNhMUKZGS5IczIkEYD/DlPolTlwtXyzfc1xKEVEWJUw==} engines: {node: '>=0.10.0'} dev: true @@ -21479,8 +21479,8 @@ packages: object-assign: 4.1.1 dev: true - /react@19.0.0-rc-8f3c0525f9-20240521: - resolution: {integrity: sha512-xZsfCREYO7jV4BXnUeLQaQq55FFQBw8alIL9JiexnbJEFq1Wl1TtOwoq00qIncNaDqBVqRNlPElGJgPq4WJoVA==} + /react@19.0.0-rc-81c5ff2e04-20240521: + resolution: {integrity: sha512-f0CUMu4N2VBPbfv4wP+ydp+ulrOsqdY/4nBEV/pCOsz98NoBV56ka511yRAYJYDOcHbYdaCHG9gG1057D+cieA==} engines: {node: '>=0.10.0'} /read-cache@1.0.0: @@ -22469,12 +22469,12 @@ packages: xmlchars: 2.2.0 dev: true - /scheduler@0.0.0-experimental-8f3c0525f9-20240521: - resolution: {integrity: sha512-bQugZprlAPK1baTYJ7VcPsfjnYrVik7T+/1gYbrGlJ/qfRxvE0iLiEvIHkQf5bJRx/rWrqy/CAkYZhOxDKCDZQ==} + /scheduler@0.0.0-experimental-81c5ff2e04-20240521: + resolution: {integrity: sha512-RJlwzHfcMwnvi0DX1cT6M6Esx35YcfUVH1E5DpFchINxCI6iCcWDN1xc7hlXrHZ17krbVcjrIY6dLvbSlqrO2w==} dev: true - /scheduler@0.25.0-rc-8f3c0525f9-20240521: - resolution: {integrity: sha512-i27QJ0bghG46kJ1/XXTe69zPjRqKr9AO9tjRkqERkIof3wfsueI0IRYJqyS3ENWXnleG8ifBI63p7CsNAjEiVA==} + /scheduler@0.25.0-rc-81c5ff2e04-20240521: + resolution: {integrity: sha512-KiZmJjyOiYuCI1e41iciBLBy7ImMh7mD388k88Hd0sJQdX3Tgw74+v8xZ4ZSCiSsJ8xXeoZSzmgPgfZY5T9Z7A==} /schema-utils@2.7.1: resolution: {integrity: sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==} @@ -23486,13 +23486,13 @@ packages: dependencies: inline-style-parser: 0.1.1 - /styled-components@6.0.0-rc.3(react-dom@19.0.0-rc-8f3c0525f9-20240521)(react@19.0.0-rc-8f3c0525f9-20240521): + /styled-components@6.0.0-rc.3(react-dom@19.0.0-rc-81c5ff2e04-20240521)(react@19.0.0-rc-81c5ff2e04-20240521): resolution: {integrity: sha512-5FbCTxynopck99GRwM5Ey0+VRp8pkQq69TwGOJJeYtR7gPvwGjNx8yBPLN7/dfxwwvn9ymOZYB19eQkv2k70wQ==} engines: {node: '>= 16'} peerDependencies: babel-plugin-styled-components: '>= 2' - react: 19.0.0-rc-8f3c0525f9-20240521 - react-dom: 19.0.0-rc-8f3c0525f9-20240521 + react: 19.0.0-rc-81c5ff2e04-20240521 + react-dom: 19.0.0-rc-81c5ff2e04-20240521 peerDependenciesMeta: babel-plugin-styled-components: optional: true @@ -23510,8 +23510,8 @@ packages: '@emotion/unitless': 0.8.1 css-to-react-native: 3.2.0 postcss: 8.4.31 - react: 19.0.0-rc-8f3c0525f9-20240521 - react-dom: 19.0.0-rc-8f3c0525f9-20240521(react@19.0.0-rc-8f3c0525f9-20240521) + react: 19.0.0-rc-81c5ff2e04-20240521 + react-dom: 19.0.0-rc-81c5ff2e04-20240521(react@19.0.0-rc-81c5ff2e04-20240521) shallowequal: 1.1.0 stylis: 4.2.0 tslib: 2.5.3 @@ -23526,13 +23526,13 @@ packages: postcss-load-plugins: 2.3.0 dev: true - /styled-jsx@5.1.1(@babel/core@7.22.5)(react@19.0.0-rc-8f3c0525f9-20240521): + /styled-jsx@5.1.1(@babel/core@7.22.5)(react@19.0.0-rc-81c5ff2e04-20240521): resolution: {integrity: sha512-pW7uC1l4mBZ8ugbiZrcIsiIvVx1UmTfw7UkC3Um2tmfUq9Bhk8IiyEIPl6F8agHgjzku6j0xQEZbfA5uSgSaCw==} engines: {node: '>= 12.0.0'} peerDependencies: '@babel/core': '*' babel-plugin-macros: '*' - react: 19.0.0-rc-8f3c0525f9-20240521 + react: 19.0.0-rc-81c5ff2e04-20240521 peerDependenciesMeta: '@babel/core': optional: true @@ -23541,16 +23541,16 @@ packages: dependencies: '@babel/core': 7.22.5 client-only: 0.0.1 - react: 19.0.0-rc-8f3c0525f9-20240521 + react: 19.0.0-rc-81c5ff2e04-20240521 dev: false - /styled-jsx@5.1.3(@babel/core@7.22.5)(react@19.0.0-rc-8f3c0525f9-20240521): + /styled-jsx@5.1.3(@babel/core@7.22.5)(react@19.0.0-rc-81c5ff2e04-20240521): resolution: {integrity: sha512-qLRShOWTE/Mf6Bvl72kFeKBl8N2Eq9WIFfoAuvbtP/6tqlnj1SCjv117n2MIjOPpa1jTorYqLJgsHKy5Y3ziww==} engines: {node: '>= 12.0.0'} peerDependencies: '@babel/core': '*' babel-plugin-macros: '*' - react: 19.0.0-rc-8f3c0525f9-20240521 + react: 19.0.0-rc-81c5ff2e04-20240521 peerDependenciesMeta: '@babel/core': optional: true @@ -23559,7 +23559,7 @@ packages: dependencies: '@babel/core': 7.22.5 client-only: 0.0.1 - react: 19.0.0-rc-8f3c0525f9-20240521 + react: 19.0.0-rc-81c5ff2e04-20240521 /stylehacks@4.0.3: resolution: {integrity: sha512-7GlLk9JwlElY4Y6a/rmbH2MhVlTyVmiJd1PfTCqFaIBEGMYNsrO/v3SeGTdhBThLg4Z+NbOk/qFMwCa+J+3p/g==} @@ -23693,14 +23693,14 @@ packages: stable: 0.1.8 dev: true - /swr@2.2.4(react@19.0.0-rc-8f3c0525f9-20240521): + /swr@2.2.4(react@19.0.0-rc-81c5ff2e04-20240521): resolution: {integrity: sha512-njiZ/4RiIhoOlAaLYDqwz5qH/KZXVilRLvomrx83HjzCWTfa+InyfAjv05PSFxnmLzZkNO9ZfvgoqzAaEI4sGQ==} peerDependencies: - react: 19.0.0-rc-8f3c0525f9-20240521 + react: 19.0.0-rc-81c5ff2e04-20240521 dependencies: client-only: 0.0.1 - react: 19.0.0-rc-8f3c0525f9-20240521 - use-sync-external-store: 1.2.0(react@19.0.0-rc-8f3c0525f9-20240521) + react: 19.0.0-rc-81c5ff2e04-20240521 + use-sync-external-store: 1.2.0(react@19.0.0-rc-81c5ff2e04-20240521) dev: true /symbol-observable@1.0.1: @@ -24778,7 +24778,7 @@ packages: unist-util-is: 5.2.0 unist-util-visit-parents: 5.1.3 - /unistore@3.4.1(react@19.0.0-rc-8f3c0525f9-20240521): + /unistore@3.4.1(react@19.0.0-rc-81c5ff2e04-20240521): resolution: {integrity: sha512-p2Ej8qqrqcD10Ah0ZUKUU/mhRB8pM4q6gzjxq9kZpgxa8dks7oHT8jDP4CqLhoRof3RXOZLKB9EBV1DTzHiJRw==} peerDependencies: preact: '*' @@ -24789,7 +24789,7 @@ packages: react: optional: true dependencies: - react: 19.0.0-rc-8f3c0525f9-20240521 + react: 19.0.0-rc-81c5ff2e04-20240521 dev: true /universal-github-app-jwt@1.1.1: @@ -24944,12 +24944,12 @@ packages: engines: {node: '>= 4'} dev: true - /use-sync-external-store@1.2.0(react@19.0.0-rc-8f3c0525f9-20240521): + /use-sync-external-store@1.2.0(react@19.0.0-rc-81c5ff2e04-20240521): resolution: {integrity: sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==} peerDependencies: - react: 19.0.0-rc-8f3c0525f9-20240521 + react: 19.0.0-rc-81c5ff2e04-20240521 dependencies: - react: 19.0.0-rc-8f3c0525f9-20240521 + react: 19.0.0-rc-81c5ff2e04-20240521 dev: true /use@3.1.1: diff --git a/test/.stats-app/package.json b/test/.stats-app/package.json index 7fc2d8637d8b1d..a4a20184487220 100644 --- a/test/.stats-app/package.json +++ b/test/.stats-app/package.json @@ -3,9 +3,9 @@ "private": true, "license": "MIT", "dependencies": { - "next": "19.0.0-rc-8f3c0525f9-20240521", - "react": "19.0.0-rc-8f3c0525f9-20240521", - "react-dom": "19.0.0-rc-8f3c0525f9-20240521" + "next": "19.0.0-rc-81c5ff2e04-20240521", + "react": "19.0.0-rc-81c5ff2e04-20240521", + "react-dom": "19.0.0-rc-81c5ff2e04-20240521" }, "engines": { "node": ">=18.17.0", diff --git a/test/development/acceptance-app/ReactRefresh.test.ts b/test/development/acceptance-app/ReactRefresh.test.ts index 152292323b6044..b3df5ae22f3b15 100644 --- a/test/development/acceptance-app/ReactRefresh.test.ts +++ b/test/development/acceptance-app/ReactRefresh.test.ts @@ -8,8 +8,8 @@ describe('ReactRefresh app', () => { const { next } = nextTestSetup({ files: new FileRef(path.join(__dirname, 'fixtures', 'default-template')), dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', }, skipStart: true, }) diff --git a/test/development/acceptance-app/ReactRefreshLogBox-builtins.test.ts b/test/development/acceptance-app/ReactRefreshLogBox-builtins.test.ts index 463f2db0a38b4f..542c714c2b79bd 100644 --- a/test/development/acceptance-app/ReactRefreshLogBox-builtins.test.ts +++ b/test/development/acceptance-app/ReactRefreshLogBox-builtins.test.ts @@ -9,8 +9,8 @@ describe.each(['default', 'turbo'])('ReactRefreshLogBox app %s', () => { const { next } = nextTestSetup({ files: new FileRef(path.join(__dirname, 'fixtures', 'default-template')), dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', }, skipStart: true, }) diff --git a/test/development/acceptance-app/ReactRefreshLogBox-scss.test.ts b/test/development/acceptance-app/ReactRefreshLogBox-scss.test.ts index a4c13f77e5e9e3..5597d4b48d1bae 100644 --- a/test/development/acceptance-app/ReactRefreshLogBox-scss.test.ts +++ b/test/development/acceptance-app/ReactRefreshLogBox-scss.test.ts @@ -11,8 +11,8 @@ describe.skip('ReactRefreshLogBox scss app', () => { files: new FileRef(path.join(__dirname, 'fixtures', 'default-template')), dependencies: { sass: 'latest', - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', }, skipStart: true, }) diff --git a/test/development/acceptance-app/ReactRefreshLogBox.test.ts b/test/development/acceptance-app/ReactRefreshLogBox.test.ts index 155ba11def0e9c..75f99ff12713ad 100644 --- a/test/development/acceptance-app/ReactRefreshLogBox.test.ts +++ b/test/development/acceptance-app/ReactRefreshLogBox.test.ts @@ -15,8 +15,8 @@ describe.each(['default', 'turbo'])('ReactRefreshLogBox app %s', () => { const { next } = nextTestSetup({ files: new FileRef(path.join(__dirname, 'fixtures', 'default-template')), dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', }, skipStart: true, }) diff --git a/test/development/acceptance-app/ReactRefreshLogBoxMisc.test.ts b/test/development/acceptance-app/ReactRefreshLogBoxMisc.test.ts index 084c407daf95b7..4b14ef502b94d5 100644 --- a/test/development/acceptance-app/ReactRefreshLogBoxMisc.test.ts +++ b/test/development/acceptance-app/ReactRefreshLogBoxMisc.test.ts @@ -9,8 +9,8 @@ describe.skip('ReactRefreshLogBox app', () => { const { next } = nextTestSetup({ files: new FileRef(path.join(__dirname, 'fixtures', 'default-template')), dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', }, skipStart: true, }) diff --git a/test/development/acceptance-app/ReactRefreshModule.test.ts b/test/development/acceptance-app/ReactRefreshModule.test.ts index 4fed3475766adb..f9e0f789df1916 100644 --- a/test/development/acceptance-app/ReactRefreshModule.test.ts +++ b/test/development/acceptance-app/ReactRefreshModule.test.ts @@ -7,8 +7,8 @@ describe('ReactRefreshModule app', () => { const { next } = nextTestSetup({ files: new FileRef(path.join(__dirname, 'fixtures', 'default-template')), dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', }, skipStart: true, }) diff --git a/test/development/acceptance-app/ReactRefreshRegression.test.ts b/test/development/acceptance-app/ReactRefreshRegression.test.ts index aa4f90c9040eb6..72aebfdb747c45 100644 --- a/test/development/acceptance-app/ReactRefreshRegression.test.ts +++ b/test/development/acceptance-app/ReactRefreshRegression.test.ts @@ -12,8 +12,8 @@ describe('ReactRefreshRegression app', () => { 'styled-components': '5.1.0', '@next/mdx': 'canary', '@mdx-js/loader': '0.18.0', - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', }, skipStart: true, }) diff --git a/test/development/acceptance-app/ReactRefreshRequire.test.ts b/test/development/acceptance-app/ReactRefreshRequire.test.ts index e07ba6d53bc1ea..532980689f9df2 100644 --- a/test/development/acceptance-app/ReactRefreshRequire.test.ts +++ b/test/development/acceptance-app/ReactRefreshRequire.test.ts @@ -8,8 +8,8 @@ describe('ReactRefreshRequire app', () => { const { next } = nextTestSetup({ files: new FileRef(path.join(__dirname, 'fixtures', 'default-template')), dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', }, skipStart: true, }) diff --git a/test/development/acceptance-app/editor-links.test.ts b/test/development/acceptance-app/editor-links.test.ts index 23039b98cb45e7..634d2febd2e172 100644 --- a/test/development/acceptance-app/editor-links.test.ts +++ b/test/development/acceptance-app/editor-links.test.ts @@ -29,8 +29,8 @@ describe('Error overlay - editor links', () => { const { next } = nextTestSetup({ files: new FileRef(path.join(__dirname, 'fixtures', 'default-template')), dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', }, skipStart: true, }) diff --git a/test/development/acceptance-app/error-message-url.test.ts b/test/development/acceptance-app/error-message-url.test.ts index f8e7bf8b0aed7d..dad6ed4a4f78fd 100644 --- a/test/development/acceptance-app/error-message-url.test.ts +++ b/test/development/acceptance-app/error-message-url.test.ts @@ -7,8 +7,8 @@ describe('Error overlay - error message urls', () => { const { next } = nextTestSetup({ files: new FileRef(path.join(__dirname, 'fixtures', 'default-template')), dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', }, skipStart: true, }) diff --git a/test/development/acceptance-app/error-recovery.test.ts b/test/development/acceptance-app/error-recovery.test.ts index 1c1841defa3cdc..d168c47034fb55 100644 --- a/test/development/acceptance-app/error-recovery.test.ts +++ b/test/development/acceptance-app/error-recovery.test.ts @@ -9,8 +9,8 @@ describe.each(['default', 'turbo'])('Error recovery app %s', () => { const { next } = nextTestSetup({ files: new FileRef(path.join(__dirname, 'fixtures', 'default-template')), dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', }, skipStart: true, }) diff --git a/test/development/acceptance-app/hydration-error.test.ts b/test/development/acceptance-app/hydration-error.test.ts index 8fa5cc90465a39..d77b651cee4937 100644 --- a/test/development/acceptance-app/hydration-error.test.ts +++ b/test/development/acceptance-app/hydration-error.test.ts @@ -11,8 +11,8 @@ describe('Error overlay for hydration errors', () => { const { next, isTurbopack } = nextTestSetup({ files: new FileRef(path.join(__dirname, 'fixtures', 'default-template')), dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', }, skipStart: true, }) diff --git a/test/development/acceptance-app/invalid-imports.test.ts b/test/development/acceptance-app/invalid-imports.test.ts index 8767efd8e95d56..d95a235ae5c2b0 100644 --- a/test/development/acceptance-app/invalid-imports.test.ts +++ b/test/development/acceptance-app/invalid-imports.test.ts @@ -8,8 +8,8 @@ describe('Error Overlay invalid imports', () => { const { next } = nextTestSetup({ files: new FileRef(path.join(__dirname, 'fixtures', 'default-template')), dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', 'server-only': 'latest', 'client-only': 'latest', }, diff --git a/test/development/acceptance-app/rsc-build-errors.test.ts b/test/development/acceptance-app/rsc-build-errors.test.ts index 94224e67178287..447cff7abb9e6b 100644 --- a/test/development/acceptance-app/rsc-build-errors.test.ts +++ b/test/development/acceptance-app/rsc-build-errors.test.ts @@ -8,8 +8,8 @@ describe('Error overlay - RSC build errors', () => { const { next, isTurbopack } = nextTestSetup({ files: new FileRef(path.join(__dirname, 'fixtures', 'rsc-build-errors')), dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', }, skipStart: true, }) diff --git a/test/development/acceptance-app/server-components.test.ts b/test/development/acceptance-app/server-components.test.ts index f6305b490b52d8..ad2b0bef64be6b 100644 --- a/test/development/acceptance-app/server-components.test.ts +++ b/test/development/acceptance-app/server-components.test.ts @@ -9,8 +9,8 @@ describe('Error Overlay for server components', () => { const { next } = nextTestSetup({ files: new FileRef(path.join(__dirname, 'fixtures', 'default-template')), dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', }, skipStart: true, }) diff --git a/test/development/acceptance/hydration-error.test.ts b/test/development/acceptance/hydration-error.test.ts index e127992cf92cda..af91c0e872fbcb 100644 --- a/test/development/acceptance/hydration-error.test.ts +++ b/test/development/acceptance/hydration-error.test.ts @@ -8,8 +8,8 @@ describe('Error overlay for hydration errors', () => { const { next } = nextTestSetup({ files: new FileRef(path.join(__dirname, 'fixtures', 'default-template')), dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', }, skipStart: true, }) diff --git a/test/development/acceptance/server-component-compiler-errors-in-pages.test.ts b/test/development/acceptance/server-component-compiler-errors-in-pages.test.ts index 4128726e93da06..a977c752c53220 100644 --- a/test/development/acceptance/server-component-compiler-errors-in-pages.test.ts +++ b/test/development/acceptance/server-component-compiler-errors-in-pages.test.ts @@ -28,8 +28,8 @@ describe('Error Overlay for server components compiler errors in pages', () => { const { next } = nextTestSetup({ files: {}, dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', }, skipStart: true, }) diff --git a/test/development/next-font/deprecated-package.test.ts b/test/development/next-font/deprecated-package.test.ts index 012dd2bad2e338..15d0bb873a92d6 100644 --- a/test/development/next-font/deprecated-package.test.ts +++ b/test/development/next-font/deprecated-package.test.ts @@ -8,8 +8,8 @@ describe('Deprecated @next/font warning', () => { 'pages/index.js': '', }, dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', '@next/font': 'canary', }, skipStart: true, diff --git a/test/e2e/app-dir/actions-allowed-origins/app-action-allowed-origins.test.ts b/test/e2e/app-dir/actions-allowed-origins/app-action-allowed-origins.test.ts index 88be0cb0d10cd6..d1064e740dd238 100644 --- a/test/e2e/app-dir/actions-allowed-origins/app-action-allowed-origins.test.ts +++ b/test/e2e/app-dir/actions-allowed-origins/app-action-allowed-origins.test.ts @@ -7,8 +7,8 @@ describe('app-dir action allowed origins', () => { files: join(__dirname, 'safe-origins'), skipDeployment: true, dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', 'server-only': 'latest', }, // An arbitrary & random port. diff --git a/test/e2e/app-dir/actions-allowed-origins/app-action-disallowed-origins.test.ts b/test/e2e/app-dir/actions-allowed-origins/app-action-disallowed-origins.test.ts index 8b1f9245941110..3d2d91b80e4045 100644 --- a/test/e2e/app-dir/actions-allowed-origins/app-action-disallowed-origins.test.ts +++ b/test/e2e/app-dir/actions-allowed-origins/app-action-disallowed-origins.test.ts @@ -7,8 +7,8 @@ describe('app-dir action disallowed origins', () => { files: join(__dirname, 'unsafe-origins'), skipDeployment: true, dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', 'server-only': 'latest', }, }) diff --git a/test/e2e/app-dir/actions/app-action-export.test.ts b/test/e2e/app-dir/actions/app-action-export.test.ts index 18c3b721cf15e5..bc6036c1df03b5 100644 --- a/test/e2e/app-dir/actions/app-action-export.test.ts +++ b/test/e2e/app-dir/actions/app-action-export.test.ts @@ -6,8 +6,8 @@ describe('app-dir action handling - next export', () => { skipStart: true, skipDeployment: true, dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', 'server-only': 'latest', }, }) diff --git a/test/e2e/app-dir/actions/app-action-form-state.test.ts b/test/e2e/app-dir/actions/app-action-form-state.test.ts index 710bf6a30a33fd..b22e9b54fe0c24 100644 --- a/test/e2e/app-dir/actions/app-action-form-state.test.ts +++ b/test/e2e/app-dir/actions/app-action-form-state.test.ts @@ -6,8 +6,8 @@ describe('app-dir action useActionState', () => { const { next } = nextTestSetup({ files: __dirname, dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', }, }) it('should support submitting form state with JS', async () => { diff --git a/test/e2e/app-dir/actions/app-action-progressive-enhancement.test.ts b/test/e2e/app-dir/actions/app-action-progressive-enhancement.test.ts index bcaf291a0519dd..be6ccf54eaf220 100644 --- a/test/e2e/app-dir/actions/app-action-progressive-enhancement.test.ts +++ b/test/e2e/app-dir/actions/app-action-progressive-enhancement.test.ts @@ -7,9 +7,9 @@ describe('app-dir action progressive enhancement', () => { const { next } = nextTestSetup({ files: __dirname, dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', nanoid: 'latest', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', 'server-only': 'latest', }, }) diff --git a/test/e2e/app-dir/actions/app-action-size-limit-invalid.test.ts b/test/e2e/app-dir/actions/app-action-size-limit-invalid.test.ts index 8ef299b88c1cf2..40dd8033dbc77f 100644 --- a/test/e2e/app-dir/actions/app-action-size-limit-invalid.test.ts +++ b/test/e2e/app-dir/actions/app-action-size-limit-invalid.test.ts @@ -11,8 +11,8 @@ describe('app-dir action size limit invalid config', () => { skipDeployment: true, skipStart: true, dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', 'server-only': 'latest', }, }) diff --git a/test/e2e/app-dir/actions/app-action.test.ts b/test/e2e/app-dir/actions/app-action.test.ts index 5e04cc8d37a569..621b03803d6c79 100644 --- a/test/e2e/app-dir/actions/app-action.test.ts +++ b/test/e2e/app-dir/actions/app-action.test.ts @@ -19,9 +19,9 @@ describe('app-dir action handling', () => { nextTestSetup({ files: __dirname, dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', nanoid: 'latest', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', 'server-only': 'latest', }, }) diff --git a/test/e2e/app-dir/app-css-pageextensions/index.test.ts b/test/e2e/app-dir/app-css-pageextensions/index.test.ts index 74c0aea4b91ca7..1587f612a41a05 100644 --- a/test/e2e/app-dir/app-css-pageextensions/index.test.ts +++ b/test/e2e/app-dir/app-css-pageextensions/index.test.ts @@ -6,8 +6,8 @@ describe('app dir - css with pageextensions', () => { skipDeployment: true, dependencies: { '@picocss/pico': '1.5.7', - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', sass: 'latest', }, }) diff --git a/test/e2e/app-dir/app-css/index.test.ts b/test/e2e/app-dir/app-css/index.test.ts index da3121cce72c1d..2247bb5129197e 100644 --- a/test/e2e/app-dir/app-css/index.test.ts +++ b/test/e2e/app-dir/app-css/index.test.ts @@ -7,8 +7,8 @@ describe('app dir - css', () => { skipDeployment: true, dependencies: { '@picocss/pico': '1.5.7', - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', sass: 'latest', '@next/mdx': 'canary', }, diff --git a/test/e2e/app-dir/app-routes-client-component/app-routes-client-component.test.ts b/test/e2e/app-dir/app-routes-client-component/app-routes-client-component.test.ts index c892a7446c22aa..02f795f2093919 100644 --- a/test/e2e/app-dir/app-routes-client-component/app-routes-client-component.test.ts +++ b/test/e2e/app-dir/app-routes-client-component/app-routes-client-component.test.ts @@ -5,8 +5,8 @@ describe('referencing a client component in an app route', () => { const { next } = nextTestSetup({ files: new FileRef(path.join(__dirname)), dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', }, }) diff --git a/test/e2e/app-dir/create-root-layout/create-root-layout.test.ts b/test/e2e/app-dir/create-root-layout/create-root-layout.test.ts index 7bb14026542540..145f24aaccc69d 100644 --- a/test/e2e/app-dir/create-root-layout/create-root-layout.test.ts +++ b/test/e2e/app-dir/create-root-layout/create-root-layout.test.ts @@ -74,8 +74,8 @@ import stripAnsi from 'strip-ansi' ), }, dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', }, }) }) @@ -128,8 +128,8 @@ import stripAnsi from 'strip-ansi' ), }, dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', }, }) }) @@ -237,8 +237,8 @@ import stripAnsi from 'strip-ansi' ), }, dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', }, }) diff --git a/test/e2e/app-dir/interoperability-with-pages/navigation.test.ts b/test/e2e/app-dir/interoperability-with-pages/navigation.test.ts index 0f736343958c0b..c2430c75729ad5 100644 --- a/test/e2e/app-dir/interoperability-with-pages/navigation.test.ts +++ b/test/e2e/app-dir/interoperability-with-pages/navigation.test.ts @@ -9,8 +9,8 @@ describe('navigation between pages and app dir', () => { next = await createNext({ files: new FileRef(__dirname), dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', typescript: 'latest', '@types/react': 'latest', '@types/node': 'latest', diff --git a/test/e2e/app-dir/rewrites-redirects/rewrites-redirects.test.ts b/test/e2e/app-dir/rewrites-redirects/rewrites-redirects.test.ts index 91e33e63c14444..941d58fa888ee2 100644 --- a/test/e2e/app-dir/rewrites-redirects/rewrites-redirects.test.ts +++ b/test/e2e/app-dir/rewrites-redirects/rewrites-redirects.test.ts @@ -4,8 +4,8 @@ describe('redirects and rewrites', () => { const { next } = nextTestSetup({ files: __dirname, dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', typescript: 'latest', '@types/react': 'latest', '@types/node': 'latest', diff --git a/test/e2e/new-link-behavior/child-a-tag-error.test.ts b/test/e2e/new-link-behavior/child-a-tag-error.test.ts index 6d2388c84ed807..658d444f181924 100644 --- a/test/e2e/new-link-behavior/child-a-tag-error.test.ts +++ b/test/e2e/new-link-behavior/child-a-tag-error.test.ts @@ -17,8 +17,8 @@ describe('New Link Behavior with child', () => { }, dependencies: { next: 'latest', - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', }, }) }) diff --git a/test/e2e/new-link-behavior/material-ui.test.ts b/test/e2e/new-link-behavior/material-ui.test.ts index f56df31c9dd177..2f9b99f14b95b6 100644 --- a/test/e2e/new-link-behavior/material-ui.test.ts +++ b/test/e2e/new-link-behavior/material-ui.test.ts @@ -24,8 +24,8 @@ describe('New Link Behavior with material-ui', () => { '@mui/material': 'latest', next: 'latest', 'prop-types': 'latest', - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', // Use minimum peer dep version instead of v9 of eslint to avoid breaking changes eslint: '8.56.0', 'eslint-config-next': 'latest', diff --git a/test/e2e/new-link-behavior/stitches.test.ts b/test/e2e/new-link-behavior/stitches.test.ts index de295378dda3e6..a751f2d2b1db45 100644 --- a/test/e2e/new-link-behavior/stitches.test.ts +++ b/test/e2e/new-link-behavior/stitches.test.ts @@ -21,8 +21,8 @@ describe('New Link Behavior with stitches', () => { dependencies: { '@stitches/react': '^1.2.6', next: 'latest', - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', }, }) }) diff --git a/test/e2e/next-font/with-proxy.test.ts b/test/e2e/next-font/with-proxy.test.ts index 82156569245f3d..e0445574a7d183 100644 --- a/test/e2e/next-font/with-proxy.test.ts +++ b/test/e2e/next-font/with-proxy.test.ts @@ -30,8 +30,8 @@ describe('next/font/google with proxy', () => { next = await createNext({ files: new FileRef(join(__dirname, 'with-proxy')), dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', }, env: { http_proxy: 'http://localhost:' + PROXY_PORT, diff --git a/test/e2e/next-script/index.test.ts b/test/e2e/next-script/index.test.ts index 6f42310c233bfc..34be605375cbe3 100644 --- a/test/e2e/next-script/index.test.ts +++ b/test/e2e/next-script/index.test.ts @@ -41,8 +41,8 @@ describe('beforeInteractive in document Head', () => { `, }, dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', }, }) }) @@ -101,8 +101,8 @@ describe('beforeInteractive in document body', () => { `, }, dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', }, }) }) @@ -162,8 +162,8 @@ describe('empty strategy in document Head', () => { `, }, dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', }, }) }) @@ -221,8 +221,8 @@ describe('empty strategy in document body', () => { `, }, dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', }, }) }) @@ -269,8 +269,8 @@ describe('empty strategy in document body', () => { }, // TODO: @housseindjirdeh: verify React 18 functionality dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', }, }) }) @@ -320,8 +320,8 @@ describe('empty strategy in document body', () => { `, }, dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', '@builder.io/partytown': '0.4.2', }, }) @@ -409,8 +409,8 @@ describe('empty strategy in document body', () => { `, }, dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', '@builder.io/partytown': '0.4.2', }, }) @@ -525,8 +525,8 @@ describe('empty strategy in document body', () => { }, dependencies: { '@builder.io/partytown': '0.4.2', - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', }, }) }) diff --git a/test/e2e/next-test/first-time-setup-js/package.json b/test/e2e/next-test/first-time-setup-js/package.json index bebd28a09ad839..d4c630d46aae52 100644 --- a/test/e2e/next-test/first-time-setup-js/package.json +++ b/test/e2e/next-test/first-time-setup-js/package.json @@ -8,7 +8,7 @@ }, "dependencies": { "next": "canary", - "react": "19.0.0-rc-8f3c0525f9-20240521", - "react-dom": "19.0.0-rc-8f3c0525f9-20240521" + "react": "19.0.0-rc-81c5ff2e04-20240521", + "react-dom": "19.0.0-rc-81c5ff2e04-20240521" } } diff --git a/test/e2e/next-test/first-time-setup-ts/package.json b/test/e2e/next-test/first-time-setup-ts/package.json index 050be1449cfd67..0f1e2907305f6b 100644 --- a/test/e2e/next-test/first-time-setup-ts/package.json +++ b/test/e2e/next-test/first-time-setup-ts/package.json @@ -8,8 +8,8 @@ }, "dependencies": { "next": "canary", - "react": "19.0.0-rc-8f3c0525f9-20240521", - "react-dom": "19.0.0-rc-8f3c0525f9-20240521" + "react": "19.0.0-rc-81c5ff2e04-20240521", + "react-dom": "19.0.0-rc-81c5ff2e04-20240521" }, "devDependencies": { "@types/react": "^18", diff --git a/test/e2e/switchable-runtime/index.test.ts b/test/e2e/switchable-runtime/index.test.ts index 7bb69b17e5b5cf..f06a0b475e9bc0 100644 --- a/test/e2e/switchable-runtime/index.test.ts +++ b/test/e2e/switchable-runtime/index.test.ts @@ -44,8 +44,8 @@ describe('Switchable runtime', () => { next = await createNext({ files: new FileRef(__dirname), dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', }, }) context = { diff --git a/test/e2e/transpile-packages/index.test.ts b/test/e2e/transpile-packages/index.test.ts index 420921643cb8c3..0645df2dc1eedf 100644 --- a/test/e2e/transpile-packages/index.test.ts +++ b/test/e2e/transpile-packages/index.test.ts @@ -16,8 +16,8 @@ describe('transpile packages', () => { next = await createNext({ files: new FileRef(path.join(__dirname, './npm')), dependencies: { - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', sass: 'latest', }, packageJson: { diff --git a/test/e2e/yarn-pnp/test/utils.ts b/test/e2e/yarn-pnp/test/utils.ts index 0db8f4aa3acb68..e0194b2e0b05f0 100644 --- a/test/e2e/yarn-pnp/test/utils.ts +++ b/test/e2e/yarn-pnp/test/utils.ts @@ -43,8 +43,8 @@ export function runTests( dependencies: { ...packageJson.dependencies, ...packageJson.devDependencies, - react: '19.0.0-rc-8f3c0525f9-20240521', - 'react-dom': '19.0.0-rc-8f3c0525f9-20240521', + react: '19.0.0-rc-81c5ff2e04-20240521', + 'react-dom': '19.0.0-rc-81c5ff2e04-20240521', }, installCommand: ({ dependencies }) => { const pkgs = Object.keys(dependencies).reduce((prev, cur) => { diff --git a/test/lib/next-modes/base.ts b/test/lib/next-modes/base.ts index 82e7a6ed10dff5..3e0968326f7553 100644 --- a/test/lib/next-modes/base.ts +++ b/test/lib/next-modes/base.ts @@ -161,7 +161,7 @@ export class NextInstance { ) const reactVersion = - process.env.NEXT_TEST_REACT_VERSION || '19.0.0-rc-8f3c0525f9-20240521' + process.env.NEXT_TEST_REACT_VERSION || '19.0.0-rc-81c5ff2e04-20240521' const finalDependencies = { react: reactVersion, 'react-dom': reactVersion,