next 16.2.5 → 16.2.6

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.
Files changed (36) hide show
  1. package/dist/.build-commit +1 -1
  2. package/dist/bin/next +2 -2
  3. package/dist/build/index.js +3 -3
  4. package/dist/build/swc/index.js +1 -1
  5. package/dist/build/turbopack-analyze/index.js +1 -1
  6. package/dist/build/turbopack-build/impl.js +1 -1
  7. package/dist/build/webpack-config.js +3 -3
  8. package/dist/client/app-bootstrap.js +1 -1
  9. package/dist/client/index.js +1 -1
  10. package/dist/compiled/next-server/server.runtime.prod.js +3 -3
  11. package/dist/esm/build/index.js +3 -3
  12. package/dist/esm/build/swc/index.js +1 -1
  13. package/dist/esm/build/turbopack-analyze/index.js +1 -1
  14. package/dist/esm/build/turbopack-build/impl.js +1 -1
  15. package/dist/esm/build/webpack-config.js +3 -3
  16. package/dist/esm/client/app-bootstrap.js +1 -1
  17. package/dist/esm/client/index.js +1 -1
  18. package/dist/esm/lib/patch-incorrect-lockfile.js +3 -3
  19. package/dist/esm/server/config.js +1 -1
  20. package/dist/esm/server/dev/hot-reloader-turbopack.js +2 -2
  21. package/dist/esm/server/dev/hot-reloader-webpack.js +1 -1
  22. package/dist/esm/server/lib/app-info-log.js +1 -1
  23. package/dist/esm/server/lib/start-server.js +1 -1
  24. package/dist/esm/shared/lib/errors/canary-only-config-error.js +1 -1
  25. package/dist/lib/patch-incorrect-lockfile.js +3 -3
  26. package/dist/server/config.js +1 -1
  27. package/dist/server/dev/hot-reloader-turbopack.js +2 -2
  28. package/dist/server/dev/hot-reloader-webpack.js +1 -1
  29. package/dist/server/lib/app-info-log.js +1 -1
  30. package/dist/server/lib/start-server.js +1 -1
  31. package/dist/shared/lib/errors/canary-only-config-error.js +1 -1
  32. package/dist/telemetry/anonymous-meta.js +1 -1
  33. package/dist/telemetry/events/session-stopped.js +2 -2
  34. package/dist/telemetry/events/swc-load-failure.js +1 -1
  35. package/dist/telemetry/events/version.js +2 -2
  36. package/package.json +15 -15
@@ -1 +1 @@
1
- 64c7cbcd93543d931fd78dd63683b023d0205390
1
+ 4346fe28b605e58e42ebb7954016334a164f0f13
package/dist/bin/next CHANGED
@@ -84,7 +84,7 @@ const program = new NextRootCommand();
84
84
  program.name('next').description('The Next.js CLI allows you to develop, build, start your application, and more.').configureHelp({
85
85
  formatHelp: (cmd, helper)=>(0, _formatclihelpoutput.formatCliHelpOutput)(cmd, helper),
86
86
  subcommandTerm: (cmd)=>`${cmd.name()} ${cmd.usage()}`
87
- }).helpCommand(false).helpOption('-h, --help', 'Displays this message.').version(`Next.js v${"16.2.5"}`, '-v, --version', 'Outputs the Next.js version.');
87
+ }).helpCommand(false).helpOption('-h, --help', 'Displays this message.').version(`Next.js v${"16.2.6"}`, '-v, --version', 'Outputs the Next.js version.');
88
88
  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([
89
89
  'compile',
90
90
  'generate',
@@ -170,7 +170,7 @@ program.command('telemetry').description(`Allows you to enable or disable Next.j
170
170
  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
171
171
  // don't cause process to hang
172
172
  import('../cli/next-typegen.js').then((mod)=>mod.nextTypegen(options, directory).then(()=>process.exit(0)))).usage('[directory] [options]');
173
- const nextVersion = "16.2.5" || 'unknown';
173
+ const nextVersion = "16.2.6" || 'unknown';
174
174
  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)=>{
175
175
  const mod = await import('../cli/next-upgrade.js');
176
176
  mod.spawnNextUpgrade(directory, options);
@@ -401,7 +401,7 @@ async function build(dir, experimentalAnalyze = false, reactProductionProfiling
401
401
  try {
402
402
  const nextBuildSpan = (0, _trace.trace)('next-build', undefined, {
403
403
  buildMode: experimentalBuildMode,
404
- version: "16.2.5",
404
+ version: "16.2.6",
405
405
  ...enabledFeatures
406
406
  });
407
407
  _buildcontext.NextBuildContext.nextBuildSpan = nextBuildSpan;
@@ -837,7 +837,7 @@ async function build(dir, experimentalAnalyze = false, reactProductionProfiling
837
837
  // Files outside of the distDir can be "type": "module"
838
838
  await writeFileUtf8(_path.default.join(distDir, 'package.json'), '{"type": "commonjs"}');
839
839
  // These are written to distDir, so they need to come after creating and cleaning distDr.
840
- await (0, _builddiagnostics.recordFrameworkVersion)("16.2.5");
840
+ await (0, _builddiagnostics.recordFrameworkVersion)("16.2.6");
841
841
  await (0, _builddiagnostics.updateBuildDiagnostics)({
842
842
  buildStage: 'start'
843
843
  });
@@ -2562,7 +2562,7 @@ async function build(dir, experimentalAnalyze = false, reactProductionProfiling
2562
2562
  configOutDir: _path.default.join(dir, configOutDir),
2563
2563
  staticPages,
2564
2564
  serverPropsPages,
2565
- nextVersion: "16.2.5",
2565
+ nextVersion: "16.2.6",
2566
2566
  tracingRoot: outputFileTracingRoot,
2567
2567
  hasNodeMiddleware,
2568
2568
  hasInstrumentationHook,
@@ -134,7 +134,7 @@ var HmrTarget = /*#__PURE__*/ function(HmrTarget) {
134
134
  HmrTarget["Server"] = "server";
135
135
  return HmrTarget;
136
136
  }({});
137
- const nextVersion = "16.2.5";
137
+ const nextVersion = "16.2.6";
138
138
  const ArchName = (0, _os.arch)();
139
139
  const PlatformName = (0, _os.platform)();
140
140
  function infoLog(...args) {
@@ -93,7 +93,7 @@ async function turbopackAnalyze(analyzeContext) {
93
93
  writeRoutesHashesManifest: false,
94
94
  currentNodeJsVersion,
95
95
  isPersistentCachingEnabled: persistentCaching,
96
- nextVersion: "16.2.5"
96
+ nextVersion: "16.2.6"
97
97
  }, {
98
98
  memoryLimit: (_config_experimental2 = config.experimental) == null ? void 0 : _config_experimental2.turbopackMemoryLimit,
99
99
  dependencyTracking: persistentCaching,
@@ -114,7 +114,7 @@ async function turbopackBuild() {
114
114
  currentNodeJsVersion,
115
115
  isPersistentCachingEnabled: persistentCaching,
116
116
  deferredEntries: config.experimental.deferredEntries,
117
- nextVersion: "16.2.5"
117
+ nextVersion: "16.2.6"
118
118
  };
119
119
  const sharedTurboOptions = {
120
120
  memoryLimit: (_config_experimental1 = config.experimental) == null ? void 0 : _config_experimental1.turbopackMemoryLimit,
@@ -1734,7 +1734,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
1734
1734
  isClient && new _copyfileplugin.CopyFilePlugin({
1735
1735
  // file path to build output of `@next/polyfill-nomodule`
1736
1736
  filePath: require.resolve('./polyfills/polyfill-nomodule'),
1737
- cacheKey: "16.2.5",
1737
+ cacheKey: "16.2.6",
1738
1738
  name: `static/chunks/polyfills${dev ? '' : '-[hash]'}.js`,
1739
1739
  minimize: false,
1740
1740
  info: {
@@ -1928,7 +1928,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
1928
1928
  // - Next.js location on disk (some loaders use absolute paths and some resolve options depend on absolute paths)
1929
1929
  // - Next.js version
1930
1930
  // - next.config.js keys that affect compilation
1931
- version: `${__dirname}|${"16.2.5"}|${configVars}`,
1931
+ version: `${__dirname}|${"16.2.6"}|${configVars}`,
1932
1932
  cacheDirectory: _path.default.join(distDir, 'cache', 'webpack'),
1933
1933
  // For production builds, it's more efficient to compress all cache files together instead of compression each one individually.
1934
1934
  // So we disable compression here and allow the build runner to take care of compressing the cache as a whole.
@@ -1984,7 +1984,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
1984
1984
  type: 'filesystem',
1985
1985
  directory: cache.cacheDirectory
1986
1986
  },
1987
- version: `${__dirname}|${"16.2.5"}|${configVars}`
1987
+ version: `${__dirname}|${"16.2.6"}|${configVars}`
1988
1988
  };
1989
1989
  }
1990
1990
  if (process.env.NEXT_WEBPACK_LOGGING) {
@@ -15,7 +15,7 @@ Object.defineProperty(exports, "appBootstrap", {
15
15
  });
16
16
  const _assetprefix = require("./asset-prefix");
17
17
  const _setattributesfromprops = require("./set-attributes-from-props");
18
- const version = "16.2.5";
18
+ const version = "16.2.6";
19
19
  window.next = {
20
20
  version,
21
21
  appDir: true
@@ -60,7 +60,7 @@ const _hooksclientcontextsharedruntime = require("../shared/lib/hooks-client-con
60
60
  const _onrecoverableerror = require("./react-client-callbacks/on-recoverable-error");
61
61
  const _tracer = /*#__PURE__*/ _interop_require_default._(require("./tracing/tracer"));
62
62
  const _isnextroutererror = require("./components/is-next-router-error");
63
- const version = "16.2.5";
63
+ const version = "16.2.6";
64
64
  let router;
65
65
  const emitter = (0, _mitt.default)();
66
66
  const looseToArray = (input)=>[].slice.call(input);