next 16.1.3 → 16.1.4
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 +2 -2
- package/dist/build/index.js +10 -4
- package/dist/build/index.js.map +1 -1
- package/dist/build/swc/index.js +1 -1
- package/dist/build/webpack-config.js +3 -3
- package/dist/bundle-analyzer/404.html +2 -2
- package/dist/bundle-analyzer/__next.__PAGE__.txt +1 -1
- package/dist/bundle-analyzer/__next._full.txt +1 -1
- package/dist/bundle-analyzer/__next._head.txt +1 -1
- package/dist/bundle-analyzer/__next._index.txt +1 -1
- package/dist/bundle-analyzer/__next._tree.txt +1 -1
- package/dist/bundle-analyzer/_not-found/__next._full.txt +1 -1
- package/dist/bundle-analyzer/_not-found/__next._head.txt +1 -1
- package/dist/bundle-analyzer/_not-found/__next._index.txt +1 -1
- package/dist/bundle-analyzer/_not-found/__next._not-found.__PAGE__.txt +1 -1
- package/dist/bundle-analyzer/_not-found/__next._not-found.txt +1 -1
- package/dist/bundle-analyzer/_not-found/__next._tree.txt +1 -1
- package/dist/bundle-analyzer/_not-found.html +2 -2
- package/dist/bundle-analyzer/_not-found.txt +1 -1
- package/dist/bundle-analyzer/index.html +2 -2
- package/dist/bundle-analyzer/index.txt +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-api-turbo.runtime.prod.js +1 -1
- package/dist/compiled/next-server/pages-api-turbo.runtime.prod.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/compiled/next-server/pages-turbo.runtime.prod.js +1 -1
- package/dist/compiled/next-server/pages-turbo.runtime.prod.js.map +1 -1
- package/dist/esm/build/index.js +10 -4
- package/dist/esm/build/index.js.map +1 -1
- package/dist/esm/build/swc/index.js +1 -1
- package/dist/esm/build/webpack-config.js +3 -3
- package/dist/esm/client/app-bootstrap.js +1 -1
- package/dist/esm/client/index.js +1 -1
- package/dist/esm/server/config-shared.js +4 -0
- package/dist/esm/server/config-shared.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/errors/canary-only-config-error.js +1 -1
- package/dist/server/config-shared.js +4 -0
- package/dist/server/config-shared.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/errors/canary-only-config-error.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/bundle-analyzer/_next/static/{KCiz9Jv0OGn-eS0e6vUtr → j1I64_WUmA9kEIL5L35na}/_buildManifest.js +0 -0
- /package/dist/bundle-analyzer/_next/static/{KCiz9Jv0OGn-eS0e6vUtr → j1I64_WUmA9kEIL5L35na}/_clientMiddlewareManifest.json +0 -0
- /package/dist/bundle-analyzer/_next/static/{KCiz9Jv0OGn-eS0e6vUtr → j1I64_WUmA9kEIL5L35na}/_ssgManifest.js +0 -0
package/dist/bin/next
CHANGED
|
@@ -85,7 +85,7 @@ const program = new NextRootCommand();
|
|
|
85
85
|
program.name('next').description('The Next.js CLI allows you to develop, build, start your application, and more.').configureHelp({
|
|
86
86
|
formatHelp: (cmd, helper)=>(0, _formatclihelpoutput.formatCliHelpOutput)(cmd, helper),
|
|
87
87
|
subcommandTerm: (cmd)=>`${cmd.name()} ${cmd.usage()}`
|
|
88
|
-
}).helpCommand(false).helpOption('-h, --help', 'Displays this message.').version(`Next.js v${"16.1.
|
|
88
|
+
}).helpCommand(false).helpOption('-h, --help', 'Displays this message.').version(`Next.js v${"16.1.4"}`, '-v, --version', 'Outputs the Next.js version.');
|
|
89
89
|
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('--experimental-analyze', 'Analyze bundle output. Only compatible with Turbopack.').option('-d, --debug', 'Enables a more verbose build output.').option('--debug-prerender', 'Enables debug mode for prerendering. Not for production use!').option('--no-mangling', 'Disables mangling.').option('--profile', 'Enables production profiling for React.').option('--experimental-app-only', 'Builds only App Router routes.').option('--turbo', 'Builds using Turbopack.').option('--turbopack', 'Builds using Turbopack.').option('--webpack', 'Builds using webpack.').addOption(new _commander.Option('--experimental-build-mode [mode]', 'Uses an experimental build mode.').choices([
|
|
90
90
|
'compile',
|
|
91
91
|
'generate',
|
|
@@ -136,7 +136,7 @@ program.command('telemetry').description(`Allows you to enable or disable Next.j
|
|
|
136
136
|
program.command('typegen').description('Generate TypeScript definitions for routes, pages, and layouts without running a full build.').argument('[directory]', `A directory on which to generate types. ${(0, _picocolors.italic)('If no directory is provided, the current directory will be used.')}`).action((directory, options)=>// ensure process exits after typegen completes so open handles/connections
|
|
137
137
|
// don't cause process to hang
|
|
138
138
|
import('../cli/next-typegen.js').then((mod)=>mod.nextTypegen(options, directory).then(()=>process.exit(0)))).usage('[directory] [options]');
|
|
139
|
-
const nextVersion = "16.1.
|
|
139
|
+
const nextVersion = "16.1.4" || 'unknown';
|
|
140
140
|
program.command('upgrade').description('Upgrade Next.js apps to desired versions with a single command.').argument('[directory]', `A Next.js project directory to upgrade. ${(0, _picocolors.italic)('If no directory is provided, the current directory will be used.')}`).usage('[directory] [options]').option('--revision <revision>', 'Specify the target Next.js version using an NPM dist tag (e.g. "latest", "canary", "rc", "beta") or an exact version number (e.g. "15.0.0").', nextVersion.includes('-canary.') ? 'canary' : nextVersion.includes('-rc.') ? 'rc' : nextVersion.includes('-beta.') ? 'beta' : 'latest').option('--verbose', 'Verbose output', false).action(async (directory, options)=>{
|
|
141
141
|
const mod = await import('../cli/next-upgrade.js');
|
|
142
142
|
mod.spawnNextUpgrade(directory, options);
|
package/dist/build/index.js
CHANGED
|
@@ -373,7 +373,7 @@ async function build(dir, experimentalAnalyze = false, reactProductionProfiling
|
|
|
373
373
|
try {
|
|
374
374
|
const nextBuildSpan = (0, _trace.trace)('next-build', undefined, {
|
|
375
375
|
buildMode: experimentalBuildMode,
|
|
376
|
-
version: "16.1.
|
|
376
|
+
version: "16.1.4"
|
|
377
377
|
});
|
|
378
378
|
_buildcontext.NextBuildContext.nextBuildSpan = nextBuildSpan;
|
|
379
379
|
_buildcontext.NextBuildContext.dir = dir;
|
|
@@ -871,7 +871,7 @@ async function build(dir, experimentalAnalyze = false, reactProductionProfiling
|
|
|
871
871
|
// Files outside of the distDir can be "type": "module"
|
|
872
872
|
await writeFileUtf8(_path.default.join(distDir, 'package.json'), '{"type": "commonjs"}');
|
|
873
873
|
// These are written to distDir, so they need to come after creating and cleaning distDr.
|
|
874
|
-
await (0, _builddiagnostics.recordFrameworkVersion)("16.1.
|
|
874
|
+
await (0, _builddiagnostics.recordFrameworkVersion)("16.1.4");
|
|
875
875
|
await (0, _builddiagnostics.updateBuildDiagnostics)({
|
|
876
876
|
buildStage: 'start'
|
|
877
877
|
});
|
|
@@ -1025,10 +1025,16 @@ async function build(dir, experimentalAnalyze = false, reactProductionProfiling
|
|
|
1025
1025
|
normalizedCacheHandlers[key] = _path.default.relative(distDir, value);
|
|
1026
1026
|
}
|
|
1027
1027
|
}
|
|
1028
|
+
// getNextConfigRuntime only filters if experimental.runtimeServerDeploymentId is true,
|
|
1029
|
+
// but we unconditionally want to remove configFile for this manifest
|
|
1030
|
+
let runtimeConfigWithoutFilePath = {
|
|
1031
|
+
...runtimeConfig
|
|
1032
|
+
};
|
|
1033
|
+
delete runtimeConfigWithoutFilePath.configFile;
|
|
1028
1034
|
const serverFilesManifest = {
|
|
1029
1035
|
version: 1,
|
|
1030
1036
|
config: {
|
|
1031
|
-
...
|
|
1037
|
+
...runtimeConfigWithoutFilePath,
|
|
1032
1038
|
..._ciinfo.hasNextSupport ? {
|
|
1033
1039
|
compress: false
|
|
1034
1040
|
} : {},
|
|
@@ -2546,7 +2552,7 @@ async function build(dir, experimentalAnalyze = false, reactProductionProfiling
|
|
|
2546
2552
|
configOutDir: _path.default.join(dir, configOutDir),
|
|
2547
2553
|
staticPages,
|
|
2548
2554
|
serverPropsPages,
|
|
2549
|
-
nextVersion: "16.1.
|
|
2555
|
+
nextVersion: "16.1.4",
|
|
2550
2556
|
tracingRoot: outputFileTracingRoot,
|
|
2551
2557
|
hasNodeMiddleware,
|
|
2552
2558
|
hasInstrumentationHook,
|