next 15.4.0-canary.7 → 15.4.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 (35) 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 +2 -2
  8. package/dist/compiled/next-server/server.runtime.prod.js.map +1 -1
  9. package/dist/esm/build/index.js +2 -2
  10. package/dist/esm/build/swc/index.js +1 -1
  11. package/dist/esm/build/webpack-config.js +2 -2
  12. package/dist/esm/client/app-bootstrap.js +1 -1
  13. package/dist/esm/client/index.js +1 -1
  14. package/dist/esm/server/base-server.js +4 -2
  15. package/dist/esm/server/base-server.js.map +1 -1
  16. package/dist/esm/server/dev/hot-reloader-turbopack.js +1 -1
  17. package/dist/esm/server/dev/hot-reloader-webpack.js +1 -1
  18. package/dist/esm/server/lib/app-info-log.js +1 -1
  19. package/dist/esm/server/lib/start-server.js +1 -1
  20. package/dist/esm/server/next-server.js +2 -0
  21. package/dist/esm/server/next-server.js.map +1 -1
  22. package/dist/esm/shared/lib/canary-only.js +1 -1
  23. package/dist/server/base-server.js +4 -2
  24. package/dist/server/base-server.js.map +1 -1
  25. package/dist/server/dev/hot-reloader-turbopack.js +1 -1
  26. package/dist/server/dev/hot-reloader-webpack.js +1 -1
  27. package/dist/server/lib/app-info-log.js +1 -1
  28. package/dist/server/lib/start-server.js +1 -1
  29. package/dist/server/next-server.js +2 -0
  30. package/dist/server/next-server.js.map +1 -1
  31. package/dist/shared/lib/canary-only.js +1 -1
  32. package/dist/telemetry/anonymous-meta.js +1 -1
  33. package/dist/telemetry/events/session-stopped.js +2 -2
  34. package/dist/telemetry/events/version.js +2 -2
  35. package/package.json +15 -15
@@ -307,7 +307,7 @@ export default async function build(dir, reactProductionProfiling = false, debug
307
307
  const nextBuildSpan = trace('next-build', undefined, {
308
308
  buildMode: experimentalBuildMode,
309
309
  isTurboBuild: String(isTurbopack),
310
- version: "15.4.0-canary.7"
310
+ version: "15.4.0-canary.8"
311
311
  });
312
312
  NextBuildContext.nextBuildSpan = nextBuildSpan;
313
313
  NextBuildContext.dir = dir;
@@ -688,7 +688,7 @@ export default async function build(dir, reactProductionProfiling = false, debug
688
688
  // Files outside of the distDir can be "type": "module"
689
689
  await writeFileUtf8(path.join(distDir, 'package.json'), '{"type": "commonjs"}');
690
690
  // These are written to distDir, so they need to come after creating and cleaning distDr.
691
- await recordFrameworkVersion("15.4.0-canary.7");
691
+ await recordFrameworkVersion("15.4.0-canary.8");
692
692
  await updateBuildDiagnostics({
693
693
  buildStage: 'start'
694
694
  });
@@ -11,7 +11,7 @@ import { isDeepStrictEqual } from 'util';
11
11
  import { getDefineEnv } from '../webpack/plugins/define-env-plugin';
12
12
  import { getReactCompilerLoader } from '../get-babel-loader-config';
13
13
  import { TurbopackInternalError } from '../../shared/lib/turbopack/utils';
14
- const nextVersion = "15.4.0-canary.7";
14
+ const nextVersion = "15.4.0-canary.8";
15
15
  const ArchName = arch();
16
16
  const PlatformName = platform();
17
17
  function infoLog(...args) {
@@ -1553,7 +1553,7 @@ export default async function getBaseWebpackConfig(dir, { buildId, encryptionKey
1553
1553
  isClient && new CopyFilePlugin({
1554
1554
  // file path to build output of `@next/polyfill-nomodule`
1555
1555
  filePath: require.resolve('./polyfills/polyfill-nomodule'),
1556
- cacheKey: "15.4.0-canary.7",
1556
+ cacheKey: "15.4.0-canary.8",
1557
1557
  name: `static/chunks/polyfills${dev ? '' : '-[hash]'}.js`,
1558
1558
  minimize: false,
1559
1559
  info: {
@@ -1730,7 +1730,7 @@ export default async function getBaseWebpackConfig(dir, { buildId, encryptionKey
1730
1730
  // - Next.js location on disk (some loaders use absolute paths and some resolve options depend on absolute paths)
1731
1731
  // - Next.js version
1732
1732
  // - next.config.js keys that affect compilation
1733
- version: `${__dirname}|${"15.4.0-canary.7"}|${configVars}`,
1733
+ version: `${__dirname}|${"15.4.0-canary.8"}|${configVars}`,
1734
1734
  cacheDirectory: path.join(distDir, 'cache', 'webpack'),
1735
1735
  // For production builds, it's more efficient to compress all cache files together instead of compression each one individually.
1736
1736
  // So we disable compression here and allow the build runner to take care of compressing the cache as a whole.
@@ -3,7 +3,7 @@
3
3
  * sure the following scripts are executed in the correct order:
4
4
  * - Polyfills
5
5
  * - next/script with `beforeInteractive` strategy
6
- */ const version = "15.4.0-canary.7";
6
+ */ const version = "15.4.0-canary.8";
7
7
  window.next = {
8
8
  version,
9
9
  appDir: true
@@ -26,7 +26,7 @@ import { SearchParamsContext, PathParamsContext } from '../shared/lib/hooks-clie
26
26
  import { onRecoverableError } from './react-client-callbacks/on-recoverable-error';
27
27
  import tracer from './tracing/tracer';
28
28
  import { isNextRouterError } from './components/is-next-router-error';
29
- export const version = "15.4.0-canary.7";
29
+ export const version = "15.4.0-canary.8";
30
30
  export let router;
31
31
  export const emitter = mitt();
32
32
  const looseToArray = (input)=>[].slice.call(input);
@@ -916,9 +916,11 @@ export default class Server {
916
916
  * It is idempotent, won't fire underlying initialization more than once.
917
917
  */ async prepare() {
918
918
  if (this.prepared) return;
919
- if (this.preparedPromise === null) {
920
- // Get instrumentation module
919
+ // Get instrumentation module
920
+ if (!this.instrumentation) {
921
921
  this.instrumentation = await this.loadInstrumentationModule();
922
+ }
923
+ if (this.preparedPromise === null) {
922
924
  this.preparedPromise = this.prepareImpl().then(()=>{
923
925
  this.prepared = true;
924
926
  this.preparedPromise = null;