diff --git a/package.json b/package.json index b1cdb748ace62..a379673863498 100644 --- a/package.json +++ b/package.json @@ -233,16 +233,16 @@ "pretty-ms": "7.0.0", "random-seed": "0.3.0", "react": "19.0.0", - "react-builtin": "npm:react@19.2.0-canary-dffacc7b-20250717", + "react-builtin": "npm:react@19.2.0-canary-e9638c33-20250721", "react-dom": "19.0.0", - "react-dom-builtin": "npm:react-dom@19.2.0-canary-dffacc7b-20250717", - "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-dffacc7b-20250717", - "react-experimental-builtin": "npm:react@0.0.0-experimental-dffacc7b-20250717", - "react-is-builtin": "npm:react-is@19.2.0-canary-dffacc7b-20250717", - "react-server-dom-turbopack": "19.2.0-canary-dffacc7b-20250717", - "react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-dffacc7b-20250717", - "react-server-dom-webpack": "19.2.0-canary-dffacc7b-20250717", - "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-dffacc7b-20250717", + "react-dom-builtin": "npm:react-dom@19.2.0-canary-e9638c33-20250721", + "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-e9638c33-20250721", + "react-experimental-builtin": "npm:react@0.0.0-experimental-e9638c33-20250721", + "react-is-builtin": "npm:react-is@19.2.0-canary-e9638c33-20250721", + "react-server-dom-turbopack": "19.2.0-canary-e9638c33-20250721", + "react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-e9638c33-20250721", + "react-server-dom-webpack": "19.2.0-canary-e9638c33-20250721", + "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-e9638c33-20250721", "react-ssr-prepass": "1.0.8", "react-virtualized": "9.22.3", "relay-compiler": "13.0.2", @@ -252,8 +252,8 @@ "resolve-from": "5.0.0", "sass": "1.54.0", "satori": "0.15.2", - "scheduler-builtin": "npm:scheduler@0.27.0-canary-dffacc7b-20250717", - "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-dffacc7b-20250717", + "scheduler-builtin": "npm:scheduler@0.27.0-canary-e9638c33-20250721", + "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-e9638c33-20250721", "seedrandom": "3.0.5", "semver": "7.3.7", "serve-handler": "6.1.6", @@ -297,10 +297,10 @@ "@types/react-dom": "19.1.6", "@types/retry": "0.12.0", "jest-snapshot": "30.0.0-alpha.6", - "react": "19.2.0-canary-dffacc7b-20250717", - "react-dom": "19.2.0-canary-dffacc7b-20250717", - "react-is": "19.2.0-canary-dffacc7b-20250717", - "scheduler": "0.27.0-canary-dffacc7b-20250717" + "react": "19.2.0-canary-e9638c33-20250721", + "react-dom": "19.2.0-canary-e9638c33-20250721", + "react-is": "19.2.0-canary-e9638c33-20250721", + "scheduler": "0.27.0-canary-e9638c33-20250721" }, "patchedDependencies": { "webpack-sources@3.2.3": "patches/webpack-sources@3.2.3.patch", 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 296ffd1e26acc..8093d96a0ad9a 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 @@ -31110,11 +31110,11 @@ }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.2.0-experimental-dffacc7b-20250717" !== isomorphicReactPackageVersion) + if ("19.2.0-experimental-e9638c33-20250721" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.2.0-experimental-dffacc7b-20250717\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.2.0-experimental-e9638c33-20250721\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -31151,10 +31151,10 @@ !(function () { var internals = { bundleType: 1, - version: "19.2.0-experimental-dffacc7b-20250717", + version: "19.2.0-experimental-e9638c33-20250721", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-experimental-dffacc7b-20250717" + reconcilerVersion: "19.2.0-experimental-e9638c33-20250721" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -31300,7 +31300,7 @@ listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; - exports.version = "19.2.0-experimental-dffacc7b-20250717"; + exports.version = "19.2.0-experimental-e9638c33-20250721"; "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-client.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.production.js index 1bd6245bb7e35..f77c30b2eace8 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 @@ -19257,14 +19257,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { }; var isomorphicReactPackageVersion$jscomp$inline_2169 = React.version; if ( - "19.2.0-experimental-dffacc7b-20250717" !== + "19.2.0-experimental-e9638c33-20250721" !== isomorphicReactPackageVersion$jscomp$inline_2169 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2169, - "19.2.0-experimental-dffacc7b-20250717" + "19.2.0-experimental-e9638c33-20250721" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -19286,10 +19286,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { }; var internals$jscomp$inline_2854 = { bundleType: 0, - version: "19.2.0-experimental-dffacc7b-20250717", + version: "19.2.0-experimental-e9638c33-20250721", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-experimental-dffacc7b-20250717" + reconcilerVersion: "19.2.0-experimental-e9638c33-20250721" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2855 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -19396,4 +19396,4 @@ exports.hydrateRoot = function (container, initialChildren, options) { listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; -exports.version = "19.2.0-experimental-dffacc7b-20250717"; +exports.version = "19.2.0-experimental-e9638c33-20250721"; 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 68403cfbdcf68..0ad546ed7a1bb 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 @@ -31162,11 +31162,11 @@ }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.2.0-experimental-dffacc7b-20250717" !== isomorphicReactPackageVersion) + if ("19.2.0-experimental-e9638c33-20250721" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.2.0-experimental-dffacc7b-20250717\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.2.0-experimental-e9638c33-20250721\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -31203,10 +31203,10 @@ !(function () { var internals = { bundleType: 1, - version: "19.2.0-experimental-dffacc7b-20250717", + version: "19.2.0-experimental-e9638c33-20250721", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-experimental-dffacc7b-20250717" + reconcilerVersion: "19.2.0-experimental-e9638c33-20250721" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -31682,7 +31682,7 @@ exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.2.0-experimental-dffacc7b-20250717"; + exports.version = "19.2.0-experimental-e9638c33-20250721"; "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-profiling.profiling.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.profiling.js index 260b19505ee59..d58c9e9d8763c 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 @@ -20940,14 +20940,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { }; var isomorphicReactPackageVersion$jscomp$inline_2391 = React.version; if ( - "19.2.0-experimental-dffacc7b-20250717" !== + "19.2.0-experimental-e9638c33-20250721" !== isomorphicReactPackageVersion$jscomp$inline_2391 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2391, - "19.2.0-experimental-dffacc7b-20250717" + "19.2.0-experimental-e9638c33-20250721" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -20969,10 +20969,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { }; var internals$jscomp$inline_3078 = { bundleType: 0, - version: "19.2.0-experimental-dffacc7b-20250717", + version: "19.2.0-experimental-e9638c33-20250721", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-experimental-dffacc7b-20250717" + reconcilerVersion: "19.2.0-experimental-e9638c33-20250721" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_3079 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -21239,7 +21239,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.2.0-experimental-dffacc7b-20250717"; +exports.version = "19.2.0-experimental-e9638c33-20250721"; "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 ac436613b5163..194466821debf 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 @@ -10502,5 +10502,5 @@ '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.2.0-experimental-dffacc7b-20250717"; + exports.version = "19.2.0-experimental-e9638c33-20250721"; })(); 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 12bed79ca197d..44870360ad659 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 @@ -7118,4 +7118,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.2.0-experimental-dffacc7b-20250717"; +exports.version = "19.2.0-experimental-e9638c33-20250721"; 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 7da1695f55068..550a0a429e3df 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 @@ -10502,5 +10502,5 @@ '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.2.0-experimental-dffacc7b-20250717"; + exports.version = "19.2.0-experimental-e9638c33-20250721"; })(); 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 23232157b56a9..9acd95556f07b 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 @@ -7221,4 +7221,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.2.0-experimental-dffacc7b-20250717"; +exports.version = "19.2.0-experimental-e9638c33-20250721"; 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 470a955b2194a..c2e47fbb84750 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 @@ -9491,11 +9491,11 @@ } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.2.0-experimental-dffacc7b-20250717" !== isomorphicReactPackageVersion) + if ("19.2.0-experimental-e9638c33-20250721" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.2.0-experimental-dffacc7b-20250717\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.2.0-experimental-e9638c33-20250721\nLearn more: https://react.dev/warnings/version-mismatch") ); } var React = require("next/dist/compiled/react-experimental"), @@ -11314,5 +11314,5 @@ startWork(request); }); }; - exports.version = "19.2.0-experimental-dffacc7b-20250717"; + exports.version = "19.2.0-experimental-e9638c33-20250721"; })(); 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 7a530bbf617cc..ce1d463736173 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 @@ -7781,12 +7781,12 @@ function getPostponedState(request) { } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.2.0-experimental-dffacc7b-20250717" !== isomorphicReactPackageVersion) + if ("19.2.0-experimental-e9638c33-20250721" !== isomorphicReactPackageVersion) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion, - "19.2.0-experimental-dffacc7b-20250717" + "19.2.0-experimental-e9638c33-20250721" ) ); } @@ -8041,4 +8041,4 @@ exports.resumeAndPrerender = function (children, postponedState, options) { startWork(request); }); }; -exports.version = "19.2.0-experimental-dffacc7b-20250717"; +exports.version = "19.2.0-experimental-e9638c33-20250721"; 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 c2e9970e4580d..acc38e55838f2 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 @@ -7269,13 +7269,13 @@ function addToReplayParent(node, parentKeyPath, trackedPostpones) { } var isomorphicReactPackageVersion$jscomp$inline_869 = React.version; if ( - "19.2.0-experimental-dffacc7b-20250717" !== + "19.2.0-experimental-e9638c33-20250721" !== isomorphicReactPackageVersion$jscomp$inline_869 ) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion$jscomp$inline_869 + - "\n - react-dom: 19.2.0-experimental-dffacc7b-20250717\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.2.0-experimental-e9638c33-20250721\nLearn more: https://react.dev/warnings/version-mismatch") ); exports.renderToReadableStream = function (children, options) { return new Promise(function (resolve, reject) { @@ -7366,4 +7366,4 @@ exports.renderToReadableStream = function (children, options) { startWork(request); }); }; -exports.version = "19.2.0-experimental-dffacc7b-20250717"; +exports.version = "19.2.0-experimental-e9638c33-20250721"; 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 efe788c21b58f..91327c1a4bc1b 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 @@ -9520,11 +9520,11 @@ } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.2.0-experimental-dffacc7b-20250717" !== isomorphicReactPackageVersion) + if ("19.2.0-experimental-e9638c33-20250721" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.2.0-experimental-dffacc7b-20250717\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.2.0-experimental-e9638c33-20250721\nLearn more: https://react.dev/warnings/version-mismatch") ); } var React = require("next/dist/compiled/react-experimental"), @@ -11339,5 +11339,5 @@ startWork(request); }); }; - exports.version = "19.2.0-experimental-dffacc7b-20250717"; + exports.version = "19.2.0-experimental-e9638c33-20250721"; })(); 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 d045167cb0828..12ac5f6ee53db 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 @@ -7899,11 +7899,11 @@ function getPostponedState(request) { } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.2.0-experimental-dffacc7b-20250717" !== isomorphicReactPackageVersion) + if ("19.2.0-experimental-e9638c33-20250721" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.2.0-experimental-dffacc7b-20250717\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.2.0-experimental-e9638c33-20250721\nLearn more: https://react.dev/warnings/version-mismatch") ); } ensureCorrectIsomorphicReactVersion(); @@ -8157,4 +8157,4 @@ exports.resumeAndPrerender = function (children, postponedState, options) { startWork(request); }); }; -exports.version = "19.2.0-experimental-dffacc7b-20250717"; +exports.version = "19.2.0-experimental-e9638c33-20250721"; 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 e85fd883bc2e3..2aaa6612884b5 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 @@ -9381,11 +9381,11 @@ } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.2.0-experimental-dffacc7b-20250717" !== isomorphicReactPackageVersion) + if ("19.2.0-experimental-e9638c33-20250721" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.2.0-experimental-dffacc7b-20250717\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.2.0-experimental-e9638c33-20250721\nLearn more: https://react.dev/warnings/version-mismatch") ); } function createDrainHandler(destination, request) { @@ -11510,5 +11510,5 @@ } }; }; - exports.version = "19.2.0-experimental-dffacc7b-20250717"; + exports.version = "19.2.0-experimental-e9638c33-20250721"; })(); 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 bc6427dbeaeff..25842002c0a1c 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 @@ -7779,11 +7779,11 @@ function getPostponedState(request) { } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.2.0-experimental-dffacc7b-20250717" !== isomorphicReactPackageVersion) + if ("19.2.0-experimental-e9638c33-20250721" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.2.0-experimental-dffacc7b-20250717\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.2.0-experimental-e9638c33-20250721\nLearn more: https://react.dev/warnings/version-mismatch") ); } ensureCorrectIsomorphicReactVersion(); @@ -8341,4 +8341,4 @@ exports.resumeToPipeableStream = function (children, postponedState, options) { } }; }; -exports.version = "19.2.0-experimental-dffacc7b-20250717"; +exports.version = "19.2.0-experimental-e9638c33-20250721"; 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 4b9298490d611..2cda73ebd6413 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 @@ -31431,11 +31431,11 @@ }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.2.0-experimental-dffacc7b-20250717" !== isomorphicReactPackageVersion) + if ("19.2.0-experimental-e9638c33-20250721" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.2.0-experimental-dffacc7b-20250717\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.2.0-experimental-e9638c33-20250721\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -31472,10 +31472,10 @@ !(function () { var internals = { bundleType: 1, - version: "19.2.0-experimental-dffacc7b-20250717", + version: "19.2.0-experimental-e9638c33-20250721", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-experimental-dffacc7b-20250717" + reconcilerVersion: "19.2.0-experimental-e9638c33-20250721" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -31787,5 +31787,5 @@ } }; }; - exports.version = "19.2.0-experimental-dffacc7b-20250717"; + exports.version = "19.2.0-experimental-e9638c33-20250721"; })(); 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 7cd98d7e30b89..0eb6bb5357ac7 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 @@ -19573,14 +19573,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { }; var isomorphicReactPackageVersion$jscomp$inline_2198 = React.version; if ( - "19.2.0-experimental-dffacc7b-20250717" !== + "19.2.0-experimental-e9638c33-20250721" !== isomorphicReactPackageVersion$jscomp$inline_2198 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2198, - "19.2.0-experimental-dffacc7b-20250717" + "19.2.0-experimental-e9638c33-20250721" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -19602,10 +19602,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { }; var internals$jscomp$inline_2888 = { bundleType: 0, - version: "19.2.0-experimental-dffacc7b-20250717", + version: "19.2.0-experimental-e9638c33-20250721", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-experimental-dffacc7b-20250717" + reconcilerVersion: "19.2.0-experimental-e9638c33-20250721" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2889 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -19863,4 +19863,4 @@ exports.observeVisibleRects = function ( } }; }; -exports.version = "19.2.0-experimental-dffacc7b-20250717"; +exports.version = "19.2.0-experimental-e9638c33-20250721"; 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 c792f97b71f3a..e7a0aad7bb3c6 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 @@ -416,7 +416,7 @@ exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.2.0-experimental-dffacc7b-20250717"; + exports.version = "19.2.0-experimental-e9638c33-20250721"; "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.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.production.js index 73cb465263737..ebdf02c90ee47 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 @@ -207,4 +207,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.2.0-experimental-dffacc7b-20250717"; +exports.version = "19.2.0-experimental-e9638c33-20250721"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.development.js index 6c89aed22d6dc..ff7d06d84d01b 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.development.js @@ -336,5 +336,5 @@ })) : Internals.d.m(href)); }; - exports.version = "19.2.0-experimental-dffacc7b-20250717"; + exports.version = "19.2.0-experimental-e9638c33-20250721"; })(); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.production.js index 958f864ec8bfa..5877a01a58b0f 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.production.js @@ -149,4 +149,4 @@ exports.preloadModule = function (href, options) { }); } else Internals.d.m(href); }; -exports.version = "19.2.0-experimental-dffacc7b-20250717"; +exports.version = "19.2.0-experimental-e9638c33-20250721"; diff --git a/packages/next/src/compiled/react-dom-experimental/package.json b/packages/next/src/compiled/react-dom-experimental/package.json index b5fcc4d7bf4d3..186fb7df8b52f 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-dffacc7b-20250717" + "scheduler": "0.0.0-experimental-e9638c33-20250721" }, "peerDependencies": { - "react": "0.0.0-experimental-dffacc7b-20250717" + "react": "0.0.0-experimental-e9638c33-20250721" }, "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 5fd1697f89476..98a2890bd2eb8 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 @@ -25507,11 +25507,11 @@ }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.2.0-canary-dffacc7b-20250717" !== isomorphicReactPackageVersion) + if ("19.2.0-canary-e9638c33-20250721" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.2.0-canary-dffacc7b-20250717\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.2.0-canary-e9638c33-20250721\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -25548,10 +25548,10 @@ !(function () { var internals = { bundleType: 1, - version: "19.2.0-canary-dffacc7b-20250717", + version: "19.2.0-canary-e9638c33-20250721", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-canary-dffacc7b-20250717" + reconcilerVersion: "19.2.0-canary-e9638c33-20250721" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -25689,7 +25689,7 @@ listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; - exports.version = "19.2.0-canary-dffacc7b-20250717"; + exports.version = "19.2.0-canary-e9638c33-20250721"; "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-client.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-client.production.js index fd67ec579d486..cb9249f450a59 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 @@ -15716,14 +15716,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { }; var isomorphicReactPackageVersion$jscomp$inline_1838 = React.version; if ( - "19.2.0-canary-dffacc7b-20250717" !== + "19.2.0-canary-e9638c33-20250721" !== isomorphicReactPackageVersion$jscomp$inline_1838 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1838, - "19.2.0-canary-dffacc7b-20250717" + "19.2.0-canary-e9638c33-20250721" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -15745,10 +15745,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { }; var internals$jscomp$inline_2331 = { bundleType: 0, - version: "19.2.0-canary-dffacc7b-20250717", + version: "19.2.0-canary-e9638c33-20250721", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-canary-dffacc7b-20250717" + reconcilerVersion: "19.2.0-canary-e9638c33-20250721" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2332 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -15846,4 +15846,4 @@ exports.hydrateRoot = function (container, initialChildren, options) { listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; -exports.version = "19.2.0-canary-dffacc7b-20250717"; +exports.version = "19.2.0-canary-e9638c33-20250721"; 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 32452bfe9546c..e2217ddfa94cb 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 @@ -25559,11 +25559,11 @@ }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.2.0-canary-dffacc7b-20250717" !== isomorphicReactPackageVersion) + if ("19.2.0-canary-e9638c33-20250721" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.2.0-canary-dffacc7b-20250717\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.2.0-canary-e9638c33-20250721\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -25600,10 +25600,10 @@ !(function () { var internals = { bundleType: 1, - version: "19.2.0-canary-dffacc7b-20250717", + version: "19.2.0-canary-e9638c33-20250721", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-canary-dffacc7b-20250717" + reconcilerVersion: "19.2.0-canary-e9638c33-20250721" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -26071,7 +26071,7 @@ exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.2.0-canary-dffacc7b-20250717"; + exports.version = "19.2.0-canary-e9638c33-20250721"; "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-profiling.profiling.js b/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.profiling.js index e8bd45e488a48..2de394286b4b9 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 @@ -16417,14 +16417,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { }; var isomorphicReactPackageVersion$jscomp$inline_1942 = React.version; if ( - "19.2.0-canary-dffacc7b-20250717" !== + "19.2.0-canary-e9638c33-20250721" !== isomorphicReactPackageVersion$jscomp$inline_1942 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1942, - "19.2.0-canary-dffacc7b-20250717" + "19.2.0-canary-e9638c33-20250721" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -16446,10 +16446,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { }; var internals$jscomp$inline_1949 = { bundleType: 0, - version: "19.2.0-canary-dffacc7b-20250717", + version: "19.2.0-canary-e9638c33-20250721", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-canary-dffacc7b-20250717", + reconcilerVersion: "19.2.0-canary-e9638c33-20250721", getLaneLabelMap: function () { for ( var map = new Map(), lane = 1, index$281 = 0; @@ -16722,7 +16722,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.2.0-canary-dffacc7b-20250717"; +exports.version = "19.2.0-canary-e9638c33-20250721"; "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 c07010e232b69..d42953af4ec4c 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 @@ -9701,5 +9701,5 @@ '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.2.0-canary-dffacc7b-20250717"; + exports.version = "19.2.0-canary-e9638c33-20250721"; })(); 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 fe7acc32b7a96..b799322646fe5 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 @@ -6467,4 +6467,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.2.0-canary-dffacc7b-20250717"; +exports.version = "19.2.0-canary-e9638c33-20250721"; 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 5493163e38f33..7d8485054fe32 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 @@ -9701,5 +9701,5 @@ '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.2.0-canary-dffacc7b-20250717"; + exports.version = "19.2.0-canary-e9638c33-20250721"; })(); 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 961502bce18b1..af29b08cf71c0 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 @@ -6550,4 +6550,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.2.0-canary-dffacc7b-20250717"; +exports.version = "19.2.0-canary-e9638c33-20250721"; 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 501afbce09220..59f1ce41f209e 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 @@ -8448,11 +8448,11 @@ } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.2.0-canary-dffacc7b-20250717" !== isomorphicReactPackageVersion) + if ("19.2.0-canary-e9638c33-20250721" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.2.0-canary-dffacc7b-20250717\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.2.0-canary-e9638c33-20250721\nLearn more: https://react.dev/warnings/version-mismatch") ); } var React = require("next/dist/compiled/react"), @@ -10142,5 +10142,5 @@ startWork(request); }); }; - exports.version = "19.2.0-canary-dffacc7b-20250717"; + exports.version = "19.2.0-canary-e9638c33-20250721"; })(); 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 835f8a67d1401..8baf9113a65fc 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 @@ -6851,12 +6851,12 @@ function addToReplayParent(node, parentKeyPath, trackedPostpones) { } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.2.0-canary-dffacc7b-20250717" !== isomorphicReactPackageVersion) + if ("19.2.0-canary-e9638c33-20250721" !== isomorphicReactPackageVersion) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion, - "19.2.0-canary-dffacc7b-20250717" + "19.2.0-canary-e9638c33-20250721" ) ); } @@ -7003,4 +7003,4 @@ exports.renderToReadableStream = function (children, options) { startWork(request); }); }; -exports.version = "19.2.0-canary-dffacc7b-20250717"; +exports.version = "19.2.0-canary-e9638c33-20250721"; 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 5456f455d1d44..42aecf01b4f00 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 @@ -6499,13 +6499,13 @@ function addToReplayParent(node, parentKeyPath, trackedPostpones) { } var isomorphicReactPackageVersion$jscomp$inline_816 = React.version; if ( - "19.2.0-canary-dffacc7b-20250717" !== + "19.2.0-canary-e9638c33-20250721" !== isomorphicReactPackageVersion$jscomp$inline_816 ) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion$jscomp$inline_816 + - "\n - react-dom: 19.2.0-canary-dffacc7b-20250717\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.2.0-canary-e9638c33-20250721\nLearn more: https://react.dev/warnings/version-mismatch") ); exports.renderToReadableStream = function (children, options) { return new Promise(function (resolve, reject) { @@ -6596,4 +6596,4 @@ exports.renderToReadableStream = function (children, options) { startWork(request); }); }; -exports.version = "19.2.0-canary-dffacc7b-20250717"; +exports.version = "19.2.0-canary-e9638c33-20250721"; 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 bfefbf58ed745..b58bd736e8cc6 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 @@ -8471,11 +8471,11 @@ } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.2.0-canary-dffacc7b-20250717" !== isomorphicReactPackageVersion) + if ("19.2.0-canary-e9638c33-20250721" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.2.0-canary-dffacc7b-20250717\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.2.0-canary-e9638c33-20250721\nLearn more: https://react.dev/warnings/version-mismatch") ); } var React = require("next/dist/compiled/react"), @@ -10161,5 +10161,5 @@ startWork(request); }); }; - exports.version = "19.2.0-canary-dffacc7b-20250717"; + exports.version = "19.2.0-canary-e9638c33-20250721"; })(); 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 0b939937c1427..89e00627b00b1 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 @@ -6949,11 +6949,11 @@ function addToReplayParent(node, parentKeyPath, trackedPostpones) { } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.2.0-canary-dffacc7b-20250717" !== isomorphicReactPackageVersion) + if ("19.2.0-canary-e9638c33-20250721" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.2.0-canary-dffacc7b-20250717\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.2.0-canary-e9638c33-20250721\nLearn more: https://react.dev/warnings/version-mismatch") ); } ensureCorrectIsomorphicReactVersion(); @@ -7099,4 +7099,4 @@ exports.renderToReadableStream = function (children, options) { startWork(request); }); }; -exports.version = "19.2.0-canary-dffacc7b-20250717"; +exports.version = "19.2.0-canary-e9638c33-20250721"; 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 fddb3aa7969f0..ef5f5f4cf9d4a 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 @@ -8346,11 +8346,11 @@ } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.2.0-canary-dffacc7b-20250717" !== isomorphicReactPackageVersion) + if ("19.2.0-canary-e9638c33-20250721" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.2.0-canary-dffacc7b-20250717\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.2.0-canary-e9638c33-20250721\nLearn more: https://react.dev/warnings/version-mismatch") ); } function createDrainHandler(destination, request) { @@ -10221,5 +10221,5 @@ startWork(request); }); }; - exports.version = "19.2.0-canary-dffacc7b-20250717"; + exports.version = "19.2.0-canary-e9638c33-20250721"; })(); 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 dfed4afced5f4..e0c91598017c6 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 @@ -6841,11 +6841,11 @@ function addToReplayParent(node, parentKeyPath, trackedPostpones) { } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.2.0-canary-dffacc7b-20250717" !== isomorphicReactPackageVersion) + if ("19.2.0-canary-e9638c33-20250721" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.2.0-canary-dffacc7b-20250717\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.2.0-canary-e9638c33-20250721\nLearn more: https://react.dev/warnings/version-mismatch") ); } ensureCorrectIsomorphicReactVersion(); @@ -7183,4 +7183,4 @@ exports.renderToReadableStream = function (children, options) { startWork(request); }); }; -exports.version = "19.2.0-canary-dffacc7b-20250717"; +exports.version = "19.2.0-canary-e9638c33-20250721"; 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 ad37a9081902d..5f4d9f2458c5e 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 @@ -416,7 +416,7 @@ exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.2.0-canary-dffacc7b-20250717"; + exports.version = "19.2.0-canary-e9638c33-20250721"; "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.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom.production.js index 753e2b714116b..ec0bb80dbc54d 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 @@ -207,4 +207,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.2.0-canary-dffacc7b-20250717"; +exports.version = "19.2.0-canary-e9638c33-20250721"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.development.js index c097cc8a83c32..00b56b2ed2532 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.development.js @@ -336,5 +336,5 @@ })) : Internals.d.m(href)); }; - exports.version = "19.2.0-canary-dffacc7b-20250717"; + exports.version = "19.2.0-canary-e9638c33-20250721"; })(); diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.production.js index d1e934c7501ef..f10d3adfa1c6d 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.production.js @@ -149,4 +149,4 @@ exports.preloadModule = function (href, options) { }); } else Internals.d.m(href); }; -exports.version = "19.2.0-canary-dffacc7b-20250717"; +exports.version = "19.2.0-canary-e9638c33-20250721"; diff --git a/packages/next/src/compiled/react-dom/package.json b/packages/next/src/compiled/react-dom/package.json index 50dba9938f345..3f015f89724d0 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.27.0-canary-dffacc7b-20250717" + "scheduler": "0.27.0-canary-e9638c33-20250721" }, "peerDependencies": { - "react": "19.2.0-canary-dffacc7b-20250717" + "react": "19.2.0-canary-e9638c33-20250721" }, "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 0d0c05b240645..ce067559f9625 100644 --- a/packages/next/src/compiled/react-experimental/cjs/react.development.js +++ b/packages/next/src/compiled/react-experimental/cjs/react.development.js @@ -1328,7 +1328,7 @@ exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.2.0-experimental-dffacc7b-20250717"; + exports.version = "19.2.0-experimental-e9638c33-20250721"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && 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 d334eb87ed175..51685e87eee96 100644 --- a/packages/next/src/compiled/react-experimental/cjs/react.production.js +++ b/packages/next/src/compiled/react-experimental/cjs/react.production.js @@ -605,4 +605,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.2.0-experimental-dffacc7b-20250717"; +exports.version = "19.2.0-experimental-e9638c33-20250721"; 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 ceef336b67436..afe1ec45bd4c8 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 @@ -996,5 +996,5 @@ exports.useMemo = function (create, deps) { return resolveDispatcher().useMemo(create, deps); }; - exports.version = "19.2.0-experimental-dffacc7b-20250717"; + exports.version = "19.2.0-experimental-e9638c33-20250721"; })(); 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 485958789b7d4..9f2d33096678e 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 @@ -572,4 +572,4 @@ exports.useId = function () { exports.useMemo = function (create, deps) { return ReactSharedInternals.H.useMemo(create, deps); }; -exports.version = "19.2.0-experimental-dffacc7b-20250717"; +exports.version = "19.2.0-experimental-e9638c33-20250721"; diff --git a/packages/next/src/compiled/react-is/package.json b/packages/next/src/compiled/react-is/package.json index f11fe9c6662ce..93aa309dd52b8 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.2.0-canary-dffacc7b-20250717", + "version": "19.2.0-canary-e9638c33-20250721", "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 8455e0ac3aa1c..376f0357f0ea7 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 @@ -1358,7 +1358,7 @@ this.value = value; this.reason = reason; this._children = []; - this._debugInfo = null; + this._debugInfo = this._debugChunk = null; } function unwrapWeakResponse(weakResponse) { weakResponse = weakResponse.weak.deref(); @@ -1490,13 +1490,33 @@ } } function triggerErrorOnChunk(response, chunk, error) { - "pending" !== chunk.status && "blocked" !== chunk.status - ? chunk.reason.error(error) - : (releasePendingChunk(response, chunk), - (response = chunk.reason), - (chunk.status = "rejected"), - (chunk.reason = error), - null !== response && rejectChunk(response, error)); + if ("pending" !== chunk.status && "blocked" !== chunk.status) + chunk.reason.error(error); + else { + releasePendingChunk(response, chunk); + var listeners = chunk.reason; + if ("pending" === chunk.status && null != chunk._debugChunk) { + var prevHandler = initializingHandler, + prevChunk = initializingChunk; + initializingHandler = null; + chunk.status = "blocked"; + chunk.value = null; + chunk.reason = null; + initializingChunk = chunk; + try { + initializeDebugChunk(response, chunk), (chunk._debugChunk = null); + } finally { + (initializingHandler = prevHandler), + (initializingChunk = prevChunk); + } + } + chunk.status = "rejected"; + chunk.reason = error; + null !== listeners && rejectChunk(listeners, error); + } + } + function createResolvedModelChunk(response, value) { + return new ReactPromise("resolved_model", value, response); } function createResolvedIteratorResultChunk(response, value, done) { return new ReactPromise( @@ -1537,11 +1557,69 @@ var rejectListeners = chunk.reason; chunk.status = "resolved_module"; chunk.value = value; + chunk._debugInfo = null; null !== response && (initializeModuleChunk(chunk), wakeChunkIfInitialized(chunk, response, rejectListeners)); } } + function initializeDebugChunk(response, chunk) { + var debugChunk = chunk._debugChunk; + if (null !== debugChunk) { + var debugInfo = chunk._debugInfo || (chunk._debugInfo = []); + try { + if ("resolved_model" === debugChunk.status) { + for ( + var idx = debugInfo.length, c = debugChunk._debugChunk; + null !== c; + + ) + "fulfilled" !== c.status && idx++, (c = c._debugChunk); + initializeModelChunk(debugChunk); + switch (debugChunk.status) { + case "fulfilled": + debugInfo[idx] = initializeDebugInfo( + response, + debugChunk.value + ); + break; + case "blocked": + case "pending": + waitForReference( + debugChunk, + debugInfo, + "" + idx, + response, + initializeDebugInfo, + [""] + ); + break; + default: + throw debugChunk.reason; + } + } else + switch (debugChunk.status) { + case "fulfilled": + break; + case "blocked": + case "pending": + waitForReference( + debugChunk, + {}, + "", + response, + initializeDebugInfo, + [""] + ); + break; + default: + throw debugChunk.reason; + } + } catch (error) { + triggerErrorOnChunk(response, chunk, error); + } + } + } function initializeModelChunk(chunk) { var prevHandler = initializingHandler, prevChunk = initializingChunk; @@ -1552,6 +1630,8 @@ chunk.value = null; chunk.reason = null; initializingChunk = chunk; + initializeDebugChunk(response, chunk); + chunk._debugChunk = null; try { var value = JSON.parse(resolvedModel, response._fromJSON), resolveListeners = chunk.value; @@ -1560,7 +1640,7 @@ (chunk.reason = null), wakeChunk(resolveListeners, value)); if (null !== initializingHandler) { - if (initializingHandler.errored) throw initializingHandler.value; + if (initializingHandler.errored) throw initializingHandler.reason; if (0 < initializingHandler.deps) { initializingHandler.value = value; initializingHandler.chunk = chunk; @@ -1754,6 +1834,7 @@ ((parentObject = key.value), (key.status = "fulfilled"), (key.value = handler.value), + (key.reason = handler.reason), null !== parentObject && wakeChunk(parentObject, handler.value))); } function rejectReference(reference, error) { @@ -1762,7 +1843,8 @@ if (!handler.errored) { var blockedValue = handler.value; handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; handler = handler.chunk; if (null !== handler && "blocked" === handler.status) { if ( @@ -1808,6 +1890,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1857,6 +1940,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1904,7 +1988,8 @@ if (!handler.errored) { var blockedValue = handler.value; handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; var chunk = handler.chunk; if (null !== chunk && "blocked" === chunk.status) { if ( @@ -1978,6 +2063,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1987,11 +2073,13 @@ return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = value.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = value.reason)) : (initializingHandler = { parent: null, chunk: null, - value: value.reason, + value: null, + reason: value.reason, deps: 0, errored: !0 }), @@ -2034,6 +2122,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -2043,11 +2132,13 @@ return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = id.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = id.reason)) : (initializingHandler = { parent: null, chunk: null, - value: id.reason, + value: null, + reason: id.reason, deps: 0, errored: !0 }), @@ -2106,6 +2197,7 @@ parent: initializingHandler, chunk: null, value: null, + reason: null, deps: 0, errored: !1 }), @@ -2338,6 +2430,7 @@ )); this._debugFindSourceMapURL = findSourceMapURL; this._debugChannel = debugChannel; + this._blockedConsole = null; this._replayConsole = replayConsole; this._rootEnvironmentName = environmentName; debugChannel && @@ -2356,32 +2449,6 @@ _buffer: [] }; } - function resolveDebugHalt(response, id) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk || chunks.set(id, (chunk = createPendingChunk(response))); - if ("pending" === chunk.status || "blocked" === chunk.status) - releasePendingChunk(response, chunk), - (response = chunk), - (response.status = "halted"), - (response.value = null), - (response.reason = null); - } - function resolveModel(response, id, model) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk - ? resolveModelChunk(response, chunk, model) - : chunks.set(id, new ReactPromise("resolved_model", model, response)); - } - function resolveText(response, id, text) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk && "pending" !== chunk.status - ? chunk.reason.enqueueValue(text) - : (chunk && releasePendingChunk(response, chunk), - chunks.set(id, new ReactPromise("fulfilled", text, null))); - } function resolveBuffer(response, id, buffer) { var chunks = response._chunks, chunk = chunks.get(id); @@ -2425,15 +2492,41 @@ function resolveStream(response, id, stream, controller) { var chunks = response._chunks, chunk = chunks.get(id); - chunk - ? "pending" === chunk.status && - (releasePendingChunk(response, chunk), - (response = chunk.value), - (chunk.status = "fulfilled"), - (chunk.value = stream), - (chunk.reason = controller), - null !== response && wakeChunk(response, chunk.value)) - : chunks.set(id, new ReactPromise("fulfilled", stream, controller)); + if (!chunk) + chunks.set(id, new ReactPromise("fulfilled", stream, controller)); + else if ("pending" === chunk.status) { + releasePendingChunk(response, chunk); + id = chunk.value; + if (null != chunk._debugChunk) { + chunks = initializingHandler; + var prevChunk = initializingChunk; + initializingHandler = null; + chunk.status = "blocked"; + chunk.value = null; + chunk.reason = null; + initializingChunk = chunk; + try { + if ( + (initializeDebugChunk(response, chunk), + (chunk._debugChunk = null), + null !== initializingHandler && + !initializingHandler.errored && + 0 < initializingHandler.deps) + ) { + initializingHandler.value = stream; + initializingHandler.reason = controller; + initializingHandler.chunk = chunk; + return; + } + } finally { + (initializingHandler = chunks), (initializingChunk = prevChunk); + } + } + chunk.status = "fulfilled"; + chunk.value = stream; + chunk.reason = controller; + null !== id && wakeChunk(id, chunk.value); + } } function startReadableStream(response, id, type) { var controller = null; @@ -2454,7 +2547,7 @@ }, enqueueModel: function (json) { if (null === previousBlockedChunk) { - var chunk = new ReactPromise("resolved_model", json, response); + var chunk = createResolvedModelChunk(response, json); initializeModelChunk(chunk); "fulfilled" === chunk.status ? controller.enqueue(chunk.value) @@ -2616,11 +2709,6 @@ } ); } - function stopStream(response, id, row) { - (response = response._chunks.get(id)) && - "fulfilled" === response.status && - response.reason.close("" === row ? '"$undefined"' : row); - } function resolveErrorDev(response, errorInfo) { var name = errorInfo.name, env = errorInfo.env; @@ -2641,66 +2729,6 @@ response.environmentName = env; return response; } - function resolvePostponeDev(response, id, reason, stack, env) { - reason = buildFakeCallStack( - response, - stack, - env, - !1, - Error.bind(null, reason || "") - ); - stack = response._debugRootTask; - reason = null != stack ? stack.run(reason) : reason(); - reason.$$typeof = REACT_POSTPONE_TYPE; - stack = response._chunks; - (env = stack.get(id)) - ? triggerErrorOnChunk(response, env, reason) - : stack.set(id, createErrorChunk(response, reason)); - } - function resolveHint(response, code, model) { - response = JSON.parse(model, response._fromJSON); - model = ReactDOMSharedInternals.d; - switch (code) { - case "D": - model.D(response); - break; - case "C": - "string" === typeof response - ? model.C(response) - : model.C(response[0], response[1]); - break; - case "L": - code = response[0]; - var as = response[1]; - 3 === response.length - ? model.L(code, as, response[2]) - : model.L(code, as); - break; - case "m": - "string" === typeof response - ? model.m(response) - : model.m(response[0], response[1]); - break; - case "X": - "string" === typeof response - ? model.X(response) - : model.X(response[0], response[1]); - break; - case "S": - "string" === typeof response - ? model.S(response) - : model.S( - response[0], - 0 === response[1] ? void 0 : response[1], - 3 === response.length ? response[2] : void 0 - ); - break; - case "M": - "string" === typeof response - ? model.M(response) - : model.M(response[0], response[1]); - } - } function createFakeFunction( name, filename, @@ -2912,7 +2940,7 @@ (owner.debugLocation = debugInfo.debugStack)); } } - function resolveDebugInfo(response, id, debugInfo) { + function initializeDebugInfo(response, debugInfo) { void 0 !== debugInfo.stack && initializeFakeTask(response, debugInfo); if (null == debugInfo.owner && null != response._debugRootOwner) { var _componentInfoOrAsyncInfo = debugInfo; @@ -2924,8 +2952,7 @@ void 0 !== debugInfo.stack && initializeFakeStack(response, debugInfo); "number" === typeof debugInfo.time && (debugInfo = { time: debugInfo.time + response._timeOrigin }); - response = getChunk(response, id); - (response._debugInfo || (response._debugInfo = [])).push(debugInfo); + return debugInfo; } function getCurrentStackInDEV() { var owner = currentOwnerInDEV; @@ -2982,22 +3009,37 @@ } return JSCompiler_inline_result$jscomp$0; } - function resolveConsoleEntry(response, value) { + function resolveConsoleEntry(response, json) { if (response._replayConsole) { - var payload = JSON.parse(value, response._fromJSON); - value = payload[0]; - var stackTrace = payload[1], - owner = payload[2], - env = payload[3]; - payload = payload.slice(4); - replayConsoleWithCallStackInDEV( - response, - value, - stackTrace, - owner, - env, - payload - ); + var blockedChunk = response._blockedConsole; + if (null == blockedChunk) + (blockedChunk = createResolvedModelChunk(response, json)), + initializeModelChunk(blockedChunk), + "fulfilled" === blockedChunk.status + ? replayConsoleWithCallStackInDEV(response, blockedChunk.value) + : (blockedChunk.then( + function (v) { + return replayConsoleWithCallStackInDEV(response, v); + }, + function () {} + ), + (response._blockedConsole = blockedChunk)); + else { + var _chunk4 = createPendingChunk(response); + _chunk4.then( + function (v) { + return replayConsoleWithCallStackInDEV(response, v); + }, + function () {} + ); + response._blockedConsole = _chunk4; + var unblock = function () { + response._blockedConsole === _chunk4 && + (response._blockedConsole = null); + resolveModelChunk(response, _chunk4, json); + }; + blockedChunk.then(unblock, unblock); + } } } function initializeIOInfo(response, ioInfo) { @@ -3032,7 +3074,7 @@ chunk ? (resolveModelChunk(response, chunk, model), "resolved_model" === chunk.status && initializeModelChunk(chunk)) - : ((chunk = new ReactPromise("resolved_model", model, response)), + : ((chunk = createResolvedModelChunk(response, model)), chunks.set(id, chunk), initializeModelChunk(chunk)); "fulfilled" === chunk.status @@ -3665,35 +3707,91 @@ resolveModule(response, id, row); break; case 72: - resolveHint(response, row[0], row.slice(1)); + id = row[0]; + row = row.slice(1); + response = JSON.parse(row, response._fromJSON); + row = ReactDOMSharedInternals.d; + switch (id) { + case "D": + row.D(response); + break; + case "C": + "string" === typeof response + ? row.C(response) + : row.C(response[0], response[1]); + break; + case "L": + id = response[0]; + tag = response[1]; + 3 === response.length + ? row.L(id, tag, response[2]) + : row.L(id, tag); + break; + case "m": + "string" === typeof response + ? row.m(response) + : row.m(response[0], response[1]); + break; + case "X": + "string" === typeof response + ? row.X(response) + : row.X(response[0], response[1]); + break; + case "S": + "string" === typeof response + ? row.S(response) + : row.S( + response[0], + 0 === response[1] ? void 0 : response[1], + 3 === response.length ? response[2] : void 0 + ); + break; + case "M": + "string" === typeof response + ? row.M(response) + : row.M(response[0], response[1]); + } break; case 69: + tag = response._chunks; + var chunk = tag.get(id); row = JSON.parse(row); - tag = resolveErrorDev(response, row); - tag.digest = row.digest; - row = response._chunks; - var chunk = row.get(id); + var error = resolveErrorDev(response, row); + error.digest = row.digest; chunk - ? triggerErrorOnChunk(response, chunk, tag) - : row.set(id, createErrorChunk(response, tag)); + ? triggerErrorOnChunk(response, chunk, error) + : tag.set(id, createErrorChunk(response, error)); break; case 84: - resolveText(response, id, row); + tag = response._chunks; + (chunk = tag.get(id)) && "pending" !== chunk.status + ? chunk.reason.enqueueValue(row) + : (chunk && releasePendingChunk(response, chunk), + tag.set(id, new ReactPromise("fulfilled", row, null))); break; case 78: response._timeOrigin = +row - performance.timeOrigin; break; case 68: - tag = new ReactPromise("resolved_model", row, response); - initializeModelChunk(tag); - "fulfilled" === tag.status - ? resolveDebugInfo(response, id, tag.value) - : tag.then( - function (v) { - return resolveDebugInfo(response, id, v); - }, - function () {} - ); + id = getChunk(response, id); + "fulfilled" !== id.status && + "rejected" !== id.status && + "halted" !== id.status && + "blocked" !== id.status && + "resolved_module" !== id.status && + ((tag = id._debugChunk), + (chunk = createResolvedModelChunk(response, row)), + (chunk._debugChunk = tag), + (id._debugChunk = chunk), + initializeDebugChunk(response, id), + "blocked" === chunk.status && + void 0 === response._debugChannel && + '"' === row[0] && + "$" === row[1] && + ((row = row.slice(2, row.length - 1).split(":")), + (row = parseInt(row[0], 16)), + "pending" === getChunk(response, row).status && + (id._debugChunk = null))); break; case 74: resolveIOInfo(response, id, row); @@ -3714,16 +3812,45 @@ startAsyncIterable(response, id, !0); break; case 67: - stopStream(response, id, row); + (response = response._chunks.get(id)) && + "fulfilled" === response.status && + response.reason.close("" === row ? '"$undefined"' : row); break; case 80: - tag = JSON.parse(row); - resolvePostponeDev(response, id, tag.reason, tag.stack, tag.env); + row = JSON.parse(row); + row = buildFakeCallStack( + response, + row.stack, + row.env, + !1, + Error.bind(null, row.reason || "") + ); + tag = response._debugRootTask; + row = null != tag ? tag.run(row) : row(); + row.$$typeof = REACT_POSTPONE_TYPE; + tag = response._chunks; + (chunk = tag.get(id)) + ? triggerErrorOnChunk(response, chunk, row) + : tag.set(id, createErrorChunk(response, row)); break; default: - "" === row - ? resolveDebugHalt(response, id) - : resolveModel(response, id, row); + if ("" === row) { + if ( + ((row = response._chunks), + (tag = row.get(id)) || + row.set(id, (tag = createPendingChunk(response))), + "pending" === tag.status || "blocked" === tag.status) + ) + releasePendingChunk(response, tag), + (response = tag), + (response.status = "halted"), + (response.value = null), + (response.reason = null); + } else + (tag = response._chunks), + (chunk = tag.get(id)) + ? resolveModelChunk(response, chunk, row) + : tag.set(id, createResolvedModelChunk(response, row)); } } function processBinaryChunk(weakResponse, streamState, chunk) { @@ -3866,7 +3993,7 @@ validated = initializingHandler; initializingHandler = validated.parent; if (validated.errored) { - key = createErrorChunk(response, validated.value); + key = createErrorChunk(response, validated.reason); initializeElement(response, value); validated = { name: getComponentNameFromType(value.type) || "", @@ -4190,14 +4317,12 @@ ), currentOwnerInDEV = null, replayConsoleWithCallStack = { - react_stack_bottom_frame: function ( - response, - methodName, - stackTrace, - owner, - env, - args - ) { + react_stack_bottom_frame: function (response, payload) { + var methodName = payload[0], + stackTrace = payload[1], + owner = payload[2], + env = payload[3]; + payload = payload.slice(4); var prevStack = ReactSharedInternals.getCurrentStack; ReactSharedInternals.getCurrentStack = getCurrentStackInDEV; currentOwnerInDEV = null === owner ? response._debugRootOwner : owner; @@ -4211,13 +4336,13 @@ case "table": var JSCompiler_inline_result = bind.apply( console[methodName], - [console].concat(args) + [console].concat(payload) ); break a; case "assert": offset = 1; } - var newArgs = args.slice(0); + var newArgs = payload.slice(0); "string" === typeof newArgs[offset] ? newArgs.splice( offset, @@ -4280,10 +4405,10 @@ return hook.checkDCE ? !0 : !1; })({ bundleType: 1, - version: "19.2.0-experimental-dffacc7b-20250717", + version: "19.2.0-experimental-e9638c33-20250721", rendererPackageName: "react-server-dom-turbopack", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-experimental-dffacc7b-20250717", + reconcilerVersion: "19.2.0-experimental-e9638c33-20250721", getCurrentComponentInfo: function () { return currentOwnerInDEV; } 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 8dfbd405a8972..7a42322bd9682 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 @@ -709,7 +709,7 @@ function initializeModelChunk(chunk) { (chunk.reason = null), wakeChunk(resolveListeners, value)); if (null !== initializingHandler) { - if (initializingHandler.errored) throw initializingHandler.value; + if (initializingHandler.errored) throw initializingHandler.reason; if (0 < initializingHandler.deps) { initializingHandler.value = value; initializingHandler.chunk = chunk; @@ -826,6 +826,7 @@ function fulfillReference(reference, value) { ((parentObject = key.value), (key.status = "fulfilled"), (key.value = handler.value), + (key.reason = handler.reason), null !== parentObject && wakeChunk(parentObject, handler.value))); } function rejectReference(reference, error) { @@ -833,7 +834,8 @@ function rejectReference(reference, error) { reference = reference.response; handler.errored || ((handler.errored = !0), - (handler.value = error), + (handler.value = null), + (handler.reason = error), (handler = handler.chunk), null !== handler && "blocked" === handler.status && @@ -855,6 +857,7 @@ function waitForReference( parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -899,6 +902,7 @@ function loadServerReference(response, metaData, parentObject, key) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -936,7 +940,8 @@ function loadServerReference(response, metaData, parentObject, key) { function (error) { if (!handler.errored) { handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; var chunk = handler.chunk; null !== chunk && "blocked" === chunk.status && @@ -992,6 +997,7 @@ function getOutlinedModel(response, reference, parentObject, key, map) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1001,11 +1007,13 @@ function getOutlinedModel(response, reference, parentObject, key, map) { return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = value.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = value.reason)) : (initializingHandler = { parent: null, chunk: null, - value: value.reason, + value: null, + reason: value.reason, deps: 0, errored: !0 }), @@ -1027,6 +1035,7 @@ function getOutlinedModel(response, reference, parentObject, key, map) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1036,11 +1045,13 @@ function getOutlinedModel(response, reference, parentObject, key, map) { return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = id.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = id.reason)) : (initializingHandler = { parent: null, chunk: null, - value: id.reason, + value: null, + reason: id.reason, deps: 0, errored: !0 }), @@ -1079,6 +1090,7 @@ function parseModelString(response, parentObject, key, value) { parent: initializingHandler, chunk: null, value: null, + reason: null, deps: 0, errored: !1 }), @@ -1562,13 +1574,14 @@ function processFullBinaryRow(response, id, tag, buffer, chunk) { } break; case 69: - tag = JSON.parse(buffer); - buffer = resolveErrorProd(); - buffer.digest = tag.digest; tag = response._chunks; - (chunk = tag.get(id)) - ? triggerErrorOnChunk(response, chunk, buffer) - : tag.set(id, createErrorChunk(response, buffer)); + chunk = tag.get(id); + buffer = JSON.parse(buffer); + stringDecoder = resolveErrorProd(); + stringDecoder.digest = buffer.digest; + chunk + ? triggerErrorOnChunk(response, chunk, stringDecoder) + : tag.set(id, createErrorChunk(response, stringDecoder)); break; case 84: response = response._chunks; @@ -1639,7 +1652,7 @@ function createFromJSONCallback(response) { (initializingHandler = value.parent), value.errored) ) - (key = createErrorChunk(response, value.value)), + (key = createErrorChunk(response, value.reason)), (key = createLazyChunkWrapper(key)); else if (0 < value.deps) { var blockedChunk = new ReactPromise("blocked", null, null); 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 d0447af3e59eb..57c55dab945ad 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 @@ -1570,7 +1570,7 @@ this.value = value; this.reason = reason; this._children = []; - this._debugInfo = null; + this._debugInfo = this._debugChunk = null; } function unwrapWeakResponse(weakResponse) { weakResponse = weakResponse.weak.deref(); @@ -1702,13 +1702,33 @@ } } function triggerErrorOnChunk(response, chunk, error) { - "pending" !== chunk.status && "blocked" !== chunk.status - ? chunk.reason.error(error) - : (releasePendingChunk(response, chunk), - (response = chunk.reason), - (chunk.status = "rejected"), - (chunk.reason = error), - null !== response && rejectChunk(response, error)); + if ("pending" !== chunk.status && "blocked" !== chunk.status) + chunk.reason.error(error); + else { + releasePendingChunk(response, chunk); + var listeners = chunk.reason; + if ("pending" === chunk.status && null != chunk._debugChunk) { + var prevHandler = initializingHandler, + prevChunk = initializingChunk; + initializingHandler = null; + chunk.status = "blocked"; + chunk.value = null; + chunk.reason = null; + initializingChunk = chunk; + try { + initializeDebugChunk(response, chunk), (chunk._debugChunk = null); + } finally { + (initializingHandler = prevHandler), + (initializingChunk = prevChunk); + } + } + chunk.status = "rejected"; + chunk.reason = error; + null !== listeners && rejectChunk(listeners, error); + } + } + function createResolvedModelChunk(response, value) { + return new ReactPromise("resolved_model", value, response); } function createResolvedIteratorResultChunk(response, value, done) { return new ReactPromise( @@ -1749,11 +1769,69 @@ var rejectListeners = chunk.reason; chunk.status = "resolved_module"; chunk.value = value; + chunk._debugInfo = null; null !== response && (initializeModuleChunk(chunk), wakeChunkIfInitialized(chunk, response, rejectListeners)); } } + function initializeDebugChunk(response, chunk) { + var debugChunk = chunk._debugChunk; + if (null !== debugChunk) { + var debugInfo = chunk._debugInfo || (chunk._debugInfo = []); + try { + if ("resolved_model" === debugChunk.status) { + for ( + var idx = debugInfo.length, c = debugChunk._debugChunk; + null !== c; + + ) + "fulfilled" !== c.status && idx++, (c = c._debugChunk); + initializeModelChunk(debugChunk); + switch (debugChunk.status) { + case "fulfilled": + debugInfo[idx] = initializeDebugInfo( + response, + debugChunk.value + ); + break; + case "blocked": + case "pending": + waitForReference( + debugChunk, + debugInfo, + "" + idx, + response, + initializeDebugInfo, + [""] + ); + break; + default: + throw debugChunk.reason; + } + } else + switch (debugChunk.status) { + case "fulfilled": + break; + case "blocked": + case "pending": + waitForReference( + debugChunk, + {}, + "", + response, + initializeDebugInfo, + [""] + ); + break; + default: + throw debugChunk.reason; + } + } catch (error) { + triggerErrorOnChunk(response, chunk, error); + } + } + } function initializeModelChunk(chunk) { var prevHandler = initializingHandler, prevChunk = initializingChunk; @@ -1764,6 +1842,8 @@ chunk.value = null; chunk.reason = null; initializingChunk = chunk; + initializeDebugChunk(response, chunk); + chunk._debugChunk = null; try { var value = JSON.parse(resolvedModel, response._fromJSON), resolveListeners = chunk.value; @@ -1772,7 +1852,7 @@ (chunk.reason = null), wakeChunk(resolveListeners, value)); if (null !== initializingHandler) { - if (initializingHandler.errored) throw initializingHandler.value; + if (initializingHandler.errored) throw initializingHandler.reason; if (0 < initializingHandler.deps) { initializingHandler.value = value; initializingHandler.chunk = chunk; @@ -1966,6 +2046,7 @@ ((parentObject = key.value), (key.status = "fulfilled"), (key.value = handler.value), + (key.reason = handler.reason), null !== parentObject && wakeChunk(parentObject, handler.value))); } function rejectReference(reference, error) { @@ -1974,7 +2055,8 @@ if (!handler.errored) { var blockedValue = handler.value; handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; handler = handler.chunk; if (null !== handler && "blocked" === handler.status) { if ( @@ -2020,6 +2102,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -2074,6 +2157,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -2122,7 +2206,8 @@ if (!handler.errored) { var blockedValue = handler.value; handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; var chunk = handler.chunk; if (null !== chunk && "blocked" === chunk.status) { if ( @@ -2196,6 +2281,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -2205,11 +2291,13 @@ return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = value.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = value.reason)) : (initializingHandler = { parent: null, chunk: null, - value: value.reason, + value: null, + reason: value.reason, deps: 0, errored: !0 }), @@ -2252,6 +2340,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -2261,11 +2350,13 @@ return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = id.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = id.reason)) : (initializingHandler = { parent: null, chunk: null, - value: id.reason, + value: null, + reason: id.reason, deps: 0, errored: !0 }), @@ -2324,6 +2415,7 @@ parent: initializingHandler, chunk: null, value: null, + reason: null, deps: 0, errored: !1 }), @@ -2556,6 +2648,7 @@ )); this._debugFindSourceMapURL = findSourceMapURL; this._debugChannel = debugChannel; + this._blockedConsole = null; this._replayConsole = replayConsole; this._rootEnvironmentName = environmentName; debugChannel && @@ -2565,32 +2658,6 @@ replayConsole && markAllTracksInOrder(); this._fromJSON = createFromJSONCallback(this); } - function resolveDebugHalt(response, id) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk || chunks.set(id, (chunk = createPendingChunk(response))); - if ("pending" === chunk.status || "blocked" === chunk.status) - releasePendingChunk(response, chunk), - (response = chunk), - (response.status = "halted"), - (response.value = null), - (response.reason = null); - } - function resolveModel(response, id, model) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk - ? resolveModelChunk(response, chunk, model) - : chunks.set(id, new ReactPromise("resolved_model", model, response)); - } - function resolveText(response, id, text) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk && "pending" !== chunk.status - ? chunk.reason.enqueueValue(text) - : (chunk && releasePendingChunk(response, chunk), - chunks.set(id, new ReactPromise("fulfilled", text, null))); - } function resolveBuffer(response, id, buffer) { var chunks = response._chunks, chunk = chunks.get(id); @@ -2639,15 +2706,41 @@ function resolveStream(response, id, stream, controller) { var chunks = response._chunks, chunk = chunks.get(id); - chunk - ? "pending" === chunk.status && - (releasePendingChunk(response, chunk), - (response = chunk.value), - (chunk.status = "fulfilled"), - (chunk.value = stream), - (chunk.reason = controller), - null !== response && wakeChunk(response, chunk.value)) - : chunks.set(id, new ReactPromise("fulfilled", stream, controller)); + if (!chunk) + chunks.set(id, new ReactPromise("fulfilled", stream, controller)); + else if ("pending" === chunk.status) { + releasePendingChunk(response, chunk); + id = chunk.value; + if (null != chunk._debugChunk) { + chunks = initializingHandler; + var prevChunk = initializingChunk; + initializingHandler = null; + chunk.status = "blocked"; + chunk.value = null; + chunk.reason = null; + initializingChunk = chunk; + try { + if ( + (initializeDebugChunk(response, chunk), + (chunk._debugChunk = null), + null !== initializingHandler && + !initializingHandler.errored && + 0 < initializingHandler.deps) + ) { + initializingHandler.value = stream; + initializingHandler.reason = controller; + initializingHandler.chunk = chunk; + return; + } + } finally { + (initializingHandler = chunks), (initializingChunk = prevChunk); + } + } + chunk.status = "fulfilled"; + chunk.value = stream; + chunk.reason = controller; + null !== id && wakeChunk(id, chunk.value); + } } function startReadableStream(response, id, type) { var controller = null; @@ -2668,7 +2761,7 @@ }, enqueueModel: function (json) { if (null === previousBlockedChunk) { - var chunk = new ReactPromise("resolved_model", json, response); + var chunk = createResolvedModelChunk(response, json); initializeModelChunk(chunk); "fulfilled" === chunk.status ? controller.enqueue(chunk.value) @@ -2830,11 +2923,6 @@ } ); } - function stopStream(response, id, row) { - (response = response._chunks.get(id)) && - "fulfilled" === response.status && - response.reason.close("" === row ? '"$undefined"' : row); - } function resolveErrorDev(response, errorInfo) { var name = errorInfo.name, env = errorInfo.env; @@ -2855,66 +2943,6 @@ response.environmentName = env; return response; } - function resolvePostponeDev(response, id, reason, stack, env) { - reason = buildFakeCallStack( - response, - stack, - env, - !1, - Error.bind(null, reason || "") - ); - stack = response._debugRootTask; - reason = null != stack ? stack.run(reason) : reason(); - reason.$$typeof = REACT_POSTPONE_TYPE; - stack = response._chunks; - (env = stack.get(id)) - ? triggerErrorOnChunk(response, env, reason) - : stack.set(id, createErrorChunk(response, reason)); - } - function resolveHint(response, code, model) { - response = JSON.parse(model, response._fromJSON); - model = ReactDOMSharedInternals.d; - switch (code) { - case "D": - model.D(response); - break; - case "C": - "string" === typeof response - ? model.C(response) - : model.C(response[0], response[1]); - break; - case "L": - code = response[0]; - var as = response[1]; - 3 === response.length - ? model.L(code, as, response[2]) - : model.L(code, as); - break; - case "m": - "string" === typeof response - ? model.m(response) - : model.m(response[0], response[1]); - break; - case "X": - "string" === typeof response - ? model.X(response) - : model.X(response[0], response[1]); - break; - case "S": - "string" === typeof response - ? model.S(response) - : model.S( - response[0], - 0 === response[1] ? void 0 : response[1], - 3 === response.length ? response[2] : void 0 - ); - break; - case "M": - "string" === typeof response - ? model.M(response) - : model.M(response[0], response[1]); - } - } function createFakeFunction( name, filename, @@ -3126,7 +3154,7 @@ (owner.debugLocation = debugInfo.debugStack)); } } - function resolveDebugInfo(response, id, debugInfo) { + function initializeDebugInfo(response, debugInfo) { void 0 !== debugInfo.stack && initializeFakeTask(response, debugInfo); if (null == debugInfo.owner && null != response._debugRootOwner) { var _componentInfoOrAsyncInfo = debugInfo; @@ -3138,8 +3166,7 @@ void 0 !== debugInfo.stack && initializeFakeStack(response, debugInfo); "number" === typeof debugInfo.time && (debugInfo = { time: debugInfo.time + response._timeOrigin }); - response = getChunk(response, id); - (response._debugInfo || (response._debugInfo = [])).push(debugInfo); + return debugInfo; } function getCurrentStackInDEV() { var owner = currentOwnerInDEV; @@ -3196,22 +3223,37 @@ } return JSCompiler_inline_result$jscomp$0; } - function resolveConsoleEntry(response, value) { + function resolveConsoleEntry(response, json) { if (response._replayConsole) { - var payload = JSON.parse(value, response._fromJSON); - value = payload[0]; - var stackTrace = payload[1], - owner = payload[2], - env = payload[3]; - payload = payload.slice(4); - replayConsoleWithCallStackInDEV( - response, - value, - stackTrace, - owner, - env, - payload - ); + var blockedChunk = response._blockedConsole; + if (null == blockedChunk) + (blockedChunk = createResolvedModelChunk(response, json)), + initializeModelChunk(blockedChunk), + "fulfilled" === blockedChunk.status + ? replayConsoleWithCallStackInDEV(response, blockedChunk.value) + : (blockedChunk.then( + function (v) { + return replayConsoleWithCallStackInDEV(response, v); + }, + function () {} + ), + (response._blockedConsole = blockedChunk)); + else { + var _chunk4 = createPendingChunk(response); + _chunk4.then( + function (v) { + return replayConsoleWithCallStackInDEV(response, v); + }, + function () {} + ); + response._blockedConsole = _chunk4; + var unblock = function () { + response._blockedConsole === _chunk4 && + (response._blockedConsole = null); + resolveModelChunk(response, _chunk4, json); + }; + blockedChunk.then(unblock, unblock); + } } } function initializeIOInfo(response, ioInfo) { @@ -3246,7 +3288,7 @@ chunk ? (resolveModelChunk(response, chunk, model), "resolved_model" === chunk.status && initializeModelChunk(chunk)) - : ((chunk = new ReactPromise("resolved_model", model, response)), + : ((chunk = createResolvedModelChunk(response, model)), chunks.set(id, chunk), initializeModelChunk(chunk)); "fulfilled" === chunk.status @@ -3870,50 +3912,103 @@ i++ ) row += stringDecoder.decode(buffer[i], decoderOptions); - row += stringDecoder.decode(chunk); - processFullStringRow(response, id, tag, row); - } - function processFullStringRow(response, id, tag, row) { + buffer = row += stringDecoder.decode(chunk); switch (tag) { case 73: - resolveModule(response, id, row); + resolveModule(response, id, buffer); break; case 72: - resolveHint(response, row[0], row.slice(1)); + id = buffer[0]; + buffer = buffer.slice(1); + response = JSON.parse(buffer, response._fromJSON); + buffer = ReactDOMSharedInternals.d; + switch (id) { + case "D": + buffer.D(response); + break; + case "C": + "string" === typeof response + ? buffer.C(response) + : buffer.C(response[0], response[1]); + break; + case "L": + id = response[0]; + tag = response[1]; + 3 === response.length + ? buffer.L(id, tag, response[2]) + : buffer.L(id, tag); + break; + case "m": + "string" === typeof response + ? buffer.m(response) + : buffer.m(response[0], response[1]); + break; + case "X": + "string" === typeof response + ? buffer.X(response) + : buffer.X(response[0], response[1]); + break; + case "S": + "string" === typeof response + ? buffer.S(response) + : buffer.S( + response[0], + 0 === response[1] ? void 0 : response[1], + 3 === response.length ? response[2] : void 0 + ); + break; + case "M": + "string" === typeof response + ? buffer.M(response) + : buffer.M(response[0], response[1]); + } break; case 69: - row = JSON.parse(row); - tag = resolveErrorDev(response, row); - tag.digest = row.digest; - row = response._chunks; - var chunk = row.get(id); + tag = response._chunks; + chunk = tag.get(id); + buffer = JSON.parse(buffer); + stringDecoder = resolveErrorDev(response, buffer); + stringDecoder.digest = buffer.digest; chunk - ? triggerErrorOnChunk(response, chunk, tag) - : row.set(id, createErrorChunk(response, tag)); + ? triggerErrorOnChunk(response, chunk, stringDecoder) + : tag.set(id, createErrorChunk(response, stringDecoder)); break; case 84: - resolveText(response, id, row); + tag = response._chunks; + (chunk = tag.get(id)) && "pending" !== chunk.status + ? chunk.reason.enqueueValue(buffer) + : (chunk && releasePendingChunk(response, chunk), + tag.set(id, new ReactPromise("fulfilled", buffer, null))); break; case 78: - response._timeOrigin = +row - performance.timeOrigin; + response._timeOrigin = +buffer - performance.timeOrigin; break; case 68: - tag = new ReactPromise("resolved_model", row, response); - initializeModelChunk(tag); - "fulfilled" === tag.status - ? resolveDebugInfo(response, id, tag.value) - : tag.then( - function (v) { - return resolveDebugInfo(response, id, v); - }, - function () {} - ); + id = getChunk(response, id); + "fulfilled" !== id.status && + "rejected" !== id.status && + "halted" !== id.status && + "blocked" !== id.status && + "resolved_module" !== id.status && + ((tag = id._debugChunk), + (chunk = createResolvedModelChunk(response, buffer)), + (chunk._debugChunk = tag), + (id._debugChunk = chunk), + initializeDebugChunk(response, id), + "blocked" === chunk.status && + void 0 === response._debugChannel && + '"' === buffer[0] && + "$" === buffer[1] && + ((buffer = buffer.slice(2, buffer.length - 1).split(":")), + (buffer = parseInt(buffer[0], 16)), + "pending" === getChunk(response, buffer).status && + (id._debugChunk = null))); break; case 74: - resolveIOInfo(response, id, row); + resolveIOInfo(response, id, buffer); break; case 87: - resolveConsoleEntry(response, row); + resolveConsoleEntry(response, buffer); break; case 82: startReadableStream(response, id, void 0); @@ -3928,16 +4023,45 @@ startAsyncIterable(response, id, !0); break; case 67: - stopStream(response, id, row); + (response = response._chunks.get(id)) && + "fulfilled" === response.status && + response.reason.close("" === buffer ? '"$undefined"' : buffer); break; case 80: - tag = JSON.parse(row); - resolvePostponeDev(response, id, tag.reason, tag.stack, tag.env); + buffer = JSON.parse(buffer); + buffer = buildFakeCallStack( + response, + buffer.stack, + buffer.env, + !1, + Error.bind(null, buffer.reason || "") + ); + tag = response._debugRootTask; + buffer = null != tag ? tag.run(buffer) : buffer(); + buffer.$$typeof = REACT_POSTPONE_TYPE; + tag = response._chunks; + (chunk = tag.get(id)) + ? triggerErrorOnChunk(response, chunk, buffer) + : tag.set(id, createErrorChunk(response, buffer)); break; default: - "" === row - ? resolveDebugHalt(response, id) - : resolveModel(response, id, row); + if ("" === buffer) { + if ( + ((buffer = response._chunks), + (tag = buffer.get(id)) || + buffer.set(id, (tag = createPendingChunk(response))), + "pending" === tag.status || "blocked" === tag.status) + ) + releasePendingChunk(response, tag), + (response = tag), + (response.status = "halted"), + (response.value = null), + (response.reason = null); + } else + (tag = response._chunks), + (chunk = tag.get(id)) + ? resolveModelChunk(response, chunk, buffer) + : tag.set(id, createResolvedModelChunk(response, buffer)); } } function createFromJSONCallback(response) { @@ -3990,7 +4114,7 @@ validated = initializingHandler; initializingHandler = validated.parent; if (validated.errored) { - key = createErrorChunk(response, validated.value); + key = createErrorChunk(response, validated.reason); initializeElement(response, value); validated = { name: getComponentNameFromType(value.type) || "", @@ -4283,14 +4407,12 @@ ), currentOwnerInDEV = null, replayConsoleWithCallStack = { - react_stack_bottom_frame: function ( - response, - methodName, - stackTrace, - owner, - env, - args - ) { + react_stack_bottom_frame: function (response, payload) { + var methodName = payload[0], + stackTrace = payload[1], + owner = payload[2], + env = payload[3]; + payload = payload.slice(4); var prevStack = ReactSharedInternals.getCurrentStack; ReactSharedInternals.getCurrentStack = getCurrentStackInDEV; currentOwnerInDEV = null === owner ? response._debugRootOwner : owner; @@ -4304,13 +4426,13 @@ case "table": var JSCompiler_inline_result = bind$1.apply( console[methodName], - [console].concat(args) + [console].concat(payload) ); break a; case "assert": offset = 1; } - var newArgs = args.slice(0); + var newArgs = payload.slice(0); "string" === typeof newArgs[offset] ? newArgs.splice( offset, 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 9c26bcf8dad34..c4497d53334a6 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 @@ -879,7 +879,7 @@ function initializeModelChunk(chunk) { (chunk.reason = null), wakeChunk(resolveListeners, value)); if (null !== initializingHandler) { - if (initializingHandler.errored) throw initializingHandler.value; + if (initializingHandler.errored) throw initializingHandler.reason; if (0 < initializingHandler.deps) { initializingHandler.value = value; initializingHandler.chunk = chunk; @@ -996,6 +996,7 @@ function fulfillReference(reference, value) { ((parentObject = key.value), (key.status = "fulfilled"), (key.value = handler.value), + (key.reason = handler.reason), null !== parentObject && wakeChunk(parentObject, handler.value))); } function rejectReference(reference, error) { @@ -1003,7 +1004,8 @@ function rejectReference(reference, error) { reference = reference.response; handler.errored || ((handler.errored = !0), - (handler.value = error), + (handler.value = null), + (handler.reason = error), (handler = handler.chunk), null !== handler && "blocked" === handler.status && @@ -1025,6 +1027,7 @@ function waitForReference( parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1078,6 +1081,7 @@ function loadServerReference(response, metaData, parentObject, key) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1120,7 +1124,8 @@ function loadServerReference(response, metaData, parentObject, key) { function (error) { if (!handler.errored) { handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; var chunk = handler.chunk; null !== chunk && "blocked" === chunk.status && @@ -1176,6 +1181,7 @@ function getOutlinedModel(response, reference, parentObject, key, map) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1185,11 +1191,13 @@ function getOutlinedModel(response, reference, parentObject, key, map) { return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = value.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = value.reason)) : (initializingHandler = { parent: null, chunk: null, - value: value.reason, + value: null, + reason: value.reason, deps: 0, errored: !0 }), @@ -1211,6 +1219,7 @@ function getOutlinedModel(response, reference, parentObject, key, map) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1220,11 +1229,13 @@ function getOutlinedModel(response, reference, parentObject, key, map) { return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = id.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = id.reason)) : (initializingHandler = { parent: null, chunk: null, - value: id.reason, + value: null, + reason: id.reason, deps: 0, errored: !0 }), @@ -1263,6 +1274,7 @@ function parseModelString(response, parentObject, key, value) { parent: initializingHandler, chunk: null, value: null, + reason: null, deps: 0, errored: !1 }), @@ -1751,13 +1763,14 @@ function processFullBinaryRow(response, id, tag, buffer, chunk) { } break; case 69: - tag = JSON.parse(buffer); - buffer = resolveErrorProd(); - buffer.digest = tag.digest; tag = response._chunks; - (chunk = tag.get(id)) - ? triggerErrorOnChunk(response, chunk, buffer) - : tag.set(id, createErrorChunk(response, buffer)); + chunk = tag.get(id); + buffer = JSON.parse(buffer); + stringDecoder = resolveErrorProd(); + stringDecoder.digest = buffer.digest; + chunk + ? triggerErrorOnChunk(response, chunk, stringDecoder) + : tag.set(id, createErrorChunk(response, stringDecoder)); break; case 84: response = response._chunks; @@ -1828,7 +1841,7 @@ function createFromJSONCallback(response) { (initializingHandler = value.parent), value.errored) ) - (key = createErrorChunk(response, value.value)), + (key = createErrorChunk(response, value.reason)), (key = createLazyChunkWrapper(key)); else if (0 < value.deps) { var blockedChunk = new ReactPromise("blocked", null, null); 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 c0605ce12893d..ffdabe849630a 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 @@ -1570,7 +1570,7 @@ this.value = value; this.reason = reason; this._children = []; - this._debugInfo = null; + this._debugInfo = this._debugChunk = null; } function unwrapWeakResponse(weakResponse) { weakResponse = weakResponse.weak.deref(); @@ -1702,13 +1702,33 @@ } } function triggerErrorOnChunk(response, chunk, error) { - "pending" !== chunk.status && "blocked" !== chunk.status - ? chunk.reason.error(error) - : (releasePendingChunk(response, chunk), - (response = chunk.reason), - (chunk.status = "rejected"), - (chunk.reason = error), - null !== response && rejectChunk(response, error)); + if ("pending" !== chunk.status && "blocked" !== chunk.status) + chunk.reason.error(error); + else { + releasePendingChunk(response, chunk); + var listeners = chunk.reason; + if ("pending" === chunk.status && null != chunk._debugChunk) { + var prevHandler = initializingHandler, + prevChunk = initializingChunk; + initializingHandler = null; + chunk.status = "blocked"; + chunk.value = null; + chunk.reason = null; + initializingChunk = chunk; + try { + initializeDebugChunk(response, chunk), (chunk._debugChunk = null); + } finally { + (initializingHandler = prevHandler), + (initializingChunk = prevChunk); + } + } + chunk.status = "rejected"; + chunk.reason = error; + null !== listeners && rejectChunk(listeners, error); + } + } + function createResolvedModelChunk(response, value) { + return new ReactPromise("resolved_model", value, response); } function createResolvedIteratorResultChunk(response, value, done) { return new ReactPromise( @@ -1749,11 +1769,69 @@ var rejectListeners = chunk.reason; chunk.status = "resolved_module"; chunk.value = value; + chunk._debugInfo = null; null !== response && (initializeModuleChunk(chunk), wakeChunkIfInitialized(chunk, response, rejectListeners)); } } + function initializeDebugChunk(response, chunk) { + var debugChunk = chunk._debugChunk; + if (null !== debugChunk) { + var debugInfo = chunk._debugInfo || (chunk._debugInfo = []); + try { + if ("resolved_model" === debugChunk.status) { + for ( + var idx = debugInfo.length, c = debugChunk._debugChunk; + null !== c; + + ) + "fulfilled" !== c.status && idx++, (c = c._debugChunk); + initializeModelChunk(debugChunk); + switch (debugChunk.status) { + case "fulfilled": + debugInfo[idx] = initializeDebugInfo( + response, + debugChunk.value + ); + break; + case "blocked": + case "pending": + waitForReference( + debugChunk, + debugInfo, + "" + idx, + response, + initializeDebugInfo, + [""] + ); + break; + default: + throw debugChunk.reason; + } + } else + switch (debugChunk.status) { + case "fulfilled": + break; + case "blocked": + case "pending": + waitForReference( + debugChunk, + {}, + "", + response, + initializeDebugInfo, + [""] + ); + break; + default: + throw debugChunk.reason; + } + } catch (error) { + triggerErrorOnChunk(response, chunk, error); + } + } + } function initializeModelChunk(chunk) { var prevHandler = initializingHandler, prevChunk = initializingChunk; @@ -1764,6 +1842,8 @@ chunk.value = null; chunk.reason = null; initializingChunk = chunk; + initializeDebugChunk(response, chunk); + chunk._debugChunk = null; try { var value = JSON.parse(resolvedModel, response._fromJSON), resolveListeners = chunk.value; @@ -1772,7 +1852,7 @@ (chunk.reason = null), wakeChunk(resolveListeners, value)); if (null !== initializingHandler) { - if (initializingHandler.errored) throw initializingHandler.value; + if (initializingHandler.errored) throw initializingHandler.reason; if (0 < initializingHandler.deps) { initializingHandler.value = value; initializingHandler.chunk = chunk; @@ -1966,6 +2046,7 @@ ((parentObject = key.value), (key.status = "fulfilled"), (key.value = handler.value), + (key.reason = handler.reason), null !== parentObject && wakeChunk(parentObject, handler.value))); } function rejectReference(reference, error) { @@ -1974,7 +2055,8 @@ if (!handler.errored) { var blockedValue = handler.value; handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; handler = handler.chunk; if (null !== handler && "blocked" === handler.status) { if ( @@ -2020,6 +2102,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -2074,6 +2157,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -2122,7 +2206,8 @@ if (!handler.errored) { var blockedValue = handler.value; handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; var chunk = handler.chunk; if (null !== chunk && "blocked" === chunk.status) { if ( @@ -2196,6 +2281,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -2205,11 +2291,13 @@ return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = value.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = value.reason)) : (initializingHandler = { parent: null, chunk: null, - value: value.reason, + value: null, + reason: value.reason, deps: 0, errored: !0 }), @@ -2252,6 +2340,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -2261,11 +2350,13 @@ return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = id.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = id.reason)) : (initializingHandler = { parent: null, chunk: null, - value: id.reason, + value: null, + reason: id.reason, deps: 0, errored: !0 }), @@ -2324,6 +2415,7 @@ parent: initializingHandler, chunk: null, value: null, + reason: null, deps: 0, errored: !1 }), @@ -2556,6 +2648,7 @@ )); this._debugFindSourceMapURL = findSourceMapURL; this._debugChannel = debugChannel; + this._blockedConsole = null; this._replayConsole = replayConsole; this._rootEnvironmentName = environmentName; debugChannel && @@ -2574,32 +2667,6 @@ _buffer: [] }; } - function resolveDebugHalt(response, id) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk || chunks.set(id, (chunk = createPendingChunk(response))); - if ("pending" === chunk.status || "blocked" === chunk.status) - releasePendingChunk(response, chunk), - (response = chunk), - (response.status = "halted"), - (response.value = null), - (response.reason = null); - } - function resolveModel(response, id, model) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk - ? resolveModelChunk(response, chunk, model) - : chunks.set(id, new ReactPromise("resolved_model", model, response)); - } - function resolveText(response, id, text) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk && "pending" !== chunk.status - ? chunk.reason.enqueueValue(text) - : (chunk && releasePendingChunk(response, chunk), - chunks.set(id, new ReactPromise("fulfilled", text, null))); - } function resolveBuffer(response, id, buffer) { var chunks = response._chunks, chunk = chunks.get(id); @@ -2648,15 +2715,41 @@ function resolveStream(response, id, stream, controller) { var chunks = response._chunks, chunk = chunks.get(id); - chunk - ? "pending" === chunk.status && - (releasePendingChunk(response, chunk), - (response = chunk.value), - (chunk.status = "fulfilled"), - (chunk.value = stream), - (chunk.reason = controller), - null !== response && wakeChunk(response, chunk.value)) - : chunks.set(id, new ReactPromise("fulfilled", stream, controller)); + if (!chunk) + chunks.set(id, new ReactPromise("fulfilled", stream, controller)); + else if ("pending" === chunk.status) { + releasePendingChunk(response, chunk); + id = chunk.value; + if (null != chunk._debugChunk) { + chunks = initializingHandler; + var prevChunk = initializingChunk; + initializingHandler = null; + chunk.status = "blocked"; + chunk.value = null; + chunk.reason = null; + initializingChunk = chunk; + try { + if ( + (initializeDebugChunk(response, chunk), + (chunk._debugChunk = null), + null !== initializingHandler && + !initializingHandler.errored && + 0 < initializingHandler.deps) + ) { + initializingHandler.value = stream; + initializingHandler.reason = controller; + initializingHandler.chunk = chunk; + return; + } + } finally { + (initializingHandler = chunks), (initializingChunk = prevChunk); + } + } + chunk.status = "fulfilled"; + chunk.value = stream; + chunk.reason = controller; + null !== id && wakeChunk(id, chunk.value); + } } function startReadableStream(response, id, type) { var controller = null; @@ -2677,7 +2770,7 @@ }, enqueueModel: function (json) { if (null === previousBlockedChunk) { - var chunk = new ReactPromise("resolved_model", json, response); + var chunk = createResolvedModelChunk(response, json); initializeModelChunk(chunk); "fulfilled" === chunk.status ? controller.enqueue(chunk.value) @@ -2839,11 +2932,6 @@ } ); } - function stopStream(response, id, row) { - (response = response._chunks.get(id)) && - "fulfilled" === response.status && - response.reason.close("" === row ? '"$undefined"' : row); - } function resolveErrorDev(response, errorInfo) { var name = errorInfo.name, env = errorInfo.env; @@ -2864,66 +2952,6 @@ response.environmentName = env; return response; } - function resolvePostponeDev(response, id, reason, stack, env) { - reason = buildFakeCallStack( - response, - stack, - env, - !1, - Error.bind(null, reason || "") - ); - stack = response._debugRootTask; - reason = null != stack ? stack.run(reason) : reason(); - reason.$$typeof = REACT_POSTPONE_TYPE; - stack = response._chunks; - (env = stack.get(id)) - ? triggerErrorOnChunk(response, env, reason) - : stack.set(id, createErrorChunk(response, reason)); - } - function resolveHint(response, code, model) { - response = JSON.parse(model, response._fromJSON); - model = ReactDOMSharedInternals.d; - switch (code) { - case "D": - model.D(response); - break; - case "C": - "string" === typeof response - ? model.C(response) - : model.C(response[0], response[1]); - break; - case "L": - code = response[0]; - var as = response[1]; - 3 === response.length - ? model.L(code, as, response[2]) - : model.L(code, as); - break; - case "m": - "string" === typeof response - ? model.m(response) - : model.m(response[0], response[1]); - break; - case "X": - "string" === typeof response - ? model.X(response) - : model.X(response[0], response[1]); - break; - case "S": - "string" === typeof response - ? model.S(response) - : model.S( - response[0], - 0 === response[1] ? void 0 : response[1], - 3 === response.length ? response[2] : void 0 - ); - break; - case "M": - "string" === typeof response - ? model.M(response) - : model.M(response[0], response[1]); - } - } function createFakeFunction( name, filename, @@ -3135,7 +3163,7 @@ (owner.debugLocation = debugInfo.debugStack)); } } - function resolveDebugInfo(response, id, debugInfo) { + function initializeDebugInfo(response, debugInfo) { void 0 !== debugInfo.stack && initializeFakeTask(response, debugInfo); if (null == debugInfo.owner && null != response._debugRootOwner) { var _componentInfoOrAsyncInfo = debugInfo; @@ -3147,8 +3175,7 @@ void 0 !== debugInfo.stack && initializeFakeStack(response, debugInfo); "number" === typeof debugInfo.time && (debugInfo = { time: debugInfo.time + response._timeOrigin }); - response = getChunk(response, id); - (response._debugInfo || (response._debugInfo = [])).push(debugInfo); + return debugInfo; } function getCurrentStackInDEV() { var owner = currentOwnerInDEV; @@ -3205,22 +3232,37 @@ } return JSCompiler_inline_result$jscomp$0; } - function resolveConsoleEntry(response, value) { + function resolveConsoleEntry(response, json) { if (response._replayConsole) { - var payload = JSON.parse(value, response._fromJSON); - value = payload[0]; - var stackTrace = payload[1], - owner = payload[2], - env = payload[3]; - payload = payload.slice(4); - replayConsoleWithCallStackInDEV( - response, - value, - stackTrace, - owner, - env, - payload - ); + var blockedChunk = response._blockedConsole; + if (null == blockedChunk) + (blockedChunk = createResolvedModelChunk(response, json)), + initializeModelChunk(blockedChunk), + "fulfilled" === blockedChunk.status + ? replayConsoleWithCallStackInDEV(response, blockedChunk.value) + : (blockedChunk.then( + function (v) { + return replayConsoleWithCallStackInDEV(response, v); + }, + function () {} + ), + (response._blockedConsole = blockedChunk)); + else { + var _chunk4 = createPendingChunk(response); + _chunk4.then( + function (v) { + return replayConsoleWithCallStackInDEV(response, v); + }, + function () {} + ); + response._blockedConsole = _chunk4; + var unblock = function () { + response._blockedConsole === _chunk4 && + (response._blockedConsole = null); + resolveModelChunk(response, _chunk4, json); + }; + blockedChunk.then(unblock, unblock); + } } } function initializeIOInfo(response, ioInfo) { @@ -3255,7 +3297,7 @@ chunk ? (resolveModelChunk(response, chunk, model), "resolved_model" === chunk.status && initializeModelChunk(chunk)) - : ((chunk = new ReactPromise("resolved_model", model, response)), + : ((chunk = createResolvedModelChunk(response, model)), chunks.set(id, chunk), initializeModelChunk(chunk)); "fulfilled" === chunk.status @@ -3888,35 +3930,91 @@ resolveModule(response, id, row); break; case 72: - resolveHint(response, row[0], row.slice(1)); + id = row[0]; + row = row.slice(1); + response = JSON.parse(row, response._fromJSON); + row = ReactDOMSharedInternals.d; + switch (id) { + case "D": + row.D(response); + break; + case "C": + "string" === typeof response + ? row.C(response) + : row.C(response[0], response[1]); + break; + case "L": + id = response[0]; + tag = response[1]; + 3 === response.length + ? row.L(id, tag, response[2]) + : row.L(id, tag); + break; + case "m": + "string" === typeof response + ? row.m(response) + : row.m(response[0], response[1]); + break; + case "X": + "string" === typeof response + ? row.X(response) + : row.X(response[0], response[1]); + break; + case "S": + "string" === typeof response + ? row.S(response) + : row.S( + response[0], + 0 === response[1] ? void 0 : response[1], + 3 === response.length ? response[2] : void 0 + ); + break; + case "M": + "string" === typeof response + ? row.M(response) + : row.M(response[0], response[1]); + } break; case 69: + tag = response._chunks; + var chunk = tag.get(id); row = JSON.parse(row); - tag = resolveErrorDev(response, row); - tag.digest = row.digest; - row = response._chunks; - var chunk = row.get(id); + var error = resolveErrorDev(response, row); + error.digest = row.digest; chunk - ? triggerErrorOnChunk(response, chunk, tag) - : row.set(id, createErrorChunk(response, tag)); + ? triggerErrorOnChunk(response, chunk, error) + : tag.set(id, createErrorChunk(response, error)); break; case 84: - resolveText(response, id, row); + tag = response._chunks; + (chunk = tag.get(id)) && "pending" !== chunk.status + ? chunk.reason.enqueueValue(row) + : (chunk && releasePendingChunk(response, chunk), + tag.set(id, new ReactPromise("fulfilled", row, null))); break; case 78: response._timeOrigin = +row - performance.timeOrigin; break; case 68: - tag = new ReactPromise("resolved_model", row, response); - initializeModelChunk(tag); - "fulfilled" === tag.status - ? resolveDebugInfo(response, id, tag.value) - : tag.then( - function (v) { - return resolveDebugInfo(response, id, v); - }, - function () {} - ); + id = getChunk(response, id); + "fulfilled" !== id.status && + "rejected" !== id.status && + "halted" !== id.status && + "blocked" !== id.status && + "resolved_module" !== id.status && + ((tag = id._debugChunk), + (chunk = createResolvedModelChunk(response, row)), + (chunk._debugChunk = tag), + (id._debugChunk = chunk), + initializeDebugChunk(response, id), + "blocked" === chunk.status && + void 0 === response._debugChannel && + '"' === row[0] && + "$" === row[1] && + ((row = row.slice(2, row.length - 1).split(":")), + (row = parseInt(row[0], 16)), + "pending" === getChunk(response, row).status && + (id._debugChunk = null))); break; case 74: resolveIOInfo(response, id, row); @@ -3937,16 +4035,45 @@ startAsyncIterable(response, id, !0); break; case 67: - stopStream(response, id, row); + (response = response._chunks.get(id)) && + "fulfilled" === response.status && + response.reason.close("" === row ? '"$undefined"' : row); break; case 80: - tag = JSON.parse(row); - resolvePostponeDev(response, id, tag.reason, tag.stack, tag.env); + row = JSON.parse(row); + row = buildFakeCallStack( + response, + row.stack, + row.env, + !1, + Error.bind(null, row.reason || "") + ); + tag = response._debugRootTask; + row = null != tag ? tag.run(row) : row(); + row.$$typeof = REACT_POSTPONE_TYPE; + tag = response._chunks; + (chunk = tag.get(id)) + ? triggerErrorOnChunk(response, chunk, row) + : tag.set(id, createErrorChunk(response, row)); break; default: - "" === row - ? resolveDebugHalt(response, id) - : resolveModel(response, id, row); + if ("" === row) { + if ( + ((row = response._chunks), + (tag = row.get(id)) || + row.set(id, (tag = createPendingChunk(response))), + "pending" === tag.status || "blocked" === tag.status) + ) + releasePendingChunk(response, tag), + (response = tag), + (response.status = "halted"), + (response.value = null), + (response.reason = null); + } else + (tag = response._chunks), + (chunk = tag.get(id)) + ? resolveModelChunk(response, chunk, row) + : tag.set(id, createResolvedModelChunk(response, row)); } } function processBinaryChunk(weakResponse, streamState, chunk) { @@ -4089,7 +4216,7 @@ validated = initializingHandler; initializingHandler = validated.parent; if (validated.errored) { - key = createErrorChunk(response, validated.value); + key = createErrorChunk(response, validated.reason); initializeElement(response, value); validated = { name: getComponentNameFromType(value.type) || "", @@ -4293,14 +4420,12 @@ ), currentOwnerInDEV = null, replayConsoleWithCallStack = { - react_stack_bottom_frame: function ( - response, - methodName, - stackTrace, - owner, - env, - args - ) { + react_stack_bottom_frame: function (response, payload) { + var methodName = payload[0], + stackTrace = payload[1], + owner = payload[2], + env = payload[3]; + payload = payload.slice(4); var prevStack = ReactSharedInternals.getCurrentStack; ReactSharedInternals.getCurrentStack = getCurrentStackInDEV; currentOwnerInDEV = null === owner ? response._debugRootOwner : owner; @@ -4314,13 +4439,13 @@ case "table": var JSCompiler_inline_result = bind$1.apply( console[methodName], - [console].concat(args) + [console].concat(payload) ); break a; case "assert": offset = 1; } - var newArgs = args.slice(0); + var newArgs = payload.slice(0); "string" === typeof newArgs[offset] ? newArgs.splice( offset, 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 ca05a37f220e4..da99d7b5641aa 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 @@ -880,7 +880,7 @@ function initializeModelChunk(chunk) { (chunk.reason = null), wakeChunk(resolveListeners, value)); if (null !== initializingHandler) { - if (initializingHandler.errored) throw initializingHandler.value; + if (initializingHandler.errored) throw initializingHandler.reason; if (0 < initializingHandler.deps) { initializingHandler.value = value; initializingHandler.chunk = chunk; @@ -997,6 +997,7 @@ function fulfillReference(reference, value) { ((parentObject = key.value), (key.status = "fulfilled"), (key.value = handler.value), + (key.reason = handler.reason), null !== parentObject && wakeChunk(parentObject, handler.value))); } function rejectReference(reference, error) { @@ -1004,7 +1005,8 @@ function rejectReference(reference, error) { reference = reference.response; handler.errored || ((handler.errored = !0), - (handler.value = error), + (handler.value = null), + (handler.reason = error), (handler = handler.chunk), null !== handler && "blocked" === handler.status && @@ -1026,6 +1028,7 @@ function waitForReference( parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1079,6 +1082,7 @@ function loadServerReference(response, metaData, parentObject, key) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1121,7 +1125,8 @@ function loadServerReference(response, metaData, parentObject, key) { function (error) { if (!handler.errored) { handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; var chunk = handler.chunk; null !== chunk && "blocked" === chunk.status && @@ -1177,6 +1182,7 @@ function getOutlinedModel(response, reference, parentObject, key, map) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1186,11 +1192,13 @@ function getOutlinedModel(response, reference, parentObject, key, map) { return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = value.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = value.reason)) : (initializingHandler = { parent: null, chunk: null, - value: value.reason, + value: null, + reason: value.reason, deps: 0, errored: !0 }), @@ -1212,6 +1220,7 @@ function getOutlinedModel(response, reference, parentObject, key, map) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1221,11 +1230,13 @@ function getOutlinedModel(response, reference, parentObject, key, map) { return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = id.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = id.reason)) : (initializingHandler = { parent: null, chunk: null, - value: id.reason, + value: null, + reason: id.reason, deps: 0, errored: !0 }), @@ -1264,6 +1275,7 @@ function parseModelString(response, parentObject, key, value) { parent: initializingHandler, chunk: null, value: null, + reason: null, deps: 0, errored: !1 }), @@ -1756,14 +1768,14 @@ function processFullStringRow(response, id, tag, row) { } break; case 69: - tag = JSON.parse(row); - row = resolveErrorProd(); - row.digest = tag.digest; tag = response._chunks; var chunk = tag.get(id); + row = JSON.parse(row); + var error = resolveErrorProd(); + error.digest = row.digest; chunk - ? triggerErrorOnChunk(response, chunk, row) - : tag.set(id, createErrorChunk(response, row)); + ? triggerErrorOnChunk(response, chunk, error) + : tag.set(id, createErrorChunk(response, error)); break; case 84: response = response._chunks; @@ -1912,7 +1924,7 @@ function createFromJSONCallback(response) { (initializingHandler = value.parent), value.errored) ) - (key = createErrorChunk(response, value.value)), + (key = createErrorChunk(response, value.reason)), (key = createLazyChunkWrapper(key)); else if (0 < value.deps) { var blockedChunk = new ReactPromise("blocked", null, null); 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 af534e856221c..ad20f7b250cad 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 @@ -1298,11 +1298,12 @@ task.debugStack, task.debugTask ); + (task = iterable._debugInfo) && + forwardDebugInfo(request, streamTask, task); request.pendingChunks++; - task = streamTask.id.toString(16) + ":" + (isIterator ? "x" : "X") + "\n"; - request.completedRegularChunks.push(stringToChunk(task)); - (iterable = iterable._debugInfo) && - forwardDebugInfo(request, streamTask, iterable); + isIterator = + streamTask.id.toString(16) + ":" + (isIterator ? "x" : "X") + "\n"; + request.completedRegularChunks.push(stringToChunk(isIterator)); request.cacheController.signal.addEventListener("abort", abortIterable); callIteratorInDEV(iterator, progress, error); return serializeByValueID(streamTask.id); 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 6f104740e1169..3dba16ae491dd 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 @@ -1310,11 +1310,12 @@ task.debugStack, task.debugTask ); + (task = iterable._debugInfo) && + forwardDebugInfo(request, streamTask, task); request.pendingChunks++; - task = streamTask.id.toString(16) + ":" + (isIterator ? "x" : "X") + "\n"; - request.completedRegularChunks.push(stringToChunk(task)); - (iterable = iterable._debugInfo) && - forwardDebugInfo(request, streamTask, iterable); + isIterator = + streamTask.id.toString(16) + ":" + (isIterator ? "x" : "X") + "\n"; + request.completedRegularChunks.push(stringToChunk(isIterator)); request.cacheController.signal.addEventListener("abort", abortIterable); callIteratorInDEV(iterator, progress, error); return serializeByValueID(streamTask.id); 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 fc202ad7cc21f..63fc2bd32edbc 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 @@ -1404,11 +1404,12 @@ task.debugStack, task.debugTask ); + (task = iterable._debugInfo) && + forwardDebugInfo(request, streamTask, task); request.pendingChunks++; - task = streamTask.id.toString(16) + ":" + (isIterator ? "x" : "X") + "\n"; - request.completedRegularChunks.push(task); - (iterable = iterable._debugInfo) && - forwardDebugInfo(request, streamTask, iterable); + isIterator = + streamTask.id.toString(16) + ":" + (isIterator ? "x" : "X") + "\n"; + request.completedRegularChunks.push(isIterator); request.cacheController.signal.addEventListener("abort", abortIterable); callIteratorInDEV(iterator, progress, error); return serializeByValueID(streamTask.id); 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 15b7f1417ed5d..a5875ae52a8c7 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 @@ -48,7 +48,7 @@ "neo-async": "^2.6.1" }, "peerDependencies": { - "react": "0.0.0-experimental-dffacc7b-20250717", - "react-dom": "0.0.0-experimental-dffacc7b-20250717" + "react": "0.0.0-experimental-e9638c33-20250721", + "react-dom": "0.0.0-experimental-e9638c33-20250721" } } \ 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 385a89dde03d4..fb55589edce0f 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 @@ -907,7 +907,7 @@ this.status = status; this.value = value; this.reason = reason; - this._debugInfo = null; + this._debugInfo = this._debugChunk = null; } function unwrapWeakResponse(weakResponse) { weakResponse = weakResponse.weak.deref(); @@ -1036,13 +1036,30 @@ } } function triggerErrorOnChunk(response, chunk, error) { - "pending" !== chunk.status && "blocked" !== chunk.status - ? chunk.reason.error(error) - : (releasePendingChunk(response, chunk), - (response = chunk.reason), - (chunk.status = "rejected"), - (chunk.reason = error), - null !== response && rejectChunk(response, error)); + if ("pending" !== chunk.status && "blocked" !== chunk.status) + chunk.reason.error(error); + else { + releasePendingChunk(response, chunk); + var listeners = chunk.reason; + if ("pending" === chunk.status && null != chunk._debugChunk) { + var prevHandler = initializingHandler; + initializingHandler = null; + chunk.status = "blocked"; + chunk.value = null; + chunk.reason = null; + try { + initializeDebugChunk(response, chunk), (chunk._debugChunk = null); + } finally { + initializingHandler = prevHandler; + } + } + chunk.status = "rejected"; + chunk.reason = error; + null !== listeners && rejectChunk(listeners, error); + } + } + function createResolvedModelChunk(response, value) { + return new ReactPromise("resolved_model", value, response); } function createResolvedIteratorResultChunk(response, value, done) { return new ReactPromise( @@ -1083,11 +1100,69 @@ var rejectListeners = chunk.reason; chunk.status = "resolved_module"; chunk.value = value; + chunk._debugInfo = null; null !== response && (initializeModuleChunk(chunk), wakeChunkIfInitialized(chunk, response, rejectListeners)); } } + function initializeDebugChunk(response, chunk) { + var debugChunk = chunk._debugChunk; + if (null !== debugChunk) { + var debugInfo = chunk._debugInfo || (chunk._debugInfo = []); + try { + if ("resolved_model" === debugChunk.status) { + for ( + var idx = debugInfo.length, c = debugChunk._debugChunk; + null !== c; + + ) + "fulfilled" !== c.status && idx++, (c = c._debugChunk); + initializeModelChunk(debugChunk); + switch (debugChunk.status) { + case "fulfilled": + debugInfo[idx] = initializeDebugInfo( + response, + debugChunk.value + ); + break; + case "blocked": + case "pending": + waitForReference( + debugChunk, + debugInfo, + "" + idx, + response, + initializeDebugInfo, + [""] + ); + break; + default: + throw debugChunk.reason; + } + } else + switch (debugChunk.status) { + case "fulfilled": + break; + case "blocked": + case "pending": + waitForReference( + debugChunk, + {}, + "", + response, + initializeDebugInfo, + [""] + ); + break; + default: + throw debugChunk.reason; + } + } catch (error) { + triggerErrorOnChunk(response, chunk, error); + } + } + } function initializeModelChunk(chunk) { var prevHandler = initializingHandler; initializingHandler = null; @@ -1096,6 +1171,8 @@ chunk.status = "blocked"; chunk.value = null; chunk.reason = null; + initializeDebugChunk(response, chunk); + chunk._debugChunk = null; try { var value = JSON.parse(resolvedModel, response._fromJSON), resolveListeners = chunk.value; @@ -1104,7 +1181,7 @@ (chunk.reason = null), wakeChunk(resolveListeners, value)); if (null !== initializingHandler) { - if (initializingHandler.errored) throw initializingHandler.value; + if (initializingHandler.errored) throw initializingHandler.reason; if (0 < initializingHandler.deps) { initializingHandler.value = value; initializingHandler.chunk = chunk; @@ -1298,6 +1375,7 @@ ((parentObject = key.value), (key.status = "fulfilled"), (key.value = handler.value), + (key.reason = handler.reason), null !== parentObject && wakeChunk(parentObject, handler.value))); } function rejectReference(reference, error) { @@ -1306,7 +1384,8 @@ if (!handler.errored) { var blockedValue = handler.value; handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; handler = handler.chunk; if (null !== handler && "blocked" === handler.status) { if ( @@ -1352,6 +1431,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1401,6 +1481,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1448,7 +1529,8 @@ if (!handler.errored) { var blockedValue = handler.value; handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; var chunk = handler.chunk; if (null !== chunk && "blocked" === chunk.status) { if ( @@ -1519,6 +1601,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1528,11 +1611,13 @@ return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = value.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = value.reason)) : (initializingHandler = { parent: null, chunk: null, - value: value.reason, + value: null, + reason: value.reason, deps: 0, errored: !0 }), @@ -1575,6 +1660,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1584,11 +1670,13 @@ return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = id.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = id.reason)) : (initializingHandler = { parent: null, chunk: null, - value: id.reason, + value: null, + reason: id.reason, deps: 0, errored: !0 }), @@ -1647,6 +1735,7 @@ parent: initializingHandler, chunk: null, value: null, + reason: null, deps: 0, errored: !1 }), @@ -1870,6 +1959,7 @@ )); this._debugFindSourceMapURL = findSourceMapURL; this._debugChannel = debugChannel; + this._blockedConsole = null; this._replayConsole = replayConsole; this._rootEnvironmentName = environmentName; debugChannel && @@ -1887,32 +1977,6 @@ _buffer: [] }; } - function resolveDebugHalt(response, id) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk || chunks.set(id, (chunk = createPendingChunk(response))); - if ("pending" === chunk.status || "blocked" === chunk.status) - releasePendingChunk(response, chunk), - (response = chunk), - (response.status = "halted"), - (response.value = null), - (response.reason = null); - } - function resolveModel(response, id, model) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk - ? resolveModelChunk(response, chunk, model) - : chunks.set(id, new ReactPromise("resolved_model", model, response)); - } - function resolveText(response, id, text) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk && "pending" !== chunk.status - ? chunk.reason.enqueueValue(text) - : (chunk && releasePendingChunk(response, chunk), - chunks.set(id, new ReactPromise("fulfilled", text, null))); - } function resolveBuffer(response, id, buffer) { var chunks = response._chunks, chunk = chunks.get(id); @@ -1956,15 +2020,39 @@ function resolveStream(response, id, stream, controller) { var chunks = response._chunks, chunk = chunks.get(id); - chunk - ? "pending" === chunk.status && - (releasePendingChunk(response, chunk), - (response = chunk.value), - (chunk.status = "fulfilled"), - (chunk.value = stream), - (chunk.reason = controller), - null !== response && wakeChunk(response, chunk.value)) - : chunks.set(id, new ReactPromise("fulfilled", stream, controller)); + if (!chunk) + chunks.set(id, new ReactPromise("fulfilled", stream, controller)); + else if ("pending" === chunk.status) { + releasePendingChunk(response, chunk); + id = chunk.value; + if (null != chunk._debugChunk) { + chunks = initializingHandler; + initializingHandler = null; + chunk.status = "blocked"; + chunk.value = null; + chunk.reason = null; + try { + if ( + (initializeDebugChunk(response, chunk), + (chunk._debugChunk = null), + null !== initializingHandler && + !initializingHandler.errored && + 0 < initializingHandler.deps) + ) { + initializingHandler.value = stream; + initializingHandler.reason = controller; + initializingHandler.chunk = chunk; + return; + } + } finally { + initializingHandler = chunks; + } + } + chunk.status = "fulfilled"; + chunk.value = stream; + chunk.reason = controller; + null !== id && wakeChunk(id, chunk.value); + } } function startReadableStream(response, id, type) { var controller = null; @@ -1985,7 +2073,7 @@ }, enqueueModel: function (json) { if (null === previousBlockedChunk) { - var chunk = new ReactPromise("resolved_model", json, response); + var chunk = createResolvedModelChunk(response, json); initializeModelChunk(chunk); "fulfilled" === chunk.status ? controller.enqueue(chunk.value) @@ -2147,11 +2235,6 @@ } ); } - function stopStream(response, id, row) { - (response = response._chunks.get(id)) && - "fulfilled" === response.status && - response.reason.close("" === row ? '"$undefined"' : row); - } function resolveErrorDev(response, errorInfo) { var name = errorInfo.name, env = errorInfo.env; @@ -2172,50 +2255,6 @@ response.environmentName = env; return response; } - function resolveHint(response, code, model) { - response = JSON.parse(model, response._fromJSON); - model = ReactDOMSharedInternals.d; - switch (code) { - case "D": - model.D(response); - break; - case "C": - "string" === typeof response - ? model.C(response) - : model.C(response[0], response[1]); - break; - case "L": - code = response[0]; - var as = response[1]; - 3 === response.length - ? model.L(code, as, response[2]) - : model.L(code, as); - break; - case "m": - "string" === typeof response - ? model.m(response) - : model.m(response[0], response[1]); - break; - case "X": - "string" === typeof response - ? model.X(response) - : model.X(response[0], response[1]); - break; - case "S": - "string" === typeof response - ? model.S(response) - : model.S( - response[0], - 0 === response[1] ? void 0 : response[1], - 3 === response.length ? response[2] : void 0 - ); - break; - case "M": - "string" === typeof response - ? model.M(response) - : model.M(response[0], response[1]); - } - } function createFakeFunction( name, filename, @@ -2427,7 +2466,7 @@ (owner.debugLocation = debugInfo.debugStack)); } } - function resolveDebugInfo(response, id, debugInfo) { + function initializeDebugInfo(response, debugInfo) { void 0 !== debugInfo.stack && initializeFakeTask(response, debugInfo); null == debugInfo.owner && null != response._debugRootOwner ? ((debugInfo.owner = response._debugRootOwner), @@ -2436,8 +2475,7 @@ (debugInfo.debugTask = response._debugRootTask)) : void 0 !== debugInfo.stack && initializeFakeStack(response, debugInfo); - response = getChunk(response, id); - (response._debugInfo || (response._debugInfo = [])).push(debugInfo); + return debugInfo; } function getCurrentStackInDEV() { var owner = currentOwnerInDEV; @@ -2494,22 +2532,37 @@ } return JSCompiler_inline_result$jscomp$0; } - function resolveConsoleEntry(response, value) { + function resolveConsoleEntry(response, json) { if (response._replayConsole) { - var payload = JSON.parse(value, response._fromJSON); - value = payload[0]; - var stackTrace = payload[1], - owner = payload[2], - env = payload[3]; - payload = payload.slice(4); - replayConsoleWithCallStackInDEV( - response, - value, - stackTrace, - owner, - env, - payload - ); + var blockedChunk = response._blockedConsole; + if (null == blockedChunk) + (blockedChunk = createResolvedModelChunk(response, json)), + initializeModelChunk(blockedChunk), + "fulfilled" === blockedChunk.status + ? replayConsoleWithCallStackInDEV(response, blockedChunk.value) + : (blockedChunk.then( + function (v) { + return replayConsoleWithCallStackInDEV(response, v); + }, + function () {} + ), + (response._blockedConsole = blockedChunk)); + else { + var _chunk4 = createPendingChunk(response); + _chunk4.then( + function (v) { + return replayConsoleWithCallStackInDEV(response, v); + }, + function () {} + ); + response._blockedConsole = _chunk4; + var unblock = function () { + response._blockedConsole === _chunk4 && + (response._blockedConsole = null); + resolveModelChunk(response, _chunk4, json); + }; + blockedChunk.then(unblock, unblock); + } } } function mergeBuffer(buffer, lastChunk) { @@ -2609,33 +2662,89 @@ resolveModule(response, id, row); break; case 72: - resolveHint(response, row[0], row.slice(1)); + id = row[0]; + row = row.slice(1); + response = JSON.parse(row, response._fromJSON); + row = ReactDOMSharedInternals.d; + switch (id) { + case "D": + row.D(response); + break; + case "C": + "string" === typeof response + ? row.C(response) + : row.C(response[0], response[1]); + break; + case "L": + id = response[0]; + tag = response[1]; + 3 === response.length + ? row.L(id, tag, response[2]) + : row.L(id, tag); + break; + case "m": + "string" === typeof response + ? row.m(response) + : row.m(response[0], response[1]); + break; + case "X": + "string" === typeof response + ? row.X(response) + : row.X(response[0], response[1]); + break; + case "S": + "string" === typeof response + ? row.S(response) + : row.S( + response[0], + 0 === response[1] ? void 0 : response[1], + 3 === response.length ? response[2] : void 0 + ); + break; + case "M": + "string" === typeof response + ? row.M(response) + : row.M(response[0], response[1]); + } break; case 69: + tag = response._chunks; + var chunk = tag.get(id); row = JSON.parse(row); - tag = resolveErrorDev(response, row); - tag.digest = row.digest; - row = response._chunks; - var chunk = row.get(id); + var error = resolveErrorDev(response, row); + error.digest = row.digest; chunk - ? triggerErrorOnChunk(response, chunk, tag) - : row.set(id, new ReactPromise("rejected", null, tag)); + ? triggerErrorOnChunk(response, chunk, error) + : tag.set(id, new ReactPromise("rejected", null, error)); break; case 84: - resolveText(response, id, row); + tag = response._chunks; + (chunk = tag.get(id)) && "pending" !== chunk.status + ? chunk.reason.enqueueValue(row) + : (chunk && releasePendingChunk(response, chunk), + tag.set(id, new ReactPromise("fulfilled", row, null))); break; case 78: case 68: - tag = new ReactPromise("resolved_model", row, response); - initializeModelChunk(tag); - "fulfilled" === tag.status - ? resolveDebugInfo(response, id, tag.value) - : tag.then( - function (v) { - return resolveDebugInfo(response, id, v); - }, - function () {} - ); + id = getChunk(response, id); + "fulfilled" !== id.status && + "rejected" !== id.status && + "halted" !== id.status && + "blocked" !== id.status && + "resolved_module" !== id.status && + ((tag = id._debugChunk), + (chunk = createResolvedModelChunk(response, row)), + (chunk._debugChunk = tag), + (id._debugChunk = chunk), + initializeDebugChunk(response, id), + "blocked" === chunk.status && + void 0 === response._debugChannel && + '"' === row[0] && + "$" === row[1] && + ((row = row.slice(2, row.length - 1).split(":")), + (row = parseInt(row[0], 16)), + "pending" === getChunk(response, row).status && + (id._debugChunk = null))); break; case 74: case 87: @@ -2654,12 +2763,28 @@ startAsyncIterable(response, id, !0); break; case 67: - stopStream(response, id, row); + (response = response._chunks.get(id)) && + "fulfilled" === response.status && + response.reason.close("" === row ? '"$undefined"' : row); break; default: - "" === row - ? resolveDebugHalt(response, id) - : resolveModel(response, id, row); + if ("" === row) { + if ( + ((row = response._chunks), + (tag = row.get(id)) || + row.set(id, (tag = createPendingChunk(response))), + "pending" === tag.status || "blocked" === tag.status) + ) + releasePendingChunk(response, tag), + (response = tag), + (response.status = "halted"), + (response.value = null), + (response.reason = null); + } else + (tag = response._chunks), + (chunk = tag.get(id)) + ? resolveModelChunk(response, chunk, row) + : tag.set(id, createResolvedModelChunk(response, row)); } } function processBinaryChunk(weakResponse, streamState, chunk) { @@ -2802,7 +2927,7 @@ validated = initializingHandler; initializingHandler = validated.parent; if (validated.errored) { - key = new ReactPromise("rejected", null, validated.value); + key = new ReactPromise("rejected", null, validated.reason); initializeElement(response, value); validated = { name: getComponentNameFromType(value.type) || "", @@ -3099,14 +3224,12 @@ ), currentOwnerInDEV = null, replayConsoleWithCallStack = { - react_stack_bottom_frame: function ( - response, - methodName, - stackTrace, - owner, - env, - args - ) { + react_stack_bottom_frame: function (response, payload) { + var methodName = payload[0], + stackTrace = payload[1], + owner = payload[2], + env = payload[3]; + payload = payload.slice(4); var prevStack = ReactSharedInternals.getCurrentStack; ReactSharedInternals.getCurrentStack = getCurrentStackInDEV; currentOwnerInDEV = null === owner ? response._debugRootOwner : owner; @@ -3120,13 +3243,13 @@ case "table": var JSCompiler_inline_result = bind.apply( console[methodName], - [console].concat(args) + [console].concat(payload) ); break a; case "assert": offset = 1; } - var newArgs = args.slice(0); + var newArgs = payload.slice(0); "string" === typeof newArgs[offset] ? newArgs.splice( offset, @@ -3189,10 +3312,10 @@ return hook.checkDCE ? !0 : !1; })({ bundleType: 1, - version: "19.2.0-canary-dffacc7b-20250717", + version: "19.2.0-canary-e9638c33-20250721", rendererPackageName: "react-server-dom-turbopack", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-canary-dffacc7b-20250717", + reconcilerVersion: "19.2.0-canary-e9638c33-20250721", getCurrentComponentInfo: function () { return currentOwnerInDEV; } 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 39a48bfdcf7bf..6501c2f0bc133 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 @@ -705,7 +705,7 @@ function initializeModelChunk(chunk) { (chunk.reason = null), wakeChunk(resolveListeners, value)); if (null !== initializingHandler) { - if (initializingHandler.errored) throw initializingHandler.value; + if (initializingHandler.errored) throw initializingHandler.reason; if (0 < initializingHandler.deps) { initializingHandler.value = value; initializingHandler.chunk = chunk; @@ -822,6 +822,7 @@ function fulfillReference(reference, value) { ((parentObject = key.value), (key.status = "fulfilled"), (key.value = handler.value), + (key.reason = handler.reason), null !== parentObject && wakeChunk(parentObject, handler.value))); } function rejectReference(reference, error) { @@ -829,7 +830,8 @@ function rejectReference(reference, error) { reference = reference.response; handler.errored || ((handler.errored = !0), - (handler.value = error), + (handler.value = null), + (handler.reason = error), (handler = handler.chunk), null !== handler && "blocked" === handler.status && @@ -851,6 +853,7 @@ function waitForReference( parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -895,6 +898,7 @@ function loadServerReference(response, metaData, parentObject, key) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -932,7 +936,8 @@ function loadServerReference(response, metaData, parentObject, key) { function (error) { if (!handler.errored) { handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; var chunk = handler.chunk; null !== chunk && "blocked" === chunk.status && @@ -988,6 +993,7 @@ function getOutlinedModel(response, reference, parentObject, key, map) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -997,11 +1003,13 @@ function getOutlinedModel(response, reference, parentObject, key, map) { return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = value.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = value.reason)) : (initializingHandler = { parent: null, chunk: null, - value: value.reason, + value: null, + reason: value.reason, deps: 0, errored: !0 }), @@ -1023,6 +1031,7 @@ function getOutlinedModel(response, reference, parentObject, key, map) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1032,11 +1041,13 @@ function getOutlinedModel(response, reference, parentObject, key, map) { return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = id.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = id.reason)) : (initializingHandler = { parent: null, chunk: null, - value: id.reason, + value: null, + reason: id.reason, deps: 0, errored: !0 }), @@ -1075,6 +1086,7 @@ function parseModelString(response, parentObject, key, value) { parent: initializingHandler, chunk: null, value: null, + reason: null, deps: 0, errored: !1 }), @@ -1558,13 +1570,14 @@ function processFullBinaryRow(response, id, tag, buffer, chunk) { } break; case 69: - tag = JSON.parse(buffer); - buffer = resolveErrorProd(); - buffer.digest = tag.digest; tag = response._chunks; - (chunk = tag.get(id)) - ? triggerErrorOnChunk(response, chunk, buffer) - : tag.set(id, new ReactPromise("rejected", null, buffer)); + chunk = tag.get(id); + buffer = JSON.parse(buffer); + stringDecoder = resolveErrorProd(); + stringDecoder.digest = buffer.digest; + chunk + ? triggerErrorOnChunk(response, chunk, stringDecoder) + : tag.set(id, new ReactPromise("rejected", null, stringDecoder)); break; case 84: response = response._chunks; @@ -1624,7 +1637,7 @@ function createFromJSONCallback(response) { (initializingHandler = value.parent), value.errored) ) - (key = new ReactPromise("rejected", null, value.value)), + (key = new ReactPromise("rejected", null, value.reason)), (key = createLazyChunkWrapper(key)); else if (0 < value.deps) { var blockedChunk = new ReactPromise("blocked", null, null); 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 926980078b3fd..db774a0f5c0b3 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 @@ -1119,7 +1119,7 @@ this.status = status; this.value = value; this.reason = reason; - this._debugInfo = null; + this._debugInfo = this._debugChunk = null; } function unwrapWeakResponse(weakResponse) { weakResponse = weakResponse.weak.deref(); @@ -1248,13 +1248,30 @@ } } function triggerErrorOnChunk(response, chunk, error) { - "pending" !== chunk.status && "blocked" !== chunk.status - ? chunk.reason.error(error) - : (releasePendingChunk(response, chunk), - (response = chunk.reason), - (chunk.status = "rejected"), - (chunk.reason = error), - null !== response && rejectChunk(response, error)); + if ("pending" !== chunk.status && "blocked" !== chunk.status) + chunk.reason.error(error); + else { + releasePendingChunk(response, chunk); + var listeners = chunk.reason; + if ("pending" === chunk.status && null != chunk._debugChunk) { + var prevHandler = initializingHandler; + initializingHandler = null; + chunk.status = "blocked"; + chunk.value = null; + chunk.reason = null; + try { + initializeDebugChunk(response, chunk), (chunk._debugChunk = null); + } finally { + initializingHandler = prevHandler; + } + } + chunk.status = "rejected"; + chunk.reason = error; + null !== listeners && rejectChunk(listeners, error); + } + } + function createResolvedModelChunk(response, value) { + return new ReactPromise("resolved_model", value, response); } function createResolvedIteratorResultChunk(response, value, done) { return new ReactPromise( @@ -1295,11 +1312,69 @@ var rejectListeners = chunk.reason; chunk.status = "resolved_module"; chunk.value = value; + chunk._debugInfo = null; null !== response && (initializeModuleChunk(chunk), wakeChunkIfInitialized(chunk, response, rejectListeners)); } } + function initializeDebugChunk(response, chunk) { + var debugChunk = chunk._debugChunk; + if (null !== debugChunk) { + var debugInfo = chunk._debugInfo || (chunk._debugInfo = []); + try { + if ("resolved_model" === debugChunk.status) { + for ( + var idx = debugInfo.length, c = debugChunk._debugChunk; + null !== c; + + ) + "fulfilled" !== c.status && idx++, (c = c._debugChunk); + initializeModelChunk(debugChunk); + switch (debugChunk.status) { + case "fulfilled": + debugInfo[idx] = initializeDebugInfo( + response, + debugChunk.value + ); + break; + case "blocked": + case "pending": + waitForReference( + debugChunk, + debugInfo, + "" + idx, + response, + initializeDebugInfo, + [""] + ); + break; + default: + throw debugChunk.reason; + } + } else + switch (debugChunk.status) { + case "fulfilled": + break; + case "blocked": + case "pending": + waitForReference( + debugChunk, + {}, + "", + response, + initializeDebugInfo, + [""] + ); + break; + default: + throw debugChunk.reason; + } + } catch (error) { + triggerErrorOnChunk(response, chunk, error); + } + } + } function initializeModelChunk(chunk) { var prevHandler = initializingHandler; initializingHandler = null; @@ -1308,6 +1383,8 @@ chunk.status = "blocked"; chunk.value = null; chunk.reason = null; + initializeDebugChunk(response, chunk); + chunk._debugChunk = null; try { var value = JSON.parse(resolvedModel, response._fromJSON), resolveListeners = chunk.value; @@ -1316,7 +1393,7 @@ (chunk.reason = null), wakeChunk(resolveListeners, value)); if (null !== initializingHandler) { - if (initializingHandler.errored) throw initializingHandler.value; + if (initializingHandler.errored) throw initializingHandler.reason; if (0 < initializingHandler.deps) { initializingHandler.value = value; initializingHandler.chunk = chunk; @@ -1510,6 +1587,7 @@ ((parentObject = key.value), (key.status = "fulfilled"), (key.value = handler.value), + (key.reason = handler.reason), null !== parentObject && wakeChunk(parentObject, handler.value))); } function rejectReference(reference, error) { @@ -1518,7 +1596,8 @@ if (!handler.errored) { var blockedValue = handler.value; handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; handler = handler.chunk; if (null !== handler && "blocked" === handler.status) { if ( @@ -1564,6 +1643,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1618,6 +1698,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1666,7 +1747,8 @@ if (!handler.errored) { var blockedValue = handler.value; handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; var chunk = handler.chunk; if (null !== chunk && "blocked" === chunk.status) { if ( @@ -1737,6 +1819,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1746,11 +1829,13 @@ return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = value.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = value.reason)) : (initializingHandler = { parent: null, chunk: null, - value: value.reason, + value: null, + reason: value.reason, deps: 0, errored: !0 }), @@ -1793,6 +1878,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1802,11 +1888,13 @@ return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = id.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = id.reason)) : (initializingHandler = { parent: null, chunk: null, - value: id.reason, + value: null, + reason: id.reason, deps: 0, errored: !0 }), @@ -1865,6 +1953,7 @@ parent: initializingHandler, chunk: null, value: null, + reason: null, deps: 0, errored: !1 }), @@ -2088,6 +2177,7 @@ )); this._debugFindSourceMapURL = findSourceMapURL; this._debugChannel = debugChannel; + this._blockedConsole = null; this._replayConsole = replayConsole; this._rootEnvironmentName = environmentName; debugChannel && @@ -2096,32 +2186,6 @@ : debugChannelRegistry.register(this, debugChannel)); this._fromJSON = createFromJSONCallback(this); } - function resolveDebugHalt(response, id) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk || chunks.set(id, (chunk = createPendingChunk(response))); - if ("pending" === chunk.status || "blocked" === chunk.status) - releasePendingChunk(response, chunk), - (response = chunk), - (response.status = "halted"), - (response.value = null), - (response.reason = null); - } - function resolveModel(response, id, model) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk - ? resolveModelChunk(response, chunk, model) - : chunks.set(id, new ReactPromise("resolved_model", model, response)); - } - function resolveText(response, id, text) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk && "pending" !== chunk.status - ? chunk.reason.enqueueValue(text) - : (chunk && releasePendingChunk(response, chunk), - chunks.set(id, new ReactPromise("fulfilled", text, null))); - } function resolveBuffer(response, id, buffer) { var chunks = response._chunks, chunk = chunks.get(id); @@ -2170,15 +2234,39 @@ function resolveStream(response, id, stream, controller) { var chunks = response._chunks, chunk = chunks.get(id); - chunk - ? "pending" === chunk.status && - (releasePendingChunk(response, chunk), - (response = chunk.value), - (chunk.status = "fulfilled"), - (chunk.value = stream), - (chunk.reason = controller), - null !== response && wakeChunk(response, chunk.value)) - : chunks.set(id, new ReactPromise("fulfilled", stream, controller)); + if (!chunk) + chunks.set(id, new ReactPromise("fulfilled", stream, controller)); + else if ("pending" === chunk.status) { + releasePendingChunk(response, chunk); + id = chunk.value; + if (null != chunk._debugChunk) { + chunks = initializingHandler; + initializingHandler = null; + chunk.status = "blocked"; + chunk.value = null; + chunk.reason = null; + try { + if ( + (initializeDebugChunk(response, chunk), + (chunk._debugChunk = null), + null !== initializingHandler && + !initializingHandler.errored && + 0 < initializingHandler.deps) + ) { + initializingHandler.value = stream; + initializingHandler.reason = controller; + initializingHandler.chunk = chunk; + return; + } + } finally { + initializingHandler = chunks; + } + } + chunk.status = "fulfilled"; + chunk.value = stream; + chunk.reason = controller; + null !== id && wakeChunk(id, chunk.value); + } } function startReadableStream(response, id, type) { var controller = null; @@ -2199,7 +2287,7 @@ }, enqueueModel: function (json) { if (null === previousBlockedChunk) { - var chunk = new ReactPromise("resolved_model", json, response); + var chunk = createResolvedModelChunk(response, json); initializeModelChunk(chunk); "fulfilled" === chunk.status ? controller.enqueue(chunk.value) @@ -2361,11 +2449,6 @@ } ); } - function stopStream(response, id, row) { - (response = response._chunks.get(id)) && - "fulfilled" === response.status && - response.reason.close("" === row ? '"$undefined"' : row); - } function resolveErrorDev(response, errorInfo) { var name = errorInfo.name, env = errorInfo.env; @@ -2386,50 +2469,6 @@ response.environmentName = env; return response; } - function resolveHint(response, code, model) { - response = JSON.parse(model, response._fromJSON); - model = ReactDOMSharedInternals.d; - switch (code) { - case "D": - model.D(response); - break; - case "C": - "string" === typeof response - ? model.C(response) - : model.C(response[0], response[1]); - break; - case "L": - code = response[0]; - var as = response[1]; - 3 === response.length - ? model.L(code, as, response[2]) - : model.L(code, as); - break; - case "m": - "string" === typeof response - ? model.m(response) - : model.m(response[0], response[1]); - break; - case "X": - "string" === typeof response - ? model.X(response) - : model.X(response[0], response[1]); - break; - case "S": - "string" === typeof response - ? model.S(response) - : model.S( - response[0], - 0 === response[1] ? void 0 : response[1], - 3 === response.length ? response[2] : void 0 - ); - break; - case "M": - "string" === typeof response - ? model.M(response) - : model.M(response[0], response[1]); - } - } function createFakeFunction( name, filename, @@ -2641,7 +2680,7 @@ (owner.debugLocation = debugInfo.debugStack)); } } - function resolveDebugInfo(response, id, debugInfo) { + function initializeDebugInfo(response, debugInfo) { void 0 !== debugInfo.stack && initializeFakeTask(response, debugInfo); null == debugInfo.owner && null != response._debugRootOwner ? ((debugInfo.owner = response._debugRootOwner), @@ -2650,8 +2689,7 @@ (debugInfo.debugTask = response._debugRootTask)) : void 0 !== debugInfo.stack && initializeFakeStack(response, debugInfo); - response = getChunk(response, id); - (response._debugInfo || (response._debugInfo = [])).push(debugInfo); + return debugInfo; } function getCurrentStackInDEV() { var owner = currentOwnerInDEV; @@ -2708,22 +2746,37 @@ } return JSCompiler_inline_result$jscomp$0; } - function resolveConsoleEntry(response, value) { + function resolveConsoleEntry(response, json) { if (response._replayConsole) { - var payload = JSON.parse(value, response._fromJSON); - value = payload[0]; - var stackTrace = payload[1], - owner = payload[2], - env = payload[3]; - payload = payload.slice(4); - replayConsoleWithCallStackInDEV( - response, - value, - stackTrace, - owner, - env, - payload - ); + var blockedChunk = response._blockedConsole; + if (null == blockedChunk) + (blockedChunk = createResolvedModelChunk(response, json)), + initializeModelChunk(blockedChunk), + "fulfilled" === blockedChunk.status + ? replayConsoleWithCallStackInDEV(response, blockedChunk.value) + : (blockedChunk.then( + function (v) { + return replayConsoleWithCallStackInDEV(response, v); + }, + function () {} + ), + (response._blockedConsole = blockedChunk)); + else { + var _chunk4 = createPendingChunk(response); + _chunk4.then( + function (v) { + return replayConsoleWithCallStackInDEV(response, v); + }, + function () {} + ); + response._blockedConsole = _chunk4; + var unblock = function () { + response._blockedConsole === _chunk4 && + (response._blockedConsole = null); + resolveModelChunk(response, _chunk4, json); + }; + blockedChunk.then(unblock, unblock); + } } } function mergeBuffer(buffer, lastChunk) { @@ -2814,46 +2867,99 @@ i++ ) row += stringDecoder.decode(buffer[i], decoderOptions); - row += stringDecoder.decode(chunk); - processFullStringRow(response, id, tag, row); - } - function processFullStringRow(response, id, tag, row) { + buffer = row += stringDecoder.decode(chunk); switch (tag) { case 73: - resolveModule(response, id, row); + resolveModule(response, id, buffer); break; case 72: - resolveHint(response, row[0], row.slice(1)); + id = buffer[0]; + buffer = buffer.slice(1); + response = JSON.parse(buffer, response._fromJSON); + buffer = ReactDOMSharedInternals.d; + switch (id) { + case "D": + buffer.D(response); + break; + case "C": + "string" === typeof response + ? buffer.C(response) + : buffer.C(response[0], response[1]); + break; + case "L": + id = response[0]; + tag = response[1]; + 3 === response.length + ? buffer.L(id, tag, response[2]) + : buffer.L(id, tag); + break; + case "m": + "string" === typeof response + ? buffer.m(response) + : buffer.m(response[0], response[1]); + break; + case "X": + "string" === typeof response + ? buffer.X(response) + : buffer.X(response[0], response[1]); + break; + case "S": + "string" === typeof response + ? buffer.S(response) + : buffer.S( + response[0], + 0 === response[1] ? void 0 : response[1], + 3 === response.length ? response[2] : void 0 + ); + break; + case "M": + "string" === typeof response + ? buffer.M(response) + : buffer.M(response[0], response[1]); + } break; case 69: - row = JSON.parse(row); - tag = resolveErrorDev(response, row); - tag.digest = row.digest; - row = response._chunks; - var chunk = row.get(id); + tag = response._chunks; + chunk = tag.get(id); + buffer = JSON.parse(buffer); + stringDecoder = resolveErrorDev(response, buffer); + stringDecoder.digest = buffer.digest; chunk - ? triggerErrorOnChunk(response, chunk, tag) - : row.set(id, new ReactPromise("rejected", null, tag)); + ? triggerErrorOnChunk(response, chunk, stringDecoder) + : tag.set(id, new ReactPromise("rejected", null, stringDecoder)); break; case 84: - resolveText(response, id, row); + tag = response._chunks; + (chunk = tag.get(id)) && "pending" !== chunk.status + ? chunk.reason.enqueueValue(buffer) + : (chunk && releasePendingChunk(response, chunk), + tag.set(id, new ReactPromise("fulfilled", buffer, null))); break; case 78: case 68: - tag = new ReactPromise("resolved_model", row, response); - initializeModelChunk(tag); - "fulfilled" === tag.status - ? resolveDebugInfo(response, id, tag.value) - : tag.then( - function (v) { - return resolveDebugInfo(response, id, v); - }, - function () {} - ); + id = getChunk(response, id); + "fulfilled" !== id.status && + "rejected" !== id.status && + "halted" !== id.status && + "blocked" !== id.status && + "resolved_module" !== id.status && + ((tag = id._debugChunk), + (chunk = createResolvedModelChunk(response, buffer)), + (chunk._debugChunk = tag), + (id._debugChunk = chunk), + initializeDebugChunk(response, id), + "blocked" === chunk.status && + void 0 === response._debugChannel && + '"' === buffer[0] && + "$" === buffer[1] && + ((buffer = buffer.slice(2, buffer.length - 1).split(":")), + (buffer = parseInt(buffer[0], 16)), + "pending" === getChunk(response, buffer).status && + (id._debugChunk = null))); break; case 74: case 87: - resolveConsoleEntry(response, row); + resolveConsoleEntry(response, buffer); break; case 82: startReadableStream(response, id, void 0); @@ -2868,12 +2974,28 @@ startAsyncIterable(response, id, !0); break; case 67: - stopStream(response, id, row); + (response = response._chunks.get(id)) && + "fulfilled" === response.status && + response.reason.close("" === buffer ? '"$undefined"' : buffer); break; default: - "" === row - ? resolveDebugHalt(response, id) - : resolveModel(response, id, row); + if ("" === buffer) { + if ( + ((buffer = response._chunks), + (tag = buffer.get(id)) || + buffer.set(id, (tag = createPendingChunk(response))), + "pending" === tag.status || "blocked" === tag.status) + ) + releasePendingChunk(response, tag), + (response = tag), + (response.status = "halted"), + (response.value = null), + (response.reason = null); + } else + (tag = response._chunks), + (chunk = tag.get(id)) + ? resolveModelChunk(response, chunk, buffer) + : tag.set(id, createResolvedModelChunk(response, buffer)); } } function createFromJSONCallback(response) { @@ -2926,7 +3048,7 @@ validated = initializingHandler; initializingHandler = validated.parent; if (validated.errored) { - key = new ReactPromise("rejected", null, validated.value); + key = new ReactPromise("rejected", null, validated.reason); initializeElement(response, value); validated = { name: getComponentNameFromType(value.type) || "", @@ -3192,14 +3314,12 @@ ), currentOwnerInDEV = null, replayConsoleWithCallStack = { - react_stack_bottom_frame: function ( - response, - methodName, - stackTrace, - owner, - env, - args - ) { + react_stack_bottom_frame: function (response, payload) { + var methodName = payload[0], + stackTrace = payload[1], + owner = payload[2], + env = payload[3]; + payload = payload.slice(4); var prevStack = ReactSharedInternals.getCurrentStack; ReactSharedInternals.getCurrentStack = getCurrentStackInDEV; currentOwnerInDEV = null === owner ? response._debugRootOwner : owner; @@ -3213,13 +3333,13 @@ case "table": var JSCompiler_inline_result = bind$1.apply( console[methodName], - [console].concat(args) + [console].concat(payload) ); break a; case "assert": offset = 1; } - var newArgs = args.slice(0); + var newArgs = payload.slice(0); "string" === typeof newArgs[offset] ? newArgs.splice( offset, 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 c07741527fdfd..b2bdd9cdc43ab 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 @@ -875,7 +875,7 @@ function initializeModelChunk(chunk) { (chunk.reason = null), wakeChunk(resolveListeners, value)); if (null !== initializingHandler) { - if (initializingHandler.errored) throw initializingHandler.value; + if (initializingHandler.errored) throw initializingHandler.reason; if (0 < initializingHandler.deps) { initializingHandler.value = value; initializingHandler.chunk = chunk; @@ -992,6 +992,7 @@ function fulfillReference(reference, value) { ((parentObject = key.value), (key.status = "fulfilled"), (key.value = handler.value), + (key.reason = handler.reason), null !== parentObject && wakeChunk(parentObject, handler.value))); } function rejectReference(reference, error) { @@ -999,7 +1000,8 @@ function rejectReference(reference, error) { reference = reference.response; handler.errored || ((handler.errored = !0), - (handler.value = error), + (handler.value = null), + (handler.reason = error), (handler = handler.chunk), null !== handler && "blocked" === handler.status && @@ -1021,6 +1023,7 @@ function waitForReference( parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1074,6 +1077,7 @@ function loadServerReference(response, metaData, parentObject, key) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1116,7 +1120,8 @@ function loadServerReference(response, metaData, parentObject, key) { function (error) { if (!handler.errored) { handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; var chunk = handler.chunk; null !== chunk && "blocked" === chunk.status && @@ -1172,6 +1177,7 @@ function getOutlinedModel(response, reference, parentObject, key, map) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1181,11 +1187,13 @@ function getOutlinedModel(response, reference, parentObject, key, map) { return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = value.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = value.reason)) : (initializingHandler = { parent: null, chunk: null, - value: value.reason, + value: null, + reason: value.reason, deps: 0, errored: !0 }), @@ -1207,6 +1215,7 @@ function getOutlinedModel(response, reference, parentObject, key, map) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1216,11 +1225,13 @@ function getOutlinedModel(response, reference, parentObject, key, map) { return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = id.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = id.reason)) : (initializingHandler = { parent: null, chunk: null, - value: id.reason, + value: null, + reason: id.reason, deps: 0, errored: !0 }), @@ -1259,6 +1270,7 @@ function parseModelString(response, parentObject, key, value) { parent: initializingHandler, chunk: null, value: null, + reason: null, deps: 0, errored: !1 }), @@ -1747,13 +1759,14 @@ function processFullBinaryRow(response, id, tag, buffer, chunk) { } break; case 69: - tag = JSON.parse(buffer); - buffer = resolveErrorProd(); - buffer.digest = tag.digest; tag = response._chunks; - (chunk = tag.get(id)) - ? triggerErrorOnChunk(response, chunk, buffer) - : tag.set(id, new ReactPromise("rejected", null, buffer)); + chunk = tag.get(id); + buffer = JSON.parse(buffer); + stringDecoder = resolveErrorProd(); + stringDecoder.digest = buffer.digest; + chunk + ? triggerErrorOnChunk(response, chunk, stringDecoder) + : tag.set(id, new ReactPromise("rejected", null, stringDecoder)); break; case 84: response = response._chunks; @@ -1813,7 +1826,7 @@ function createFromJSONCallback(response) { (initializingHandler = value.parent), value.errored) ) - (key = new ReactPromise("rejected", null, value.value)), + (key = new ReactPromise("rejected", null, value.reason)), (key = createLazyChunkWrapper(key)); else if (0 < value.deps) { var blockedChunk = new ReactPromise("blocked", null, null); 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 68d7c21e6595e..3d6d8f675b66f 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 @@ -1119,7 +1119,7 @@ this.status = status; this.value = value; this.reason = reason; - this._debugInfo = null; + this._debugInfo = this._debugChunk = null; } function unwrapWeakResponse(weakResponse) { weakResponse = weakResponse.weak.deref(); @@ -1248,13 +1248,30 @@ } } function triggerErrorOnChunk(response, chunk, error) { - "pending" !== chunk.status && "blocked" !== chunk.status - ? chunk.reason.error(error) - : (releasePendingChunk(response, chunk), - (response = chunk.reason), - (chunk.status = "rejected"), - (chunk.reason = error), - null !== response && rejectChunk(response, error)); + if ("pending" !== chunk.status && "blocked" !== chunk.status) + chunk.reason.error(error); + else { + releasePendingChunk(response, chunk); + var listeners = chunk.reason; + if ("pending" === chunk.status && null != chunk._debugChunk) { + var prevHandler = initializingHandler; + initializingHandler = null; + chunk.status = "blocked"; + chunk.value = null; + chunk.reason = null; + try { + initializeDebugChunk(response, chunk), (chunk._debugChunk = null); + } finally { + initializingHandler = prevHandler; + } + } + chunk.status = "rejected"; + chunk.reason = error; + null !== listeners && rejectChunk(listeners, error); + } + } + function createResolvedModelChunk(response, value) { + return new ReactPromise("resolved_model", value, response); } function createResolvedIteratorResultChunk(response, value, done) { return new ReactPromise( @@ -1295,11 +1312,69 @@ var rejectListeners = chunk.reason; chunk.status = "resolved_module"; chunk.value = value; + chunk._debugInfo = null; null !== response && (initializeModuleChunk(chunk), wakeChunkIfInitialized(chunk, response, rejectListeners)); } } + function initializeDebugChunk(response, chunk) { + var debugChunk = chunk._debugChunk; + if (null !== debugChunk) { + var debugInfo = chunk._debugInfo || (chunk._debugInfo = []); + try { + if ("resolved_model" === debugChunk.status) { + for ( + var idx = debugInfo.length, c = debugChunk._debugChunk; + null !== c; + + ) + "fulfilled" !== c.status && idx++, (c = c._debugChunk); + initializeModelChunk(debugChunk); + switch (debugChunk.status) { + case "fulfilled": + debugInfo[idx] = initializeDebugInfo( + response, + debugChunk.value + ); + break; + case "blocked": + case "pending": + waitForReference( + debugChunk, + debugInfo, + "" + idx, + response, + initializeDebugInfo, + [""] + ); + break; + default: + throw debugChunk.reason; + } + } else + switch (debugChunk.status) { + case "fulfilled": + break; + case "blocked": + case "pending": + waitForReference( + debugChunk, + {}, + "", + response, + initializeDebugInfo, + [""] + ); + break; + default: + throw debugChunk.reason; + } + } catch (error) { + triggerErrorOnChunk(response, chunk, error); + } + } + } function initializeModelChunk(chunk) { var prevHandler = initializingHandler; initializingHandler = null; @@ -1308,6 +1383,8 @@ chunk.status = "blocked"; chunk.value = null; chunk.reason = null; + initializeDebugChunk(response, chunk); + chunk._debugChunk = null; try { var value = JSON.parse(resolvedModel, response._fromJSON), resolveListeners = chunk.value; @@ -1316,7 +1393,7 @@ (chunk.reason = null), wakeChunk(resolveListeners, value)); if (null !== initializingHandler) { - if (initializingHandler.errored) throw initializingHandler.value; + if (initializingHandler.errored) throw initializingHandler.reason; if (0 < initializingHandler.deps) { initializingHandler.value = value; initializingHandler.chunk = chunk; @@ -1510,6 +1587,7 @@ ((parentObject = key.value), (key.status = "fulfilled"), (key.value = handler.value), + (key.reason = handler.reason), null !== parentObject && wakeChunk(parentObject, handler.value))); } function rejectReference(reference, error) { @@ -1518,7 +1596,8 @@ if (!handler.errored) { var blockedValue = handler.value; handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; handler = handler.chunk; if (null !== handler && "blocked" === handler.status) { if ( @@ -1564,6 +1643,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1618,6 +1698,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1666,7 +1747,8 @@ if (!handler.errored) { var blockedValue = handler.value; handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; var chunk = handler.chunk; if (null !== chunk && "blocked" === chunk.status) { if ( @@ -1737,6 +1819,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1746,11 +1829,13 @@ return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = value.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = value.reason)) : (initializingHandler = { parent: null, chunk: null, - value: value.reason, + value: null, + reason: value.reason, deps: 0, errored: !0 }), @@ -1793,6 +1878,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1802,11 +1888,13 @@ return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = id.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = id.reason)) : (initializingHandler = { parent: null, chunk: null, - value: id.reason, + value: null, + reason: id.reason, deps: 0, errored: !0 }), @@ -1865,6 +1953,7 @@ parent: initializingHandler, chunk: null, value: null, + reason: null, deps: 0, errored: !1 }), @@ -2088,6 +2177,7 @@ )); this._debugFindSourceMapURL = findSourceMapURL; this._debugChannel = debugChannel; + this._blockedConsole = null; this._replayConsole = replayConsole; this._rootEnvironmentName = environmentName; debugChannel && @@ -2105,32 +2195,6 @@ _buffer: [] }; } - function resolveDebugHalt(response, id) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk || chunks.set(id, (chunk = createPendingChunk(response))); - if ("pending" === chunk.status || "blocked" === chunk.status) - releasePendingChunk(response, chunk), - (response = chunk), - (response.status = "halted"), - (response.value = null), - (response.reason = null); - } - function resolveModel(response, id, model) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk - ? resolveModelChunk(response, chunk, model) - : chunks.set(id, new ReactPromise("resolved_model", model, response)); - } - function resolveText(response, id, text) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk && "pending" !== chunk.status - ? chunk.reason.enqueueValue(text) - : (chunk && releasePendingChunk(response, chunk), - chunks.set(id, new ReactPromise("fulfilled", text, null))); - } function resolveBuffer(response, id, buffer) { var chunks = response._chunks, chunk = chunks.get(id); @@ -2179,15 +2243,39 @@ function resolveStream(response, id, stream, controller) { var chunks = response._chunks, chunk = chunks.get(id); - chunk - ? "pending" === chunk.status && - (releasePendingChunk(response, chunk), - (response = chunk.value), - (chunk.status = "fulfilled"), - (chunk.value = stream), - (chunk.reason = controller), - null !== response && wakeChunk(response, chunk.value)) - : chunks.set(id, new ReactPromise("fulfilled", stream, controller)); + if (!chunk) + chunks.set(id, new ReactPromise("fulfilled", stream, controller)); + else if ("pending" === chunk.status) { + releasePendingChunk(response, chunk); + id = chunk.value; + if (null != chunk._debugChunk) { + chunks = initializingHandler; + initializingHandler = null; + chunk.status = "blocked"; + chunk.value = null; + chunk.reason = null; + try { + if ( + (initializeDebugChunk(response, chunk), + (chunk._debugChunk = null), + null !== initializingHandler && + !initializingHandler.errored && + 0 < initializingHandler.deps) + ) { + initializingHandler.value = stream; + initializingHandler.reason = controller; + initializingHandler.chunk = chunk; + return; + } + } finally { + initializingHandler = chunks; + } + } + chunk.status = "fulfilled"; + chunk.value = stream; + chunk.reason = controller; + null !== id && wakeChunk(id, chunk.value); + } } function startReadableStream(response, id, type) { var controller = null; @@ -2208,7 +2296,7 @@ }, enqueueModel: function (json) { if (null === previousBlockedChunk) { - var chunk = new ReactPromise("resolved_model", json, response); + var chunk = createResolvedModelChunk(response, json); initializeModelChunk(chunk); "fulfilled" === chunk.status ? controller.enqueue(chunk.value) @@ -2370,11 +2458,6 @@ } ); } - function stopStream(response, id, row) { - (response = response._chunks.get(id)) && - "fulfilled" === response.status && - response.reason.close("" === row ? '"$undefined"' : row); - } function resolveErrorDev(response, errorInfo) { var name = errorInfo.name, env = errorInfo.env; @@ -2395,50 +2478,6 @@ response.environmentName = env; return response; } - function resolveHint(response, code, model) { - response = JSON.parse(model, response._fromJSON); - model = ReactDOMSharedInternals.d; - switch (code) { - case "D": - model.D(response); - break; - case "C": - "string" === typeof response - ? model.C(response) - : model.C(response[0], response[1]); - break; - case "L": - code = response[0]; - var as = response[1]; - 3 === response.length - ? model.L(code, as, response[2]) - : model.L(code, as); - break; - case "m": - "string" === typeof response - ? model.m(response) - : model.m(response[0], response[1]); - break; - case "X": - "string" === typeof response - ? model.X(response) - : model.X(response[0], response[1]); - break; - case "S": - "string" === typeof response - ? model.S(response) - : model.S( - response[0], - 0 === response[1] ? void 0 : response[1], - 3 === response.length ? response[2] : void 0 - ); - break; - case "M": - "string" === typeof response - ? model.M(response) - : model.M(response[0], response[1]); - } - } function createFakeFunction( name, filename, @@ -2650,7 +2689,7 @@ (owner.debugLocation = debugInfo.debugStack)); } } - function resolveDebugInfo(response, id, debugInfo) { + function initializeDebugInfo(response, debugInfo) { void 0 !== debugInfo.stack && initializeFakeTask(response, debugInfo); null == debugInfo.owner && null != response._debugRootOwner ? ((debugInfo.owner = response._debugRootOwner), @@ -2659,8 +2698,7 @@ (debugInfo.debugTask = response._debugRootTask)) : void 0 !== debugInfo.stack && initializeFakeStack(response, debugInfo); - response = getChunk(response, id); - (response._debugInfo || (response._debugInfo = [])).push(debugInfo); + return debugInfo; } function getCurrentStackInDEV() { var owner = currentOwnerInDEV; @@ -2717,22 +2755,37 @@ } return JSCompiler_inline_result$jscomp$0; } - function resolveConsoleEntry(response, value) { + function resolveConsoleEntry(response, json) { if (response._replayConsole) { - var payload = JSON.parse(value, response._fromJSON); - value = payload[0]; - var stackTrace = payload[1], - owner = payload[2], - env = payload[3]; - payload = payload.slice(4); - replayConsoleWithCallStackInDEV( - response, - value, - stackTrace, - owner, - env, - payload - ); + var blockedChunk = response._blockedConsole; + if (null == blockedChunk) + (blockedChunk = createResolvedModelChunk(response, json)), + initializeModelChunk(blockedChunk), + "fulfilled" === blockedChunk.status + ? replayConsoleWithCallStackInDEV(response, blockedChunk.value) + : (blockedChunk.then( + function (v) { + return replayConsoleWithCallStackInDEV(response, v); + }, + function () {} + ), + (response._blockedConsole = blockedChunk)); + else { + var _chunk4 = createPendingChunk(response); + _chunk4.then( + function (v) { + return replayConsoleWithCallStackInDEV(response, v); + }, + function () {} + ); + response._blockedConsole = _chunk4; + var unblock = function () { + response._blockedConsole === _chunk4 && + (response._blockedConsole = null); + resolveModelChunk(response, _chunk4, json); + }; + blockedChunk.then(unblock, unblock); + } } } function mergeBuffer(buffer, lastChunk) { @@ -2832,33 +2885,89 @@ resolveModule(response, id, row); break; case 72: - resolveHint(response, row[0], row.slice(1)); + id = row[0]; + row = row.slice(1); + response = JSON.parse(row, response._fromJSON); + row = ReactDOMSharedInternals.d; + switch (id) { + case "D": + row.D(response); + break; + case "C": + "string" === typeof response + ? row.C(response) + : row.C(response[0], response[1]); + break; + case "L": + id = response[0]; + tag = response[1]; + 3 === response.length + ? row.L(id, tag, response[2]) + : row.L(id, tag); + break; + case "m": + "string" === typeof response + ? row.m(response) + : row.m(response[0], response[1]); + break; + case "X": + "string" === typeof response + ? row.X(response) + : row.X(response[0], response[1]); + break; + case "S": + "string" === typeof response + ? row.S(response) + : row.S( + response[0], + 0 === response[1] ? void 0 : response[1], + 3 === response.length ? response[2] : void 0 + ); + break; + case "M": + "string" === typeof response + ? row.M(response) + : row.M(response[0], response[1]); + } break; case 69: + tag = response._chunks; + var chunk = tag.get(id); row = JSON.parse(row); - tag = resolveErrorDev(response, row); - tag.digest = row.digest; - row = response._chunks; - var chunk = row.get(id); + var error = resolveErrorDev(response, row); + error.digest = row.digest; chunk - ? triggerErrorOnChunk(response, chunk, tag) - : row.set(id, new ReactPromise("rejected", null, tag)); + ? triggerErrorOnChunk(response, chunk, error) + : tag.set(id, new ReactPromise("rejected", null, error)); break; case 84: - resolveText(response, id, row); + tag = response._chunks; + (chunk = tag.get(id)) && "pending" !== chunk.status + ? chunk.reason.enqueueValue(row) + : (chunk && releasePendingChunk(response, chunk), + tag.set(id, new ReactPromise("fulfilled", row, null))); break; case 78: case 68: - tag = new ReactPromise("resolved_model", row, response); - initializeModelChunk(tag); - "fulfilled" === tag.status - ? resolveDebugInfo(response, id, tag.value) - : tag.then( - function (v) { - return resolveDebugInfo(response, id, v); - }, - function () {} - ); + id = getChunk(response, id); + "fulfilled" !== id.status && + "rejected" !== id.status && + "halted" !== id.status && + "blocked" !== id.status && + "resolved_module" !== id.status && + ((tag = id._debugChunk), + (chunk = createResolvedModelChunk(response, row)), + (chunk._debugChunk = tag), + (id._debugChunk = chunk), + initializeDebugChunk(response, id), + "blocked" === chunk.status && + void 0 === response._debugChannel && + '"' === row[0] && + "$" === row[1] && + ((row = row.slice(2, row.length - 1).split(":")), + (row = parseInt(row[0], 16)), + "pending" === getChunk(response, row).status && + (id._debugChunk = null))); break; case 74: case 87: @@ -2877,12 +2986,28 @@ startAsyncIterable(response, id, !0); break; case 67: - stopStream(response, id, row); + (response = response._chunks.get(id)) && + "fulfilled" === response.status && + response.reason.close("" === row ? '"$undefined"' : row); break; default: - "" === row - ? resolveDebugHalt(response, id) - : resolveModel(response, id, row); + if ("" === row) { + if ( + ((row = response._chunks), + (tag = row.get(id)) || + row.set(id, (tag = createPendingChunk(response))), + "pending" === tag.status || "blocked" === tag.status) + ) + releasePendingChunk(response, tag), + (response = tag), + (response.status = "halted"), + (response.value = null), + (response.reason = null); + } else + (tag = response._chunks), + (chunk = tag.get(id)) + ? resolveModelChunk(response, chunk, row) + : tag.set(id, createResolvedModelChunk(response, row)); } } function processBinaryChunk(weakResponse, streamState, chunk) { @@ -3025,7 +3150,7 @@ validated = initializingHandler; initializingHandler = validated.parent; if (validated.errored) { - key = new ReactPromise("rejected", null, validated.value); + key = new ReactPromise("rejected", null, validated.reason); initializeElement(response, value); validated = { name: getComponentNameFromType(value.type) || "", @@ -3202,14 +3327,12 @@ ), currentOwnerInDEV = null, replayConsoleWithCallStack = { - react_stack_bottom_frame: function ( - response, - methodName, - stackTrace, - owner, - env, - args - ) { + react_stack_bottom_frame: function (response, payload) { + var methodName = payload[0], + stackTrace = payload[1], + owner = payload[2], + env = payload[3]; + payload = payload.slice(4); var prevStack = ReactSharedInternals.getCurrentStack; ReactSharedInternals.getCurrentStack = getCurrentStackInDEV; currentOwnerInDEV = null === owner ? response._debugRootOwner : owner; @@ -3223,13 +3346,13 @@ case "table": var JSCompiler_inline_result = bind$1.apply( console[methodName], - [console].concat(args) + [console].concat(payload) ); break a; case "assert": offset = 1; } - var newArgs = args.slice(0); + var newArgs = payload.slice(0); "string" === typeof newArgs[offset] ? newArgs.splice( offset, 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 d0e7ee8d58dbb..5d521d967dd50 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 @@ -876,7 +876,7 @@ function initializeModelChunk(chunk) { (chunk.reason = null), wakeChunk(resolveListeners, value)); if (null !== initializingHandler) { - if (initializingHandler.errored) throw initializingHandler.value; + if (initializingHandler.errored) throw initializingHandler.reason; if (0 < initializingHandler.deps) { initializingHandler.value = value; initializingHandler.chunk = chunk; @@ -993,6 +993,7 @@ function fulfillReference(reference, value) { ((parentObject = key.value), (key.status = "fulfilled"), (key.value = handler.value), + (key.reason = handler.reason), null !== parentObject && wakeChunk(parentObject, handler.value))); } function rejectReference(reference, error) { @@ -1000,7 +1001,8 @@ function rejectReference(reference, error) { reference = reference.response; handler.errored || ((handler.errored = !0), - (handler.value = error), + (handler.value = null), + (handler.reason = error), (handler = handler.chunk), null !== handler && "blocked" === handler.status && @@ -1022,6 +1024,7 @@ function waitForReference( parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1075,6 +1078,7 @@ function loadServerReference(response, metaData, parentObject, key) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1117,7 +1121,8 @@ function loadServerReference(response, metaData, parentObject, key) { function (error) { if (!handler.errored) { handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; var chunk = handler.chunk; null !== chunk && "blocked" === chunk.status && @@ -1173,6 +1178,7 @@ function getOutlinedModel(response, reference, parentObject, key, map) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1182,11 +1188,13 @@ function getOutlinedModel(response, reference, parentObject, key, map) { return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = value.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = value.reason)) : (initializingHandler = { parent: null, chunk: null, - value: value.reason, + value: null, + reason: value.reason, deps: 0, errored: !0 }), @@ -1208,6 +1216,7 @@ function getOutlinedModel(response, reference, parentObject, key, map) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1217,11 +1226,13 @@ function getOutlinedModel(response, reference, parentObject, key, map) { return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = id.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = id.reason)) : (initializingHandler = { parent: null, chunk: null, - value: id.reason, + value: null, + reason: id.reason, deps: 0, errored: !0 }), @@ -1260,6 +1271,7 @@ function parseModelString(response, parentObject, key, value) { parent: initializingHandler, chunk: null, value: null, + reason: null, deps: 0, errored: !1 }), @@ -1752,14 +1764,14 @@ function processFullStringRow(response, id, tag, row) { } break; case 69: - tag = JSON.parse(row); - row = resolveErrorProd(); - row.digest = tag.digest; tag = response._chunks; var chunk = tag.get(id); + row = JSON.parse(row); + var error = resolveErrorProd(); + error.digest = row.digest; chunk - ? triggerErrorOnChunk(response, chunk, row) - : tag.set(id, new ReactPromise("rejected", null, row)); + ? triggerErrorOnChunk(response, chunk, error) + : tag.set(id, new ReactPromise("rejected", null, error)); break; case 84: response = response._chunks; @@ -1897,7 +1909,7 @@ function createFromJSONCallback(response) { (initializingHandler = value.parent), value.errored) ) - (key = new ReactPromise("rejected", null, value.value)), + (key = new ReactPromise("rejected", null, value.reason)), (key = createLazyChunkWrapper(key)); else if (0 < value.deps) { var blockedChunk = new ReactPromise("blocked", null, null); 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 eb3b6561a589e..9f67cb04520a1 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 @@ -1241,11 +1241,12 @@ task.debugStack, task.debugTask ); + (task = iterable._debugInfo) && + forwardDebugInfo(request, streamTask, task); request.pendingChunks++; - task = streamTask.id.toString(16) + ":" + (isIterator ? "x" : "X") + "\n"; - request.completedRegularChunks.push(stringToChunk(task)); - (iterable = iterable._debugInfo) && - forwardDebugInfo(request, streamTask, iterable); + isIterator = + streamTask.id.toString(16) + ":" + (isIterator ? "x" : "X") + "\n"; + request.completedRegularChunks.push(stringToChunk(isIterator)); request.cacheController.signal.addEventListener("abort", abortIterable); callIteratorInDEV(iterator, progress, error); return serializeByValueID(streamTask.id); 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 3f0e11882633a..000e2b3d695b3 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 @@ -1253,11 +1253,12 @@ task.debugStack, task.debugTask ); + (task = iterable._debugInfo) && + forwardDebugInfo(request, streamTask, task); request.pendingChunks++; - task = streamTask.id.toString(16) + ":" + (isIterator ? "x" : "X") + "\n"; - request.completedRegularChunks.push(stringToChunk(task)); - (iterable = iterable._debugInfo) && - forwardDebugInfo(request, streamTask, iterable); + isIterator = + streamTask.id.toString(16) + ":" + (isIterator ? "x" : "X") + "\n"; + request.completedRegularChunks.push(stringToChunk(isIterator)); request.cacheController.signal.addEventListener("abort", abortIterable); callIteratorInDEV(iterator, progress, error); return serializeByValueID(streamTask.id); 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 cb95170dcd9c5..a26d272670925 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 @@ -1273,11 +1273,12 @@ task.debugStack, task.debugTask ); + (task = iterable._debugInfo) && + forwardDebugInfo(request, streamTask, task); request.pendingChunks++; - task = streamTask.id.toString(16) + ":" + (isIterator ? "x" : "X") + "\n"; - request.completedRegularChunks.push(task); - (iterable = iterable._debugInfo) && - forwardDebugInfo(request, streamTask, iterable); + isIterator = + streamTask.id.toString(16) + ":" + (isIterator ? "x" : "X") + "\n"; + request.completedRegularChunks.push(isIterator); request.cacheController.signal.addEventListener("abort", abortIterable); callIteratorInDEV(iterator, progress, error); return serializeByValueID(streamTask.id); 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 7c78ebb8b807a..b3ee9dedd06d3 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack/package.json +++ b/packages/next/src/compiled/react-server-dom-turbopack/package.json @@ -48,7 +48,7 @@ "neo-async": "^2.6.1" }, "peerDependencies": { - "react": "19.2.0-canary-dffacc7b-20250717", - "react-dom": "19.2.0-canary-dffacc7b-20250717" + "react": "19.2.0-canary-e9638c33-20250721", + "react-dom": "19.2.0-canary-e9638c33-20250721" } } \ 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 a1c26b2c38782..95c892fbd2023 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 @@ -1367,7 +1367,7 @@ this.value = value; this.reason = reason; this._children = []; - this._debugInfo = null; + this._debugInfo = this._debugChunk = null; } function unwrapWeakResponse(weakResponse) { weakResponse = weakResponse.weak.deref(); @@ -1499,13 +1499,33 @@ } } function triggerErrorOnChunk(response, chunk, error) { - "pending" !== chunk.status && "blocked" !== chunk.status - ? chunk.reason.error(error) - : (releasePendingChunk(response, chunk), - (response = chunk.reason), - (chunk.status = "rejected"), - (chunk.reason = error), - null !== response && rejectChunk(response, error)); + if ("pending" !== chunk.status && "blocked" !== chunk.status) + chunk.reason.error(error); + else { + releasePendingChunk(response, chunk); + var listeners = chunk.reason; + if ("pending" === chunk.status && null != chunk._debugChunk) { + var prevHandler = initializingHandler, + prevChunk = initializingChunk; + initializingHandler = null; + chunk.status = "blocked"; + chunk.value = null; + chunk.reason = null; + initializingChunk = chunk; + try { + initializeDebugChunk(response, chunk), (chunk._debugChunk = null); + } finally { + (initializingHandler = prevHandler), + (initializingChunk = prevChunk); + } + } + chunk.status = "rejected"; + chunk.reason = error; + null !== listeners && rejectChunk(listeners, error); + } + } + function createResolvedModelChunk(response, value) { + return new ReactPromise("resolved_model", value, response); } function createResolvedIteratorResultChunk(response, value, done) { return new ReactPromise( @@ -1546,11 +1566,69 @@ var rejectListeners = chunk.reason; chunk.status = "resolved_module"; chunk.value = value; + chunk._debugInfo = null; null !== response && (initializeModuleChunk(chunk), wakeChunkIfInitialized(chunk, response, rejectListeners)); } } + function initializeDebugChunk(response, chunk) { + var debugChunk = chunk._debugChunk; + if (null !== debugChunk) { + var debugInfo = chunk._debugInfo || (chunk._debugInfo = []); + try { + if ("resolved_model" === debugChunk.status) { + for ( + var idx = debugInfo.length, c = debugChunk._debugChunk; + null !== c; + + ) + "fulfilled" !== c.status && idx++, (c = c._debugChunk); + initializeModelChunk(debugChunk); + switch (debugChunk.status) { + case "fulfilled": + debugInfo[idx] = initializeDebugInfo( + response, + debugChunk.value + ); + break; + case "blocked": + case "pending": + waitForReference( + debugChunk, + debugInfo, + "" + idx, + response, + initializeDebugInfo, + [""] + ); + break; + default: + throw debugChunk.reason; + } + } else + switch (debugChunk.status) { + case "fulfilled": + break; + case "blocked": + case "pending": + waitForReference( + debugChunk, + {}, + "", + response, + initializeDebugInfo, + [""] + ); + break; + default: + throw debugChunk.reason; + } + } catch (error) { + triggerErrorOnChunk(response, chunk, error); + } + } + } function initializeModelChunk(chunk) { var prevHandler = initializingHandler, prevChunk = initializingChunk; @@ -1561,6 +1639,8 @@ chunk.value = null; chunk.reason = null; initializingChunk = chunk; + initializeDebugChunk(response, chunk); + chunk._debugChunk = null; try { var value = JSON.parse(resolvedModel, response._fromJSON), resolveListeners = chunk.value; @@ -1569,7 +1649,7 @@ (chunk.reason = null), wakeChunk(resolveListeners, value)); if (null !== initializingHandler) { - if (initializingHandler.errored) throw initializingHandler.value; + if (initializingHandler.errored) throw initializingHandler.reason; if (0 < initializingHandler.deps) { initializingHandler.value = value; initializingHandler.chunk = chunk; @@ -1763,6 +1843,7 @@ ((parentObject = key.value), (key.status = "fulfilled"), (key.value = handler.value), + (key.reason = handler.reason), null !== parentObject && wakeChunk(parentObject, handler.value))); } function rejectReference(reference, error) { @@ -1771,7 +1852,8 @@ if (!handler.errored) { var blockedValue = handler.value; handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; handler = handler.chunk; if (null !== handler && "blocked" === handler.status) { if ( @@ -1817,6 +1899,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1866,6 +1949,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1913,7 +1997,8 @@ if (!handler.errored) { var blockedValue = handler.value; handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; var chunk = handler.chunk; if (null !== chunk && "blocked" === chunk.status) { if ( @@ -1987,6 +2072,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1996,11 +2082,13 @@ return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = value.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = value.reason)) : (initializingHandler = { parent: null, chunk: null, - value: value.reason, + value: null, + reason: value.reason, deps: 0, errored: !0 }), @@ -2043,6 +2131,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -2052,11 +2141,13 @@ return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = id.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = id.reason)) : (initializingHandler = { parent: null, chunk: null, - value: id.reason, + value: null, + reason: id.reason, deps: 0, errored: !0 }), @@ -2115,6 +2206,7 @@ parent: initializingHandler, chunk: null, value: null, + reason: null, deps: 0, errored: !1 }), @@ -2347,6 +2439,7 @@ )); this._debugFindSourceMapURL = findSourceMapURL; this._debugChannel = debugChannel; + this._blockedConsole = null; this._replayConsole = replayConsole; this._rootEnvironmentName = environmentName; debugChannel && @@ -2365,32 +2458,6 @@ _buffer: [] }; } - function resolveDebugHalt(response, id) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk || chunks.set(id, (chunk = createPendingChunk(response))); - if ("pending" === chunk.status || "blocked" === chunk.status) - releasePendingChunk(response, chunk), - (response = chunk), - (response.status = "halted"), - (response.value = null), - (response.reason = null); - } - function resolveModel(response, id, model) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk - ? resolveModelChunk(response, chunk, model) - : chunks.set(id, new ReactPromise("resolved_model", model, response)); - } - function resolveText(response, id, text) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk && "pending" !== chunk.status - ? chunk.reason.enqueueValue(text) - : (chunk && releasePendingChunk(response, chunk), - chunks.set(id, new ReactPromise("fulfilled", text, null))); - } function resolveBuffer(response, id, buffer) { var chunks = response._chunks, chunk = chunks.get(id); @@ -2434,15 +2501,41 @@ function resolveStream(response, id, stream, controller) { var chunks = response._chunks, chunk = chunks.get(id); - chunk - ? "pending" === chunk.status && - (releasePendingChunk(response, chunk), - (response = chunk.value), - (chunk.status = "fulfilled"), - (chunk.value = stream), - (chunk.reason = controller), - null !== response && wakeChunk(response, chunk.value)) - : chunks.set(id, new ReactPromise("fulfilled", stream, controller)); + if (!chunk) + chunks.set(id, new ReactPromise("fulfilled", stream, controller)); + else if ("pending" === chunk.status) { + releasePendingChunk(response, chunk); + id = chunk.value; + if (null != chunk._debugChunk) { + chunks = initializingHandler; + var prevChunk = initializingChunk; + initializingHandler = null; + chunk.status = "blocked"; + chunk.value = null; + chunk.reason = null; + initializingChunk = chunk; + try { + if ( + (initializeDebugChunk(response, chunk), + (chunk._debugChunk = null), + null !== initializingHandler && + !initializingHandler.errored && + 0 < initializingHandler.deps) + ) { + initializingHandler.value = stream; + initializingHandler.reason = controller; + initializingHandler.chunk = chunk; + return; + } + } finally { + (initializingHandler = chunks), (initializingChunk = prevChunk); + } + } + chunk.status = "fulfilled"; + chunk.value = stream; + chunk.reason = controller; + null !== id && wakeChunk(id, chunk.value); + } } function startReadableStream(response, id, type) { var controller = null; @@ -2463,7 +2556,7 @@ }, enqueueModel: function (json) { if (null === previousBlockedChunk) { - var chunk = new ReactPromise("resolved_model", json, response); + var chunk = createResolvedModelChunk(response, json); initializeModelChunk(chunk); "fulfilled" === chunk.status ? controller.enqueue(chunk.value) @@ -2625,11 +2718,6 @@ } ); } - function stopStream(response, id, row) { - (response = response._chunks.get(id)) && - "fulfilled" === response.status && - response.reason.close("" === row ? '"$undefined"' : row); - } function resolveErrorDev(response, errorInfo) { var name = errorInfo.name, env = errorInfo.env; @@ -2650,66 +2738,6 @@ response.environmentName = env; return response; } - function resolvePostponeDev(response, id, reason, stack, env) { - reason = buildFakeCallStack( - response, - stack, - env, - !1, - Error.bind(null, reason || "") - ); - stack = response._debugRootTask; - reason = null != stack ? stack.run(reason) : reason(); - reason.$$typeof = REACT_POSTPONE_TYPE; - stack = response._chunks; - (env = stack.get(id)) - ? triggerErrorOnChunk(response, env, reason) - : stack.set(id, createErrorChunk(response, reason)); - } - function resolveHint(response, code, model) { - response = JSON.parse(model, response._fromJSON); - model = ReactDOMSharedInternals.d; - switch (code) { - case "D": - model.D(response); - break; - case "C": - "string" === typeof response - ? model.C(response) - : model.C(response[0], response[1]); - break; - case "L": - code = response[0]; - var as = response[1]; - 3 === response.length - ? model.L(code, as, response[2]) - : model.L(code, as); - break; - case "m": - "string" === typeof response - ? model.m(response) - : model.m(response[0], response[1]); - break; - case "X": - "string" === typeof response - ? model.X(response) - : model.X(response[0], response[1]); - break; - case "S": - "string" === typeof response - ? model.S(response) - : model.S( - response[0], - 0 === response[1] ? void 0 : response[1], - 3 === response.length ? response[2] : void 0 - ); - break; - case "M": - "string" === typeof response - ? model.M(response) - : model.M(response[0], response[1]); - } - } function createFakeFunction( name, filename, @@ -2921,7 +2949,7 @@ (owner.debugLocation = debugInfo.debugStack)); } } - function resolveDebugInfo(response, id, debugInfo) { + function initializeDebugInfo(response, debugInfo) { void 0 !== debugInfo.stack && initializeFakeTask(response, debugInfo); if (null == debugInfo.owner && null != response._debugRootOwner) { var _componentInfoOrAsyncInfo = debugInfo; @@ -2933,8 +2961,7 @@ void 0 !== debugInfo.stack && initializeFakeStack(response, debugInfo); "number" === typeof debugInfo.time && (debugInfo = { time: debugInfo.time + response._timeOrigin }); - response = getChunk(response, id); - (response._debugInfo || (response._debugInfo = [])).push(debugInfo); + return debugInfo; } function getCurrentStackInDEV() { var owner = currentOwnerInDEV; @@ -2991,22 +3018,37 @@ } return JSCompiler_inline_result$jscomp$0; } - function resolveConsoleEntry(response, value) { + function resolveConsoleEntry(response, json) { if (response._replayConsole) { - var payload = JSON.parse(value, response._fromJSON); - value = payload[0]; - var stackTrace = payload[1], - owner = payload[2], - env = payload[3]; - payload = payload.slice(4); - replayConsoleWithCallStackInDEV( - response, - value, - stackTrace, - owner, - env, - payload - ); + var blockedChunk = response._blockedConsole; + if (null == blockedChunk) + (blockedChunk = createResolvedModelChunk(response, json)), + initializeModelChunk(blockedChunk), + "fulfilled" === blockedChunk.status + ? replayConsoleWithCallStackInDEV(response, blockedChunk.value) + : (blockedChunk.then( + function (v) { + return replayConsoleWithCallStackInDEV(response, v); + }, + function () {} + ), + (response._blockedConsole = blockedChunk)); + else { + var _chunk4 = createPendingChunk(response); + _chunk4.then( + function (v) { + return replayConsoleWithCallStackInDEV(response, v); + }, + function () {} + ); + response._blockedConsole = _chunk4; + var unblock = function () { + response._blockedConsole === _chunk4 && + (response._blockedConsole = null); + resolveModelChunk(response, _chunk4, json); + }; + blockedChunk.then(unblock, unblock); + } } } function initializeIOInfo(response, ioInfo) { @@ -3041,7 +3083,7 @@ chunk ? (resolveModelChunk(response, chunk, model), "resolved_model" === chunk.status && initializeModelChunk(chunk)) - : ((chunk = new ReactPromise("resolved_model", model, response)), + : ((chunk = createResolvedModelChunk(response, model)), chunks.set(id, chunk), initializeModelChunk(chunk)); "fulfilled" === chunk.status @@ -3674,35 +3716,91 @@ resolveModule(response, id, row); break; case 72: - resolveHint(response, row[0], row.slice(1)); + id = row[0]; + row = row.slice(1); + response = JSON.parse(row, response._fromJSON); + row = ReactDOMSharedInternals.d; + switch (id) { + case "D": + row.D(response); + break; + case "C": + "string" === typeof response + ? row.C(response) + : row.C(response[0], response[1]); + break; + case "L": + id = response[0]; + tag = response[1]; + 3 === response.length + ? row.L(id, tag, response[2]) + : row.L(id, tag); + break; + case "m": + "string" === typeof response + ? row.m(response) + : row.m(response[0], response[1]); + break; + case "X": + "string" === typeof response + ? row.X(response) + : row.X(response[0], response[1]); + break; + case "S": + "string" === typeof response + ? row.S(response) + : row.S( + response[0], + 0 === response[1] ? void 0 : response[1], + 3 === response.length ? response[2] : void 0 + ); + break; + case "M": + "string" === typeof response + ? row.M(response) + : row.M(response[0], response[1]); + } break; case 69: + tag = response._chunks; + var chunk = tag.get(id); row = JSON.parse(row); - tag = resolveErrorDev(response, row); - tag.digest = row.digest; - row = response._chunks; - var chunk = row.get(id); + var error = resolveErrorDev(response, row); + error.digest = row.digest; chunk - ? triggerErrorOnChunk(response, chunk, tag) - : row.set(id, createErrorChunk(response, tag)); + ? triggerErrorOnChunk(response, chunk, error) + : tag.set(id, createErrorChunk(response, error)); break; case 84: - resolveText(response, id, row); + tag = response._chunks; + (chunk = tag.get(id)) && "pending" !== chunk.status + ? chunk.reason.enqueueValue(row) + : (chunk && releasePendingChunk(response, chunk), + tag.set(id, new ReactPromise("fulfilled", row, null))); break; case 78: response._timeOrigin = +row - performance.timeOrigin; break; case 68: - tag = new ReactPromise("resolved_model", row, response); - initializeModelChunk(tag); - "fulfilled" === tag.status - ? resolveDebugInfo(response, id, tag.value) - : tag.then( - function (v) { - return resolveDebugInfo(response, id, v); - }, - function () {} - ); + id = getChunk(response, id); + "fulfilled" !== id.status && + "rejected" !== id.status && + "halted" !== id.status && + "blocked" !== id.status && + "resolved_module" !== id.status && + ((tag = id._debugChunk), + (chunk = createResolvedModelChunk(response, row)), + (chunk._debugChunk = tag), + (id._debugChunk = chunk), + initializeDebugChunk(response, id), + "blocked" === chunk.status && + void 0 === response._debugChannel && + '"' === row[0] && + "$" === row[1] && + ((row = row.slice(2, row.length - 1).split(":")), + (row = parseInt(row[0], 16)), + "pending" === getChunk(response, row).status && + (id._debugChunk = null))); break; case 74: resolveIOInfo(response, id, row); @@ -3723,16 +3821,45 @@ startAsyncIterable(response, id, !0); break; case 67: - stopStream(response, id, row); + (response = response._chunks.get(id)) && + "fulfilled" === response.status && + response.reason.close("" === row ? '"$undefined"' : row); break; case 80: - tag = JSON.parse(row); - resolvePostponeDev(response, id, tag.reason, tag.stack, tag.env); + row = JSON.parse(row); + row = buildFakeCallStack( + response, + row.stack, + row.env, + !1, + Error.bind(null, row.reason || "") + ); + tag = response._debugRootTask; + row = null != tag ? tag.run(row) : row(); + row.$$typeof = REACT_POSTPONE_TYPE; + tag = response._chunks; + (chunk = tag.get(id)) + ? triggerErrorOnChunk(response, chunk, row) + : tag.set(id, createErrorChunk(response, row)); break; default: - "" === row - ? resolveDebugHalt(response, id) - : resolveModel(response, id, row); + if ("" === row) { + if ( + ((row = response._chunks), + (tag = row.get(id)) || + row.set(id, (tag = createPendingChunk(response))), + "pending" === tag.status || "blocked" === tag.status) + ) + releasePendingChunk(response, tag), + (response = tag), + (response.status = "halted"), + (response.value = null), + (response.reason = null); + } else + (tag = response._chunks), + (chunk = tag.get(id)) + ? resolveModelChunk(response, chunk, row) + : tag.set(id, createResolvedModelChunk(response, row)); } } function processBinaryChunk(weakResponse, streamState, chunk) { @@ -3875,7 +4002,7 @@ validated = initializingHandler; initializingHandler = validated.parent; if (validated.errored) { - key = createErrorChunk(response, validated.value); + key = createErrorChunk(response, validated.reason); initializeElement(response, value); validated = { name: getComponentNameFromType(value.type) || "", @@ -4206,14 +4333,12 @@ ), currentOwnerInDEV = null, replayConsoleWithCallStack = { - react_stack_bottom_frame: function ( - response, - methodName, - stackTrace, - owner, - env, - args - ) { + react_stack_bottom_frame: function (response, payload) { + var methodName = payload[0], + stackTrace = payload[1], + owner = payload[2], + env = payload[3]; + payload = payload.slice(4); var prevStack = ReactSharedInternals.getCurrentStack; ReactSharedInternals.getCurrentStack = getCurrentStackInDEV; currentOwnerInDEV = null === owner ? response._debugRootOwner : owner; @@ -4227,13 +4352,13 @@ case "table": var JSCompiler_inline_result = bind.apply( console[methodName], - [console].concat(args) + [console].concat(payload) ); break a; case "assert": offset = 1; } - var newArgs = args.slice(0); + var newArgs = payload.slice(0); "string" === typeof newArgs[offset] ? newArgs.splice( offset, @@ -4296,10 +4421,10 @@ return hook.checkDCE ? !0 : !1; })({ bundleType: 1, - version: "19.2.0-experimental-dffacc7b-20250717", + version: "19.2.0-experimental-e9638c33-20250721", rendererPackageName: "react-server-dom-webpack", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-experimental-dffacc7b-20250717", + reconcilerVersion: "19.2.0-experimental-e9638c33-20250721", getCurrentComponentInfo: function () { return currentOwnerInDEV; } 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 0ff0c37df1f30..2f2c2536dd384 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 @@ -722,7 +722,7 @@ function initializeModelChunk(chunk) { (chunk.reason = null), wakeChunk(resolveListeners, value)); if (null !== initializingHandler) { - if (initializingHandler.errored) throw initializingHandler.value; + if (initializingHandler.errored) throw initializingHandler.reason; if (0 < initializingHandler.deps) { initializingHandler.value = value; initializingHandler.chunk = chunk; @@ -839,6 +839,7 @@ function fulfillReference(reference, value) { ((parentObject = key.value), (key.status = "fulfilled"), (key.value = handler.value), + (key.reason = handler.reason), null !== parentObject && wakeChunk(parentObject, handler.value))); } function rejectReference(reference, error) { @@ -846,7 +847,8 @@ function rejectReference(reference, error) { reference = reference.response; handler.errored || ((handler.errored = !0), - (handler.value = error), + (handler.value = null), + (handler.reason = error), (handler = handler.chunk), null !== handler && "blocked" === handler.status && @@ -868,6 +870,7 @@ function waitForReference( parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -912,6 +915,7 @@ function loadServerReference(response, metaData, parentObject, key) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -949,7 +953,8 @@ function loadServerReference(response, metaData, parentObject, key) { function (error) { if (!handler.errored) { handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; var chunk = handler.chunk; null !== chunk && "blocked" === chunk.status && @@ -1005,6 +1010,7 @@ function getOutlinedModel(response, reference, parentObject, key, map) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1014,11 +1020,13 @@ function getOutlinedModel(response, reference, parentObject, key, map) { return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = value.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = value.reason)) : (initializingHandler = { parent: null, chunk: null, - value: value.reason, + value: null, + reason: value.reason, deps: 0, errored: !0 }), @@ -1040,6 +1048,7 @@ function getOutlinedModel(response, reference, parentObject, key, map) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1049,11 +1058,13 @@ function getOutlinedModel(response, reference, parentObject, key, map) { return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = id.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = id.reason)) : (initializingHandler = { parent: null, chunk: null, - value: id.reason, + value: null, + reason: id.reason, deps: 0, errored: !0 }), @@ -1092,6 +1103,7 @@ function parseModelString(response, parentObject, key, value) { parent: initializingHandler, chunk: null, value: null, + reason: null, deps: 0, errored: !1 }), @@ -1575,13 +1587,14 @@ function processFullBinaryRow(response, id, tag, buffer, chunk) { } break; case 69: - tag = JSON.parse(buffer); - buffer = resolveErrorProd(); - buffer.digest = tag.digest; tag = response._chunks; - (chunk = tag.get(id)) - ? triggerErrorOnChunk(response, chunk, buffer) - : tag.set(id, createErrorChunk(response, buffer)); + chunk = tag.get(id); + buffer = JSON.parse(buffer); + stringDecoder = resolveErrorProd(); + stringDecoder.digest = buffer.digest; + chunk + ? triggerErrorOnChunk(response, chunk, stringDecoder) + : tag.set(id, createErrorChunk(response, stringDecoder)); break; case 84: response = response._chunks; @@ -1652,7 +1665,7 @@ function createFromJSONCallback(response) { (initializingHandler = value.parent), value.errored) ) - (key = createErrorChunk(response, value.value)), + (key = createErrorChunk(response, value.reason)), (key = createLazyChunkWrapper(key)); else if (0 < value.deps) { var blockedChunk = new ReactPromise("blocked", null, null); 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 6259be009f890..e37529ccd060c 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 @@ -1575,7 +1575,7 @@ this.value = value; this.reason = reason; this._children = []; - this._debugInfo = null; + this._debugInfo = this._debugChunk = null; } function unwrapWeakResponse(weakResponse) { weakResponse = weakResponse.weak.deref(); @@ -1707,13 +1707,33 @@ } } function triggerErrorOnChunk(response, chunk, error) { - "pending" !== chunk.status && "blocked" !== chunk.status - ? chunk.reason.error(error) - : (releasePendingChunk(response, chunk), - (response = chunk.reason), - (chunk.status = "rejected"), - (chunk.reason = error), - null !== response && rejectChunk(response, error)); + if ("pending" !== chunk.status && "blocked" !== chunk.status) + chunk.reason.error(error); + else { + releasePendingChunk(response, chunk); + var listeners = chunk.reason; + if ("pending" === chunk.status && null != chunk._debugChunk) { + var prevHandler = initializingHandler, + prevChunk = initializingChunk; + initializingHandler = null; + chunk.status = "blocked"; + chunk.value = null; + chunk.reason = null; + initializingChunk = chunk; + try { + initializeDebugChunk(response, chunk), (chunk._debugChunk = null); + } finally { + (initializingHandler = prevHandler), + (initializingChunk = prevChunk); + } + } + chunk.status = "rejected"; + chunk.reason = error; + null !== listeners && rejectChunk(listeners, error); + } + } + function createResolvedModelChunk(response, value) { + return new ReactPromise("resolved_model", value, response); } function createResolvedIteratorResultChunk(response, value, done) { return new ReactPromise( @@ -1754,11 +1774,69 @@ var rejectListeners = chunk.reason; chunk.status = "resolved_module"; chunk.value = value; + chunk._debugInfo = null; null !== response && (initializeModuleChunk(chunk), wakeChunkIfInitialized(chunk, response, rejectListeners)); } } + function initializeDebugChunk(response, chunk) { + var debugChunk = chunk._debugChunk; + if (null !== debugChunk) { + var debugInfo = chunk._debugInfo || (chunk._debugInfo = []); + try { + if ("resolved_model" === debugChunk.status) { + for ( + var idx = debugInfo.length, c = debugChunk._debugChunk; + null !== c; + + ) + "fulfilled" !== c.status && idx++, (c = c._debugChunk); + initializeModelChunk(debugChunk); + switch (debugChunk.status) { + case "fulfilled": + debugInfo[idx] = initializeDebugInfo( + response, + debugChunk.value + ); + break; + case "blocked": + case "pending": + waitForReference( + debugChunk, + debugInfo, + "" + idx, + response, + initializeDebugInfo, + [""] + ); + break; + default: + throw debugChunk.reason; + } + } else + switch (debugChunk.status) { + case "fulfilled": + break; + case "blocked": + case "pending": + waitForReference( + debugChunk, + {}, + "", + response, + initializeDebugInfo, + [""] + ); + break; + default: + throw debugChunk.reason; + } + } catch (error) { + triggerErrorOnChunk(response, chunk, error); + } + } + } function initializeModelChunk(chunk) { var prevHandler = initializingHandler, prevChunk = initializingChunk; @@ -1769,6 +1847,8 @@ chunk.value = null; chunk.reason = null; initializingChunk = chunk; + initializeDebugChunk(response, chunk); + chunk._debugChunk = null; try { var value = JSON.parse(resolvedModel, response._fromJSON), resolveListeners = chunk.value; @@ -1777,7 +1857,7 @@ (chunk.reason = null), wakeChunk(resolveListeners, value)); if (null !== initializingHandler) { - if (initializingHandler.errored) throw initializingHandler.value; + if (initializingHandler.errored) throw initializingHandler.reason; if (0 < initializingHandler.deps) { initializingHandler.value = value; initializingHandler.chunk = chunk; @@ -1971,6 +2051,7 @@ ((parentObject = key.value), (key.status = "fulfilled"), (key.value = handler.value), + (key.reason = handler.reason), null !== parentObject && wakeChunk(parentObject, handler.value))); } function rejectReference(reference, error) { @@ -1979,7 +2060,8 @@ if (!handler.errored) { var blockedValue = handler.value; handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; handler = handler.chunk; if (null !== handler && "blocked" === handler.status) { if ( @@ -2025,6 +2107,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -2079,6 +2162,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -2127,7 +2211,8 @@ if (!handler.errored) { var blockedValue = handler.value; handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; var chunk = handler.chunk; if (null !== chunk && "blocked" === chunk.status) { if ( @@ -2201,6 +2286,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -2210,11 +2296,13 @@ return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = value.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = value.reason)) : (initializingHandler = { parent: null, chunk: null, - value: value.reason, + value: null, + reason: value.reason, deps: 0, errored: !0 }), @@ -2257,6 +2345,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -2266,11 +2355,13 @@ return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = id.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = id.reason)) : (initializingHandler = { parent: null, chunk: null, - value: id.reason, + value: null, + reason: id.reason, deps: 0, errored: !0 }), @@ -2329,6 +2420,7 @@ parent: initializingHandler, chunk: null, value: null, + reason: null, deps: 0, errored: !1 }), @@ -2561,6 +2653,7 @@ )); this._debugFindSourceMapURL = findSourceMapURL; this._debugChannel = debugChannel; + this._blockedConsole = null; this._replayConsole = replayConsole; this._rootEnvironmentName = environmentName; debugChannel && @@ -2570,32 +2663,6 @@ replayConsole && markAllTracksInOrder(); this._fromJSON = createFromJSONCallback(this); } - function resolveDebugHalt(response, id) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk || chunks.set(id, (chunk = createPendingChunk(response))); - if ("pending" === chunk.status || "blocked" === chunk.status) - releasePendingChunk(response, chunk), - (response = chunk), - (response.status = "halted"), - (response.value = null), - (response.reason = null); - } - function resolveModel(response, id, model) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk - ? resolveModelChunk(response, chunk, model) - : chunks.set(id, new ReactPromise("resolved_model", model, response)); - } - function resolveText(response, id, text) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk && "pending" !== chunk.status - ? chunk.reason.enqueueValue(text) - : (chunk && releasePendingChunk(response, chunk), - chunks.set(id, new ReactPromise("fulfilled", text, null))); - } function resolveBuffer(response, id, buffer) { var chunks = response._chunks, chunk = chunks.get(id); @@ -2644,15 +2711,41 @@ function resolveStream(response, id, stream, controller) { var chunks = response._chunks, chunk = chunks.get(id); - chunk - ? "pending" === chunk.status && - (releasePendingChunk(response, chunk), - (response = chunk.value), - (chunk.status = "fulfilled"), - (chunk.value = stream), - (chunk.reason = controller), - null !== response && wakeChunk(response, chunk.value)) - : chunks.set(id, new ReactPromise("fulfilled", stream, controller)); + if (!chunk) + chunks.set(id, new ReactPromise("fulfilled", stream, controller)); + else if ("pending" === chunk.status) { + releasePendingChunk(response, chunk); + id = chunk.value; + if (null != chunk._debugChunk) { + chunks = initializingHandler; + var prevChunk = initializingChunk; + initializingHandler = null; + chunk.status = "blocked"; + chunk.value = null; + chunk.reason = null; + initializingChunk = chunk; + try { + if ( + (initializeDebugChunk(response, chunk), + (chunk._debugChunk = null), + null !== initializingHandler && + !initializingHandler.errored && + 0 < initializingHandler.deps) + ) { + initializingHandler.value = stream; + initializingHandler.reason = controller; + initializingHandler.chunk = chunk; + return; + } + } finally { + (initializingHandler = chunks), (initializingChunk = prevChunk); + } + } + chunk.status = "fulfilled"; + chunk.value = stream; + chunk.reason = controller; + null !== id && wakeChunk(id, chunk.value); + } } function startReadableStream(response, id, type) { var controller = null; @@ -2673,7 +2766,7 @@ }, enqueueModel: function (json) { if (null === previousBlockedChunk) { - var chunk = new ReactPromise("resolved_model", json, response); + var chunk = createResolvedModelChunk(response, json); initializeModelChunk(chunk); "fulfilled" === chunk.status ? controller.enqueue(chunk.value) @@ -2835,11 +2928,6 @@ } ); } - function stopStream(response, id, row) { - (response = response._chunks.get(id)) && - "fulfilled" === response.status && - response.reason.close("" === row ? '"$undefined"' : row); - } function resolveErrorDev(response, errorInfo) { var name = errorInfo.name, env = errorInfo.env; @@ -2860,66 +2948,6 @@ response.environmentName = env; return response; } - function resolvePostponeDev(response, id, reason, stack, env) { - reason = buildFakeCallStack( - response, - stack, - env, - !1, - Error.bind(null, reason || "") - ); - stack = response._debugRootTask; - reason = null != stack ? stack.run(reason) : reason(); - reason.$$typeof = REACT_POSTPONE_TYPE; - stack = response._chunks; - (env = stack.get(id)) - ? triggerErrorOnChunk(response, env, reason) - : stack.set(id, createErrorChunk(response, reason)); - } - function resolveHint(response, code, model) { - response = JSON.parse(model, response._fromJSON); - model = ReactDOMSharedInternals.d; - switch (code) { - case "D": - model.D(response); - break; - case "C": - "string" === typeof response - ? model.C(response) - : model.C(response[0], response[1]); - break; - case "L": - code = response[0]; - var as = response[1]; - 3 === response.length - ? model.L(code, as, response[2]) - : model.L(code, as); - break; - case "m": - "string" === typeof response - ? model.m(response) - : model.m(response[0], response[1]); - break; - case "X": - "string" === typeof response - ? model.X(response) - : model.X(response[0], response[1]); - break; - case "S": - "string" === typeof response - ? model.S(response) - : model.S( - response[0], - 0 === response[1] ? void 0 : response[1], - 3 === response.length ? response[2] : void 0 - ); - break; - case "M": - "string" === typeof response - ? model.M(response) - : model.M(response[0], response[1]); - } - } function createFakeFunction( name, filename, @@ -3131,7 +3159,7 @@ (owner.debugLocation = debugInfo.debugStack)); } } - function resolveDebugInfo(response, id, debugInfo) { + function initializeDebugInfo(response, debugInfo) { void 0 !== debugInfo.stack && initializeFakeTask(response, debugInfo); if (null == debugInfo.owner && null != response._debugRootOwner) { var _componentInfoOrAsyncInfo = debugInfo; @@ -3143,8 +3171,7 @@ void 0 !== debugInfo.stack && initializeFakeStack(response, debugInfo); "number" === typeof debugInfo.time && (debugInfo = { time: debugInfo.time + response._timeOrigin }); - response = getChunk(response, id); - (response._debugInfo || (response._debugInfo = [])).push(debugInfo); + return debugInfo; } function getCurrentStackInDEV() { var owner = currentOwnerInDEV; @@ -3201,22 +3228,37 @@ } return JSCompiler_inline_result$jscomp$0; } - function resolveConsoleEntry(response, value) { + function resolveConsoleEntry(response, json) { if (response._replayConsole) { - var payload = JSON.parse(value, response._fromJSON); - value = payload[0]; - var stackTrace = payload[1], - owner = payload[2], - env = payload[3]; - payload = payload.slice(4); - replayConsoleWithCallStackInDEV( - response, - value, - stackTrace, - owner, - env, - payload - ); + var blockedChunk = response._blockedConsole; + if (null == blockedChunk) + (blockedChunk = createResolvedModelChunk(response, json)), + initializeModelChunk(blockedChunk), + "fulfilled" === blockedChunk.status + ? replayConsoleWithCallStackInDEV(response, blockedChunk.value) + : (blockedChunk.then( + function (v) { + return replayConsoleWithCallStackInDEV(response, v); + }, + function () {} + ), + (response._blockedConsole = blockedChunk)); + else { + var _chunk4 = createPendingChunk(response); + _chunk4.then( + function (v) { + return replayConsoleWithCallStackInDEV(response, v); + }, + function () {} + ); + response._blockedConsole = _chunk4; + var unblock = function () { + response._blockedConsole === _chunk4 && + (response._blockedConsole = null); + resolveModelChunk(response, _chunk4, json); + }; + blockedChunk.then(unblock, unblock); + } } } function initializeIOInfo(response, ioInfo) { @@ -3251,7 +3293,7 @@ chunk ? (resolveModelChunk(response, chunk, model), "resolved_model" === chunk.status && initializeModelChunk(chunk)) - : ((chunk = new ReactPromise("resolved_model", model, response)), + : ((chunk = createResolvedModelChunk(response, model)), chunks.set(id, chunk), initializeModelChunk(chunk)); "fulfilled" === chunk.status @@ -3875,50 +3917,103 @@ i++ ) row += stringDecoder.decode(buffer[i], decoderOptions); - row += stringDecoder.decode(chunk); - processFullStringRow(response, id, tag, row); - } - function processFullStringRow(response, id, tag, row) { + buffer = row += stringDecoder.decode(chunk); switch (tag) { case 73: - resolveModule(response, id, row); + resolveModule(response, id, buffer); break; case 72: - resolveHint(response, row[0], row.slice(1)); + id = buffer[0]; + buffer = buffer.slice(1); + response = JSON.parse(buffer, response._fromJSON); + buffer = ReactDOMSharedInternals.d; + switch (id) { + case "D": + buffer.D(response); + break; + case "C": + "string" === typeof response + ? buffer.C(response) + : buffer.C(response[0], response[1]); + break; + case "L": + id = response[0]; + tag = response[1]; + 3 === response.length + ? buffer.L(id, tag, response[2]) + : buffer.L(id, tag); + break; + case "m": + "string" === typeof response + ? buffer.m(response) + : buffer.m(response[0], response[1]); + break; + case "X": + "string" === typeof response + ? buffer.X(response) + : buffer.X(response[0], response[1]); + break; + case "S": + "string" === typeof response + ? buffer.S(response) + : buffer.S( + response[0], + 0 === response[1] ? void 0 : response[1], + 3 === response.length ? response[2] : void 0 + ); + break; + case "M": + "string" === typeof response + ? buffer.M(response) + : buffer.M(response[0], response[1]); + } break; case 69: - row = JSON.parse(row); - tag = resolveErrorDev(response, row); - tag.digest = row.digest; - row = response._chunks; - var chunk = row.get(id); + tag = response._chunks; + chunk = tag.get(id); + buffer = JSON.parse(buffer); + stringDecoder = resolveErrorDev(response, buffer); + stringDecoder.digest = buffer.digest; chunk - ? triggerErrorOnChunk(response, chunk, tag) - : row.set(id, createErrorChunk(response, tag)); + ? triggerErrorOnChunk(response, chunk, stringDecoder) + : tag.set(id, createErrorChunk(response, stringDecoder)); break; case 84: - resolveText(response, id, row); + tag = response._chunks; + (chunk = tag.get(id)) && "pending" !== chunk.status + ? chunk.reason.enqueueValue(buffer) + : (chunk && releasePendingChunk(response, chunk), + tag.set(id, new ReactPromise("fulfilled", buffer, null))); break; case 78: - response._timeOrigin = +row - performance.timeOrigin; + response._timeOrigin = +buffer - performance.timeOrigin; break; case 68: - tag = new ReactPromise("resolved_model", row, response); - initializeModelChunk(tag); - "fulfilled" === tag.status - ? resolveDebugInfo(response, id, tag.value) - : tag.then( - function (v) { - return resolveDebugInfo(response, id, v); - }, - function () {} - ); + id = getChunk(response, id); + "fulfilled" !== id.status && + "rejected" !== id.status && + "halted" !== id.status && + "blocked" !== id.status && + "resolved_module" !== id.status && + ((tag = id._debugChunk), + (chunk = createResolvedModelChunk(response, buffer)), + (chunk._debugChunk = tag), + (id._debugChunk = chunk), + initializeDebugChunk(response, id), + "blocked" === chunk.status && + void 0 === response._debugChannel && + '"' === buffer[0] && + "$" === buffer[1] && + ((buffer = buffer.slice(2, buffer.length - 1).split(":")), + (buffer = parseInt(buffer[0], 16)), + "pending" === getChunk(response, buffer).status && + (id._debugChunk = null))); break; case 74: - resolveIOInfo(response, id, row); + resolveIOInfo(response, id, buffer); break; case 87: - resolveConsoleEntry(response, row); + resolveConsoleEntry(response, buffer); break; case 82: startReadableStream(response, id, void 0); @@ -3933,16 +4028,45 @@ startAsyncIterable(response, id, !0); break; case 67: - stopStream(response, id, row); + (response = response._chunks.get(id)) && + "fulfilled" === response.status && + response.reason.close("" === buffer ? '"$undefined"' : buffer); break; case 80: - tag = JSON.parse(row); - resolvePostponeDev(response, id, tag.reason, tag.stack, tag.env); + buffer = JSON.parse(buffer); + buffer = buildFakeCallStack( + response, + buffer.stack, + buffer.env, + !1, + Error.bind(null, buffer.reason || "") + ); + tag = response._debugRootTask; + buffer = null != tag ? tag.run(buffer) : buffer(); + buffer.$$typeof = REACT_POSTPONE_TYPE; + tag = response._chunks; + (chunk = tag.get(id)) + ? triggerErrorOnChunk(response, chunk, buffer) + : tag.set(id, createErrorChunk(response, buffer)); break; default: - "" === row - ? resolveDebugHalt(response, id) - : resolveModel(response, id, row); + if ("" === buffer) { + if ( + ((buffer = response._chunks), + (tag = buffer.get(id)) || + buffer.set(id, (tag = createPendingChunk(response))), + "pending" === tag.status || "blocked" === tag.status) + ) + releasePendingChunk(response, tag), + (response = tag), + (response.status = "halted"), + (response.value = null), + (response.reason = null); + } else + (tag = response._chunks), + (chunk = tag.get(id)) + ? resolveModelChunk(response, chunk, buffer) + : tag.set(id, createResolvedModelChunk(response, buffer)); } } function createFromJSONCallback(response) { @@ -3995,7 +4119,7 @@ validated = initializingHandler; initializingHandler = validated.parent; if (validated.errored) { - key = createErrorChunk(response, validated.value); + key = createErrorChunk(response, validated.reason); initializeElement(response, value); validated = { name: getComponentNameFromType(value.type) || "", @@ -4287,14 +4411,12 @@ ), currentOwnerInDEV = null, replayConsoleWithCallStack = { - react_stack_bottom_frame: function ( - response, - methodName, - stackTrace, - owner, - env, - args - ) { + react_stack_bottom_frame: function (response, payload) { + var methodName = payload[0], + stackTrace = payload[1], + owner = payload[2], + env = payload[3]; + payload = payload.slice(4); var prevStack = ReactSharedInternals.getCurrentStack; ReactSharedInternals.getCurrentStack = getCurrentStackInDEV; currentOwnerInDEV = null === owner ? response._debugRootOwner : owner; @@ -4308,13 +4430,13 @@ case "table": var JSCompiler_inline_result = bind$1.apply( console[methodName], - [console].concat(args) + [console].concat(payload) ); break a; case "assert": offset = 1; } - var newArgs = args.slice(0); + var newArgs = payload.slice(0); "string" === typeof newArgs[offset] ? newArgs.splice( offset, 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 e77e20b8d990a..b6af0052e0825 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 @@ -883,7 +883,7 @@ function initializeModelChunk(chunk) { (chunk.reason = null), wakeChunk(resolveListeners, value)); if (null !== initializingHandler) { - if (initializingHandler.errored) throw initializingHandler.value; + if (initializingHandler.errored) throw initializingHandler.reason; if (0 < initializingHandler.deps) { initializingHandler.value = value; initializingHandler.chunk = chunk; @@ -1000,6 +1000,7 @@ function fulfillReference(reference, value) { ((parentObject = key.value), (key.status = "fulfilled"), (key.value = handler.value), + (key.reason = handler.reason), null !== parentObject && wakeChunk(parentObject, handler.value))); } function rejectReference(reference, error) { @@ -1007,7 +1008,8 @@ function rejectReference(reference, error) { reference = reference.response; handler.errored || ((handler.errored = !0), - (handler.value = error), + (handler.value = null), + (handler.reason = error), (handler = handler.chunk), null !== handler && "blocked" === handler.status && @@ -1029,6 +1031,7 @@ function waitForReference( parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1082,6 +1085,7 @@ function loadServerReference(response, metaData, parentObject, key) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1124,7 +1128,8 @@ function loadServerReference(response, metaData, parentObject, key) { function (error) { if (!handler.errored) { handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; var chunk = handler.chunk; null !== chunk && "blocked" === chunk.status && @@ -1180,6 +1185,7 @@ function getOutlinedModel(response, reference, parentObject, key, map) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1189,11 +1195,13 @@ function getOutlinedModel(response, reference, parentObject, key, map) { return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = value.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = value.reason)) : (initializingHandler = { parent: null, chunk: null, - value: value.reason, + value: null, + reason: value.reason, deps: 0, errored: !0 }), @@ -1215,6 +1223,7 @@ function getOutlinedModel(response, reference, parentObject, key, map) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1224,11 +1233,13 @@ function getOutlinedModel(response, reference, parentObject, key, map) { return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = id.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = id.reason)) : (initializingHandler = { parent: null, chunk: null, - value: id.reason, + value: null, + reason: id.reason, deps: 0, errored: !0 }), @@ -1267,6 +1278,7 @@ function parseModelString(response, parentObject, key, value) { parent: initializingHandler, chunk: null, value: null, + reason: null, deps: 0, errored: !1 }), @@ -1755,13 +1767,14 @@ function processFullBinaryRow(response, id, tag, buffer, chunk) { } break; case 69: - tag = JSON.parse(buffer); - buffer = resolveErrorProd(); - buffer.digest = tag.digest; tag = response._chunks; - (chunk = tag.get(id)) - ? triggerErrorOnChunk(response, chunk, buffer) - : tag.set(id, createErrorChunk(response, buffer)); + chunk = tag.get(id); + buffer = JSON.parse(buffer); + stringDecoder = resolveErrorProd(); + stringDecoder.digest = buffer.digest; + chunk + ? triggerErrorOnChunk(response, chunk, stringDecoder) + : tag.set(id, createErrorChunk(response, stringDecoder)); break; case 84: response = response._chunks; @@ -1832,7 +1845,7 @@ function createFromJSONCallback(response) { (initializingHandler = value.parent), value.errored) ) - (key = createErrorChunk(response, value.value)), + (key = createErrorChunk(response, value.reason)), (key = createLazyChunkWrapper(key)); else if (0 < value.deps) { var blockedChunk = new ReactPromise("blocked", null, null); 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 855f5fed33c02..d3c48714f5b9b 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 @@ -1575,7 +1575,7 @@ this.value = value; this.reason = reason; this._children = []; - this._debugInfo = null; + this._debugInfo = this._debugChunk = null; } function unwrapWeakResponse(weakResponse) { weakResponse = weakResponse.weak.deref(); @@ -1707,13 +1707,33 @@ } } function triggerErrorOnChunk(response, chunk, error) { - "pending" !== chunk.status && "blocked" !== chunk.status - ? chunk.reason.error(error) - : (releasePendingChunk(response, chunk), - (response = chunk.reason), - (chunk.status = "rejected"), - (chunk.reason = error), - null !== response && rejectChunk(response, error)); + if ("pending" !== chunk.status && "blocked" !== chunk.status) + chunk.reason.error(error); + else { + releasePendingChunk(response, chunk); + var listeners = chunk.reason; + if ("pending" === chunk.status && null != chunk._debugChunk) { + var prevHandler = initializingHandler, + prevChunk = initializingChunk; + initializingHandler = null; + chunk.status = "blocked"; + chunk.value = null; + chunk.reason = null; + initializingChunk = chunk; + try { + initializeDebugChunk(response, chunk), (chunk._debugChunk = null); + } finally { + (initializingHandler = prevHandler), + (initializingChunk = prevChunk); + } + } + chunk.status = "rejected"; + chunk.reason = error; + null !== listeners && rejectChunk(listeners, error); + } + } + function createResolvedModelChunk(response, value) { + return new ReactPromise("resolved_model", value, response); } function createResolvedIteratorResultChunk(response, value, done) { return new ReactPromise( @@ -1754,11 +1774,69 @@ var rejectListeners = chunk.reason; chunk.status = "resolved_module"; chunk.value = value; + chunk._debugInfo = null; null !== response && (initializeModuleChunk(chunk), wakeChunkIfInitialized(chunk, response, rejectListeners)); } } + function initializeDebugChunk(response, chunk) { + var debugChunk = chunk._debugChunk; + if (null !== debugChunk) { + var debugInfo = chunk._debugInfo || (chunk._debugInfo = []); + try { + if ("resolved_model" === debugChunk.status) { + for ( + var idx = debugInfo.length, c = debugChunk._debugChunk; + null !== c; + + ) + "fulfilled" !== c.status && idx++, (c = c._debugChunk); + initializeModelChunk(debugChunk); + switch (debugChunk.status) { + case "fulfilled": + debugInfo[idx] = initializeDebugInfo( + response, + debugChunk.value + ); + break; + case "blocked": + case "pending": + waitForReference( + debugChunk, + debugInfo, + "" + idx, + response, + initializeDebugInfo, + [""] + ); + break; + default: + throw debugChunk.reason; + } + } else + switch (debugChunk.status) { + case "fulfilled": + break; + case "blocked": + case "pending": + waitForReference( + debugChunk, + {}, + "", + response, + initializeDebugInfo, + [""] + ); + break; + default: + throw debugChunk.reason; + } + } catch (error) { + triggerErrorOnChunk(response, chunk, error); + } + } + } function initializeModelChunk(chunk) { var prevHandler = initializingHandler, prevChunk = initializingChunk; @@ -1769,6 +1847,8 @@ chunk.value = null; chunk.reason = null; initializingChunk = chunk; + initializeDebugChunk(response, chunk); + chunk._debugChunk = null; try { var value = JSON.parse(resolvedModel, response._fromJSON), resolveListeners = chunk.value; @@ -1777,7 +1857,7 @@ (chunk.reason = null), wakeChunk(resolveListeners, value)); if (null !== initializingHandler) { - if (initializingHandler.errored) throw initializingHandler.value; + if (initializingHandler.errored) throw initializingHandler.reason; if (0 < initializingHandler.deps) { initializingHandler.value = value; initializingHandler.chunk = chunk; @@ -1971,6 +2051,7 @@ ((parentObject = key.value), (key.status = "fulfilled"), (key.value = handler.value), + (key.reason = handler.reason), null !== parentObject && wakeChunk(parentObject, handler.value))); } function rejectReference(reference, error) { @@ -1979,7 +2060,8 @@ if (!handler.errored) { var blockedValue = handler.value; handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; handler = handler.chunk; if (null !== handler && "blocked" === handler.status) { if ( @@ -2025,6 +2107,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -2079,6 +2162,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -2127,7 +2211,8 @@ if (!handler.errored) { var blockedValue = handler.value; handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; var chunk = handler.chunk; if (null !== chunk && "blocked" === chunk.status) { if ( @@ -2201,6 +2286,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -2210,11 +2296,13 @@ return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = value.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = value.reason)) : (initializingHandler = { parent: null, chunk: null, - value: value.reason, + value: null, + reason: value.reason, deps: 0, errored: !0 }), @@ -2257,6 +2345,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -2266,11 +2355,13 @@ return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = id.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = id.reason)) : (initializingHandler = { parent: null, chunk: null, - value: id.reason, + value: null, + reason: id.reason, deps: 0, errored: !0 }), @@ -2329,6 +2420,7 @@ parent: initializingHandler, chunk: null, value: null, + reason: null, deps: 0, errored: !1 }), @@ -2561,6 +2653,7 @@ )); this._debugFindSourceMapURL = findSourceMapURL; this._debugChannel = debugChannel; + this._blockedConsole = null; this._replayConsole = replayConsole; this._rootEnvironmentName = environmentName; debugChannel && @@ -2579,32 +2672,6 @@ _buffer: [] }; } - function resolveDebugHalt(response, id) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk || chunks.set(id, (chunk = createPendingChunk(response))); - if ("pending" === chunk.status || "blocked" === chunk.status) - releasePendingChunk(response, chunk), - (response = chunk), - (response.status = "halted"), - (response.value = null), - (response.reason = null); - } - function resolveModel(response, id, model) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk - ? resolveModelChunk(response, chunk, model) - : chunks.set(id, new ReactPromise("resolved_model", model, response)); - } - function resolveText(response, id, text) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk && "pending" !== chunk.status - ? chunk.reason.enqueueValue(text) - : (chunk && releasePendingChunk(response, chunk), - chunks.set(id, new ReactPromise("fulfilled", text, null))); - } function resolveBuffer(response, id, buffer) { var chunks = response._chunks, chunk = chunks.get(id); @@ -2653,15 +2720,41 @@ function resolveStream(response, id, stream, controller) { var chunks = response._chunks, chunk = chunks.get(id); - chunk - ? "pending" === chunk.status && - (releasePendingChunk(response, chunk), - (response = chunk.value), - (chunk.status = "fulfilled"), - (chunk.value = stream), - (chunk.reason = controller), - null !== response && wakeChunk(response, chunk.value)) - : chunks.set(id, new ReactPromise("fulfilled", stream, controller)); + if (!chunk) + chunks.set(id, new ReactPromise("fulfilled", stream, controller)); + else if ("pending" === chunk.status) { + releasePendingChunk(response, chunk); + id = chunk.value; + if (null != chunk._debugChunk) { + chunks = initializingHandler; + var prevChunk = initializingChunk; + initializingHandler = null; + chunk.status = "blocked"; + chunk.value = null; + chunk.reason = null; + initializingChunk = chunk; + try { + if ( + (initializeDebugChunk(response, chunk), + (chunk._debugChunk = null), + null !== initializingHandler && + !initializingHandler.errored && + 0 < initializingHandler.deps) + ) { + initializingHandler.value = stream; + initializingHandler.reason = controller; + initializingHandler.chunk = chunk; + return; + } + } finally { + (initializingHandler = chunks), (initializingChunk = prevChunk); + } + } + chunk.status = "fulfilled"; + chunk.value = stream; + chunk.reason = controller; + null !== id && wakeChunk(id, chunk.value); + } } function startReadableStream(response, id, type) { var controller = null; @@ -2682,7 +2775,7 @@ }, enqueueModel: function (json) { if (null === previousBlockedChunk) { - var chunk = new ReactPromise("resolved_model", json, response); + var chunk = createResolvedModelChunk(response, json); initializeModelChunk(chunk); "fulfilled" === chunk.status ? controller.enqueue(chunk.value) @@ -2844,11 +2937,6 @@ } ); } - function stopStream(response, id, row) { - (response = response._chunks.get(id)) && - "fulfilled" === response.status && - response.reason.close("" === row ? '"$undefined"' : row); - } function resolveErrorDev(response, errorInfo) { var name = errorInfo.name, env = errorInfo.env; @@ -2869,66 +2957,6 @@ response.environmentName = env; return response; } - function resolvePostponeDev(response, id, reason, stack, env) { - reason = buildFakeCallStack( - response, - stack, - env, - !1, - Error.bind(null, reason || "") - ); - stack = response._debugRootTask; - reason = null != stack ? stack.run(reason) : reason(); - reason.$$typeof = REACT_POSTPONE_TYPE; - stack = response._chunks; - (env = stack.get(id)) - ? triggerErrorOnChunk(response, env, reason) - : stack.set(id, createErrorChunk(response, reason)); - } - function resolveHint(response, code, model) { - response = JSON.parse(model, response._fromJSON); - model = ReactDOMSharedInternals.d; - switch (code) { - case "D": - model.D(response); - break; - case "C": - "string" === typeof response - ? model.C(response) - : model.C(response[0], response[1]); - break; - case "L": - code = response[0]; - var as = response[1]; - 3 === response.length - ? model.L(code, as, response[2]) - : model.L(code, as); - break; - case "m": - "string" === typeof response - ? model.m(response) - : model.m(response[0], response[1]); - break; - case "X": - "string" === typeof response - ? model.X(response) - : model.X(response[0], response[1]); - break; - case "S": - "string" === typeof response - ? model.S(response) - : model.S( - response[0], - 0 === response[1] ? void 0 : response[1], - 3 === response.length ? response[2] : void 0 - ); - break; - case "M": - "string" === typeof response - ? model.M(response) - : model.M(response[0], response[1]); - } - } function createFakeFunction( name, filename, @@ -3140,7 +3168,7 @@ (owner.debugLocation = debugInfo.debugStack)); } } - function resolveDebugInfo(response, id, debugInfo) { + function initializeDebugInfo(response, debugInfo) { void 0 !== debugInfo.stack && initializeFakeTask(response, debugInfo); if (null == debugInfo.owner && null != response._debugRootOwner) { var _componentInfoOrAsyncInfo = debugInfo; @@ -3152,8 +3180,7 @@ void 0 !== debugInfo.stack && initializeFakeStack(response, debugInfo); "number" === typeof debugInfo.time && (debugInfo = { time: debugInfo.time + response._timeOrigin }); - response = getChunk(response, id); - (response._debugInfo || (response._debugInfo = [])).push(debugInfo); + return debugInfo; } function getCurrentStackInDEV() { var owner = currentOwnerInDEV; @@ -3210,22 +3237,37 @@ } return JSCompiler_inline_result$jscomp$0; } - function resolveConsoleEntry(response, value) { + function resolveConsoleEntry(response, json) { if (response._replayConsole) { - var payload = JSON.parse(value, response._fromJSON); - value = payload[0]; - var stackTrace = payload[1], - owner = payload[2], - env = payload[3]; - payload = payload.slice(4); - replayConsoleWithCallStackInDEV( - response, - value, - stackTrace, - owner, - env, - payload - ); + var blockedChunk = response._blockedConsole; + if (null == blockedChunk) + (blockedChunk = createResolvedModelChunk(response, json)), + initializeModelChunk(blockedChunk), + "fulfilled" === blockedChunk.status + ? replayConsoleWithCallStackInDEV(response, blockedChunk.value) + : (blockedChunk.then( + function (v) { + return replayConsoleWithCallStackInDEV(response, v); + }, + function () {} + ), + (response._blockedConsole = blockedChunk)); + else { + var _chunk4 = createPendingChunk(response); + _chunk4.then( + function (v) { + return replayConsoleWithCallStackInDEV(response, v); + }, + function () {} + ); + response._blockedConsole = _chunk4; + var unblock = function () { + response._blockedConsole === _chunk4 && + (response._blockedConsole = null); + resolveModelChunk(response, _chunk4, json); + }; + blockedChunk.then(unblock, unblock); + } } } function initializeIOInfo(response, ioInfo) { @@ -3260,7 +3302,7 @@ chunk ? (resolveModelChunk(response, chunk, model), "resolved_model" === chunk.status && initializeModelChunk(chunk)) - : ((chunk = new ReactPromise("resolved_model", model, response)), + : ((chunk = createResolvedModelChunk(response, model)), chunks.set(id, chunk), initializeModelChunk(chunk)); "fulfilled" === chunk.status @@ -3893,35 +3935,91 @@ resolveModule(response, id, row); break; case 72: - resolveHint(response, row[0], row.slice(1)); + id = row[0]; + row = row.slice(1); + response = JSON.parse(row, response._fromJSON); + row = ReactDOMSharedInternals.d; + switch (id) { + case "D": + row.D(response); + break; + case "C": + "string" === typeof response + ? row.C(response) + : row.C(response[0], response[1]); + break; + case "L": + id = response[0]; + tag = response[1]; + 3 === response.length + ? row.L(id, tag, response[2]) + : row.L(id, tag); + break; + case "m": + "string" === typeof response + ? row.m(response) + : row.m(response[0], response[1]); + break; + case "X": + "string" === typeof response + ? row.X(response) + : row.X(response[0], response[1]); + break; + case "S": + "string" === typeof response + ? row.S(response) + : row.S( + response[0], + 0 === response[1] ? void 0 : response[1], + 3 === response.length ? response[2] : void 0 + ); + break; + case "M": + "string" === typeof response + ? row.M(response) + : row.M(response[0], response[1]); + } break; case 69: + tag = response._chunks; + var chunk = tag.get(id); row = JSON.parse(row); - tag = resolveErrorDev(response, row); - tag.digest = row.digest; - row = response._chunks; - var chunk = row.get(id); + var error = resolveErrorDev(response, row); + error.digest = row.digest; chunk - ? triggerErrorOnChunk(response, chunk, tag) - : row.set(id, createErrorChunk(response, tag)); + ? triggerErrorOnChunk(response, chunk, error) + : tag.set(id, createErrorChunk(response, error)); break; case 84: - resolveText(response, id, row); + tag = response._chunks; + (chunk = tag.get(id)) && "pending" !== chunk.status + ? chunk.reason.enqueueValue(row) + : (chunk && releasePendingChunk(response, chunk), + tag.set(id, new ReactPromise("fulfilled", row, null))); break; case 78: response._timeOrigin = +row - performance.timeOrigin; break; case 68: - tag = new ReactPromise("resolved_model", row, response); - initializeModelChunk(tag); - "fulfilled" === tag.status - ? resolveDebugInfo(response, id, tag.value) - : tag.then( - function (v) { - return resolveDebugInfo(response, id, v); - }, - function () {} - ); + id = getChunk(response, id); + "fulfilled" !== id.status && + "rejected" !== id.status && + "halted" !== id.status && + "blocked" !== id.status && + "resolved_module" !== id.status && + ((tag = id._debugChunk), + (chunk = createResolvedModelChunk(response, row)), + (chunk._debugChunk = tag), + (id._debugChunk = chunk), + initializeDebugChunk(response, id), + "blocked" === chunk.status && + void 0 === response._debugChannel && + '"' === row[0] && + "$" === row[1] && + ((row = row.slice(2, row.length - 1).split(":")), + (row = parseInt(row[0], 16)), + "pending" === getChunk(response, row).status && + (id._debugChunk = null))); break; case 74: resolveIOInfo(response, id, row); @@ -3942,16 +4040,45 @@ startAsyncIterable(response, id, !0); break; case 67: - stopStream(response, id, row); + (response = response._chunks.get(id)) && + "fulfilled" === response.status && + response.reason.close("" === row ? '"$undefined"' : row); break; case 80: - tag = JSON.parse(row); - resolvePostponeDev(response, id, tag.reason, tag.stack, tag.env); + row = JSON.parse(row); + row = buildFakeCallStack( + response, + row.stack, + row.env, + !1, + Error.bind(null, row.reason || "") + ); + tag = response._debugRootTask; + row = null != tag ? tag.run(row) : row(); + row.$$typeof = REACT_POSTPONE_TYPE; + tag = response._chunks; + (chunk = tag.get(id)) + ? triggerErrorOnChunk(response, chunk, row) + : tag.set(id, createErrorChunk(response, row)); break; default: - "" === row - ? resolveDebugHalt(response, id) - : resolveModel(response, id, row); + if ("" === row) { + if ( + ((row = response._chunks), + (tag = row.get(id)) || + row.set(id, (tag = createPendingChunk(response))), + "pending" === tag.status || "blocked" === tag.status) + ) + releasePendingChunk(response, tag), + (response = tag), + (response.status = "halted"), + (response.value = null), + (response.reason = null); + } else + (tag = response._chunks), + (chunk = tag.get(id)) + ? resolveModelChunk(response, chunk, row) + : tag.set(id, createResolvedModelChunk(response, row)); } } function processBinaryChunk(weakResponse, streamState, chunk) { @@ -4094,7 +4221,7 @@ validated = initializingHandler; initializingHandler = validated.parent; if (validated.errored) { - key = createErrorChunk(response, validated.value); + key = createErrorChunk(response, validated.reason); initializeElement(response, value); validated = { name: getComponentNameFromType(value.type) || "", @@ -4297,14 +4424,12 @@ ), currentOwnerInDEV = null, replayConsoleWithCallStack = { - react_stack_bottom_frame: function ( - response, - methodName, - stackTrace, - owner, - env, - args - ) { + react_stack_bottom_frame: function (response, payload) { + var methodName = payload[0], + stackTrace = payload[1], + owner = payload[2], + env = payload[3]; + payload = payload.slice(4); var prevStack = ReactSharedInternals.getCurrentStack; ReactSharedInternals.getCurrentStack = getCurrentStackInDEV; currentOwnerInDEV = null === owner ? response._debugRootOwner : owner; @@ -4318,13 +4443,13 @@ case "table": var JSCompiler_inline_result = bind$1.apply( console[methodName], - [console].concat(args) + [console].concat(payload) ); break a; case "assert": offset = 1; } - var newArgs = args.slice(0); + var newArgs = payload.slice(0); "string" === typeof newArgs[offset] ? newArgs.splice( offset, 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 53672a3f2fb1e..af8440215d2bb 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 @@ -884,7 +884,7 @@ function initializeModelChunk(chunk) { (chunk.reason = null), wakeChunk(resolveListeners, value)); if (null !== initializingHandler) { - if (initializingHandler.errored) throw initializingHandler.value; + if (initializingHandler.errored) throw initializingHandler.reason; if (0 < initializingHandler.deps) { initializingHandler.value = value; initializingHandler.chunk = chunk; @@ -1001,6 +1001,7 @@ function fulfillReference(reference, value) { ((parentObject = key.value), (key.status = "fulfilled"), (key.value = handler.value), + (key.reason = handler.reason), null !== parentObject && wakeChunk(parentObject, handler.value))); } function rejectReference(reference, error) { @@ -1008,7 +1009,8 @@ function rejectReference(reference, error) { reference = reference.response; handler.errored || ((handler.errored = !0), - (handler.value = error), + (handler.value = null), + (handler.reason = error), (handler = handler.chunk), null !== handler && "blocked" === handler.status && @@ -1030,6 +1032,7 @@ function waitForReference( parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1083,6 +1086,7 @@ function loadServerReference(response, metaData, parentObject, key) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1125,7 +1129,8 @@ function loadServerReference(response, metaData, parentObject, key) { function (error) { if (!handler.errored) { handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; var chunk = handler.chunk; null !== chunk && "blocked" === chunk.status && @@ -1181,6 +1186,7 @@ function getOutlinedModel(response, reference, parentObject, key, map) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1190,11 +1196,13 @@ function getOutlinedModel(response, reference, parentObject, key, map) { return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = value.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = value.reason)) : (initializingHandler = { parent: null, chunk: null, - value: value.reason, + value: null, + reason: value.reason, deps: 0, errored: !0 }), @@ -1216,6 +1224,7 @@ function getOutlinedModel(response, reference, parentObject, key, map) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1225,11 +1234,13 @@ function getOutlinedModel(response, reference, parentObject, key, map) { return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = id.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = id.reason)) : (initializingHandler = { parent: null, chunk: null, - value: id.reason, + value: null, + reason: id.reason, deps: 0, errored: !0 }), @@ -1268,6 +1279,7 @@ function parseModelString(response, parentObject, key, value) { parent: initializingHandler, chunk: null, value: null, + reason: null, deps: 0, errored: !1 }), @@ -1760,14 +1772,14 @@ function processFullStringRow(response, id, tag, row) { } break; case 69: - tag = JSON.parse(row); - row = resolveErrorProd(); - row.digest = tag.digest; tag = response._chunks; var chunk = tag.get(id); + row = JSON.parse(row); + var error = resolveErrorProd(); + error.digest = row.digest; chunk - ? triggerErrorOnChunk(response, chunk, row) - : tag.set(id, createErrorChunk(response, row)); + ? triggerErrorOnChunk(response, chunk, error) + : tag.set(id, createErrorChunk(response, error)); break; case 84: response = response._chunks; @@ -1916,7 +1928,7 @@ function createFromJSONCallback(response) { (initializingHandler = value.parent), value.errored) ) - (key = createErrorChunk(response, value.value)), + (key = createErrorChunk(response, value.reason)), (key = createLazyChunkWrapper(key)); else if (0 < value.deps) { var blockedChunk = new ReactPromise("blocked", null, null); 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 99e49a329fbeb..64ac8a9e77a10 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 @@ -1537,7 +1537,7 @@ this.value = value; this.reason = reason; this._children = []; - this._debugInfo = null; + this._debugInfo = this._debugChunk = null; } function unwrapWeakResponse(weakResponse) { weakResponse = weakResponse.weak.deref(); @@ -1669,13 +1669,33 @@ } } function triggerErrorOnChunk(response, chunk, error) { - "pending" !== chunk.status && "blocked" !== chunk.status - ? chunk.reason.error(error) - : (releasePendingChunk(response, chunk), - (response = chunk.reason), - (chunk.status = "rejected"), - (chunk.reason = error), - null !== response && rejectChunk(response, error)); + if ("pending" !== chunk.status && "blocked" !== chunk.status) + chunk.reason.error(error); + else { + releasePendingChunk(response, chunk); + var listeners = chunk.reason; + if ("pending" === chunk.status && null != chunk._debugChunk) { + var prevHandler = initializingHandler, + prevChunk = initializingChunk; + initializingHandler = null; + chunk.status = "blocked"; + chunk.value = null; + chunk.reason = null; + initializingChunk = chunk; + try { + initializeDebugChunk(response, chunk), (chunk._debugChunk = null); + } finally { + (initializingHandler = prevHandler), + (initializingChunk = prevChunk); + } + } + chunk.status = "rejected"; + chunk.reason = error; + null !== listeners && rejectChunk(listeners, error); + } + } + function createResolvedModelChunk(response, value) { + return new ReactPromise("resolved_model", value, response); } function createResolvedIteratorResultChunk(response, value, done) { return new ReactPromise( @@ -1716,11 +1736,69 @@ var rejectListeners = chunk.reason; chunk.status = "resolved_module"; chunk.value = value; + chunk._debugInfo = null; null !== response && (initializeModuleChunk(chunk), wakeChunkIfInitialized(chunk, response, rejectListeners)); } } + function initializeDebugChunk(response, chunk) { + var debugChunk = chunk._debugChunk; + if (null !== debugChunk) { + var debugInfo = chunk._debugInfo || (chunk._debugInfo = []); + try { + if ("resolved_model" === debugChunk.status) { + for ( + var idx = debugInfo.length, c = debugChunk._debugChunk; + null !== c; + + ) + "fulfilled" !== c.status && idx++, (c = c._debugChunk); + initializeModelChunk(debugChunk); + switch (debugChunk.status) { + case "fulfilled": + debugInfo[idx] = initializeDebugInfo( + response, + debugChunk.value + ); + break; + case "blocked": + case "pending": + waitForReference( + debugChunk, + debugInfo, + "" + idx, + response, + initializeDebugInfo, + [""] + ); + break; + default: + throw debugChunk.reason; + } + } else + switch (debugChunk.status) { + case "fulfilled": + break; + case "blocked": + case "pending": + waitForReference( + debugChunk, + {}, + "", + response, + initializeDebugInfo, + [""] + ); + break; + default: + throw debugChunk.reason; + } + } catch (error) { + triggerErrorOnChunk(response, chunk, error); + } + } + } function initializeModelChunk(chunk) { var prevHandler = initializingHandler, prevChunk = initializingChunk; @@ -1731,6 +1809,8 @@ chunk.value = null; chunk.reason = null; initializingChunk = chunk; + initializeDebugChunk(response, chunk); + chunk._debugChunk = null; try { var value = JSON.parse(resolvedModel, response._fromJSON), resolveListeners = chunk.value; @@ -1739,7 +1819,7 @@ (chunk.reason = null), wakeChunk(resolveListeners, value)); if (null !== initializingHandler) { - if (initializingHandler.errored) throw initializingHandler.value; + if (initializingHandler.errored) throw initializingHandler.reason; if (0 < initializingHandler.deps) { initializingHandler.value = value; initializingHandler.chunk = chunk; @@ -1933,6 +2013,7 @@ ((parentObject = key.value), (key.status = "fulfilled"), (key.value = handler.value), + (key.reason = handler.reason), null !== parentObject && wakeChunk(parentObject, handler.value))); } function rejectReference(reference, error) { @@ -1941,7 +2022,8 @@ if (!handler.errored) { var blockedValue = handler.value; handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; handler = handler.chunk; if (null !== handler && "blocked" === handler.status) { if ( @@ -1987,6 +2069,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -2041,6 +2124,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -2089,7 +2173,8 @@ if (!handler.errored) { var blockedValue = handler.value; handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; var chunk = handler.chunk; if (null !== chunk && "blocked" === chunk.status) { if ( @@ -2163,6 +2248,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -2172,11 +2258,13 @@ return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = value.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = value.reason)) : (initializingHandler = { parent: null, chunk: null, - value: value.reason, + value: null, + reason: value.reason, deps: 0, errored: !0 }), @@ -2219,6 +2307,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -2228,11 +2317,13 @@ return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = id.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = id.reason)) : (initializingHandler = { parent: null, chunk: null, - value: id.reason, + value: null, + reason: id.reason, deps: 0, errored: !0 }), @@ -2291,6 +2382,7 @@ parent: initializingHandler, chunk: null, value: null, + reason: null, deps: 0, errored: !1 }), @@ -2523,6 +2615,7 @@ )); this._debugFindSourceMapURL = findSourceMapURL; this._debugChannel = debugChannel; + this._blockedConsole = null; this._replayConsole = replayConsole; this._rootEnvironmentName = environmentName; debugChannel && @@ -2541,32 +2634,6 @@ _buffer: [] }; } - function resolveDebugHalt(response, id) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk || chunks.set(id, (chunk = createPendingChunk(response))); - if ("pending" === chunk.status || "blocked" === chunk.status) - releasePendingChunk(response, chunk), - (response = chunk), - (response.status = "halted"), - (response.value = null), - (response.reason = null); - } - function resolveModel(response, id, model) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk - ? resolveModelChunk(response, chunk, model) - : chunks.set(id, new ReactPromise("resolved_model", model, response)); - } - function resolveText(response, id, text) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk && "pending" !== chunk.status - ? chunk.reason.enqueueValue(text) - : (chunk && releasePendingChunk(response, chunk), - chunks.set(id, new ReactPromise("fulfilled", text, null))); - } function resolveBuffer(response, id, buffer) { var chunks = response._chunks, chunk = chunks.get(id); @@ -2615,15 +2682,41 @@ function resolveStream(response, id, stream, controller) { var chunks = response._chunks, chunk = chunks.get(id); - chunk - ? "pending" === chunk.status && - (releasePendingChunk(response, chunk), - (response = chunk.value), - (chunk.status = "fulfilled"), - (chunk.value = stream), - (chunk.reason = controller), - null !== response && wakeChunk(response, chunk.value)) - : chunks.set(id, new ReactPromise("fulfilled", stream, controller)); + if (!chunk) + chunks.set(id, new ReactPromise("fulfilled", stream, controller)); + else if ("pending" === chunk.status) { + releasePendingChunk(response, chunk); + id = chunk.value; + if (null != chunk._debugChunk) { + chunks = initializingHandler; + var prevChunk = initializingChunk; + initializingHandler = null; + chunk.status = "blocked"; + chunk.value = null; + chunk.reason = null; + initializingChunk = chunk; + try { + if ( + (initializeDebugChunk(response, chunk), + (chunk._debugChunk = null), + null !== initializingHandler && + !initializingHandler.errored && + 0 < initializingHandler.deps) + ) { + initializingHandler.value = stream; + initializingHandler.reason = controller; + initializingHandler.chunk = chunk; + return; + } + } finally { + (initializingHandler = chunks), (initializingChunk = prevChunk); + } + } + chunk.status = "fulfilled"; + chunk.value = stream; + chunk.reason = controller; + null !== id && wakeChunk(id, chunk.value); + } } function startReadableStream(response, id, type) { var controller = null; @@ -2644,7 +2737,7 @@ }, enqueueModel: function (json) { if (null === previousBlockedChunk) { - var chunk = new ReactPromise("resolved_model", json, response); + var chunk = createResolvedModelChunk(response, json); initializeModelChunk(chunk); "fulfilled" === chunk.status ? controller.enqueue(chunk.value) @@ -2806,11 +2899,6 @@ } ); } - function stopStream(response, id, row) { - (response = response._chunks.get(id)) && - "fulfilled" === response.status && - response.reason.close("" === row ? '"$undefined"' : row); - } function resolveErrorDev(response, errorInfo) { var name = errorInfo.name, env = errorInfo.env; @@ -2831,66 +2919,6 @@ response.environmentName = env; return response; } - function resolvePostponeDev(response, id, reason, stack, env) { - reason = buildFakeCallStack( - response, - stack, - env, - !1, - Error.bind(null, reason || "") - ); - stack = response._debugRootTask; - reason = null != stack ? stack.run(reason) : reason(); - reason.$$typeof = REACT_POSTPONE_TYPE; - stack = response._chunks; - (env = stack.get(id)) - ? triggerErrorOnChunk(response, env, reason) - : stack.set(id, createErrorChunk(response, reason)); - } - function resolveHint(response, code, model) { - response = JSON.parse(model, response._fromJSON); - model = ReactDOMSharedInternals.d; - switch (code) { - case "D": - model.D(response); - break; - case "C": - "string" === typeof response - ? model.C(response) - : model.C(response[0], response[1]); - break; - case "L": - code = response[0]; - var as = response[1]; - 3 === response.length - ? model.L(code, as, response[2]) - : model.L(code, as); - break; - case "m": - "string" === typeof response - ? model.m(response) - : model.m(response[0], response[1]); - break; - case "X": - "string" === typeof response - ? model.X(response) - : model.X(response[0], response[1]); - break; - case "S": - "string" === typeof response - ? model.S(response) - : model.S( - response[0], - 0 === response[1] ? void 0 : response[1], - 3 === response.length ? response[2] : void 0 - ); - break; - case "M": - "string" === typeof response - ? model.M(response) - : model.M(response[0], response[1]); - } - } function createFakeFunction( name, filename, @@ -3102,7 +3130,7 @@ (owner.debugLocation = debugInfo.debugStack)); } } - function resolveDebugInfo(response, id, debugInfo) { + function initializeDebugInfo(response, debugInfo) { void 0 !== debugInfo.stack && initializeFakeTask(response, debugInfo); if (null == debugInfo.owner && null != response._debugRootOwner) { var _componentInfoOrAsyncInfo = debugInfo; @@ -3114,8 +3142,7 @@ void 0 !== debugInfo.stack && initializeFakeStack(response, debugInfo); "number" === typeof debugInfo.time && (debugInfo = { time: debugInfo.time + response._timeOrigin }); - response = getChunk(response, id); - (response._debugInfo || (response._debugInfo = [])).push(debugInfo); + return debugInfo; } function getCurrentStackInDEV() { var owner = currentOwnerInDEV; @@ -3172,22 +3199,37 @@ } return JSCompiler_inline_result$jscomp$0; } - function resolveConsoleEntry(response, value) { + function resolveConsoleEntry(response, json) { if (response._replayConsole) { - var payload = JSON.parse(value, response._fromJSON); - value = payload[0]; - var stackTrace = payload[1], - owner = payload[2], - env = payload[3]; - payload = payload.slice(4); - replayConsoleWithCallStackInDEV( - response, - value, - stackTrace, - owner, - env, - payload - ); + var blockedChunk = response._blockedConsole; + if (null == blockedChunk) + (blockedChunk = createResolvedModelChunk(response, json)), + initializeModelChunk(blockedChunk), + "fulfilled" === blockedChunk.status + ? replayConsoleWithCallStackInDEV(response, blockedChunk.value) + : (blockedChunk.then( + function (v) { + return replayConsoleWithCallStackInDEV(response, v); + }, + function () {} + ), + (response._blockedConsole = blockedChunk)); + else { + var _chunk4 = createPendingChunk(response); + _chunk4.then( + function (v) { + return replayConsoleWithCallStackInDEV(response, v); + }, + function () {} + ); + response._blockedConsole = _chunk4; + var unblock = function () { + response._blockedConsole === _chunk4 && + (response._blockedConsole = null); + resolveModelChunk(response, _chunk4, json); + }; + blockedChunk.then(unblock, unblock); + } } } function initializeIOInfo(response, ioInfo) { @@ -3222,7 +3264,7 @@ chunk ? (resolveModelChunk(response, chunk, model), "resolved_model" === chunk.status && initializeModelChunk(chunk)) - : ((chunk = new ReactPromise("resolved_model", model, response)), + : ((chunk = createResolvedModelChunk(response, model)), chunks.set(id, chunk), initializeModelChunk(chunk)); "fulfilled" === chunk.status @@ -3855,35 +3897,91 @@ resolveModule(response, id, row); break; case 72: - resolveHint(response, row[0], row.slice(1)); + id = row[0]; + row = row.slice(1); + response = JSON.parse(row, response._fromJSON); + row = ReactDOMSharedInternals.d; + switch (id) { + case "D": + row.D(response); + break; + case "C": + "string" === typeof response + ? row.C(response) + : row.C(response[0], response[1]); + break; + case "L": + id = response[0]; + tag = response[1]; + 3 === response.length + ? row.L(id, tag, response[2]) + : row.L(id, tag); + break; + case "m": + "string" === typeof response + ? row.m(response) + : row.m(response[0], response[1]); + break; + case "X": + "string" === typeof response + ? row.X(response) + : row.X(response[0], response[1]); + break; + case "S": + "string" === typeof response + ? row.S(response) + : row.S( + response[0], + 0 === response[1] ? void 0 : response[1], + 3 === response.length ? response[2] : void 0 + ); + break; + case "M": + "string" === typeof response + ? row.M(response) + : row.M(response[0], response[1]); + } break; case 69: + tag = response._chunks; + var chunk = tag.get(id); row = JSON.parse(row); - tag = resolveErrorDev(response, row); - tag.digest = row.digest; - row = response._chunks; - var chunk = row.get(id); + var error = resolveErrorDev(response, row); + error.digest = row.digest; chunk - ? triggerErrorOnChunk(response, chunk, tag) - : row.set(id, createErrorChunk(response, tag)); + ? triggerErrorOnChunk(response, chunk, error) + : tag.set(id, createErrorChunk(response, error)); break; case 84: - resolveText(response, id, row); + tag = response._chunks; + (chunk = tag.get(id)) && "pending" !== chunk.status + ? chunk.reason.enqueueValue(row) + : (chunk && releasePendingChunk(response, chunk), + tag.set(id, new ReactPromise("fulfilled", row, null))); break; case 78: response._timeOrigin = +row - performance.timeOrigin; break; case 68: - tag = new ReactPromise("resolved_model", row, response); - initializeModelChunk(tag); - "fulfilled" === tag.status - ? resolveDebugInfo(response, id, tag.value) - : tag.then( - function (v) { - return resolveDebugInfo(response, id, v); - }, - function () {} - ); + id = getChunk(response, id); + "fulfilled" !== id.status && + "rejected" !== id.status && + "halted" !== id.status && + "blocked" !== id.status && + "resolved_module" !== id.status && + ((tag = id._debugChunk), + (chunk = createResolvedModelChunk(response, row)), + (chunk._debugChunk = tag), + (id._debugChunk = chunk), + initializeDebugChunk(response, id), + "blocked" === chunk.status && + void 0 === response._debugChannel && + '"' === row[0] && + "$" === row[1] && + ((row = row.slice(2, row.length - 1).split(":")), + (row = parseInt(row[0], 16)), + "pending" === getChunk(response, row).status && + (id._debugChunk = null))); break; case 74: resolveIOInfo(response, id, row); @@ -3904,16 +4002,45 @@ startAsyncIterable(response, id, !0); break; case 67: - stopStream(response, id, row); + (response = response._chunks.get(id)) && + "fulfilled" === response.status && + response.reason.close("" === row ? '"$undefined"' : row); break; case 80: - tag = JSON.parse(row); - resolvePostponeDev(response, id, tag.reason, tag.stack, tag.env); + row = JSON.parse(row); + row = buildFakeCallStack( + response, + row.stack, + row.env, + !1, + Error.bind(null, row.reason || "") + ); + tag = response._debugRootTask; + row = null != tag ? tag.run(row) : row(); + row.$$typeof = REACT_POSTPONE_TYPE; + tag = response._chunks; + (chunk = tag.get(id)) + ? triggerErrorOnChunk(response, chunk, row) + : tag.set(id, createErrorChunk(response, row)); break; default: - "" === row - ? resolveDebugHalt(response, id) - : resolveModel(response, id, row); + if ("" === row) { + if ( + ((row = response._chunks), + (tag = row.get(id)) || + row.set(id, (tag = createPendingChunk(response))), + "pending" === tag.status || "blocked" === tag.status) + ) + releasePendingChunk(response, tag), + (response = tag), + (response.status = "halted"), + (response.value = null), + (response.reason = null); + } else + (tag = response._chunks), + (chunk = tag.get(id)) + ? resolveModelChunk(response, chunk, row) + : tag.set(id, createResolvedModelChunk(response, row)); } } function processBinaryChunk(weakResponse, streamState, chunk) { @@ -4056,7 +4183,7 @@ validated = initializingHandler; initializingHandler = validated.parent; if (validated.errored) { - key = createErrorChunk(response, validated.value); + key = createErrorChunk(response, validated.reason); initializeElement(response, value); validated = { name: getComponentNameFromType(value.type) || "", @@ -4259,14 +4386,12 @@ ), currentOwnerInDEV = null, replayConsoleWithCallStack = { - react_stack_bottom_frame: function ( - response, - methodName, - stackTrace, - owner, - env, - args - ) { + react_stack_bottom_frame: function (response, payload) { + var methodName = payload[0], + stackTrace = payload[1], + owner = payload[2], + env = payload[3]; + payload = payload.slice(4); var prevStack = ReactSharedInternals.getCurrentStack; ReactSharedInternals.getCurrentStack = getCurrentStackInDEV; currentOwnerInDEV = null === owner ? response._debugRootOwner : owner; @@ -4280,13 +4405,13 @@ case "table": var JSCompiler_inline_result = bind$1.apply( console[methodName], - [console].concat(args) + [console].concat(payload) ); break a; case "assert": offset = 1; } - var newArgs = args.slice(0); + var newArgs = payload.slice(0); "string" === typeof newArgs[offset] ? newArgs.splice( offset, 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 f69d75416d50e..f258e51446801 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 @@ -849,7 +849,7 @@ function initializeModelChunk(chunk) { (chunk.reason = null), wakeChunk(resolveListeners, value)); if (null !== initializingHandler) { - if (initializingHandler.errored) throw initializingHandler.value; + if (initializingHandler.errored) throw initializingHandler.reason; if (0 < initializingHandler.deps) { initializingHandler.value = value; initializingHandler.chunk = chunk; @@ -966,6 +966,7 @@ function fulfillReference(reference, value) { ((parentObject = key.value), (key.status = "fulfilled"), (key.value = handler.value), + (key.reason = handler.reason), null !== parentObject && wakeChunk(parentObject, handler.value))); } function rejectReference(reference, error) { @@ -973,7 +974,8 @@ function rejectReference(reference, error) { reference = reference.response; handler.errored || ((handler.errored = !0), - (handler.value = error), + (handler.value = null), + (handler.reason = error), (handler = handler.chunk), null !== handler && "blocked" === handler.status && @@ -995,6 +997,7 @@ function waitForReference( parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1048,6 +1051,7 @@ function loadServerReference(response, metaData, parentObject, key) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1090,7 +1094,8 @@ function loadServerReference(response, metaData, parentObject, key) { function (error) { if (!handler.errored) { handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; var chunk = handler.chunk; null !== chunk && "blocked" === chunk.status && @@ -1146,6 +1151,7 @@ function getOutlinedModel(response, reference, parentObject, key, map) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1155,11 +1161,13 @@ function getOutlinedModel(response, reference, parentObject, key, map) { return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = value.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = value.reason)) : (initializingHandler = { parent: null, chunk: null, - value: value.reason, + value: null, + reason: value.reason, deps: 0, errored: !0 }), @@ -1181,6 +1189,7 @@ function getOutlinedModel(response, reference, parentObject, key, map) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1190,11 +1199,13 @@ function getOutlinedModel(response, reference, parentObject, key, map) { return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = id.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = id.reason)) : (initializingHandler = { parent: null, chunk: null, - value: id.reason, + value: null, + reason: id.reason, deps: 0, errored: !0 }), @@ -1233,6 +1244,7 @@ function parseModelString(response, parentObject, key, value) { parent: initializingHandler, chunk: null, value: null, + reason: null, deps: 0, errored: !1 }), @@ -1725,14 +1737,14 @@ function processFullStringRow(response, id, tag, row) { } break; case 69: - tag = JSON.parse(row); - row = resolveErrorProd(); - row.digest = tag.digest; tag = response._chunks; var chunk = tag.get(id); + row = JSON.parse(row); + var error = resolveErrorProd(); + error.digest = row.digest; chunk - ? triggerErrorOnChunk(response, chunk, row) - : tag.set(id, createErrorChunk(response, row)); + ? triggerErrorOnChunk(response, chunk, error) + : tag.set(id, createErrorChunk(response, error)); break; case 84: response = response._chunks; @@ -1881,7 +1893,7 @@ function createFromJSONCallback(response) { (initializingHandler = value.parent), value.errored) ) - (key = createErrorChunk(response, value.value)), + (key = createErrorChunk(response, value.reason)), (key = createLazyChunkWrapper(key)); else if (0 < value.deps) { var blockedChunk = new ReactPromise("blocked", null, null); 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 30a9d398c264c..635d14a06d9eb 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 @@ -1298,11 +1298,12 @@ task.debugStack, task.debugTask ); + (task = iterable._debugInfo) && + forwardDebugInfo(request, streamTask, task); request.pendingChunks++; - task = streamTask.id.toString(16) + ":" + (isIterator ? "x" : "X") + "\n"; - request.completedRegularChunks.push(stringToChunk(task)); - (iterable = iterable._debugInfo) && - forwardDebugInfo(request, streamTask, iterable); + isIterator = + streamTask.id.toString(16) + ":" + (isIterator ? "x" : "X") + "\n"; + request.completedRegularChunks.push(stringToChunk(isIterator)); request.cacheController.signal.addEventListener("abort", abortIterable); callIteratorInDEV(iterator, progress, error); return serializeByValueID(streamTask.id); 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 ab2c77929ecd5..3bd1bae228ce1 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 @@ -1310,11 +1310,12 @@ task.debugStack, task.debugTask ); + (task = iterable._debugInfo) && + forwardDebugInfo(request, streamTask, task); request.pendingChunks++; - task = streamTask.id.toString(16) + ":" + (isIterator ? "x" : "X") + "\n"; - request.completedRegularChunks.push(stringToChunk(task)); - (iterable = iterable._debugInfo) && - forwardDebugInfo(request, streamTask, iterable); + isIterator = + streamTask.id.toString(16) + ":" + (isIterator ? "x" : "X") + "\n"; + request.completedRegularChunks.push(stringToChunk(isIterator)); request.cacheController.signal.addEventListener("abort", abortIterable); callIteratorInDEV(iterator, progress, error); return serializeByValueID(streamTask.id); 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 8df449cf44141..b3266e9663351 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 @@ -1404,11 +1404,12 @@ task.debugStack, task.debugTask ); + (task = iterable._debugInfo) && + forwardDebugInfo(request, streamTask, task); request.pendingChunks++; - task = streamTask.id.toString(16) + ":" + (isIterator ? "x" : "X") + "\n"; - request.completedRegularChunks.push(task); - (iterable = iterable._debugInfo) && - forwardDebugInfo(request, streamTask, iterable); + isIterator = + streamTask.id.toString(16) + ":" + (isIterator ? "x" : "X") + "\n"; + request.completedRegularChunks.push(isIterator); request.cacheController.signal.addEventListener("abort", abortIterable); callIteratorInDEV(iterator, progress, error); return serializeByValueID(streamTask.id); 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 384c6c42a1c81..a3e0df6c8aa84 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 @@ -1404,11 +1404,12 @@ task.debugStack, task.debugTask ); + (task = iterable._debugInfo) && + forwardDebugInfo(request, streamTask, task); request.pendingChunks++; - task = streamTask.id.toString(16) + ":" + (isIterator ? "x" : "X") + "\n"; - request.completedRegularChunks.push(task); - (iterable = iterable._debugInfo) && - forwardDebugInfo(request, streamTask, iterable); + isIterator = + streamTask.id.toString(16) + ":" + (isIterator ? "x" : "X") + "\n"; + request.completedRegularChunks.push(isIterator); request.cacheController.signal.addEventListener("abort", abortIterable); callIteratorInDEV(iterator, progress, error); return serializeByValueID(streamTask.id); 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 28451be2c121e..791b027ad6e01 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 @@ -64,8 +64,8 @@ "webpack-sources": "^3.2.0" }, "peerDependencies": { - "react": "0.0.0-experimental-dffacc7b-20250717", - "react-dom": "0.0.0-experimental-dffacc7b-20250717", + "react": "0.0.0-experimental-e9638c33-20250721", + "react-dom": "0.0.0-experimental-e9638c33-20250721", "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 b7c1dfa58a98b..2a3009e2c1fe3 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 @@ -916,7 +916,7 @@ this.status = status; this.value = value; this.reason = reason; - this._debugInfo = null; + this._debugInfo = this._debugChunk = null; } function unwrapWeakResponse(weakResponse) { weakResponse = weakResponse.weak.deref(); @@ -1045,13 +1045,30 @@ } } function triggerErrorOnChunk(response, chunk, error) { - "pending" !== chunk.status && "blocked" !== chunk.status - ? chunk.reason.error(error) - : (releasePendingChunk(response, chunk), - (response = chunk.reason), - (chunk.status = "rejected"), - (chunk.reason = error), - null !== response && rejectChunk(response, error)); + if ("pending" !== chunk.status && "blocked" !== chunk.status) + chunk.reason.error(error); + else { + releasePendingChunk(response, chunk); + var listeners = chunk.reason; + if ("pending" === chunk.status && null != chunk._debugChunk) { + var prevHandler = initializingHandler; + initializingHandler = null; + chunk.status = "blocked"; + chunk.value = null; + chunk.reason = null; + try { + initializeDebugChunk(response, chunk), (chunk._debugChunk = null); + } finally { + initializingHandler = prevHandler; + } + } + chunk.status = "rejected"; + chunk.reason = error; + null !== listeners && rejectChunk(listeners, error); + } + } + function createResolvedModelChunk(response, value) { + return new ReactPromise("resolved_model", value, response); } function createResolvedIteratorResultChunk(response, value, done) { return new ReactPromise( @@ -1092,11 +1109,69 @@ var rejectListeners = chunk.reason; chunk.status = "resolved_module"; chunk.value = value; + chunk._debugInfo = null; null !== response && (initializeModuleChunk(chunk), wakeChunkIfInitialized(chunk, response, rejectListeners)); } } + function initializeDebugChunk(response, chunk) { + var debugChunk = chunk._debugChunk; + if (null !== debugChunk) { + var debugInfo = chunk._debugInfo || (chunk._debugInfo = []); + try { + if ("resolved_model" === debugChunk.status) { + for ( + var idx = debugInfo.length, c = debugChunk._debugChunk; + null !== c; + + ) + "fulfilled" !== c.status && idx++, (c = c._debugChunk); + initializeModelChunk(debugChunk); + switch (debugChunk.status) { + case "fulfilled": + debugInfo[idx] = initializeDebugInfo( + response, + debugChunk.value + ); + break; + case "blocked": + case "pending": + waitForReference( + debugChunk, + debugInfo, + "" + idx, + response, + initializeDebugInfo, + [""] + ); + break; + default: + throw debugChunk.reason; + } + } else + switch (debugChunk.status) { + case "fulfilled": + break; + case "blocked": + case "pending": + waitForReference( + debugChunk, + {}, + "", + response, + initializeDebugInfo, + [""] + ); + break; + default: + throw debugChunk.reason; + } + } catch (error) { + triggerErrorOnChunk(response, chunk, error); + } + } + } function initializeModelChunk(chunk) { var prevHandler = initializingHandler; initializingHandler = null; @@ -1105,6 +1180,8 @@ chunk.status = "blocked"; chunk.value = null; chunk.reason = null; + initializeDebugChunk(response, chunk); + chunk._debugChunk = null; try { var value = JSON.parse(resolvedModel, response._fromJSON), resolveListeners = chunk.value; @@ -1113,7 +1190,7 @@ (chunk.reason = null), wakeChunk(resolveListeners, value)); if (null !== initializingHandler) { - if (initializingHandler.errored) throw initializingHandler.value; + if (initializingHandler.errored) throw initializingHandler.reason; if (0 < initializingHandler.deps) { initializingHandler.value = value; initializingHandler.chunk = chunk; @@ -1307,6 +1384,7 @@ ((parentObject = key.value), (key.status = "fulfilled"), (key.value = handler.value), + (key.reason = handler.reason), null !== parentObject && wakeChunk(parentObject, handler.value))); } function rejectReference(reference, error) { @@ -1315,7 +1393,8 @@ if (!handler.errored) { var blockedValue = handler.value; handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; handler = handler.chunk; if (null !== handler && "blocked" === handler.status) { if ( @@ -1361,6 +1440,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1410,6 +1490,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1457,7 +1538,8 @@ if (!handler.errored) { var blockedValue = handler.value; handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; var chunk = handler.chunk; if (null !== chunk && "blocked" === chunk.status) { if ( @@ -1528,6 +1610,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1537,11 +1620,13 @@ return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = value.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = value.reason)) : (initializingHandler = { parent: null, chunk: null, - value: value.reason, + value: null, + reason: value.reason, deps: 0, errored: !0 }), @@ -1584,6 +1669,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1593,11 +1679,13 @@ return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = id.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = id.reason)) : (initializingHandler = { parent: null, chunk: null, - value: id.reason, + value: null, + reason: id.reason, deps: 0, errored: !0 }), @@ -1656,6 +1744,7 @@ parent: initializingHandler, chunk: null, value: null, + reason: null, deps: 0, errored: !1 }), @@ -1879,6 +1968,7 @@ )); this._debugFindSourceMapURL = findSourceMapURL; this._debugChannel = debugChannel; + this._blockedConsole = null; this._replayConsole = replayConsole; this._rootEnvironmentName = environmentName; debugChannel && @@ -1896,32 +1986,6 @@ _buffer: [] }; } - function resolveDebugHalt(response, id) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk || chunks.set(id, (chunk = createPendingChunk(response))); - if ("pending" === chunk.status || "blocked" === chunk.status) - releasePendingChunk(response, chunk), - (response = chunk), - (response.status = "halted"), - (response.value = null), - (response.reason = null); - } - function resolveModel(response, id, model) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk - ? resolveModelChunk(response, chunk, model) - : chunks.set(id, new ReactPromise("resolved_model", model, response)); - } - function resolveText(response, id, text) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk && "pending" !== chunk.status - ? chunk.reason.enqueueValue(text) - : (chunk && releasePendingChunk(response, chunk), - chunks.set(id, new ReactPromise("fulfilled", text, null))); - } function resolveBuffer(response, id, buffer) { var chunks = response._chunks, chunk = chunks.get(id); @@ -1965,15 +2029,39 @@ function resolveStream(response, id, stream, controller) { var chunks = response._chunks, chunk = chunks.get(id); - chunk - ? "pending" === chunk.status && - (releasePendingChunk(response, chunk), - (response = chunk.value), - (chunk.status = "fulfilled"), - (chunk.value = stream), - (chunk.reason = controller), - null !== response && wakeChunk(response, chunk.value)) - : chunks.set(id, new ReactPromise("fulfilled", stream, controller)); + if (!chunk) + chunks.set(id, new ReactPromise("fulfilled", stream, controller)); + else if ("pending" === chunk.status) { + releasePendingChunk(response, chunk); + id = chunk.value; + if (null != chunk._debugChunk) { + chunks = initializingHandler; + initializingHandler = null; + chunk.status = "blocked"; + chunk.value = null; + chunk.reason = null; + try { + if ( + (initializeDebugChunk(response, chunk), + (chunk._debugChunk = null), + null !== initializingHandler && + !initializingHandler.errored && + 0 < initializingHandler.deps) + ) { + initializingHandler.value = stream; + initializingHandler.reason = controller; + initializingHandler.chunk = chunk; + return; + } + } finally { + initializingHandler = chunks; + } + } + chunk.status = "fulfilled"; + chunk.value = stream; + chunk.reason = controller; + null !== id && wakeChunk(id, chunk.value); + } } function startReadableStream(response, id, type) { var controller = null; @@ -1994,7 +2082,7 @@ }, enqueueModel: function (json) { if (null === previousBlockedChunk) { - var chunk = new ReactPromise("resolved_model", json, response); + var chunk = createResolvedModelChunk(response, json); initializeModelChunk(chunk); "fulfilled" === chunk.status ? controller.enqueue(chunk.value) @@ -2156,11 +2244,6 @@ } ); } - function stopStream(response, id, row) { - (response = response._chunks.get(id)) && - "fulfilled" === response.status && - response.reason.close("" === row ? '"$undefined"' : row); - } function resolveErrorDev(response, errorInfo) { var name = errorInfo.name, env = errorInfo.env; @@ -2181,50 +2264,6 @@ response.environmentName = env; return response; } - function resolveHint(response, code, model) { - response = JSON.parse(model, response._fromJSON); - model = ReactDOMSharedInternals.d; - switch (code) { - case "D": - model.D(response); - break; - case "C": - "string" === typeof response - ? model.C(response) - : model.C(response[0], response[1]); - break; - case "L": - code = response[0]; - var as = response[1]; - 3 === response.length - ? model.L(code, as, response[2]) - : model.L(code, as); - break; - case "m": - "string" === typeof response - ? model.m(response) - : model.m(response[0], response[1]); - break; - case "X": - "string" === typeof response - ? model.X(response) - : model.X(response[0], response[1]); - break; - case "S": - "string" === typeof response - ? model.S(response) - : model.S( - response[0], - 0 === response[1] ? void 0 : response[1], - 3 === response.length ? response[2] : void 0 - ); - break; - case "M": - "string" === typeof response - ? model.M(response) - : model.M(response[0], response[1]); - } - } function createFakeFunction( name, filename, @@ -2436,7 +2475,7 @@ (owner.debugLocation = debugInfo.debugStack)); } } - function resolveDebugInfo(response, id, debugInfo) { + function initializeDebugInfo(response, debugInfo) { void 0 !== debugInfo.stack && initializeFakeTask(response, debugInfo); null == debugInfo.owner && null != response._debugRootOwner ? ((debugInfo.owner = response._debugRootOwner), @@ -2445,8 +2484,7 @@ (debugInfo.debugTask = response._debugRootTask)) : void 0 !== debugInfo.stack && initializeFakeStack(response, debugInfo); - response = getChunk(response, id); - (response._debugInfo || (response._debugInfo = [])).push(debugInfo); + return debugInfo; } function getCurrentStackInDEV() { var owner = currentOwnerInDEV; @@ -2503,22 +2541,37 @@ } return JSCompiler_inline_result$jscomp$0; } - function resolveConsoleEntry(response, value) { + function resolveConsoleEntry(response, json) { if (response._replayConsole) { - var payload = JSON.parse(value, response._fromJSON); - value = payload[0]; - var stackTrace = payload[1], - owner = payload[2], - env = payload[3]; - payload = payload.slice(4); - replayConsoleWithCallStackInDEV( - response, - value, - stackTrace, - owner, - env, - payload - ); + var blockedChunk = response._blockedConsole; + if (null == blockedChunk) + (blockedChunk = createResolvedModelChunk(response, json)), + initializeModelChunk(blockedChunk), + "fulfilled" === blockedChunk.status + ? replayConsoleWithCallStackInDEV(response, blockedChunk.value) + : (blockedChunk.then( + function (v) { + return replayConsoleWithCallStackInDEV(response, v); + }, + function () {} + ), + (response._blockedConsole = blockedChunk)); + else { + var _chunk4 = createPendingChunk(response); + _chunk4.then( + function (v) { + return replayConsoleWithCallStackInDEV(response, v); + }, + function () {} + ); + response._blockedConsole = _chunk4; + var unblock = function () { + response._blockedConsole === _chunk4 && + (response._blockedConsole = null); + resolveModelChunk(response, _chunk4, json); + }; + blockedChunk.then(unblock, unblock); + } } } function mergeBuffer(buffer, lastChunk) { @@ -2618,33 +2671,89 @@ resolveModule(response, id, row); break; case 72: - resolveHint(response, row[0], row.slice(1)); + id = row[0]; + row = row.slice(1); + response = JSON.parse(row, response._fromJSON); + row = ReactDOMSharedInternals.d; + switch (id) { + case "D": + row.D(response); + break; + case "C": + "string" === typeof response + ? row.C(response) + : row.C(response[0], response[1]); + break; + case "L": + id = response[0]; + tag = response[1]; + 3 === response.length + ? row.L(id, tag, response[2]) + : row.L(id, tag); + break; + case "m": + "string" === typeof response + ? row.m(response) + : row.m(response[0], response[1]); + break; + case "X": + "string" === typeof response + ? row.X(response) + : row.X(response[0], response[1]); + break; + case "S": + "string" === typeof response + ? row.S(response) + : row.S( + response[0], + 0 === response[1] ? void 0 : response[1], + 3 === response.length ? response[2] : void 0 + ); + break; + case "M": + "string" === typeof response + ? row.M(response) + : row.M(response[0], response[1]); + } break; case 69: + tag = response._chunks; + var chunk = tag.get(id); row = JSON.parse(row); - tag = resolveErrorDev(response, row); - tag.digest = row.digest; - row = response._chunks; - var chunk = row.get(id); + var error = resolveErrorDev(response, row); + error.digest = row.digest; chunk - ? triggerErrorOnChunk(response, chunk, tag) - : row.set(id, new ReactPromise("rejected", null, tag)); + ? triggerErrorOnChunk(response, chunk, error) + : tag.set(id, new ReactPromise("rejected", null, error)); break; case 84: - resolveText(response, id, row); + tag = response._chunks; + (chunk = tag.get(id)) && "pending" !== chunk.status + ? chunk.reason.enqueueValue(row) + : (chunk && releasePendingChunk(response, chunk), + tag.set(id, new ReactPromise("fulfilled", row, null))); break; case 78: case 68: - tag = new ReactPromise("resolved_model", row, response); - initializeModelChunk(tag); - "fulfilled" === tag.status - ? resolveDebugInfo(response, id, tag.value) - : tag.then( - function (v) { - return resolveDebugInfo(response, id, v); - }, - function () {} - ); + id = getChunk(response, id); + "fulfilled" !== id.status && + "rejected" !== id.status && + "halted" !== id.status && + "blocked" !== id.status && + "resolved_module" !== id.status && + ((tag = id._debugChunk), + (chunk = createResolvedModelChunk(response, row)), + (chunk._debugChunk = tag), + (id._debugChunk = chunk), + initializeDebugChunk(response, id), + "blocked" === chunk.status && + void 0 === response._debugChannel && + '"' === row[0] && + "$" === row[1] && + ((row = row.slice(2, row.length - 1).split(":")), + (row = parseInt(row[0], 16)), + "pending" === getChunk(response, row).status && + (id._debugChunk = null))); break; case 74: case 87: @@ -2663,12 +2772,28 @@ startAsyncIterable(response, id, !0); break; case 67: - stopStream(response, id, row); + (response = response._chunks.get(id)) && + "fulfilled" === response.status && + response.reason.close("" === row ? '"$undefined"' : row); break; default: - "" === row - ? resolveDebugHalt(response, id) - : resolveModel(response, id, row); + if ("" === row) { + if ( + ((row = response._chunks), + (tag = row.get(id)) || + row.set(id, (tag = createPendingChunk(response))), + "pending" === tag.status || "blocked" === tag.status) + ) + releasePendingChunk(response, tag), + (response = tag), + (response.status = "halted"), + (response.value = null), + (response.reason = null); + } else + (tag = response._chunks), + (chunk = tag.get(id)) + ? resolveModelChunk(response, chunk, row) + : tag.set(id, createResolvedModelChunk(response, row)); } } function processBinaryChunk(weakResponse, streamState, chunk) { @@ -2811,7 +2936,7 @@ validated = initializingHandler; initializingHandler = validated.parent; if (validated.errored) { - key = new ReactPromise("rejected", null, validated.value); + key = new ReactPromise("rejected", null, validated.reason); initializeElement(response, value); validated = { name: getComponentNameFromType(value.type) || "", @@ -3115,14 +3240,12 @@ ), currentOwnerInDEV = null, replayConsoleWithCallStack = { - react_stack_bottom_frame: function ( - response, - methodName, - stackTrace, - owner, - env, - args - ) { + react_stack_bottom_frame: function (response, payload) { + var methodName = payload[0], + stackTrace = payload[1], + owner = payload[2], + env = payload[3]; + payload = payload.slice(4); var prevStack = ReactSharedInternals.getCurrentStack; ReactSharedInternals.getCurrentStack = getCurrentStackInDEV; currentOwnerInDEV = null === owner ? response._debugRootOwner : owner; @@ -3136,13 +3259,13 @@ case "table": var JSCompiler_inline_result = bind.apply( console[methodName], - [console].concat(args) + [console].concat(payload) ); break a; case "assert": offset = 1; } - var newArgs = args.slice(0); + var newArgs = payload.slice(0); "string" === typeof newArgs[offset] ? newArgs.splice( offset, @@ -3205,10 +3328,10 @@ return hook.checkDCE ? !0 : !1; })({ bundleType: 1, - version: "19.2.0-canary-dffacc7b-20250717", + version: "19.2.0-canary-e9638c33-20250721", rendererPackageName: "react-server-dom-webpack", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-canary-dffacc7b-20250717", + reconcilerVersion: "19.2.0-canary-e9638c33-20250721", getCurrentComponentInfo: function () { return currentOwnerInDEV; } 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 5693b38fc4d3d..0e065282fcc44 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 @@ -718,7 +718,7 @@ function initializeModelChunk(chunk) { (chunk.reason = null), wakeChunk(resolveListeners, value)); if (null !== initializingHandler) { - if (initializingHandler.errored) throw initializingHandler.value; + if (initializingHandler.errored) throw initializingHandler.reason; if (0 < initializingHandler.deps) { initializingHandler.value = value; initializingHandler.chunk = chunk; @@ -835,6 +835,7 @@ function fulfillReference(reference, value) { ((parentObject = key.value), (key.status = "fulfilled"), (key.value = handler.value), + (key.reason = handler.reason), null !== parentObject && wakeChunk(parentObject, handler.value))); } function rejectReference(reference, error) { @@ -842,7 +843,8 @@ function rejectReference(reference, error) { reference = reference.response; handler.errored || ((handler.errored = !0), - (handler.value = error), + (handler.value = null), + (handler.reason = error), (handler = handler.chunk), null !== handler && "blocked" === handler.status && @@ -864,6 +866,7 @@ function waitForReference( parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -908,6 +911,7 @@ function loadServerReference(response, metaData, parentObject, key) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -945,7 +949,8 @@ function loadServerReference(response, metaData, parentObject, key) { function (error) { if (!handler.errored) { handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; var chunk = handler.chunk; null !== chunk && "blocked" === chunk.status && @@ -1001,6 +1006,7 @@ function getOutlinedModel(response, reference, parentObject, key, map) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1010,11 +1016,13 @@ function getOutlinedModel(response, reference, parentObject, key, map) { return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = value.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = value.reason)) : (initializingHandler = { parent: null, chunk: null, - value: value.reason, + value: null, + reason: value.reason, deps: 0, errored: !0 }), @@ -1036,6 +1044,7 @@ function getOutlinedModel(response, reference, parentObject, key, map) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1045,11 +1054,13 @@ function getOutlinedModel(response, reference, parentObject, key, map) { return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = id.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = id.reason)) : (initializingHandler = { parent: null, chunk: null, - value: id.reason, + value: null, + reason: id.reason, deps: 0, errored: !0 }), @@ -1088,6 +1099,7 @@ function parseModelString(response, parentObject, key, value) { parent: initializingHandler, chunk: null, value: null, + reason: null, deps: 0, errored: !1 }), @@ -1571,13 +1583,14 @@ function processFullBinaryRow(response, id, tag, buffer, chunk) { } break; case 69: - tag = JSON.parse(buffer); - buffer = resolveErrorProd(); - buffer.digest = tag.digest; tag = response._chunks; - (chunk = tag.get(id)) - ? triggerErrorOnChunk(response, chunk, buffer) - : tag.set(id, new ReactPromise("rejected", null, buffer)); + chunk = tag.get(id); + buffer = JSON.parse(buffer); + stringDecoder = resolveErrorProd(); + stringDecoder.digest = buffer.digest; + chunk + ? triggerErrorOnChunk(response, chunk, stringDecoder) + : tag.set(id, new ReactPromise("rejected", null, stringDecoder)); break; case 84: response = response._chunks; @@ -1637,7 +1650,7 @@ function createFromJSONCallback(response) { (initializingHandler = value.parent), value.errored) ) - (key = new ReactPromise("rejected", null, value.value)), + (key = new ReactPromise("rejected", null, value.reason)), (key = createLazyChunkWrapper(key)); else if (0 < value.deps) { var blockedChunk = new ReactPromise("blocked", null, null); 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 5d55e9bc14ff8..7e2ed512c7aa8 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 @@ -1124,7 +1124,7 @@ this.status = status; this.value = value; this.reason = reason; - this._debugInfo = null; + this._debugInfo = this._debugChunk = null; } function unwrapWeakResponse(weakResponse) { weakResponse = weakResponse.weak.deref(); @@ -1253,13 +1253,30 @@ } } function triggerErrorOnChunk(response, chunk, error) { - "pending" !== chunk.status && "blocked" !== chunk.status - ? chunk.reason.error(error) - : (releasePendingChunk(response, chunk), - (response = chunk.reason), - (chunk.status = "rejected"), - (chunk.reason = error), - null !== response && rejectChunk(response, error)); + if ("pending" !== chunk.status && "blocked" !== chunk.status) + chunk.reason.error(error); + else { + releasePendingChunk(response, chunk); + var listeners = chunk.reason; + if ("pending" === chunk.status && null != chunk._debugChunk) { + var prevHandler = initializingHandler; + initializingHandler = null; + chunk.status = "blocked"; + chunk.value = null; + chunk.reason = null; + try { + initializeDebugChunk(response, chunk), (chunk._debugChunk = null); + } finally { + initializingHandler = prevHandler; + } + } + chunk.status = "rejected"; + chunk.reason = error; + null !== listeners && rejectChunk(listeners, error); + } + } + function createResolvedModelChunk(response, value) { + return new ReactPromise("resolved_model", value, response); } function createResolvedIteratorResultChunk(response, value, done) { return new ReactPromise( @@ -1300,11 +1317,69 @@ var rejectListeners = chunk.reason; chunk.status = "resolved_module"; chunk.value = value; + chunk._debugInfo = null; null !== response && (initializeModuleChunk(chunk), wakeChunkIfInitialized(chunk, response, rejectListeners)); } } + function initializeDebugChunk(response, chunk) { + var debugChunk = chunk._debugChunk; + if (null !== debugChunk) { + var debugInfo = chunk._debugInfo || (chunk._debugInfo = []); + try { + if ("resolved_model" === debugChunk.status) { + for ( + var idx = debugInfo.length, c = debugChunk._debugChunk; + null !== c; + + ) + "fulfilled" !== c.status && idx++, (c = c._debugChunk); + initializeModelChunk(debugChunk); + switch (debugChunk.status) { + case "fulfilled": + debugInfo[idx] = initializeDebugInfo( + response, + debugChunk.value + ); + break; + case "blocked": + case "pending": + waitForReference( + debugChunk, + debugInfo, + "" + idx, + response, + initializeDebugInfo, + [""] + ); + break; + default: + throw debugChunk.reason; + } + } else + switch (debugChunk.status) { + case "fulfilled": + break; + case "blocked": + case "pending": + waitForReference( + debugChunk, + {}, + "", + response, + initializeDebugInfo, + [""] + ); + break; + default: + throw debugChunk.reason; + } + } catch (error) { + triggerErrorOnChunk(response, chunk, error); + } + } + } function initializeModelChunk(chunk) { var prevHandler = initializingHandler; initializingHandler = null; @@ -1313,6 +1388,8 @@ chunk.status = "blocked"; chunk.value = null; chunk.reason = null; + initializeDebugChunk(response, chunk); + chunk._debugChunk = null; try { var value = JSON.parse(resolvedModel, response._fromJSON), resolveListeners = chunk.value; @@ -1321,7 +1398,7 @@ (chunk.reason = null), wakeChunk(resolveListeners, value)); if (null !== initializingHandler) { - if (initializingHandler.errored) throw initializingHandler.value; + if (initializingHandler.errored) throw initializingHandler.reason; if (0 < initializingHandler.deps) { initializingHandler.value = value; initializingHandler.chunk = chunk; @@ -1515,6 +1592,7 @@ ((parentObject = key.value), (key.status = "fulfilled"), (key.value = handler.value), + (key.reason = handler.reason), null !== parentObject && wakeChunk(parentObject, handler.value))); } function rejectReference(reference, error) { @@ -1523,7 +1601,8 @@ if (!handler.errored) { var blockedValue = handler.value; handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; handler = handler.chunk; if (null !== handler && "blocked" === handler.status) { if ( @@ -1569,6 +1648,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1623,6 +1703,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1671,7 +1752,8 @@ if (!handler.errored) { var blockedValue = handler.value; handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; var chunk = handler.chunk; if (null !== chunk && "blocked" === chunk.status) { if ( @@ -1742,6 +1824,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1751,11 +1834,13 @@ return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = value.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = value.reason)) : (initializingHandler = { parent: null, chunk: null, - value: value.reason, + value: null, + reason: value.reason, deps: 0, errored: !0 }), @@ -1798,6 +1883,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1807,11 +1893,13 @@ return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = id.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = id.reason)) : (initializingHandler = { parent: null, chunk: null, - value: id.reason, + value: null, + reason: id.reason, deps: 0, errored: !0 }), @@ -1870,6 +1958,7 @@ parent: initializingHandler, chunk: null, value: null, + reason: null, deps: 0, errored: !1 }), @@ -2093,6 +2182,7 @@ )); this._debugFindSourceMapURL = findSourceMapURL; this._debugChannel = debugChannel; + this._blockedConsole = null; this._replayConsole = replayConsole; this._rootEnvironmentName = environmentName; debugChannel && @@ -2101,32 +2191,6 @@ : debugChannelRegistry.register(this, debugChannel)); this._fromJSON = createFromJSONCallback(this); } - function resolveDebugHalt(response, id) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk || chunks.set(id, (chunk = createPendingChunk(response))); - if ("pending" === chunk.status || "blocked" === chunk.status) - releasePendingChunk(response, chunk), - (response = chunk), - (response.status = "halted"), - (response.value = null), - (response.reason = null); - } - function resolveModel(response, id, model) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk - ? resolveModelChunk(response, chunk, model) - : chunks.set(id, new ReactPromise("resolved_model", model, response)); - } - function resolveText(response, id, text) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk && "pending" !== chunk.status - ? chunk.reason.enqueueValue(text) - : (chunk && releasePendingChunk(response, chunk), - chunks.set(id, new ReactPromise("fulfilled", text, null))); - } function resolveBuffer(response, id, buffer) { var chunks = response._chunks, chunk = chunks.get(id); @@ -2175,15 +2239,39 @@ function resolveStream(response, id, stream, controller) { var chunks = response._chunks, chunk = chunks.get(id); - chunk - ? "pending" === chunk.status && - (releasePendingChunk(response, chunk), - (response = chunk.value), - (chunk.status = "fulfilled"), - (chunk.value = stream), - (chunk.reason = controller), - null !== response && wakeChunk(response, chunk.value)) - : chunks.set(id, new ReactPromise("fulfilled", stream, controller)); + if (!chunk) + chunks.set(id, new ReactPromise("fulfilled", stream, controller)); + else if ("pending" === chunk.status) { + releasePendingChunk(response, chunk); + id = chunk.value; + if (null != chunk._debugChunk) { + chunks = initializingHandler; + initializingHandler = null; + chunk.status = "blocked"; + chunk.value = null; + chunk.reason = null; + try { + if ( + (initializeDebugChunk(response, chunk), + (chunk._debugChunk = null), + null !== initializingHandler && + !initializingHandler.errored && + 0 < initializingHandler.deps) + ) { + initializingHandler.value = stream; + initializingHandler.reason = controller; + initializingHandler.chunk = chunk; + return; + } + } finally { + initializingHandler = chunks; + } + } + chunk.status = "fulfilled"; + chunk.value = stream; + chunk.reason = controller; + null !== id && wakeChunk(id, chunk.value); + } } function startReadableStream(response, id, type) { var controller = null; @@ -2204,7 +2292,7 @@ }, enqueueModel: function (json) { if (null === previousBlockedChunk) { - var chunk = new ReactPromise("resolved_model", json, response); + var chunk = createResolvedModelChunk(response, json); initializeModelChunk(chunk); "fulfilled" === chunk.status ? controller.enqueue(chunk.value) @@ -2366,11 +2454,6 @@ } ); } - function stopStream(response, id, row) { - (response = response._chunks.get(id)) && - "fulfilled" === response.status && - response.reason.close("" === row ? '"$undefined"' : row); - } function resolveErrorDev(response, errorInfo) { var name = errorInfo.name, env = errorInfo.env; @@ -2391,50 +2474,6 @@ response.environmentName = env; return response; } - function resolveHint(response, code, model) { - response = JSON.parse(model, response._fromJSON); - model = ReactDOMSharedInternals.d; - switch (code) { - case "D": - model.D(response); - break; - case "C": - "string" === typeof response - ? model.C(response) - : model.C(response[0], response[1]); - break; - case "L": - code = response[0]; - var as = response[1]; - 3 === response.length - ? model.L(code, as, response[2]) - : model.L(code, as); - break; - case "m": - "string" === typeof response - ? model.m(response) - : model.m(response[0], response[1]); - break; - case "X": - "string" === typeof response - ? model.X(response) - : model.X(response[0], response[1]); - break; - case "S": - "string" === typeof response - ? model.S(response) - : model.S( - response[0], - 0 === response[1] ? void 0 : response[1], - 3 === response.length ? response[2] : void 0 - ); - break; - case "M": - "string" === typeof response - ? model.M(response) - : model.M(response[0], response[1]); - } - } function createFakeFunction( name, filename, @@ -2646,7 +2685,7 @@ (owner.debugLocation = debugInfo.debugStack)); } } - function resolveDebugInfo(response, id, debugInfo) { + function initializeDebugInfo(response, debugInfo) { void 0 !== debugInfo.stack && initializeFakeTask(response, debugInfo); null == debugInfo.owner && null != response._debugRootOwner ? ((debugInfo.owner = response._debugRootOwner), @@ -2655,8 +2694,7 @@ (debugInfo.debugTask = response._debugRootTask)) : void 0 !== debugInfo.stack && initializeFakeStack(response, debugInfo); - response = getChunk(response, id); - (response._debugInfo || (response._debugInfo = [])).push(debugInfo); + return debugInfo; } function getCurrentStackInDEV() { var owner = currentOwnerInDEV; @@ -2713,22 +2751,37 @@ } return JSCompiler_inline_result$jscomp$0; } - function resolveConsoleEntry(response, value) { + function resolveConsoleEntry(response, json) { if (response._replayConsole) { - var payload = JSON.parse(value, response._fromJSON); - value = payload[0]; - var stackTrace = payload[1], - owner = payload[2], - env = payload[3]; - payload = payload.slice(4); - replayConsoleWithCallStackInDEV( - response, - value, - stackTrace, - owner, - env, - payload - ); + var blockedChunk = response._blockedConsole; + if (null == blockedChunk) + (blockedChunk = createResolvedModelChunk(response, json)), + initializeModelChunk(blockedChunk), + "fulfilled" === blockedChunk.status + ? replayConsoleWithCallStackInDEV(response, blockedChunk.value) + : (blockedChunk.then( + function (v) { + return replayConsoleWithCallStackInDEV(response, v); + }, + function () {} + ), + (response._blockedConsole = blockedChunk)); + else { + var _chunk4 = createPendingChunk(response); + _chunk4.then( + function (v) { + return replayConsoleWithCallStackInDEV(response, v); + }, + function () {} + ); + response._blockedConsole = _chunk4; + var unblock = function () { + response._blockedConsole === _chunk4 && + (response._blockedConsole = null); + resolveModelChunk(response, _chunk4, json); + }; + blockedChunk.then(unblock, unblock); + } } } function mergeBuffer(buffer, lastChunk) { @@ -2819,46 +2872,99 @@ i++ ) row += stringDecoder.decode(buffer[i], decoderOptions); - row += stringDecoder.decode(chunk); - processFullStringRow(response, id, tag, row); - } - function processFullStringRow(response, id, tag, row) { + buffer = row += stringDecoder.decode(chunk); switch (tag) { case 73: - resolveModule(response, id, row); + resolveModule(response, id, buffer); break; case 72: - resolveHint(response, row[0], row.slice(1)); + id = buffer[0]; + buffer = buffer.slice(1); + response = JSON.parse(buffer, response._fromJSON); + buffer = ReactDOMSharedInternals.d; + switch (id) { + case "D": + buffer.D(response); + break; + case "C": + "string" === typeof response + ? buffer.C(response) + : buffer.C(response[0], response[1]); + break; + case "L": + id = response[0]; + tag = response[1]; + 3 === response.length + ? buffer.L(id, tag, response[2]) + : buffer.L(id, tag); + break; + case "m": + "string" === typeof response + ? buffer.m(response) + : buffer.m(response[0], response[1]); + break; + case "X": + "string" === typeof response + ? buffer.X(response) + : buffer.X(response[0], response[1]); + break; + case "S": + "string" === typeof response + ? buffer.S(response) + : buffer.S( + response[0], + 0 === response[1] ? void 0 : response[1], + 3 === response.length ? response[2] : void 0 + ); + break; + case "M": + "string" === typeof response + ? buffer.M(response) + : buffer.M(response[0], response[1]); + } break; case 69: - row = JSON.parse(row); - tag = resolveErrorDev(response, row); - tag.digest = row.digest; - row = response._chunks; - var chunk = row.get(id); + tag = response._chunks; + chunk = tag.get(id); + buffer = JSON.parse(buffer); + stringDecoder = resolveErrorDev(response, buffer); + stringDecoder.digest = buffer.digest; chunk - ? triggerErrorOnChunk(response, chunk, tag) - : row.set(id, new ReactPromise("rejected", null, tag)); + ? triggerErrorOnChunk(response, chunk, stringDecoder) + : tag.set(id, new ReactPromise("rejected", null, stringDecoder)); break; case 84: - resolveText(response, id, row); + tag = response._chunks; + (chunk = tag.get(id)) && "pending" !== chunk.status + ? chunk.reason.enqueueValue(buffer) + : (chunk && releasePendingChunk(response, chunk), + tag.set(id, new ReactPromise("fulfilled", buffer, null))); break; case 78: case 68: - tag = new ReactPromise("resolved_model", row, response); - initializeModelChunk(tag); - "fulfilled" === tag.status - ? resolveDebugInfo(response, id, tag.value) - : tag.then( - function (v) { - return resolveDebugInfo(response, id, v); - }, - function () {} - ); + id = getChunk(response, id); + "fulfilled" !== id.status && + "rejected" !== id.status && + "halted" !== id.status && + "blocked" !== id.status && + "resolved_module" !== id.status && + ((tag = id._debugChunk), + (chunk = createResolvedModelChunk(response, buffer)), + (chunk._debugChunk = tag), + (id._debugChunk = chunk), + initializeDebugChunk(response, id), + "blocked" === chunk.status && + void 0 === response._debugChannel && + '"' === buffer[0] && + "$" === buffer[1] && + ((buffer = buffer.slice(2, buffer.length - 1).split(":")), + (buffer = parseInt(buffer[0], 16)), + "pending" === getChunk(response, buffer).status && + (id._debugChunk = null))); break; case 74: case 87: - resolveConsoleEntry(response, row); + resolveConsoleEntry(response, buffer); break; case 82: startReadableStream(response, id, void 0); @@ -2873,12 +2979,28 @@ startAsyncIterable(response, id, !0); break; case 67: - stopStream(response, id, row); + (response = response._chunks.get(id)) && + "fulfilled" === response.status && + response.reason.close("" === buffer ? '"$undefined"' : buffer); break; default: - "" === row - ? resolveDebugHalt(response, id) - : resolveModel(response, id, row); + if ("" === buffer) { + if ( + ((buffer = response._chunks), + (tag = buffer.get(id)) || + buffer.set(id, (tag = createPendingChunk(response))), + "pending" === tag.status || "blocked" === tag.status) + ) + releasePendingChunk(response, tag), + (response = tag), + (response.status = "halted"), + (response.value = null), + (response.reason = null); + } else + (tag = response._chunks), + (chunk = tag.get(id)) + ? resolveModelChunk(response, chunk, buffer) + : tag.set(id, createResolvedModelChunk(response, buffer)); } } function createFromJSONCallback(response) { @@ -2931,7 +3053,7 @@ validated = initializingHandler; initializingHandler = validated.parent; if (validated.errored) { - key = new ReactPromise("rejected", null, validated.value); + key = new ReactPromise("rejected", null, validated.reason); initializeElement(response, value); validated = { name: getComponentNameFromType(value.type) || "", @@ -3196,14 +3318,12 @@ ), currentOwnerInDEV = null, replayConsoleWithCallStack = { - react_stack_bottom_frame: function ( - response, - methodName, - stackTrace, - owner, - env, - args - ) { + react_stack_bottom_frame: function (response, payload) { + var methodName = payload[0], + stackTrace = payload[1], + owner = payload[2], + env = payload[3]; + payload = payload.slice(4); var prevStack = ReactSharedInternals.getCurrentStack; ReactSharedInternals.getCurrentStack = getCurrentStackInDEV; currentOwnerInDEV = null === owner ? response._debugRootOwner : owner; @@ -3217,13 +3337,13 @@ case "table": var JSCompiler_inline_result = bind$1.apply( console[methodName], - [console].concat(args) + [console].concat(payload) ); break a; case "assert": offset = 1; } - var newArgs = args.slice(0); + var newArgs = payload.slice(0); "string" === typeof newArgs[offset] ? newArgs.splice( offset, 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 7cd50a65ded1c..d4fda906c365f 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 @@ -879,7 +879,7 @@ function initializeModelChunk(chunk) { (chunk.reason = null), wakeChunk(resolveListeners, value)); if (null !== initializingHandler) { - if (initializingHandler.errored) throw initializingHandler.value; + if (initializingHandler.errored) throw initializingHandler.reason; if (0 < initializingHandler.deps) { initializingHandler.value = value; initializingHandler.chunk = chunk; @@ -996,6 +996,7 @@ function fulfillReference(reference, value) { ((parentObject = key.value), (key.status = "fulfilled"), (key.value = handler.value), + (key.reason = handler.reason), null !== parentObject && wakeChunk(parentObject, handler.value))); } function rejectReference(reference, error) { @@ -1003,7 +1004,8 @@ function rejectReference(reference, error) { reference = reference.response; handler.errored || ((handler.errored = !0), - (handler.value = error), + (handler.value = null), + (handler.reason = error), (handler = handler.chunk), null !== handler && "blocked" === handler.status && @@ -1025,6 +1027,7 @@ function waitForReference( parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1078,6 +1081,7 @@ function loadServerReference(response, metaData, parentObject, key) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1120,7 +1124,8 @@ function loadServerReference(response, metaData, parentObject, key) { function (error) { if (!handler.errored) { handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; var chunk = handler.chunk; null !== chunk && "blocked" === chunk.status && @@ -1176,6 +1181,7 @@ function getOutlinedModel(response, reference, parentObject, key, map) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1185,11 +1191,13 @@ function getOutlinedModel(response, reference, parentObject, key, map) { return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = value.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = value.reason)) : (initializingHandler = { parent: null, chunk: null, - value: value.reason, + value: null, + reason: value.reason, deps: 0, errored: !0 }), @@ -1211,6 +1219,7 @@ function getOutlinedModel(response, reference, parentObject, key, map) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1220,11 +1229,13 @@ function getOutlinedModel(response, reference, parentObject, key, map) { return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = id.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = id.reason)) : (initializingHandler = { parent: null, chunk: null, - value: id.reason, + value: null, + reason: id.reason, deps: 0, errored: !0 }), @@ -1263,6 +1274,7 @@ function parseModelString(response, parentObject, key, value) { parent: initializingHandler, chunk: null, value: null, + reason: null, deps: 0, errored: !1 }), @@ -1751,13 +1763,14 @@ function processFullBinaryRow(response, id, tag, buffer, chunk) { } break; case 69: - tag = JSON.parse(buffer); - buffer = resolveErrorProd(); - buffer.digest = tag.digest; tag = response._chunks; - (chunk = tag.get(id)) - ? triggerErrorOnChunk(response, chunk, buffer) - : tag.set(id, new ReactPromise("rejected", null, buffer)); + chunk = tag.get(id); + buffer = JSON.parse(buffer); + stringDecoder = resolveErrorProd(); + stringDecoder.digest = buffer.digest; + chunk + ? triggerErrorOnChunk(response, chunk, stringDecoder) + : tag.set(id, new ReactPromise("rejected", null, stringDecoder)); break; case 84: response = response._chunks; @@ -1817,7 +1830,7 @@ function createFromJSONCallback(response) { (initializingHandler = value.parent), value.errored) ) - (key = new ReactPromise("rejected", null, value.value)), + (key = new ReactPromise("rejected", null, value.reason)), (key = createLazyChunkWrapper(key)); else if (0 < value.deps) { var blockedChunk = new ReactPromise("blocked", null, null); 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 086fe0fd9ecb0..73229613613db 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 @@ -1124,7 +1124,7 @@ this.status = status; this.value = value; this.reason = reason; - this._debugInfo = null; + this._debugInfo = this._debugChunk = null; } function unwrapWeakResponse(weakResponse) { weakResponse = weakResponse.weak.deref(); @@ -1253,13 +1253,30 @@ } } function triggerErrorOnChunk(response, chunk, error) { - "pending" !== chunk.status && "blocked" !== chunk.status - ? chunk.reason.error(error) - : (releasePendingChunk(response, chunk), - (response = chunk.reason), - (chunk.status = "rejected"), - (chunk.reason = error), - null !== response && rejectChunk(response, error)); + if ("pending" !== chunk.status && "blocked" !== chunk.status) + chunk.reason.error(error); + else { + releasePendingChunk(response, chunk); + var listeners = chunk.reason; + if ("pending" === chunk.status && null != chunk._debugChunk) { + var prevHandler = initializingHandler; + initializingHandler = null; + chunk.status = "blocked"; + chunk.value = null; + chunk.reason = null; + try { + initializeDebugChunk(response, chunk), (chunk._debugChunk = null); + } finally { + initializingHandler = prevHandler; + } + } + chunk.status = "rejected"; + chunk.reason = error; + null !== listeners && rejectChunk(listeners, error); + } + } + function createResolvedModelChunk(response, value) { + return new ReactPromise("resolved_model", value, response); } function createResolvedIteratorResultChunk(response, value, done) { return new ReactPromise( @@ -1300,11 +1317,69 @@ var rejectListeners = chunk.reason; chunk.status = "resolved_module"; chunk.value = value; + chunk._debugInfo = null; null !== response && (initializeModuleChunk(chunk), wakeChunkIfInitialized(chunk, response, rejectListeners)); } } + function initializeDebugChunk(response, chunk) { + var debugChunk = chunk._debugChunk; + if (null !== debugChunk) { + var debugInfo = chunk._debugInfo || (chunk._debugInfo = []); + try { + if ("resolved_model" === debugChunk.status) { + for ( + var idx = debugInfo.length, c = debugChunk._debugChunk; + null !== c; + + ) + "fulfilled" !== c.status && idx++, (c = c._debugChunk); + initializeModelChunk(debugChunk); + switch (debugChunk.status) { + case "fulfilled": + debugInfo[idx] = initializeDebugInfo( + response, + debugChunk.value + ); + break; + case "blocked": + case "pending": + waitForReference( + debugChunk, + debugInfo, + "" + idx, + response, + initializeDebugInfo, + [""] + ); + break; + default: + throw debugChunk.reason; + } + } else + switch (debugChunk.status) { + case "fulfilled": + break; + case "blocked": + case "pending": + waitForReference( + debugChunk, + {}, + "", + response, + initializeDebugInfo, + [""] + ); + break; + default: + throw debugChunk.reason; + } + } catch (error) { + triggerErrorOnChunk(response, chunk, error); + } + } + } function initializeModelChunk(chunk) { var prevHandler = initializingHandler; initializingHandler = null; @@ -1313,6 +1388,8 @@ chunk.status = "blocked"; chunk.value = null; chunk.reason = null; + initializeDebugChunk(response, chunk); + chunk._debugChunk = null; try { var value = JSON.parse(resolvedModel, response._fromJSON), resolveListeners = chunk.value; @@ -1321,7 +1398,7 @@ (chunk.reason = null), wakeChunk(resolveListeners, value)); if (null !== initializingHandler) { - if (initializingHandler.errored) throw initializingHandler.value; + if (initializingHandler.errored) throw initializingHandler.reason; if (0 < initializingHandler.deps) { initializingHandler.value = value; initializingHandler.chunk = chunk; @@ -1515,6 +1592,7 @@ ((parentObject = key.value), (key.status = "fulfilled"), (key.value = handler.value), + (key.reason = handler.reason), null !== parentObject && wakeChunk(parentObject, handler.value))); } function rejectReference(reference, error) { @@ -1523,7 +1601,8 @@ if (!handler.errored) { var blockedValue = handler.value; handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; handler = handler.chunk; if (null !== handler && "blocked" === handler.status) { if ( @@ -1569,6 +1648,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1623,6 +1703,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1671,7 +1752,8 @@ if (!handler.errored) { var blockedValue = handler.value; handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; var chunk = handler.chunk; if (null !== chunk && "blocked" === chunk.status) { if ( @@ -1742,6 +1824,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1751,11 +1834,13 @@ return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = value.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = value.reason)) : (initializingHandler = { parent: null, chunk: null, - value: value.reason, + value: null, + reason: value.reason, deps: 0, errored: !0 }), @@ -1798,6 +1883,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1807,11 +1893,13 @@ return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = id.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = id.reason)) : (initializingHandler = { parent: null, chunk: null, - value: id.reason, + value: null, + reason: id.reason, deps: 0, errored: !0 }), @@ -1870,6 +1958,7 @@ parent: initializingHandler, chunk: null, value: null, + reason: null, deps: 0, errored: !1 }), @@ -2093,6 +2182,7 @@ )); this._debugFindSourceMapURL = findSourceMapURL; this._debugChannel = debugChannel; + this._blockedConsole = null; this._replayConsole = replayConsole; this._rootEnvironmentName = environmentName; debugChannel && @@ -2110,32 +2200,6 @@ _buffer: [] }; } - function resolveDebugHalt(response, id) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk || chunks.set(id, (chunk = createPendingChunk(response))); - if ("pending" === chunk.status || "blocked" === chunk.status) - releasePendingChunk(response, chunk), - (response = chunk), - (response.status = "halted"), - (response.value = null), - (response.reason = null); - } - function resolveModel(response, id, model) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk - ? resolveModelChunk(response, chunk, model) - : chunks.set(id, new ReactPromise("resolved_model", model, response)); - } - function resolveText(response, id, text) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk && "pending" !== chunk.status - ? chunk.reason.enqueueValue(text) - : (chunk && releasePendingChunk(response, chunk), - chunks.set(id, new ReactPromise("fulfilled", text, null))); - } function resolveBuffer(response, id, buffer) { var chunks = response._chunks, chunk = chunks.get(id); @@ -2184,15 +2248,39 @@ function resolveStream(response, id, stream, controller) { var chunks = response._chunks, chunk = chunks.get(id); - chunk - ? "pending" === chunk.status && - (releasePendingChunk(response, chunk), - (response = chunk.value), - (chunk.status = "fulfilled"), - (chunk.value = stream), - (chunk.reason = controller), - null !== response && wakeChunk(response, chunk.value)) - : chunks.set(id, new ReactPromise("fulfilled", stream, controller)); + if (!chunk) + chunks.set(id, new ReactPromise("fulfilled", stream, controller)); + else if ("pending" === chunk.status) { + releasePendingChunk(response, chunk); + id = chunk.value; + if (null != chunk._debugChunk) { + chunks = initializingHandler; + initializingHandler = null; + chunk.status = "blocked"; + chunk.value = null; + chunk.reason = null; + try { + if ( + (initializeDebugChunk(response, chunk), + (chunk._debugChunk = null), + null !== initializingHandler && + !initializingHandler.errored && + 0 < initializingHandler.deps) + ) { + initializingHandler.value = stream; + initializingHandler.reason = controller; + initializingHandler.chunk = chunk; + return; + } + } finally { + initializingHandler = chunks; + } + } + chunk.status = "fulfilled"; + chunk.value = stream; + chunk.reason = controller; + null !== id && wakeChunk(id, chunk.value); + } } function startReadableStream(response, id, type) { var controller = null; @@ -2213,7 +2301,7 @@ }, enqueueModel: function (json) { if (null === previousBlockedChunk) { - var chunk = new ReactPromise("resolved_model", json, response); + var chunk = createResolvedModelChunk(response, json); initializeModelChunk(chunk); "fulfilled" === chunk.status ? controller.enqueue(chunk.value) @@ -2375,11 +2463,6 @@ } ); } - function stopStream(response, id, row) { - (response = response._chunks.get(id)) && - "fulfilled" === response.status && - response.reason.close("" === row ? '"$undefined"' : row); - } function resolveErrorDev(response, errorInfo) { var name = errorInfo.name, env = errorInfo.env; @@ -2400,50 +2483,6 @@ response.environmentName = env; return response; } - function resolveHint(response, code, model) { - response = JSON.parse(model, response._fromJSON); - model = ReactDOMSharedInternals.d; - switch (code) { - case "D": - model.D(response); - break; - case "C": - "string" === typeof response - ? model.C(response) - : model.C(response[0], response[1]); - break; - case "L": - code = response[0]; - var as = response[1]; - 3 === response.length - ? model.L(code, as, response[2]) - : model.L(code, as); - break; - case "m": - "string" === typeof response - ? model.m(response) - : model.m(response[0], response[1]); - break; - case "X": - "string" === typeof response - ? model.X(response) - : model.X(response[0], response[1]); - break; - case "S": - "string" === typeof response - ? model.S(response) - : model.S( - response[0], - 0 === response[1] ? void 0 : response[1], - 3 === response.length ? response[2] : void 0 - ); - break; - case "M": - "string" === typeof response - ? model.M(response) - : model.M(response[0], response[1]); - } - } function createFakeFunction( name, filename, @@ -2655,7 +2694,7 @@ (owner.debugLocation = debugInfo.debugStack)); } } - function resolveDebugInfo(response, id, debugInfo) { + function initializeDebugInfo(response, debugInfo) { void 0 !== debugInfo.stack && initializeFakeTask(response, debugInfo); null == debugInfo.owner && null != response._debugRootOwner ? ((debugInfo.owner = response._debugRootOwner), @@ -2664,8 +2703,7 @@ (debugInfo.debugTask = response._debugRootTask)) : void 0 !== debugInfo.stack && initializeFakeStack(response, debugInfo); - response = getChunk(response, id); - (response._debugInfo || (response._debugInfo = [])).push(debugInfo); + return debugInfo; } function getCurrentStackInDEV() { var owner = currentOwnerInDEV; @@ -2722,22 +2760,37 @@ } return JSCompiler_inline_result$jscomp$0; } - function resolveConsoleEntry(response, value) { + function resolveConsoleEntry(response, json) { if (response._replayConsole) { - var payload = JSON.parse(value, response._fromJSON); - value = payload[0]; - var stackTrace = payload[1], - owner = payload[2], - env = payload[3]; - payload = payload.slice(4); - replayConsoleWithCallStackInDEV( - response, - value, - stackTrace, - owner, - env, - payload - ); + var blockedChunk = response._blockedConsole; + if (null == blockedChunk) + (blockedChunk = createResolvedModelChunk(response, json)), + initializeModelChunk(blockedChunk), + "fulfilled" === blockedChunk.status + ? replayConsoleWithCallStackInDEV(response, blockedChunk.value) + : (blockedChunk.then( + function (v) { + return replayConsoleWithCallStackInDEV(response, v); + }, + function () {} + ), + (response._blockedConsole = blockedChunk)); + else { + var _chunk4 = createPendingChunk(response); + _chunk4.then( + function (v) { + return replayConsoleWithCallStackInDEV(response, v); + }, + function () {} + ); + response._blockedConsole = _chunk4; + var unblock = function () { + response._blockedConsole === _chunk4 && + (response._blockedConsole = null); + resolveModelChunk(response, _chunk4, json); + }; + blockedChunk.then(unblock, unblock); + } } } function mergeBuffer(buffer, lastChunk) { @@ -2837,33 +2890,89 @@ resolveModule(response, id, row); break; case 72: - resolveHint(response, row[0], row.slice(1)); + id = row[0]; + row = row.slice(1); + response = JSON.parse(row, response._fromJSON); + row = ReactDOMSharedInternals.d; + switch (id) { + case "D": + row.D(response); + break; + case "C": + "string" === typeof response + ? row.C(response) + : row.C(response[0], response[1]); + break; + case "L": + id = response[0]; + tag = response[1]; + 3 === response.length + ? row.L(id, tag, response[2]) + : row.L(id, tag); + break; + case "m": + "string" === typeof response + ? row.m(response) + : row.m(response[0], response[1]); + break; + case "X": + "string" === typeof response + ? row.X(response) + : row.X(response[0], response[1]); + break; + case "S": + "string" === typeof response + ? row.S(response) + : row.S( + response[0], + 0 === response[1] ? void 0 : response[1], + 3 === response.length ? response[2] : void 0 + ); + break; + case "M": + "string" === typeof response + ? row.M(response) + : row.M(response[0], response[1]); + } break; case 69: + tag = response._chunks; + var chunk = tag.get(id); row = JSON.parse(row); - tag = resolveErrorDev(response, row); - tag.digest = row.digest; - row = response._chunks; - var chunk = row.get(id); + var error = resolveErrorDev(response, row); + error.digest = row.digest; chunk - ? triggerErrorOnChunk(response, chunk, tag) - : row.set(id, new ReactPromise("rejected", null, tag)); + ? triggerErrorOnChunk(response, chunk, error) + : tag.set(id, new ReactPromise("rejected", null, error)); break; case 84: - resolveText(response, id, row); + tag = response._chunks; + (chunk = tag.get(id)) && "pending" !== chunk.status + ? chunk.reason.enqueueValue(row) + : (chunk && releasePendingChunk(response, chunk), + tag.set(id, new ReactPromise("fulfilled", row, null))); break; case 78: case 68: - tag = new ReactPromise("resolved_model", row, response); - initializeModelChunk(tag); - "fulfilled" === tag.status - ? resolveDebugInfo(response, id, tag.value) - : tag.then( - function (v) { - return resolveDebugInfo(response, id, v); - }, - function () {} - ); + id = getChunk(response, id); + "fulfilled" !== id.status && + "rejected" !== id.status && + "halted" !== id.status && + "blocked" !== id.status && + "resolved_module" !== id.status && + ((tag = id._debugChunk), + (chunk = createResolvedModelChunk(response, row)), + (chunk._debugChunk = tag), + (id._debugChunk = chunk), + initializeDebugChunk(response, id), + "blocked" === chunk.status && + void 0 === response._debugChannel && + '"' === row[0] && + "$" === row[1] && + ((row = row.slice(2, row.length - 1).split(":")), + (row = parseInt(row[0], 16)), + "pending" === getChunk(response, row).status && + (id._debugChunk = null))); break; case 74: case 87: @@ -2882,12 +2991,28 @@ startAsyncIterable(response, id, !0); break; case 67: - stopStream(response, id, row); + (response = response._chunks.get(id)) && + "fulfilled" === response.status && + response.reason.close("" === row ? '"$undefined"' : row); break; default: - "" === row - ? resolveDebugHalt(response, id) - : resolveModel(response, id, row); + if ("" === row) { + if ( + ((row = response._chunks), + (tag = row.get(id)) || + row.set(id, (tag = createPendingChunk(response))), + "pending" === tag.status || "blocked" === tag.status) + ) + releasePendingChunk(response, tag), + (response = tag), + (response.status = "halted"), + (response.value = null), + (response.reason = null); + } else + (tag = response._chunks), + (chunk = tag.get(id)) + ? resolveModelChunk(response, chunk, row) + : tag.set(id, createResolvedModelChunk(response, row)); } } function processBinaryChunk(weakResponse, streamState, chunk) { @@ -3030,7 +3155,7 @@ validated = initializingHandler; initializingHandler = validated.parent; if (validated.errored) { - key = new ReactPromise("rejected", null, validated.value); + key = new ReactPromise("rejected", null, validated.reason); initializeElement(response, value); validated = { name: getComponentNameFromType(value.type) || "", @@ -3206,14 +3331,12 @@ ), currentOwnerInDEV = null, replayConsoleWithCallStack = { - react_stack_bottom_frame: function ( - response, - methodName, - stackTrace, - owner, - env, - args - ) { + react_stack_bottom_frame: function (response, payload) { + var methodName = payload[0], + stackTrace = payload[1], + owner = payload[2], + env = payload[3]; + payload = payload.slice(4); var prevStack = ReactSharedInternals.getCurrentStack; ReactSharedInternals.getCurrentStack = getCurrentStackInDEV; currentOwnerInDEV = null === owner ? response._debugRootOwner : owner; @@ -3227,13 +3350,13 @@ case "table": var JSCompiler_inline_result = bind$1.apply( console[methodName], - [console].concat(args) + [console].concat(payload) ); break a; case "assert": offset = 1; } - var newArgs = args.slice(0); + var newArgs = payload.slice(0); "string" === typeof newArgs[offset] ? newArgs.splice( offset, 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 83ab8e797d5fb..358f5e90f2bc5 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 @@ -880,7 +880,7 @@ function initializeModelChunk(chunk) { (chunk.reason = null), wakeChunk(resolveListeners, value)); if (null !== initializingHandler) { - if (initializingHandler.errored) throw initializingHandler.value; + if (initializingHandler.errored) throw initializingHandler.reason; if (0 < initializingHandler.deps) { initializingHandler.value = value; initializingHandler.chunk = chunk; @@ -997,6 +997,7 @@ function fulfillReference(reference, value) { ((parentObject = key.value), (key.status = "fulfilled"), (key.value = handler.value), + (key.reason = handler.reason), null !== parentObject && wakeChunk(parentObject, handler.value))); } function rejectReference(reference, error) { @@ -1004,7 +1005,8 @@ function rejectReference(reference, error) { reference = reference.response; handler.errored || ((handler.errored = !0), - (handler.value = error), + (handler.value = null), + (handler.reason = error), (handler = handler.chunk), null !== handler && "blocked" === handler.status && @@ -1026,6 +1028,7 @@ function waitForReference( parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1079,6 +1082,7 @@ function loadServerReference(response, metaData, parentObject, key) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1121,7 +1125,8 @@ function loadServerReference(response, metaData, parentObject, key) { function (error) { if (!handler.errored) { handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; var chunk = handler.chunk; null !== chunk && "blocked" === chunk.status && @@ -1177,6 +1182,7 @@ function getOutlinedModel(response, reference, parentObject, key, map) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1186,11 +1192,13 @@ function getOutlinedModel(response, reference, parentObject, key, map) { return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = value.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = value.reason)) : (initializingHandler = { parent: null, chunk: null, - value: value.reason, + value: null, + reason: value.reason, deps: 0, errored: !0 }), @@ -1212,6 +1220,7 @@ function getOutlinedModel(response, reference, parentObject, key, map) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1221,11 +1230,13 @@ function getOutlinedModel(response, reference, parentObject, key, map) { return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = id.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = id.reason)) : (initializingHandler = { parent: null, chunk: null, - value: id.reason, + value: null, + reason: id.reason, deps: 0, errored: !0 }), @@ -1264,6 +1275,7 @@ function parseModelString(response, parentObject, key, value) { parent: initializingHandler, chunk: null, value: null, + reason: null, deps: 0, errored: !1 }), @@ -1756,14 +1768,14 @@ function processFullStringRow(response, id, tag, row) { } break; case 69: - tag = JSON.parse(row); - row = resolveErrorProd(); - row.digest = tag.digest; tag = response._chunks; var chunk = tag.get(id); + row = JSON.parse(row); + var error = resolveErrorProd(); + error.digest = row.digest; chunk - ? triggerErrorOnChunk(response, chunk, row) - : tag.set(id, new ReactPromise("rejected", null, row)); + ? triggerErrorOnChunk(response, chunk, error) + : tag.set(id, new ReactPromise("rejected", null, error)); break; case 84: response = response._chunks; @@ -1901,7 +1913,7 @@ function createFromJSONCallback(response) { (initializingHandler = value.parent), value.errored) ) - (key = new ReactPromise("rejected", null, value.value)), + (key = new ReactPromise("rejected", null, value.reason)), (key = createLazyChunkWrapper(key)); else if (0 < value.deps) { var blockedChunk = new ReactPromise("blocked", null, null); 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 6068fb24a154b..aebeadbb73c6f 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 @@ -1086,7 +1086,7 @@ this.status = status; this.value = value; this.reason = reason; - this._debugInfo = null; + this._debugInfo = this._debugChunk = null; } function unwrapWeakResponse(weakResponse) { weakResponse = weakResponse.weak.deref(); @@ -1215,13 +1215,30 @@ } } function triggerErrorOnChunk(response, chunk, error) { - "pending" !== chunk.status && "blocked" !== chunk.status - ? chunk.reason.error(error) - : (releasePendingChunk(response, chunk), - (response = chunk.reason), - (chunk.status = "rejected"), - (chunk.reason = error), - null !== response && rejectChunk(response, error)); + if ("pending" !== chunk.status && "blocked" !== chunk.status) + chunk.reason.error(error); + else { + releasePendingChunk(response, chunk); + var listeners = chunk.reason; + if ("pending" === chunk.status && null != chunk._debugChunk) { + var prevHandler = initializingHandler; + initializingHandler = null; + chunk.status = "blocked"; + chunk.value = null; + chunk.reason = null; + try { + initializeDebugChunk(response, chunk), (chunk._debugChunk = null); + } finally { + initializingHandler = prevHandler; + } + } + chunk.status = "rejected"; + chunk.reason = error; + null !== listeners && rejectChunk(listeners, error); + } + } + function createResolvedModelChunk(response, value) { + return new ReactPromise("resolved_model", value, response); } function createResolvedIteratorResultChunk(response, value, done) { return new ReactPromise( @@ -1262,11 +1279,69 @@ var rejectListeners = chunk.reason; chunk.status = "resolved_module"; chunk.value = value; + chunk._debugInfo = null; null !== response && (initializeModuleChunk(chunk), wakeChunkIfInitialized(chunk, response, rejectListeners)); } } + function initializeDebugChunk(response, chunk) { + var debugChunk = chunk._debugChunk; + if (null !== debugChunk) { + var debugInfo = chunk._debugInfo || (chunk._debugInfo = []); + try { + if ("resolved_model" === debugChunk.status) { + for ( + var idx = debugInfo.length, c = debugChunk._debugChunk; + null !== c; + + ) + "fulfilled" !== c.status && idx++, (c = c._debugChunk); + initializeModelChunk(debugChunk); + switch (debugChunk.status) { + case "fulfilled": + debugInfo[idx] = initializeDebugInfo( + response, + debugChunk.value + ); + break; + case "blocked": + case "pending": + waitForReference( + debugChunk, + debugInfo, + "" + idx, + response, + initializeDebugInfo, + [""] + ); + break; + default: + throw debugChunk.reason; + } + } else + switch (debugChunk.status) { + case "fulfilled": + break; + case "blocked": + case "pending": + waitForReference( + debugChunk, + {}, + "", + response, + initializeDebugInfo, + [""] + ); + break; + default: + throw debugChunk.reason; + } + } catch (error) { + triggerErrorOnChunk(response, chunk, error); + } + } + } function initializeModelChunk(chunk) { var prevHandler = initializingHandler; initializingHandler = null; @@ -1275,6 +1350,8 @@ chunk.status = "blocked"; chunk.value = null; chunk.reason = null; + initializeDebugChunk(response, chunk); + chunk._debugChunk = null; try { var value = JSON.parse(resolvedModel, response._fromJSON), resolveListeners = chunk.value; @@ -1283,7 +1360,7 @@ (chunk.reason = null), wakeChunk(resolveListeners, value)); if (null !== initializingHandler) { - if (initializingHandler.errored) throw initializingHandler.value; + if (initializingHandler.errored) throw initializingHandler.reason; if (0 < initializingHandler.deps) { initializingHandler.value = value; initializingHandler.chunk = chunk; @@ -1477,6 +1554,7 @@ ((parentObject = key.value), (key.status = "fulfilled"), (key.value = handler.value), + (key.reason = handler.reason), null !== parentObject && wakeChunk(parentObject, handler.value))); } function rejectReference(reference, error) { @@ -1485,7 +1563,8 @@ if (!handler.errored) { var blockedValue = handler.value; handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; handler = handler.chunk; if (null !== handler && "blocked" === handler.status) { if ( @@ -1531,6 +1610,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1585,6 +1665,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1633,7 +1714,8 @@ if (!handler.errored) { var blockedValue = handler.value; handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; var chunk = handler.chunk; if (null !== chunk && "blocked" === chunk.status) { if ( @@ -1704,6 +1786,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1713,11 +1796,13 @@ return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = value.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = value.reason)) : (initializingHandler = { parent: null, chunk: null, - value: value.reason, + value: null, + reason: value.reason, deps: 0, errored: !0 }), @@ -1760,6 +1845,7 @@ parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1769,11 +1855,13 @@ return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = id.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = id.reason)) : (initializingHandler = { parent: null, chunk: null, - value: id.reason, + value: null, + reason: id.reason, deps: 0, errored: !0 }), @@ -1832,6 +1920,7 @@ parent: initializingHandler, chunk: null, value: null, + reason: null, deps: 0, errored: !1 }), @@ -2055,6 +2144,7 @@ )); this._debugFindSourceMapURL = findSourceMapURL; this._debugChannel = debugChannel; + this._blockedConsole = null; this._replayConsole = replayConsole; this._rootEnvironmentName = environmentName; debugChannel && @@ -2072,32 +2162,6 @@ _buffer: [] }; } - function resolveDebugHalt(response, id) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk || chunks.set(id, (chunk = createPendingChunk(response))); - if ("pending" === chunk.status || "blocked" === chunk.status) - releasePendingChunk(response, chunk), - (response = chunk), - (response.status = "halted"), - (response.value = null), - (response.reason = null); - } - function resolveModel(response, id, model) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk - ? resolveModelChunk(response, chunk, model) - : chunks.set(id, new ReactPromise("resolved_model", model, response)); - } - function resolveText(response, id, text) { - var chunks = response._chunks, - chunk = chunks.get(id); - chunk && "pending" !== chunk.status - ? chunk.reason.enqueueValue(text) - : (chunk && releasePendingChunk(response, chunk), - chunks.set(id, new ReactPromise("fulfilled", text, null))); - } function resolveBuffer(response, id, buffer) { var chunks = response._chunks, chunk = chunks.get(id); @@ -2146,15 +2210,39 @@ function resolveStream(response, id, stream, controller) { var chunks = response._chunks, chunk = chunks.get(id); - chunk - ? "pending" === chunk.status && - (releasePendingChunk(response, chunk), - (response = chunk.value), - (chunk.status = "fulfilled"), - (chunk.value = stream), - (chunk.reason = controller), - null !== response && wakeChunk(response, chunk.value)) - : chunks.set(id, new ReactPromise("fulfilled", stream, controller)); + if (!chunk) + chunks.set(id, new ReactPromise("fulfilled", stream, controller)); + else if ("pending" === chunk.status) { + releasePendingChunk(response, chunk); + id = chunk.value; + if (null != chunk._debugChunk) { + chunks = initializingHandler; + initializingHandler = null; + chunk.status = "blocked"; + chunk.value = null; + chunk.reason = null; + try { + if ( + (initializeDebugChunk(response, chunk), + (chunk._debugChunk = null), + null !== initializingHandler && + !initializingHandler.errored && + 0 < initializingHandler.deps) + ) { + initializingHandler.value = stream; + initializingHandler.reason = controller; + initializingHandler.chunk = chunk; + return; + } + } finally { + initializingHandler = chunks; + } + } + chunk.status = "fulfilled"; + chunk.value = stream; + chunk.reason = controller; + null !== id && wakeChunk(id, chunk.value); + } } function startReadableStream(response, id, type) { var controller = null; @@ -2175,7 +2263,7 @@ }, enqueueModel: function (json) { if (null === previousBlockedChunk) { - var chunk = new ReactPromise("resolved_model", json, response); + var chunk = createResolvedModelChunk(response, json); initializeModelChunk(chunk); "fulfilled" === chunk.status ? controller.enqueue(chunk.value) @@ -2337,11 +2425,6 @@ } ); } - function stopStream(response, id, row) { - (response = response._chunks.get(id)) && - "fulfilled" === response.status && - response.reason.close("" === row ? '"$undefined"' : row); - } function resolveErrorDev(response, errorInfo) { var name = errorInfo.name, env = errorInfo.env; @@ -2362,50 +2445,6 @@ response.environmentName = env; return response; } - function resolveHint(response, code, model) { - response = JSON.parse(model, response._fromJSON); - model = ReactDOMSharedInternals.d; - switch (code) { - case "D": - model.D(response); - break; - case "C": - "string" === typeof response - ? model.C(response) - : model.C(response[0], response[1]); - break; - case "L": - code = response[0]; - var as = response[1]; - 3 === response.length - ? model.L(code, as, response[2]) - : model.L(code, as); - break; - case "m": - "string" === typeof response - ? model.m(response) - : model.m(response[0], response[1]); - break; - case "X": - "string" === typeof response - ? model.X(response) - : model.X(response[0], response[1]); - break; - case "S": - "string" === typeof response - ? model.S(response) - : model.S( - response[0], - 0 === response[1] ? void 0 : response[1], - 3 === response.length ? response[2] : void 0 - ); - break; - case "M": - "string" === typeof response - ? model.M(response) - : model.M(response[0], response[1]); - } - } function createFakeFunction( name, filename, @@ -2617,7 +2656,7 @@ (owner.debugLocation = debugInfo.debugStack)); } } - function resolveDebugInfo(response, id, debugInfo) { + function initializeDebugInfo(response, debugInfo) { void 0 !== debugInfo.stack && initializeFakeTask(response, debugInfo); null == debugInfo.owner && null != response._debugRootOwner ? ((debugInfo.owner = response._debugRootOwner), @@ -2626,8 +2665,7 @@ (debugInfo.debugTask = response._debugRootTask)) : void 0 !== debugInfo.stack && initializeFakeStack(response, debugInfo); - response = getChunk(response, id); - (response._debugInfo || (response._debugInfo = [])).push(debugInfo); + return debugInfo; } function getCurrentStackInDEV() { var owner = currentOwnerInDEV; @@ -2684,22 +2722,37 @@ } return JSCompiler_inline_result$jscomp$0; } - function resolveConsoleEntry(response, value) { + function resolveConsoleEntry(response, json) { if (response._replayConsole) { - var payload = JSON.parse(value, response._fromJSON); - value = payload[0]; - var stackTrace = payload[1], - owner = payload[2], - env = payload[3]; - payload = payload.slice(4); - replayConsoleWithCallStackInDEV( - response, - value, - stackTrace, - owner, - env, - payload - ); + var blockedChunk = response._blockedConsole; + if (null == blockedChunk) + (blockedChunk = createResolvedModelChunk(response, json)), + initializeModelChunk(blockedChunk), + "fulfilled" === blockedChunk.status + ? replayConsoleWithCallStackInDEV(response, blockedChunk.value) + : (blockedChunk.then( + function (v) { + return replayConsoleWithCallStackInDEV(response, v); + }, + function () {} + ), + (response._blockedConsole = blockedChunk)); + else { + var _chunk4 = createPendingChunk(response); + _chunk4.then( + function (v) { + return replayConsoleWithCallStackInDEV(response, v); + }, + function () {} + ); + response._blockedConsole = _chunk4; + var unblock = function () { + response._blockedConsole === _chunk4 && + (response._blockedConsole = null); + resolveModelChunk(response, _chunk4, json); + }; + blockedChunk.then(unblock, unblock); + } } } function mergeBuffer(buffer, lastChunk) { @@ -2799,33 +2852,89 @@ resolveModule(response, id, row); break; case 72: - resolveHint(response, row[0], row.slice(1)); + id = row[0]; + row = row.slice(1); + response = JSON.parse(row, response._fromJSON); + row = ReactDOMSharedInternals.d; + switch (id) { + case "D": + row.D(response); + break; + case "C": + "string" === typeof response + ? row.C(response) + : row.C(response[0], response[1]); + break; + case "L": + id = response[0]; + tag = response[1]; + 3 === response.length + ? row.L(id, tag, response[2]) + : row.L(id, tag); + break; + case "m": + "string" === typeof response + ? row.m(response) + : row.m(response[0], response[1]); + break; + case "X": + "string" === typeof response + ? row.X(response) + : row.X(response[0], response[1]); + break; + case "S": + "string" === typeof response + ? row.S(response) + : row.S( + response[0], + 0 === response[1] ? void 0 : response[1], + 3 === response.length ? response[2] : void 0 + ); + break; + case "M": + "string" === typeof response + ? row.M(response) + : row.M(response[0], response[1]); + } break; case 69: + tag = response._chunks; + var chunk = tag.get(id); row = JSON.parse(row); - tag = resolveErrorDev(response, row); - tag.digest = row.digest; - row = response._chunks; - var chunk = row.get(id); + var error = resolveErrorDev(response, row); + error.digest = row.digest; chunk - ? triggerErrorOnChunk(response, chunk, tag) - : row.set(id, new ReactPromise("rejected", null, tag)); + ? triggerErrorOnChunk(response, chunk, error) + : tag.set(id, new ReactPromise("rejected", null, error)); break; case 84: - resolveText(response, id, row); + tag = response._chunks; + (chunk = tag.get(id)) && "pending" !== chunk.status + ? chunk.reason.enqueueValue(row) + : (chunk && releasePendingChunk(response, chunk), + tag.set(id, new ReactPromise("fulfilled", row, null))); break; case 78: case 68: - tag = new ReactPromise("resolved_model", row, response); - initializeModelChunk(tag); - "fulfilled" === tag.status - ? resolveDebugInfo(response, id, tag.value) - : tag.then( - function (v) { - return resolveDebugInfo(response, id, v); - }, - function () {} - ); + id = getChunk(response, id); + "fulfilled" !== id.status && + "rejected" !== id.status && + "halted" !== id.status && + "blocked" !== id.status && + "resolved_module" !== id.status && + ((tag = id._debugChunk), + (chunk = createResolvedModelChunk(response, row)), + (chunk._debugChunk = tag), + (id._debugChunk = chunk), + initializeDebugChunk(response, id), + "blocked" === chunk.status && + void 0 === response._debugChannel && + '"' === row[0] && + "$" === row[1] && + ((row = row.slice(2, row.length - 1).split(":")), + (row = parseInt(row[0], 16)), + "pending" === getChunk(response, row).status && + (id._debugChunk = null))); break; case 74: case 87: @@ -2844,12 +2953,28 @@ startAsyncIterable(response, id, !0); break; case 67: - stopStream(response, id, row); + (response = response._chunks.get(id)) && + "fulfilled" === response.status && + response.reason.close("" === row ? '"$undefined"' : row); break; default: - "" === row - ? resolveDebugHalt(response, id) - : resolveModel(response, id, row); + if ("" === row) { + if ( + ((row = response._chunks), + (tag = row.get(id)) || + row.set(id, (tag = createPendingChunk(response))), + "pending" === tag.status || "blocked" === tag.status) + ) + releasePendingChunk(response, tag), + (response = tag), + (response.status = "halted"), + (response.value = null), + (response.reason = null); + } else + (tag = response._chunks), + (chunk = tag.get(id)) + ? resolveModelChunk(response, chunk, row) + : tag.set(id, createResolvedModelChunk(response, row)); } } function processBinaryChunk(weakResponse, streamState, chunk) { @@ -2992,7 +3117,7 @@ validated = initializingHandler; initializingHandler = validated.parent; if (validated.errored) { - key = new ReactPromise("rejected", null, validated.value); + key = new ReactPromise("rejected", null, validated.reason); initializeElement(response, value); validated = { name: getComponentNameFromType(value.type) || "", @@ -3168,14 +3293,12 @@ ), currentOwnerInDEV = null, replayConsoleWithCallStack = { - react_stack_bottom_frame: function ( - response, - methodName, - stackTrace, - owner, - env, - args - ) { + react_stack_bottom_frame: function (response, payload) { + var methodName = payload[0], + stackTrace = payload[1], + owner = payload[2], + env = payload[3]; + payload = payload.slice(4); var prevStack = ReactSharedInternals.getCurrentStack; ReactSharedInternals.getCurrentStack = getCurrentStackInDEV; currentOwnerInDEV = null === owner ? response._debugRootOwner : owner; @@ -3189,13 +3312,13 @@ case "table": var JSCompiler_inline_result = bind$1.apply( console[methodName], - [console].concat(args) + [console].concat(payload) ); break a; case "assert": offset = 1; } - var newArgs = args.slice(0); + var newArgs = payload.slice(0); "string" === typeof newArgs[offset] ? newArgs.splice( offset, 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 e6f0dcd228ce0..5823f4df56f8a 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 @@ -845,7 +845,7 @@ function initializeModelChunk(chunk) { (chunk.reason = null), wakeChunk(resolveListeners, value)); if (null !== initializingHandler) { - if (initializingHandler.errored) throw initializingHandler.value; + if (initializingHandler.errored) throw initializingHandler.reason; if (0 < initializingHandler.deps) { initializingHandler.value = value; initializingHandler.chunk = chunk; @@ -962,6 +962,7 @@ function fulfillReference(reference, value) { ((parentObject = key.value), (key.status = "fulfilled"), (key.value = handler.value), + (key.reason = handler.reason), null !== parentObject && wakeChunk(parentObject, handler.value))); } function rejectReference(reference, error) { @@ -969,7 +970,8 @@ function rejectReference(reference, error) { reference = reference.response; handler.errored || ((handler.errored = !0), - (handler.value = error), + (handler.value = null), + (handler.reason = error), (handler = handler.chunk), null !== handler && "blocked" === handler.status && @@ -991,6 +993,7 @@ function waitForReference( parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1044,6 +1047,7 @@ function loadServerReference(response, metaData, parentObject, key) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }; @@ -1086,7 +1090,8 @@ function loadServerReference(response, metaData, parentObject, key) { function (error) { if (!handler.errored) { handler.errored = !0; - handler.value = error; + handler.value = null; + handler.reason = error; var chunk = handler.chunk; null !== chunk && "blocked" === chunk.status && @@ -1142,6 +1147,7 @@ function getOutlinedModel(response, reference, parentObject, key, map) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1151,11 +1157,13 @@ function getOutlinedModel(response, reference, parentObject, key, map) { return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = value.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = value.reason)) : (initializingHandler = { parent: null, chunk: null, - value: value.reason, + value: null, + reason: value.reason, deps: 0, errored: !0 }), @@ -1177,6 +1185,7 @@ function getOutlinedModel(response, reference, parentObject, key, map) { parent: null, chunk: null, value: null, + reason: null, deps: 1, errored: !1 }), @@ -1186,11 +1195,13 @@ function getOutlinedModel(response, reference, parentObject, key, map) { return ( initializingHandler ? ((initializingHandler.errored = !0), - (initializingHandler.value = id.reason)) + (initializingHandler.value = null), + (initializingHandler.reason = id.reason)) : (initializingHandler = { parent: null, chunk: null, - value: id.reason, + value: null, + reason: id.reason, deps: 0, errored: !0 }), @@ -1229,6 +1240,7 @@ function parseModelString(response, parentObject, key, value) { parent: initializingHandler, chunk: null, value: null, + reason: null, deps: 0, errored: !1 }), @@ -1721,14 +1733,14 @@ function processFullStringRow(response, id, tag, row) { } break; case 69: - tag = JSON.parse(row); - row = resolveErrorProd(); - row.digest = tag.digest; tag = response._chunks; var chunk = tag.get(id); + row = JSON.parse(row); + var error = resolveErrorProd(); + error.digest = row.digest; chunk - ? triggerErrorOnChunk(response, chunk, row) - : tag.set(id, new ReactPromise("rejected", null, row)); + ? triggerErrorOnChunk(response, chunk, error) + : tag.set(id, new ReactPromise("rejected", null, error)); break; case 84: response = response._chunks; @@ -1866,7 +1878,7 @@ function createFromJSONCallback(response) { (initializingHandler = value.parent), value.errored) ) - (key = new ReactPromise("rejected", null, value.value)), + (key = new ReactPromise("rejected", null, value.reason)), (key = createLazyChunkWrapper(key)); else if (0 < value.deps) { var blockedChunk = new ReactPromise("blocked", null, null); 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 cd00a4137bcad..14143f506be41 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 @@ -1241,11 +1241,12 @@ task.debugStack, task.debugTask ); + (task = iterable._debugInfo) && + forwardDebugInfo(request, streamTask, task); request.pendingChunks++; - task = streamTask.id.toString(16) + ":" + (isIterator ? "x" : "X") + "\n"; - request.completedRegularChunks.push(stringToChunk(task)); - (iterable = iterable._debugInfo) && - forwardDebugInfo(request, streamTask, iterable); + isIterator = + streamTask.id.toString(16) + ":" + (isIterator ? "x" : "X") + "\n"; + request.completedRegularChunks.push(stringToChunk(isIterator)); request.cacheController.signal.addEventListener("abort", abortIterable); callIteratorInDEV(iterator, progress, error); return serializeByValueID(streamTask.id); 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 cb36963a5e10c..cff289b9dd17a 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 @@ -1253,11 +1253,12 @@ task.debugStack, task.debugTask ); + (task = iterable._debugInfo) && + forwardDebugInfo(request, streamTask, task); request.pendingChunks++; - task = streamTask.id.toString(16) + ":" + (isIterator ? "x" : "X") + "\n"; - request.completedRegularChunks.push(stringToChunk(task)); - (iterable = iterable._debugInfo) && - forwardDebugInfo(request, streamTask, iterable); + isIterator = + streamTask.id.toString(16) + ":" + (isIterator ? "x" : "X") + "\n"; + request.completedRegularChunks.push(stringToChunk(isIterator)); request.cacheController.signal.addEventListener("abort", abortIterable); callIteratorInDEV(iterator, progress, error); return serializeByValueID(streamTask.id); 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 48bb3b1200a3f..1fcf141084dfd 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 @@ -1273,11 +1273,12 @@ task.debugStack, task.debugTask ); + (task = iterable._debugInfo) && + forwardDebugInfo(request, streamTask, task); request.pendingChunks++; - task = streamTask.id.toString(16) + ":" + (isIterator ? "x" : "X") + "\n"; - request.completedRegularChunks.push(task); - (iterable = iterable._debugInfo) && - forwardDebugInfo(request, streamTask, iterable); + isIterator = + streamTask.id.toString(16) + ":" + (isIterator ? "x" : "X") + "\n"; + request.completedRegularChunks.push(isIterator); request.cacheController.signal.addEventListener("abort", abortIterable); callIteratorInDEV(iterator, progress, error); return serializeByValueID(streamTask.id); 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 4f43dbb5da1ed..b07dd716d06da 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 @@ -1273,11 +1273,12 @@ task.debugStack, task.debugTask ); + (task = iterable._debugInfo) && + forwardDebugInfo(request, streamTask, task); request.pendingChunks++; - task = streamTask.id.toString(16) + ":" + (isIterator ? "x" : "X") + "\n"; - request.completedRegularChunks.push(task); - (iterable = iterable._debugInfo) && - forwardDebugInfo(request, streamTask, iterable); + isIterator = + streamTask.id.toString(16) + ":" + (isIterator ? "x" : "X") + "\n"; + request.completedRegularChunks.push(isIterator); request.cacheController.signal.addEventListener("abort", abortIterable); callIteratorInDEV(iterator, progress, error); return serializeByValueID(streamTask.id); 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 2ce24a92d6ab9..7b7ce50993bc2 100644 --- a/packages/next/src/compiled/react-server-dom-webpack/package.json +++ b/packages/next/src/compiled/react-server-dom-webpack/package.json @@ -64,8 +64,8 @@ "webpack-sources": "^3.2.0" }, "peerDependencies": { - "react": "19.2.0-canary-dffacc7b-20250717", - "react-dom": "19.2.0-canary-dffacc7b-20250717", + "react": "19.2.0-canary-e9638c33-20250721", + "react-dom": "19.2.0-canary-e9638c33-20250721", "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 cbe8cc956580a..200ea26f3200e 100644 --- a/packages/next/src/compiled/react/cjs/react.development.js +++ b/packages/next/src/compiled/react/cjs/react.development.js @@ -1244,7 +1244,7 @@ exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.2.0-canary-dffacc7b-20250717"; + exports.version = "19.2.0-canary-e9638c33-20250721"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react/cjs/react.production.js b/packages/next/src/compiled/react/cjs/react.production.js index a4a4c56aaefc5..b159e901d16ff 100644 --- a/packages/next/src/compiled/react/cjs/react.production.js +++ b/packages/next/src/compiled/react/cjs/react.production.js @@ -543,4 +543,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.2.0-canary-dffacc7b-20250717"; +exports.version = "19.2.0-canary-e9638c33-20250721"; 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 7c0da796d11c7..62ae20bff5ee5 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 @@ -816,5 +816,5 @@ exports.useMemo = function (create, deps) { return resolveDispatcher().useMemo(create, deps); }; - exports.version = "19.2.0-canary-dffacc7b-20250717"; + exports.version = "19.2.0-canary-e9638c33-20250721"; })(); 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 7d49e010d575a..4e800ed9df14a 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 @@ -430,4 +430,4 @@ exports.useId = function () { exports.useMemo = function (create, deps) { return ReactSharedInternals.H.useMemo(create, deps); }; -exports.version = "19.2.0-canary-dffacc7b-20250717"; +exports.version = "19.2.0-canary-e9638c33-20250721"; diff --git a/packages/next/src/compiled/unistore/unistore.js b/packages/next/src/compiled/unistore/unistore.js index f2743082422fb..9bab00c847cb1 100644 --- a/packages/next/src/compiled/unistore/unistore.js +++ b/packages/next/src/compiled/unistore/unistore.js @@ -1 +1 @@ -(()=>{var t={471:t=>{function n(t,i){for(var _ in i)t[_]=i[_];return t}t.exports=function(t){var i=[];function u(t){for(var _=[],a=0;a{var t={390:t=>{function n(t,i){for(var _ in i)t[_]=i[_];return t}t.exports=function(t){var i=[];function u(t){for(var _=[],a=0;a=0.15.0' - version: 2.2.1(react@19.2.0-canary-dffacc7b-20250717) + version: 2.2.1(react@19.2.0-canary-e9638c33-20250721) source-map: specifier: ^0.7.0 version: 0.7.3 @@ -1751,8 +1751,8 @@ importers: packages/third-parties: dependencies: react: - specifier: 19.2.0-canary-dffacc7b-20250717 - version: 19.2.0-canary-dffacc7b-20250717 + specifier: 19.2.0-canary-e9638c33-20250721 + version: 19.2.0-canary-e9638c33-20250721 third-party-capital: specifier: 1.0.20 version: 1.0.20 @@ -1815,14 +1815,14 @@ importers: specifier: 29.5.0 version: 29.5.0 react: - specifier: 19.2.0-canary-dffacc7b-20250717 - version: 19.2.0-canary-dffacc7b-20250717 + specifier: 19.2.0-canary-e9638c33-20250721 + version: 19.2.0-canary-e9638c33-20250721 react-test-renderer: specifier: 18.2.0 - version: 18.2.0(react@19.2.0-canary-dffacc7b-20250717) + version: 18.2.0(react@19.2.0-canary-e9638c33-20250721) styled-jsx: specifier: ^5.1.2 - version: 5.1.6(@babel/core@7.26.10)(babel-plugin-macros@3.1.0)(react@19.2.0-canary-dffacc7b-20250717) + version: 5.1.6(@babel/core@7.26.10)(babel-plugin-macros@3.1.0)(react@19.2.0-canary-e9638c33-20250721) turbopack/packages/devlow-bench: dependencies: @@ -2750,8 +2750,8 @@ packages: engines: {node: '>=14.0.0'} peerDependencies: '@types/react': 19.1.8 - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721 peerDependenciesMeta: '@types/react': optional: true @@ -2966,7 +2966,7 @@ packages: resolution: {integrity: sha512-5mlW1DquU5HaxjLkfkGN1GA/fvVGdyHURRiX/0FHl2cfIfRxSOfmxEH5YS43edp0OldZrZ+dkBKbngxcNCdZvA==} peerDependencies: '@types/react': '*' - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 peerDependenciesMeta: '@types/react': optional: true @@ -2983,7 +2983,7 @@ packages: '@emotion/use-insertion-effect-with-fallbacks@1.0.1': resolution: {integrity: sha512-jT/qyKZ9rzLErtrjGgdkMBn2OP8wl0G3sQlBb3YPryvKHsjvINUhVaPFfP+fpBcOkmrVOVEEHQFJ7nbj2TH2gw==} peerDependencies: - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 '@emotion/utils@1.2.1': resolution: {integrity: sha512-Y2tGf3I+XVnajdItskUCn6LX+VUDmP6lTL4fcqsXAv43dnlbZiuW4MWQW38rW/BVWSE7Q/7+XQocmpnRYILUmg==} @@ -3650,20 +3650,20 @@ packages: '@floating-ui/react-dom@2.1.0': resolution: {integrity: sha512-lNzj5EQmEKn5FFKc04+zasr09h/uX8RtJRNj5gUXsSQIXHVWTVh+hVAg1vOMCexkX8EgvemMvIFpQfkosnVNyA==} peerDependencies: - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721 '@floating-ui/react-dom@2.1.4': resolution: {integrity: sha512-JbbpPhp38UmXDDAu60RJmbeme37Jbgsm7NrHGgzYYFKmblzRUh6Pa641dII6LsjwF4XlScDrde2UAzDo/b9KPw==} peerDependencies: - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721 '@floating-ui/react@0.26.16': resolution: {integrity: sha512-HEf43zxZNAI/E781QIVpYSF3K2VH4TTYZpqecjdsFkjsaU1EbaWcM++kw0HXFffj7gDUcBFevX8s0rQGQpxkow==} peerDependencies: - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721 '@floating-ui/utils@0.2.10': resolution: {integrity: sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ==} @@ -4387,13 +4387,13 @@ packages: resolution: {integrity: sha512-l9ypojKN3PjwO1CSLIsqxi7mA25+7w+xc71Q+JuCCREI0tuGwkZsKbIOpuTATIJOjPh8ycLiW7QxX1LYsRTq6w==} peerDependencies: '@mantine/hooks': 7.10.1 - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721 '@mantine/hooks@7.11.2': resolution: {integrity: sha512-jhyVe/sbDEG2U8rr2lMecUPgQxcfr5hh9HazqGfkS7ZRIMDO7uJ947yAcTMGGkp5Lxtt5TBFt1Cb6tiB2/1agg==} peerDependencies: - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 '@manypkg/find-root@1.1.0': resolution: {integrity: sha512-mki5uBvhHzO8kYYix/WRy2WX8S3B5wdVSc9D6KcU5lQNglP2yt58/VfLuAK49glRXChosY8ap2oJ1qgma3GUVA==} @@ -4416,13 +4416,13 @@ packages: '@mdx-js/react@2.2.1': resolution: {integrity: sha512-YdXcMcEnqZhzql98RNrqYo9cEhTTesBiCclEtoiQUbJwx87q9453GTapYU6kJ8ZZ2ek1Vp25SiAXEFy5O/eAPw==} peerDependencies: - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 '@mdx-js/react@3.1.0': resolution: {integrity: sha512-QjHtSaoameoalGnKDT3FoIl4+9RwyTmo9ZJGBdLOks/YOiWHoRDI3PUwEzOE7kEmGcV3AFcp9K6dYu9rEuKLAQ==} peerDependencies: '@types/react': 19.1.8 - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 '@module-federation/error-codes@0.15.0': resolution: {integrity: sha512-CFJSF+XKwTcy0PFZ2l/fSUpR4z247+Uwzp1sXVkdIfJ/ATsnqf0Q01f51qqSEA6MYdQi6FKos9FIcu3dCpQNdg==} @@ -5122,8 +5122,8 @@ packages: '@storybook/blocks@8.6.0': resolution: {integrity: sha512-3PNxlB5Ooj8CIhttbDxeV6kW7ui+2GEdTngtqhnsUHVjzeTKpilsk2lviOeUzqlyq5FDK+rhpZ3L3DJ9pDvioA==} peerDependencies: - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721 storybook: ^8.6.0 peerDependenciesMeta: react: @@ -5173,8 +5173,8 @@ packages: resolution: {integrity: sha512-Nz/UzeYQdUZUhacrPyfkiiysSjydyjgg/p0P9HxB4p/WaJUUjMAcaoaLgy3EXx61zZJ3iD36WPuDkZs5QYrA0A==} engines: {node: '>=14.0.0'} peerDependencies: - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721 '@storybook/instrumenter@8.6.0': resolution: {integrity: sha512-eEY/Hfa3Vj5Nv4vHRHlSqjoyW6oAKNK3rKIXfL/eawQwb7rKhzijDLG5YBH44Hh7dEPIqUp0LEdgpyIY7GXezg==} @@ -5190,8 +5190,8 @@ packages: resolution: {integrity: sha512-04T86VG0UJtiozgZkTR5sY1qM3E0Rgwqwllvyy7kFFdkV+Sv/VsPjW9sC38s9C8FtCYRL8pJZz81ey3oylpIMA==} engines: {node: '>=18.0.0'} peerDependencies: - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721 storybook: ^8.6.0 typescript: '*' peerDependenciesMeta: @@ -5212,16 +5212,16 @@ packages: '@storybook/react-dom-shim@8.6.0': resolution: {integrity: sha512-5Y+vMHhcx0xnaNsLQMbkmjc3zkDn/fGBNsiLH2e4POvW3ZQvOxjoyxAsEQaKwLtFgsdCFSd2tR89F6ItYrA2JQ==} peerDependencies: - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721 storybook: ^8.6.0 '@storybook/react-webpack5@8.6.0': resolution: {integrity: sha512-2L9CYDPn1OL0B8K5EU/Wpo9Slg8f0vkYPaPioQnmcK3Q4SJR4JAuDVWHUtNdxhaPOkHIy887Tfrf6BEC/blMaQ==} engines: {node: '>=18.0.0'} peerDependencies: - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721 storybook: ^8.6.0 typescript: '>= 4.2.x' peerDependenciesMeta: @@ -5233,8 +5233,8 @@ packages: engines: {node: '>=18.0.0'} peerDependencies: '@storybook/test': 8.6.0 - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721 storybook: ^8.6.0 typescript: '>= 4.2.x' peerDependenciesMeta: @@ -5414,8 +5414,8 @@ packages: engines: {node: '>=18'} peerDependencies: '@types/react': 19.1.8 - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721 peerDependenciesMeta: '@types/react': optional: true @@ -11550,7 +11550,7 @@ packages: lucide-react@0.383.0: resolution: {integrity: sha512-13xlG0CQCJtzjSQYwwJ3WRqMHtRj3EXmLlorrARt7y+IHnxUCp3XyFNL1DfaGySWxHObDvnu1u1dV+0VMKHUSg==} peerDependencies: - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 lz-string@1.5.0: resolution: {integrity: sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==} @@ -14080,18 +14080,18 @@ packages: resolution: {integrity: sha512-APPU8HB2uZnpl6Vt/+0AFoVYgSRtfiP6FLrZgPPTDmqSb2R4qZRbgd0A3VzIFxDt5e+Fozjx79WjLWnF69DK8g==} engines: {node: '>=16.14.0'} - react-dom@0.0.0-experimental-dffacc7b-20250717: - resolution: {integrity: sha512-yfd27AKCkUv7Qrary/r4Kd68WH5v7B2t7dEsqL2fPAVpVBFgT9qdVd2MopQ58FL5XFNn1EJ5Yp+of0OHLeeonw==} + react-dom@0.0.0-experimental-e9638c33-20250721: + resolution: {integrity: sha512-RCvd3sUDzdG5OigvtehArU74KBcFbP651Gwea4mVWeWc+0wkblhnRAb2aP9cUpIN1kkmhqbFZOMnUQTdcXkMnw==} peerDependencies: - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 - react-dom@19.2.0-canary-dffacc7b-20250717: - resolution: {integrity: sha512-s2NnSuGKzaG114PhQR4/LxU90jitBrprgqoIQSgL6ylAyWYQoAkXehXf6xPmUSECS6UDjltR6vX82StFg1Xbyg==} + react-dom@19.2.0-canary-e9638c33-20250721: + resolution: {integrity: sha512-8PW3npo98HIAzpT33IiQm3uz1OuCe3ic9Tq7Xsy20njrxB82pYFmHDKoi61H1725JKRMxyYwHFz1L5lky0kEKg==} peerDependencies: - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 - react-is@19.2.0-canary-dffacc7b-20250717: - resolution: {integrity: sha512-MPwt2zXcA+pemeWUUpY2i3a/bHFSgbd4mjZvZvcSVDQpi5uPf7YmPqMVlYh2LBi1uLYw0+w3v89AobXi/AfPkg==} + react-is@19.2.0-canary-e9638c33-20250721: + resolution: {integrity: sha512-IfLemHG3QrApTfSYI3mYnKuEFjdPl0B7gLLNJ2lBn90FvesyYHsGVyayc74luzKFkZoKPUVBVsG6QqKs4stFVQ==} react-lifecycles-compat@3.0.4: resolution: {integrity: sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==} @@ -14099,8 +14099,8 @@ packages: react-number-format@5.4.0: resolution: {integrity: sha512-NWdICrqLhI7rAS8yUeLVd6Wr4cN7UjJ9IBTS0f/a9i7UB4x4Ti70kGnksBtZ7o4Z7YRbvCMMR/jQmkoOBa/4fg==} peerDependencies: - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721 react-refresh@0.12.0: resolution: {integrity: sha512-suLIhrU2IHKL5JEKR/fAwJv7bbeq4kJ+pJopf77jHwuR+HmJS/HbrPIGsTBUVfw7tXPOmYv7UJ7PCaN49e8x4A==} @@ -14111,7 +14111,7 @@ packages: engines: {node: '>=10'} peerDependencies: '@types/react': 19.1.8 - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 peerDependenciesMeta: '@types/react': optional: true @@ -14121,58 +14121,58 @@ packages: engines: {node: '>=10'} peerDependencies: '@types/react': 19.1.8 - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 peerDependenciesMeta: '@types/react': optional: true - react-server-dom-turbopack@0.0.0-experimental-dffacc7b-20250717: - resolution: {integrity: sha512-grFmEHaARvzgRzF9p8S+qibH90H3TSwY4d/bW0olWFnxB/64BFy9TRUvOU3mm72H8DupzFi+hrvp/WOIT22yLg==} + react-server-dom-turbopack@0.0.0-experimental-e9638c33-20250721: + resolution: {integrity: sha512-PDi8tzlHsCUQNSgc6gzFBnF87UCvQ3R03lQI7+4nPCtFN5kmsKtFUwY+YXHssH0BKBkeiSXolzPB9J7VoJx3Rw==} engines: {node: '>=0.10.0'} peerDependencies: - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721 - react-server-dom-turbopack@19.2.0-canary-dffacc7b-20250717: - resolution: {integrity: sha512-+O6zc6KCRt6qANB9lmIAJOuhZ5sAs4gZvScLuuB4cK2kNaHMjehk7ZEiKjHuVeP0m0TX7OCem6T2NDo4AgsTgQ==} + react-server-dom-turbopack@19.2.0-canary-e9638c33-20250721: + resolution: {integrity: sha512-lQjVIcNi6uuQLIwxaWUsa1r0F8KmDTai8ZR5EwQsF2gmaIPz8V5v5rlSU4whlyGfopgCX+IhRb7qI3KoV+kxSg==} engines: {node: '>=0.10.0'} peerDependencies: - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721 - react-server-dom-webpack@0.0.0-experimental-dffacc7b-20250717: - resolution: {integrity: sha512-ezXGiDiPJ95rTykwW8MQVZomEkpZ0CcUR2ZscGofzg4M6XKrCH4ESkpHqx6tXD9pf0n2g+I8XJ31+Yi2INjoXA==} + react-server-dom-webpack@0.0.0-experimental-e9638c33-20250721: + resolution: {integrity: sha512-3EAbM4grGaOwDTNaLCPCQSYy3sopPI1mp8D/zBX0pUAVYYCHGkKAHl7CIwaEZ2I6mzyOrgDiEmNmlo7gKI9McA==} engines: {node: '>=0.10.0'} peerDependencies: - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721 webpack: 5.98.0 - react-server-dom-webpack@19.2.0-canary-dffacc7b-20250717: - resolution: {integrity: sha512-Qe0aove8SPTVvIibMrVMtovI9Po0jl/NXFFQ6b+NYp4XfiD797PiyA+q7e2LzCZhQ5BSo0Q93mRLHKhRFTGPLA==} + react-server-dom-webpack@19.2.0-canary-e9638c33-20250721: + resolution: {integrity: sha512-31i92yT6geuzr+D/rnuxOCvl4XQDtYTDkM2Q7U8twzlwL5R18R4OLRVeRSUR9EsbU+uDxj3QVDvmKG6B/Y5eZQ==} engines: {node: '>=0.10.0'} peerDependencies: - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721 webpack: 5.98.0 react-shallow-renderer@16.15.0: resolution: {integrity: sha512-oScf2FqQ9LFVQgA73vr86xl2NaOIX73rh+YFqcOp68CWj56tSfgtGKrEbyhCj0rSijyG9M1CYprTh39fBi5hzA==} peerDependencies: - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 react-ssr-prepass@1.0.8: resolution: {integrity: sha512-O0gfRA1SaK+9ITKxqfnXsej2jF+OHGP/+GxD4unROQaM/0/UczGF9fuF+wTboxaQoKdIf4FvS3h/OigWh704VA==} peerDependencies: - react: 19.2.0-canary-dffacc7b-20250717 - react-is: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 + react-is: 19.2.0-canary-e9638c33-20250721 react-style-singleton@2.2.1: resolution: {integrity: sha512-ZWj0fHEMyWkHzKYUr2Bs/4zU6XLmq9HsgBURm7g5pAVfyn49DgUiNgY2d4lXRlYSiCif9YBGpQleewkcqddc7g==} engines: {node: '>=10'} peerDependencies: '@types/react': 19.1.8 - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 peerDependenciesMeta: '@types/react': optional: true @@ -14180,26 +14180,26 @@ packages: react-test-renderer@18.2.0: resolution: {integrity: sha512-JWD+aQ0lh2gvh4NM3bBM42Kx+XybOxCpgYK7F8ugAlpaTSnWsX+39Z4XkOykGZAHrjwwTZT3x3KxswVWxHPUqA==} peerDependencies: - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 react-textarea-autosize@8.5.3: resolution: {integrity: sha512-XT1024o2pqCuZSuBt9FwHlaDeNtVrtCXu0Rnz88t1jUGheCLa3PhjE1GH8Ctm2axEtvdCl5SUHYschyQ0L5QHQ==} engines: {node: '>=10'} peerDependencies: - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 react-virtualized@9.22.3: resolution: {integrity: sha512-MKovKMxWTcwPSxE1kK1HcheQTWfuCxAuBoSTf2gwyMM21NdX/PXUhnoP8Uc5dRKd+nKm8v41R36OellhdCpkrw==} peerDependencies: - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721 - react@0.0.0-experimental-dffacc7b-20250717: - resolution: {integrity: sha512-SfPbCRCOtLepTPzIt1ta95xZPORXQjXq99TT4tB+ekTgZxJM/1PZQzswK0HZTlwz2N4RUlDSIYuut9R3BlgHKQ==} + react@0.0.0-experimental-e9638c33-20250721: + resolution: {integrity: sha512-ZM1q3NwysVdOm5vajW4TFVaRBR1BrdUSfpX/YQJwyo4AnigpyKJb4yyrIN+zXCMgcoy2Jc5cKXGIb1XfJbA/Cg==} engines: {node: '>=0.10.0'} - react@19.2.0-canary-dffacc7b-20250717: - resolution: {integrity: sha512-A8EU8gK3QYLBwhPrD3EOMj5P02KEz/wG6BafpZ9NL8mhDu2GB7F5KpWJsYtQa9h1fOgsNBR41ThnHr/hhV/Lww==} + react@19.2.0-canary-e9638c33-20250721: + resolution: {integrity: sha512-bL/yheb+w+/QN858TnvS6d0QM7ZmyoMvNxoPgDdU98veAOo35yFCdKcneFJcDQQeq1imfbnRi2jch7QfKbiVhg==} engines: {node: '>=0.10.0'} read-cache@1.0.0: @@ -14757,11 +14757,11 @@ packages: resolution: {integrity: sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==} engines: {node: '>=v12.22.7'} - scheduler@0.0.0-experimental-dffacc7b-20250717: - resolution: {integrity: sha512-gPzNGctg2RQCQeYKmUGuZCKdP5IpsTO+Dh+brZcSwOd9fU0HdOVTd7anE7FWFyceajWMksB6ybm3WOY0bQuJyQ==} + scheduler@0.0.0-experimental-e9638c33-20250721: + resolution: {integrity: sha512-flQkDPOp6f5jwmGpYN8O6O/30qU+hLMRphESJymwxBBj4ID/WI25TmJDZ6sYeXegeGCugoPzTZNW6xZBGLFHFA==} - scheduler@0.27.0-canary-dffacc7b-20250717: - resolution: {integrity: sha512-sUlRgqQY4otOSM+gXiCVwKt5KT+Cn/nTory9PKDc1Zgsw9CTBExmY15351X2ECuHUVFQYEzJyw3r9Zo+Jrd0wg==} + scheduler@0.27.0-canary-e9638c33-20250721: + resolution: {integrity: sha512-1BH69KkugX70BCF5pXo80djxDFnJ83XzUVREcFWsWuyUcqtNAdKCEpJkLPo3hcR+PIklFPvTxoHvbmwDGzvoeQ==} schema-utils@2.7.1: resolution: {integrity: sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==} @@ -15420,7 +15420,7 @@ packages: peerDependencies: '@babel/core': '*' babel-plugin-macros: '*' - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 peerDependenciesMeta: '@babel/core': optional: true @@ -15501,7 +15501,7 @@ packages: swr@2.2.4: resolution: {integrity: sha512-njiZ/4RiIhoOlAaLYDqwz5qH/KZXVilRLvomrx83HjzCWTfa+InyfAjv05PSFxnmLzZkNO9ZfvgoqzAaEI4sGQ==} peerDependencies: - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 symbol-observable@1.0.1: resolution: {integrity: sha512-Kb3PrPYz4HanVF1LVGuAdW6LoVgIwjUYJGzFe7NDrBLCN4lsV/5J0MFurV+ygS4bRVwrCEt2c7MQ1R2a72oJDw==} @@ -16293,7 +16293,7 @@ packages: engines: {node: '>=10'} peerDependencies: '@types/react': 19.1.8 - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 peerDependenciesMeta: '@types/react': optional: true @@ -16301,13 +16301,13 @@ packages: use-composed-ref@1.3.0: resolution: {integrity: sha512-GLMG0Jc/jiKov/3Ulid1wbv3r54K9HlMW29IWcDFPEqFkSO2nS0MuefWgMJpeHQ9YJeXDL3ZUF+P3jdXlZX/cQ==} peerDependencies: - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 use-isomorphic-layout-effect@1.1.2: resolution: {integrity: sha512-49L8yCO3iGT/ZF9QttjwLF/ZD9Iwto5LnH5LmEdk/6cFmXddqi2ulF0edxTwjj+7mqvpVVGQWvbXZdn32wRSHA==} peerDependencies: '@types/react': '*' - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 peerDependenciesMeta: '@types/react': optional: true @@ -16316,7 +16316,7 @@ packages: resolution: {integrity: sha512-xA+AVm/Wlg3e2P/JiItTziwS7FK92LWrDB0p+hgXloIMuVCeJJ8v6f0eeHyPZaJrM+usM1FkFfbNCrJGs8A/zw==} peerDependencies: '@types/react': '*' - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 peerDependenciesMeta: '@types/react': optional: true @@ -16326,7 +16326,7 @@ packages: engines: {node: '>=10'} peerDependencies: '@types/react': 19.1.8 - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 peerDependenciesMeta: '@types/react': optional: true @@ -16334,12 +16334,12 @@ packages: use-sync-external-store@1.2.0: resolution: {integrity: sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==} peerDependencies: - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 use-sync-external-store@1.5.0: resolution: {integrity: sha512-Rb46I4cGGVBmjamjphe8L/UnvJD+uPPtTkNvX5mZgqdbavhI4EbgIWJiIHXJ8bc/i9EQGPRh4DwEURJ552Do0A==} peerDependencies: - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} @@ -18029,16 +18029,16 @@ snapshots: '@babel/helper-string-parser': 7.25.9 '@babel/helper-validator-identifier': 7.25.9 - '@base-ui-components/react@1.0.0-beta.1(patch_hash=husdbmnwfarofaw5whjzcd7l2a)(@types/react@19.1.8)(react-dom@19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717))(react@19.2.0-canary-dffacc7b-20250717)': + '@base-ui-components/react@1.0.0-beta.1(patch_hash=husdbmnwfarofaw5whjzcd7l2a)(@types/react@19.1.8)(react-dom@19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721))(react@19.2.0-canary-e9638c33-20250721)': dependencies: '@babel/runtime': 7.27.6 - '@floating-ui/react-dom': 2.1.4(react-dom@19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717))(react@19.2.0-canary-dffacc7b-20250717) + '@floating-ui/react-dom': 2.1.4(react-dom@19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721))(react@19.2.0-canary-e9638c33-20250721) '@floating-ui/utils': 0.2.10 - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717) + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721) reselect: 5.1.1 tabbable: 6.2.0 - use-sync-external-store: 1.5.0(react@19.2.0-canary-dffacc7b-20250717) + use-sync-external-store: 1.5.0(react@19.2.0-canary-e9638c33-20250721) optionalDependencies: '@types/react': 19.1.8 @@ -18371,17 +18371,17 @@ snapshots: '@emotion/memoize@0.8.1': {} - '@emotion/react@11.11.1(@types/react@19.1.8)(react@19.2.0-canary-dffacc7b-20250717)': + '@emotion/react@11.11.1(@types/react@19.1.8)(react@19.2.0-canary-e9638c33-20250721)': dependencies: '@babel/runtime': 7.27.0 '@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.2.0-canary-dffacc7b-20250717) + '@emotion/use-insertion-effect-with-fallbacks': 1.0.1(react@19.2.0-canary-e9638c33-20250721) '@emotion/utils': 1.2.1 '@emotion/weak-memoize': 0.3.1 hoist-non-react-statics: 3.3.2 - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 optionalDependencies: '@types/react': 19.1.8 transitivePeerDependencies: @@ -18399,9 +18399,9 @@ snapshots: '@emotion/unitless@0.8.1': {} - '@emotion/use-insertion-effect-with-fallbacks@1.0.1(react@19.2.0-canary-dffacc7b-20250717)': + '@emotion/use-insertion-effect-with-fallbacks@1.0.1(react@19.2.0-canary-e9638c33-20250721)': dependencies: - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 '@emotion/utils@1.2.1': {} @@ -18919,24 +18919,24 @@ snapshots: '@floating-ui/core': 1.7.2 '@floating-ui/utils': 0.2.10 - '@floating-ui/react-dom@2.1.0(react-dom@19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717))(react@19.2.0-canary-dffacc7b-20250717)': + '@floating-ui/react-dom@2.1.0(react-dom@19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721))(react@19.2.0-canary-e9638c33-20250721)': dependencies: '@floating-ui/dom': 1.6.5 - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717) + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721) - '@floating-ui/react-dom@2.1.4(react-dom@19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717))(react@19.2.0-canary-dffacc7b-20250717)': + '@floating-ui/react-dom@2.1.4(react-dom@19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721))(react@19.2.0-canary-e9638c33-20250721)': dependencies: '@floating-ui/dom': 1.7.2 - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717) + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721) - '@floating-ui/react@0.26.16(react-dom@19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717))(react@19.2.0-canary-dffacc7b-20250717)': + '@floating-ui/react@0.26.16(react-dom@19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721))(react@19.2.0-canary-e9638c33-20250721)': dependencies: - '@floating-ui/react-dom': 2.1.0(react-dom@19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717))(react@19.2.0-canary-dffacc7b-20250717) + '@floating-ui/react-dom': 2.1.0(react-dom@19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721))(react@19.2.0-canary-e9638c33-20250721) '@floating-ui/utils': 0.2.2 - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717) + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721) tabbable: 6.2.0 '@floating-ui/utils@0.2.10': {} @@ -20009,23 +20009,23 @@ snapshots: dependencies: call-bind: 1.0.7 - '@mantine/core@7.10.1(@mantine/hooks@7.11.2(react@19.2.0-canary-dffacc7b-20250717))(@types/react@19.1.8)(react-dom@19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717))(react@19.2.0-canary-dffacc7b-20250717)': + '@mantine/core@7.10.1(@mantine/hooks@7.11.2(react@19.2.0-canary-e9638c33-20250721))(@types/react@19.1.8)(react-dom@19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721))(react@19.2.0-canary-e9638c33-20250721)': dependencies: - '@floating-ui/react': 0.26.16(react-dom@19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717))(react@19.2.0-canary-dffacc7b-20250717) - '@mantine/hooks': 7.11.2(react@19.2.0-canary-dffacc7b-20250717) + '@floating-ui/react': 0.26.16(react-dom@19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721))(react@19.2.0-canary-e9638c33-20250721) + '@mantine/hooks': 7.11.2(react@19.2.0-canary-e9638c33-20250721) clsx: 2.1.1 - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717) - react-number-format: 5.4.0(react-dom@19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717))(react@19.2.0-canary-dffacc7b-20250717) - react-remove-scroll: 2.5.10(@types/react@19.1.8)(react@19.2.0-canary-dffacc7b-20250717) - react-textarea-autosize: 8.5.3(@types/react@19.1.8)(react@19.2.0-canary-dffacc7b-20250717) + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721) + react-number-format: 5.4.0(react-dom@19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721))(react@19.2.0-canary-e9638c33-20250721) + react-remove-scroll: 2.5.10(@types/react@19.1.8)(react@19.2.0-canary-e9638c33-20250721) + react-textarea-autosize: 8.5.3(@types/react@19.1.8)(react@19.2.0-canary-e9638c33-20250721) type-fest: 4.18.3 transitivePeerDependencies: - '@types/react' - '@mantine/hooks@7.11.2(react@19.2.0-canary-dffacc7b-20250717)': + '@mantine/hooks@7.11.2(react@19.2.0-canary-e9638c33-20250721)': dependencies: - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 '@manypkg/find-root@1.1.0': dependencies: @@ -20088,17 +20088,17 @@ snapshots: transitivePeerDependencies: - supports-color - '@mdx-js/react@2.2.1(react@19.2.0-canary-dffacc7b-20250717)': + '@mdx-js/react@2.2.1(react@19.2.0-canary-e9638c33-20250721)': dependencies: '@types/mdx': 2.0.3 '@types/react': 19.1.8 - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 - '@mdx-js/react@3.1.0(@types/react@19.1.8)(react@19.2.0-canary-dffacc7b-20250717)': + '@mdx-js/react@3.1.0(@types/react@19.1.8)(react@19.2.0-canary-e9638c33-20250721)': dependencies: '@types/mdx': 2.0.3 '@types/react': 19.1.8 - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 '@module-federation/error-codes@0.15.0': {} @@ -20858,12 +20858,12 @@ snapshots: '@storybook/addon-docs@8.6.0(@types/react@19.1.8)(storybook@8.6.0(prettier@3.3.3))': dependencies: - '@mdx-js/react': 3.1.0(@types/react@19.1.8)(react@19.2.0-canary-dffacc7b-20250717) - '@storybook/blocks': 8.6.0(react-dom@19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717))(react@19.2.0-canary-dffacc7b-20250717)(storybook@8.6.0(prettier@3.3.3)) + '@mdx-js/react': 3.1.0(@types/react@19.1.8)(react@19.2.0-canary-e9638c33-20250721) + '@storybook/blocks': 8.6.0(react-dom@19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721))(react@19.2.0-canary-e9638c33-20250721)(storybook@8.6.0(prettier@3.3.3)) '@storybook/csf-plugin': 8.6.0(storybook@8.6.0(prettier@3.3.3)) - '@storybook/react-dom-shim': 8.6.0(react-dom@19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717))(react@19.2.0-canary-dffacc7b-20250717)(storybook@8.6.0(prettier@3.3.3)) - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717) + '@storybook/react-dom-shim': 8.6.0(react-dom@19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721))(react@19.2.0-canary-e9638c33-20250721)(storybook@8.6.0(prettier@3.3.3)) + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721) storybook: 8.6.0(prettier@3.3.3) ts-dedent: 2.2.0 transitivePeerDependencies: @@ -20928,14 +20928,14 @@ snapshots: - '@swc/helpers' - webpack - '@storybook/blocks@8.6.0(react-dom@19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717))(react@19.2.0-canary-dffacc7b-20250717)(storybook@8.6.0(prettier@3.3.3))': + '@storybook/blocks@8.6.0(react-dom@19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721))(react@19.2.0-canary-e9638c33-20250721)(storybook@8.6.0(prettier@3.3.3))': dependencies: - '@storybook/icons': 1.3.0(react-dom@19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717))(react@19.2.0-canary-dffacc7b-20250717) + '@storybook/icons': 1.3.0(react-dom@19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721))(react@19.2.0-canary-e9638c33-20250721) storybook: 8.6.0(prettier@3.3.3) ts-dedent: 2.2.0 optionalDependencies: - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717) + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721) '@storybook/builder-webpack5@8.6.0(@rspack/core@1.4.5(@swc/helpers@0.5.15))(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.24.2)(storybook@8.6.0(prettier@3.3.3))(typescript@5.8.2)': dependencies: @@ -21014,10 +21014,10 @@ snapshots: '@storybook/global@5.0.0': {} - '@storybook/icons@1.3.0(react-dom@19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717))(react@19.2.0-canary-dffacc7b-20250717)': + '@storybook/icons@1.3.0(react-dom@19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721))(react@19.2.0-canary-e9638c33-20250721)': dependencies: - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717) + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721) '@storybook/instrumenter@8.6.0(storybook@8.6.0(prettier@3.3.3))': dependencies: @@ -21029,17 +21029,17 @@ snapshots: dependencies: storybook: 8.6.0(prettier@3.3.3) - '@storybook/preset-react-webpack@8.6.0(@storybook/test@8.6.0(storybook@8.6.0(prettier@3.3.3)))(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.24.2)(react-dom@19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717))(react@19.2.0-canary-dffacc7b-20250717)(storybook@8.6.0(prettier@3.3.3))(typescript@5.8.2)': + '@storybook/preset-react-webpack@8.6.0(@storybook/test@8.6.0(storybook@8.6.0(prettier@3.3.3)))(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.24.2)(react-dom@19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721))(react@19.2.0-canary-e9638c33-20250721)(storybook@8.6.0(prettier@3.3.3))(typescript@5.8.2)': dependencies: '@storybook/core-webpack': 8.6.0(storybook@8.6.0(prettier@3.3.3)) - '@storybook/react': 8.6.0(@storybook/test@8.6.0(storybook@8.6.0(prettier@3.3.3)))(react-dom@19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717))(react@19.2.0-canary-dffacc7b-20250717)(storybook@8.6.0(prettier@3.3.3))(typescript@5.8.2) + '@storybook/react': 8.6.0(@storybook/test@8.6.0(storybook@8.6.0(prettier@3.3.3)))(react-dom@19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721))(react@19.2.0-canary-e9638c33-20250721)(storybook@8.6.0(prettier@3.3.3))(typescript@5.8.2) '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@5.8.2)(webpack@5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.24.2)) '@types/semver': 7.5.6 find-up: 5.0.0 magic-string: 0.30.17 - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 react-docgen: 7.1.0 - react-dom: 19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717) + react-dom: 19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721) resolve: 1.22.10 semver: 7.6.3 storybook: 8.6.0(prettier@3.3.3) @@ -21073,19 +21073,19 @@ snapshots: transitivePeerDependencies: - supports-color - '@storybook/react-dom-shim@8.6.0(react-dom@19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717))(react@19.2.0-canary-dffacc7b-20250717)(storybook@8.6.0(prettier@3.3.3))': + '@storybook/react-dom-shim@8.6.0(react-dom@19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721))(react@19.2.0-canary-e9638c33-20250721)(storybook@8.6.0(prettier@3.3.3))': dependencies: - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717) + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721) storybook: 8.6.0(prettier@3.3.3) - '@storybook/react-webpack5@8.6.0(@rspack/core@1.4.5(@swc/helpers@0.5.15))(@storybook/test@8.6.0(storybook@8.6.0(prettier@3.3.3)))(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.24.2)(react-dom@19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717))(react@19.2.0-canary-dffacc7b-20250717)(storybook@8.6.0(prettier@3.3.3))(typescript@5.8.2)': + '@storybook/react-webpack5@8.6.0(@rspack/core@1.4.5(@swc/helpers@0.5.15))(@storybook/test@8.6.0(storybook@8.6.0(prettier@3.3.3)))(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.24.2)(react-dom@19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721))(react@19.2.0-canary-e9638c33-20250721)(storybook@8.6.0(prettier@3.3.3))(typescript@5.8.2)': dependencies: '@storybook/builder-webpack5': 8.6.0(@rspack/core@1.4.5(@swc/helpers@0.5.15))(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.24.2)(storybook@8.6.0(prettier@3.3.3))(typescript@5.8.2) - '@storybook/preset-react-webpack': 8.6.0(@storybook/test@8.6.0(storybook@8.6.0(prettier@3.3.3)))(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.24.2)(react-dom@19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717))(react@19.2.0-canary-dffacc7b-20250717)(storybook@8.6.0(prettier@3.3.3))(typescript@5.8.2) - '@storybook/react': 8.6.0(@storybook/test@8.6.0(storybook@8.6.0(prettier@3.3.3)))(react-dom@19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717))(react@19.2.0-canary-dffacc7b-20250717)(storybook@8.6.0(prettier@3.3.3))(typescript@5.8.2) - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717) + '@storybook/preset-react-webpack': 8.6.0(@storybook/test@8.6.0(storybook@8.6.0(prettier@3.3.3)))(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.24.2)(react-dom@19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721))(react@19.2.0-canary-e9638c33-20250721)(storybook@8.6.0(prettier@3.3.3))(typescript@5.8.2) + '@storybook/react': 8.6.0(@storybook/test@8.6.0(storybook@8.6.0(prettier@3.3.3)))(react-dom@19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721))(react@19.2.0-canary-e9638c33-20250721)(storybook@8.6.0(prettier@3.3.3))(typescript@5.8.2) + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721) storybook: 8.6.0(prettier@3.3.3) optionalDependencies: typescript: 5.8.2 @@ -21098,16 +21098,16 @@ snapshots: - uglify-js - webpack-cli - '@storybook/react@8.6.0(@storybook/test@8.6.0(storybook@8.6.0(prettier@3.3.3)))(react-dom@19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717))(react@19.2.0-canary-dffacc7b-20250717)(storybook@8.6.0(prettier@3.3.3))(typescript@5.8.2)': + '@storybook/react@8.6.0(@storybook/test@8.6.0(storybook@8.6.0(prettier@3.3.3)))(react-dom@19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721))(react@19.2.0-canary-e9638c33-20250721)(storybook@8.6.0(prettier@3.3.3))(typescript@5.8.2)': dependencies: '@storybook/components': 8.6.0(storybook@8.6.0(prettier@3.3.3)) '@storybook/global': 5.0.0 '@storybook/manager-api': 8.6.0(storybook@8.6.0(prettier@3.3.3)) '@storybook/preview-api': 8.6.0(storybook@8.6.0(prettier@3.3.3)) - '@storybook/react-dom-shim': 8.6.0(react-dom@19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717))(react@19.2.0-canary-dffacc7b-20250717)(storybook@8.6.0(prettier@3.3.3)) + '@storybook/react-dom-shim': 8.6.0(react-dom@19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721))(react@19.2.0-canary-e9638c33-20250721)(storybook@8.6.0(prettier@3.3.3)) '@storybook/theming': 8.6.0(storybook@8.6.0(prettier@3.3.3)) - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717) + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721) storybook: 8.6.0(prettier@3.3.3) optionalDependencies: '@storybook/test': 8.6.0(storybook@8.6.0(prettier@3.3.3)) @@ -21314,13 +21314,13 @@ snapshots: lodash: 4.17.21 redent: 3.0.0 - '@testing-library/react@15.0.7(@types/react@19.1.8)(react-dom@19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717))(react@19.2.0-canary-dffacc7b-20250717)': + '@testing-library/react@15.0.7(@types/react@19.1.8)(react-dom@19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721))(react@19.2.0-canary-e9638c33-20250721)': dependencies: '@babel/runtime': 7.27.0 '@testing-library/dom': 10.1.0 '@types/react-dom': 19.1.6(@types/react@19.1.8) - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717) + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721) optionalDependencies: '@types/react': 19.1.8 @@ -27095,7 +27095,7 @@ snapshots: hoist-non-react-statics@3.3.2: dependencies: - react-is: 19.2.0-canary-dffacc7b-20250717 + react-is: 19.2.0-canary-e9638c33-20250721 homedir-polyfill@1.0.3: dependencies: @@ -29118,9 +29118,9 @@ snapshots: lru-cache@7.18.3: {} - lucide-react@0.383.0(react@19.2.0-canary-dffacc7b-20250717): + lucide-react@0.383.0(react@19.2.0-canary-e9638c33-20250721): dependencies: - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 lz-string@1.5.0: {} @@ -32036,25 +32036,25 @@ snapshots: dependencies: ansi-regex: 5.0.1 ansi-styles: 5.2.0 - react-is: 19.2.0-canary-dffacc7b-20250717 + react-is: 19.2.0-canary-e9638c33-20250721 pretty-format@29.5.0: dependencies: '@jest/schemas': 29.4.3 ansi-styles: 5.2.0 - react-is: 19.2.0-canary-dffacc7b-20250717 + react-is: 19.2.0-canary-e9638c33-20250721 pretty-format@29.7.0: dependencies: '@jest/schemas': 29.6.3 ansi-styles: 5.2.0 - react-is: 19.2.0-canary-dffacc7b-20250717 + react-is: 19.2.0-canary-e9638c33-20250721 pretty-format@30.0.0-alpha.6: dependencies: '@jest/schemas': 30.0.0-alpha.6 ansi-styles: 5.2.0 - react-is: 19.2.0-canary-dffacc7b-20250717 + react-is: 19.2.0-canary-e9638c33-20250721 pretty-ms@7.0.0: dependencies: @@ -32117,7 +32117,7 @@ snapshots: dependencies: loose-envify: 1.4.0 object-assign: 4.1.1 - react-is: 19.2.0-canary-dffacc7b-20250717 + react-is: 19.2.0-canary-e9638c33-20250721 property-information@5.6.0: dependencies: @@ -32328,130 +32328,130 @@ snapshots: transitivePeerDependencies: - supports-color - react-dom@0.0.0-experimental-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717): + react-dom@0.0.0-experimental-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721): dependencies: - react: 19.2.0-canary-dffacc7b-20250717 - scheduler: 0.27.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 + scheduler: 0.27.0-canary-e9638c33-20250721 - react-dom@19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717): + react-dom@19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721): dependencies: - react: 19.2.0-canary-dffacc7b-20250717 - scheduler: 0.27.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 + scheduler: 0.27.0-canary-e9638c33-20250721 - react-is@19.2.0-canary-dffacc7b-20250717: {} + react-is@19.2.0-canary-e9638c33-20250721: {} react-lifecycles-compat@3.0.4: {} - react-number-format@5.4.0(react-dom@19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717))(react@19.2.0-canary-dffacc7b-20250717): + react-number-format@5.4.0(react-dom@19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721))(react@19.2.0-canary-e9638c33-20250721): dependencies: prop-types: 15.8.1 - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717) + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721) react-refresh@0.12.0: {} - react-remove-scroll-bar@2.3.6(@types/react@19.1.8)(react@19.2.0-canary-dffacc7b-20250717): + react-remove-scroll-bar@2.3.6(@types/react@19.1.8)(react@19.2.0-canary-e9638c33-20250721): dependencies: - react: 19.2.0-canary-dffacc7b-20250717 - react-style-singleton: 2.2.1(@types/react@19.1.8)(react@19.2.0-canary-dffacc7b-20250717) + react: 19.2.0-canary-e9638c33-20250721 + react-style-singleton: 2.2.1(@types/react@19.1.8)(react@19.2.0-canary-e9638c33-20250721) tslib: 2.8.1 optionalDependencies: '@types/react': 19.1.8 - react-remove-scroll@2.5.10(@types/react@19.1.8)(react@19.2.0-canary-dffacc7b-20250717): + react-remove-scroll@2.5.10(@types/react@19.1.8)(react@19.2.0-canary-e9638c33-20250721): dependencies: - react: 19.2.0-canary-dffacc7b-20250717 - react-remove-scroll-bar: 2.3.6(@types/react@19.1.8)(react@19.2.0-canary-dffacc7b-20250717) - react-style-singleton: 2.2.1(@types/react@19.1.8)(react@19.2.0-canary-dffacc7b-20250717) + react: 19.2.0-canary-e9638c33-20250721 + react-remove-scroll-bar: 2.3.6(@types/react@19.1.8)(react@19.2.0-canary-e9638c33-20250721) + react-style-singleton: 2.2.1(@types/react@19.1.8)(react@19.2.0-canary-e9638c33-20250721) tslib: 2.8.1 - use-callback-ref: 1.3.2(@types/react@19.1.8)(react@19.2.0-canary-dffacc7b-20250717) - use-sidecar: 1.1.2(@types/react@19.1.8)(react@19.2.0-canary-dffacc7b-20250717) + use-callback-ref: 1.3.2(@types/react@19.1.8)(react@19.2.0-canary-e9638c33-20250721) + use-sidecar: 1.1.2(@types/react@19.1.8)(react@19.2.0-canary-e9638c33-20250721) optionalDependencies: '@types/react': 19.1.8 - react-server-dom-turbopack@0.0.0-experimental-dffacc7b-20250717(react-dom@19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717))(react@19.2.0-canary-dffacc7b-20250717): + react-server-dom-turbopack@0.0.0-experimental-e9638c33-20250721(react-dom@19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721))(react@19.2.0-canary-e9638c33-20250721): dependencies: acorn-loose: 8.3.0 neo-async: 2.6.1 - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717) + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721) - react-server-dom-turbopack@19.2.0-canary-dffacc7b-20250717(react-dom@19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717))(react@19.2.0-canary-dffacc7b-20250717): + react-server-dom-turbopack@19.2.0-canary-e9638c33-20250721(react-dom@19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721))(react@19.2.0-canary-e9638c33-20250721): dependencies: acorn-loose: 8.3.0 neo-async: 2.6.1 - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717) + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721) - react-server-dom-webpack@0.0.0-experimental-dffacc7b-20250717(react-dom@19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717))(react@19.2.0-canary-dffacc7b-20250717)(webpack@5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))): + react-server-dom-webpack@0.0.0-experimental-e9638c33-20250721(react-dom@19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721))(react@19.2.0-canary-e9638c33-20250721)(webpack@5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))): dependencies: acorn-loose: 8.3.0 neo-async: 2.6.1 - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717) + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721) webpack: 5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15)) webpack-sources: 3.2.3(patch_hash=jbynf5dc46ambamq3wuyho6hkq) - react-server-dom-webpack@19.2.0-canary-dffacc7b-20250717(react-dom@19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717))(react@19.2.0-canary-dffacc7b-20250717)(webpack@5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))): + react-server-dom-webpack@19.2.0-canary-e9638c33-20250721(react-dom@19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721))(react@19.2.0-canary-e9638c33-20250721)(webpack@5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))): dependencies: acorn-loose: 8.3.0 neo-async: 2.6.1 - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717) + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721) webpack: 5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15)) webpack-sources: 3.2.3(patch_hash=jbynf5dc46ambamq3wuyho6hkq) - react-shallow-renderer@16.15.0(react@19.2.0-canary-dffacc7b-20250717): + react-shallow-renderer@16.15.0(react@19.2.0-canary-e9638c33-20250721): dependencies: object-assign: 4.1.1 - react: 19.2.0-canary-dffacc7b-20250717 - react-is: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 + react-is: 19.2.0-canary-e9638c33-20250721 - react-ssr-prepass@1.0.8(react-is@19.2.0-canary-dffacc7b-20250717)(react@19.2.0-canary-dffacc7b-20250717): + react-ssr-prepass@1.0.8(react-is@19.2.0-canary-e9638c33-20250721)(react@19.2.0-canary-e9638c33-20250721): dependencies: object-is: 1.0.2 - react: 19.2.0-canary-dffacc7b-20250717 - react-is: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 + react-is: 19.2.0-canary-e9638c33-20250721 - react-style-singleton@2.2.1(@types/react@19.1.8)(react@19.2.0-canary-dffacc7b-20250717): + react-style-singleton@2.2.1(@types/react@19.1.8)(react@19.2.0-canary-e9638c33-20250721): dependencies: get-nonce: 1.0.1 invariant: 2.2.4 - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 tslib: 2.8.1 optionalDependencies: '@types/react': 19.1.8 - react-test-renderer@18.2.0(react@19.2.0-canary-dffacc7b-20250717): + react-test-renderer@18.2.0(react@19.2.0-canary-e9638c33-20250721): dependencies: - react: 19.2.0-canary-dffacc7b-20250717 - react-is: 19.2.0-canary-dffacc7b-20250717 - react-shallow-renderer: 16.15.0(react@19.2.0-canary-dffacc7b-20250717) - scheduler: 0.27.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 + react-is: 19.2.0-canary-e9638c33-20250721 + react-shallow-renderer: 16.15.0(react@19.2.0-canary-e9638c33-20250721) + scheduler: 0.27.0-canary-e9638c33-20250721 - react-textarea-autosize@8.5.3(@types/react@19.1.8)(react@19.2.0-canary-dffacc7b-20250717): + react-textarea-autosize@8.5.3(@types/react@19.1.8)(react@19.2.0-canary-e9638c33-20250721): dependencies: '@babel/runtime': 7.27.0 - react: 19.2.0-canary-dffacc7b-20250717 - use-composed-ref: 1.3.0(react@19.2.0-canary-dffacc7b-20250717) - use-latest: 1.2.1(@types/react@19.1.8)(react@19.2.0-canary-dffacc7b-20250717) + react: 19.2.0-canary-e9638c33-20250721 + use-composed-ref: 1.3.0(react@19.2.0-canary-e9638c33-20250721) + use-latest: 1.2.1(@types/react@19.1.8)(react@19.2.0-canary-e9638c33-20250721) transitivePeerDependencies: - '@types/react' - react-virtualized@9.22.3(react-dom@19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717))(react@19.2.0-canary-dffacc7b-20250717): + react-virtualized@9.22.3(react-dom@19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721))(react@19.2.0-canary-e9638c33-20250721): dependencies: '@babel/runtime': 7.27.0 clsx: 1.1.1 dom-helpers: 5.2.1 loose-envify: 1.4.0 prop-types: 15.8.1 - react: 19.2.0-canary-dffacc7b-20250717 - react-dom: 19.2.0-canary-dffacc7b-20250717(react@19.2.0-canary-dffacc7b-20250717) + react: 19.2.0-canary-e9638c33-20250721 + react-dom: 19.2.0-canary-e9638c33-20250721(react@19.2.0-canary-e9638c33-20250721) react-lifecycles-compat: 3.0.4 - react@0.0.0-experimental-dffacc7b-20250717: {} + react@0.0.0-experimental-e9638c33-20250721: {} - react@19.2.0-canary-dffacc7b-20250717: {} + react@19.2.0-canary-e9638c33-20250721: {} read-cache@1.0.0: dependencies: @@ -33219,9 +33219,9 @@ snapshots: dependencies: xmlchars: 2.2.0 - scheduler@0.0.0-experimental-dffacc7b-20250717: {} + scheduler@0.0.0-experimental-e9638c33-20250721: {} - scheduler@0.27.0-canary-dffacc7b-20250717: {} + scheduler@0.27.0-canary-e9638c33-20250721: {} schema-utils@2.7.1: dependencies: @@ -34022,10 +34022,10 @@ snapshots: postcss: 7.0.32 postcss-load-plugins: 2.3.0 - styled-jsx@5.1.6(@babel/core@7.26.10)(babel-plugin-macros@3.1.0)(react@19.2.0-canary-dffacc7b-20250717): + styled-jsx@5.1.6(@babel/core@7.26.10)(babel-plugin-macros@3.1.0)(react@19.2.0-canary-e9638c33-20250721): dependencies: client-only: 0.0.1 - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 optionalDependencies: '@babel/core': 7.26.10 babel-plugin-macros: 3.1.0 @@ -34119,11 +34119,11 @@ snapshots: '@swc/counter': 0.1.3 webpack: 5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.24.2) - swr@2.2.4(react@19.2.0-canary-dffacc7b-20250717): + swr@2.2.4(react@19.2.0-canary-e9638c33-20250721): dependencies: client-only: 0.0.1 - react: 19.2.0-canary-dffacc7b-20250717 - use-sync-external-store: 1.2.0(react@19.2.0-canary-dffacc7b-20250717) + react: 19.2.0-canary-e9638c33-20250721 + use-sync-external-store: 1.2.0(react@19.2.0-canary-e9638c33-20250721) symbol-observable@1.0.1: {} @@ -34920,9 +34920,9 @@ snapshots: unist-util-is: 6.0.0 unist-util-visit-parents: 6.0.1 - unistore@3.4.1(react@19.2.0-canary-dffacc7b-20250717): + unistore@3.4.1(react@19.2.0-canary-e9638c33-20250721): optionalDependencies: - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 universal-github-app-jwt@1.1.1: dependencies: @@ -35016,45 +35016,45 @@ snapshots: punycode: 1.4.1 qs: 6.13.1 - use-callback-ref@1.3.2(@types/react@19.1.8)(react@19.2.0-canary-dffacc7b-20250717): + use-callback-ref@1.3.2(@types/react@19.1.8)(react@19.2.0-canary-e9638c33-20250721): dependencies: - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 tslib: 2.8.1 optionalDependencies: '@types/react': 19.1.8 - use-composed-ref@1.3.0(react@19.2.0-canary-dffacc7b-20250717): + use-composed-ref@1.3.0(react@19.2.0-canary-e9638c33-20250721): dependencies: - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 - use-isomorphic-layout-effect@1.1.2(@types/react@19.1.8)(react@19.2.0-canary-dffacc7b-20250717): + use-isomorphic-layout-effect@1.1.2(@types/react@19.1.8)(react@19.2.0-canary-e9638c33-20250721): dependencies: - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 optionalDependencies: '@types/react': 19.1.8 - use-latest@1.2.1(@types/react@19.1.8)(react@19.2.0-canary-dffacc7b-20250717): + use-latest@1.2.1(@types/react@19.1.8)(react@19.2.0-canary-e9638c33-20250721): dependencies: - react: 19.2.0-canary-dffacc7b-20250717 - use-isomorphic-layout-effect: 1.1.2(@types/react@19.1.8)(react@19.2.0-canary-dffacc7b-20250717) + react: 19.2.0-canary-e9638c33-20250721 + use-isomorphic-layout-effect: 1.1.2(@types/react@19.1.8)(react@19.2.0-canary-e9638c33-20250721) optionalDependencies: '@types/react': 19.1.8 - use-sidecar@1.1.2(@types/react@19.1.8)(react@19.2.0-canary-dffacc7b-20250717): + use-sidecar@1.1.2(@types/react@19.1.8)(react@19.2.0-canary-e9638c33-20250721): dependencies: detect-node-es: 1.1.0 - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 tslib: 2.8.1 optionalDependencies: '@types/react': 19.1.8 - use-sync-external-store@1.2.0(react@19.2.0-canary-dffacc7b-20250717): + use-sync-external-store@1.2.0(react@19.2.0-canary-e9638c33-20250721): dependencies: - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 - use-sync-external-store@1.5.0(react@19.2.0-canary-dffacc7b-20250717): + use-sync-external-store@1.5.0(react@19.2.0-canary-e9638c33-20250721): dependencies: - react: 19.2.0-canary-dffacc7b-20250717 + react: 19.2.0-canary-e9638c33-20250721 util-deprecate@1.0.2: {}