next 15.4.2-canary.36 → 15.4.2-canary.38

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 (58) 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/blocks/css/loaders/next-font.js +1 -0
  5. package/dist/build/webpack/config/blocks/css/loaders/next-font.js.map +1 -1
  6. package/dist/build/webpack/config/index.d.ts +2 -1
  7. package/dist/build/webpack/config/index.js +2 -1
  8. package/dist/build/webpack/config/index.js.map +1 -1
  9. package/dist/build/webpack/config/utils.d.ts +1 -0
  10. package/dist/build/webpack/config/utils.js.map +1 -1
  11. package/dist/build/webpack/loaders/next-font-loader/index.js +2 -1
  12. package/dist/build/webpack/loaders/next-font-loader/index.js.map +1 -1
  13. package/dist/build/webpack-config.js +3 -2
  14. package/dist/build/webpack-config.js.map +1 -1
  15. package/dist/client/app-bootstrap.js +1 -1
  16. package/dist/client/index.js +1 -1
  17. package/dist/compiled/@next/font/dist/local/loader.js +6 -2
  18. package/dist/compiled/image-detector/detector.js +1 -0
  19. package/dist/compiled/next-server/pages-api-turbo.runtime.prod.js +1 -1
  20. package/dist/compiled/next-server/pages-api-turbo.runtime.prod.js.map +1 -1
  21. package/dist/compiled/next-server/pages-api.runtime.prod.js +1 -1
  22. package/dist/compiled/next-server/pages-api.runtime.prod.js.map +1 -1
  23. package/dist/compiled/next-server/pages-turbo.runtime.prod.js +1 -1
  24. package/dist/compiled/next-server/pages-turbo.runtime.prod.js.map +1 -1
  25. package/dist/compiled/next-server/pages.runtime.prod.js +1 -1
  26. package/dist/compiled/next-server/pages.runtime.prod.js.map +1 -1
  27. package/dist/esm/build/index.js +2 -2
  28. package/dist/esm/build/swc/index.js +1 -1
  29. package/dist/esm/build/webpack/config/blocks/css/loaders/next-font.js +1 -0
  30. package/dist/esm/build/webpack/config/blocks/css/loaders/next-font.js.map +1 -1
  31. package/dist/esm/build/webpack/config/index.js +2 -1
  32. package/dist/esm/build/webpack/config/index.js.map +1 -1
  33. package/dist/esm/build/webpack/config/utils.js.map +1 -1
  34. package/dist/esm/build/webpack/loaders/next-font-loader/index.js +2 -1
  35. package/dist/esm/build/webpack/loaders/next-font-loader/index.js.map +1 -1
  36. package/dist/esm/build/webpack-config.js +3 -2
  37. package/dist/esm/build/webpack-config.js.map +1 -1
  38. package/dist/esm/client/app-bootstrap.js +1 -1
  39. package/dist/esm/client/index.js +1 -1
  40. package/dist/esm/server/dev/hot-reloader-turbopack.js +1 -1
  41. package/dist/esm/server/dev/hot-reloader-webpack.js +1 -1
  42. package/dist/esm/server/image-optimizer.js +23 -3
  43. package/dist/esm/server/image-optimizer.js.map +1 -1
  44. package/dist/esm/server/lib/app-info-log.js +1 -1
  45. package/dist/esm/server/lib/start-server.js +1 -1
  46. package/dist/esm/shared/lib/canary-only.js +1 -1
  47. package/dist/server/dev/hot-reloader-turbopack.js +1 -1
  48. package/dist/server/dev/hot-reloader-webpack.js +1 -1
  49. package/dist/server/image-optimizer.js +23 -3
  50. package/dist/server/image-optimizer.js.map +1 -1
  51. package/dist/server/lib/app-info-log.js +1 -1
  52. package/dist/server/lib/start-server.js +1 -1
  53. package/dist/shared/lib/canary-only.js +1 -1
  54. package/dist/telemetry/anonymous-meta.js +1 -1
  55. package/dist/telemetry/events/session-stopped.js +2 -2
  56. package/dist/telemetry/events/version.js +2 -2
  57. package/font/index.d.ts +1 -0
  58. 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.2-canary.36"}`, '-v, --version', 'Outputs the Next.js version.');
82
+ }).helpCommand(false).helpOption('-h, --help', 'Displays this message.').version(`Next.js v${"15.4.2-canary.38"}`, '-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',
@@ -367,7 +367,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
367
367
  const nextBuildSpan = (0, _trace.trace)('next-build', undefined, {
368
368
  buildMode: experimentalBuildMode,
369
369
  isTurboBuild: String(isTurbopack),
370
- version: "15.4.2-canary.36"
370
+ version: "15.4.2-canary.38"
371
371
  });
372
372
  _buildcontext.NextBuildContext.nextBuildSpan = nextBuildSpan;
373
373
  _buildcontext.NextBuildContext.dir = dir;
@@ -804,7 +804,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
804
804
  // Files outside of the distDir can be "type": "module"
805
805
  await writeFileUtf8(_path.default.join(distDir, 'package.json'), '{"type": "commonjs"}');
806
806
  // These are written to distDir, so they need to come after creating and cleaning distDr.
807
- await (0, _builddiagnostics.recordFrameworkVersion)("15.4.2-canary.36");
807
+ await (0, _builddiagnostics.recordFrameworkVersion)("15.4.2-canary.38");
808
808
  await (0, _builddiagnostics.updateBuildDiagnostics)({
809
809
  buildStage: 'start'
810
810
  });
@@ -131,7 +131,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
131
131
  }
132
132
  return newObj;
133
133
  }
134
- const nextVersion = "15.4.2-canary.36";
134
+ const nextVersion = "15.4.2-canary.38";
135
135
  const ArchName = (0, _os.arch)();
136
136
  const PlatformName = (0, _os.platform)();
137
137
  function infoLog(...args) {
@@ -52,6 +52,7 @@ function getNextFontLoader(ctx, postcss, fontLoaderPath) {
52
52
  isDev: ctx.isDevelopment,
53
53
  isServer: ctx.isServer,
54
54
  assetPrefix: ctx.assetPrefix,
55
+ deploymentId: ctx.deploymentId,
55
56
  fontLoaderPath,
56
57
  postcss
57
58
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../../src/build/webpack/config/blocks/css/loaders/next-font.ts"],"sourcesContent":["import type { webpack } from 'next/dist/compiled/webpack/webpack'\nimport type { ConfigurationContext } from '../../../utils'\nimport { getClientStyleLoader } from './client'\nimport { cssFileResolve } from './file-resolve'\n\nexport function getNextFontLoader(\n ctx: ConfigurationContext,\n postcss: any,\n fontLoaderPath: string\n): webpack.RuleSetUseItem[] {\n const loaders: webpack.RuleSetUseItem[] = []\n\n if (ctx.isClient) {\n // Add appropriate development mode or production mode style\n // loader\n loaders.push(\n getClientStyleLoader({\n hasAppDir: ctx.hasAppDir,\n isDevelopment: ctx.isDevelopment,\n assetPrefix: ctx.assetPrefix,\n })\n )\n }\n\n loaders.push({\n loader: require.resolve('../../../../loaders/css-loader/src'),\n options: {\n postcss,\n importLoaders: 1,\n // Use CJS mode for backwards compatibility:\n esModule: false,\n url: (url: string, resourcePath: string) =>\n cssFileResolve(url, resourcePath, ctx.experimental.urlImports),\n import: (url: string, _: any, resourcePath: string) =>\n cssFileResolve(url, resourcePath, ctx.experimental.urlImports),\n modules: {\n // Do not transform class names (CJS mode backwards compatibility):\n exportLocalsConvention: 'asIs',\n // Server-side (Node.js) rendering support:\n exportOnlyLocals: ctx.isServer,\n // Disallow global style exports so we can code-split CSS and\n // not worry about loading order.\n mode: 'pure',\n getLocalIdent: (\n _context: any,\n _localIdentName: any,\n exportName: string,\n _options: any,\n meta: any\n ) => {\n // hash from next-font-loader\n return `__${exportName}_${meta.fontFamilyHash}`\n },\n },\n fontLoader: true,\n },\n })\n\n loaders.push({\n loader: 'next-font-loader',\n options: {\n isDev: ctx.isDevelopment,\n isServer: ctx.isServer,\n assetPrefix: ctx.assetPrefix,\n fontLoaderPath,\n postcss,\n },\n })\n\n return loaders\n}\n"],"names":["getNextFontLoader","ctx","postcss","fontLoaderPath","loaders","isClient","push","getClientStyleLoader","hasAppDir","isDevelopment","assetPrefix","loader","require","resolve","options","importLoaders","esModule","url","resourcePath","cssFileResolve","experimental","urlImports","import","_","modules","exportLocalsConvention","exportOnlyLocals","isServer","mode","getLocalIdent","_context","_localIdentName","exportName","_options","meta","fontFamilyHash","fontLoader","isDev"],"mappings":";;;;+BAKgBA;;;eAAAA;;;wBAHqB;6BACN;AAExB,SAASA,kBACdC,GAAyB,EACzBC,OAAY,EACZC,cAAsB;IAEtB,MAAMC,UAAoC,EAAE;IAE5C,IAAIH,IAAII,QAAQ,EAAE;QAChB,4DAA4D;QAC5D,SAAS;QACTD,QAAQE,IAAI,CACVC,IAAAA,4BAAoB,EAAC;YACnBC,WAAWP,IAAIO,SAAS;YACxBC,eAAeR,IAAIQ,aAAa;YAChCC,aAAaT,IAAIS,WAAW;QAC9B;IAEJ;IAEAN,QAAQE,IAAI,CAAC;QACXK,QAAQC,QAAQC,OAAO,CAAC;QACxBC,SAAS;YACPZ;YACAa,eAAe;YACf,4CAA4C;YAC5CC,UAAU;YACVC,KAAK,CAACA,KAAaC,eACjBC,IAAAA,2BAAc,EAACF,KAAKC,cAAcjB,IAAImB,YAAY,CAACC,UAAU;YAC/DC,QAAQ,CAACL,KAAaM,GAAQL,eAC5BC,IAAAA,2BAAc,EAACF,KAAKC,cAAcjB,IAAImB,YAAY,CAACC,UAAU;YAC/DG,SAAS;gBACP,mEAAmE;gBACnEC,wBAAwB;gBACxB,2CAA2C;gBAC3CC,kBAAkBzB,IAAI0B,QAAQ;gBAC9B,6DAA6D;gBAC7D,iCAAiC;gBACjCC,MAAM;gBACNC,eAAe,CACbC,UACAC,iBACAC,YACAC,UACAC;oBAEA,6BAA6B;oBAC7B,OAAO,CAAC,EAAE,EAAEF,WAAW,CAAC,EAAEE,KAAKC,cAAc,EAAE;gBACjD;YACF;YACAC,YAAY;QACd;IACF;IAEAhC,QAAQE,IAAI,CAAC;QACXK,QAAQ;QACRG,SAAS;YACPuB,OAAOpC,IAAIQ,aAAa;YACxBkB,UAAU1B,IAAI0B,QAAQ;YACtBjB,aAAaT,IAAIS,WAAW;YAC5BP;YACAD;QACF;IACF;IAEA,OAAOE;AACT","ignoreList":[0]}
1
+ {"version":3,"sources":["../../../../../../../src/build/webpack/config/blocks/css/loaders/next-font.ts"],"sourcesContent":["import type { webpack } from 'next/dist/compiled/webpack/webpack'\nimport type { ConfigurationContext } from '../../../utils'\nimport { getClientStyleLoader } from './client'\nimport { cssFileResolve } from './file-resolve'\n\nexport function getNextFontLoader(\n ctx: ConfigurationContext,\n postcss: any,\n fontLoaderPath: string\n): webpack.RuleSetUseItem[] {\n const loaders: webpack.RuleSetUseItem[] = []\n\n if (ctx.isClient) {\n // Add appropriate development mode or production mode style\n // loader\n loaders.push(\n getClientStyleLoader({\n hasAppDir: ctx.hasAppDir,\n isDevelopment: ctx.isDevelopment,\n assetPrefix: ctx.assetPrefix,\n })\n )\n }\n\n loaders.push({\n loader: require.resolve('../../../../loaders/css-loader/src'),\n options: {\n postcss,\n importLoaders: 1,\n // Use CJS mode for backwards compatibility:\n esModule: false,\n url: (url: string, resourcePath: string) =>\n cssFileResolve(url, resourcePath, ctx.experimental.urlImports),\n import: (url: string, _: any, resourcePath: string) =>\n cssFileResolve(url, resourcePath, ctx.experimental.urlImports),\n modules: {\n // Do not transform class names (CJS mode backwards compatibility):\n exportLocalsConvention: 'asIs',\n // Server-side (Node.js) rendering support:\n exportOnlyLocals: ctx.isServer,\n // Disallow global style exports so we can code-split CSS and\n // not worry about loading order.\n mode: 'pure',\n getLocalIdent: (\n _context: any,\n _localIdentName: any,\n exportName: string,\n _options: any,\n meta: any\n ) => {\n // hash from next-font-loader\n return `__${exportName}_${meta.fontFamilyHash}`\n },\n },\n fontLoader: true,\n },\n })\n\n loaders.push({\n loader: 'next-font-loader',\n options: {\n isDev: ctx.isDevelopment,\n isServer: ctx.isServer,\n assetPrefix: ctx.assetPrefix,\n deploymentId: ctx.deploymentId,\n fontLoaderPath,\n postcss,\n },\n })\n\n return loaders\n}\n"],"names":["getNextFontLoader","ctx","postcss","fontLoaderPath","loaders","isClient","push","getClientStyleLoader","hasAppDir","isDevelopment","assetPrefix","loader","require","resolve","options","importLoaders","esModule","url","resourcePath","cssFileResolve","experimental","urlImports","import","_","modules","exportLocalsConvention","exportOnlyLocals","isServer","mode","getLocalIdent","_context","_localIdentName","exportName","_options","meta","fontFamilyHash","fontLoader","isDev","deploymentId"],"mappings":";;;;+BAKgBA;;;eAAAA;;;wBAHqB;6BACN;AAExB,SAASA,kBACdC,GAAyB,EACzBC,OAAY,EACZC,cAAsB;IAEtB,MAAMC,UAAoC,EAAE;IAE5C,IAAIH,IAAII,QAAQ,EAAE;QAChB,4DAA4D;QAC5D,SAAS;QACTD,QAAQE,IAAI,CACVC,IAAAA,4BAAoB,EAAC;YACnBC,WAAWP,IAAIO,SAAS;YACxBC,eAAeR,IAAIQ,aAAa;YAChCC,aAAaT,IAAIS,WAAW;QAC9B;IAEJ;IAEAN,QAAQE,IAAI,CAAC;QACXK,QAAQC,QAAQC,OAAO,CAAC;QACxBC,SAAS;YACPZ;YACAa,eAAe;YACf,4CAA4C;YAC5CC,UAAU;YACVC,KAAK,CAACA,KAAaC,eACjBC,IAAAA,2BAAc,EAACF,KAAKC,cAAcjB,IAAImB,YAAY,CAACC,UAAU;YAC/DC,QAAQ,CAACL,KAAaM,GAAQL,eAC5BC,IAAAA,2BAAc,EAACF,KAAKC,cAAcjB,IAAImB,YAAY,CAACC,UAAU;YAC/DG,SAAS;gBACP,mEAAmE;gBACnEC,wBAAwB;gBACxB,2CAA2C;gBAC3CC,kBAAkBzB,IAAI0B,QAAQ;gBAC9B,6DAA6D;gBAC7D,iCAAiC;gBACjCC,MAAM;gBACNC,eAAe,CACbC,UACAC,iBACAC,YACAC,UACAC;oBAEA,6BAA6B;oBAC7B,OAAO,CAAC,EAAE,EAAEF,WAAW,CAAC,EAAEE,KAAKC,cAAc,EAAE;gBACjD;YACF;YACAC,YAAY;QACd;IACF;IAEAhC,QAAQE,IAAI,CAAC;QACXK,QAAQ;QACRG,SAAS;YACPuB,OAAOpC,IAAIQ,aAAa;YACxBkB,UAAU1B,IAAI0B,QAAQ;YACtBjB,aAAaT,IAAIS,WAAW;YAC5B4B,cAAcrC,IAAIqC,YAAY;YAC9BnC;YACAD;QACF;IACF;IAEA,OAAOE;AACT","ignoreList":[0]}
@@ -1,6 +1,6 @@
1
1
  import type { webpack } from 'next/dist/compiled/webpack/webpack';
2
2
  import type { NextConfigComplete } from '../../../server/config-shared';
3
- export declare function buildConfiguration(config: webpack.Configuration, { hasAppDir, supportedBrowsers, rootDirectory, customAppFile, isDevelopment, isServer, isEdgeRuntime, targetWeb, assetPrefix, sassOptions, productionBrowserSourceMaps, future, transpilePackages, experimental, disableStaticImages, serverSourceMaps, }: {
3
+ export declare function buildConfiguration(config: webpack.Configuration, { hasAppDir, supportedBrowsers, rootDirectory, customAppFile, isDevelopment, isServer, isEdgeRuntime, targetWeb, assetPrefix, deploymentId, sassOptions, productionBrowserSourceMaps, future, transpilePackages, experimental, disableStaticImages, serverSourceMaps, }: {
4
4
  hasAppDir: boolean;
5
5
  supportedBrowsers: string[] | undefined;
6
6
  rootDirectory: string;
@@ -10,6 +10,7 @@ export declare function buildConfiguration(config: webpack.Configuration, { hasA
10
10
  isEdgeRuntime: boolean;
11
11
  targetWeb: boolean;
12
12
  assetPrefix: string;
13
+ deploymentId: string | undefined;
13
14
  sassOptions: any;
14
15
  productionBrowserSourceMaps: boolean;
15
16
  transpilePackages: NextConfigComplete['transpilePackages'];
@@ -12,7 +12,7 @@ const _base = require("./blocks/base");
12
12
  const _css = require("./blocks/css");
13
13
  const _images = require("./blocks/images");
14
14
  const _utils = require("./utils");
15
- async function buildConfiguration(config, { hasAppDir, supportedBrowsers, rootDirectory, customAppFile, isDevelopment, isServer, isEdgeRuntime, targetWeb, assetPrefix, sassOptions, productionBrowserSourceMaps, future, transpilePackages, experimental, disableStaticImages, serverSourceMaps }) {
15
+ async function buildConfiguration(config, { hasAppDir, supportedBrowsers, rootDirectory, customAppFile, isDevelopment, isServer, isEdgeRuntime, targetWeb, assetPrefix, deploymentId, sassOptions, productionBrowserSourceMaps, future, transpilePackages, experimental, disableStaticImages, serverSourceMaps }) {
16
16
  const ctx = {
17
17
  hasAppDir,
18
18
  supportedBrowsers,
@@ -25,6 +25,7 @@ async function buildConfiguration(config, { hasAppDir, supportedBrowsers, rootDi
25
25
  isClient: !isServer,
26
26
  targetWeb,
27
27
  assetPrefix: assetPrefix ? assetPrefix.endsWith('/') ? assetPrefix.slice(0, -1) : assetPrefix : '',
28
+ deploymentId,
28
29
  sassOptions,
29
30
  productionBrowserSourceMaps,
30
31
  transpilePackages,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/build/webpack/config/index.ts"],"sourcesContent":["import type { webpack } from 'next/dist/compiled/webpack/webpack'\nimport type { NextConfigComplete } from '../../../server/config-shared'\nimport type { ConfigurationContext } from './utils'\n\nimport { base } from './blocks/base'\nimport { css } from './blocks/css'\nimport { images } from './blocks/images'\nimport { pipe } from './utils'\n\nexport async function buildConfiguration(\n config: webpack.Configuration,\n {\n hasAppDir,\n supportedBrowsers,\n rootDirectory,\n customAppFile,\n isDevelopment,\n isServer,\n isEdgeRuntime,\n targetWeb,\n assetPrefix,\n sassOptions,\n productionBrowserSourceMaps,\n future,\n transpilePackages,\n experimental,\n disableStaticImages,\n serverSourceMaps,\n }: {\n hasAppDir: boolean\n supportedBrowsers: string[] | undefined\n rootDirectory: string\n customAppFile: RegExp | undefined\n isDevelopment: boolean\n isServer: boolean\n isEdgeRuntime: boolean\n targetWeb: boolean\n assetPrefix: string\n sassOptions: any\n productionBrowserSourceMaps: boolean\n transpilePackages: NextConfigComplete['transpilePackages']\n future: NextConfigComplete['future']\n experimental: NextConfigComplete['experimental']\n disableStaticImages: NextConfigComplete['disableStaticImages']\n serverSourceMaps: NextConfigComplete['experimental']['serverSourceMaps']\n }\n): Promise<webpack.Configuration> {\n const ctx: ConfigurationContext = {\n hasAppDir,\n supportedBrowsers,\n rootDirectory,\n customAppFile,\n isDevelopment,\n isProduction: !isDevelopment,\n isServer,\n isEdgeRuntime,\n isClient: !isServer,\n targetWeb,\n assetPrefix: assetPrefix\n ? assetPrefix.endsWith('/')\n ? assetPrefix.slice(0, -1)\n : assetPrefix\n : '',\n sassOptions,\n productionBrowserSourceMaps,\n transpilePackages,\n future,\n experimental,\n serverSourceMaps: serverSourceMaps ?? false,\n }\n\n let fns = [base(ctx), css(ctx)]\n if (!disableStaticImages) {\n fns.push(images(ctx))\n }\n const fn = pipe(...fns)\n return fn(config)\n}\n"],"names":["buildConfiguration","config","hasAppDir","supportedBrowsers","rootDirectory","customAppFile","isDevelopment","isServer","isEdgeRuntime","targetWeb","assetPrefix","sassOptions","productionBrowserSourceMaps","future","transpilePackages","experimental","disableStaticImages","serverSourceMaps","ctx","isProduction","isClient","endsWith","slice","fns","base","css","push","images","fn","pipe"],"mappings":";;;;+BASsBA;;;eAAAA;;;sBALD;qBACD;wBACG;uBACF;AAEd,eAAeA,mBACpBC,MAA6B,EAC7B,EACEC,SAAS,EACTC,iBAAiB,EACjBC,aAAa,EACbC,aAAa,EACbC,aAAa,EACbC,QAAQ,EACRC,aAAa,EACbC,SAAS,EACTC,WAAW,EACXC,WAAW,EACXC,2BAA2B,EAC3BC,MAAM,EACNC,iBAAiB,EACjBC,YAAY,EACZC,mBAAmB,EACnBC,gBAAgB,EAkBjB;IAED,MAAMC,MAA4B;QAChChB;QACAC;QACAC;QACAC;QACAC;QACAa,cAAc,CAACb;QACfC;QACAC;QACAY,UAAU,CAACb;QACXE;QACAC,aAAaA,cACTA,YAAYW,QAAQ,CAAC,OACnBX,YAAYY,KAAK,CAAC,GAAG,CAAC,KACtBZ,cACF;QACJC;QACAC;QACAE;QACAD;QACAE;QACAE,kBAAkBA,oBAAoB;IACxC;IAEA,IAAIM,MAAM;QAACC,IAAAA,UAAI,EAACN;QAAMO,IAAAA,QAAG,EAACP;KAAK;IAC/B,IAAI,CAACF,qBAAqB;QACxBO,IAAIG,IAAI,CAACC,IAAAA,cAAM,EAACT;IAClB;IACA,MAAMU,KAAKC,IAAAA,WAAI,KAAIN;IACnB,OAAOK,GAAG3B;AACZ","ignoreList":[0]}
1
+ {"version":3,"sources":["../../../../src/build/webpack/config/index.ts"],"sourcesContent":["import type { webpack } from 'next/dist/compiled/webpack/webpack'\nimport type { NextConfigComplete } from '../../../server/config-shared'\nimport type { ConfigurationContext } from './utils'\n\nimport { base } from './blocks/base'\nimport { css } from './blocks/css'\nimport { images } from './blocks/images'\nimport { pipe } from './utils'\n\nexport async function buildConfiguration(\n config: webpack.Configuration,\n {\n hasAppDir,\n supportedBrowsers,\n rootDirectory,\n customAppFile,\n isDevelopment,\n isServer,\n isEdgeRuntime,\n targetWeb,\n assetPrefix,\n deploymentId,\n sassOptions,\n productionBrowserSourceMaps,\n future,\n transpilePackages,\n experimental,\n disableStaticImages,\n serverSourceMaps,\n }: {\n hasAppDir: boolean\n supportedBrowsers: string[] | undefined\n rootDirectory: string\n customAppFile: RegExp | undefined\n isDevelopment: boolean\n isServer: boolean\n isEdgeRuntime: boolean\n targetWeb: boolean\n assetPrefix: string\n deploymentId: string | undefined\n sassOptions: any\n productionBrowserSourceMaps: boolean\n transpilePackages: NextConfigComplete['transpilePackages']\n future: NextConfigComplete['future']\n experimental: NextConfigComplete['experimental']\n disableStaticImages: NextConfigComplete['disableStaticImages']\n serverSourceMaps: NextConfigComplete['experimental']['serverSourceMaps']\n }\n): Promise<webpack.Configuration> {\n const ctx: ConfigurationContext = {\n hasAppDir,\n supportedBrowsers,\n rootDirectory,\n customAppFile,\n isDevelopment,\n isProduction: !isDevelopment,\n isServer,\n isEdgeRuntime,\n isClient: !isServer,\n targetWeb,\n assetPrefix: assetPrefix\n ? assetPrefix.endsWith('/')\n ? assetPrefix.slice(0, -1)\n : assetPrefix\n : '',\n deploymentId,\n sassOptions,\n productionBrowserSourceMaps,\n transpilePackages,\n future,\n experimental,\n serverSourceMaps: serverSourceMaps ?? false,\n }\n\n let fns = [base(ctx), css(ctx)]\n if (!disableStaticImages) {\n fns.push(images(ctx))\n }\n const fn = pipe(...fns)\n return fn(config)\n}\n"],"names":["buildConfiguration","config","hasAppDir","supportedBrowsers","rootDirectory","customAppFile","isDevelopment","isServer","isEdgeRuntime","targetWeb","assetPrefix","deploymentId","sassOptions","productionBrowserSourceMaps","future","transpilePackages","experimental","disableStaticImages","serverSourceMaps","ctx","isProduction","isClient","endsWith","slice","fns","base","css","push","images","fn","pipe"],"mappings":";;;;+BASsBA;;;eAAAA;;;sBALD;qBACD;wBACG;uBACF;AAEd,eAAeA,mBACpBC,MAA6B,EAC7B,EACEC,SAAS,EACTC,iBAAiB,EACjBC,aAAa,EACbC,aAAa,EACbC,aAAa,EACbC,QAAQ,EACRC,aAAa,EACbC,SAAS,EACTC,WAAW,EACXC,YAAY,EACZC,WAAW,EACXC,2BAA2B,EAC3BC,MAAM,EACNC,iBAAiB,EACjBC,YAAY,EACZC,mBAAmB,EACnBC,gBAAgB,EAmBjB;IAED,MAAMC,MAA4B;QAChCjB;QACAC;QACAC;QACAC;QACAC;QACAc,cAAc,CAACd;QACfC;QACAC;QACAa,UAAU,CAACd;QACXE;QACAC,aAAaA,cACTA,YAAYY,QAAQ,CAAC,OACnBZ,YAAYa,KAAK,CAAC,GAAG,CAAC,KACtBb,cACF;QACJC;QACAC;QACAC;QACAE;QACAD;QACAE;QACAE,kBAAkBA,oBAAoB;IACxC;IAEA,IAAIM,MAAM;QAACC,IAAAA,UAAI,EAACN;QAAMO,IAAAA,QAAG,EAACP;KAAK;IAC/B,IAAI,CAACF,qBAAqB;QACxBO,IAAIG,IAAI,CAACC,IAAAA,cAAM,EAACT;IAClB;IACA,MAAMU,KAAKC,IAAAA,WAAI,KAAIN;IACnB,OAAOK,GAAG5B;AACZ","ignoreList":[0]}
@@ -13,6 +13,7 @@ export type ConfigurationContext = {
13
13
  isEdgeRuntime: boolean;
14
14
  targetWeb: boolean;
15
15
  assetPrefix: string;
16
+ deploymentId: string | undefined;
16
17
  sassOptions: any;
17
18
  productionBrowserSourceMaps: boolean;
18
19
  serverSourceMaps: boolean;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/build/webpack/config/utils.ts"],"sourcesContent":["import type { webpack } from 'next/dist/compiled/webpack/webpack'\nimport type { NextConfigComplete } from '../../../server/config-shared'\n\nexport type ConfigurationContext = {\n // If the `appDir` feature is enabled\n hasAppDir: boolean\n // If the current rule matches a resource in the app layer\n isAppDir?: boolean\n supportedBrowsers: string[] | undefined\n rootDirectory: string\n customAppFile: RegExp | undefined\n\n isDevelopment: boolean\n isProduction: boolean\n\n isServer: boolean\n isClient: boolean\n isEdgeRuntime: boolean\n targetWeb: boolean\n\n assetPrefix: string\n\n sassOptions: any\n productionBrowserSourceMaps: boolean\n serverSourceMaps: boolean\n\n transpilePackages: NextConfigComplete['transpilePackages']\n\n future: NextConfigComplete['future']\n experimental: NextConfigComplete['experimental']\n}\n\nexport type ConfigurationFn = (\n a: webpack.Configuration\n) => webpack.Configuration\n\nexport const pipe =\n <R>(...fns: Array<(a: R) => R | Promise<R>>) =>\n (param: R) =>\n fns.reduce(\n async (result: R | Promise<R>, next) => next(await result),\n param\n )\n"],"names":["pipe","fns","param","reduce","result","next"],"mappings":";;;;+BAoCaA;;;eAAAA;;;AAAN,MAAMA,OACX,CAAI,GAAGC,MACP,CAACC,QACCD,IAAIE,MAAM,CACR,OAAOC,QAAwBC,OAASA,KAAK,MAAMD,SACnDF","ignoreList":[0]}
1
+ {"version":3,"sources":["../../../../src/build/webpack/config/utils.ts"],"sourcesContent":["import type { webpack } from 'next/dist/compiled/webpack/webpack'\nimport type { NextConfigComplete } from '../../../server/config-shared'\n\nexport type ConfigurationContext = {\n // If the `appDir` feature is enabled\n hasAppDir: boolean\n // If the current rule matches a resource in the app layer\n isAppDir?: boolean\n supportedBrowsers: string[] | undefined\n rootDirectory: string\n customAppFile: RegExp | undefined\n\n isDevelopment: boolean\n isProduction: boolean\n\n isServer: boolean\n isClient: boolean\n isEdgeRuntime: boolean\n targetWeb: boolean\n\n assetPrefix: string\n deploymentId: string | undefined\n\n sassOptions: any\n productionBrowserSourceMaps: boolean\n serverSourceMaps: boolean\n\n transpilePackages: NextConfigComplete['transpilePackages']\n\n future: NextConfigComplete['future']\n experimental: NextConfigComplete['experimental']\n}\n\nexport type ConfigurationFn = (\n a: webpack.Configuration\n) => webpack.Configuration\n\nexport const pipe =\n <R>(...fns: Array<(a: R) => R | Promise<R>>) =>\n (param: R) =>\n fns.reduce(\n async (result: R | Promise<R>, next) => next(await result),\n param\n )\n"],"names":["pipe","fns","param","reduce","result","next"],"mappings":";;;;+BAqCaA;;;eAAAA;;;AAAN,MAAMA,OACX,CAAI,GAAGC,MACP,CAACC,QACCD,IAAIE,MAAM,CACR,OAAOC,QAAwBC,OAASA,KAAK,MAAMD,SACnDF","ignoreList":[0]}
@@ -43,7 +43,7 @@ async function nextFontLoader() {
43
43
  callback(err);
44
44
  return;
45
45
  }
46
- const { isDev, isServer, assetPrefix, fontLoaderPath, postcss: getPostcss } = this.getOptions();
46
+ const { isDev, isServer, assetPrefix, fontLoaderPath, postcss: getPostcss, deploymentId } = this.getOptions();
47
47
  if (assetPrefix && !/^\/|https?:\/\//.test(assetPrefix)) {
48
48
  const err = Object.defineProperty(new Error('assetPrefix must start with a leading slash or be an absolute URL(http:// or https://)'), "__NEXT_ERROR_CODE", {
49
49
  value: "E72",
@@ -89,6 +89,7 @@ async function nextFontLoader() {
89
89
  resolve: (src)=>(0, _util.promisify)(this.resolve)(_path.default.dirname(_path.default.join(this.rootContext, relativeFilePathFromRoot)), src.startsWith('.') ? src : `./${src}`),
90
90
  isDev,
91
91
  isServer,
92
+ deploymentId,
92
93
  loaderContext: this
93
94
  }));
94
95
  const { postcss } = await getPostcss();
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/build/webpack/loaders/next-font-loader/index.ts"],"sourcesContent":["import type { FontLoader } from '../../../../../font'\n\nimport path from 'path'\nimport { bold, cyan } from '../../../../lib/picocolors'\nimport loaderUtils from 'next/dist/compiled/loader-utils3'\nimport postcssNextFontPlugin from './postcss-next-font'\nimport { promisify } from 'util'\n\nexport default async function nextFontLoader(this: any) {\n const nextFontLoaderSpan =\n this.currentTraceSpan.traceChild('next-font-loader')\n return nextFontLoaderSpan.traceAsyncFn(async () => {\n const callback = this.async()\n\n /**\n * The next-swc plugin next-transform-font turns font function calls into CSS imports.\n * At the end of the import, it adds the call arguments and some additional data as a resourceQuery.\n * e.g:\n * const inter = Inter({ subset: ['latin'] })\n * ->\n * import inter from 'next/font/google/target.css?{\"import\":\"Inter\",\"subsets\":[\"latin\"]}'\n *\n * Here we parse the resourceQuery to get the font function name, call arguments, and the path to the file that called the font function.\n */\n const {\n path: relativeFilePathFromRoot,\n import: functionName,\n arguments: data,\n variableName,\n } = JSON.parse(this.resourceQuery.slice(1))\n\n // Throw error if @next/font is used in _document.js\n if (/pages[\\\\/]_document\\./.test(relativeFilePathFromRoot)) {\n const err = new Error(\n `${bold('Cannot')} be used within ${cyan('pages/_document.js')}.`\n )\n err.name = 'NextFontError'\n callback(err)\n return\n }\n\n const {\n isDev,\n isServer,\n assetPrefix,\n fontLoaderPath,\n postcss: getPostcss,\n } = this.getOptions()\n\n if (assetPrefix && !/^\\/|https?:\\/\\//.test(assetPrefix)) {\n const err = new Error(\n 'assetPrefix must start with a leading slash or be an absolute URL(http:// or https://)'\n )\n err.name = 'NextFontError'\n callback(err)\n return\n }\n\n /**\n * Emit font files to .next/static/media as [hash].[ext].\n *\n * If the font should be preloaded, add .p to the filename: [hash].p.[ext]\n * NextFontManifestPlugin adds these files to the next/font manifest.\n *\n * If the font is using a size-adjust fallback font, add -s to the filename: [hash]-s.[ext]\n * NextFontManifestPlugin uses this to see if fallback fonts are being used.\n * This is used to collect stats on fallback fonts usage by the Google Aurora team.\n */\n const emitFontFile = (\n content: Buffer,\n ext: string,\n preload: boolean,\n isUsingSizeAdjust?: boolean\n ) => {\n const opts = { context: this.rootContext, content }\n const interpolatedName = loaderUtils.interpolateName(\n this,\n `static/media/[hash]${isUsingSizeAdjust ? '-s' : ''}${\n preload ? '.p' : ''\n }.${ext}`,\n opts\n )\n const outputPath = `${assetPrefix}/_next/${interpolatedName}`\n // Only the client emits the font file\n if (!isServer) {\n this.emitFile(interpolatedName, content, null)\n }\n // But both the server and client must get the resulting path\n return outputPath\n }\n\n try {\n // Import the font loader function from either next/font/local or next/font/google\n // The font loader function emits font files and returns @font-faces and fallback font metrics\n const fontLoader: FontLoader = require(fontLoaderPath).default\n let { css, fallbackFonts, adjustFontFallback, weight, style, variable } =\n await nextFontLoaderSpan.traceChild('font-loader').traceAsyncFn(() =>\n fontLoader({\n functionName,\n variableName,\n data,\n emitFontFile,\n resolve: (src: string) =>\n promisify(this.resolve)(\n path.dirname(\n path.join(this.rootContext, relativeFilePathFromRoot)\n ),\n src.startsWith('.') ? src : `./${src}`\n ),\n isDev,\n isServer,\n loaderContext: this,\n })\n )\n\n const { postcss } = await getPostcss()\n\n // Exports will be exported as is from css-loader instead of a CSS module export\n const exports: { name: any; value: any }[] = []\n\n // Generate a hash from the CSS content. Used to generate classnames\n const fontFamilyHash = loaderUtils.getHashDigest(\n Buffer.from(css),\n 'sha1',\n 'hex',\n 6\n )\n\n // Add CSS classes, exports and make the font-family locally scoped by turning it unguessable\n const result = await nextFontLoaderSpan\n .traceChild('postcss')\n .traceAsyncFn(() =>\n postcss(\n postcssNextFontPlugin({\n exports,\n fallbackFonts,\n weight,\n style,\n adjustFontFallback,\n variable,\n })\n ).process(css, {\n from: undefined,\n })\n )\n\n const ast = {\n type: 'postcss',\n version: result.processor.version,\n root: result.root,\n }\n\n // Return the resulting CSS and send the postcss ast, font exports and the hash to the css-loader in the meta argument.\n callback(null, result.css, null, {\n exports,\n ast,\n fontFamilyHash,\n })\n } catch (err: any) {\n callback(err)\n }\n })\n}\n"],"names":["nextFontLoader","nextFontLoaderSpan","currentTraceSpan","traceChild","traceAsyncFn","callback","async","path","relativeFilePathFromRoot","import","functionName","arguments","data","variableName","JSON","parse","resourceQuery","slice","test","err","Error","bold","cyan","name","isDev","isServer","assetPrefix","fontLoaderPath","postcss","getPostcss","getOptions","emitFontFile","content","ext","preload","isUsingSizeAdjust","opts","context","rootContext","interpolatedName","loaderUtils","interpolateName","outputPath","emitFile","fontLoader","require","default","css","fallbackFonts","adjustFontFallback","weight","style","variable","resolve","src","promisify","dirname","join","startsWith","loaderContext","exports","fontFamilyHash","getHashDigest","Buffer","from","result","postcssNextFontPlugin","process","undefined","ast","type","version","processor","root"],"mappings":"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","ignoreList":[0]}
1
+ {"version":3,"sources":["../../../../../src/build/webpack/loaders/next-font-loader/index.ts"],"sourcesContent":["import type { FontLoader } from '../../../../../font'\n\nimport path from 'path'\nimport { bold, cyan } from '../../../../lib/picocolors'\nimport loaderUtils from 'next/dist/compiled/loader-utils3'\nimport postcssNextFontPlugin from './postcss-next-font'\nimport { promisify } from 'util'\n\nexport default async function nextFontLoader(this: any) {\n const nextFontLoaderSpan =\n this.currentTraceSpan.traceChild('next-font-loader')\n return nextFontLoaderSpan.traceAsyncFn(async () => {\n const callback = this.async()\n\n /**\n * The next-swc plugin next-transform-font turns font function calls into CSS imports.\n * At the end of the import, it adds the call arguments and some additional data as a resourceQuery.\n * e.g:\n * const inter = Inter({ subset: ['latin'] })\n * ->\n * import inter from 'next/font/google/target.css?{\"import\":\"Inter\",\"subsets\":[\"latin\"]}'\n *\n * Here we parse the resourceQuery to get the font function name, call arguments, and the path to the file that called the font function.\n */\n const {\n path: relativeFilePathFromRoot,\n import: functionName,\n arguments: data,\n variableName,\n } = JSON.parse(this.resourceQuery.slice(1))\n\n // Throw error if @next/font is used in _document.js\n if (/pages[\\\\/]_document\\./.test(relativeFilePathFromRoot)) {\n const err = new Error(\n `${bold('Cannot')} be used within ${cyan('pages/_document.js')}.`\n )\n err.name = 'NextFontError'\n callback(err)\n return\n }\n\n const {\n isDev,\n isServer,\n assetPrefix,\n fontLoaderPath,\n postcss: getPostcss,\n deploymentId,\n } = this.getOptions()\n\n if (assetPrefix && !/^\\/|https?:\\/\\//.test(assetPrefix)) {\n const err = new Error(\n 'assetPrefix must start with a leading slash or be an absolute URL(http:// or https://)'\n )\n err.name = 'NextFontError'\n callback(err)\n return\n }\n\n /**\n * Emit font files to .next/static/media as [hash].[ext].\n *\n * If the font should be preloaded, add .p to the filename: [hash].p.[ext]\n * NextFontManifestPlugin adds these files to the next/font manifest.\n *\n * If the font is using a size-adjust fallback font, add -s to the filename: [hash]-s.[ext]\n * NextFontManifestPlugin uses this to see if fallback fonts are being used.\n * This is used to collect stats on fallback fonts usage by the Google Aurora team.\n */\n const emitFontFile: Parameters<FontLoader>[0]['emitFontFile'] = (\n content: Buffer,\n ext: string,\n preload: boolean,\n isUsingSizeAdjust?: boolean\n ) => {\n const opts = { context: this.rootContext, content }\n const interpolatedName = loaderUtils.interpolateName(\n this,\n `static/media/[hash]${isUsingSizeAdjust ? '-s' : ''}${\n preload ? '.p' : ''\n }.${ext}`,\n opts\n )\n const outputPath = `${assetPrefix}/_next/${interpolatedName}`\n // Only the client emits the font file\n if (!isServer) {\n this.emitFile(interpolatedName, content, null)\n }\n // But both the server and client must get the resulting path\n return outputPath\n }\n\n try {\n // Import the font loader function from either next/font/local or next/font/google\n // The font loader function emits font files and returns @font-faces and fallback font metrics\n const fontLoader: FontLoader = require(fontLoaderPath).default\n let { css, fallbackFonts, adjustFontFallback, weight, style, variable } =\n await nextFontLoaderSpan.traceChild('font-loader').traceAsyncFn(() =>\n fontLoader({\n functionName,\n variableName,\n data,\n emitFontFile,\n resolve: (src: string) =>\n promisify(this.resolve)(\n path.dirname(\n path.join(this.rootContext, relativeFilePathFromRoot)\n ),\n src.startsWith('.') ? src : `./${src}`\n ),\n isDev,\n isServer,\n deploymentId,\n loaderContext: this,\n })\n )\n\n const { postcss } = await getPostcss()\n\n // Exports will be exported as is from css-loader instead of a CSS module export\n const exports: { name: any; value: any }[] = []\n\n // Generate a hash from the CSS content. Used to generate classnames\n const fontFamilyHash = loaderUtils.getHashDigest(\n Buffer.from(css),\n 'sha1',\n 'hex',\n 6\n )\n\n // Add CSS classes, exports and make the font-family locally scoped by turning it unguessable\n const result = await nextFontLoaderSpan\n .traceChild('postcss')\n .traceAsyncFn(() =>\n postcss(\n postcssNextFontPlugin({\n exports,\n fallbackFonts,\n weight,\n style,\n adjustFontFallback,\n variable,\n })\n ).process(css, {\n from: undefined,\n })\n )\n\n const ast = {\n type: 'postcss',\n version: result.processor.version,\n root: result.root,\n }\n\n // Return the resulting CSS and send the postcss ast, font exports and the hash to the css-loader in the meta argument.\n callback(null, result.css, null, {\n exports,\n ast,\n fontFamilyHash,\n })\n } catch (err: any) {\n callback(err)\n }\n })\n}\n"],"names":["nextFontLoader","nextFontLoaderSpan","currentTraceSpan","traceChild","traceAsyncFn","callback","async","path","relativeFilePathFromRoot","import","functionName","arguments","data","variableName","JSON","parse","resourceQuery","slice","test","err","Error","bold","cyan","name","isDev","isServer","assetPrefix","fontLoaderPath","postcss","getPostcss","deploymentId","getOptions","emitFontFile","content","ext","preload","isUsingSizeAdjust","opts","context","rootContext","interpolatedName","loaderUtils","interpolateName","outputPath","emitFile","fontLoader","require","default","css","fallbackFonts","adjustFontFallback","weight","style","variable","resolve","src","promisify","dirname","join","startsWith","loaderContext","exports","fontFamilyHash","getHashDigest","Buffer","from","result","postcssNextFontPlugin","process","undefined","ast","type","version","processor","root"],"mappings":"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","ignoreList":[0]}
@@ -1712,7 +1712,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
1712
1712
  isClient && new _copyfileplugin.CopyFilePlugin({
1713
1713
  // file path to build output of `@next/polyfill-nomodule`
1714
1714
  filePath: require.resolve('./polyfills/polyfill-nomodule'),
1715
- cacheKey: "15.4.2-canary.36",
1715
+ cacheKey: "15.4.2-canary.38",
1716
1716
  name: `static/chunks/polyfills${dev ? '' : '-[hash]'}.js`,
1717
1717
  minimize: false,
1718
1718
  info: {
@@ -1892,7 +1892,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
1892
1892
  // - Next.js location on disk (some loaders use absolute paths and some resolve options depend on absolute paths)
1893
1893
  // - Next.js version
1894
1894
  // - next.config.js keys that affect compilation
1895
- version: `${__dirname}|${"15.4.2-canary.36"}|${configVars}`,
1895
+ version: `${__dirname}|${"15.4.2-canary.38"}|${configVars}`,
1896
1896
  cacheDirectory: _path.default.join(distDir, 'cache', 'webpack'),
1897
1897
  // For production builds, it's more efficient to compress all cache files together instead of compression each one individually.
1898
1898
  // So we disable compression here and allow the build runner to take care of compressing the cache as a whole.
@@ -1982,6 +1982,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
1982
1982
  isEdgeRuntime: isEdgeServer,
1983
1983
  targetWeb: isClient || isEdgeServer,
1984
1984
  assetPrefix: config.assetPrefix || '',
1985
+ deploymentId: config.deploymentId,
1985
1986
  sassOptions: config.sassOptions,
1986
1987
  productionBrowserSourceMaps: config.productionBrowserSourceMaps,
1987
1988
  future: config.future,