next 15.2.2-canary.5 → 15.2.2-canary.7
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/handle-entrypoints.d.ts +3 -23
- package/dist/build/handle-entrypoints.js +36 -149
- package/dist/build/handle-entrypoints.js.map +1 -1
- package/dist/build/index.js +2 -2
- package/dist/build/swc/generated-native.d.ts +4 -0
- package/dist/build/swc/index.js +77 -68
- package/dist/build/swc/index.js.map +1 -1
- package/dist/build/swc/types.d.ts +1 -0
- package/dist/build/turbopack-build/impl.js +33 -160
- package/dist/build/turbopack-build/impl.js.map +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/errors/dev-tools-indicator/next-logo.js +3 -5
- package/dist/client/components/react-dev-overlay/ui/components/errors/dev-tools-indicator/next-logo.js.map +1 -1
- package/dist/client/components/react-dev-overlay/ui/components/errors/error-overlay-layout/error-overlay-layout.d.ts +1 -1
- package/dist/client/components/react-dev-overlay/ui/components/errors/error-overlay-nav/error-overlay-nav.d.ts +1 -1
- package/dist/client/components/react-dev-overlay/ui/components/errors/error-overlay-nav/error-overlay-nav.js +1 -1
- package/dist/client/components/react-dev-overlay/ui/components/errors/error-overlay-nav/error-overlay-nav.js.map +1 -1
- package/dist/client/components/react-dev-overlay/ui/styles/base.js +1 -1
- package/dist/client/components/react-dev-overlay/ui/styles/base.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/handle-entrypoints.js +31 -140
- package/dist/esm/build/handle-entrypoints.js.map +1 -1
- package/dist/esm/build/index.js +2 -2
- package/dist/esm/build/swc/generated-native.d.ts +4 -0
- package/dist/esm/build/swc/index.js +77 -68
- package/dist/esm/build/swc/index.js.map +1 -1
- package/dist/esm/build/swc/types.js.map +1 -1
- package/dist/esm/build/turbopack-build/impl.js +34 -120
- package/dist/esm/build/turbopack-build/impl.js.map +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/errors/dev-tools-indicator/next-logo.js +3 -5
- package/dist/esm/client/components/react-dev-overlay/ui/components/errors/dev-tools-indicator/next-logo.js.map +1 -1
- package/dist/esm/client/components/react-dev-overlay/ui/components/errors/error-overlay-nav/error-overlay-nav.js +1 -1
- package/dist/esm/client/components/react-dev-overlay/ui/components/errors/error-overlay-nav/error-overlay-nav.js.map +1 -1
- package/dist/esm/client/components/react-dev-overlay/ui/styles/base.js +1 -1
- package/dist/esm/client/components/react-dev-overlay/ui/styles/base.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/esm/shared/lib/get-img-props.js +11 -1
- package/dist/esm/shared/lib/get-img-props.js.map +1 -1
- package/dist/esm/shared/lib/turbopack/manifest-loader.js +24 -14
- package/dist/esm/shared/lib/turbopack/manifest-loader.js.map +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/shared/lib/get-img-props.d.ts +2 -1
- package/dist/shared/lib/get-img-props.js +11 -1
- package/dist/shared/lib/get-img-props.js.map +1 -1
- package/dist/shared/lib/turbopack/manifest-loader.d.ts +4 -1
- package/dist/shared/lib/turbopack/manifest-loader.js +24 -14
- package/dist/shared/lib/turbopack/manifest-loader.js.map +1 -1
- package/dist/telemetry/anonymous-meta.js +1 -1
- package/dist/telemetry/events/build.d.ts +2 -1
- package/dist/telemetry/events/build.js +2 -1
- package/dist/telemetry/events/build.js.map +1 -1
- package/dist/telemetry/events/session-stopped.d.ts +2 -1
- package/dist/telemetry/events/session-stopped.js +4 -3
- package/dist/telemetry/events/session-stopped.js.map +1 -1
- package/dist/telemetry/events/version.d.ts +2 -1
- package/dist/telemetry/events/version.js +3 -2
- package/dist/telemetry/events/version.js.map +1 -1
- package/package.json +15 -15
@@ -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.7" !== 'string') {
|
15
15
|
return [];
|
16
16
|
}
|
17
17
|
const payload = {
|
18
|
-
nextVersion: "15.2.2-canary.
|
18
|
+
nextVersion: "15.2.2-canary.7",
|
19
19
|
nodeVersion: process.version,
|
20
20
|
cliCommand: event.cliCommand,
|
21
21
|
durationMilliseconds: event.durationMilliseconds,
|
@@ -23,7 +23,8 @@ function eventCliSessionStopped(event) {
|
|
23
23
|
turboFlag: !!event.turboFlag
|
24
24
|
} : {},
|
25
25
|
pagesDir: event.pagesDir,
|
26
|
-
appDir: event.appDir
|
26
|
+
appDir: event.appDir,
|
27
|
+
isRspack: process.env.NEXT_RSPACK !== undefined
|
27
28
|
};
|
28
29
|
return [
|
29
30
|
{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/telemetry/events/session-stopped.ts"],"sourcesContent":["const EVENT_VERSION = 'NEXT_CLI_SESSION_STOPPED'\n\nexport type EventCliSessionStopped = {\n cliCommand: string\n nextVersion: string\n nodeVersion: string\n turboFlag?: boolean | null\n durationMilliseconds?: number | null\n pagesDir?: boolean\n appDir?: boolean\n}\n\nexport function eventCliSessionStopped(\n event: Omit
|
1
|
+
{"version":3,"sources":["../../../src/telemetry/events/session-stopped.ts"],"sourcesContent":["const EVENT_VERSION = 'NEXT_CLI_SESSION_STOPPED'\n\nexport type EventCliSessionStopped = {\n cliCommand: string\n nextVersion: string\n nodeVersion: string\n turboFlag?: boolean | null\n durationMilliseconds?: number | null\n pagesDir?: boolean\n appDir?: boolean\n isRspack: boolean\n}\n\nexport function eventCliSessionStopped(\n event: Omit<\n EventCliSessionStopped,\n 'nextVersion' | 'nodeVersion' | 'isRspack'\n >\n): { eventName: string; payload: EventCliSessionStopped }[] {\n // This should be an invariant, if it fails our build tooling is broken.\n if (typeof process.env.__NEXT_VERSION !== 'string') {\n return []\n }\n\n const payload: EventCliSessionStopped = {\n nextVersion: process.env.__NEXT_VERSION,\n nodeVersion: process.version,\n cliCommand: event.cliCommand,\n durationMilliseconds: event.durationMilliseconds,\n ...(typeof event.turboFlag !== 'undefined'\n ? {\n turboFlag: !!event.turboFlag,\n }\n : {}),\n pagesDir: event.pagesDir,\n appDir: event.appDir,\n isRspack: process.env.NEXT_RSPACK !== undefined,\n }\n return [{ eventName: EVENT_VERSION, payload }]\n}\n"],"names":["eventCliSessionStopped","EVENT_VERSION","event","process","env","__NEXT_VERSION","payload","nextVersion","nodeVersion","version","cliCommand","durationMilliseconds","turboFlag","pagesDir","appDir","isRspack","NEXT_RSPACK","undefined","eventName"],"mappings":";;;;+BAagBA;;;eAAAA;;;AAbhB,MAAMC,gBAAgB;AAaf,SAASD,uBACdE,KAGC;IAED,wEAAwE;IACxE,IAAI,OAAOC,QAAQC,GAAG,CAACC,cAAc,KAAK,UAAU;QAClD,OAAO,EAAE;IACX;IAEA,MAAMC,UAAkC;QACtCC,aAAaJ,QAAQC,GAAG,CAACC,cAAc;QACvCG,aAAaL,QAAQM,OAAO;QAC5BC,YAAYR,MAAMQ,UAAU;QAC5BC,sBAAsBT,MAAMS,oBAAoB;QAChD,GAAI,OAAOT,MAAMU,SAAS,KAAK,cAC3B;YACEA,WAAW,CAAC,CAACV,MAAMU,SAAS;QAC9B,IACA,CAAC,CAAC;QACNC,UAAUX,MAAMW,QAAQ;QACxBC,QAAQZ,MAAMY,MAAM;QACpBC,UAAUZ,QAAQC,GAAG,CAACY,WAAW,KAAKC;IACxC;IACA,OAAO;QAAC;YAAEC,WAAWjB;YAAeK;QAAQ;KAAE;AAChD"}
|
@@ -29,6 +29,7 @@ type EventCliSessionStarted = {
|
|
29
29
|
reactStrictMode: boolean;
|
30
30
|
webpackVersion: number | null;
|
31
31
|
turboFlag: boolean;
|
32
|
+
isRspack: boolean;
|
32
33
|
appDir: boolean | null;
|
33
34
|
pagesDir: boolean | null;
|
34
35
|
staticStaleTime: number | null;
|
@@ -37,7 +38,7 @@ type EventCliSessionStarted = {
|
|
37
38
|
reactCompilerCompilationMode: string | null;
|
38
39
|
reactCompilerPanicThreshold: string | null;
|
39
40
|
};
|
40
|
-
export declare function eventCliSession(dir: string, nextConfig: NextConfigComplete, event: Omit<EventCliSessionStarted, 'nextVersion' | 'nodeVersion' | 'hasNextConfig' | 'buildTarget' | 'hasWebpackConfig' | 'hasBabelConfig' | 'basePathEnabled' | 'i18nEnabled' | 'imageEnabled' | 'imageFutureEnabled' | 'locales' | 'localeDomainsCount' | 'localeDetectionEnabled' | 'imageDomainsCount' | 'imageRemotePatternsCount' | 'imageLocalPatternsCount' | 'imageQualities' | 'imageSizes' | 'imageLoader' | 'imageFormats' | 'nextConfigOutput' | 'trailingSlashEnabled' | 'reactStrictMode' | 'staticStaleTime' | 'dynamicStaleTime' | 'reactCompiler' | 'reactCompilerCompilationMode' | 'reactCompilerPanicThreshold'>): {
|
41
|
+
export declare function eventCliSession(dir: string, nextConfig: NextConfigComplete, event: Omit<EventCliSessionStarted, 'nextVersion' | 'nodeVersion' | 'hasNextConfig' | 'buildTarget' | 'hasWebpackConfig' | 'hasBabelConfig' | 'basePathEnabled' | 'i18nEnabled' | 'imageEnabled' | 'imageFutureEnabled' | 'locales' | 'localeDomainsCount' | 'localeDetectionEnabled' | 'imageDomainsCount' | 'imageRemotePatternsCount' | 'imageLocalPatternsCount' | 'imageQualities' | 'imageSizes' | 'imageLoader' | 'imageFormats' | 'nextConfigOutput' | 'trailingSlashEnabled' | 'reactStrictMode' | 'staticStaleTime' | 'dynamicStaleTime' | 'reactCompiler' | 'reactCompilerCompilationMode' | 'reactCompilerPanicThreshold' | 'isRspack'>): {
|
41
42
|
eventName: string;
|
42
43
|
payload: EventCliSessionStarted;
|
43
44
|
}[];
|
@@ -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.7" !== '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.7",
|
45
45
|
nodeVersion: process.version,
|
46
46
|
cliCommand: event.cliCommand,
|
47
47
|
isSrcDir: event.isSrcDir,
|
@@ -70,6 +70,7 @@ function eventCliSession(dir, nextConfig, event) {
|
|
70
70
|
reactStrictMode: !!(nextConfig == null ? void 0 : nextConfig.reactStrictMode),
|
71
71
|
webpackVersion: event.webpackVersion || null,
|
72
72
|
turboFlag: event.turboFlag || false,
|
73
|
+
isRspack: process.env.NEXT_RSPACK !== undefined,
|
73
74
|
appDir: event.appDir,
|
74
75
|
pagesDir: event.pagesDir,
|
75
76
|
staticStaleTime: ((_nextConfig_experimental_staleTimes = nextConfig.experimental.staleTimes) == null ? void 0 : _nextConfig_experimental_staleTimes.static) ?? null,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/telemetry/events/version.ts"],"sourcesContent":["import type { NextConfigComplete } from '../../server/config-shared'\nimport path from 'path'\n\nconst EVENT_VERSION = 'NEXT_CLI_SESSION_STARTED'\n\ntype EventCliSessionStarted = {\n nextVersion: string\n nodeVersion: string\n cliCommand: string\n isSrcDir: boolean | null\n hasNowJson: boolean\n isCustomServer: boolean | null\n hasNextConfig: boolean\n buildTarget: string\n hasWebpackConfig: boolean\n hasBabelConfig: boolean\n basePathEnabled: boolean\n i18nEnabled: boolean\n imageEnabled: boolean\n imageFutureEnabled: boolean\n locales: string | null\n localeDomainsCount: number | null\n localeDetectionEnabled: boolean | null\n imageDomainsCount: number | null\n imageRemotePatternsCount: number | null\n imageLocalPatternsCount: number | null\n imageQualities: string | null\n imageSizes: string | null\n imageLoader: string | null\n imageFormats: string | null\n nextConfigOutput: string | null\n trailingSlashEnabled: boolean\n reactStrictMode: boolean\n webpackVersion: number | null\n turboFlag: boolean\n appDir: boolean | null\n pagesDir: boolean | null\n staticStaleTime: number | null\n dynamicStaleTime: number | null\n reactCompiler: boolean\n reactCompilerCompilationMode: string | null\n reactCompilerPanicThreshold: string | null\n}\n\nfunction hasBabelConfig(dir: string): boolean {\n try {\n const noopFile = path.join(dir, 'noop.js')\n const res = require('next/dist/compiled/babel/core').loadPartialConfig({\n cwd: dir,\n filename: noopFile,\n sourceFileName: noopFile,\n }) as any\n const isForTooling =\n res.options?.presets?.every(\n (e: any) => e?.file?.request === 'next/babel'\n ) && res.options?.plugins?.length === 0\n return res.hasFilesystemConfig() && !isForTooling\n } catch {\n return false\n }\n}\n\nexport function eventCliSession(\n dir: string,\n nextConfig: NextConfigComplete,\n event: Omit<\n EventCliSessionStarted,\n | 'nextVersion'\n | 'nodeVersion'\n | 'hasNextConfig'\n | 'buildTarget'\n | 'hasWebpackConfig'\n | 'hasBabelConfig'\n | 'basePathEnabled'\n | 'i18nEnabled'\n | 'imageEnabled'\n | 'imageFutureEnabled'\n | 'locales'\n | 'localeDomainsCount'\n | 'localeDetectionEnabled'\n | 'imageDomainsCount'\n | 'imageRemotePatternsCount'\n | 'imageLocalPatternsCount'\n | 'imageQualities'\n | 'imageSizes'\n | 'imageLoader'\n | 'imageFormats'\n | 'nextConfigOutput'\n | 'trailingSlashEnabled'\n | 'reactStrictMode'\n | 'staticStaleTime'\n | 'dynamicStaleTime'\n | 'reactCompiler'\n | 'reactCompilerCompilationMode'\n | 'reactCompilerPanicThreshold'\n >\n): { eventName: string; payload: EventCliSessionStarted }[] {\n // This should be an invariant, if it fails our build tooling is broken.\n if (typeof process.env.__NEXT_VERSION !== 'string') {\n return []\n }\n\n const { images, i18n } = nextConfig || {}\n\n const payload: EventCliSessionStarted = {\n nextVersion: process.env.__NEXT_VERSION,\n nodeVersion: process.version,\n cliCommand: event.cliCommand,\n isSrcDir: event.isSrcDir,\n hasNowJson: event.hasNowJson,\n isCustomServer: event.isCustomServer,\n hasNextConfig: nextConfig.configOrigin !== 'default',\n buildTarget: 'default',\n hasWebpackConfig: typeof nextConfig?.webpack === 'function',\n hasBabelConfig: hasBabelConfig(dir),\n imageEnabled: !!images,\n imageFutureEnabled: !!images,\n basePathEnabled: !!nextConfig?.basePath,\n i18nEnabled: !!i18n,\n locales: i18n?.locales ? i18n.locales.join(',') : null,\n localeDomainsCount: i18n?.domains ? i18n.domains.length : null,\n localeDetectionEnabled: !i18n ? null : i18n.localeDetection !== false,\n imageDomainsCount: images?.domains ? images.domains.length : null,\n imageRemotePatternsCount: images?.remotePatterns\n ? images.remotePatterns.length\n : null,\n imageLocalPatternsCount: images?.localPatterns\n ? images.localPatterns.length\n : null,\n imageSizes: images?.imageSizes ? images.imageSizes.join(',') : null,\n imageQualities: images?.qualities ? images.qualities.join(',') : null,\n imageLoader: images?.loader,\n imageFormats: images?.formats ? images.formats.join(',') : null,\n nextConfigOutput: nextConfig?.output || null,\n trailingSlashEnabled: !!nextConfig?.trailingSlash,\n reactStrictMode: !!nextConfig?.reactStrictMode,\n webpackVersion: event.webpackVersion || null,\n turboFlag: event.turboFlag || false,\n appDir: event.appDir,\n pagesDir: event.pagesDir,\n staticStaleTime: nextConfig.experimental.staleTimes?.static ?? null,\n dynamicStaleTime: nextConfig.experimental.staleTimes?.dynamic ?? null,\n reactCompiler: Boolean(nextConfig.experimental.reactCompiler),\n reactCompilerCompilationMode:\n typeof nextConfig.experimental.reactCompiler !== 'boolean'\n ? nextConfig.experimental.reactCompiler?.compilationMode ?? null\n : null,\n reactCompilerPanicThreshold:\n typeof nextConfig.experimental.reactCompiler !== 'boolean'\n ? nextConfig.experimental.reactCompiler?.panicThreshold ?? null\n : null,\n }\n return [{ eventName: EVENT_VERSION, payload }]\n}\n"],"names":["eventCliSession","EVENT_VERSION","hasBabelConfig","dir","res","noopFile","path","join","require","loadPartialConfig","cwd","filename","sourceFileName","isForTooling","options","presets","every","e","file","request","plugins","length","hasFilesystemConfig","nextConfig","event","process","env","__NEXT_VERSION","images","i18n","payload","nextVersion","nodeVersion","version","cliCommand","isSrcDir","hasNowJson","isCustomServer","hasNextConfig","configOrigin","buildTarget","hasWebpackConfig","webpack","imageEnabled","imageFutureEnabled","basePathEnabled","basePath","i18nEnabled","locales","localeDomainsCount","domains","localeDetectionEnabled","localeDetection","imageDomainsCount","imageRemotePatternsCount","remotePatterns","imageLocalPatternsCount","localPatterns","imageSizes","imageQualities","qualities","imageLoader","loader","imageFormats","formats","nextConfigOutput","output","trailingSlashEnabled","trailingSlash","reactStrictMode","webpackVersion","turboFlag","appDir","pagesDir","staticStaleTime","experimental","staleTimes","static","dynamicStaleTime","dynamic","reactCompiler","Boolean","reactCompilerCompilationMode","compilationMode","reactCompilerPanicThreshold","panicThreshold","eventName"],"mappings":";;;;+
|
1
|
+
{"version":3,"sources":["../../../src/telemetry/events/version.ts"],"sourcesContent":["import type { NextConfigComplete } from '../../server/config-shared'\nimport path from 'path'\n\nconst EVENT_VERSION = 'NEXT_CLI_SESSION_STARTED'\n\ntype EventCliSessionStarted = {\n nextVersion: string\n nodeVersion: string\n cliCommand: string\n isSrcDir: boolean | null\n hasNowJson: boolean\n isCustomServer: boolean | null\n hasNextConfig: boolean\n buildTarget: string\n hasWebpackConfig: boolean\n hasBabelConfig: boolean\n basePathEnabled: boolean\n i18nEnabled: boolean\n imageEnabled: boolean\n imageFutureEnabled: boolean\n locales: string | null\n localeDomainsCount: number | null\n localeDetectionEnabled: boolean | null\n imageDomainsCount: number | null\n imageRemotePatternsCount: number | null\n imageLocalPatternsCount: number | null\n imageQualities: string | null\n imageSizes: string | null\n imageLoader: string | null\n imageFormats: string | null\n nextConfigOutput: string | null\n trailingSlashEnabled: boolean\n reactStrictMode: boolean\n webpackVersion: number | null\n turboFlag: boolean\n isRspack: boolean\n appDir: boolean | null\n pagesDir: boolean | null\n staticStaleTime: number | null\n dynamicStaleTime: number | null\n reactCompiler: boolean\n reactCompilerCompilationMode: string | null\n reactCompilerPanicThreshold: string | null\n}\n\nfunction hasBabelConfig(dir: string): boolean {\n try {\n const noopFile = path.join(dir, 'noop.js')\n const res = require('next/dist/compiled/babel/core').loadPartialConfig({\n cwd: dir,\n filename: noopFile,\n sourceFileName: noopFile,\n }) as any\n const isForTooling =\n res.options?.presets?.every(\n (e: any) => e?.file?.request === 'next/babel'\n ) && res.options?.plugins?.length === 0\n return res.hasFilesystemConfig() && !isForTooling\n } catch {\n return false\n }\n}\n\nexport function eventCliSession(\n dir: string,\n nextConfig: NextConfigComplete,\n event: Omit<\n EventCliSessionStarted,\n | 'nextVersion'\n | 'nodeVersion'\n | 'hasNextConfig'\n | 'buildTarget'\n | 'hasWebpackConfig'\n | 'hasBabelConfig'\n | 'basePathEnabled'\n | 'i18nEnabled'\n | 'imageEnabled'\n | 'imageFutureEnabled'\n | 'locales'\n | 'localeDomainsCount'\n | 'localeDetectionEnabled'\n | 'imageDomainsCount'\n | 'imageRemotePatternsCount'\n | 'imageLocalPatternsCount'\n | 'imageQualities'\n | 'imageSizes'\n | 'imageLoader'\n | 'imageFormats'\n | 'nextConfigOutput'\n | 'trailingSlashEnabled'\n | 'reactStrictMode'\n | 'staticStaleTime'\n | 'dynamicStaleTime'\n | 'reactCompiler'\n | 'reactCompilerCompilationMode'\n | 'reactCompilerPanicThreshold'\n | 'isRspack'\n >\n): { eventName: string; payload: EventCliSessionStarted }[] {\n // This should be an invariant, if it fails our build tooling is broken.\n if (typeof process.env.__NEXT_VERSION !== 'string') {\n return []\n }\n\n const { images, i18n } = nextConfig || {}\n\n const payload: EventCliSessionStarted = {\n nextVersion: process.env.__NEXT_VERSION,\n nodeVersion: process.version,\n cliCommand: event.cliCommand,\n isSrcDir: event.isSrcDir,\n hasNowJson: event.hasNowJson,\n isCustomServer: event.isCustomServer,\n hasNextConfig: nextConfig.configOrigin !== 'default',\n buildTarget: 'default',\n hasWebpackConfig: typeof nextConfig?.webpack === 'function',\n hasBabelConfig: hasBabelConfig(dir),\n imageEnabled: !!images,\n imageFutureEnabled: !!images,\n basePathEnabled: !!nextConfig?.basePath,\n i18nEnabled: !!i18n,\n locales: i18n?.locales ? i18n.locales.join(',') : null,\n localeDomainsCount: i18n?.domains ? i18n.domains.length : null,\n localeDetectionEnabled: !i18n ? null : i18n.localeDetection !== false,\n imageDomainsCount: images?.domains ? images.domains.length : null,\n imageRemotePatternsCount: images?.remotePatterns\n ? images.remotePatterns.length\n : null,\n imageLocalPatternsCount: images?.localPatterns\n ? images.localPatterns.length\n : null,\n imageSizes: images?.imageSizes ? images.imageSizes.join(',') : null,\n imageQualities: images?.qualities ? images.qualities.join(',') : null,\n imageLoader: images?.loader,\n imageFormats: images?.formats ? images.formats.join(',') : null,\n nextConfigOutput: nextConfig?.output || null,\n trailingSlashEnabled: !!nextConfig?.trailingSlash,\n reactStrictMode: !!nextConfig?.reactStrictMode,\n webpackVersion: event.webpackVersion || null,\n turboFlag: event.turboFlag || false,\n isRspack: process.env.NEXT_RSPACK !== undefined,\n appDir: event.appDir,\n pagesDir: event.pagesDir,\n staticStaleTime: nextConfig.experimental.staleTimes?.static ?? null,\n dynamicStaleTime: nextConfig.experimental.staleTimes?.dynamic ?? null,\n reactCompiler: Boolean(nextConfig.experimental.reactCompiler),\n reactCompilerCompilationMode:\n typeof nextConfig.experimental.reactCompiler !== 'boolean'\n ? nextConfig.experimental.reactCompiler?.compilationMode ?? null\n : null,\n reactCompilerPanicThreshold:\n typeof nextConfig.experimental.reactCompiler !== 'boolean'\n ? nextConfig.experimental.reactCompiler?.panicThreshold ?? null\n : null,\n }\n return [{ eventName: EVENT_VERSION, payload }]\n}\n"],"names":["eventCliSession","EVENT_VERSION","hasBabelConfig","dir","res","noopFile","path","join","require","loadPartialConfig","cwd","filename","sourceFileName","isForTooling","options","presets","every","e","file","request","plugins","length","hasFilesystemConfig","nextConfig","event","process","env","__NEXT_VERSION","images","i18n","payload","nextVersion","nodeVersion","version","cliCommand","isSrcDir","hasNowJson","isCustomServer","hasNextConfig","configOrigin","buildTarget","hasWebpackConfig","webpack","imageEnabled","imageFutureEnabled","basePathEnabled","basePath","i18nEnabled","locales","localeDomainsCount","domains","localeDetectionEnabled","localeDetection","imageDomainsCount","imageRemotePatternsCount","remotePatterns","imageLocalPatternsCount","localPatterns","imageSizes","imageQualities","qualities","imageLoader","loader","imageFormats","formats","nextConfigOutput","output","trailingSlashEnabled","trailingSlash","reactStrictMode","webpackVersion","turboFlag","isRspack","NEXT_RSPACK","undefined","appDir","pagesDir","staticStaleTime","experimental","staleTimes","static","dynamicStaleTime","dynamic","reactCompiler","Boolean","reactCompilerCompilationMode","compilationMode","reactCompilerPanicThreshold","panicThreshold","eventName"],"mappings":";;;;+BA+DgBA;;;eAAAA;;;6DA9DC;;;;;;AAEjB,MAAMC,gBAAgB;AA0CtB,SAASC,eAAeC,GAAW;IACjC,IAAI;YAQAC,sBAAAA,cAEKA,sBAAAA;QATP,MAAMC,WAAWC,aAAI,C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,WAAWuD,YAAY,CAACC,UAAU,qBAAlCxD,oCAAoCyD,MAAM,KAAI;QAC/DC,kBAAkB1D,EAAAA,uCAAAA,WAAWuD,YAAY,CAACC,UAAU,qBAAlCxD,qCAAoC2D,OAAO,KAAI;QACjEC,eAAeC,QAAQ7D,WAAWuD,YAAY,CAACK,aAAa;QAC5DE,8BACE,OAAO9D,WAAWuD,YAAY,CAACK,aAAa,KAAK,YAC7C5D,EAAAA,yCAAAA,WAAWuD,YAAY,CAACK,aAAa,qBAArC5D,uCAAuC+D,eAAe,KAAI,OAC1D;QACNC,6BACE,OAAOhE,WAAWuD,YAAY,CAACK,aAAa,KAAK,YAC7C5D,EAAAA,0CAAAA,WAAWuD,YAAY,CAACK,aAAa,qBAArC5D,wCAAuCiE,cAAc,KAAI,OACzD;IACR;IACA,OAAO;QAAC;YAAEC,WAAWxF;YAAe6B;QAAQ;KAAE;AAChD"}
|
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.7",
|
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.7",
|
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.7",
|
136
|
+
"@next/swc-darwin-x64": "15.2.2-canary.7",
|
137
|
+
"@next/swc-linux-arm64-gnu": "15.2.2-canary.7",
|
138
|
+
"@next/swc-linux-arm64-musl": "15.2.2-canary.7",
|
139
|
+
"@next/swc-linux-x64-gnu": "15.2.2-canary.7",
|
140
|
+
"@next/swc-linux-x64-musl": "15.2.2-canary.7",
|
141
|
+
"@next/swc-win32-arm64-msvc": "15.2.2-canary.7",
|
142
|
+
"@next/swc-win32-x64-msvc": "15.2.2-canary.7"
|
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.7",
|
176
|
+
"@next/polyfill-module": "15.2.2-canary.7",
|
177
|
+
"@next/polyfill-nomodule": "15.2.2-canary.7",
|
178
|
+
"@next/react-refresh-utils": "15.2.2-canary.7",
|
179
|
+
"@next/swc": "15.2.2-canary.7",
|
180
180
|
"@opentelemetry/api": "1.6.0",
|
181
181
|
"@playwright/test": "1.41.2",
|
182
182
|
"@storybook/addon-a11y": "8.6.0",
|