next 15.3.0-canary.3 → 15.3.0-canary.5

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 (36) hide show
  1. package/dist/bin/next +1 -1
  2. package/dist/build/index.js +9 -10
  3. package/dist/build/index.js.map +1 -1
  4. package/dist/build/swc/index.js +1 -1
  5. package/dist/build/webpack-config.js +2 -2
  6. package/dist/client/app-bootstrap.js +1 -1
  7. package/dist/client/index.js +1 -1
  8. package/dist/esm/build/index.js +9 -10
  9. package/dist/esm/build/index.js.map +1 -1
  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/lib/inline-static-env.js +13 -18
  15. package/dist/esm/lib/inline-static-env.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/router-utils/block-cross-site.js +3 -2
  20. package/dist/esm/server/lib/router-utils/block-cross-site.js.map +1 -1
  21. package/dist/esm/server/lib/start-server.js +1 -1
  22. package/dist/esm/shared/lib/canary-only.js +1 -1
  23. package/dist/lib/inline-static-env.d.ts +1 -2
  24. package/dist/lib/inline-static-env.js +13 -18
  25. package/dist/lib/inline-static-env.js.map +1 -1
  26. package/dist/server/dev/hot-reloader-turbopack.js +1 -1
  27. package/dist/server/dev/hot-reloader-webpack.js +1 -1
  28. package/dist/server/lib/app-info-log.js +1 -1
  29. package/dist/server/lib/router-utils/block-cross-site.js +3 -2
  30. package/dist/server/lib/router-utils/block-cross-site.js.map +1 -1
  31. package/dist/server/lib/start-server.js +1 -1
  32. package/dist/shared/lib/canary-only.js +1 -1
  33. package/dist/telemetry/anonymous-meta.js +1 -1
  34. package/dist/telemetry/events/session-stopped.js +2 -2
  35. package/dist/telemetry/events/version.js +2 -2
  36. package/package.json +15 -15
@@ -119,7 +119,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
119
119
  }
120
120
  return newObj;
121
121
  }
122
- const nextVersion = "15.3.0-canary.3";
122
+ const nextVersion = "15.3.0-canary.5";
123
123
  const ArchName = (0, _os.arch)();
124
124
  const PlatformName = (0, _os.platform)();
125
125
  function infoLog(...args) {
@@ -1626,7 +1626,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
1626
1626
  isClient && new _copyfileplugin.CopyFilePlugin({
1627
1627
  // file path to build output of `@next/polyfill-nomodule`
1628
1628
  filePath: require.resolve('./polyfills/polyfill-nomodule'),
1629
- cacheKey: "15.3.0-canary.3",
1629
+ cacheKey: "15.3.0-canary.5",
1630
1630
  name: `static/chunks/polyfills${dev ? '' : '-[hash]'}.js`,
1631
1631
  minimize: false,
1632
1632
  info: {
@@ -1803,7 +1803,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
1803
1803
  // - Next.js location on disk (some loaders use absolute paths and some resolve options depend on absolute paths)
1804
1804
  // - Next.js version
1805
1805
  // - next.config.js keys that affect compilation
1806
- version: `${__dirname}|${"15.3.0-canary.3"}|${configVars}`,
1806
+ version: `${__dirname}|${"15.3.0-canary.5"}|${configVars}`,
1807
1807
  cacheDirectory: _path.default.join(distDir, 'cache', 'webpack'),
1808
1808
  // For production builds, it's more efficient to compress all cache files together instead of compression each one individually.
1809
1809
  // 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.0-canary.3";
16
+ const version = "15.3.0-canary.5";
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.0-canary.3";
64
+ const version = "15.3.0-canary.5";
65
65
  let router;
66
66
  const emitter = (0, _mitt.default)();
67
67
  const looseToArray = (input)=>[].slice.call(input);
@@ -300,7 +300,7 @@ export default async function build(dir, reactProductionProfiling = false, debug
300
300
  const nextBuildSpan = trace('next-build', undefined, {
301
301
  buildMode: experimentalBuildMode,
302
302
  isTurboBuild: String(turboNextBuild),
303
- version: "15.3.0-canary.3"
303
+ version: "15.3.0-canary.5"
304
304
  });
305
305
  NextBuildContext.nextBuildSpan = nextBuildSpan;
306
306
  NextBuildContext.dir = dir;
@@ -664,7 +664,7 @@ export default async function build(dir, reactProductionProfiling = false, debug
664
664
  // Files outside of the distDir can be "type": "module"
665
665
  await writeFileUtf8(path.join(distDir, 'package.json'), '{"type": "commonjs"}');
666
666
  // These are written to distDir, so they need to come after creating and cleaning distDr.
667
- await recordFrameworkVersion("15.3.0-canary.3");
667
+ await recordFrameworkVersion("15.3.0-canary.5");
668
668
  await updateBuildDiagnostics({
669
669
  buildStage: 'start'
670
670
  });
@@ -1242,7 +1242,7 @@ export default async function build(dir, reactProductionProfiling = false, debug
1242
1242
  cacheHandlers: normalizedCacheHandlers,
1243
1243
  trustHostHeader: ciEnvironment.hasNextSupport,
1244
1244
  // @ts-expect-error internal field TODO: fix this, should use a separate mechanism to pass the info.
1245
- isExperimentalCompile: isCompileMode
1245
+ isExperimentalCompile: isCompileMode || isGenerateMode && config.experimental.generateOnlyEnv
1246
1246
  }
1247
1247
  },
1248
1248
  appDir: dir,
@@ -1410,18 +1410,17 @@ export default async function build(dir, reactProductionProfiling = false, debug
1410
1410
  await nextBuildSpan.traceChild('inline-static-env').traceAsyncFn(async ()=>{
1411
1411
  await inlineStaticEnv({
1412
1412
  distDir,
1413
- config,
1414
- buildId
1413
+ config
1415
1414
  });
1416
1415
  });
1417
1416
  // users might only want to inline env during experimental generate
1418
- // instead of also prerendering e.g. for testmode so exit after
1417
+ // instead of also prerendering e.g. for test mode so exit after
1419
1418
  if (config.experimental.generateOnlyEnv) {
1420
- Log.info('Only inlining static env due to experimental.generateOnlyEnv');
1419
+ Log.info('Inlined static env, exiting due to experimental.generateOnlyEnv');
1420
+ await flushAllTraces();
1421
+ teardownTraceSubscriber();
1422
+ process.exit(0);
1421
1423
  }
1422
- await flushAllTraces();
1423
- teardownTraceSubscriber();
1424
- process.exit(0);
1425
1424
  }
1426
1425
  const middlewareManifest = await readManifest(path.join(distDir, SERVER_DIRECTORY, MIDDLEWARE_MANIFEST));
1427
1426
  const prerenderManifest = {