next 15.4.0-canary.48 → 15.4.0-canary.49

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 (50) 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 +6 -2
  5. package/dist/build/webpack-config.js.map +1 -1
  6. package/dist/client/app-bootstrap.js +1 -1
  7. package/dist/client/components/react-dev-overlay/utils/launch-editor.d.ts +2 -2
  8. package/dist/client/components/react-dev-overlay/utils/launch-editor.js +30 -7
  9. package/dist/client/components/react-dev-overlay/utils/launch-editor.js.map +1 -1
  10. package/dist/client/index.js +1 -1
  11. package/dist/compiled/next-server/app-page-experimental.runtime.dev.js +2 -2
  12. package/dist/compiled/next-server/app-page-turbo-experimental.runtime.dev.js +2 -2
  13. package/dist/compiled/next-server/app-page-turbo.runtime.dev.js +2 -2
  14. package/dist/compiled/next-server/app-page.runtime.dev.js +2 -2
  15. package/dist/compiled/next-server/pages-api.runtime.dev.js +1 -1
  16. package/dist/compiled/next-server/pages-api.runtime.dev.js.map +1 -1
  17. package/dist/compiled/next-server/pages.runtime.dev.js +2 -2
  18. package/dist/compiled/next-server/pages.runtime.dev.js.map +1 -1
  19. package/dist/compiled/next-server/server.runtime.prod.js +1 -1
  20. package/dist/compiled/next-server/server.runtime.prod.js.map +1 -1
  21. package/dist/esm/build/index.js +2 -2
  22. package/dist/esm/build/swc/index.js +1 -1
  23. package/dist/esm/build/webpack-config.js +6 -2
  24. package/dist/esm/build/webpack-config.js.map +1 -1
  25. package/dist/esm/client/app-bootstrap.js +1 -1
  26. package/dist/esm/client/components/react-dev-overlay/utils/launch-editor.js +16 -6
  27. package/dist/esm/client/components/react-dev-overlay/utils/launch-editor.js.map +1 -1
  28. package/dist/esm/client/index.js +1 -1
  29. package/dist/esm/export/worker.js +8 -0
  30. package/dist/esm/export/worker.js.map +1 -1
  31. package/dist/esm/server/base-server.js +8 -4
  32. package/dist/esm/server/base-server.js.map +1 -1
  33. package/dist/esm/server/dev/hot-reloader-turbopack.js +1 -1
  34. package/dist/esm/server/dev/hot-reloader-webpack.js +1 -1
  35. package/dist/esm/server/lib/app-info-log.js +1 -1
  36. package/dist/esm/server/lib/start-server.js +1 -1
  37. package/dist/esm/shared/lib/canary-only.js +1 -1
  38. package/dist/export/worker.js +8 -0
  39. package/dist/export/worker.js.map +1 -1
  40. package/dist/server/base-server.js +7 -3
  41. package/dist/server/base-server.js.map +1 -1
  42. package/dist/server/dev/hot-reloader-turbopack.js +1 -1
  43. package/dist/server/dev/hot-reloader-webpack.js +1 -1
  44. package/dist/server/lib/app-info-log.js +1 -1
  45. package/dist/server/lib/start-server.js +1 -1
  46. package/dist/shared/lib/canary-only.js +1 -1
  47. package/dist/telemetry/anonymous-meta.js +1 -1
  48. package/dist/telemetry/events/session-stopped.js +2 -2
  49. package/dist/telemetry/events/version.js +2 -2
  50. 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.4.0-canary.48"}`, '-v, --version', 'Outputs the Next.js version.');
82
+ }).helpCommand(false).helpOption('-h, --help', 'Displays this message.').version(`Next.js v${"15.4.0-canary.49"}`, '-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',
@@ -364,7 +364,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
364
364
  const nextBuildSpan = (0, _trace.trace)('next-build', undefined, {
365
365
  buildMode: experimentalBuildMode,
366
366
  isTurboBuild: String(isTurbopack),
367
- version: "15.4.0-canary.48"
367
+ version: "15.4.0-canary.49"
368
368
  });
369
369
  _buildcontext.NextBuildContext.nextBuildSpan = nextBuildSpan;
370
370
  _buildcontext.NextBuildContext.dir = dir;
@@ -746,7 +746,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
746
746
  // Files outside of the distDir can be "type": "module"
747
747
  await writeFileUtf8(_path.default.join(distDir, 'package.json'), '{"type": "commonjs"}');
748
748
  // These are written to distDir, so they need to come after creating and cleaning distDr.
749
- await (0, _builddiagnostics.recordFrameworkVersion)("15.4.0-canary.48");
749
+ await (0, _builddiagnostics.recordFrameworkVersion)("15.4.0-canary.49");
750
750
  await (0, _builddiagnostics.updateBuildDiagnostics)({
751
751
  buildStage: 'start'
752
752
  });
@@ -123,7 +123,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
123
123
  }
124
124
  return newObj;
125
125
  }
126
- const nextVersion = "15.4.0-canary.48";
126
+ const nextVersion = "15.4.0-canary.49";
127
127
  const ArchName = (0, _os.arch)();
128
128
  const PlatformName = (0, _os.platform)();
129
129
  function infoLog(...args) {
@@ -590,6 +590,10 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
590
590
  isNodeServer ? new _optionalpeerdependencyresolveplugin.OptionalPeerDependencyResolverPlugin() : undefined
591
591
  ].filter(Boolean),
592
592
  ...isRspack && jsConfigPath ? {
593
+ // Skip paths that are routed to a .d.ts file
594
+ restrictions: [
595
+ /^(?!.*\.d\.ts$).*$/
596
+ ],
593
597
  tsConfig: {
594
598
  configFile: jsConfigPath
595
599
  }
@@ -1671,7 +1675,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
1671
1675
  isClient && new _copyfileplugin.CopyFilePlugin({
1672
1676
  // file path to build output of `@next/polyfill-nomodule`
1673
1677
  filePath: require.resolve('./polyfills/polyfill-nomodule'),
1674
- cacheKey: "15.4.0-canary.48",
1678
+ cacheKey: "15.4.0-canary.49",
1675
1679
  name: `static/chunks/polyfills${dev ? '' : '-[hash]'}.js`,
1676
1680
  minimize: false,
1677
1681
  info: {
@@ -1848,7 +1852,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
1848
1852
  // - Next.js location on disk (some loaders use absolute paths and some resolve options depend on absolute paths)
1849
1853
  // - Next.js version
1850
1854
  // - next.config.js keys that affect compilation
1851
- version: `${__dirname}|${"15.4.0-canary.48"}|${configVars}`,
1855
+ version: `${__dirname}|${"15.4.0-canary.49"}|${configVars}`,
1852
1856
  cacheDirectory: _path.default.join(distDir, 'cache', 'webpack'),
1853
1857
  // For production builds, it's more efficient to compress all cache files together instead of compression each one individually.
1854
1858
  // So we disable compression here and allow the build runner to take care of compressing the cache as a whole.