next 15.6.0-canary.6 → 15.6.0-canary.8

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 (32) hide show
  1. package/dist/bin/next +1 -1
  2. package/dist/build/index.js +3 -3
  3. package/dist/build/swc/index.js +1 -1
  4. package/dist/build/webpack-config.js +4 -4
  5. package/dist/build/webpack-config.js.map +1 -1
  6. package/dist/client/app-bootstrap.js +1 -1
  7. package/dist/client/index.js +1 -1
  8. package/dist/compiled/babel-packages/packages-bundle.js +7 -7
  9. package/dist/esm/build/index.js +3 -3
  10. package/dist/esm/build/swc/index.js +1 -1
  11. package/dist/esm/build/webpack-config.js +4 -4
  12. package/dist/esm/build/webpack-config.js.map +1 -1
  13. package/dist/esm/client/app-bootstrap.js +1 -1
  14. package/dist/esm/client/index.js +1 -1
  15. package/dist/esm/server/dev/hot-reloader-turbopack.js +1 -1
  16. package/dist/esm/server/dev/hot-reloader-webpack.js +1 -1
  17. package/dist/esm/server/lib/app-info-log.js +1 -1
  18. package/dist/esm/server/lib/start-server.js +1 -1
  19. package/dist/esm/server/web/spec-extension/unstable-cache.js +26 -6
  20. package/dist/esm/server/web/spec-extension/unstable-cache.js.map +1 -1
  21. package/dist/esm/shared/lib/canary-only.js +1 -1
  22. package/dist/server/dev/hot-reloader-turbopack.js +1 -1
  23. package/dist/server/dev/hot-reloader-webpack.js +1 -1
  24. package/dist/server/lib/app-info-log.js +1 -1
  25. package/dist/server/lib/start-server.js +1 -1
  26. package/dist/server/web/spec-extension/unstable-cache.js +26 -6
  27. package/dist/server/web/spec-extension/unstable-cache.js.map +1 -1
  28. package/dist/shared/lib/canary-only.js +1 -1
  29. package/dist/telemetry/anonymous-meta.js +1 -1
  30. package/dist/telemetry/events/session-stopped.js +2 -2
  31. package/dist/telemetry/events/version.js +2 -2
  32. package/package.json +15 -15
@@ -303,7 +303,7 @@ export default async function build(dir, reactProductionProfiling = false, debug
303
303
  const nextBuildSpan = trace('next-build', undefined, {
304
304
  buildMode: experimentalBuildMode,
305
305
  isTurboBuild: String(isTurbopack),
306
- version: "15.6.0-canary.6"
306
+ version: "15.6.0-canary.8"
307
307
  });
308
308
  NextBuildContext.nextBuildSpan = nextBuildSpan;
309
309
  NextBuildContext.dir = dir;
@@ -782,7 +782,7 @@ export default async function build(dir, reactProductionProfiling = false, debug
782
782
  // Files outside of the distDir can be "type": "module"
783
783
  await writeFileUtf8(path.join(distDir, 'package.json'), '{"type": "commonjs"}');
784
784
  // These are written to distDir, so they need to come after creating and cleaning distDr.
785
- await recordFrameworkVersion("15.6.0-canary.6");
785
+ await recordFrameworkVersion("15.6.0-canary.8");
786
786
  await updateBuildDiagnostics({
787
787
  buildStage: 'start'
788
788
  });
@@ -2441,7 +2441,7 @@ export default async function build(dir, reactProductionProfiling = false, debug
2441
2441
  distDir,
2442
2442
  config,
2443
2443
  staticPages,
2444
- nextVersion: "15.6.0-canary.6",
2444
+ nextVersion: "15.6.0-canary.8",
2445
2445
  tracingRoot: outputFileTracingRoot,
2446
2446
  hasNodeMiddleware,
2447
2447
  hasInstrumentationHook,
@@ -11,7 +11,7 @@ import { isDeepStrictEqual } from 'util';
11
11
  import { getDefineEnv } from '../define-env';
12
12
  import { getReactCompilerLoader } from '../get-babel-loader-config';
13
13
  import { throwTurbopackInternalError } from '../../shared/lib/turbopack/internal-error';
14
- const nextVersion = "15.6.0-canary.6";
14
+ const nextVersion = "15.6.0-canary.8";
15
15
  const ArchName = arch();
16
16
  const PlatformName = platform();
17
17
  function infoLog(...args) {
@@ -817,13 +817,13 @@ export default async function getBaseWebpackConfig(dir, { buildId, encryptionKey
817
817
  // and all other chunk depend on them so there is no
818
818
  // duplication that need to be pulled out.
819
819
  chunks: isRspack ? // in rspack
820
- /(?!polyfills|main|pages\/_app)/ : (chunk)=>!/^(polyfills|main|pages\/_app)$/.test(chunk.name),
820
+ /^(?!(polyfills|main|pages\/_app)$).*$/ : (chunk)=>!/^(polyfills|main|pages\/_app)$/.test(chunk.name),
821
821
  cacheGroups: isRspack ? {
822
822
  framework: {
823
823
  chunks: 'all',
824
824
  name: 'framework',
825
825
  layer: RSPACK_DEFAULT_LAYERS_REGEX,
826
- test: /[/]node_modules[/](react|react-dom|next[/]dist[/]compiled[/](react|react-dom)(-experimental)?)[/]/,
826
+ test: new RegExp(`^(${topLevelFrameworkPaths.map((p)=>`(${escapeStringRegexp(p)})`).join('|')})`),
827
827
  priority: 40,
828
828
  enforce: true
829
829
  },
@@ -1608,7 +1608,7 @@ export default async function getBaseWebpackConfig(dir, { buildId, encryptionKey
1608
1608
  isClient && new CopyFilePlugin({
1609
1609
  // file path to build output of `@next/polyfill-nomodule`
1610
1610
  filePath: require.resolve('./polyfills/polyfill-nomodule'),
1611
- cacheKey: "15.6.0-canary.6",
1611
+ cacheKey: "15.6.0-canary.8",
1612
1612
  name: `static/chunks/polyfills${dev ? '' : '-[hash]'}.js`,
1613
1613
  minimize: false,
1614
1614
  info: {
@@ -1792,7 +1792,7 @@ export default async function getBaseWebpackConfig(dir, { buildId, encryptionKey
1792
1792
  // - Next.js location on disk (some loaders use absolute paths and some resolve options depend on absolute paths)
1793
1793
  // - Next.js version
1794
1794
  // - next.config.js keys that affect compilation
1795
- version: `${__dirname}|${"15.6.0-canary.6"}|${configVars}`,
1795
+ version: `${__dirname}|${"15.6.0-canary.8"}|${configVars}`,
1796
1796
  cacheDirectory: path.join(distDir, 'cache', 'webpack'),
1797
1797
  // For production builds, it's more efficient to compress all cache files together instead of compression each one individually.
1798
1798
  // So we disable compression here and allow the build runner to take care of compressing the cache as a whole.