next 16.3.0-canary.13 → 16.3.0-canary.14

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 (44) 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/cli/next-build.js +1 -1
  9. package/dist/client/app-bootstrap.js +1 -1
  10. package/dist/client/index.js +1 -1
  11. package/dist/compiled/next-server/pages-api-turbo.runtime.prod.js +1 -1
  12. package/dist/compiled/next-server/pages-api-turbo.runtime.prod.js.map +1 -1
  13. package/dist/compiled/next-server/pages-api.runtime.prod.js +1 -1
  14. package/dist/compiled/next-server/pages-api.runtime.prod.js.map +1 -1
  15. package/dist/compiled/next-server/pages-turbo.runtime.prod.js +1 -1
  16. package/dist/compiled/next-server/pages-turbo.runtime.prod.js.map +1 -1
  17. package/dist/compiled/next-server/pages.runtime.prod.js +1 -1
  18. package/dist/compiled/next-server/pages.runtime.prod.js.map +1 -1
  19. package/dist/esm/build/index.js +3 -3
  20. package/dist/esm/build/swc/index.js +1 -1
  21. package/dist/esm/build/turbopack-analyze/index.js +1 -1
  22. package/dist/esm/build/turbopack-build/impl.js +1 -1
  23. package/dist/esm/build/webpack-config.js +3 -3
  24. package/dist/esm/client/app-bootstrap.js +1 -1
  25. package/dist/esm/client/index.js +1 -1
  26. package/dist/esm/lib/patch-incorrect-lockfile.js +3 -3
  27. package/dist/esm/server/config.js +1 -1
  28. package/dist/esm/server/dev/hot-reloader-turbopack.js +2 -2
  29. package/dist/esm/server/dev/hot-reloader-webpack.js +1 -1
  30. package/dist/esm/server/lib/app-info-log.js +1 -1
  31. package/dist/esm/server/lib/start-server.js +1 -1
  32. package/dist/esm/shared/lib/errors/canary-only-config-error.js +1 -1
  33. package/dist/lib/patch-incorrect-lockfile.js +3 -3
  34. package/dist/server/config.js +1 -1
  35. package/dist/server/dev/hot-reloader-turbopack.js +2 -2
  36. package/dist/server/dev/hot-reloader-webpack.js +1 -1
  37. package/dist/server/lib/app-info-log.js +1 -1
  38. package/dist/server/lib/start-server.js +1 -1
  39. package/dist/shared/lib/errors/canary-only-config-error.js +1 -1
  40. package/dist/telemetry/anonymous-meta.js +1 -1
  41. package/dist/telemetry/events/session-stopped.js +2 -2
  42. package/dist/telemetry/events/swc-load-failure.js +1 -1
  43. package/dist/telemetry/events/version.js +2 -2
  44. package/package.json +15 -15
@@ -1 +1 @@
1
- d55787fe2e5c796c8e656b8b8ef9142f8b629d58
1
+ 401ce3803c2c1098056f1b1009fbdb8bac9d069a
package/dist/bin/next CHANGED
@@ -89,7 +89,7 @@ const program = new NextRootCommand();
89
89
  program.name('next').description('The Next.js CLI allows you to develop, build, start your application, and more.').configureHelp({
90
90
  formatHelp: (cmd, helper)=>(0, _formatclihelpoutput.formatCliHelpOutput)(cmd, helper),
91
91
  subcommandTerm: (cmd)=>`${cmd.name()} ${cmd.usage()}`
92
- }).helpCommand(false).helpOption('-h, --help', 'Displays this message.').version(`Next.js v${"16.3.0-canary.13"}`, '-v, --version', 'Outputs the Next.js version.');
92
+ }).helpCommand(false).helpOption('-h, --help', 'Displays this message.').version(`Next.js v${"16.3.0-canary.14"}`, '-v, --version', 'Outputs the Next.js version.');
93
93
  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([
94
94
  'compile',
95
95
  'generate',
@@ -199,7 +199,7 @@ program.command('telemetry').description(`Allows you to enable or disable Next.j
199
199
  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
200
200
  // don't cause process to hang
201
201
  import('../cli/next-typegen.js').then((mod)=>mod.nextTypegen(options, directory).then(()=>process.exit(0)))).usage('[directory] [options]');
202
- const nextVersion = "16.3.0-canary.13" || 'unknown';
202
+ const nextVersion = "16.3.0-canary.14" || 'unknown';
203
203
  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)=>{
204
204
  const mod = await import('../cli/next-upgrade.js');
205
205
  mod.spawnNextUpgrade(directory, options);
@@ -404,7 +404,7 @@ async function build(dir, experimentalAnalyze = false, reactProductionProfiling
404
404
  try {
405
405
  const nextBuildSpan = (0, _trace.trace)('next-build', undefined, {
406
406
  buildMode: experimentalBuildMode,
407
- version: "16.3.0-canary.13",
407
+ version: "16.3.0-canary.14",
408
408
  ...enabledFeatures
409
409
  });
410
410
  _buildcontext.NextBuildContext.nextBuildSpan = nextBuildSpan;
@@ -841,7 +841,7 @@ async function build(dir, experimentalAnalyze = false, reactProductionProfiling
841
841
  // Files outside of the distDir can be "type": "module"
842
842
  await writeFileUtf8(_path.default.join(distDir, 'package.json'), '{"type": "commonjs"}');
843
843
  // These are written to distDir, so they need to come after creating and cleaning distDr.
844
- await (0, _builddiagnostics.recordFrameworkVersion)("16.3.0-canary.13");
844
+ await (0, _builddiagnostics.recordFrameworkVersion)("16.3.0-canary.14");
845
845
  await (0, _builddiagnostics.updateBuildDiagnostics)({
846
846
  buildStage: 'start'
847
847
  });
@@ -2608,7 +2608,7 @@ async function build(dir, experimentalAnalyze = false, reactProductionProfiling
2608
2608
  configOutDir: _path.default.join(dir, configOutDir),
2609
2609
  staticPages,
2610
2610
  serverPropsPages,
2611
- nextVersion: "16.3.0-canary.13",
2611
+ nextVersion: "16.3.0-canary.14",
2612
2612
  tracingRoot: outputFileTracingRoot,
2613
2613
  hasNodeMiddleware,
2614
2614
  hasInstrumentationHook,
@@ -135,7 +135,7 @@ var HmrTarget = /*#__PURE__*/ function(HmrTarget) {
135
135
  HmrTarget["Server"] = "server";
136
136
  return HmrTarget;
137
137
  }({});
138
- const nextVersion = "16.3.0-canary.13";
138
+ const nextVersion = "16.3.0-canary.14";
139
139
  const ArchName = (0, _os.arch)();
140
140
  const PlatformName = (0, _os.platform)();
141
141
  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.3.0-canary.13"
96
+ nextVersion: "16.3.0-canary.14"
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.3.0-canary.13"
117
+ nextVersion: "16.3.0-canary.14"
118
118
  };
119
119
  const sharedTurboOptions = {
120
120
  memoryLimit: (_config_experimental1 = config.experimental) == null ? void 0 : _config_experimental1.turbopackMemoryLimit,
@@ -1740,7 +1740,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
1740
1740
  isClient && new _copyfileplugin.CopyFilePlugin({
1741
1741
  // file path to build output of `@next/polyfill-nomodule`
1742
1742
  filePath: require.resolve('./polyfills/polyfill-nomodule'),
1743
- cacheKey: "16.3.0-canary.13",
1743
+ cacheKey: "16.3.0-canary.14",
1744
1744
  name: `static/chunks/polyfills${dev ? '' : '-[hash]'}.js`,
1745
1745
  minimize: false,
1746
1746
  info: {
@@ -1934,7 +1934,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
1934
1934
  // - Next.js location on disk (some loaders use absolute paths and some resolve options depend on absolute paths)
1935
1935
  // - Next.js version
1936
1936
  // - next.config.js keys that affect compilation
1937
- version: `${__dirname}|${"16.3.0-canary.13"}|${configVars}`,
1937
+ version: `${__dirname}|${"16.3.0-canary.14"}|${configVars}`,
1938
1938
  cacheDirectory: _path.default.join(distDir, 'cache', 'webpack'),
1939
1939
  // For production builds, it's more efficient to compress all cache files together instead of compression each one individually.
1940
1940
  // So we disable compression here and allow the build runner to take care of compressing the cache as a whole.
@@ -1990,7 +1990,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
1990
1990
  type: 'filesystem',
1991
1991
  directory: cache.cacheDirectory
1992
1992
  },
1993
- version: `${__dirname}|${"16.3.0-canary.13"}|${configVars}`
1993
+ version: `${__dirname}|${"16.3.0-canary.14"}|${configVars}`
1994
1994
  };
1995
1995
  }
1996
1996
  if (process.env.NEXT_WEBPACK_LOGGING) {
@@ -39,7 +39,7 @@ function _interop_require_default(obj) {
39
39
  };
40
40
  }
41
41
  const nextBuild = async (options, directory)=>{
42
- process.title = `next-build (v${"16.3.0-canary.13"})`;
42
+ process.title = `next-build (v${"16.3.0-canary.14"})`;
43
43
  process.on('SIGTERM', ()=>{
44
44
  (0, _cpuprofile.saveCpuProfile)();
45
45
  process.exit(143);
@@ -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.3.0-canary.13";
18
+ const version = "16.3.0-canary.14";
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.3.0-canary.13";
63
+ const version = "16.3.0-canary.14";
64
64
  let router;
65
65
  const emitter = (0, _mitt.default)();
66
66
  const looseToArray = (input)=>[].slice.call(input);