next 15.3.1-canary.2 → 15.3.1-canary.3

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 (46) 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/app-page-experimental.runtime.prod.js.map +1 -1
  8. package/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js.map +1 -1
  9. package/dist/compiled/next-server/app-page-turbo.runtime.prod.js.map +1 -1
  10. package/dist/compiled/next-server/app-page.runtime.prod.js.map +1 -1
  11. package/dist/compiled/next-server/server.runtime.prod.js +2 -2
  12. package/dist/compiled/next-server/server.runtime.prod.js.map +1 -1
  13. package/dist/esm/build/index.js +2 -2
  14. package/dist/esm/build/swc/index.js +1 -1
  15. package/dist/esm/build/webpack-config.js +2 -2
  16. package/dist/esm/client/app-bootstrap.js +1 -1
  17. package/dist/esm/client/index.js +1 -1
  18. package/dist/esm/server/config-schema.js +1 -0
  19. package/dist/esm/server/config-schema.js.map +1 -1
  20. package/dist/esm/server/config-shared.js +1 -0
  21. package/dist/esm/server/config-shared.js.map +1 -1
  22. package/dist/esm/server/dev/hot-reloader-turbopack.js +1 -1
  23. package/dist/esm/server/dev/hot-reloader-webpack.js +1 -1
  24. package/dist/esm/server/lib/app-info-log.js +1 -1
  25. package/dist/esm/server/lib/start-server.js +1 -18
  26. package/dist/esm/server/lib/start-server.js.map +1 -1
  27. package/dist/esm/server/next-server.js +78 -1
  28. package/dist/esm/server/next-server.js.map +1 -1
  29. package/dist/esm/shared/lib/canary-only.js +1 -1
  30. package/dist/server/config-schema.js +1 -0
  31. package/dist/server/config-schema.js.map +1 -1
  32. package/dist/server/config-shared.d.ts +9 -0
  33. package/dist/server/config-shared.js +1 -0
  34. package/dist/server/config-shared.js.map +1 -1
  35. package/dist/server/dev/hot-reloader-turbopack.js +1 -1
  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 -18
  39. package/dist/server/lib/start-server.js.map +1 -1
  40. package/dist/server/next-server.js +78 -1
  41. package/dist/server/next-server.js.map +1 -1
  42. package/dist/shared/lib/canary-only.js +1 -1
  43. package/dist/telemetry/anonymous-meta.js +1 -1
  44. package/dist/telemetry/events/session-stopped.js +2 -2
  45. package/dist/telemetry/events/version.js +2 -2
  46. 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.3.1-canary.2"}`, '-v, --version', 'Outputs the Next.js version.');
82
+ }).helpCommand(false).helpOption('-h, --help', 'Displays this message.').version(`Next.js v${"15.3.1-canary.3"}`, '-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('--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',
@@ -375,7 +375,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
375
375
  const nextBuildSpan = (0, _trace.trace)('next-build', undefined, {
376
376
  buildMode: experimentalBuildMode,
377
377
  isTurboBuild: String(isTurbopack),
378
- version: "15.3.1-canary.2"
378
+ version: "15.3.1-canary.3"
379
379
  });
380
380
  _buildcontext.NextBuildContext.nextBuildSpan = nextBuildSpan;
381
381
  _buildcontext.NextBuildContext.dir = dir;
@@ -756,7 +756,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
756
756
  // Files outside of the distDir can be "type": "module"
757
757
  await writeFileUtf8(_path.default.join(distDir, 'package.json'), '{"type": "commonjs"}');
758
758
  // These are written to distDir, so they need to come after creating and cleaning distDr.
759
- await (0, _builddiagnostics.recordFrameworkVersion)("15.3.1-canary.2");
759
+ await (0, _builddiagnostics.recordFrameworkVersion)("15.3.1-canary.3");
760
760
  await (0, _builddiagnostics.updateBuildDiagnostics)({
761
761
  buildStage: 'start'
762
762
  });
@@ -119,7 +119,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
119
119
  }
120
120
  return newObj;
121
121
  }
122
- const nextVersion = "15.3.1-canary.2";
122
+ const nextVersion = "15.3.1-canary.3";
123
123
  const ArchName = (0, _os.arch)();
124
124
  const PlatformName = (0, _os.platform)();
125
125
  function infoLog(...args) {
@@ -1650,7 +1650,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
1650
1650
  isClient && new _copyfileplugin.CopyFilePlugin({
1651
1651
  // file path to build output of `@next/polyfill-nomodule`
1652
1652
  filePath: require.resolve('./polyfills/polyfill-nomodule'),
1653
- cacheKey: "15.3.1-canary.2",
1653
+ cacheKey: "15.3.1-canary.3",
1654
1654
  name: `static/chunks/polyfills${dev ? '' : '-[hash]'}.js`,
1655
1655
  minimize: false,
1656
1656
  info: {
@@ -1827,7 +1827,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
1827
1827
  // - Next.js location on disk (some loaders use absolute paths and some resolve options depend on absolute paths)
1828
1828
  // - Next.js version
1829
1829
  // - next.config.js keys that affect compilation
1830
- version: `${__dirname}|${"15.3.1-canary.2"}|${configVars}`,
1830
+ version: `${__dirname}|${"15.3.1-canary.3"}|${configVars}`,
1831
1831
  cacheDirectory: _path.default.join(distDir, 'cache', 'webpack'),
1832
1832
  // For production builds, it's more efficient to compress all cache files together instead of compression each one individually.
1833
1833
  // 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.3.1-canary.2";
16
+ const version = "15.3.1-canary.3";
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 _onrecoverableerror = require("./react-client-callbacks/on-recoverable-error");
62
62
  const _tracer = /*#__PURE__*/ _interop_require_default._(require("./tracing/tracer"));
63
63
  const _isnextroutererror = require("./components/is-next-router-error");
64
- const version = "15.3.1-canary.2";
64
+ const version = "15.3.1-canary.3";
65
65
  let router;
66
66
  const emitter = (0, _mitt.default)();
67
67
  const looseToArray = (input)=>[].slice.call(input);