next 15.2.2-canary.4 → 15.2.2-canary.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of next might be problematic. Click here for more details.
- package/dist/bin/next +1 -1
- package/dist/build/index.js +2 -2
- package/dist/build/swc/index.js +1 -1
- package/dist/build/webpack-config.js +2 -2
- package/dist/client/app-bootstrap.js +1 -1
- package/dist/client/components/react-dev-overlay/ui/components/call-stack-frame/call-stack-frame.d.ts +1 -2
- package/dist/client/components/react-dev-overlay/ui/components/call-stack-frame/call-stack-frame.js +4 -7
- package/dist/client/components/react-dev-overlay/ui/components/call-stack-frame/call-stack-frame.js.map +1 -1
- package/dist/client/components/react-dev-overlay/ui/components/errors/call-stack/call-stack.js +1 -2
- package/dist/client/components/react-dev-overlay/ui/components/errors/call-stack/call-stack.js.map +1 -1
- package/dist/client/index.js +1 -1
- package/dist/compiled/next-server/app-page-experimental.runtime.dev.js +2 -2
- package/dist/compiled/next-server/app-page-experimental.runtime.dev.js.map +1 -1
- package/dist/compiled/next-server/app-page.runtime.dev.js +2 -2
- package/dist/compiled/next-server/app-page.runtime.dev.js.map +1 -1
- package/dist/esm/build/index.js +2 -2
- package/dist/esm/build/swc/index.js +1 -1
- package/dist/esm/build/webpack-config.js +2 -2
- package/dist/esm/client/app-bootstrap.js +1 -1
- package/dist/esm/client/components/react-dev-overlay/ui/components/call-stack-frame/call-stack-frame.js +4 -7
- package/dist/esm/client/components/react-dev-overlay/ui/components/call-stack-frame/call-stack-frame.js.map +1 -1
- package/dist/esm/client/components/react-dev-overlay/ui/components/errors/call-stack/call-stack.js +1 -2
- package/dist/esm/client/components/react-dev-overlay/ui/components/errors/call-stack/call-stack.js.map +1 -1
- package/dist/esm/client/index.js +1 -1
- package/dist/esm/server/dev/hot-reloader-turbopack.js +1 -1
- package/dist/esm/server/dev/hot-reloader-webpack.js +1 -1
- package/dist/esm/server/lib/app-info-log.js +1 -1
- package/dist/esm/server/lib/start-server.js +1 -1
- package/dist/esm/shared/lib/canary-only.js +1 -1
- package/dist/server/dev/hot-reloader-turbopack.js +1 -1
- package/dist/server/dev/hot-reloader-webpack.js +1 -1
- package/dist/server/lib/app-info-log.js +1 -1
- package/dist/server/lib/start-server.js +1 -1
- package/dist/shared/lib/canary-only.js +1 -1
- package/dist/telemetry/anonymous-meta.js +1 -1
- package/dist/telemetry/events/session-stopped.js +2 -2
- package/dist/telemetry/events/version.js +2 -2
- package/package.json +15 -15
package/dist/esm/build/index.js
CHANGED
@@ -296,7 +296,7 @@ export default async function build(dir, reactProductionProfiling = false, debug
|
|
296
296
|
const nextBuildSpan = trace('next-build', undefined, {
|
297
297
|
buildMode: experimentalBuildMode,
|
298
298
|
isTurboBuild: String(turboNextBuild),
|
299
|
-
version: "15.2.2-canary.
|
299
|
+
version: "15.2.2-canary.5"
|
300
300
|
});
|
301
301
|
NextBuildContext.nextBuildSpan = nextBuildSpan;
|
302
302
|
NextBuildContext.dir = dir;
|
@@ -655,7 +655,7 @@ export default async function build(dir, reactProductionProfiling = false, debug
|
|
655
655
|
// Files outside of the distDir can be "type": "module"
|
656
656
|
await writeFileUtf8(path.join(distDir, 'package.json'), '{"type": "commonjs"}');
|
657
657
|
// These are written to distDir, so they need to come after creating and cleaning distDr.
|
658
|
-
await recordFrameworkVersion("15.2.2-canary.
|
658
|
+
await recordFrameworkVersion("15.2.2-canary.5");
|
659
659
|
await updateBuildDiagnostics({
|
660
660
|
buildStage: 'start'
|
661
661
|
});
|
@@ -11,7 +11,7 @@ import { isDeepStrictEqual } from 'util';
|
|
11
11
|
import { getDefineEnv } from '../webpack/plugins/define-env-plugin';
|
12
12
|
import { getReactCompilerLoader } from '../get-babel-loader-config';
|
13
13
|
import { TurbopackInternalError } from '../../shared/lib/turbopack/utils';
|
14
|
-
const nextVersion = "15.2.2-canary.
|
14
|
+
const nextVersion = "15.2.2-canary.5";
|
15
15
|
const ArchName = arch();
|
16
16
|
const PlatformName = platform();
|
17
17
|
function infoLog(...args) {
|
@@ -1526,7 +1526,7 @@ export default async function getBaseWebpackConfig(dir, { buildId, encryptionKey
|
|
1526
1526
|
isClient && new CopyFilePlugin({
|
1527
1527
|
// file path to build output of `@next/polyfill-nomodule`
|
1528
1528
|
filePath: require.resolve('./polyfills/polyfill-nomodule'),
|
1529
|
-
cacheKey: "15.2.2-canary.
|
1529
|
+
cacheKey: "15.2.2-canary.5",
|
1530
1530
|
name: `static/chunks/polyfills${dev ? '' : '-[hash]'}.js`,
|
1531
1531
|
minimize: false,
|
1532
1532
|
info: {
|
@@ -1703,7 +1703,7 @@ export default async function getBaseWebpackConfig(dir, { buildId, encryptionKey
|
|
1703
1703
|
// - Next.js location on disk (some loaders use absolute paths and some resolve options depend on absolute paths)
|
1704
1704
|
// - Next.js version
|
1705
1705
|
// - next.config.js keys that affect compilation
|
1706
|
-
version: `${__dirname}|${"15.2.2-canary.
|
1706
|
+
version: `${__dirname}|${"15.2.2-canary.5"}|${configVars}`,
|
1707
1707
|
cacheDirectory: path.join(distDir, 'cache', 'webpack'),
|
1708
1708
|
// For production builds, it's more efficient to compress all cache files together instead of compression each one individually.
|
1709
1709
|
// So we disable compression here and allow the build runner to take care of compressing the cache as a whole.
|
@@ -4,7 +4,7 @@ import { ExternalIcon, SourceMappingErrorIcon } from '../../icons/external';
|
|
4
4
|
import { getFrameSource } from '../../../utils/stack-frame';
|
5
5
|
import { useOpenInEditor } from '../../utils/use-open-in-editor';
|
6
6
|
export const CallStackFrame = function CallStackFrame(param) {
|
7
|
-
let { frame
|
7
|
+
let { frame } = param;
|
8
8
|
var _frame_originalStackFrame;
|
9
9
|
// TODO: ability to expand resolved frames
|
10
10
|
const f = (_frame_originalStackFrame = frame.originalStackFrame) != null ? _frame_originalStackFrame : frame.sourceStackFrame;
|
@@ -25,13 +25,10 @@ export const CallStackFrame = function CallStackFrame(param) {
|
|
25
25
|
}
|
26
26
|
return /*#__PURE__*/ _jsxs("div", {
|
27
27
|
"data-nextjs-call-stack-frame": true,
|
28
|
-
"data-nextjs-call-stack-frame-
|
29
|
-
|
30
|
-
'--index': index
|
31
|
-
},
|
28
|
+
"data-nextjs-call-stack-frame-no-source": !hasSource,
|
29
|
+
"data-nextjs-call-stack-frame-ignored": frame.ignored,
|
32
30
|
children: [
|
33
31
|
/*#__PURE__*/ _jsxs("div", {
|
34
|
-
"data-nextjs-frame-expanded": !frame.ignored,
|
35
32
|
className: "call-stack-frame-method-name",
|
36
33
|
children: [
|
37
34
|
/*#__PURE__*/ _jsx(HotlinkedText, {
|
@@ -64,6 +61,6 @@ export const CallStackFrame = function CallStackFrame(param) {
|
|
64
61
|
]
|
65
62
|
});
|
66
63
|
};
|
67
|
-
export const CALL_STACK_FRAME_STYLES =
|
64
|
+
export const CALL_STACK_FRAME_STYLES = '\n [data-nextjs-call-stack-frame-no-source] {\n padding: 6px 8px;\n margin-bottom: 4px;\n\n border-radius: var(--rounded-lg);\n }\n\n [data-nextjs-call-stack-frame-no-source]:last-child {\n margin-bottom: 0;\n }\n\n [data-nextjs-call-stack-frame-ignored="true"] {\n opacity: 0.6;\n }\n\n [data-nextjs-call-stack-frame] {\n user-select: text;\n display: block;\n box-sizing: border-box;\n\n user-select: text;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n\n padding: 6px 8px;\n\n border-radius: var(--rounded-lg);\n }\n\n .call-stack-frame-method-name {\n display: flex;\n align-items: center;\n gap: 4px;\n\n margin-bottom: 4px;\n font-family: var(--font-stack-monospace);\n\n color: var(--color-gray-1000);\n font-size: var(--size-14);\n font-weight: 500;\n line-height: var(--size-20);\n\n svg {\n width: var(--size-16px);\n height: var(--size-16px);\n }\n }\n\n .open-in-editor-button, .source-mapping-error-button {\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: var(--rounded-full);\n padding: 4px;\n color: var(--color-font);\n\n svg {\n width: var(--size-16);\n height: var(--size-16);\n }\n\n &:focus-visible {\n outline: var(--focus-ring);\n outline-offset: -2px;\n }\n\n &:hover {\n background: var(--color-gray-100);\n }\n }\n\n .call-stack-frame-file-source {\n color: var(--color-gray-900);\n font-size: var(--size-14);\n line-height: var(--size-20);\n }\n';
|
68
65
|
|
69
66
|
//# sourceMappingURL=call-stack-frame.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../../../../../src/client/components/react-dev-overlay/ui/components/call-stack-frame/call-stack-frame.tsx"],"sourcesContent":["import type { StackFrame } from 'next/dist/compiled/stacktrace-parser'\nimport type { OriginalStackFrame } from '../../../utils/stack-frame'\n\nimport { HotlinkedText } from '../hot-linked-text'\nimport { ExternalIcon, SourceMappingErrorIcon } from '../../icons/external'\nimport { getFrameSource } from '../../../utils/stack-frame'\nimport { useOpenInEditor } from '../../utils/use-open-in-editor'\n\nexport const CallStackFrame: React.FC<{\n frame: OriginalStackFrame\n
|
1
|
+
{"version":3,"sources":["../../../../../../../src/client/components/react-dev-overlay/ui/components/call-stack-frame/call-stack-frame.tsx"],"sourcesContent":["import type { StackFrame } from 'next/dist/compiled/stacktrace-parser'\nimport type { OriginalStackFrame } from '../../../utils/stack-frame'\n\nimport { HotlinkedText } from '../hot-linked-text'\nimport { ExternalIcon, SourceMappingErrorIcon } from '../../icons/external'\nimport { getFrameSource } from '../../../utils/stack-frame'\nimport { useOpenInEditor } from '../../utils/use-open-in-editor'\n\nexport const CallStackFrame: React.FC<{\n frame: OriginalStackFrame\n}> = function CallStackFrame({ frame }) {\n // TODO: ability to expand resolved frames\n\n const f: StackFrame = frame.originalStackFrame ?? frame.sourceStackFrame\n const hasSource = Boolean(frame.originalCodeFrame)\n const open = useOpenInEditor(\n hasSource\n ? {\n file: f.file,\n lineNumber: f.lineNumber,\n column: f.column,\n }\n : undefined\n )\n\n // Format method to strip out the webpack layer prefix.\n // e.g. (app-pages-browser)/./app/page.tsx -> ./app/page.tsx\n const formattedMethod = f.methodName.replace(/^\\([\\w-]+\\)\\//, '')\n\n // Formatted file source could be empty. e.g. <anonymous> will be formatted to empty string,\n // we'll skip rendering the frame in this case.\n const fileSource = getFrameSource(f)\n\n if (!fileSource) {\n return null\n }\n\n return (\n <div\n data-nextjs-call-stack-frame\n data-nextjs-call-stack-frame-no-source={!hasSource}\n data-nextjs-call-stack-frame-ignored={frame.ignored}\n >\n <div className=\"call-stack-frame-method-name\">\n <HotlinkedText text={formattedMethod} />\n {hasSource && (\n <button onClick={open} className=\"open-in-editor-button\">\n <ExternalIcon width={16} height={16} />\n </button>\n )}\n {frame.error ? (\n <button\n className=\"source-mapping-error-button\"\n onClick={() => console.error(frame.reason)}\n title=\"Sourcemapping failed. Click to log cause of error.\"\n >\n <SourceMappingErrorIcon width={16} height={16} />\n </button>\n ) : null}\n </div>\n <span\n className=\"call-stack-frame-file-source\"\n data-has-source={hasSource}\n >\n {fileSource}\n </span>\n </div>\n )\n}\n\nexport const CALL_STACK_FRAME_STYLES = `\n [data-nextjs-call-stack-frame-no-source] {\n padding: 6px 8px;\n margin-bottom: 4px;\n\n border-radius: var(--rounded-lg);\n }\n\n [data-nextjs-call-stack-frame-no-source]:last-child {\n margin-bottom: 0;\n }\n\n [data-nextjs-call-stack-frame-ignored=\"true\"] {\n opacity: 0.6;\n }\n\n [data-nextjs-call-stack-frame] {\n user-select: text;\n display: block;\n box-sizing: border-box;\n\n user-select: text;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n\n padding: 6px 8px;\n\n border-radius: var(--rounded-lg);\n }\n\n .call-stack-frame-method-name {\n display: flex;\n align-items: center;\n gap: 4px;\n\n margin-bottom: 4px;\n font-family: var(--font-stack-monospace);\n\n color: var(--color-gray-1000);\n font-size: var(--size-14);\n font-weight: 500;\n line-height: var(--size-20);\n\n svg {\n width: var(--size-16px);\n height: var(--size-16px);\n }\n }\n\n .open-in-editor-button, .source-mapping-error-button {\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: var(--rounded-full);\n padding: 4px;\n color: var(--color-font);\n\n svg {\n width: var(--size-16);\n height: var(--size-16);\n }\n\n &:focus-visible {\n outline: var(--focus-ring);\n outline-offset: -2px;\n }\n\n &:hover {\n background: var(--color-gray-100);\n }\n }\n\n .call-stack-frame-file-source {\n color: var(--color-gray-900);\n font-size: var(--size-14);\n line-height: var(--size-20);\n }\n`\n"],"names":["HotlinkedText","ExternalIcon","SourceMappingErrorIcon","getFrameSource","useOpenInEditor","CallStackFrame","frame","f","originalStackFrame","sourceStackFrame","hasSource","Boolean","originalCodeFrame","open","file","lineNumber","column","undefined","formattedMethod","methodName","replace","fileSource","div","data-nextjs-call-stack-frame","data-nextjs-call-stack-frame-no-source","data-nextjs-call-stack-frame-ignored","ignored","className","text","button","onClick","width","height","error","console","reason","title","span","data-has-source","CALL_STACK_FRAME_STYLES"],"mappings":";AAGA,SAASA,aAAa,QAAQ,qBAAoB;AAClD,SAASC,YAAY,EAAEC,sBAAsB,QAAQ,uBAAsB;AAC3E,SAASC,cAAc,QAAQ,6BAA4B;AAC3D,SAASC,eAAe,QAAQ,iCAAgC;AAEhE,OAAO,MAAMC,iBAER,SAASA,eAAe,KAAS;IAAT,IAAA,EAAEC,KAAK,EAAE,GAAT;QAGLA;IAFtB,0CAA0C;IAE1C,MAAMC,IAAgBD,CAAAA,4BAAAA,MAAME,kBAAkB,YAAxBF,4BAA4BA,MAAMG,gBAAgB;IACxE,MAAMC,YAAYC,QAAQL,MAAMM,iBAAiB;IACjD,MAAMC,OAAOT,gBACXM,YACI;QACEI,MAAMP,EAAEO,IAAI;QACZC,YAAYR,EAAEQ,UAAU;QACxBC,QAAQT,EAAES,MAAM;IAClB,IACAC;IAGN,uDAAuD;IACvD,4DAA4D;IAC5D,MAAMC,kBAAkBX,EAAEY,UAAU,CAACC,OAAO,CAAC,iBAAiB;IAE9D,4FAA4F;IAC5F,+CAA+C;IAC/C,MAAMC,aAAalB,eAAeI;IAElC,IAAI,CAACc,YAAY;QACf,OAAO;IACT;IAEA,qBACE,MAACC;QACCC,8BAA4B;QAC5BC,0CAAwC,CAACd;QACzCe,wCAAsCnB,MAAMoB,OAAO;;0BAEnD,MAACJ;gBAAIK,WAAU;;kCACb,KAAC3B;wBAAc4B,MAAMV;;oBACpBR,2BACC,KAACmB;wBAAOC,SAASjB;wBAAMc,WAAU;kCAC/B,cAAA,KAAC1B;4BAAa8B,OAAO;4BAAIC,QAAQ;;;oBAGpC1B,MAAM2B,KAAK,iBACV,KAACJ;wBACCF,WAAU;wBACVG,SAAS,IAAMI,QAAQD,KAAK,CAAC3B,MAAM6B,MAAM;wBACzCC,OAAM;kCAEN,cAAA,KAAClC;4BAAuB6B,OAAO;4BAAIC,QAAQ;;yBAE3C;;;0BAEN,KAACK;gBACCV,WAAU;gBACVW,mBAAiB5B;0BAEhBW;;;;AAIT,EAAC;AAED,OAAO,MAAMkB,0BAA2B,8kDA8EvC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../../../../../../src/client/components/react-dev-overlay/ui/components/errors/call-stack/call-stack.tsx"],"sourcesContent":["import type { OriginalStackFrame } from '../../../../utils/stack-frame'\nimport { useMemo, useState, useRef } from 'react'\nimport { CallStackFrame } from '../../call-stack-frame/call-stack-frame'\n\ninterface CallStackProps {\n frames: OriginalStackFrame[]\n dialogResizerRef: React.RefObject<HTMLDivElement | null>\n}\n\nexport function CallStack({ frames, dialogResizerRef }: CallStackProps) {\n const initialDialogHeight = useRef<number>(NaN)\n const [isIgnoreListOpen, setIsIgnoreListOpen] = useState(false)\n\n const ignoredFramesTally = useMemo(() => {\n return frames.reduce((tally, frame) => tally + (frame.ignored ? 1 : 0), 0)\n }, [frames])\n\n function onToggleIgnoreList() {\n const dialog = dialogResizerRef?.current as HTMLElement\n\n if (!dialog) {\n return\n }\n\n const { height: currentHeight } = dialog?.getBoundingClientRect()\n\n if (!initialDialogHeight.current) {\n initialDialogHeight.current = currentHeight\n }\n\n if (isIgnoreListOpen) {\n function onTransitionEnd() {\n dialog.removeEventListener('transitionend', onTransitionEnd)\n setIsIgnoreListOpen(false)\n }\n dialog.style.height = `${initialDialogHeight.current}px`\n dialog.addEventListener('transitionend', onTransitionEnd)\n } else {\n setIsIgnoreListOpen(true)\n }\n }\n\n return (\n <div className=\"error-overlay-call-stack-container\">\n <div className=\"error-overlay-call-stack-header\">\n <p className=\"error-overlay-call-stack-title\">\n Call Stack{' '}\n <span className=\"error-overlay-call-stack-count\">\n {frames.length}\n </span>\n </p>\n {ignoredFramesTally > 0 && (\n <button\n data-expand-ignore-button={isIgnoreListOpen}\n className=\"error-overlay-call-stack-ignored-list-toggle-button\"\n onClick={onToggleIgnoreList}\n >\n {`${isIgnoreListOpen ? 'Hide' : 'Show'} ${ignoredFramesTally} ignore-listed frame(s)`}\n <ChevronUpDown />\n </button>\n )}\n </div>\n {frames.map((frame, frameIndex) => {\n return !frame.ignored || isIgnoreListOpen ? (\n <CallStackFrame key={frameIndex} frame={frame}
|
1
|
+
{"version":3,"sources":["../../../../../../../../src/client/components/react-dev-overlay/ui/components/errors/call-stack/call-stack.tsx"],"sourcesContent":["import type { OriginalStackFrame } from '../../../../utils/stack-frame'\nimport { useMemo, useState, useRef } from 'react'\nimport { CallStackFrame } from '../../call-stack-frame/call-stack-frame'\n\ninterface CallStackProps {\n frames: OriginalStackFrame[]\n dialogResizerRef: React.RefObject<HTMLDivElement | null>\n}\n\nexport function CallStack({ frames, dialogResizerRef }: CallStackProps) {\n const initialDialogHeight = useRef<number>(NaN)\n const [isIgnoreListOpen, setIsIgnoreListOpen] = useState(false)\n\n const ignoredFramesTally = useMemo(() => {\n return frames.reduce((tally, frame) => tally + (frame.ignored ? 1 : 0), 0)\n }, [frames])\n\n function onToggleIgnoreList() {\n const dialog = dialogResizerRef?.current as HTMLElement\n\n if (!dialog) {\n return\n }\n\n const { height: currentHeight } = dialog?.getBoundingClientRect()\n\n if (!initialDialogHeight.current) {\n initialDialogHeight.current = currentHeight\n }\n\n if (isIgnoreListOpen) {\n function onTransitionEnd() {\n dialog.removeEventListener('transitionend', onTransitionEnd)\n setIsIgnoreListOpen(false)\n }\n dialog.style.height = `${initialDialogHeight.current}px`\n dialog.addEventListener('transitionend', onTransitionEnd)\n } else {\n setIsIgnoreListOpen(true)\n }\n }\n\n return (\n <div className=\"error-overlay-call-stack-container\">\n <div className=\"error-overlay-call-stack-header\">\n <p className=\"error-overlay-call-stack-title\">\n Call Stack{' '}\n <span className=\"error-overlay-call-stack-count\">\n {frames.length}\n </span>\n </p>\n {ignoredFramesTally > 0 && (\n <button\n data-expand-ignore-button={isIgnoreListOpen}\n className=\"error-overlay-call-stack-ignored-list-toggle-button\"\n onClick={onToggleIgnoreList}\n >\n {`${isIgnoreListOpen ? 'Hide' : 'Show'} ${ignoredFramesTally} ignore-listed frame(s)`}\n <ChevronUpDown />\n </button>\n )}\n </div>\n {frames.map((frame, frameIndex) => {\n return !frame.ignored || isIgnoreListOpen ? (\n <CallStackFrame key={frameIndex} frame={frame} />\n ) : null\n })}\n </div>\n )\n}\n\nfunction ChevronUpDown() {\n return (\n <svg\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M8.70722 2.39641C8.3167 2.00588 7.68353 2.00588 7.29301 2.39641L4.46978 5.21963L3.93945 5.74996L5.00011 6.81062L5.53044 6.28029L8.00011 3.81062L10.4698 6.28029L11.0001 6.81062L12.0608 5.74996L11.5304 5.21963L8.70722 2.39641ZM5.53044 9.71963L5.00011 9.1893L3.93945 10.25L4.46978 10.7803L7.29301 13.6035C7.68353 13.994 8.3167 13.994 8.70722 13.6035L11.5304 10.7803L12.0608 10.25L11.0001 9.1893L10.4698 9.71963L8.00011 12.1893L5.53044 9.71963Z\"\n fill=\"currentColor\"\n />\n </svg>\n )\n}\n\nexport const CALL_STACK_STYLES = `\n .error-overlay-call-stack-container {\n position: relative;\n margin-top: 8px;\n }\n\n .error-overlay-call-stack-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n min-height: var(--size-28);\n padding: 8px 8px 12px 4px;\n width: 100%;\n }\n\n .error-overlay-call-stack-title {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 8px;\n\n margin: 0;\n\n color: var(--color-gray-1000);\n font-size: var(--size-16);\n font-weight: 500;\n }\n\n .error-overlay-call-stack-count {\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: var(--size-20);\n height: var(--size-20);\n gap: 4px;\n\n color: var(--color-gray-1000);\n text-align: center;\n font-size: var(--size-11);\n font-weight: 500;\n line-height: var(--size-16);\n\n border-radius: var(--rounded-full);\n background: var(--color-gray-300);\n }\n\n .error-overlay-call-stack-ignored-list-toggle-button {\n all: unset;\n display: flex;\n align-items: center;\n gap: 6px;\n color: var(--color-gray-900);\n font-size: var(--size-14);\n line-height: var(--size-20);\n border-radius: 6px;\n padding: 4px 6px;\n margin-right: -6px;\n transition: background 150ms ease;\n\n &:hover {\n background: var(--color-gray-100);\n }\n\n &:focus {\n outline: var(--focus-ring);\n }\n\n svg {\n width: var(--size-16);\n height: var(--size-16);\n }\n }\n`\n"],"names":["useMemo","useState","useRef","CallStackFrame","CallStack","frames","dialogResizerRef","initialDialogHeight","NaN","isIgnoreListOpen","setIsIgnoreListOpen","ignoredFramesTally","reduce","tally","frame","ignored","onToggleIgnoreList","dialog","current","height","currentHeight","getBoundingClientRect","onTransitionEnd","removeEventListener","style","addEventListener","div","className","p","span","length","button","data-expand-ignore-button","onClick","ChevronUpDown","map","frameIndex","svg","width","viewBox","fill","xmlns","path","fillRule","clipRule","d","CALL_STACK_STYLES"],"mappings":";AACA,SAASA,OAAO,EAAEC,QAAQ,EAAEC,MAAM,QAAQ,QAAO;AACjD,SAASC,cAAc,QAAQ,0CAAyC;AAOxE,OAAO,SAASC,UAAU,KAA4C;IAA5C,IAAA,EAAEC,MAAM,EAAEC,gBAAgB,EAAkB,GAA5C;IACxB,MAAMC,sBAAsBL,OAAeM;IAC3C,MAAM,CAACC,kBAAkBC,oBAAoB,GAAGT,SAAS;IAEzD,MAAMU,qBAAqBX,QAAQ;QACjC,OAAOK,OAAOO,MAAM,CAAC,CAACC,OAAOC,QAAUD,QAASC,CAAAA,MAAMC,OAAO,GAAG,IAAI,CAAA,GAAI;IAC1E,GAAG;QAACV;KAAO;IAEX,SAASW;QACP,MAAMC,SAASX,oCAAAA,iBAAkBY,OAAO;QAExC,IAAI,CAACD,QAAQ;YACX;QACF;QAEA,MAAM,EAAEE,QAAQC,aAAa,EAAE,GAAGH,0BAAAA,OAAQI,qBAAqB;QAE/D,IAAI,CAACd,oBAAoBW,OAAO,EAAE;YAChCX,oBAAoBW,OAAO,GAAGE;QAChC;QAEA,IAAIX,kBAAkB;YACpB,SAASa;gBACPL,OAAOM,mBAAmB,CAAC,iBAAiBD;gBAC5CZ,oBAAoB;YACtB;YACAO,OAAOO,KAAK,CAACL,MAAM,GAAG,AAAC,KAAEZ,oBAAoBW,OAAO,GAAC;YACrDD,OAAOQ,gBAAgB,CAAC,iBAAiBH;QAC3C,OAAO;YACLZ,oBAAoB;QACtB;IACF;IAEA,qBACE,MAACgB;QAAIC,WAAU;;0BACb,MAACD;gBAAIC,WAAU;;kCACb,MAACC;wBAAED,WAAU;;4BAAiC;4BACjC;0CACX,KAACE;gCAAKF,WAAU;0CACbtB,OAAOyB,MAAM;;;;oBAGjBnB,qBAAqB,mBACpB,MAACoB;wBACCC,6BAA2BvB;wBAC3BkB,WAAU;wBACVM,SAASjB;;4BAELP,CAAAA,mBAAmB,SAAS,MAAK,IAAE,MAAGE,qBAAmB;0CAC7D,KAACuB;;;;;YAIN7B,OAAO8B,GAAG,CAAC,CAACrB,OAAOsB;gBAClB,OAAO,CAACtB,MAAMC,OAAO,IAAIN,iCACvB,KAACN;oBAAgCW,OAAOA;mBAAnBsB,cACnB;YACN;;;AAGN;AAEA,SAASF;IACP,qBACE,KAACG;QACCC,OAAM;QACNnB,QAAO;QACPoB,SAAQ;QACRC,MAAK;QACLC,OAAM;kBAEN,cAAA,KAACC;YACCC,UAAS;YACTC,UAAS;YACTC,GAAE;YACFL,MAAK;;;AAIb;AAEA,OAAO,MAAMM,oBAAqB,khDAyEjC"}
|
package/dist/esm/client/index.js
CHANGED
@@ -26,7 +26,7 @@ import { SearchParamsContext, PathParamsContext } from '../shared/lib/hooks-clie
|
|
26
26
|
import { onRecoverableError } from './react-client-callbacks/on-recoverable-error';
|
27
27
|
import tracer from './tracing/tracer';
|
28
28
|
import { isNextRouterError } from './components/is-next-router-error';
|
29
|
-
export const version = "15.2.2-canary.
|
29
|
+
export const version = "15.2.2-canary.5";
|
30
30
|
export let router;
|
31
31
|
export const emitter = mitt();
|
32
32
|
const looseToArray = (input)=>[].slice.call(input);
|
@@ -83,7 +83,7 @@ export async function createHotReloaderTurbopack(opts, serverFields, distDir, re
|
|
83
83
|
}
|
84
84
|
const hasRewrites = opts.fsChecker.rewrites.afterFiles.length > 0 || opts.fsChecker.rewrites.beforeFiles.length > 0 || opts.fsChecker.rewrites.fallback.length > 0;
|
85
85
|
const hotReloaderSpan = trace('hot-reloader', undefined, {
|
86
|
-
version: "15.2.2-canary.
|
86
|
+
version: "15.2.2-canary.5"
|
87
87
|
});
|
88
88
|
// Ensure the hotReloaderSpan is flushed immediately as it's the parentSpan for all processing
|
89
89
|
// of the current `next dev` invocation.
|
@@ -180,7 +180,7 @@ export default class HotReloaderWebpack {
|
|
180
180
|
this.previewProps = previewProps;
|
181
181
|
this.rewrites = rewrites;
|
182
182
|
this.hotReloaderSpan = trace('hot-reloader', undefined, {
|
183
|
-
version: "15.2.2-canary.
|
183
|
+
version: "15.2.2-canary.5"
|
184
184
|
});
|
185
185
|
// Ensure the hotReloaderSpan is flushed immediately as it's the parentSpan for all processing
|
186
186
|
// of the current `next dev` invocation.
|
@@ -4,7 +4,7 @@ import { bold, purple } from '../../lib/picocolors';
|
|
4
4
|
import { PHASE_DEVELOPMENT_SERVER, PHASE_PRODUCTION_BUILD } from '../../shared/lib/constants';
|
5
5
|
import loadConfig, { getConfiguredExperimentalFeatures } from '../config';
|
6
6
|
export function logStartInfo({ networkUrl, appUrl, envInfo, experimentalFeatures, maxExperimentalFeatures = Infinity }) {
|
7
|
-
Log.bootstrap(`${bold(purple(`${Log.prefixes.ready} Next.js ${"15.2.2-canary.
|
7
|
+
Log.bootstrap(`${bold(purple(`${Log.prefixes.ready} Next.js ${"15.2.2-canary.5"}`))}${process.env.TURBOPACK ? ' (Turbopack)' : ''}`);
|
8
8
|
if (appUrl) {
|
9
9
|
Log.bootstrap(`- Local: ${appUrl}`);
|
10
10
|
}
|
@@ -43,7 +43,7 @@ export async function getRequestHandlers({ dir, port, isDev, onDevServerCleanup,
|
|
43
43
|
export async function startServer(serverOptions) {
|
44
44
|
const { dir, isDev, hostname, minimalMode, allowRetry, keepAliveTimeout, selfSignedCertificate } = serverOptions;
|
45
45
|
let { port } = serverOptions;
|
46
|
-
process.title = `next-server (v${"15.2.2-canary.
|
46
|
+
process.title = `next-server (v${"15.2.2-canary.5"})`;
|
47
47
|
let handlersReady = ()=>{};
|
48
48
|
let handlersError = ()=>{};
|
49
49
|
let handlersPromise = new Promise((resolve, reject)=>{
|
@@ -1,6 +1,6 @@
|
|
1
1
|
export function isStableBuild() {
|
2
2
|
var _process_env___NEXT_VERSION;
|
3
|
-
return !((_process_env___NEXT_VERSION = "15.2.2-canary.
|
3
|
+
return !((_process_env___NEXT_VERSION = "15.2.2-canary.5") == null ? void 0 : _process_env___NEXT_VERSION.includes('canary')) && !process.env.__NEXT_TEST_MODE && !process.env.NEXT_PRIVATE_LOCAL_DEV;
|
4
4
|
}
|
5
5
|
export class CanaryOnlyError extends Error {
|
6
6
|
constructor(arg){
|
@@ -139,7 +139,7 @@ async function createHotReloaderTurbopack(opts, serverFields, distDir, resetFetc
|
|
139
139
|
}
|
140
140
|
const hasRewrites = opts.fsChecker.rewrites.afterFiles.length > 0 || opts.fsChecker.rewrites.beforeFiles.length > 0 || opts.fsChecker.rewrites.fallback.length > 0;
|
141
141
|
const hotReloaderSpan = (0, _trace.trace)('hot-reloader', undefined, {
|
142
|
-
version: "15.2.2-canary.
|
142
|
+
version: "15.2.2-canary.5"
|
143
143
|
});
|
144
144
|
// Ensure the hotReloaderSpan is flushed immediately as it's the parentSpan for all processing
|
145
145
|
// of the current `next dev` invocation.
|
@@ -256,7 +256,7 @@ class HotReloaderWebpack {
|
|
256
256
|
this.previewProps = previewProps;
|
257
257
|
this.rewrites = rewrites;
|
258
258
|
this.hotReloaderSpan = (0, _trace.trace)('hot-reloader', undefined, {
|
259
|
-
version: "15.2.2-canary.
|
259
|
+
version: "15.2.2-canary.5"
|
260
260
|
});
|
261
261
|
// Ensure the hotReloaderSpan is flushed immediately as it's the parentSpan for all processing
|
262
262
|
// of the current `next dev` invocation.
|
@@ -67,7 +67,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
67
67
|
return newObj;
|
68
68
|
}
|
69
69
|
function logStartInfo({ networkUrl, appUrl, envInfo, experimentalFeatures, maxExperimentalFeatures = Infinity }) {
|
70
|
-
_log.bootstrap(`${(0, _picocolors.bold)((0, _picocolors.purple)(`${_log.prefixes.ready} Next.js ${"15.2.2-canary.
|
70
|
+
_log.bootstrap(`${(0, _picocolors.bold)((0, _picocolors.purple)(`${_log.prefixes.ready} Next.js ${"15.2.2-canary.5"}`))}${process.env.TURBOPACK ? ' (Turbopack)' : ''}`);
|
71
71
|
if (appUrl) {
|
72
72
|
_log.bootstrap(`- Local: ${appUrl}`);
|
73
73
|
}
|
@@ -111,7 +111,7 @@ async function getRequestHandlers({ dir, port, isDev, onDevServerCleanup, server
|
|
111
111
|
async function startServer(serverOptions) {
|
112
112
|
const { dir, isDev, hostname, minimalMode, allowRetry, keepAliveTimeout, selfSignedCertificate } = serverOptions;
|
113
113
|
let { port } = serverOptions;
|
114
|
-
process.title = `next-server (v${"15.2.2-canary.
|
114
|
+
process.title = `next-server (v${"15.2.2-canary.5"})`;
|
115
115
|
let handlersReady = ()=>{};
|
116
116
|
let handlersError = ()=>{};
|
117
117
|
let handlersPromise = new Promise((resolve, reject)=>{
|
@@ -22,7 +22,7 @@ _export(exports, {
|
|
22
22
|
});
|
23
23
|
function isStableBuild() {
|
24
24
|
var _process_env___NEXT_VERSION;
|
25
|
-
return !((_process_env___NEXT_VERSION = "15.2.2-canary.
|
25
|
+
return !((_process_env___NEXT_VERSION = "15.2.2-canary.5") == null ? void 0 : _process_env___NEXT_VERSION.includes('canary')) && !process.env.__NEXT_TEST_MODE && !process.env.NEXT_PRIVATE_LOCAL_DEV;
|
26
26
|
}
|
27
27
|
class CanaryOnlyError extends Error {
|
28
28
|
constructor(arg){
|
@@ -11,11 +11,11 @@ Object.defineProperty(exports, "eventCliSessionStopped", {
|
|
11
11
|
const EVENT_VERSION = 'NEXT_CLI_SESSION_STOPPED';
|
12
12
|
function eventCliSessionStopped(event) {
|
13
13
|
// This should be an invariant, if it fails our build tooling is broken.
|
14
|
-
if (typeof "15.2.2-canary.
|
14
|
+
if (typeof "15.2.2-canary.5" !== 'string') {
|
15
15
|
return [];
|
16
16
|
}
|
17
17
|
const payload = {
|
18
|
-
nextVersion: "15.2.2-canary.
|
18
|
+
nextVersion: "15.2.2-canary.5",
|
19
19
|
nodeVersion: process.version,
|
20
20
|
cliCommand: event.cliCommand,
|
21
21
|
durationMilliseconds: event.durationMilliseconds,
|
@@ -36,12 +36,12 @@ function hasBabelConfig(dir) {
|
|
36
36
|
function eventCliSession(dir, nextConfig, event) {
|
37
37
|
var _nextConfig_experimental_staleTimes, _nextConfig_experimental_staleTimes1, _nextConfig_experimental_reactCompiler, _nextConfig_experimental_reactCompiler1;
|
38
38
|
// This should be an invariant, if it fails our build tooling is broken.
|
39
|
-
if (typeof "15.2.2-canary.
|
39
|
+
if (typeof "15.2.2-canary.5" !== 'string') {
|
40
40
|
return [];
|
41
41
|
}
|
42
42
|
const { images, i18n } = nextConfig || {};
|
43
43
|
const payload = {
|
44
|
-
nextVersion: "15.2.2-canary.
|
44
|
+
nextVersion: "15.2.2-canary.5",
|
45
45
|
nodeVersion: process.version,
|
46
46
|
cliCommand: event.cliCommand,
|
47
47
|
isSrcDir: event.isSrcDir,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "next",
|
3
|
-
"version": "15.2.2-canary.
|
3
|
+
"version": "15.2.2-canary.5",
|
4
4
|
"description": "The React Framework",
|
5
5
|
"main": "./dist/server/next.js",
|
6
6
|
"license": "MIT",
|
@@ -100,7 +100,7 @@
|
|
100
100
|
]
|
101
101
|
},
|
102
102
|
"dependencies": {
|
103
|
-
"@next/env": "15.2.2-canary.
|
103
|
+
"@next/env": "15.2.2-canary.5",
|
104
104
|
"@swc/counter": "0.1.3",
|
105
105
|
"@swc/helpers": "0.5.15",
|
106
106
|
"busboy": "1.6.0",
|
@@ -132,14 +132,14 @@
|
|
132
132
|
},
|
133
133
|
"optionalDependencies": {
|
134
134
|
"sharp": "^0.33.5",
|
135
|
-
"@next/swc-darwin-arm64": "15.2.2-canary.
|
136
|
-
"@next/swc-darwin-x64": "15.2.2-canary.
|
137
|
-
"@next/swc-linux-arm64-gnu": "15.2.2-canary.
|
138
|
-
"@next/swc-linux-arm64-musl": "15.2.2-canary.
|
139
|
-
"@next/swc-linux-x64-gnu": "15.2.2-canary.
|
140
|
-
"@next/swc-linux-x64-musl": "15.2.2-canary.
|
141
|
-
"@next/swc-win32-arm64-msvc": "15.2.2-canary.
|
142
|
-
"@next/swc-win32-x64-msvc": "15.2.2-canary.
|
135
|
+
"@next/swc-darwin-arm64": "15.2.2-canary.5",
|
136
|
+
"@next/swc-darwin-x64": "15.2.2-canary.5",
|
137
|
+
"@next/swc-linux-arm64-gnu": "15.2.2-canary.5",
|
138
|
+
"@next/swc-linux-arm64-musl": "15.2.2-canary.5",
|
139
|
+
"@next/swc-linux-x64-gnu": "15.2.2-canary.5",
|
140
|
+
"@next/swc-linux-x64-musl": "15.2.2-canary.5",
|
141
|
+
"@next/swc-win32-arm64-msvc": "15.2.2-canary.5",
|
142
|
+
"@next/swc-win32-x64-msvc": "15.2.2-canary.5"
|
143
143
|
},
|
144
144
|
"devDependencies": {
|
145
145
|
"@ampproject/toolbox-optimizer": "2.8.3",
|
@@ -172,11 +172,11 @@
|
|
172
172
|
"@jest/types": "29.5.0",
|
173
173
|
"@mswjs/interceptors": "0.23.0",
|
174
174
|
"@napi-rs/triples": "1.2.0",
|
175
|
-
"@next/font": "15.2.2-canary.
|
176
|
-
"@next/polyfill-module": "15.2.2-canary.
|
177
|
-
"@next/polyfill-nomodule": "15.2.2-canary.
|
178
|
-
"@next/react-refresh-utils": "15.2.2-canary.
|
179
|
-
"@next/swc": "15.2.2-canary.
|
175
|
+
"@next/font": "15.2.2-canary.5",
|
176
|
+
"@next/polyfill-module": "15.2.2-canary.5",
|
177
|
+
"@next/polyfill-nomodule": "15.2.2-canary.5",
|
178
|
+
"@next/react-refresh-utils": "15.2.2-canary.5",
|
179
|
+
"@next/swc": "15.2.2-canary.5",
|
180
180
|
"@opentelemetry/api": "1.6.0",
|
181
181
|
"@playwright/test": "1.41.2",
|
182
182
|
"@storybook/addon-a11y": "8.6.0",
|