From e0caa4763959936eebeb90afc5d7af4bcd086fbe Mon Sep 17 00:00:00 2001 From: Josh Story Date: Wed, 25 Oct 2023 12:14:10 -0700 Subject: [PATCH] Successfully updated React from b8e47d988 to a9985529f. - https://github.com/facebook/react/pull/27586 - https://github.com/facebook/react/pull/27577 - https://github.com/facebook/react/pull/27576 --- package.json | 20 ++-- ...t-dom-server-legacy.browser.development.js | 2 +- ...om-server-legacy.browser.production.min.js | 2 +- ...eact-dom-server-legacy.node.development.js | 2 +- ...t-dom-server-legacy.node.production.min.js | 2 +- ...t-dom-server-rendering-stub.development.js | 2 +- ...om-server-rendering-stub.production.min.js | 2 +- .../react-dom-server.browser.development.js | 2 +- ...react-dom-server.browser.production.min.js | 2 +- .../cjs/react-dom-server.edge.development.js | 2 +- .../react-dom-server.edge.production.min.js | 2 +- .../cjs/react-dom-server.node.development.js | 2 +- .../react-dom-server.node.production.min.js | 2 +- .../react-dom-unstable_testing.development.js | 107 +++++++++--------- ...act-dom-unstable_testing.production.min.js | 18 +-- .../cjs/react-dom.development.js | 107 +++++++++--------- .../cjs/react-dom.production.min.js | 18 +-- .../cjs/react-dom.profiling.min.js | 18 +-- .../react-dom-experimental/package.json | 4 +- ...t-dom-server-legacy.browser.development.js | 2 +- ...om-server-legacy.browser.production.min.js | 2 +- ...eact-dom-server-legacy.node.development.js | 2 +- ...t-dom-server-legacy.node.production.min.js | 2 +- ...t-dom-server-rendering-stub.development.js | 2 +- ...om-server-rendering-stub.production.min.js | 2 +- .../react-dom-server.browser.development.js | 2 +- ...react-dom-server.browser.production.min.js | 2 +- .../cjs/react-dom-server.edge.development.js | 2 +- .../react-dom-server.edge.production.min.js | 2 +- .../cjs/react-dom-server.node.development.js | 2 +- .../react-dom-server.node.production.min.js | 2 +- .../react-dom/cjs/react-dom.development.js | 107 +++++++++--------- .../react-dom/cjs/react-dom.production.min.js | 18 +-- .../react-dom/cjs/react-dom.profiling.min.js | 18 +-- .../next/src/compiled/react-dom/package.json | 4 +- .../cjs/react.development.js | 2 +- .../cjs/react.production.min.js | 2 +- .../cjs/react.shared-subset.development.js | 2 +- .../cjs/react.shared-subset.production.min.js | 2 +- ...om-turbopack-server.browser.development.js | 17 ++- ...turbopack-server.browser.production.min.js | 58 +++++----- ...r-dom-turbopack-server.edge.development.js | 17 ++- ...om-turbopack-server.edge.production.min.js | 46 ++++---- ...r-dom-turbopack-server.node.development.js | 17 ++- ...om-turbopack-server.node.production.min.js | 2 +- ...opack-server.node.unbundled.development.js | 17 ++- ...ck-server.node.unbundled.production.min.js | 2 +- .../package.json | 4 +- ...om-turbopack-server.browser.development.js | 43 ++++++- ...turbopack-server.browser.production.min.js | 4 +- ...r-dom-turbopack-server.edge.development.js | 43 ++++++- ...om-turbopack-server.edge.production.min.js | 6 +- ...r-dom-turbopack-server.node.development.js | 43 ++++++- ...om-turbopack-server.node.production.min.js | 7 +- ...opack-server.node.unbundled.development.js | 43 ++++++- ...ck-server.node.unbundled.production.min.js | 7 +- .../react-server-dom-turbopack/package.json | 4 +- ...-dom-webpack-server.browser.development.js | 17 ++- ...m-webpack-server.browser.production.min.js | 58 +++++----- ...ver-dom-webpack-server.edge.development.js | 17 ++- ...-dom-webpack-server.edge.production.min.js | 46 ++++---- ...ver-dom-webpack-server.node.development.js | 17 ++- ...-dom-webpack-server.node.production.min.js | 2 +- ...bpack-server.node.unbundled.development.js | 17 ++- ...ck-server.node.unbundled.production.min.js | 2 +- .../package.json | 4 +- ...-dom-webpack-server.browser.development.js | 43 ++++++- ...m-webpack-server.browser.production.min.js | 4 +- ...ver-dom-webpack-server.edge.development.js | 43 ++++++- ...-dom-webpack-server.edge.production.min.js | 6 +- ...ver-dom-webpack-server.node.development.js | 43 ++++++- ...-dom-webpack-server.node.production.min.js | 7 +- ...bpack-server.node.unbundled.development.js | 43 ++++++- ...ck-server.node.unbundled.production.min.js | 7 +- .../react-server-dom-webpack/package.json | 4 +- .../compiled/react/cjs/react.development.js | 2 +- .../react/cjs/react.production.min.js | 2 +- .../cjs/react.shared-subset.development.js | 2 +- .../cjs/react.shared-subset.production.min.js | 2 +- pnpm-lock.yaml | 104 ++++++++--------- 80 files changed, 878 insertions(+), 489 deletions(-) diff --git a/package.json b/package.json index bbf282d7bde39..d96e55fddf486 100644 --- a/package.json +++ b/package.json @@ -193,16 +193,16 @@ "random-seed": "0.3.0", "react": "18.2.0", "react-17": "npm:react@17.0.2", - "react-builtin": "npm:react@18.3.0-canary-b8e47d988-20231023", + "react-builtin": "npm:react@18.3.0-canary-a9985529f-20231025", "react-dom": "18.2.0", "react-dom-17": "npm:react-dom@17.0.2", - "react-dom-builtin": "npm:react-dom@18.3.0-canary-b8e47d988-20231023", - "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-b8e47d988-20231023", - "react-experimental-builtin": "npm:react@0.0.0-experimental-b8e47d988-20231023", - "react-server-dom-turbopack": "18.3.0-canary-b8e47d988-20231023", - "react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-b8e47d988-20231023", - "react-server-dom-webpack": "18.3.0-canary-b8e47d988-20231023", - "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-b8e47d988-20231023", + "react-dom-builtin": "npm:react-dom@18.3.0-canary-a9985529f-20231025", + "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-a9985529f-20231025", + "react-experimental-builtin": "npm:react@0.0.0-experimental-a9985529f-20231025", + "react-server-dom-turbopack": "18.3.0-canary-a9985529f-20231025", + "react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-a9985529f-20231025", + "react-server-dom-webpack": "18.3.0-canary-a9985529f-20231025", + "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-a9985529f-20231025", "react-ssr-prepass": "1.0.8", "react-virtualized": "9.22.3", "relay-compiler": "13.0.2", @@ -212,8 +212,8 @@ "resolve-from": "5.0.0", "sass": "1.54.0", "satori": "0.10.6", - "scheduler-builtin": "npm:scheduler@0.24.0-canary-b8e47d988-20231023", - "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-b8e47d988-20231023", + "scheduler-builtin": "npm:scheduler@0.24.0-canary-a9985529f-20231025", + "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-a9985529f-20231025", "seedrandom": "3.0.5", "selenium-webdriver": "4.0.0-beta.4", "semver": "7.3.7", diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js index cb9b45dbb2776..08b984abd60e7 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js @@ -17,7 +17,7 @@ if (process.env.NODE_ENV !== "production") { var React = require("next/dist/compiled/react-experimental"); var ReactDOM = require('react-dom'); -var ReactVersion = '18.3.0-experimental-b8e47d988-20231023'; +var ReactVersion = '18.3.0-experimental-a9985529f-20231025'; var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.min.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.min.js index e60196fc30c6b..ed1599f38295e 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.min.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.min.js @@ -193,4 +193,4 @@ for(c=0;c title"):null)} function ul(a,b,c){if(1===c||null!=b.itemProp)return!1;switch(a){case "meta":case "title":return!0;case "style":if("string"!==typeof b.precedence||"string"!==typeof b.href||""===b.href)break;return!0;case "link":if("string"!==typeof b.rel||"string"!==typeof b.href||""===b.href||b.onLoad||b.onError)break;switch(b.rel){case "stylesheet":return a=b.disabled,"string"===typeof b.precedence&&null==a;default:return!0}case "script":if(!0===b.async&&!b.onLoad&&!b.onError&&"string"===typeof b.src&&b.src)return!0}return!1} var Uk=null;function Vk(){} -function hk(a,b,c){if(null===Uk)throw Error(t(475));var d=Uk;if("stylesheet"===b.type&&("string"!==typeof c.media||!1!==matchMedia(c.media).matches)){if(null===b.instance){var e=No(c.href),f=a.querySelector(Po(e));if(f){a=f._p;null!==a&&"object"===typeof a&&"function"===typeof a.then&&(d.count++,d=Wo.bind(d),a.then(d,d));b.state.loading|=4;b.instance=f;Sb(f);return}f=a.ownerDocument||a;c=Vo(c);(e=Co.get(e))&&Ro(c,e);f=f.createElement("link");Sb(f);var g=f;g._p=new Promise(function(h,k){g.onload=h; -g.onerror=k});Ki(f,"link",c);b.instance=f}null===d.stylesheets&&(d.stylesheets=new Map);d.stylesheets.set(b,a);(a=b.state.preload)&&0===(b.state.loading&3)&&(d.count++,b=Wo.bind(d),a.addEventListener("load",b),a.addEventListener("error",b))}} +function hk(a,b,c){if(null===Uk)throw Error(t(475));var d=Uk;if("stylesheet"===b.type&&("string"!==typeof c.media||!1!==matchMedia(c.media).matches)&&0===(b.state.loading&4)){if(null===b.instance){var e=No(c.href),f=a.querySelector(Po(e));if(f){a=f._p;null!==a&&"object"===typeof a&&"function"===typeof a.then&&(d.count++,d=Wo.bind(d),a.then(d,d));b.state.loading|=4;b.instance=f;Sb(f);return}f=a.ownerDocument||a;c=Vo(c);(e=Co.get(e))&&Ro(c,e);f=f.createElement("link");Sb(f);var g=f;g._p=new Promise(function(h, +k){g.onload=h;g.onerror=k});Ki(f,"link",c);b.instance=f}null===d.stylesheets&&(d.stylesheets=new Map);d.stylesheets.set(b,a);(a=b.state.preload)&&0===(b.state.loading&3)&&(d.count++,b=Wo.bind(d),a.addEventListener("load",b),a.addEventListener("error",b))}} function Wk(){if(null===Uk)throw Error(t(475));var a=Uk;a.stylesheets&&0===a.count&&Xo(a,a.stylesheets);return 0 title"):null)} function gl(a,b,c){if(1===c||null!=b.itemProp)return!1;switch(a){case "meta":case "title":return!0;case "style":if("string"!==typeof b.precedence||"string"!==typeof b.href||""===b.href)break;return!0;case "link":if("string"!==typeof b.rel||"string"!==typeof b.href||""===b.href||b.onLoad||b.onError)break;switch(b.rel){case "stylesheet":return a=b.disabled,"string"===typeof b.precedence&&null==a;default:return!0}case "script":if(!0===b.async&&!b.onLoad&&!b.onError&&"string"===typeof b.src&&b.src)return!0}return!1} var Gk=null;function Hk(){} -function fk(a,b,c){if(null===Gk)throw Error(t(475));var d=Gk;if("stylesheet"===b.type&&("string"!==typeof c.media||!1!==matchMedia(c.media).matches)){if(null===b.instance){var e=wo(c.href),f=a.querySelector(yo(e));if(f){a=f._p;null!==a&&"object"===typeof a&&"function"===typeof a.then&&(d.count++,d=Fo.bind(d),a.then(d,d));b.state.loading|=4;b.instance=f;Sb(f);return}f=a.ownerDocument||a;c=Eo(c);(e=lo.get(e))&&Ao(c,e);f=f.createElement("link");Sb(f);var g=f;g._p=new Promise(function(h,l){g.onload=h; -g.onerror=l});Ii(f,"link",c);b.instance=f}null===d.stylesheets&&(d.stylesheets=new Map);d.stylesheets.set(b,a);(a=b.state.preload)&&0===(b.state.loading&3)&&(d.count++,b=Fo.bind(d),a.addEventListener("load",b),a.addEventListener("error",b))}} +function fk(a,b,c){if(null===Gk)throw Error(t(475));var d=Gk;if("stylesheet"===b.type&&("string"!==typeof c.media||!1!==matchMedia(c.media).matches)&&0===(b.state.loading&4)){if(null===b.instance){var e=wo(c.href),f=a.querySelector(yo(e));if(f){a=f._p;null!==a&&"object"===typeof a&&"function"===typeof a.then&&(d.count++,d=Fo.bind(d),a.then(d,d));b.state.loading|=4;b.instance=f;Sb(f);return}f=a.ownerDocument||a;c=Eo(c);(e=lo.get(e))&&Ao(c,e);f=f.createElement("link");Sb(f);var g=f;g._p=new Promise(function(h, +l){g.onload=h;g.onerror=l});Ii(f,"link",c);b.instance=f}null===d.stylesheets&&(d.stylesheets=new Map);d.stylesheets.set(b,a);(a=b.state.preload)&&0===(b.state.loading&3)&&(d.count++,b=Fo.bind(d),a.addEventListener("load",b),a.addEventListener("error",b))}} function Ik(){if(null===Gk)throw Error(t(475));var a=Gk;a.stylesheets&&0===a.count&&Go(a,a.stylesheets);return 0 title"):null)} function Tl(a,b,c){if(1===c||null!=b.itemProp)return!1;switch(a){case "meta":case "title":return!0;case "style":if("string"!==typeof b.precedence||"string"!==typeof b.href||""===b.href)break;return!0;case "link":if("string"!==typeof b.rel||"string"!==typeof b.href||""===b.href||b.onLoad||b.onError)break;switch(b.rel){case "stylesheet":return a=b.disabled,"string"===typeof b.precedence&&null==a;default:return!0}case "script":if(!0===b.async&&!b.onLoad&&!b.onError&&"string"===typeof b.src&&b.src)return!0}return!1} var sl=null;function tl(){} -function Qk(a,b,c){if(null===sl)throw Error(t(475));var d=sl;if("stylesheet"===b.type&&("string"!==typeof c.media||!1!==matchMedia(c.media).matches)){if(null===b.instance){var e=ip(c.href),f=a.querySelector(kp(e));if(f){a=f._p;null!==a&&"object"===typeof a&&"function"===typeof a.then&&(d.count++,d=rp.bind(d),a.then(d,d));b.state.loading|=4;b.instance=f;fc(f);return}f=a.ownerDocument||a;c=qp(c);(e=Yo.get(e))&&mp(c,e);f=f.createElement("link");fc(f);var g=f;g._p=new Promise(function(h,l){g.onload=h; -g.onerror=l});kj(f,"link",c);b.instance=f}null===d.stylesheets&&(d.stylesheets=new Map);d.stylesheets.set(b,a);(a=b.state.preload)&&0===(b.state.loading&3)&&(d.count++,b=rp.bind(d),a.addEventListener("load",b),a.addEventListener("error",b))}} +function Qk(a,b,c){if(null===sl)throw Error(t(475));var d=sl;if("stylesheet"===b.type&&("string"!==typeof c.media||!1!==matchMedia(c.media).matches)&&0===(b.state.loading&4)){if(null===b.instance){var e=ip(c.href),f=a.querySelector(kp(e));if(f){a=f._p;null!==a&&"object"===typeof a&&"function"===typeof a.then&&(d.count++,d=rp.bind(d),a.then(d,d));b.state.loading|=4;b.instance=f;fc(f);return}f=a.ownerDocument||a;c=qp(c);(e=Yo.get(e))&&mp(c,e);f=f.createElement("link");fc(f);var g=f;g._p=new Promise(function(h, +l){g.onload=h;g.onerror=l});kj(f,"link",c);b.instance=f}null===d.stylesheets&&(d.stylesheets=new Map);d.stylesheets.set(b,a);(a=b.state.preload)&&0===(b.state.loading&3)&&(d.count++,b=rp.bind(d),a.addEventListener("load",b),a.addEventListener("error",b))}} function ul(){if(null===sl)throw Error(t(475));var a=sl;a.stylesheets&&0===a.count&&sp(a,a.stylesheets);return 0 title"):null)} function Yk(a,b,c){if(1===c||null!=b.itemProp)return!1;switch(a){case "meta":case "title":return!0;case "style":if("string"!==typeof b.precedence||"string"!==typeof b.href||""===b.href)break;return!0;case "link":if("string"!==typeof b.rel||"string"!==typeof b.href||""===b.href||b.onLoad||b.onError)break;switch(b.rel){case "stylesheet":return a=b.disabled,"string"===typeof b.precedence&&null==a;default:return!0}case "script":if(!0===b.async&&!b.onLoad&&!b.onError&&"string"===typeof b.src&&b.src)return!0}return!1} var xk=null;function yk(){} -function Xj(a,b,c){if(null===xk)throw Error(t(475));var d=xk;if("stylesheet"===b.type&&("string"!==typeof c.media||!1!==matchMedia(c.media).matches)){if(null===b.instance){var e=no(c.href),f=a.querySelector(po(e));if(f){a=f._p;null!==a&&"object"===typeof a&&"function"===typeof a.then&&(d.count++,d=wo.bind(d),a.then(d,d));b.state.loading|=4;b.instance=f;Nb(f);return}f=a.ownerDocument||a;c=vo(c);(e=bo.get(e))&&ro(c,e);f=f.createElement("link");Nb(f);var g=f;g._p=new Promise(function(h,l){g.onload=h; -g.onerror=l});Ai(f,"link",c);b.instance=f}null===d.stylesheets&&(d.stylesheets=new Map);d.stylesheets.set(b,a);(a=b.state.preload)&&0===(b.state.loading&3)&&(d.count++,b=wo.bind(d),a.addEventListener("load",b),a.addEventListener("error",b))}} +function Xj(a,b,c){if(null===xk)throw Error(t(475));var d=xk;if("stylesheet"===b.type&&("string"!==typeof c.media||!1!==matchMedia(c.media).matches)&&0===(b.state.loading&4)){if(null===b.instance){var e=no(c.href),f=a.querySelector(po(e));if(f){a=f._p;null!==a&&"object"===typeof a&&"function"===typeof a.then&&(d.count++,d=wo.bind(d),a.then(d,d));b.state.loading|=4;b.instance=f;Nb(f);return}f=a.ownerDocument||a;c=vo(c);(e=bo.get(e))&&ro(c,e);f=f.createElement("link");Nb(f);var g=f;g._p=new Promise(function(h, +l){g.onload=h;g.onerror=l});Ai(f,"link",c);b.instance=f}null===d.stylesheets&&(d.stylesheets=new Map);d.stylesheets.set(b,a);(a=b.state.preload)&&0===(b.state.loading&3)&&(d.count++,b=wo.bind(d),a.addEventListener("load",b),a.addEventListener("error",b))}} function zk(){if(null===xk)throw Error(t(475));var a=xk;a.stylesheets&&0===a.count&&xo(a,a.stylesheets);return 0 title"):null)} function Kl(a,b,c){if(1===c||null!=b.itemProp)return!1;switch(a){case "meta":case "title":return!0;case "style":if("string"!==typeof b.precedence||"string"!==typeof b.href||""===b.href)break;return!0;case "link":if("string"!==typeof b.rel||"string"!==typeof b.href||""===b.href||b.onLoad||b.onError)break;switch(b.rel){case "stylesheet":return a=b.disabled,"string"===typeof b.precedence&&null==a;default:return!0}case "script":if(!0===b.async&&!b.onLoad&&!b.onError&&"string"===typeof b.src&&b.src)return!0}return!1} var jl=null;function kl(){} -function Ik(a,b,c){if(null===jl)throw Error(t(475));var d=jl;if("stylesheet"===b.type&&("string"!==typeof c.media||!1!==matchMedia(c.media).matches)){if(null===b.instance){var e=$o(c.href),f=a.querySelector(bp(e));if(f){a=f._p;null!==a&&"object"===typeof a&&"function"===typeof a.then&&(d.count++,d=ip.bind(d),a.then(d,d));b.state.loading|=4;b.instance=f;ac(f);return}f=a.ownerDocument||a;c=hp(c);(e=Po.get(e))&&dp(c,e);f=f.createElement("link");ac(f);var g=f;g._p=new Promise(function(h,l){g.onload=h; -g.onerror=l});cj(f,"link",c);b.instance=f}null===d.stylesheets&&(d.stylesheets=new Map);d.stylesheets.set(b,a);(a=b.state.preload)&&0===(b.state.loading&3)&&(d.count++,b=ip.bind(d),a.addEventListener("load",b),a.addEventListener("error",b))}} +function Ik(a,b,c){if(null===jl)throw Error(t(475));var d=jl;if("stylesheet"===b.type&&("string"!==typeof c.media||!1!==matchMedia(c.media).matches)&&0===(b.state.loading&4)){if(null===b.instance){var e=$o(c.href),f=a.querySelector(bp(e));if(f){a=f._p;null!==a&&"object"===typeof a&&"function"===typeof a.then&&(d.count++,d=ip.bind(d),a.then(d,d));b.state.loading|=4;b.instance=f;ac(f);return}f=a.ownerDocument||a;c=hp(c);(e=Po.get(e))&&dp(c,e);f=f.createElement("link");ac(f);var g=f;g._p=new Promise(function(h, +l){g.onload=h;g.onerror=l});cj(f,"link",c);b.instance=f}null===d.stylesheets&&(d.stylesheets=new Map);d.stylesheets.set(b,a);(a=b.state.preload)&&0===(b.state.loading&3)&&(d.count++,b=ip.bind(d),a.addEventListener("load",b),a.addEventListener("error",b))}} function ll(){if(null===jl)throw Error(t(475));var a=jl;a.stylesheets&&0===a.count&&jp(a,a.stylesheets);return 0 0) { // We have tasks to abort. We'll emit one error row and then emit a reference // to that row from every row that's still remaining. - var error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason; - var digest = logRecoverableError(request, error); request.pendingChunks++; var errorId = request.nextChunkId++; - emitErrorChunk(request, errorId, digest, error); + + if (enablePostpone && typeof reason === 'object' && reason !== null && reason.$$typeof === REACT_POSTPONE_TYPE) { + var postponeInstance = reason; + logPostpone(request, postponeInstance.message); + emitPostponeChunk(request, errorId, postponeInstance); + } else { + var error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason; + var digest = logRecoverableError(request, error); + emitErrorChunk(request, errorId, digest, error); + } + abortableTasks.forEach(function (task) { return abortTask(task, request, errorId); }); diff --git a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.browser.production.min.js b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.browser.production.min.js index c2b329e1e5ef0..94ae992e69da4 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.browser.production.min.js +++ b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.browser.production.min.js @@ -13,19 +13,19 @@ var ha=Promise.prototype,ia={get:function(a,b){switch(b){case "$$typeof":return }throw Error("Cannot access "+(String(a.name)+"."+String(b))+" on the server. You cannot dot into a client module from a server component. You can only pass the imported name through.");},set:function(){throw Error("Cannot assign to a client module from a server module.");}},ja={get:function(a,b){switch(b){case "$$typeof":return a.$$typeof;case "$$id":return a.$$id;case "$$async":return a.$$async;case "name":return a.name;case "defaultProps":return;case "toJSON":return;case Symbol.toPrimitive:return Object.prototype[Symbol.toPrimitive]; case "__esModule":var d=a.$$id;a.default=u(function(){throw Error("Attempted to call the default export of "+d+" from the server but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.");},a.$$id+"#",a.$$async);return!0;case "then":if(a.then)return a.then;if(a.$$async)return;var c=u({},a.$$id,!0),e=new Proxy(c,ja);a.status="fulfilled";a.value=e;return a.then=u(function(f){return Promise.resolve(f(e))}, a.$$id+"#then",!1)}c=a[b];c||(c=u(function(){throw Error("Attempted to call "+String(b)+"() from the server but "+String(b)+" is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.");},a.$$id+"#"+b,a.$$async),Object.defineProperty(c,"name",{value:b}),c=a[b]=new Proxy(c,ia));return c},getPrototypeOf:function(){return ha},set:function(){throw Error("Cannot assign to a client module from a server module."); -}},sa={prefetchDNS:ka,preconnect:la,preload:ma,preloadModule:na,preinitStyle:oa,preinitScript:pa,preinitModuleScript:ra};function ka(a){if("string"===typeof a&&a){var b=v?v:null;if(b){var d=b.hints,c="D|"+a;d.has(c)||(d.add(c),w(b,"D",a))}}}function la(a,b){if("string"===typeof a){var d=v?v:null;if(d){var c=d.hints,e="C|"+(null==b?"null":b)+"|"+a;c.has(e)||(c.add(e),"string"===typeof b?w(d,"C",[a,b]):w(d,"C",a))}}} +}},ra={prefetchDNS:ka,preconnect:la,preload:ma,preloadModule:na,preinitStyle:oa,preinitScript:pa,preinitModuleScript:qa};function ka(a){if("string"===typeof a&&a){var b=v?v:null;if(b){var d=b.hints,c="D|"+a;d.has(c)||(d.add(c),w(b,"D",a))}}}function la(a,b){if("string"===typeof a){var d=v?v:null;if(d){var c=d.hints,e="C|"+(null==b?"null":b)+"|"+a;c.has(e)||(c.add(e),"string"===typeof b?w(d,"C",[a,b]):w(d,"C",a))}}} function ma(a,b,d){if("string"===typeof a){var c=v?v:null;if(c){var e=c.hints,f="L";if("image"===b&&d){var g=d.imageSrcSet,k=d.imageSizes,h="";"string"===typeof g&&""!==g?(h+="["+g+"]","string"===typeof k&&(h+="["+k+"]")):h+="[][]"+a;f+="[image]"+h}else f+="["+b+"]"+a;e.has(f)||(e.add(f),(d=x(d))?w(c,"L",[a,b,d]):w(c,"L",[a,b]))}}}function na(a,b){if("string"===typeof a){var d=v?v:null;if(d){var c=d.hints,e="m|"+a;if(!c.has(e))return c.add(e),(b=x(b))?w(d,"m",[a,b]):w(d,"m",a)}}} function oa(a,b,d){if("string"===typeof a){var c=v?v:null;if(c){var e=c.hints,f="S|"+a;if(!e.has(f))return e.add(f),(d=x(d))?w(c,"S",[a,"string"===typeof b?b:0,d]):"string"===typeof b?w(c,"S",[a,b]):w(c,"S",a)}}}function pa(a,b){if("string"===typeof a){var d=v?v:null;if(d){var c=d.hints,e="X|"+a;if(!c.has(e))return c.add(e),(b=x(b))?w(d,"X",[a,b]):w(d,"X",a)}}} -function ra(a,b){if("string"===typeof a){var d=v?v:null;if(d){var c=d.hints,e="M|"+a;if(!c.has(e))return c.add(e),(b=x(b))?w(d,"M",[a,b]):w(d,"M",a)}}}function x(a){if(null==a)return null;var b=!1,d={},c;for(c in a)null!=a[c]&&(b=!0,d[c]=a[c]);return b?d:null} -var ta=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,y=Symbol.for("react.element"),ua=Symbol.for("react.fragment"),va=Symbol.for("react.provider"),wa=Symbol.for("react.server_context"),xa=Symbol.for("react.forward_ref"),ya=Symbol.for("react.suspense"),za=Symbol.for("react.suspense_list"),Aa=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),B=Symbol.for("react.default_value"),Ba=Symbol.for("react.memo_cache_sentinel"),Ca=Symbol.for("react.postpone"),Da=Symbol.iterator,C=null; -function D(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");D(a,d);b.context._currentValue=b.value}}}function Ea(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&Ea(a)} -function Fa(a){var b=a.parent;null!==b&&Fa(b);a.context._currentValue=a.value}function Ga(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?D(a,b):Ga(a,b)} -function Ha(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?D(a,d):Ha(a,d);b.context._currentValue=b.value}function Ia(a){var b=C;b!==a&&(null===b?Fa(a):null===a?Ea(b):b.depth===a.depth?D(b,a):b.depth>a.depth?Ga(b,a):Ha(b,a),C=a)}function Ja(a,b){var d=a._currentValue;a._currentValue=b;var c=C;return C=a={parent:c,depth:null===c?0:c.depth+1,context:a,parentValue:d,value:b}}var Ka=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`"); -function La(){}function Ma(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(La,La),b=d);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(c){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=c}},function(c){if("pending"===b.status){var e=b;e.status="rejected";e.reason=c}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}E=b;throw Ka;}}var E=null; -function Na(){if(null===E)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=E;E=null;return a}var F=null,Oa=0,H=null;function Pa(){var a=H;H=null;return a}function Qa(a){return a._currentValue} +function qa(a,b){if("string"===typeof a){var d=v?v:null;if(d){var c=d.hints,e="M|"+a;if(!c.has(e))return c.add(e),(b=x(b))?w(d,"M",[a,b]):w(d,"M",a)}}}function x(a){if(null==a)return null;var b=!1,d={},c;for(c in a)null!=a[c]&&(b=!0,d[c]=a[c]);return b?d:null} +var ta=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,y=Symbol.for("react.element"),ua=Symbol.for("react.fragment"),va=Symbol.for("react.provider"),wa=Symbol.for("react.server_context"),xa=Symbol.for("react.forward_ref"),ya=Symbol.for("react.suspense"),za=Symbol.for("react.suspense_list"),Aa=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),B=Symbol.for("react.default_value"),Ba=Symbol.for("react.memo_cache_sentinel"),C=Symbol.for("react.postpone"),Ca=Symbol.iterator,D=null; +function E(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");E(a,d);b.context._currentValue=b.value}}}function Da(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&Da(a)} +function Ea(a){var b=a.parent;null!==b&&Ea(b);a.context._currentValue=a.value}function Fa(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?E(a,b):Fa(a,b)} +function Ga(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?E(a,d):Ga(a,d);b.context._currentValue=b.value}function Ha(a){var b=D;b!==a&&(null===b?Ea(a):null===a?Da(b):b.depth===a.depth?E(b,a):b.depth>a.depth?Fa(b,a):Ga(b,a),D=a)}function Ia(a,b){var d=a._currentValue;a._currentValue=b;var c=D;return D=a={parent:c,depth:null===c?0:c.depth+1,context:a,parentValue:d,value:b}}var Ja=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`"); +function Ka(){}function La(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(Ka,Ka),b=d);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(c){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=c}},function(c){if("pending"===b.status){var e=b;e.status="rejected";e.reason=c}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}Ma=b;throw Ja;}}var Ma=null; +function Na(){if(null===Ma)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=Ma;Ma=null;return a}var F=null,Oa=0,H=null;function Pa(){var a=H;H=null;return a}function Qa(a){return a._currentValue} var Ua={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:I,useTransition:I,readContext:Qa,useContext:Qa,useReducer:I,useRef:I,useState:I,useInsertionEffect:I,useLayoutEffect:I,useImperativeHandle:I,useEffect:I,useId:Ra,useSyncExternalStore:I,useCacheRefresh:function(){return Sa},useMemoCache:function(a){for(var b=Array(a),d=0;d=a.length?a:a.slice(0,10)+"...");case "object":if(Ya(a))return"[...]";a=$a(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}} function bb(a){if("string"===typeof a)return a;switch(a){case ya:return"Suspense";case za:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case xa:return bb(a.render);case Aa:return bb(a.type);case z:var b=a._payload;a=a._init;try{return bb(a(b))}catch(d){}}return""} @@ -33,34 +33,34 @@ function J(a,b){var d=$a(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;i ab(h);k===b?(d=e.length,c=h.length,e+=h):e=10>h.length&&40>e.length+h.length?e+h:e+"..."}e+="}"}return void 0===b?e:-1 0) { // We have tasks to abort. We'll emit one error row and then emit a reference // to that row from every row that's still remaining. - var error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason; - var digest = logRecoverableError(request, error); request.pendingChunks++; var errorId = request.nextChunkId++; - emitErrorChunk(request, errorId, digest, error); + + if (enablePostpone && typeof reason === 'object' && reason !== null && reason.$$typeof === REACT_POSTPONE_TYPE) { + var postponeInstance = reason; + logPostpone(request, postponeInstance.message); + emitPostponeChunk(request, errorId, postponeInstance); + } else { + var error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason; + var digest = logRecoverableError(request, error); + emitErrorChunk(request, errorId, digest, error); + } + abortableTasks.forEach(function (task) { return abortTask(task, request, errorId); }); diff --git a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.edge.production.min.js b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.edge.production.min.js index aace52080d4f7..86258db33e3ac 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.edge.production.min.js +++ b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.edge.production.min.js @@ -17,10 +17,10 @@ a.$$id+"#then",!1)}c=a[b];c||(c=u(function(){throw Error("Attempted to call "+St function ma(a,b,d){if("string"===typeof a){var c=v();if(c){var e=c.hints,f="L";if("image"===b&&d){var g=d.imageSrcSet,k=d.imageSizes,h="";"string"===typeof g&&""!==g?(h+="["+g+"]","string"===typeof k&&(h+="["+k+"]")):h+="[][]"+a;f+="[image]"+h}else f+="["+b+"]"+a;e.has(f)||(e.add(f),(d=x(d))?w(c,"L",[a,b,d]):w(c,"L",[a,b]))}}}function na(a,b){if("string"===typeof a){var d=v();if(d){var c=d.hints,e="m|"+a;if(!c.has(e))return c.add(e),(b=x(b))?w(d,"m",[a,b]):w(d,"m",a)}}} function oa(a,b,d){if("string"===typeof a){var c=v();if(c){var e=c.hints,f="S|"+a;if(!e.has(f))return e.add(f),(d=x(d))?w(c,"S",[a,"string"===typeof b?b:0,d]):"string"===typeof b?w(c,"S",[a,b]):w(c,"S",a)}}}function pa(a,b){if("string"===typeof a){var d=v();if(d){var c=d.hints,e="X|"+a;if(!c.has(e))return c.add(e),(b=x(b))?w(d,"X",[a,b]):w(d,"X",a)}}}function qa(a,b){if("string"===typeof a){var d=v();if(d){var c=d.hints,e="M|"+a;if(!c.has(e))return c.add(e),(b=x(b))?w(d,"M",[a,b]):w(d,"M",a)}}} function x(a){if(null==a)return null;var b=!1,d={},c;for(c in a)null!=a[c]&&(b=!0,d[c]=a[c]);return b?d:null} -var ta=ba.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,ua="function"===typeof AsyncLocalStorage,va=ua?new AsyncLocalStorage:null,y=Symbol.for("react.element"),wa=Symbol.for("react.fragment"),xa=Symbol.for("react.provider"),ya=Symbol.for("react.server_context"),za=Symbol.for("react.forward_ref"),Aa=Symbol.for("react.suspense"),Ba=Symbol.for("react.suspense_list"),Ca=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),B=Symbol.for("react.default_value"),Da=Symbol.for("react.memo_cache_sentinel"), -Ea=Symbol.for("react.postpone"),Fa=Symbol.iterator,C=null;function D(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");D(a,d);b.context._currentValue=b.value}}}function Ga(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&Ga(a)} -function Ha(a){var b=a.parent;null!==b&&Ha(b);a.context._currentValue=a.value}function Ia(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?D(a,b):Ia(a,b)} -function Ja(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?D(a,d):Ja(a,d);b.context._currentValue=b.value}function Ka(a){var b=C;b!==a&&(null===b?Ha(a):null===a?Ga(b):b.depth===a.depth?D(b,a):b.depth>a.depth?Ia(b,a):Ja(b,a),C=a)}function La(a,b){var d=a._currentValue;a._currentValue=b;var c=C;return C=a={parent:c,depth:null===c?0:c.depth+1,context:a,parentValue:d,value:b}}var Ma=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`"); +var sa=ba.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,ta="function"===typeof AsyncLocalStorage,va=ta?new AsyncLocalStorage:null,y=Symbol.for("react.element"),wa=Symbol.for("react.fragment"),xa=Symbol.for("react.provider"),ya=Symbol.for("react.server_context"),za=Symbol.for("react.forward_ref"),Aa=Symbol.for("react.suspense"),Ba=Symbol.for("react.suspense_list"),Ca=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),B=Symbol.for("react.default_value"),Da=Symbol.for("react.memo_cache_sentinel"), +C=Symbol.for("react.postpone"),Ea=Symbol.iterator,D=null;function Fa(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");Fa(a,d);b.context._currentValue=b.value}}}function Ga(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&Ga(a)} +function Ha(a){var b=a.parent;null!==b&&Ha(b);a.context._currentValue=a.value}function Ia(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?Fa(a,b):Ia(a,b)} +function Ja(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?Fa(a,d):Ja(a,d);b.context._currentValue=b.value}function Ka(a){var b=D;b!==a&&(null===b?Ha(a):null===a?Ga(b):b.depth===a.depth?Fa(b,a):b.depth>a.depth?Ia(b,a):Ja(b,a),D=a)}function La(a,b){var d=a._currentValue;a._currentValue=b;var c=D;return D=a={parent:c,depth:null===c?0:c.depth+1,context:a,parentValue:d,value:b}}var Ma=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`"); function Na(){}function Oa(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(Na,Na),b=d);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(c){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=c}},function(c){if("pending"===b.status){var e=b;e.status="rejected";e.reason=c}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}Pa=b;throw Ma;}}var Pa=null; function Qa(){if(null===Pa)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=Pa;Pa=null;return a}var E=null,Ra=0,F=null;function Sa(){var a=F;F=null;return a}function Ta(a){return a._currentValue} var Xa={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:H,useTransition:H,readContext:Ta,useContext:Ta,useReducer:H,useRef:H,useState:H,useInsertionEffect:H,useLayoutEffect:H,useImperativeHandle:H,useEffect:H,useId:Ua,useSyncExternalStore:H,useCacheRefresh:function(){return Va},useMemoCache:function(a){for(var b=Array(a),d=0;dh.length&&40>e.length+h.length?e+h:e+"..."}e+="}"}return void 0===b?e:-1 0) { // We have tasks to abort. We'll emit one error row and then emit a reference // to that row from every row that's still remaining. - var error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason; - var digest = logRecoverableError(request, error); request.pendingChunks++; var errorId = request.nextChunkId++; - emitErrorChunk(request, errorId, digest, error); + + if (enablePostpone && typeof reason === 'object' && reason !== null && reason.$$typeof === REACT_POSTPONE_TYPE) { + var postponeInstance = reason; + logPostpone(request, postponeInstance.message); + emitPostponeChunk(request, errorId, postponeInstance); + } else { + var error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason; + var digest = logRecoverableError(request, error); + emitErrorChunk(request, errorId, digest, error); + } + abortableTasks.forEach(function (task) { return abortTask(task, request, errorId); }); diff --git a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.production.min.js b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.production.min.js index 5aa2b121cc3b0..8cc504af5adbd 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.production.min.js +++ b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.production.min.js @@ -63,7 +63,7 @@ function Eb(a){var b=ob.current;ob.current=Za;var d=N;E=N=a;try{var c=a.pingedTa function Q(a,b){l=new Uint8Array(2048);m=0;p=!0;try{for(var d=a.completedImportChunks,c=0;c 0) { // We have tasks to abort. We'll emit one error row and then emit a reference // to that row from every row that's still remaining. - var error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason; - var digest = logRecoverableError(request, error); request.pendingChunks++; var errorId = request.nextChunkId++; - emitErrorChunk(request, errorId, digest, error); + + if (enablePostpone && typeof reason === 'object' && reason !== null && reason.$$typeof === REACT_POSTPONE_TYPE) { + var postponeInstance = reason; + logPostpone(request, postponeInstance.message); + emitPostponeChunk(request, errorId, postponeInstance); + } else { + var error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason; + var digest = logRecoverableError(request, error); + emitErrorChunk(request, errorId, digest, error); + } + abortableTasks.forEach(function (task) { return abortTask(task, request, errorId); }); diff --git a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.unbundled.production.min.js b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.unbundled.production.min.js index 42cfb02d69394..9b8ace3e8b85f 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.unbundled.production.min.js +++ b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.unbundled.production.min.js @@ -63,7 +63,7 @@ function Eb(a){var b=ob.current;ob.current=Za;var d=N;E=N=a;try{var c=a.pingedTa function Q(a,b){l=new Uint8Array(2048);m=0;p=!0;try{for(var d=a.completedImportChunks,c=0;c 0) { // We have tasks to abort. We'll emit one error row and then emit a reference // to that row from every row that's still remaining. - var error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason; - var digest = logRecoverableError(request, error); request.pendingChunks++; var errorId = request.nextChunkId++; - emitErrorChunk(request, errorId, digest, error); + + var postponeInstance; if (enablePostpone && typeof reason === 'object' && reason !== null && reason.$$typeof === REACT_POSTPONE_TYPE) ; else { + var error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason; + var digest = logRecoverableError(request, error); + emitErrorChunk(request, errorId, digest, error); + } + abortableTasks.forEach(function (task) { return abortTask(task, request, errorId); }); diff --git a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.production.min.js b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.production.min.js index dc0098bd1ebac..82d8fdb5655ed 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.production.min.js +++ b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.production.min.js @@ -17,7 +17,7 @@ a.$$id+"#then",!1)}c=a[b];c||(c=u(function(){throw Error("Attempted to call "+St function ma(a,b,d){if("string"===typeof a){var c=v?v:null;if(c){var e=c.hints,f="L";if("image"===b&&d){var g=d.imageSrcSet,k=d.imageSizes,h="";"string"===typeof g&&""!==g?(h+="["+g+"]","string"===typeof k&&(h+="["+k+"]")):h+="[][]"+a;f+="[image]"+h}else f+="["+b+"]"+a;e.has(f)||(e.add(f),(d=y(d))?w(c,"L",[a,b,d]):w(c,"L",[a,b]))}}}function na(a,b){if("string"===typeof a){var d=v?v:null;if(d){var c=d.hints,e="m|"+a;if(!c.has(e))return c.add(e),(b=y(b))?w(d,"m",[a,b]):w(d,"m",a)}}} function oa(a,b,d){if("string"===typeof a){var c=v?v:null;if(c){var e=c.hints,f="S|"+a;if(!e.has(f))return e.add(f),(d=y(d))?w(c,"S",[a,"string"===typeof b?b:0,d]):"string"===typeof b?w(c,"S",[a,b]):w(c,"S",a)}}}function pa(a,b){if("string"===typeof a){var d=v?v:null;if(d){var c=d.hints,e="X|"+a;if(!c.has(e))return c.add(e),(b=y(b))?w(d,"X",[a,b]):w(d,"X",a)}}} function qa(a,b){if("string"===typeof a){var d=v?v:null;if(d){var c=d.hints,e="M|"+a;if(!c.has(e))return c.add(e),(b=y(b))?w(d,"M",[a,b]):w(d,"M",a)}}}function y(a){if(null==a)return null;var b=!1,d={},c;for(c in a)null!=a[c]&&(b=!0,d[c]=a[c]);return b?d:null} -var sa=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,z=Symbol.for("react.element"),ta=Symbol.for("react.fragment"),ua=Symbol.for("react.server_context"),va=Symbol.for("react.forward_ref"),wa=Symbol.for("react.suspense"),xa=Symbol.for("react.suspense_list"),ya=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),za=Symbol.for("react.memo_cache_sentinel"),Aa=Symbol.iterator,B=null; +var sa=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,z=Symbol.for("react.element"),ta=Symbol.for("react.fragment"),ua=Symbol.for("react.server_context"),va=Symbol.for("react.forward_ref"),wa=Symbol.for("react.suspense"),xa=Symbol.for("react.suspense_list"),ya=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),za=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.postpone");var Aa=Symbol.iterator,B=null; function C(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");C(a,d);b.context._currentValue=b.value}}}function Ba(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&Ba(a)} function Ca(a){var b=a.parent;null!==b&&Ca(b);a.context._currentValue=a.value}function Da(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?C(a,b):Da(a,b)} function Ea(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?C(a,d):Ea(a,d);b.context._currentValue=b.value}var Fa=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`"); @@ -55,7 +55,7 @@ function lb(a,b){if(0===b.status){var d=B,c=b.context;d!==c&&(null===d?Ca(c):nul e&&a.writtenObjects.set(e,b.id);var g=b.id;S=e;var k=K(e,a.toJSON),h=g.toString(16)+":"+k+"\n",m=q.encode(h);a.completedRegularChunks.push(m);a.abortableTasks.delete(b);b.status=1}catch(x){g=x===Fa?Ia():x,"object"===typeof g&&null!==g&&"function"===typeof g.then?(a=b.ping,g.then(a,a),b.thenableState=Ja()):(a.abortableTasks.delete(b),b.status=4,g=M(a,g),N(a,b.id,g))}}} function ib(a){var b=$a.current;$a.current=Oa;var d=v;E=v=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var e=0;e 0) { // We have tasks to abort. We'll emit one error row and then emit a reference // to that row from every row that's still remaining. - var error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason; - var digest = logRecoverableError(request, error); request.pendingChunks++; var errorId = request.nextChunkId++; - emitErrorChunk(request, errorId, digest, error); + + var postponeInstance; if (enablePostpone && typeof reason === 'object' && reason !== null && reason.$$typeof === REACT_POSTPONE_TYPE) ; else { + var error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason; + var digest = logRecoverableError(request, error); + emitErrorChunk(request, errorId, digest, error); + } + abortableTasks.forEach(function (task) { return abortTask(task, request, errorId); }); diff --git a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.production.min.js b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.production.min.js index 2868e55cd7edc..73d561680aa86 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.production.min.js +++ b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.production.min.js @@ -17,8 +17,8 @@ a.$$id+"#then",!1)}c=a[b];c||(c=u(function(){throw Error("Attempted to call "+St function ma(a,b,d){if("string"===typeof a){var c=v();if(c){var e=c.hints,f="L";if("image"===b&&d){var g=d.imageSrcSet,k=d.imageSizes,h="";"string"===typeof g&&""!==g?(h+="["+g+"]","string"===typeof k&&(h+="["+k+"]")):h+="[][]"+a;f+="[image]"+h}else f+="["+b+"]"+a;e.has(f)||(e.add(f),(d=y(d))?w(c,"L",[a,b,d]):w(c,"L",[a,b]))}}}function na(a,b){if("string"===typeof a){var d=v();if(d){var c=d.hints,e="m|"+a;if(!c.has(e))return c.add(e),(b=y(b))?w(d,"m",[a,b]):w(d,"m",a)}}} function oa(a,b,d){if("string"===typeof a){var c=v();if(c){var e=c.hints,f="S|"+a;if(!e.has(f))return e.add(f),(d=y(d))?w(c,"S",[a,"string"===typeof b?b:0,d]):"string"===typeof b?w(c,"S",[a,b]):w(c,"S",a)}}}function pa(a,b){if("string"===typeof a){var d=v();if(d){var c=d.hints,e="X|"+a;if(!c.has(e))return c.add(e),(b=y(b))?w(d,"X",[a,b]):w(d,"X",a)}}}function qa(a,b){if("string"===typeof a){var d=v();if(d){var c=d.hints,e="M|"+a;if(!c.has(e))return c.add(e),(b=y(b))?w(d,"M",[a,b]):w(d,"M",a)}}} function y(a){if(null==a)return null;var b=!1,d={},c;for(c in a)null!=a[c]&&(b=!0,d[c]=a[c]);return b?d:null} -var sa=ba.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,ta="function"===typeof AsyncLocalStorage,ua=ta?new AsyncLocalStorage:null,z=Symbol.for("react.element"),va=Symbol.for("react.fragment"),wa=Symbol.for("react.server_context"),xa=Symbol.for("react.forward_ref"),ya=Symbol.for("react.suspense"),za=Symbol.for("react.suspense_list"),Aa=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),Ba=Symbol.for("react.memo_cache_sentinel"),Ca=Symbol.iterator,B=null; -function C(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");C(a,d);b.context._currentValue=b.value}}}function Da(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&Da(a)} +var sa=ba.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,ta="function"===typeof AsyncLocalStorage,ua=ta?new AsyncLocalStorage:null,z=Symbol.for("react.element"),va=Symbol.for("react.fragment"),wa=Symbol.for("react.server_context"),xa=Symbol.for("react.forward_ref"),ya=Symbol.for("react.suspense"),za=Symbol.for("react.suspense_list"),Aa=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),Ba=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.postpone"); +var Ca=Symbol.iterator,B=null;function C(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");C(a,d);b.context._currentValue=b.value}}}function Da(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&Da(a)} function Ea(a){var b=a.parent;null!==b&&Ea(b);a.context._currentValue=a.value}function Fa(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?C(a,b):Fa(a,b)} function Ga(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?C(a,d):Ga(a,d);b.context._currentValue=b.value}var Ha=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`"); function Ia(){}function Ja(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(Ia,Ia),b=d);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(c){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=c}},function(c){if("pending"===b.status){var e=b;e.status="rejected";e.reason=c}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}D=b;throw Ha;}}var D=null; @@ -56,7 +56,7 @@ e&&a.writtenObjects.set(e,b.id);var g=b.id;T=e;var k=K(e,a.toJSON),h=g.toString( function lb(a){var b=bb.current;bb.current=Qa;var d=M;E=M=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var e=0;e 0) { // We have tasks to abort. We'll emit one error row and then emit a reference // to that row from every row that's still remaining. - var error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason; - var digest = logRecoverableError(request, error); request.pendingChunks++; var errorId = request.nextChunkId++; - emitErrorChunk(request, errorId, digest, error); + + var postponeInstance; if (enablePostpone && typeof reason === 'object' && reason !== null && reason.$$typeof === REACT_POSTPONE_TYPE) ; else { + var error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason; + var digest = logRecoverableError(request, error); + emitErrorChunk(request, errorId, digest, error); + } + abortableTasks.forEach(function (task) { return abortTask(task, request, errorId); }); diff --git a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.production.min.js b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.production.min.js index b7e6888de4bae..a73950a4cb99a 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.production.min.js +++ b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.production.min.js @@ -18,9 +18,8 @@ a.$$id+"#then",!1)}c=a[b];c||(c=w(function(){throw Error("Attempted to call "+St }},ua={prefetchDNS:na,preconnect:oa,preload:pa,preloadModule:qa,preinitStyle:ra,preinitScript:sa,preinitModuleScript:ta};function na(a){if("string"===typeof a&&a){var b=x();if(b){var d=b.hints,c="D|"+a;d.has(c)||(d.add(c),y(b,"D",a))}}}function oa(a,b){if("string"===typeof a){var d=x();if(d){var c=d.hints,e="C|"+(null==b?"null":b)+"|"+a;c.has(e)||(c.add(e),"string"===typeof b?y(d,"C",[a,b]):y(d,"C",a))}}} function pa(a,b,d){if("string"===typeof a){var c=x();if(c){var e=c.hints,f="L";if("image"===b&&d){var g=d.imageSrcSet,k=d.imageSizes,h="";"string"===typeof g&&""!==g?(h+="["+g+"]","string"===typeof k&&(h+="["+k+"]")):h+="[][]"+a;f+="[image]"+h}else f+="["+b+"]"+a;e.has(f)||(e.add(f),(d=A(d))?y(c,"L",[a,b,d]):y(c,"L",[a,b]))}}}function qa(a,b){if("string"===typeof a){var d=x();if(d){var c=d.hints,e="m|"+a;if(!c.has(e))return c.add(e),(b=A(b))?y(d,"m",[a,b]):y(d,"m",a)}}} function ra(a,b,d){if("string"===typeof a){var c=x();if(c){var e=c.hints,f="S|"+a;if(!e.has(f))return e.add(f),(d=A(d))?y(c,"S",[a,"string"===typeof b?b:0,d]):"string"===typeof b?y(c,"S",[a,b]):y(c,"S",a)}}}function sa(a,b){if("string"===typeof a){var d=x();if(d){var c=d.hints,e="X|"+a;if(!c.has(e))return c.add(e),(b=A(b))?y(d,"X",[a,b]):y(d,"X",a)}}}function ta(a,b){if("string"===typeof a){var d=x();if(d){var c=d.hints,e="M|"+a;if(!c.has(e))return c.add(e),(b=A(b))?y(d,"M",[a,b]):y(d,"M",a)}}} -function A(a){if(null==a)return null;var b=!1,d={},c;for(c in a)null!=a[c]&&(b=!0,d[c]=a[c]);return b?d:null} -var va=ea.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,wa=new ca.AsyncLocalStorage,B=Symbol.for("react.element"),xa=Symbol.for("react.fragment"),ya=Symbol.for("react.server_context"),za=Symbol.for("react.forward_ref"),Aa=Symbol.for("react.suspense"),Ba=Symbol.for("react.suspense_list"),Ca=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),Da=Symbol.for("react.memo_cache_sentinel"),Ea=Symbol.iterator,D=null; -function E(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");E(a,d);b.context._currentValue=b.value}}}function Fa(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&Fa(a)} +function A(a){if(null==a)return null;var b=!1,d={},c;for(c in a)null!=a[c]&&(b=!0,d[c]=a[c]);return b?d:null}var va=ea.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,wa=new ca.AsyncLocalStorage,B=Symbol.for("react.element"),xa=Symbol.for("react.fragment"),ya=Symbol.for("react.server_context"),za=Symbol.for("react.forward_ref"),Aa=Symbol.for("react.suspense"),Ba=Symbol.for("react.suspense_list"),Ca=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),Da=Symbol.for("react.memo_cache_sentinel"); +Symbol.for("react.postpone");var Ea=Symbol.iterator,D=null;function E(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");E(a,d);b.context._currentValue=b.value}}}function Fa(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&Fa(a)} function Ga(a){var b=a.parent;null!==b&&Ga(b);a.context._currentValue=a.value}function Ha(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?E(a,b):Ha(a,b)} function Ia(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?E(a,d):Ia(a,d);b.context._currentValue=b.value}var Ja=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`"); function Ka(){}function La(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(Ka,Ka),b=d);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(c){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=c}},function(c){if("pending"===b.status){var e=b;e.status="rejected";e.reason=c}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}F=b;throw Ja;}}var F=null; @@ -59,7 +58,7 @@ function nb(a){var b=db.current;db.current=Sa;var d=O;G=O=a;try{var c=a.pingedTa function R(a,b){l=new Uint8Array(2048);m=0;p=!0;try{for(var d=a.completedImportChunks,c=0;c 0) { // We have tasks to abort. We'll emit one error row and then emit a reference // to that row from every row that's still remaining. - var error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason; - var digest = logRecoverableError(request, error); request.pendingChunks++; var errorId = request.nextChunkId++; - emitErrorChunk(request, errorId, digest, error); + + var postponeInstance; if (enablePostpone && typeof reason === 'object' && reason !== null && reason.$$typeof === REACT_POSTPONE_TYPE) ; else { + var error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason; + var digest = logRecoverableError(request, error); + emitErrorChunk(request, errorId, digest, error); + } + abortableTasks.forEach(function (task) { return abortTask(task, request, errorId); }); diff --git a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.production.min.js b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.production.min.js index 9311593088437..54ad3070a4e33 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.production.min.js +++ b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.production.min.js @@ -18,9 +18,8 @@ a.$$id+"#then",!1)}c=a[b];c||(c=w(function(){throw Error("Attempted to call "+St }},ua={prefetchDNS:na,preconnect:oa,preload:pa,preloadModule:qa,preinitStyle:ra,preinitScript:sa,preinitModuleScript:ta};function na(a){if("string"===typeof a&&a){var b=x();if(b){var d=b.hints,c="D|"+a;d.has(c)||(d.add(c),y(b,"D",a))}}}function oa(a,b){if("string"===typeof a){var d=x();if(d){var c=d.hints,e="C|"+(null==b?"null":b)+"|"+a;c.has(e)||(c.add(e),"string"===typeof b?y(d,"C",[a,b]):y(d,"C",a))}}} function pa(a,b,d){if("string"===typeof a){var c=x();if(c){var e=c.hints,f="L";if("image"===b&&d){var g=d.imageSrcSet,k=d.imageSizes,h="";"string"===typeof g&&""!==g?(h+="["+g+"]","string"===typeof k&&(h+="["+k+"]")):h+="[][]"+a;f+="[image]"+h}else f+="["+b+"]"+a;e.has(f)||(e.add(f),(d=A(d))?y(c,"L",[a,b,d]):y(c,"L",[a,b]))}}}function qa(a,b){if("string"===typeof a){var d=x();if(d){var c=d.hints,e="m|"+a;if(!c.has(e))return c.add(e),(b=A(b))?y(d,"m",[a,b]):y(d,"m",a)}}} function ra(a,b,d){if("string"===typeof a){var c=x();if(c){var e=c.hints,f="S|"+a;if(!e.has(f))return e.add(f),(d=A(d))?y(c,"S",[a,"string"===typeof b?b:0,d]):"string"===typeof b?y(c,"S",[a,b]):y(c,"S",a)}}}function sa(a,b){if("string"===typeof a){var d=x();if(d){var c=d.hints,e="X|"+a;if(!c.has(e))return c.add(e),(b=A(b))?y(d,"X",[a,b]):y(d,"X",a)}}}function ta(a,b){if("string"===typeof a){var d=x();if(d){var c=d.hints,e="M|"+a;if(!c.has(e))return c.add(e),(b=A(b))?y(d,"M",[a,b]):y(d,"M",a)}}} -function A(a){if(null==a)return null;var b=!1,d={},c;for(c in a)null!=a[c]&&(b=!0,d[c]=a[c]);return b?d:null} -var va=ea.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,wa=new ca.AsyncLocalStorage,B=Symbol.for("react.element"),xa=Symbol.for("react.fragment"),ya=Symbol.for("react.server_context"),za=Symbol.for("react.forward_ref"),Aa=Symbol.for("react.suspense"),Ba=Symbol.for("react.suspense_list"),Ca=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),Da=Symbol.for("react.memo_cache_sentinel"),Ea=Symbol.iterator,D=null; -function E(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");E(a,d);b.context._currentValue=b.value}}}function Fa(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&Fa(a)} +function A(a){if(null==a)return null;var b=!1,d={},c;for(c in a)null!=a[c]&&(b=!0,d[c]=a[c]);return b?d:null}var va=ea.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,wa=new ca.AsyncLocalStorage,B=Symbol.for("react.element"),xa=Symbol.for("react.fragment"),ya=Symbol.for("react.server_context"),za=Symbol.for("react.forward_ref"),Aa=Symbol.for("react.suspense"),Ba=Symbol.for("react.suspense_list"),Ca=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),Da=Symbol.for("react.memo_cache_sentinel"); +Symbol.for("react.postpone");var Ea=Symbol.iterator,D=null;function E(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");E(a,d);b.context._currentValue=b.value}}}function Fa(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&Fa(a)} function Ga(a){var b=a.parent;null!==b&&Ga(b);a.context._currentValue=a.value}function Ha(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?E(a,b):Ha(a,b)} function Ia(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?E(a,d):Ia(a,d);b.context._currentValue=b.value}var Ja=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`"); function Ka(){}function La(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(Ka,Ka),b=d);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(c){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=c}},function(c){if("pending"===b.status){var e=b;e.status="rejected";e.reason=c}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}F=b;throw Ja;}}var F=null; @@ -59,7 +58,7 @@ function nb(a){var b=db.current;db.current=Sa;var d=O;G=O=a;try{var c=a.pingedTa function R(a,b){l=new Uint8Array(2048);m=0;p=!0;try{for(var d=a.completedImportChunks,c=0;c 0) { // We have tasks to abort. We'll emit one error row and then emit a reference // to that row from every row that's still remaining. - var error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason; - var digest = logRecoverableError(request, error); request.pendingChunks++; var errorId = request.nextChunkId++; - emitErrorChunk(request, errorId, digest, error); + + if (enablePostpone && typeof reason === 'object' && reason !== null && reason.$$typeof === REACT_POSTPONE_TYPE) { + var postponeInstance = reason; + logPostpone(request, postponeInstance.message); + emitPostponeChunk(request, errorId, postponeInstance); + } else { + var error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason; + var digest = logRecoverableError(request, error); + emitErrorChunk(request, errorId, digest, error); + } + abortableTasks.forEach(function (task) { return abortTask(task, request, errorId); }); diff --git a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.browser.production.min.js b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.browser.production.min.js index 89748089ebd7f..5aba9c2ee4889 100644 --- a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.browser.production.min.js +++ b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.browser.production.min.js @@ -14,20 +14,20 @@ var ha=Promise.prototype,ia={get:function(a,b){switch(b){case "$$typeof":return function ja(a,b){switch(b){case "$$typeof":return a.$$typeof;case "$$id":return a.$$id;case "$$async":return a.$$async;case "name":return a.name;case "defaultProps":return;case "toJSON":return;case Symbol.toPrimitive:return Object.prototype[Symbol.toPrimitive];case "__esModule":var d=a.$$id;a.default=u(function(){throw Error("Attempted to call the default export of "+d+" from the server but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component."); },a.$$id+"#",a.$$async);return!0;case "then":if(a.then)return a.then;if(a.$$async)return;var c=u({},a.$$id,!0),e=new Proxy(c,ka);a.status="fulfilled";a.value=e;return a.then=u(function(f){return Promise.resolve(f(e))},a.$$id+"#then",!1)}c=a[b];c||(c=u(function(){throw Error("Attempted to call "+String(b)+"() from the server but "+String(b)+" is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component."); },a.$$id+"#"+b,a.$$async),Object.defineProperty(c,"name",{value:b}),c=a[b]=new Proxy(c,ia));return c} -var ka={get:function(a,b){return ja(a,b)},getOwnPropertyDescriptor:function(a,b){var d=Object.getOwnPropertyDescriptor(a,b);d||(d={value:ja(a,b),writable:!1,configurable:!1,enumerable:!1},Object.defineProperty(a,b,d));return d},getPrototypeOf:function(){return ha},set:function(){throw Error("Cannot assign to a client module from a server module.");}},ta={prefetchDNS:la,preconnect:ma,preload:na,preloadModule:oa,preinitStyle:pa,preinitScript:ra,preinitModuleScript:sa}; +var ka={get:function(a,b){return ja(a,b)},getOwnPropertyDescriptor:function(a,b){var d=Object.getOwnPropertyDescriptor(a,b);d||(d={value:ja(a,b),writable:!1,configurable:!1,enumerable:!1},Object.defineProperty(a,b,d));return d},getPrototypeOf:function(){return ha},set:function(){throw Error("Cannot assign to a client module from a server module.");}},ta={prefetchDNS:la,preconnect:ma,preload:na,preloadModule:oa,preinitStyle:pa,preinitScript:qa,preinitModuleScript:ra}; function la(a){if("string"===typeof a&&a){var b=v?v:null;if(b){var d=b.hints,c="D|"+a;d.has(c)||(d.add(c),w(b,"D",a))}}}function ma(a,b){if("string"===typeof a){var d=v?v:null;if(d){var c=d.hints,e="C|"+(null==b?"null":b)+"|"+a;c.has(e)||(c.add(e),"string"===typeof b?w(d,"C",[a,b]):w(d,"C",a))}}} function na(a,b,d){if("string"===typeof a){var c=v?v:null;if(c){var e=c.hints,f="L";if("image"===b&&d){var g=d.imageSrcSet,h=d.imageSizes,k="";"string"===typeof g&&""!==g?(k+="["+g+"]","string"===typeof h&&(k+="["+h+"]")):k+="[][]"+a;f+="[image]"+k}else f+="["+b+"]"+a;e.has(f)||(e.add(f),(d=x(d))?w(c,"L",[a,b,d]):w(c,"L",[a,b]))}}}function oa(a,b){if("string"===typeof a){var d=v?v:null;if(d){var c=d.hints,e="m|"+a;if(!c.has(e))return c.add(e),(b=x(b))?w(d,"m",[a,b]):w(d,"m",a)}}} -function pa(a,b,d){if("string"===typeof a){var c=v?v:null;if(c){var e=c.hints,f="S|"+a;if(!e.has(f))return e.add(f),(d=x(d))?w(c,"S",[a,"string"===typeof b?b:0,d]):"string"===typeof b?w(c,"S",[a,b]):w(c,"S",a)}}}function ra(a,b){if("string"===typeof a){var d=v?v:null;if(d){var c=d.hints,e="X|"+a;if(!c.has(e))return c.add(e),(b=x(b))?w(d,"X",[a,b]):w(d,"X",a)}}} -function sa(a,b){if("string"===typeof a){var d=v?v:null;if(d){var c=d.hints,e="M|"+a;if(!c.has(e))return c.add(e),(b=x(b))?w(d,"M",[a,b]):w(d,"M",a)}}}function x(a){if(null==a)return null;var b=!1,d={},c;for(c in a)null!=a[c]&&(b=!0,d[c]=a[c]);return b?d:null} -var ua=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,y=Symbol.for("react.element"),va=Symbol.for("react.fragment"),wa=Symbol.for("react.provider"),xa=Symbol.for("react.server_context"),ya=Symbol.for("react.forward_ref"),za=Symbol.for("react.suspense"),Aa=Symbol.for("react.suspense_list"),Ba=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),B=Symbol.for("react.default_value"),Ca=Symbol.for("react.memo_cache_sentinel"),Da=Symbol.for("react.postpone"),Ea=Symbol.iterator,C=null; -function D(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");D(a,d);b.context._currentValue=b.value}}}function Fa(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&Fa(a)} -function Ga(a){var b=a.parent;null!==b&&Ga(b);a.context._currentValue=a.value}function Ha(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?D(a,b):Ha(a,b)} -function Ia(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?D(a,d):Ia(a,d);b.context._currentValue=b.value}function Ja(a){var b=C;b!==a&&(null===b?Ga(a):null===a?Fa(b):b.depth===a.depth?D(b,a):b.depth>a.depth?Ha(b,a):Ia(b,a),C=a)}function Ka(a,b){var d=a._currentValue;a._currentValue=b;var c=C;return C=a={parent:c,depth:null===c?0:c.depth+1,context:a,parentValue:d,value:b}}var La=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`"); -function Ma(){}function Na(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(Ma,Ma),b=d);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(c){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=c}},function(c){if("pending"===b.status){var e=b;e.status="rejected";e.reason=c}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}E=b;throw La;}}var E=null; -function Oa(){if(null===E)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=E;E=null;return a}var F=null,Pa=0,H=null;function Qa(){var a=H;H=null;return a}function Ra(a){return a._currentValue} +function pa(a,b,d){if("string"===typeof a){var c=v?v:null;if(c){var e=c.hints,f="S|"+a;if(!e.has(f))return e.add(f),(d=x(d))?w(c,"S",[a,"string"===typeof b?b:0,d]):"string"===typeof b?w(c,"S",[a,b]):w(c,"S",a)}}}function qa(a,b){if("string"===typeof a){var d=v?v:null;if(d){var c=d.hints,e="X|"+a;if(!c.has(e))return c.add(e),(b=x(b))?w(d,"X",[a,b]):w(d,"X",a)}}} +function ra(a,b){if("string"===typeof a){var d=v?v:null;if(d){var c=d.hints,e="M|"+a;if(!c.has(e))return c.add(e),(b=x(b))?w(d,"M",[a,b]):w(d,"M",a)}}}function x(a){if(null==a)return null;var b=!1,d={},c;for(c in a)null!=a[c]&&(b=!0,d[c]=a[c]);return b?d:null} +var ua=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,y=Symbol.for("react.element"),va=Symbol.for("react.fragment"),wa=Symbol.for("react.provider"),xa=Symbol.for("react.server_context"),ya=Symbol.for("react.forward_ref"),za=Symbol.for("react.suspense"),Aa=Symbol.for("react.suspense_list"),Ba=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),B=Symbol.for("react.default_value"),Ca=Symbol.for("react.memo_cache_sentinel"),C=Symbol.for("react.postpone"),Da=Symbol.iterator,D=null; +function E(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");E(a,d);b.context._currentValue=b.value}}}function Ea(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&Ea(a)} +function Fa(a){var b=a.parent;null!==b&&Fa(b);a.context._currentValue=a.value}function Ga(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?E(a,b):Ga(a,b)} +function Ha(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?E(a,d):Ha(a,d);b.context._currentValue=b.value}function Ia(a){var b=D;b!==a&&(null===b?Fa(a):null===a?Ea(b):b.depth===a.depth?E(b,a):b.depth>a.depth?Ga(b,a):Ha(b,a),D=a)}function Ja(a,b){var d=a._currentValue;a._currentValue=b;var c=D;return D=a={parent:c,depth:null===c?0:c.depth+1,context:a,parentValue:d,value:b}}var Ka=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`"); +function La(){}function Ma(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(La,La),b=d);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(c){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=c}},function(c){if("pending"===b.status){var e=b;e.status="rejected";e.reason=c}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}Na=b;throw Ka;}}var Na=null; +function Oa(){if(null===Na)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=Na;Na=null;return a}var F=null,Pa=0,H=null;function Qa(){var a=H;H=null;return a}function Ra(a){return a._currentValue} var Va={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:I,useTransition:I,readContext:Ra,useContext:Ra,useReducer:I,useRef:I,useState:I,useInsertionEffect:I,useLayoutEffect:I,useImperativeHandle:I,useEffect:I,useId:Sa,useSyncExternalStore:I,useCacheRefresh:function(){return Ta},useMemoCache:function(a){for(var b=Array(a),d=0;d=a.length?a:a.slice(0,10)+"...");case "object":if(Za(a))return"[...]";a=ab(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}} function cb(a){if("string"===typeof a)return a;switch(a){case za:return"Suspense";case Aa:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case ya:return cb(a.render);case Ba:return cb(a.type);case z:var b=a._payload;a=a._init;try{return cb(a(b))}catch(d){}}return""} @@ -36,33 +36,33 @@ bb(k);h===b?(d=e.length,c=k.length,e+=k):e=10>k.length&&40>e.length+k.length?e+k if(!K)throw Error('The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.');var fb=Object.prototype,L=JSON.stringify,gb=K.TaintRegistryObjects,M=K.TaintRegistryValues,hb=K.TaintRegistryByteLengths,ib=K.TaintRegistryPendingRequests,jb=K.ReactCurrentCache,kb=db.ReactCurrentDispatcher;function N(a){throw Error(a);} function lb(a){a=a.taintCleanupQueue;ib.delete(a);for(var b=0;b 0) { // We have tasks to abort. We'll emit one error row and then emit a reference // to that row from every row that's still remaining. - var error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason; - var digest = logRecoverableError(request, error); request.pendingChunks++; var errorId = request.nextChunkId++; - emitErrorChunk(request, errorId, digest, error); + + if (enablePostpone && typeof reason === 'object' && reason !== null && reason.$$typeof === REACT_POSTPONE_TYPE) { + var postponeInstance = reason; + logPostpone(request, postponeInstance.message); + emitPostponeChunk(request, errorId, postponeInstance); + } else { + var error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason; + var digest = logRecoverableError(request, error); + emitErrorChunk(request, errorId, digest, error); + } + abortableTasks.forEach(function (task) { return abortTask(task, request, errorId); }); diff --git a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.edge.production.min.js b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.edge.production.min.js index da34dc375deee..29507da851beb 100644 --- a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.edge.production.min.js +++ b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.edge.production.min.js @@ -14,15 +14,15 @@ var ha=Promise.prototype,ia={get:function(a,b){switch(b){case "$$typeof":return function ja(a,b){switch(b){case "$$typeof":return a.$$typeof;case "$$id":return a.$$id;case "$$async":return a.$$async;case "name":return a.name;case "defaultProps":return;case "toJSON":return;case Symbol.toPrimitive:return Object.prototype[Symbol.toPrimitive];case "__esModule":var d=a.$$id;a.default=u(function(){throw Error("Attempted to call the default export of "+d+" from the server but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component."); },a.$$id+"#",a.$$async);return!0;case "then":if(a.then)return a.then;if(a.$$async)return;var c=u({},a.$$id,!0),e=new Proxy(c,ka);a.status="fulfilled";a.value=e;return a.then=u(function(f){return Promise.resolve(f(e))},a.$$id+"#then",!1)}c=a[b];c||(c=u(function(){throw Error("Attempted to call "+String(b)+"() from the server but "+String(b)+" is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component."); },a.$$id+"#"+b,a.$$async),Object.defineProperty(c,"name",{value:b}),c=a[b]=new Proxy(c,ia));return c} -var ka={get:function(a,b){return ja(a,b)},getOwnPropertyDescriptor:function(a,b){var d=Object.getOwnPropertyDescriptor(a,b);d||(d={value:ja(a,b),writable:!1,configurable:!1,enumerable:!1},Object.defineProperty(a,b,d));return d},getPrototypeOf:function(){return ha},set:function(){throw Error("Cannot assign to a client module from a server module.");}},ta={prefetchDNS:la,preconnect:ma,preload:na,preloadModule:oa,preinitStyle:pa,preinitScript:qa,preinitModuleScript:ra}; +var ka={get:function(a,b){return ja(a,b)},getOwnPropertyDescriptor:function(a,b){var d=Object.getOwnPropertyDescriptor(a,b);d||(d={value:ja(a,b),writable:!1,configurable:!1,enumerable:!1},Object.defineProperty(a,b,d));return d},getPrototypeOf:function(){return ha},set:function(){throw Error("Cannot assign to a client module from a server module.");}},sa={prefetchDNS:la,preconnect:ma,preload:na,preloadModule:oa,preinitStyle:pa,preinitScript:qa,preinitModuleScript:ra}; function la(a){if("string"===typeof a&&a){var b=v();if(b){var d=b.hints,c="D|"+a;d.has(c)||(d.add(c),w(b,"D",a))}}}function ma(a,b){if("string"===typeof a){var d=v();if(d){var c=d.hints,e="C|"+(null==b?"null":b)+"|"+a;c.has(e)||(c.add(e),"string"===typeof b?w(d,"C",[a,b]):w(d,"C",a))}}} function na(a,b,d){if("string"===typeof a){var c=v();if(c){var e=c.hints,f="L";if("image"===b&&d){var g=d.imageSrcSet,h=d.imageSizes,k="";"string"===typeof g&&""!==g?(k+="["+g+"]","string"===typeof h&&(k+="["+h+"]")):k+="[][]"+a;f+="[image]"+k}else f+="["+b+"]"+a;e.has(f)||(e.add(f),(d=x(d))?w(c,"L",[a,b,d]):w(c,"L",[a,b]))}}}function oa(a,b){if("string"===typeof a){var d=v();if(d){var c=d.hints,e="m|"+a;if(!c.has(e))return c.add(e),(b=x(b))?w(d,"m",[a,b]):w(d,"m",a)}}} function pa(a,b,d){if("string"===typeof a){var c=v();if(c){var e=c.hints,f="S|"+a;if(!e.has(f))return e.add(f),(d=x(d))?w(c,"S",[a,"string"===typeof b?b:0,d]):"string"===typeof b?w(c,"S",[a,b]):w(c,"S",a)}}}function qa(a,b){if("string"===typeof a){var d=v();if(d){var c=d.hints,e="X|"+a;if(!c.has(e))return c.add(e),(b=x(b))?w(d,"X",[a,b]):w(d,"X",a)}}}function ra(a,b){if("string"===typeof a){var d=v();if(d){var c=d.hints,e="M|"+a;if(!c.has(e))return c.add(e),(b=x(b))?w(d,"M",[a,b]):w(d,"M",a)}}} function x(a){if(null==a)return null;var b=!1,d={},c;for(c in a)null!=a[c]&&(b=!0,d[c]=a[c]);return b?d:null} -var ua=ba.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,va="function"===typeof AsyncLocalStorage,wa=va?new AsyncLocalStorage:null,y=Symbol.for("react.element"),xa=Symbol.for("react.fragment"),ya=Symbol.for("react.provider"),za=Symbol.for("react.server_context"),Aa=Symbol.for("react.forward_ref"),Ba=Symbol.for("react.suspense"),Ca=Symbol.for("react.suspense_list"),Da=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),B=Symbol.for("react.default_value"),Ea=Symbol.for("react.memo_cache_sentinel"), -Fa=Symbol.for("react.postpone"),Ga=Symbol.iterator,C=null;function D(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");D(a,d);b.context._currentValue=b.value}}}function Ha(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&Ha(a)} -function Ia(a){var b=a.parent;null!==b&&Ia(b);a.context._currentValue=a.value}function Ja(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?D(a,b):Ja(a,b)} -function Ka(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?D(a,d):Ka(a,d);b.context._currentValue=b.value}function La(a){var b=C;b!==a&&(null===b?Ia(a):null===a?Ha(b):b.depth===a.depth?D(b,a):b.depth>a.depth?Ja(b,a):Ka(b,a),C=a)}function Ma(a,b){var d=a._currentValue;a._currentValue=b;var c=C;return C=a={parent:c,depth:null===c?0:c.depth+1,context:a,parentValue:d,value:b}}var Na=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`"); +var ta=ba.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,va="function"===typeof AsyncLocalStorage,wa=va?new AsyncLocalStorage:null,y=Symbol.for("react.element"),xa=Symbol.for("react.fragment"),ya=Symbol.for("react.provider"),za=Symbol.for("react.server_context"),Aa=Symbol.for("react.forward_ref"),Ba=Symbol.for("react.suspense"),Ca=Symbol.for("react.suspense_list"),Da=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),B=Symbol.for("react.default_value"),Ea=Symbol.for("react.memo_cache_sentinel"), +C=Symbol.for("react.postpone"),Fa=Symbol.iterator,D=null;function Ga(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");Ga(a,d);b.context._currentValue=b.value}}}function Ha(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&Ha(a)} +function Ia(a){var b=a.parent;null!==b&&Ia(b);a.context._currentValue=a.value}function Ja(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?Ga(a,b):Ja(a,b)} +function Ka(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?Ga(a,d):Ka(a,d);b.context._currentValue=b.value}function La(a){var b=D;b!==a&&(null===b?Ia(a):null===a?Ha(b):b.depth===a.depth?Ga(b,a):b.depth>a.depth?Ja(b,a):Ka(b,a),D=a)}function Ma(a,b){var d=a._currentValue;a._currentValue=b;var c=D;return D=a={parent:c,depth:null===c?0:c.depth+1,context:a,parentValue:d,value:b}}var Na=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`"); function Oa(){}function Pa(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(Oa,Oa),b=d);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(c){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=c}},function(c){if("pending"===b.status){var e=b;e.status="rejected";e.reason=c}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}Qa=b;throw Na;}}var Qa=null; function Ra(){if(null===Qa)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=Qa;Qa=null;return a}var E=null,Sa=0,F=null;function Ta(){var a=F;F=null;return a}function Ua(a){return a._currentValue} var Ya={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:H,useTransition:H,readContext:Ua,useContext:Ua,useReducer:H,useRef:H,useState:H,useInsertionEffect:H,useLayoutEffect:H,useImperativeHandle:H,useEffect:H,useId:Va,useSyncExternalStore:H,useCacheRefresh:function(){return Wa},useMemoCache:function(a){for(var b=Array(a),d=0;dk.length&&40>e.length+k.length?e+k:e+"..."}e+="}"}return void 0===b?e:-1 0) { // We have tasks to abort. We'll emit one error row and then emit a reference // to that row from every row that's still remaining. - var error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason; - var digest = logRecoverableError(request, error); request.pendingChunks++; var errorId = request.nextChunkId++; - emitErrorChunk(request, errorId, digest, error); + + if (enablePostpone && typeof reason === 'object' && reason !== null && reason.$$typeof === REACT_POSTPONE_TYPE) { + var postponeInstance = reason; + logPostpone(request, postponeInstance.message); + emitPostponeChunk(request, errorId, postponeInstance); + } else { + var error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason; + var digest = logRecoverableError(request, error); + emitErrorChunk(request, errorId, digest, error); + } + abortableTasks.forEach(function (task) { return abortTask(task, request, errorId); }); diff --git a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.production.min.js b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.production.min.js index 7a4f8fbec9dd9..05c0e81fe7b0b 100644 --- a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.production.min.js +++ b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.production.min.js @@ -65,7 +65,7 @@ function Fb(a){var b=pb.current;pb.current=$a;var d=N;E=N=a;try{var c=a.pingedTa function Q(a,b){l=new Uint8Array(2048);m=0;p=!0;try{for(var d=a.completedImportChunks,c=0;c 0) { // We have tasks to abort. We'll emit one error row and then emit a reference // to that row from every row that's still remaining. - var error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason; - var digest = logRecoverableError(request, error); request.pendingChunks++; var errorId = request.nextChunkId++; - emitErrorChunk(request, errorId, digest, error); + + if (enablePostpone && typeof reason === 'object' && reason !== null && reason.$$typeof === REACT_POSTPONE_TYPE) { + var postponeInstance = reason; + logPostpone(request, postponeInstance.message); + emitPostponeChunk(request, errorId, postponeInstance); + } else { + var error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason; + var digest = logRecoverableError(request, error); + emitErrorChunk(request, errorId, digest, error); + } + abortableTasks.forEach(function (task) { return abortTask(task, request, errorId); }); diff --git a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js index 380f134e49ade..6dd6a58b1a9fd 100644 --- a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js +++ b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js @@ -65,7 +65,7 @@ function Fb(a){var b=pb.current;pb.current=$a;var d=N;E=N=a;try{var c=a.pingedTa function Q(a,b){l=new Uint8Array(2048);m=0;p=!0;try{for(var d=a.completedImportChunks,c=0;c 0) { // We have tasks to abort. We'll emit one error row and then emit a reference // to that row from every row that's still remaining. - var error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason; - var digest = logRecoverableError(request, error); request.pendingChunks++; var errorId = request.nextChunkId++; - emitErrorChunk(request, errorId, digest, error); + + var postponeInstance; if (enablePostpone && typeof reason === 'object' && reason !== null && reason.$$typeof === REACT_POSTPONE_TYPE) ; else { + var error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason; + var digest = logRecoverableError(request, error); + emitErrorChunk(request, errorId, digest, error); + } + abortableTasks.forEach(function (task) { return abortTask(task, request, errorId); }); diff --git a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.production.min.js b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.production.min.js index 0353e8ef26306..9af5c323ff221 100644 --- a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.production.min.js +++ b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.production.min.js @@ -19,7 +19,7 @@ function la(a){if("string"===typeof a&&a){var b=v?v:null;if(b){var d=b.hints,c=" function na(a,b,d){if("string"===typeof a){var c=v?v:null;if(c){var e=c.hints,g="L";if("image"===b&&d){var f=d.imageSrcSet,k=d.imageSizes,h="";"string"===typeof f&&""!==f?(h+="["+f+"]","string"===typeof k&&(h+="["+k+"]")):h+="[][]"+a;g+="[image]"+h}else g+="["+b+"]"+a;e.has(g)||(e.add(g),(d=y(d))?w(c,"L",[a,b,d]):w(c,"L",[a,b]))}}}function oa(a,b){if("string"===typeof a){var d=v?v:null;if(d){var c=d.hints,e="m|"+a;if(!c.has(e))return c.add(e),(b=y(b))?w(d,"m",[a,b]):w(d,"m",a)}}} function pa(a,b,d){if("string"===typeof a){var c=v?v:null;if(c){var e=c.hints,g="S|"+a;if(!e.has(g))return e.add(g),(d=y(d))?w(c,"S",[a,"string"===typeof b?b:0,d]):"string"===typeof b?w(c,"S",[a,b]):w(c,"S",a)}}}function qa(a,b){if("string"===typeof a){var d=v?v:null;if(d){var c=d.hints,e="X|"+a;if(!c.has(e))return c.add(e),(b=y(b))?w(d,"X",[a,b]):w(d,"X",a)}}} function ra(a,b){if("string"===typeof a){var d=v?v:null;if(d){var c=d.hints,e="M|"+a;if(!c.has(e))return c.add(e),(b=y(b))?w(d,"M",[a,b]):w(d,"M",a)}}}function y(a){if(null==a)return null;var b=!1,d={},c;for(c in a)null!=a[c]&&(b=!0,d[c]=a[c]);return b?d:null} -var ta=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,z=Symbol.for("react.element"),ua=Symbol.for("react.fragment"),va=Symbol.for("react.server_context"),wa=Symbol.for("react.forward_ref"),xa=Symbol.for("react.suspense"),ya=Symbol.for("react.suspense_list"),za=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),Aa=Symbol.for("react.memo_cache_sentinel"),Ba=Symbol.iterator,B=null; +var ta=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,z=Symbol.for("react.element"),ua=Symbol.for("react.fragment"),va=Symbol.for("react.server_context"),wa=Symbol.for("react.forward_ref"),xa=Symbol.for("react.suspense"),ya=Symbol.for("react.suspense_list"),za=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),Aa=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.postpone");var Ba=Symbol.iterator,B=null; function C(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");C(a,d);b.context._currentValue=b.value}}}function Ca(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&Ca(a)} function Da(a){var b=a.parent;null!==b&&Da(b);a.context._currentValue=a.value}function Ea(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?C(a,b):Ea(a,b)} function Fa(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?C(a,d):Fa(a,d);b.context._currentValue=b.value}var Ga=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`"); @@ -57,7 +57,7 @@ function mb(a,b){if(0===b.status){var d=B,c=b.context;d!==c&&(null===d?Da(c):nul e&&a.writtenObjects.set(e,b.id);var f=b.id;S=e;var k=K(e,a.toJSON),h=f.toString(16)+":"+k+"\n",m=q.encode(h);a.completedRegularChunks.push(m);a.abortableTasks.delete(b);b.status=1}catch(x){f=x===Ga?Ja():x,"object"===typeof f&&null!==f&&"function"===typeof f.then?(a=b.ping,f.then(a,a),b.thenableState=Ka()):(a.abortableTasks.delete(b),b.status=4,f=M(a,f),N(a,b.id,f))}}} function jb(a){var b=ab.current;ab.current=Pa;var d=v;E=v=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var e=0;e 0) { // We have tasks to abort. We'll emit one error row and then emit a reference // to that row from every row that's still remaining. - var error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason; - var digest = logRecoverableError(request, error); request.pendingChunks++; var errorId = request.nextChunkId++; - emitErrorChunk(request, errorId, digest, error); + + var postponeInstance; if (enablePostpone && typeof reason === 'object' && reason !== null && reason.$$typeof === REACT_POSTPONE_TYPE) ; else { + var error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason; + var digest = logRecoverableError(request, error); + emitErrorChunk(request, errorId, digest, error); + } + abortableTasks.forEach(function (task) { return abortTask(task, request, errorId); }); diff --git a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.min.js b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.min.js index d59bc153edd3a..d5c040e067784 100644 --- a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.min.js +++ b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.min.js @@ -19,8 +19,8 @@ function la(a){if("string"===typeof a&&a){var b=v();if(b){var d=b.hints,c="D|"+a function na(a,b,d){if("string"===typeof a){var c=v();if(c){var e=c.hints,f="L";if("image"===b&&d){var g=d.imageSrcSet,k=d.imageSizes,h="";"string"===typeof g&&""!==g?(h+="["+g+"]","string"===typeof k&&(h+="["+k+"]")):h+="[][]"+a;f+="[image]"+h}else f+="["+b+"]"+a;e.has(f)||(e.add(f),(d=y(d))?w(c,"L",[a,b,d]):w(c,"L",[a,b]))}}}function oa(a,b){if("string"===typeof a){var d=v();if(d){var c=d.hints,e="m|"+a;if(!c.has(e))return c.add(e),(b=y(b))?w(d,"m",[a,b]):w(d,"m",a)}}} function pa(a,b,d){if("string"===typeof a){var c=v();if(c){var e=c.hints,f="S|"+a;if(!e.has(f))return e.add(f),(d=y(d))?w(c,"S",[a,"string"===typeof b?b:0,d]):"string"===typeof b?w(c,"S",[a,b]):w(c,"S",a)}}}function qa(a,b){if("string"===typeof a){var d=v();if(d){var c=d.hints,e="X|"+a;if(!c.has(e))return c.add(e),(b=y(b))?w(d,"X",[a,b]):w(d,"X",a)}}}function ra(a,b){if("string"===typeof a){var d=v();if(d){var c=d.hints,e="M|"+a;if(!c.has(e))return c.add(e),(b=y(b))?w(d,"M",[a,b]):w(d,"M",a)}}} function y(a){if(null==a)return null;var b=!1,d={},c;for(c in a)null!=a[c]&&(b=!0,d[c]=a[c]);return b?d:null} -var ta=ba.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,ua="function"===typeof AsyncLocalStorage,va=ua?new AsyncLocalStorage:null,z=Symbol.for("react.element"),wa=Symbol.for("react.fragment"),xa=Symbol.for("react.server_context"),ya=Symbol.for("react.forward_ref"),za=Symbol.for("react.suspense"),Aa=Symbol.for("react.suspense_list"),Ba=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),Ca=Symbol.for("react.memo_cache_sentinel"),Da=Symbol.iterator,B=null; -function C(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");C(a,d);b.context._currentValue=b.value}}}function Ea(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&Ea(a)} +var ta=ba.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,ua="function"===typeof AsyncLocalStorage,va=ua?new AsyncLocalStorage:null,z=Symbol.for("react.element"),wa=Symbol.for("react.fragment"),xa=Symbol.for("react.server_context"),ya=Symbol.for("react.forward_ref"),za=Symbol.for("react.suspense"),Aa=Symbol.for("react.suspense_list"),Ba=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),Ca=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.postpone"); +var Da=Symbol.iterator,B=null;function C(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");C(a,d);b.context._currentValue=b.value}}}function Ea(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&Ea(a)} function Fa(a){var b=a.parent;null!==b&&Fa(b);a.context._currentValue=a.value}function Ga(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?C(a,b):Ga(a,b)} function Ha(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?C(a,d):Ha(a,d);b.context._currentValue=b.value}var Ia=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`"); function Ja(){}function Ka(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(Ja,Ja),b=d);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(c){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=c}},function(c){if("pending"===b.status){var e=b;e.status="rejected";e.reason=c}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}D=b;throw Ia;}}var D=null; @@ -58,7 +58,7 @@ e&&a.writtenObjects.set(e,b.id);var g=b.id;T=e;var k=K(e,a.toJSON),h=g.toString( function mb(a){var b=cb.current;cb.current=Ra;var d=M;E=M=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var e=0;e 0) { // We have tasks to abort. We'll emit one error row and then emit a reference // to that row from every row that's still remaining. - var error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason; - var digest = logRecoverableError(request, error); request.pendingChunks++; var errorId = request.nextChunkId++; - emitErrorChunk(request, errorId, digest, error); + + var postponeInstance; if (enablePostpone && typeof reason === 'object' && reason !== null && reason.$$typeof === REACT_POSTPONE_TYPE) ; else { + var error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason; + var digest = logRecoverableError(request, error); + emitErrorChunk(request, errorId, digest, error); + } + abortableTasks.forEach(function (task) { return abortTask(task, request, errorId); }); diff --git a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.production.min.js b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.production.min.js index a953bbd60ee57..a1e8816ca4e0e 100644 --- a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.production.min.js +++ b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.production.min.js @@ -20,9 +20,8 @@ var na={get:function(a,b){return ma(a,b)},getOwnPropertyDescriptor:function(a,b) function oa(a){if("string"===typeof a&&a){var b=x();if(b){var d=b.hints,c="D|"+a;d.has(c)||(d.add(c),y(b,"D",a))}}}function pa(a,b){if("string"===typeof a){var d=x();if(d){var c=d.hints,e="C|"+(null==b?"null":b)+"|"+a;c.has(e)||(c.add(e),"string"===typeof b?y(d,"C",[a,b]):y(d,"C",a))}}} function qa(a,b,d){if("string"===typeof a){var c=x();if(c){var e=c.hints,f="L";if("image"===b&&d){var g=d.imageSrcSet,k=d.imageSizes,h="";"string"===typeof g&&""!==g?(h+="["+g+"]","string"===typeof k&&(h+="["+k+"]")):h+="[][]"+a;f+="[image]"+h}else f+="["+b+"]"+a;e.has(f)||(e.add(f),(d=A(d))?y(c,"L",[a,b,d]):y(c,"L",[a,b]))}}}function ra(a,b){if("string"===typeof a){var d=x();if(d){var c=d.hints,e="m|"+a;if(!c.has(e))return c.add(e),(b=A(b))?y(d,"m",[a,b]):y(d,"m",a)}}} function sa(a,b,d){if("string"===typeof a){var c=x();if(c){var e=c.hints,f="S|"+a;if(!e.has(f))return e.add(f),(d=A(d))?y(c,"S",[a,"string"===typeof b?b:0,d]):"string"===typeof b?y(c,"S",[a,b]):y(c,"S",a)}}}function ta(a,b){if("string"===typeof a){var d=x();if(d){var c=d.hints,e="X|"+a;if(!c.has(e))return c.add(e),(b=A(b))?y(d,"X",[a,b]):y(d,"X",a)}}}function ua(a,b){if("string"===typeof a){var d=x();if(d){var c=d.hints,e="M|"+a;if(!c.has(e))return c.add(e),(b=A(b))?y(d,"M",[a,b]):y(d,"M",a)}}} -function A(a){if(null==a)return null;var b=!1,d={},c;for(c in a)null!=a[c]&&(b=!0,d[c]=a[c]);return b?d:null} -var wa=ea.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,xa=new ca.AsyncLocalStorage,B=Symbol.for("react.element"),ya=Symbol.for("react.fragment"),za=Symbol.for("react.server_context"),Aa=Symbol.for("react.forward_ref"),Ba=Symbol.for("react.suspense"),Ca=Symbol.for("react.suspense_list"),Da=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),Ea=Symbol.for("react.memo_cache_sentinel"),Fa=Symbol.iterator,D=null; -function E(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");E(a,d);b.context._currentValue=b.value}}}function Ga(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&Ga(a)} +function A(a){if(null==a)return null;var b=!1,d={},c;for(c in a)null!=a[c]&&(b=!0,d[c]=a[c]);return b?d:null}var wa=ea.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,xa=new ca.AsyncLocalStorage,B=Symbol.for("react.element"),ya=Symbol.for("react.fragment"),za=Symbol.for("react.server_context"),Aa=Symbol.for("react.forward_ref"),Ba=Symbol.for("react.suspense"),Ca=Symbol.for("react.suspense_list"),Da=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),Ea=Symbol.for("react.memo_cache_sentinel"); +Symbol.for("react.postpone");var Fa=Symbol.iterator,D=null;function E(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");E(a,d);b.context._currentValue=b.value}}}function Ga(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&Ga(a)} function Ha(a){var b=a.parent;null!==b&&Ha(b);a.context._currentValue=a.value}function Ia(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?E(a,b):Ia(a,b)} function Ja(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?E(a,d):Ja(a,d);b.context._currentValue=b.value}var Ka=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`"); function La(){}function Ma(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(La,La),b=d);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(c){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=c}},function(c){if("pending"===b.status){var e=b;e.status="rejected";e.reason=c}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}F=b;throw Ka;}}var F=null; @@ -61,7 +60,7 @@ function ob(a){var b=eb.current;eb.current=Ta;var d=O;G=O=a;try{var c=a.pingedTa function R(a,b){l=new Uint8Array(2048);m=0;p=!0;try{for(var d=a.completedImportChunks,c=0;c 0) { // We have tasks to abort. We'll emit one error row and then emit a reference // to that row from every row that's still remaining. - var error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason; - var digest = logRecoverableError(request, error); request.pendingChunks++; var errorId = request.nextChunkId++; - emitErrorChunk(request, errorId, digest, error); + + var postponeInstance; if (enablePostpone && typeof reason === 'object' && reason !== null && reason.$$typeof === REACT_POSTPONE_TYPE) ; else { + var error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason; + var digest = logRecoverableError(request, error); + emitErrorChunk(request, errorId, digest, error); + } + abortableTasks.forEach(function (task) { return abortTask(task, request, errorId); }); diff --git a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js index 635c7f885b902..be9d80435d0a8 100644 --- a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js +++ b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js @@ -20,9 +20,8 @@ var na={get:function(a,b){return ma(a,b)},getOwnPropertyDescriptor:function(a,b) function oa(a){if("string"===typeof a&&a){var b=x();if(b){var d=b.hints,c="D|"+a;d.has(c)||(d.add(c),y(b,"D",a))}}}function pa(a,b){if("string"===typeof a){var d=x();if(d){var c=d.hints,e="C|"+(null==b?"null":b)+"|"+a;c.has(e)||(c.add(e),"string"===typeof b?y(d,"C",[a,b]):y(d,"C",a))}}} function qa(a,b,d){if("string"===typeof a){var c=x();if(c){var e=c.hints,f="L";if("image"===b&&d){var g=d.imageSrcSet,k=d.imageSizes,h="";"string"===typeof g&&""!==g?(h+="["+g+"]","string"===typeof k&&(h+="["+k+"]")):h+="[][]"+a;f+="[image]"+h}else f+="["+b+"]"+a;e.has(f)||(e.add(f),(d=A(d))?y(c,"L",[a,b,d]):y(c,"L",[a,b]))}}}function ra(a,b){if("string"===typeof a){var d=x();if(d){var c=d.hints,e="m|"+a;if(!c.has(e))return c.add(e),(b=A(b))?y(d,"m",[a,b]):y(d,"m",a)}}} function sa(a,b,d){if("string"===typeof a){var c=x();if(c){var e=c.hints,f="S|"+a;if(!e.has(f))return e.add(f),(d=A(d))?y(c,"S",[a,"string"===typeof b?b:0,d]):"string"===typeof b?y(c,"S",[a,b]):y(c,"S",a)}}}function ta(a,b){if("string"===typeof a){var d=x();if(d){var c=d.hints,e="X|"+a;if(!c.has(e))return c.add(e),(b=A(b))?y(d,"X",[a,b]):y(d,"X",a)}}}function ua(a,b){if("string"===typeof a){var d=x();if(d){var c=d.hints,e="M|"+a;if(!c.has(e))return c.add(e),(b=A(b))?y(d,"M",[a,b]):y(d,"M",a)}}} -function A(a){if(null==a)return null;var b=!1,d={},c;for(c in a)null!=a[c]&&(b=!0,d[c]=a[c]);return b?d:null} -var wa=ea.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,xa=new ca.AsyncLocalStorage,B=Symbol.for("react.element"),ya=Symbol.for("react.fragment"),za=Symbol.for("react.server_context"),Aa=Symbol.for("react.forward_ref"),Ba=Symbol.for("react.suspense"),Ca=Symbol.for("react.suspense_list"),Da=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),Ea=Symbol.for("react.memo_cache_sentinel"),Fa=Symbol.iterator,D=null; -function E(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");E(a,d);b.context._currentValue=b.value}}}function Ga(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&Ga(a)} +function A(a){if(null==a)return null;var b=!1,d={},c;for(c in a)null!=a[c]&&(b=!0,d[c]=a[c]);return b?d:null}var wa=ea.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,xa=new ca.AsyncLocalStorage,B=Symbol.for("react.element"),ya=Symbol.for("react.fragment"),za=Symbol.for("react.server_context"),Aa=Symbol.for("react.forward_ref"),Ba=Symbol.for("react.suspense"),Ca=Symbol.for("react.suspense_list"),Da=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),Ea=Symbol.for("react.memo_cache_sentinel"); +Symbol.for("react.postpone");var Fa=Symbol.iterator,D=null;function E(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");E(a,d);b.context._currentValue=b.value}}}function Ga(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&Ga(a)} function Ha(a){var b=a.parent;null!==b&&Ha(b);a.context._currentValue=a.value}function Ia(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?E(a,b):Ia(a,b)} function Ja(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?E(a,d):Ja(a,d);b.context._currentValue=b.value}var Ka=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`"); function La(){}function Ma(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(La,La),b=d);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(c){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=c}},function(c){if("pending"===b.status){var e=b;e.status="rejected";e.reason=c}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}F=b;throw Ka;}}var F=null; @@ -61,7 +60,7 @@ function ob(a){var b=eb.current;eb.current=Ta;var d=O;G=O=a;try{var c=a.pingedTa function R(a,b){l=new Uint8Array(2048);m=0;p=!0;try{for(var d=a.completedImportChunks,c=0;c=0.10.0'} dev: true - /react-server-dom-turbopack@0.0.0-experimental-b8e47d988-20231023(react-dom@18.2.0)(react@18.2.0): - resolution: {integrity: sha512-oWYrQfMvrJ84AMRoido7FEpUZKMDvodkqc9dXteupt4wS7I0AZzUxx1CLO5slQLwZw9X3dQ277bY/vLAeQf/Ow==} + /react-server-dom-turbopack@0.0.0-experimental-a9985529f-20231025(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-DNam39mI5eYUYSG2q5YXlkH1pAHfNIYLAryen3KR3q4T2VyjbpAlxhltG81U+gxMr7UzfiRw9c7CQeT/TjyJXQ==} engines: {node: '>=0.10.0'} peerDependencies: - react: 0.0.0-experimental-b8e47d988-20231023 - react-dom: 0.0.0-experimental-b8e47d988-20231023 + react: 0.0.0-experimental-a9985529f-20231025 + react-dom: 0.0.0-experimental-a9985529f-20231025 dependencies: acorn-loose: 8.3.0 loose-envify: 1.4.0 @@ -20557,12 +20557,12 @@ packages: react-dom: 18.2.0(react@18.2.0) dev: true - /react-server-dom-turbopack@18.3.0-canary-b8e47d988-20231023(react-dom@18.2.0)(react@18.2.0): - resolution: {integrity: sha512-jG0mJrKQjLaoD8GUnS2jl4FRymoyyhM1TMw01P7+yBkGmB3Tw710W1nRkRk9iFXYUpbkWfmKwmafGrbJgR17Dg==} + /react-server-dom-turbopack@18.3.0-canary-a9985529f-20231025(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-VfSMLpuvXoT0qtC5GeeGYScimViIWx/Chz91p5g/ZzZLKZZfmhNuJu8z4pPLdxTvRVxErViv9y01m8JCVCXYFw==} engines: {node: '>=0.10.0'} peerDependencies: - react: 18.3.0-canary-b8e47d988-20231023 - react-dom: 18.3.0-canary-b8e47d988-20231023 + react: 18.3.0-canary-a9985529f-20231025 + react-dom: 18.3.0-canary-a9985529f-20231025 dependencies: acorn-loose: 8.3.0 loose-envify: 1.4.0 @@ -20571,12 +20571,12 @@ packages: react-dom: 18.2.0(react@18.2.0) dev: true - /react-server-dom-webpack@0.0.0-experimental-b8e47d988-20231023(react-dom@18.2.0)(react@18.2.0)(webpack@5.86.0): - resolution: {integrity: sha512-b+1jTvhargqxpgKE9iatlfUfhKKZRra6mZmUFHQZZjYXWDDJKmGp2mqtrJIKgPpzXdxLqcVJadTuo5nF4x5Onw==} + /react-server-dom-webpack@0.0.0-experimental-a9985529f-20231025(react-dom@18.2.0)(react@18.2.0)(webpack@5.86.0): + resolution: {integrity: sha512-p06QO2bfHOGraemf6hd7qcNTHoqbC3cALPtEAt0mzVTZ2MIPJlHUEDZKS1abNuPzlF+Z2Qr+drrbjnH+R9dKSw==} engines: {node: '>=0.10.0'} peerDependencies: - react: 0.0.0-experimental-b8e47d988-20231023 - react-dom: 0.0.0-experimental-b8e47d988-20231023 + react: 0.0.0-experimental-a9985529f-20231025 + react-dom: 0.0.0-experimental-a9985529f-20231025 webpack: 5.86.0 dependencies: acorn-loose: 8.3.0 @@ -20587,12 +20587,12 @@ packages: webpack: 5.86.0(@swc/core@1.3.85) dev: true - /react-server-dom-webpack@18.3.0-canary-b8e47d988-20231023(react-dom@18.2.0)(react@18.2.0)(webpack@5.86.0): - resolution: {integrity: sha512-lB8EjUY/n4uFwfLQTVx3dLkEjYRV4jswv4mv6j/1jsdwl5vhvwTYENYCM38jAPTkB/10bNUB2Tu5eQ21B4euMw==} + /react-server-dom-webpack@18.3.0-canary-a9985529f-20231025(react-dom@18.2.0)(react@18.2.0)(webpack@5.86.0): + resolution: {integrity: sha512-8aTR51gzLY/Pr0xQF5ERZfXbex51a0gjOZp96J+FR2U8e8xIowC1HsAihPTEN0dWE5+SrasV7xNHqE3tpDDOQQ==} engines: {node: '>=0.10.0'} peerDependencies: - react: 18.3.0-canary-b8e47d988-20231023 - react-dom: 18.3.0-canary-b8e47d988-20231023 + react: 18.3.0-canary-a9985529f-20231025 + react-dom: 18.3.0-canary-a9985529f-20231025 webpack: 5.86.0 dependencies: acorn-loose: 8.3.0 @@ -20630,8 +20630,8 @@ packages: react-lifecycles-compat: 3.0.4 dev: true - /react@0.0.0-experimental-b8e47d988-20231023: - resolution: {integrity: sha512-xFSpF9EF44g8S71MgdkwIrCxN+elROsMPMof1j/V+h4htUxrL5e3ue+cUI3fVBZQhSGcx1jIowrvgJyDgDsfuA==} + /react@0.0.0-experimental-a9985529f-20231025: + resolution: {integrity: sha512-Ki1CQnU+/YTNJxhV2g+w0xo2blMnDrAK0L/pqMRzw4yuxK+vfyLIJcMZx5qSGx56DntfZj07u/JPQOEogd95rQ==} engines: {node: '>=0.10.0'} dependencies: loose-envify: 1.4.0 @@ -20650,8 +20650,8 @@ packages: dependencies: loose-envify: 1.4.0 - /react@18.3.0-canary-b8e47d988-20231023: - resolution: {integrity: sha512-KW7Ixs0zFcHfAaKdp65PenM5ryl1Cr0ghDbj3nMb1lSA9nTzXcqD7Q5zm+fpbBFBXM+f1mObKV/whGlZfHK8BA==} + /react@18.3.0-canary-a9985529f-20231025: + resolution: {integrity: sha512-V6DSSoK4DoklyzkHFrRn643h2x+L9FqdI+c/Y8/kJsd/FdLudidP2GeJ7Uv78Vm4jZ6FAT41/sbKP4XNGjfTgQ==} engines: {node: '>=0.10.0'} dependencies: loose-envify: 1.4.0 @@ -21711,8 +21711,8 @@ packages: xmlchars: 2.2.0 dev: true - /scheduler@0.0.0-experimental-b8e47d988-20231023: - resolution: {integrity: sha512-xzFzOhdLJtTAzh7ziuxgc5HYTXDUN1YeJdHKdlsKcGOBsTCIKm0rfe1f1J581dCzxyUzzP8BGIMXhe+ZeFo1lA==} + /scheduler@0.0.0-experimental-a9985529f-20231025: + resolution: {integrity: sha512-J8vZxPfQfT5hWTaeqKODl7TOAfWMF/KUHSsy3J43/I912tv/cteq29KKSPVRdZS/XH26LniZ8734UF9FRUanaA==} dependencies: loose-envify: 1.4.0 dev: true @@ -21728,8 +21728,8 @@ packages: dependencies: loose-envify: 1.4.0 - /scheduler@0.24.0-canary-b8e47d988-20231023: - resolution: {integrity: sha512-mHdfBGfhlU1Ev7fFwRcrBwlcpBUnsCXoI7MSBK38R6XAbj5MzZIAFVdSB1hfdAfh9ePxKg3AA0quUpT8oqKdBA==} + /scheduler@0.24.0-canary-a9985529f-20231025: + resolution: {integrity: sha512-KLNXd0AtucHjExwtSHGUqexC6NXmGACt1E7a7GPK3LXBylTj/CZ+OcVwJIq0CvEpfT/MpbmopHarrn4AsT7MCw==} dependencies: loose-envify: 1.4.0 dev: true