next 15.6.0-canary.2 → 15.6.0-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.
Files changed (51) hide show
  1. package/dist/bin/next +1 -1
  2. package/dist/build/index.js +9 -5
  3. package/dist/build/index.js.map +1 -1
  4. package/dist/build/swc/index.js +1 -1
  5. package/dist/build/templates/app-page.js +5 -1
  6. package/dist/build/templates/app-page.js.map +1 -1
  7. package/dist/build/webpack/loaders/devtool/devtool-style-inject.js +31 -26
  8. package/dist/build/webpack/loaders/devtool/devtool-style-inject.js.map +1 -1
  9. package/dist/build/webpack-config.js +2 -2
  10. package/dist/client/app-bootstrap.js +1 -1
  11. package/dist/client/index.js +1 -1
  12. package/dist/compiled/next-devtools/index.js +1 -1
  13. package/dist/compiled/next-devtools/index.js.map +1 -1
  14. package/dist/compiled/next-server/pages-api-turbo.runtime.prod.js +1 -1
  15. package/dist/compiled/next-server/pages-api-turbo.runtime.prod.js.map +1 -1
  16. package/dist/compiled/next-server/pages-turbo.runtime.prod.js +1 -1
  17. package/dist/compiled/next-server/pages-turbo.runtime.prod.js.map +1 -1
  18. package/dist/compiled/next-server/server.runtime.prod.js +5 -5
  19. package/dist/compiled/next-server/server.runtime.prod.js.map +1 -1
  20. package/dist/esm/build/index.js +9 -5
  21. package/dist/esm/build/index.js.map +1 -1
  22. package/dist/esm/build/swc/index.js +1 -1
  23. package/dist/esm/build/templates/app-page.js +5 -1
  24. package/dist/esm/build/templates/app-page.js.map +1 -1
  25. package/dist/esm/build/webpack/loaders/devtool/devtool-style-inject.js +31 -26
  26. package/dist/esm/build/webpack/loaders/devtool/devtool-style-inject.js.map +1 -1
  27. package/dist/esm/build/webpack-config.js +2 -2
  28. package/dist/esm/client/app-bootstrap.js +1 -1
  29. package/dist/esm/client/index.js +1 -1
  30. package/dist/esm/server/dev/hot-reloader-turbopack.js +1 -1
  31. package/dist/esm/server/dev/hot-reloader-webpack.js +1 -1
  32. package/dist/esm/server/lib/app-info-log.js +1 -1
  33. package/dist/esm/server/lib/router-utils/setup-dev-bundler.js +1 -1
  34. package/dist/esm/server/lib/router-utils/setup-dev-bundler.js.map +1 -1
  35. package/dist/esm/server/lib/start-server.js +1 -1
  36. package/dist/esm/server/node-environment-extensions/unhandled-rejection.js +50 -1
  37. package/dist/esm/server/node-environment-extensions/unhandled-rejection.js.map +1 -1
  38. package/dist/esm/shared/lib/canary-only.js +1 -1
  39. package/dist/server/dev/hot-reloader-turbopack.js +1 -1
  40. package/dist/server/dev/hot-reloader-webpack.js +1 -1
  41. package/dist/server/lib/app-info-log.js +1 -1
  42. package/dist/server/lib/router-utils/setup-dev-bundler.js +1 -1
  43. package/dist/server/lib/router-utils/setup-dev-bundler.js.map +1 -1
  44. package/dist/server/lib/start-server.js +1 -1
  45. package/dist/server/node-environment-extensions/unhandled-rejection.js +50 -1
  46. package/dist/server/node-environment-extensions/unhandled-rejection.js.map +1 -1
  47. package/dist/shared/lib/canary-only.js +1 -1
  48. package/dist/telemetry/anonymous-meta.js +1 -1
  49. package/dist/telemetry/events/session-stopped.js +2 -2
  50. package/dist/telemetry/events/version.js +2 -2
  51. 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.6.0-canary.2"}`, '-v, --version', 'Outputs the Next.js version.');
82
+ }).helpCommand(false).helpOption('-h, --help', 'Displays this message.').version(`Next.js v${"15.6.0-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('--debug-prerender', 'Enables debug mode for prerendering. Not for production use!').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',
@@ -371,7 +371,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
371
371
  const nextBuildSpan = (0, _trace.trace)('next-build', undefined, {
372
372
  buildMode: experimentalBuildMode,
373
373
  isTurboBuild: String(isTurbopack),
374
- version: "15.6.0-canary.2"
374
+ version: "15.6.0-canary.3"
375
375
  });
376
376
  _buildcontext.NextBuildContext.nextBuildSpan = nextBuildSpan;
377
377
  _buildcontext.NextBuildContext.dir = dir;
@@ -814,7 +814,11 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
814
814
  dynamicRSCPrerender: // Only enable RDC for Navigations if the feature is enabled.
815
815
  // Once we've made RDC for Navigations the default for PPR, we
816
816
  // can remove the check for `config.experimental.rdcForNavigations`.
817
- isAppPPREnabled && config.experimental.rdcForNavigations === true
817
+ isAppPPREnabled && config.experimental.rdcForNavigations === true && // Temporarily we require that clientParamParsing is enabled for
818
+ // RDC for Navigations. This is due to a builder configuration
819
+ // bug that manifests as invalid query params being passed to
820
+ // the resume lambdas.
821
+ config.experimental.clientParamParsing === true
818
822
  },
819
823
  rewriteHeaders: {
820
824
  pathHeader: _approuterheaders.NEXT_REWRITTEN_PATH_HEADER,
@@ -846,7 +850,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
846
850
  // Files outside of the distDir can be "type": "module"
847
851
  await writeFileUtf8(_path.default.join(distDir, 'package.json'), '{"type": "commonjs"}');
848
852
  // These are written to distDir, so they need to come after creating and cleaning distDr.
849
- await (0, _builddiagnostics.recordFrameworkVersion)("15.6.0-canary.2");
853
+ await (0, _builddiagnostics.recordFrameworkVersion)("15.6.0-canary.3");
850
854
  await (0, _builddiagnostics.updateBuildDiagnostics)({
851
855
  buildStage: 'start'
852
856
  });
@@ -1238,7 +1242,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
1238
1242
  });
1239
1243
  if (pageType === 'app' && originalAppPath) {
1240
1244
  appNormalizedPaths.set(originalAppPath, page);
1241
- // Edge runtime doesn't support static generation.
1245
+ // TODO-APP: handle prerendering with edge
1242
1246
  if ((0, _isedgeruntime.isEdgeRuntime)(pageRuntime)) {
1243
1247
  isStatic = false;
1244
1248
  isSSG = false;
@@ -2505,7 +2509,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
2505
2509
  distDir,
2506
2510
  config,
2507
2511
  staticPages,
2508
- nextVersion: "15.6.0-canary.2",
2512
+ nextVersion: "15.6.0-canary.3",
2509
2513
  tracingRoot: outputFileTracingRoot,
2510
2514
  hasNodeMiddleware,
2511
2515
  hasInstrumentationHook,