next 15.0.2-canary.4 → 15.0.2-canary.5

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.

Files changed (34) hide show
  1. package/dist/bin/next +1 -1
  2. package/dist/build/index.js +2 -2
  3. package/dist/build/swc/index.js +1 -1
  4. package/dist/build/webpack-config.js +2 -2
  5. package/dist/client/app-bootstrap.js +1 -1
  6. package/dist/client/index.js +1 -1
  7. package/dist/compiled/next-server/server.runtime.prod.js.map +1 -1
  8. package/dist/esm/build/index.js +2 -2
  9. package/dist/esm/build/swc/index.js +1 -1
  10. package/dist/esm/build/webpack-config.js +2 -2
  11. package/dist/esm/client/app-bootstrap.js +1 -1
  12. package/dist/esm/client/index.js +1 -1
  13. package/dist/esm/server/config.js +1 -1
  14. package/dist/esm/server/dev/hot-reloader-turbopack.js +1 -1
  15. package/dist/esm/server/dev/hot-reloader-webpack.js +1 -1
  16. package/dist/esm/server/lib/app-info-log.js +1 -1
  17. package/dist/esm/server/lib/router-utils/setup-dev-bundler.js +5 -0
  18. package/dist/esm/server/lib/router-utils/setup-dev-bundler.js.map +1 -1
  19. package/dist/esm/server/lib/start-server.js +1 -1
  20. package/dist/esm/server/patch-error-inspect.js +1 -1
  21. package/dist/esm/server/patch-error-inspect.js.map +1 -1
  22. package/dist/server/config.js +1 -1
  23. package/dist/server/dev/hot-reloader-turbopack.js +1 -1
  24. package/dist/server/dev/hot-reloader-webpack.js +1 -1
  25. package/dist/server/lib/app-info-log.js +1 -1
  26. package/dist/server/lib/router-utils/setup-dev-bundler.js +5 -0
  27. package/dist/server/lib/router-utils/setup-dev-bundler.js.map +1 -1
  28. package/dist/server/lib/start-server.js +1 -1
  29. package/dist/server/patch-error-inspect.js +1 -1
  30. package/dist/server/patch-error-inspect.js.map +1 -1
  31. package/dist/telemetry/anonymous-meta.js +1 -1
  32. package/dist/telemetry/events/session-stopped.js +2 -2
  33. package/dist/telemetry/events/version.js +2 -2
  34. package/package.json +15 -15
package/dist/bin/next CHANGED
@@ -72,7 +72,7 @@ const program = new NextRootCommand();
72
72
  program.name('next').description('The Next.js CLI allows you to develop, build, start your application, and more.').configureHelp({
73
73
  formatHelp: (cmd, helper)=>(0, _formatclihelpoutput.formatCliHelpOutput)(cmd, helper),
74
74
  subcommandTerm: (cmd)=>`${cmd.name()} ${cmd.usage()}`
75
- }).helpCommand(false).helpOption('-h, --help', 'Displays this message.').version(`Next.js v${"15.0.2-canary.4"}`, '-v, --version', 'Outputs the Next.js version.');
75
+ }).helpCommand(false).helpOption('-h, --help', 'Displays this message.').version(`Next.js v${"15.0.2-canary.5"}`, '-v, --version', 'Outputs the Next.js version.');
76
76
  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('--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.').addOption(new _commander.Option('--experimental-turbo').hideHelp()).addOption(new _commander.Option('--experimental-build-mode [mode]', 'Uses an experimental build mode.').choices([
77
77
  'compile',
78
78
  'generate'
@@ -341,7 +341,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
341
341
  const nextBuildSpan = (0, _trace.trace)('next-build', undefined, {
342
342
  buildMode: experimentalBuildMode,
343
343
  isTurboBuild: String(turboNextBuild),
344
- version: "15.0.2-canary.4"
344
+ version: "15.0.2-canary.5"
345
345
  });
346
346
  _buildcontext.NextBuildContext.nextBuildSpan = nextBuildSpan;
347
347
  _buildcontext.NextBuildContext.dir = dir;
@@ -742,7 +742,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
742
742
  // Files outside of the distDir can be "type": "module"
743
743
  await writeFileUtf8(_path.default.join(distDir, 'package.json'), '{"type": "commonjs"}');
744
744
  // These are written to distDir, so they need to come after creating and cleaning distDr.
745
- await (0, _builddiagnostics.recordFrameworkVersion)("15.0.2-canary.4");
745
+ await (0, _builddiagnostics.recordFrameworkVersion)("15.0.2-canary.5");
746
746
  await (0, _builddiagnostics.updateBuildDiagnostics)({
747
747
  buildStage: 'start'
748
748
  });
@@ -127,7 +127,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
127
127
  }
128
128
  return newObj;
129
129
  }
130
- const nextVersion = "15.0.2-canary.4";
130
+ const nextVersion = "15.0.2-canary.5";
131
131
  const ArchName = (0, _os.arch)();
132
132
  const PlatformName = (0, _os.platform)();
133
133
  function infoLog(...args) {
@@ -1509,7 +1509,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
1509
1509
  isClient && new _copyfileplugin.CopyFilePlugin({
1510
1510
  // file path to build output of `@next/polyfill-nomodule`
1511
1511
  filePath: require.resolve('./polyfills/polyfill-nomodule'),
1512
- cacheKey: "15.0.2-canary.4",
1512
+ cacheKey: "15.0.2-canary.5",
1513
1513
  name: `static/chunks/polyfills${dev ? '' : '-[hash]'}.js`,
1514
1514
  minimize: false,
1515
1515
  info: {
@@ -1741,7 +1741,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
1741
1741
  // - Next.js location on disk (some loaders use absolute paths and some resolve options depend on absolute paths)
1742
1742
  // - Next.js version
1743
1743
  // - next.config.js keys that affect compilation
1744
- version: `${__dirname}|${"15.0.2-canary.4"}|${configVars}`,
1744
+ version: `${__dirname}|${"15.0.2-canary.5"}|${configVars}`,
1745
1745
  cacheDirectory: _path.default.join(distDir, 'cache', 'webpack'),
1746
1746
  // For production builds, it's more efficient to compress all cache files together instead of compression each one individually.
1747
1747
  // So we disable compression here and allow the build runner to take care of compressing the cache as a whole.
@@ -13,7 +13,7 @@ Object.defineProperty(exports, "appBootstrap", {
13
13
  return appBootstrap;
14
14
  }
15
15
  });
16
- const version = "15.0.2-canary.4";
16
+ const version = "15.0.2-canary.5";
17
17
  window.next = {
18
18
  version,
19
19
  appDir: true
@@ -61,7 +61,7 @@ const _hooksclientcontextsharedruntime = require("../shared/lib/hooks-client-con
61
61
  const _shared = require("./react-client-callbacks/shared");
62
62
  const _tracer = /*#__PURE__*/ _interop_require_default._(require("./tracing/tracer"));
63
63
  const _reporttosocket = /*#__PURE__*/ _interop_require_default._(require("./tracing/report-to-socket"));
64
- const version = "15.0.2-canary.4";
64
+ const version = "15.0.2-canary.5";
65
65
  let router;
66
66
  const emitter = (0, _mitt.default)();
67
67
  const looseToArray = (input)=>[].slice.call(input);