next 15.6.0-canary.24 → 15.6.0-canary.25
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.
- package/dist/bin/next +1 -1
- package/dist/build/index.js +3 -3
- package/dist/build/swc/index.js +1 -1
- package/dist/build/webpack/config/index.d.ts +1 -1
- package/dist/build/webpack/config/index.js.map +1 -1
- package/dist/build/webpack/config/utils.js.map +1 -1
- package/dist/build/webpack-config.js +2 -2
- package/dist/build/webpack-config.js.map +1 -1
- package/dist/client/app-bootstrap.js +1 -1
- package/dist/client/index.js +1 -1
- package/dist/compiled/next-server/pages-api-turbo.runtime.dev.js +1 -1
- package/dist/compiled/next-server/pages-api-turbo.runtime.dev.js.map +1 -1
- package/dist/compiled/next-server/pages-turbo.runtime.dev.js +1 -1
- package/dist/compiled/next-server/pages-turbo.runtime.dev.js.map +1 -1
- package/dist/esm/build/index.js +3 -3
- package/dist/esm/build/swc/index.js +1 -1
- package/dist/esm/build/webpack/config/index.js.map +1 -1
- package/dist/esm/build/webpack/config/utils.js.map +1 -1
- package/dist/esm/build/webpack-config.js +2 -2
- package/dist/esm/build/webpack-config.js.map +1 -1
- package/dist/esm/client/app-bootstrap.js +1 -1
- package/dist/esm/client/index.js +1 -1
- package/dist/esm/export/index.js.map +1 -1
- package/dist/esm/server/config-shared.js.map +1 -1
- package/dist/esm/server/config.js +1 -0
- package/dist/esm/server/config.js.map +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/export/index.js.map +1 -1
- package/dist/server/config-shared.d.ts +3 -4
- package/dist/server/config-shared.js.map +1 -1
- package/dist/server/config.js +1 -0
- package/dist/server/config.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/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/bin/next
CHANGED
@@ -79,7 +79,7 @@ const program = new NextRootCommand();
|
|
79
79
|
program.name('next').description('The Next.js CLI allows you to develop, build, start your application, and more.').configureHelp({
|
80
80
|
formatHelp: (cmd, helper)=>(0, _formatclihelpoutput.formatCliHelpOutput)(cmd, helper),
|
81
81
|
subcommandTerm: (cmd)=>`${cmd.name()} ${cmd.usage()}`
|
82
|
-
}).helpCommand(false).helpOption('-h, --help', 'Displays this message.').version(`Next.js v${"15.6.0-canary.
|
82
|
+
}).helpCommand(false).helpOption('-h, --help', 'Displays this message.').version(`Next.js v${"15.6.0-canary.25"}`, '-v, --version', 'Outputs the Next.js version.');
|
83
83
|
program.command('build').description('Creates an optimized production build of your application. The output displays information about each route.').argument('[directory]', `A directory on which to build the application. ${(0, _picocolors.italic)('If no directory is provided, the current directory will be used.')}`).option('-d, --debug', 'Enables a more verbose build output.').option('--debug-prerender', 'Enables debug mode for prerendering. Not for production use!').option('--no-lint', 'Disables linting.').option('--no-mangling', 'Disables mangling.').option('--profile', 'Enables production profiling for React.').option('--experimental-app-only', 'Builds only App Router routes.').option('--turbo', 'Starts development mode using Turbopack.').option('--turbopack', 'Starts development mode using Turbopack.').addOption(new _commander.Option('--experimental-build-mode [mode]', 'Uses an experimental build mode.').choices([
|
84
84
|
'compile',
|
85
85
|
'generate',
|
package/dist/build/index.js
CHANGED
@@ -371,7 +371,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
|
|
371
371
|
const nextBuildSpan = (0, _trace.trace)('next-build', undefined, {
|
372
372
|
buildMode: experimentalBuildMode,
|
373
373
|
isTurboBuild: String(isTurbopack),
|
374
|
-
version: "15.6.0-canary.
|
374
|
+
version: "15.6.0-canary.25"
|
375
375
|
});
|
376
376
|
_buildcontext.NextBuildContext.nextBuildSpan = nextBuildSpan;
|
377
377
|
_buildcontext.NextBuildContext.dir = dir;
|
@@ -850,7 +850,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
|
|
850
850
|
// Files outside of the distDir can be "type": "module"
|
851
851
|
await writeFileUtf8(_path.default.join(distDir, 'package.json'), '{"type": "commonjs"}');
|
852
852
|
// These are written to distDir, so they need to come after creating and cleaning distDr.
|
853
|
-
await (0, _builddiagnostics.recordFrameworkVersion)("15.6.0-canary.
|
853
|
+
await (0, _builddiagnostics.recordFrameworkVersion)("15.6.0-canary.25");
|
854
854
|
await (0, _builddiagnostics.updateBuildDiagnostics)({
|
855
855
|
buildStage: 'start'
|
856
856
|
});
|
@@ -2499,7 +2499,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
|
|
2499
2499
|
distDir,
|
2500
2500
|
config,
|
2501
2501
|
staticPages,
|
2502
|
-
nextVersion: "15.6.0-canary.
|
2502
|
+
nextVersion: "15.6.0-canary.25",
|
2503
2503
|
tracingRoot: outputFileTracingRoot,
|
2504
2504
|
hasNodeMiddleware,
|
2505
2505
|
hasInstrumentationHook,
|
package/dist/build/swc/index.js
CHANGED
@@ -130,7 +130,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
130
130
|
}
|
131
131
|
return newObj;
|
132
132
|
}
|
133
|
-
const nextVersion = "15.6.0-canary.
|
133
|
+
const nextVersion = "15.6.0-canary.25";
|
134
134
|
const ArchName = (0, _os.arch)();
|
135
135
|
const PlatformName = (0, _os.platform)();
|
136
136
|
function infoLog(...args) {
|
@@ -15,6 +15,6 @@ export declare function buildConfiguration(config: webpack.Configuration, { hasA
|
|
15
15
|
transpilePackages: NextConfigComplete['transpilePackages'];
|
16
16
|
future: NextConfigComplete['future'];
|
17
17
|
experimental: NextConfigComplete['experimental'];
|
18
|
-
disableStaticImages: NextConfigComplete['disableStaticImages'];
|
18
|
+
disableStaticImages: NextConfigComplete['images']['disableStaticImages'];
|
19
19
|
serverSourceMaps: NextConfigComplete['experimental']['serverSourceMaps'];
|
20
20
|
}): Promise<webpack.Configuration>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/build/webpack/config/index.ts"],"sourcesContent":["import type { webpack } from 'next/dist/compiled/webpack/webpack'\nimport type { NextConfigComplete } from '../../../server/config-shared'\nimport type { ConfigurationContext } from './utils'\n\nimport { base } from './blocks/base'\nimport { css } from './blocks/css'\nimport { images } from './blocks/images'\nimport { pipe } from './utils'\n\nexport async function buildConfiguration(\n config: webpack.Configuration,\n {\n hasAppDir,\n supportedBrowsers,\n rootDirectory,\n customAppFile,\n isDevelopment,\n isServer,\n isEdgeRuntime,\n targetWeb,\n assetPrefix,\n sassOptions,\n productionBrowserSourceMaps,\n future,\n transpilePackages,\n experimental,\n disableStaticImages,\n serverSourceMaps,\n }: {\n hasAppDir: boolean\n supportedBrowsers: string[] | undefined\n rootDirectory: string\n customAppFile: RegExp | undefined\n isDevelopment: boolean\n isServer: boolean\n isEdgeRuntime: boolean\n targetWeb: boolean\n assetPrefix: string\n sassOptions: any\n productionBrowserSourceMaps: boolean\n transpilePackages: NextConfigComplete['transpilePackages']\n future: NextConfigComplete['future']\n experimental: NextConfigComplete['experimental']\n disableStaticImages: NextConfigComplete['disableStaticImages']\n serverSourceMaps: NextConfigComplete['experimental']['serverSourceMaps']\n }\n): Promise<webpack.Configuration> {\n const ctx: ConfigurationContext = {\n hasAppDir,\n supportedBrowsers,\n rootDirectory,\n customAppFile,\n isDevelopment,\n isProduction: !isDevelopment,\n isServer,\n isEdgeRuntime,\n isClient: !isServer,\n targetWeb,\n assetPrefix: assetPrefix\n ? assetPrefix.endsWith('/')\n ? assetPrefix.slice(0, -1)\n : assetPrefix\n : '',\n sassOptions,\n productionBrowserSourceMaps,\n transpilePackages,\n future,\n experimental,\n serverSourceMaps: serverSourceMaps ?? false,\n }\n\n let fns = [base(ctx), css(ctx)]\n if (!disableStaticImages) {\n fns.push(images(ctx))\n }\n const fn = pipe(...fns)\n return fn(config)\n}\n"],"names":["buildConfiguration","config","hasAppDir","supportedBrowsers","rootDirectory","customAppFile","isDevelopment","isServer","isEdgeRuntime","targetWeb","assetPrefix","sassOptions","productionBrowserSourceMaps","future","transpilePackages","experimental","disableStaticImages","serverSourceMaps","ctx","isProduction","isClient","endsWith","slice","fns","base","css","push","images","fn","pipe"],"mappings":";;;;+BASsBA;;;eAAAA;;;sBALD;qBACD;wBACG;uBACF;AAEd,eAAeA,mBACpBC,MAA6B,EAC7B,EACEC,SAAS,EACTC,iBAAiB,EACjBC,aAAa,EACbC,aAAa,EACbC,aAAa,EACbC,QAAQ,EACRC,aAAa,EACbC,SAAS,EACTC,WAAW,EACXC,WAAW,EACXC,2BAA2B,EAC3BC,MAAM,EACNC,iBAAiB,EACjBC,YAAY,EACZC,mBAAmB,EACnBC,gBAAgB,
|
1
|
+
{"version":3,"sources":["../../../../src/build/webpack/config/index.ts"],"sourcesContent":["import type { webpack } from 'next/dist/compiled/webpack/webpack'\nimport type { NextConfigComplete } from '../../../server/config-shared'\nimport type { ConfigurationContext } from './utils'\n\nimport { base } from './blocks/base'\nimport { css } from './blocks/css'\nimport { images } from './blocks/images'\nimport { pipe } from './utils'\n\nexport async function buildConfiguration(\n config: webpack.Configuration,\n {\n hasAppDir,\n supportedBrowsers,\n rootDirectory,\n customAppFile,\n isDevelopment,\n isServer,\n isEdgeRuntime,\n targetWeb,\n assetPrefix,\n sassOptions,\n productionBrowserSourceMaps,\n future,\n transpilePackages,\n experimental,\n disableStaticImages,\n serverSourceMaps,\n }: {\n hasAppDir: boolean\n supportedBrowsers: string[] | undefined\n rootDirectory: string\n customAppFile: RegExp | undefined\n isDevelopment: boolean\n isServer: boolean\n isEdgeRuntime: boolean\n targetWeb: boolean\n assetPrefix: string\n sassOptions: any\n productionBrowserSourceMaps: boolean\n transpilePackages: NextConfigComplete['transpilePackages']\n // @ts-expect-error TODO: remove any\n future: NextConfigComplete['future']\n experimental: NextConfigComplete['experimental']\n disableStaticImages: NextConfigComplete['images']['disableStaticImages']\n serverSourceMaps: NextConfigComplete['experimental']['serverSourceMaps']\n }\n): Promise<webpack.Configuration> {\n const ctx: ConfigurationContext = {\n hasAppDir,\n supportedBrowsers,\n rootDirectory,\n customAppFile,\n isDevelopment,\n isProduction: !isDevelopment,\n isServer,\n isEdgeRuntime,\n isClient: !isServer,\n targetWeb,\n assetPrefix: assetPrefix\n ? assetPrefix.endsWith('/')\n ? assetPrefix.slice(0, -1)\n : assetPrefix\n : '',\n sassOptions,\n productionBrowserSourceMaps,\n transpilePackages,\n future,\n experimental,\n serverSourceMaps: serverSourceMaps ?? false,\n }\n\n let fns = [base(ctx), css(ctx)]\n if (!disableStaticImages) {\n fns.push(images(ctx))\n }\n const fn = pipe(...fns)\n return fn(config)\n}\n"],"names":["buildConfiguration","config","hasAppDir","supportedBrowsers","rootDirectory","customAppFile","isDevelopment","isServer","isEdgeRuntime","targetWeb","assetPrefix","sassOptions","productionBrowserSourceMaps","future","transpilePackages","experimental","disableStaticImages","serverSourceMaps","ctx","isProduction","isClient","endsWith","slice","fns","base","css","push","images","fn","pipe"],"mappings":";;;;+BASsBA;;;eAAAA;;;sBALD;qBACD;wBACG;uBACF;AAEd,eAAeA,mBACpBC,MAA6B,EAC7B,EACEC,SAAS,EACTC,iBAAiB,EACjBC,aAAa,EACbC,aAAa,EACbC,aAAa,EACbC,QAAQ,EACRC,aAAa,EACbC,SAAS,EACTC,WAAW,EACXC,WAAW,EACXC,2BAA2B,EAC3BC,MAAM,EACNC,iBAAiB,EACjBC,YAAY,EACZC,mBAAmB,EACnBC,gBAAgB,EAmBjB;IAED,MAAMC,MAA4B;QAChChB;QACAC;QACAC;QACAC;QACAC;QACAa,cAAc,CAACb;QACfC;QACAC;QACAY,UAAU,CAACb;QACXE;QACAC,aAAaA,cACTA,YAAYW,QAAQ,CAAC,OACnBX,YAAYY,KAAK,CAAC,GAAG,CAAC,KACtBZ,cACF;QACJC;QACAC;QACAE;QACAD;QACAE;QACAE,kBAAkBA,oBAAoB;IACxC;IAEA,IAAIM,MAAM;QAACC,IAAAA,UAAI,EAACN;QAAMO,IAAAA,QAAG,EAACP;KAAK;IAC/B,IAAI,CAACF,qBAAqB;QACxBO,IAAIG,IAAI,CAACC,IAAAA,cAAM,EAACT;IAClB;IACA,MAAMU,KAAKC,IAAAA,WAAI,KAAIN;IACnB,OAAOK,GAAG3B;AACZ","ignoreList":[0]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/build/webpack/config/utils.ts"],"sourcesContent":["import type { webpack } from 'next/dist/compiled/webpack/webpack'\nimport type { NextConfigComplete } from '../../../server/config-shared'\n\nexport type ConfigurationContext = {\n // If the `appDir` feature is enabled\n hasAppDir: boolean\n // If the current rule matches a resource in the app layer\n isAppDir?: boolean\n supportedBrowsers: string[] | undefined\n rootDirectory: string\n customAppFile: RegExp | undefined\n\n isDevelopment: boolean\n isProduction: boolean\n\n isServer: boolean\n isClient: boolean\n isEdgeRuntime: boolean\n targetWeb: boolean\n\n assetPrefix: string\n\n sassOptions: any\n productionBrowserSourceMaps: boolean\n serverSourceMaps: boolean\n\n transpilePackages: NextConfigComplete['transpilePackages']\n\n future: NextConfigComplete['future']\n experimental: NextConfigComplete['experimental']\n}\n\nexport type ConfigurationFn = (\n a: webpack.Configuration\n) => webpack.Configuration\n\nexport const pipe =\n <R>(...fns: Array<(a: R) => R | Promise<R>>) =>\n (param: R) =>\n fns.reduce(\n async (result: R | Promise<R>, next) => next(await result),\n param\n )\n"],"names":["pipe","fns","param","reduce","result","next"],"mappings":";;;;+
|
1
|
+
{"version":3,"sources":["../../../../src/build/webpack/config/utils.ts"],"sourcesContent":["import type { webpack } from 'next/dist/compiled/webpack/webpack'\nimport type { NextConfigComplete } from '../../../server/config-shared'\n\nexport type ConfigurationContext = {\n // If the `appDir` feature is enabled\n hasAppDir: boolean\n // If the current rule matches a resource in the app layer\n isAppDir?: boolean\n supportedBrowsers: string[] | undefined\n rootDirectory: string\n customAppFile: RegExp | undefined\n\n isDevelopment: boolean\n isProduction: boolean\n\n isServer: boolean\n isClient: boolean\n isEdgeRuntime: boolean\n targetWeb: boolean\n\n assetPrefix: string\n\n sassOptions: any\n productionBrowserSourceMaps: boolean\n serverSourceMaps: boolean\n\n transpilePackages: NextConfigComplete['transpilePackages']\n\n // @ts-expect-error TODO: remove any\n future: NextConfigComplete['future']\n experimental: NextConfigComplete['experimental']\n}\n\nexport type ConfigurationFn = (\n a: webpack.Configuration\n) => webpack.Configuration\n\nexport const pipe =\n <R>(...fns: Array<(a: R) => R | Promise<R>>) =>\n (param: R) =>\n fns.reduce(\n async (result: R | Promise<R>, next) => next(await result),\n param\n )\n"],"names":["pipe","fns","param","reduce","result","next"],"mappings":";;;;+BAqCaA;;;eAAAA;;;AAAN,MAAMA,OACX,CAAI,GAAGC,MACP,CAACC,QACCD,IAAIE,MAAM,CACR,OAAOC,QAAwBC,OAASA,KAAK,MAAMD,SACnDF","ignoreList":[0]}
|
@@ -1706,7 +1706,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
|
|
1706
1706
|
isClient && new _copyfileplugin.CopyFilePlugin({
|
1707
1707
|
// file path to build output of `@next/polyfill-nomodule`
|
1708
1708
|
filePath: require.resolve('./polyfills/polyfill-nomodule'),
|
1709
|
-
cacheKey: "15.6.0-canary.
|
1709
|
+
cacheKey: "15.6.0-canary.25",
|
1710
1710
|
name: `static/chunks/polyfills${dev ? '' : '-[hash]'}.js`,
|
1711
1711
|
minimize: false,
|
1712
1712
|
info: {
|
@@ -1889,7 +1889,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
|
|
1889
1889
|
// - Next.js location on disk (some loaders use absolute paths and some resolve options depend on absolute paths)
|
1890
1890
|
// - Next.js version
|
1891
1891
|
// - next.config.js keys that affect compilation
|
1892
|
-
version: `${__dirname}|${"15.6.0-canary.
|
1892
|
+
version: `${__dirname}|${"15.6.0-canary.25"}|${configVars}`,
|
1893
1893
|
cacheDirectory: _path.default.join(distDir, 'cache', 'webpack'),
|
1894
1894
|
// For production builds, it's more efficient to compress all cache files together instead of compression each one individually.
|
1895
1895
|
// So we disable compression here and allow the build runner to take care of compressing the cache as a whole.
|