next 15.2.0-canary.26 → 15.2.0-canary.27

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.

Potentially problematic release.


This version of next might be problematic. Click here for more details.

Files changed (47) 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/plugins/eval-source-map-dev-tool-plugin.js +0 -1
  5. package/dist/build/webpack/plugins/eval-source-map-dev-tool-plugin.js.map +1 -1
  6. package/dist/build/webpack-config.js +2 -2
  7. package/dist/client/app-bootstrap.js +1 -1
  8. package/dist/client/index.js +1 -1
  9. package/dist/compiled/next-server/app-page-experimental.runtime.dev.js +9 -9
  10. package/dist/compiled/next-server/app-page-experimental.runtime.dev.js.map +1 -1
  11. package/dist/compiled/next-server/app-page.runtime.dev.js +9 -9
  12. package/dist/compiled/next-server/app-page.runtime.dev.js.map +1 -1
  13. package/dist/compiled/next-server/app-route-experimental.runtime.dev.js +3 -3
  14. package/dist/compiled/next-server/app-route-experimental.runtime.dev.js.map +1 -1
  15. package/dist/compiled/next-server/app-route.runtime.dev.js +3 -3
  16. package/dist/compiled/next-server/app-route.runtime.dev.js.map +1 -1
  17. package/dist/compiled/next-server/dist_client_dev_noop-turbopack-hmr_js-experimental.runtime.dev.js +1 -1
  18. package/dist/compiled/next-server/dist_client_dev_noop-turbopack-hmr_js-experimental.runtime.dev.js.map +1 -1
  19. package/dist/compiled/next-server/dist_client_dev_noop-turbopack-hmr_js.runtime.dev.js +1 -1
  20. package/dist/compiled/next-server/dist_client_dev_noop-turbopack-hmr_js.runtime.dev.js.map +1 -1
  21. package/dist/compiled/next-server/pages-api.runtime.dev.js +2 -2
  22. package/dist/compiled/next-server/pages-api.runtime.dev.js.map +1 -1
  23. package/dist/compiled/next-server/pages.runtime.dev.js +18 -18
  24. package/dist/compiled/next-server/pages.runtime.dev.js.map +1 -1
  25. package/dist/compiled/next-server/pages.runtime.prod.js +2 -2
  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/plugins/eval-source-map-dev-tool-plugin.js +0 -1
  30. package/dist/esm/build/webpack/plugins/eval-source-map-dev-tool-plugin.js.map +1 -1
  31. package/dist/esm/build/webpack-config.js +2 -2
  32. package/dist/esm/client/app-bootstrap.js +1 -1
  33. package/dist/esm/client/index.js +1 -1
  34. package/dist/esm/server/config.js +1 -1
  35. package/dist/esm/server/dev/hot-reloader-turbopack.js +1 -1
  36. package/dist/esm/server/dev/hot-reloader-webpack.js +1 -1
  37. package/dist/esm/server/lib/app-info-log.js +1 -1
  38. package/dist/esm/server/lib/start-server.js +1 -1
  39. package/dist/server/config.js +1 -1
  40. package/dist/server/dev/hot-reloader-turbopack.js +1 -1
  41. package/dist/server/dev/hot-reloader-webpack.js +1 -1
  42. package/dist/server/lib/app-info-log.js +1 -1
  43. package/dist/server/lib/start-server.js +1 -1
  44. package/dist/telemetry/anonymous-meta.js +1 -1
  45. package/dist/telemetry/events/session-stopped.js +2 -2
  46. package/dist/telemetry/events/version.js +2 -2
  47. package/package.json +16 -16
@@ -294,7 +294,7 @@ export default async function build(dir, reactProductionProfiling = false, debug
294
294
  const nextBuildSpan = trace('next-build', undefined, {
295
295
  buildMode: experimentalBuildMode,
296
296
  isTurboBuild: String(turboNextBuild),
297
- version: "15.2.0-canary.26"
297
+ version: "15.2.0-canary.27"
298
298
  });
299
299
  NextBuildContext.nextBuildSpan = nextBuildSpan;
300
300
  NextBuildContext.dir = dir;
@@ -654,7 +654,7 @@ export default async function build(dir, reactProductionProfiling = false, debug
654
654
  // Files outside of the distDir can be "type": "module"
655
655
  await writeFileUtf8(path.join(distDir, 'package.json'), '{"type": "commonjs"}');
656
656
  // These are written to distDir, so they need to come after creating and cleaning distDr.
657
- await recordFrameworkVersion("15.2.0-canary.26");
657
+ await recordFrameworkVersion("15.2.0-canary.27");
658
658
  await updateBuildDiagnostics({
659
659
  buildStage: 'start'
660
660
  });
@@ -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.2.0-canary.26";
14
+ const nextVersion = "15.2.0-canary.27";
15
15
  const ArchName = arch();
16
16
  const PlatformName = platform();
17
17
  function infoLog(...args) {
@@ -3,7 +3,6 @@
3
3
  Author Tobias Koppers @sokra
4
4
 
5
5
  Forked to add support for `ignoreList`.
6
- Keep in sync with packages/next/webpack-plugins/eval-source-map-dev-tool-plugin.js
7
6
  */ import { ConcatenatedModule, makePathsAbsolute, ModuleFilenameHelpers, NormalModule, RuntimeGlobals, SourceMapDevToolModuleOptionsPlugin } from 'next/dist/compiled/webpack/webpack';
8
7
  const cache = new WeakMap();
9
8
  const devtoolWarningMessage = `/*
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/build/webpack/plugins/eval-source-map-dev-tool-plugin.ts"],"sourcesContent":["/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n\n Forked to add support for `ignoreList`.\n Keep in sync with packages/next/webpack-plugins/eval-source-map-dev-tool-plugin.js\n*/\nimport {\n type webpack,\n type SourceMapDevToolPluginOptions,\n ConcatenatedModule,\n makePathsAbsolute,\n ModuleFilenameHelpers,\n NormalModule,\n RuntimeGlobals,\n SourceMapDevToolModuleOptionsPlugin,\n} from 'next/dist/compiled/webpack/webpack'\nimport type { RawSourceMap } from 'next/dist/compiled/source-map'\n\nconst cache = new WeakMap<webpack.sources.Source, webpack.sources.Source>()\n\nconst devtoolWarningMessage = `/*\n * ATTENTION: An \"eval-source-map\" devtool has been used.\n * This devtool is neither made for production nor for readable output files.\n * It uses \"eval()\" calls to create a separate source file with attached SourceMaps in the browser devtools.\n * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)\n * or disable the default devtool with \"devtool: false\".\n * If you are looking for production-ready output files, see mode: \"production\" (https://webpack.js.org/configuration/mode/).\n */\n`\n\n// @ts-expect-error -- can't compare `string` with `number` in `version`Ï\ninterface SourceMap extends RawSourceMap {\n ignoreList?: number[]\n version: number\n}\n\nexport interface EvalSourceMapDevToolPluginOptions\n extends SourceMapDevToolPluginOptions {\n // Fork\n shouldIgnorePath?: (modulePath: string) => boolean\n}\n\n// Fork of webpack's EvalSourceMapDevToolPlugin with support for adding `ignoreList`.\n// https://github.com/webpack/webpack/blob/e237b580e2bda705c5ab39973f786f7c5a7026bc/lib/EvalSourceMapDevToolPlugin.js#L37\nexport default class EvalSourceMapDevToolPlugin {\n sourceMapComment: string\n moduleFilenameTemplate: NonNullable<\n EvalSourceMapDevToolPluginOptions['moduleFilenameTemplate']\n >\n namespace: NonNullable<EvalSourceMapDevToolPluginOptions['namespace']>\n options: EvalSourceMapDevToolPluginOptions\n shouldIgnorePath: (modulePath: string) => boolean\n\n /**\n * @param {SourceMapDevToolPluginOptions|string} inputOptions Options object\n */\n constructor(inputOptions: EvalSourceMapDevToolPluginOptions) {\n let options: EvalSourceMapDevToolPluginOptions\n if (typeof inputOptions === 'string') {\n options = {\n append: inputOptions,\n }\n } else {\n options = inputOptions\n }\n this.sourceMapComment =\n options.append && typeof options.append !== 'function'\n ? options.append\n : '//# sourceURL=[module]\\n//# sourceMappingURL=[url]'\n this.moduleFilenameTemplate =\n options.moduleFilenameTemplate ||\n 'webpack://[namespace]/[resource-path]?[hash]'\n this.namespace = options.namespace || ''\n this.options = options\n\n // fork\n this.shouldIgnorePath = options.shouldIgnorePath ?? (() => false)\n }\n\n /**\n * Apply the plugin\n * @param compiler the compiler instance\n */\n apply(compiler: webpack.Compiler): void {\n const options = this.options\n compiler.hooks.compilation.tap(\n 'NextJSEvalSourceMapDevToolPlugin',\n (compilation) => {\n const { JavascriptModulesPlugin } = compiler.webpack.javascript\n const { RawSource, ConcatSource } = compiler.webpack.sources\n\n const devtoolWarning = new RawSource(devtoolWarningMessage)\n\n const hooks = JavascriptModulesPlugin.getCompilationHooks(compilation)\n\n new SourceMapDevToolModuleOptionsPlugin(options).apply(compilation)\n const matchModule = ModuleFilenameHelpers.matchObject.bind(\n ModuleFilenameHelpers,\n options\n )\n\n hooks.renderModuleContent.tap(\n 'NextJSEvalSourceMapDevToolPlugin',\n (source, m, { chunk, runtimeTemplate, chunkGraph }) => {\n const cachedSource = cache.get(source)\n if (cachedSource !== undefined) {\n return cachedSource\n }\n\n const result = (\n r: webpack.sources.Source\n ): webpack.sources.Source => {\n cache.set(source, r)\n return r\n }\n\n if (m instanceof NormalModule) {\n const module = m\n if (!matchModule(module.resource)) {\n return result(source)\n }\n } else if (m instanceof ConcatenatedModule) {\n const concatModule = m\n if (concatModule.rootModule instanceof NormalModule) {\n const module = concatModule.rootModule\n if (!matchModule(module.resource)) {\n return result(source)\n }\n } else {\n return result(source)\n }\n } else {\n return result(source)\n }\n\n const namespace = compilation.getPath(this.namespace, {\n chunk,\n })\n let sourceMap: SourceMap\n let content\n if (source.sourceAndMap) {\n const sourceAndMap = source.sourceAndMap(options)\n sourceMap = sourceAndMap.map as SourceMap\n content = sourceAndMap.source\n } else {\n sourceMap = source.map(options) as SourceMap\n content = source.source()\n }\n if (!sourceMap) {\n return result(source)\n }\n\n // Clone (flat) the sourcemap to ensure that the mutations below do not persist.\n sourceMap = { ...sourceMap }\n const context = compiler.options.context!\n const root = compiler.root\n const modules = sourceMap.sources.map((sourceMapSource) => {\n if (!sourceMapSource.startsWith('webpack://'))\n return sourceMapSource\n sourceMapSource = makePathsAbsolute(\n context,\n sourceMapSource.slice(10),\n root\n )\n const module = compilation.findModule(sourceMapSource)\n return module || sourceMapSource\n })\n let moduleFilenames = modules.map((module) =>\n ModuleFilenameHelpers.createFilename(\n module,\n {\n moduleFilenameTemplate: this.moduleFilenameTemplate,\n namespace,\n },\n {\n requestShortener: runtimeTemplate.requestShortener,\n chunkGraph,\n hashFunction: compilation.outputOptions.hashFunction!,\n }\n )\n )\n moduleFilenames = ModuleFilenameHelpers.replaceDuplicates(\n moduleFilenames,\n (filename, _i, n) => {\n for (let j = 0; j < n; j++) filename += '*'\n return filename\n }\n )\n sourceMap.sources = moduleFilenames\n sourceMap.ignoreList = []\n for (let index = 0; index < moduleFilenames.length; index++) {\n if (this.shouldIgnorePath(moduleFilenames[index])) {\n sourceMap.ignoreList.push(index)\n }\n }\n if (options.noSources) {\n sourceMap.sourcesContent = undefined\n }\n sourceMap.sourceRoot = options.sourceRoot || ''\n const moduleId =\n /** @type {ModuleId} */\n chunkGraph.getModuleId(m)\n if (moduleId) {\n sourceMap.file =\n typeof moduleId === 'number' ? `${moduleId}.js` : moduleId\n }\n\n const footer = `${this.sourceMapComment.replace(\n /\\[url\\]/g,\n `data:application/json;charset=utf-8;base64,${Buffer.from(\n JSON.stringify(sourceMap),\n 'utf8'\n ).toString('base64')}`\n )}\\n//# sourceURL=webpack-internal:///${moduleId}\\n` // workaround for chrome bug\n\n return result(\n new RawSource(\n `eval(${\n compilation.outputOptions.trustedTypes\n ? `${RuntimeGlobals.createScript}(${JSON.stringify(\n content + footer\n )})`\n : JSON.stringify(content + footer)\n });`\n )\n )\n }\n )\n hooks.inlineInRuntimeBailout.tap(\n 'EvalDevToolModulePlugin',\n () => 'the eval-source-map devtool is used.'\n )\n hooks.render.tap(\n 'EvalSourceMapDevToolPlugin',\n (source) => new ConcatSource(devtoolWarning, source)\n )\n hooks.chunkHash.tap('EvalSourceMapDevToolPlugin', (_chunk, hash) => {\n hash.update('EvalSourceMapDevToolPlugin')\n hash.update('2')\n })\n if (compilation.outputOptions.trustedTypes) {\n compilation.hooks.additionalModuleRuntimeRequirements.tap(\n 'EvalSourceMapDevToolPlugin',\n (_module, set, _context) => {\n set.add(RuntimeGlobals.createScript)\n }\n )\n }\n }\n )\n }\n}\n"],"names":["ConcatenatedModule","makePathsAbsolute","ModuleFilenameHelpers","NormalModule","RuntimeGlobals","SourceMapDevToolModuleOptionsPlugin","cache","WeakMap","devtoolWarningMessage","EvalSourceMapDevToolPlugin","constructor","inputOptions","options","append","sourceMapComment","moduleFilenameTemplate","namespace","shouldIgnorePath","apply","compiler","hooks","compilation","tap","JavascriptModulesPlugin","webpack","javascript","RawSource","ConcatSource","sources","devtoolWarning","getCompilationHooks","matchModule","matchObject","bind","renderModuleContent","source","m","chunk","runtimeTemplate","chunkGraph","cachedSource","get","undefined","result","r","set","module","resource","concatModule","rootModule","getPath","sourceMap","content","sourceAndMap","map","context","root","modules","sourceMapSource","startsWith","slice","findModule","moduleFilenames","createFilename","requestShortener","hashFunction","outputOptions","replaceDuplicates","filename","_i","n","j","ignoreList","index","length","push","noSources","sourcesContent","sourceRoot","moduleId","getModuleId","file","footer","replace","Buffer","from","JSON","stringify","toString","trustedTypes","createScript","inlineInRuntimeBailout","render","chunkHash","_chunk","hash","update","additionalModuleRuntimeRequirements","_module","_context","add"],"mappings":"AAAA;;;;;;AAMA,GACA,SAGEA,kBAAkB,EAClBC,iBAAiB,EACjBC,qBAAqB,EACrBC,YAAY,EACZC,cAAc,EACdC,mCAAmC,QAC9B,qCAAoC;AAG3C,MAAMC,QAAQ,IAAIC;AAElB,MAAMC,wBAAwB,CAAC;;;;;;;;AAQ/B,CAAC;AAcD,qFAAqF;AACrF,yHAAyH;AACzH,eAAe,MAAMC;IASnB;;GAEC,GACDC,YAAYC,YAA+C,CAAE;QAC3D,IAAIC;QACJ,IAAI,OAAOD,iBAAiB,UAAU;YACpCC,UAAU;gBACRC,QAAQF;YACV;QACF,OAAO;YACLC,UAAUD;QACZ;QACA,IAAI,CAACG,gBAAgB,GACnBF,QAAQC,MAAM,IAAI,OAAOD,QAAQC,MAAM,KAAK,aACxCD,QAAQC,MAAM,GACd;QACN,IAAI,CAACE,sBAAsB,GACzBH,QAAQG,sBAAsB,IAC9B;QACF,IAAI,CAACC,SAAS,GAAGJ,QAAQI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,SAAS,CAACvE,GAAG,CAAC,8BAA8B,CAACwE,QAAQC;gBACzDA,KAAKC,MAAM,CAAC;gBACZD,KAAKC,MAAM,CAAC;YACd;YACA,IAAI3E,YAAY6C,aAAa,CAACuB,YAAY,EAAE;gBAC1CpE,YAAYD,KAAK,CAAC6E,mCAAmC,CAAC3E,GAAG,CACvD,8BACA,CAAC4E,SAASrD,KAAKsD;oBACbtD,IAAIuD,GAAG,CAAChG,eAAesF,YAAY;gBACrC;YAEJ;QACF;IAEJ;AACF"}
1
+ {"version":3,"sources":["../../../../src/build/webpack/plugins/eval-source-map-dev-tool-plugin.ts"],"sourcesContent":["/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n\n Forked to add support for `ignoreList`.\n*/\nimport {\n type webpack,\n type SourceMapDevToolPluginOptions,\n ConcatenatedModule,\n makePathsAbsolute,\n ModuleFilenameHelpers,\n NormalModule,\n RuntimeGlobals,\n SourceMapDevToolModuleOptionsPlugin,\n} from 'next/dist/compiled/webpack/webpack'\nimport type { RawSourceMap } from 'next/dist/compiled/source-map'\n\nconst cache = new WeakMap<webpack.sources.Source, webpack.sources.Source>()\n\nconst devtoolWarningMessage = `/*\n * ATTENTION: An \"eval-source-map\" devtool has been used.\n * This devtool is neither made for production nor for readable output files.\n * It uses \"eval()\" calls to create a separate source file with attached SourceMaps in the browser devtools.\n * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)\n * or disable the default devtool with \"devtool: false\".\n * If you are looking for production-ready output files, see mode: \"production\" (https://webpack.js.org/configuration/mode/).\n */\n`\n\n// @ts-expect-error -- can't compare `string` with `number` in `version`Ï\ninterface SourceMap extends RawSourceMap {\n ignoreList?: number[]\n version: number\n}\n\nexport interface EvalSourceMapDevToolPluginOptions\n extends SourceMapDevToolPluginOptions {\n // Fork\n shouldIgnorePath?: (modulePath: string) => boolean\n}\n\n// Fork of webpack's EvalSourceMapDevToolPlugin with support for adding `ignoreList`.\n// https://github.com/webpack/webpack/blob/e237b580e2bda705c5ab39973f786f7c5a7026bc/lib/EvalSourceMapDevToolPlugin.js#L37\nexport default class EvalSourceMapDevToolPlugin {\n sourceMapComment: string\n moduleFilenameTemplate: NonNullable<\n EvalSourceMapDevToolPluginOptions['moduleFilenameTemplate']\n >\n namespace: NonNullable<EvalSourceMapDevToolPluginOptions['namespace']>\n options: EvalSourceMapDevToolPluginOptions\n shouldIgnorePath: (modulePath: string) => boolean\n\n /**\n * @param {SourceMapDevToolPluginOptions|string} inputOptions Options object\n */\n constructor(inputOptions: EvalSourceMapDevToolPluginOptions) {\n let options: EvalSourceMapDevToolPluginOptions\n if (typeof inputOptions === 'string') {\n options = {\n append: inputOptions,\n }\n } else {\n options = inputOptions\n }\n this.sourceMapComment =\n options.append && typeof options.append !== 'function'\n ? options.append\n : '//# sourceURL=[module]\\n//# sourceMappingURL=[url]'\n this.moduleFilenameTemplate =\n options.moduleFilenameTemplate ||\n 'webpack://[namespace]/[resource-path]?[hash]'\n this.namespace = options.namespace || ''\n this.options = options\n\n // fork\n this.shouldIgnorePath = options.shouldIgnorePath ?? (() => false)\n }\n\n /**\n * Apply the plugin\n * @param compiler the compiler instance\n */\n apply(compiler: webpack.Compiler): void {\n const options = this.options\n compiler.hooks.compilation.tap(\n 'NextJSEvalSourceMapDevToolPlugin',\n (compilation) => {\n const { JavascriptModulesPlugin } = compiler.webpack.javascript\n const { RawSource, ConcatSource } = compiler.webpack.sources\n\n const devtoolWarning = new RawSource(devtoolWarningMessage)\n\n const hooks = JavascriptModulesPlugin.getCompilationHooks(compilation)\n\n new SourceMapDevToolModuleOptionsPlugin(options).apply(compilation)\n const matchModule = ModuleFilenameHelpers.matchObject.bind(\n ModuleFilenameHelpers,\n options\n )\n\n hooks.renderModuleContent.tap(\n 'NextJSEvalSourceMapDevToolPlugin',\n (source, m, { chunk, runtimeTemplate, chunkGraph }) => {\n const cachedSource = cache.get(source)\n if (cachedSource !== undefined) {\n return cachedSource\n }\n\n const result = (\n r: webpack.sources.Source\n ): webpack.sources.Source => {\n cache.set(source, r)\n return r\n }\n\n if (m instanceof NormalModule) {\n const module = m\n if (!matchModule(module.resource)) {\n return result(source)\n }\n } else if (m instanceof ConcatenatedModule) {\n const concatModule = m\n if (concatModule.rootModule instanceof NormalModule) {\n const module = concatModule.rootModule\n if (!matchModule(module.resource)) {\n return result(source)\n }\n } else {\n return result(source)\n }\n } else {\n return result(source)\n }\n\n const namespace = compilation.getPath(this.namespace, {\n chunk,\n })\n let sourceMap: SourceMap\n let content\n if (source.sourceAndMap) {\n const sourceAndMap = source.sourceAndMap(options)\n sourceMap = sourceAndMap.map as SourceMap\n content = sourceAndMap.source\n } else {\n sourceMap = source.map(options) as SourceMap\n content = source.source()\n }\n if (!sourceMap) {\n return result(source)\n }\n\n // Clone (flat) the sourcemap to ensure that the mutations below do not persist.\n sourceMap = { ...sourceMap }\n const context = compiler.options.context!\n const root = compiler.root\n const modules = sourceMap.sources.map((sourceMapSource) => {\n if (!sourceMapSource.startsWith('webpack://'))\n return sourceMapSource\n sourceMapSource = makePathsAbsolute(\n context,\n sourceMapSource.slice(10),\n root\n )\n const module = compilation.findModule(sourceMapSource)\n return module || sourceMapSource\n })\n let moduleFilenames = modules.map((module) =>\n ModuleFilenameHelpers.createFilename(\n module,\n {\n moduleFilenameTemplate: this.moduleFilenameTemplate,\n namespace,\n },\n {\n requestShortener: runtimeTemplate.requestShortener,\n chunkGraph,\n hashFunction: compilation.outputOptions.hashFunction!,\n }\n )\n )\n moduleFilenames = ModuleFilenameHelpers.replaceDuplicates(\n moduleFilenames,\n (filename, _i, n) => {\n for (let j = 0; j < n; j++) filename += '*'\n return filename\n }\n )\n sourceMap.sources = moduleFilenames\n sourceMap.ignoreList = []\n for (let index = 0; index < moduleFilenames.length; index++) {\n if (this.shouldIgnorePath(moduleFilenames[index])) {\n sourceMap.ignoreList.push(index)\n }\n }\n if (options.noSources) {\n sourceMap.sourcesContent = undefined\n }\n sourceMap.sourceRoot = options.sourceRoot || ''\n const moduleId =\n /** @type {ModuleId} */\n chunkGraph.getModuleId(m)\n if (moduleId) {\n sourceMap.file =\n typeof moduleId === 'number' ? `${moduleId}.js` : moduleId\n }\n\n const footer = `${this.sourceMapComment.replace(\n /\\[url\\]/g,\n `data:application/json;charset=utf-8;base64,${Buffer.from(\n JSON.stringify(sourceMap),\n 'utf8'\n ).toString('base64')}`\n )}\\n//# sourceURL=webpack-internal:///${moduleId}\\n` // workaround for chrome bug\n\n return result(\n new RawSource(\n `eval(${\n compilation.outputOptions.trustedTypes\n ? `${RuntimeGlobals.createScript}(${JSON.stringify(\n content + footer\n )})`\n : JSON.stringify(content + footer)\n });`\n )\n )\n }\n )\n hooks.inlineInRuntimeBailout.tap(\n 'EvalDevToolModulePlugin',\n () => 'the eval-source-map devtool is used.'\n )\n hooks.render.tap(\n 'EvalSourceMapDevToolPlugin',\n (source) => new ConcatSource(devtoolWarning, source)\n )\n hooks.chunkHash.tap('EvalSourceMapDevToolPlugin', (_chunk, hash) => {\n hash.update('EvalSourceMapDevToolPlugin')\n hash.update('2')\n })\n if (compilation.outputOptions.trustedTypes) {\n compilation.hooks.additionalModuleRuntimeRequirements.tap(\n 'EvalSourceMapDevToolPlugin',\n (_module, set, _context) => {\n set.add(RuntimeGlobals.createScript)\n }\n )\n }\n }\n )\n }\n}\n"],"names":["ConcatenatedModule","makePathsAbsolute","ModuleFilenameHelpers","NormalModule","RuntimeGlobals","SourceMapDevToolModuleOptionsPlugin","cache","WeakMap","devtoolWarningMessage","EvalSourceMapDevToolPlugin","constructor","inputOptions","options","append","sourceMapComment","moduleFilenameTemplate","namespace","shouldIgnorePath","apply","compiler","hooks","compilation","tap","JavascriptModulesPlugin","webpack","javascript","RawSource","ConcatSource","sources","devtoolWarning","getCompilationHooks","matchModule","matchObject","bind","renderModuleContent","source","m","chunk","runtimeTemplate","chunkGraph","cachedSource","get","undefined","result","r","set","module","resource","concatModule","rootModule","getPath","sourceMap","content","sourceAndMap","map","context","root","modules","sourceMapSource","startsWith","slice","findModule","moduleFilenames","createFilename","requestShortener","hashFunction","outputOptions","replaceDuplicates","filename","_i","n","j","ignoreList","index","length","push","noSources","sourcesContent","sourceRoot","moduleId","getModuleId","file","footer","replace","Buffer","from","JSON","stringify","toString","trustedTypes","createScript","inlineInRuntimeBailout","render","chunkHash","_chunk","hash","update","additionalModuleRuntimeRequirements","_module","_context","add"],"mappings":"AAAA;;;;;AAKA,GACA,SAGEA,kBAAkB,EAClBC,iBAAiB,EACjBC,qBAAqB,EACrBC,YAAY,EACZC,cAAc,EACdC,mCAAmC,QAC9B,qCAAoC;AAG3C,MAAMC,QAAQ,IAAIC;AAElB,MAAMC,wBAAwB,CAAC;;;;;;;;AAQ/B,CAAC;AAcD,qFAAqF;AACrF,yHAAyH;AACzH,eAAe,MAAMC;IASnB;;GAEC,GACDC,YAAYC,YAA+C,CAAE;QAC3D,IAAIC;QACJ,IAAI,OAAOD,iBAAiB,UAAU;YACpCC,UAAU;gBACRC,QAAQF;YACV;QACF,OAAO;YACLC,UAAUD;QACZ;QACA,IAAI,CAACG,gBAAgB,GACnBF,QAAQC,MAAM,IAAI,OAAOD,QAAQC,MAAM,KAAK,aACxCD,QAAQC,MAAM,GACd;QACN,IAAI,CAACE,sBAAsB,GACzBH,QAAQG,sBAAsB,IAC9B;QACF,IAAI,CAACC,SAAS,GAAGJ,QAAQI,SAAS,IAAI;QACtC,IAAI,CAACJ,OAAO,GAAGA;QAEf,OAAO;QACP,IAAI,CAACK,gBAAgB,GAAGL,QAAQK,gBAAgB,IAAK,CAAA,IAAM,KAAI;IACjE;IAEA;;;GAGC,GACDC,MAAMC,QAA0B,EAAQ;QACtC,MAAMP,UAAU,IAAI,CAACA,OAAO;QAC5BO,SAASC,KAAK,CAACC,WAAW,CAACC,GAAG,CAC5B,oCACA,CAACD;YACC,MAAM,EAAEE,uBAAuB,EAAE,GAAGJ,SAASK,OAAO,CAACC,UAAU;YAC/D,MAAM,EAAEC,SAAS,EAAEC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ptionKey
1400
1400
  isClient && new CopyFilePlugin({
1401
1401
  // file path to build output of `@next/polyfill-nomodule`
1402
1402
  filePath: require.resolve('./polyfills/polyfill-nomodule'),
1403
- cacheKey: "15.2.0-canary.26",
1403
+ cacheKey: "15.2.0-canary.27",
1404
1404
  name: `static/chunks/polyfills${dev ? '' : '-[hash]'}.js`,
1405
1405
  minimize: false,
1406
1406
  info: {
@@ -1629,7 +1629,7 @@ export default async function getBaseWebpackConfig(dir, { buildId, encryptionKey
1629
1629
  // - Next.js location on disk (some loaders use absolute paths and some resolve options depend on absolute paths)
1630
1630
  // - Next.js version
1631
1631
  // - next.config.js keys that affect compilation
1632
- version: `${__dirname}|${"15.2.0-canary.26"}|${configVars}`,
1632
+ version: `${__dirname}|${"15.2.0-canary.27"}|${configVars}`,
1633
1633
  cacheDirectory: path.join(distDir, 'cache', 'webpack'),
1634
1634
  // For production builds, it's more efficient to compress all cache files together instead of compression each one individually.
1635
1635
  // 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.2.0-canary.26";
6
+ */ const version = "15.2.0-canary.27";
7
7
  window.next = {
8
8
  version,
9
9
  appDir: true
@@ -27,7 +27,7 @@ import { onRecoverableError } from './react-client-callbacks/on-recoverable-erro
27
27
  import tracer from './tracing/tracer';
28
28
  import reportToSocket from './tracing/report-to-socket';
29
29
  import { isNextRouterError } from './components/is-next-router-error';
30
- export const version = "15.2.0-canary.26";
30
+ export const version = "15.2.0-canary.27";
31
31
  export let router;
32
32
  export const emitter = mitt();
33
33
  const looseToArray = (input)=>[].slice.call(input);
@@ -177,7 +177,7 @@ function assignDefaults(dir, userConfig, silent) {
177
177
  enumerable: false
178
178
  });
179
179
  }
180
- if (!((_process_env___NEXT_VERSION = "15.2.0-canary.26") == null ? void 0 : _process_env___NEXT_VERSION.includes('canary')) && !process.env.__NEXT_TEST_MODE && !process.env.NEXT_PRIVATE_LOCAL_DEV) {
180
+ if (!((_process_env___NEXT_VERSION = "15.2.0-canary.27") == null ? void 0 : _process_env___NEXT_VERSION.includes('canary')) && !process.env.__NEXT_TEST_MODE && !process.env.NEXT_PRIVATE_LOCAL_DEV) {
181
181
  var _result_experimental8, _result_experimental9, _result_experimental_turbo3, _result_experimental10;
182
182
  // Prevents usage of certain experimental features outside of canary
183
183
  if ((_result_experimental8 = result.experimental) == null ? void 0 : _result_experimental8.ppr) {
@@ -80,7 +80,7 @@ export async function createHotReloaderTurbopack(opts, serverFields, distDir, re
80
80
  }
81
81
  const hasRewrites = opts.fsChecker.rewrites.afterFiles.length > 0 || opts.fsChecker.rewrites.beforeFiles.length > 0 || opts.fsChecker.rewrites.fallback.length > 0;
82
82
  const hotReloaderSpan = trace('hot-reloader', undefined, {
83
- version: "15.2.0-canary.26"
83
+ version: "15.2.0-canary.27"
84
84
  });
85
85
  // Ensure the hotReloaderSpan is flushed immediately as it's the parentSpan for all processing
86
86
  // of the current `next dev` invocation.
@@ -178,7 +178,7 @@ export default class HotReloaderWebpack {
178
178
  this.previewProps = previewProps;
179
179
  this.rewrites = rewrites;
180
180
  this.hotReloaderSpan = trace('hot-reloader', undefined, {
181
- version: "15.2.0-canary.26"
181
+ version: "15.2.0-canary.27"
182
182
  });
183
183
  // Ensure the hotReloaderSpan is flushed immediately as it's the parentSpan for all processing
184
184
  // of the current `next dev` invocation.
@@ -4,7 +4,7 @@ import { bold, purple } from '../../lib/picocolors';
4
4
  import { PHASE_DEVELOPMENT_SERVER, PHASE_PRODUCTION_BUILD } from '../../shared/lib/constants';
5
5
  import loadConfig, { getConfiguredExperimentalFeatures } from '../config';
6
6
  export function logStartInfo({ networkUrl, appUrl, envInfo, experimentalFeatures, maxExperimentalFeatures = Infinity }) {
7
- Log.bootstrap(`${bold(purple(`${Log.prefixes.ready} Next.js ${"15.2.0-canary.26"}`))}${process.env.TURBOPACK ? ' (Turbopack)' : ''}`);
7
+ Log.bootstrap(`${bold(purple(`${Log.prefixes.ready} Next.js ${"15.2.0-canary.27"}`))}${process.env.TURBOPACK ? ' (Turbopack)' : ''}`);
8
8
  if (appUrl) {
9
9
  Log.bootstrap(`- Local: ${appUrl}`);
10
10
  }
@@ -43,7 +43,7 @@ export async function getRequestHandlers({ dir, port, isDev, onDevServerCleanup,
43
43
  export async function startServer(serverOptions) {
44
44
  const { dir, isDev, hostname, minimalMode, allowRetry, keepAliveTimeout, selfSignedCertificate } = serverOptions;
45
45
  let { port } = serverOptions;
46
- process.title = `next-server (v${"15.2.0-canary.26"})`;
46
+ process.title = `next-server (v${"15.2.0-canary.27"})`;
47
47
  let handlersReady = ()=>{};
48
48
  let handlersError = ()=>{};
49
49
  let handlersPromise = new Promise((resolve, reject)=>{
@@ -256,7 +256,7 @@ function assignDefaults(dir, userConfig, silent) {
256
256
  enumerable: false
257
257
  });
258
258
  }
259
- if (!((_process_env___NEXT_VERSION = "15.2.0-canary.26") == null ? void 0 : _process_env___NEXT_VERSION.includes('canary')) && !process.env.__NEXT_TEST_MODE && !process.env.NEXT_PRIVATE_LOCAL_DEV) {
259
+ if (!((_process_env___NEXT_VERSION = "15.2.0-canary.27") == null ? void 0 : _process_env___NEXT_VERSION.includes('canary')) && !process.env.__NEXT_TEST_MODE && !process.env.NEXT_PRIVATE_LOCAL_DEV) {
260
260
  var _result_experimental8, _result_experimental9, _result_experimental_turbo3, _result_experimental10;
261
261
  // Prevents usage of certain experimental features outside of canary
262
262
  if ((_result_experimental8 = result.experimental) == null ? void 0 : _result_experimental8.ppr) {
@@ -136,7 +136,7 @@ async function createHotReloaderTurbopack(opts, serverFields, distDir, resetFetc
136
136
  }
137
137
  const hasRewrites = opts.fsChecker.rewrites.afterFiles.length > 0 || opts.fsChecker.rewrites.beforeFiles.length > 0 || opts.fsChecker.rewrites.fallback.length > 0;
138
138
  const hotReloaderSpan = (0, _trace.trace)('hot-reloader', undefined, {
139
- version: "15.2.0-canary.26"
139
+ version: "15.2.0-canary.27"
140
140
  });
141
141
  // Ensure the hotReloaderSpan is flushed immediately as it's the parentSpan for all processing
142
142
  // of the current `next dev` invocation.
@@ -254,7 +254,7 @@ class HotReloaderWebpack {
254
254
  this.previewProps = previewProps;
255
255
  this.rewrites = rewrites;
256
256
  this.hotReloaderSpan = (0, _trace.trace)('hot-reloader', undefined, {
257
- version: "15.2.0-canary.26"
257
+ version: "15.2.0-canary.27"
258
258
  });
259
259
  // Ensure the hotReloaderSpan is flushed immediately as it's the parentSpan for all processing
260
260
  // of the current `next dev` invocation.
@@ -67,7 +67,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
67
67
  return newObj;
68
68
  }
69
69
  function logStartInfo({ networkUrl, appUrl, envInfo, experimentalFeatures, maxExperimentalFeatures = Infinity }) {
70
- _log.bootstrap(`${(0, _picocolors.bold)((0, _picocolors.purple)(`${_log.prefixes.ready} Next.js ${"15.2.0-canary.26"}`))}${process.env.TURBOPACK ? ' (Turbopack)' : ''}`);
70
+ _log.bootstrap(`${(0, _picocolors.bold)((0, _picocolors.purple)(`${_log.prefixes.ready} Next.js ${"15.2.0-canary.27"}`))}${process.env.TURBOPACK ? ' (Turbopack)' : ''}`);
71
71
  if (appUrl) {
72
72
  _log.bootstrap(`- Local: ${appUrl}`);
73
73
  }
@@ -111,7 +111,7 @@ async function getRequestHandlers({ dir, port, isDev, onDevServerCleanup, server
111
111
  async function startServer(serverOptions) {
112
112
  const { dir, isDev, hostname, minimalMode, allowRetry, keepAliveTimeout, selfSignedCertificate } = serverOptions;
113
113
  let { port } = serverOptions;
114
- process.title = `next-server (v${"15.2.0-canary.26"})`;
114
+ process.title = `next-server (v${"15.2.0-canary.27"})`;
115
115
  let handlersReady = ()=>{};
116
116
  let handlersError = ()=>{};
117
117
  let handlersPromise = new Promise((resolve, reject)=>{
@@ -81,7 +81,7 @@ function getAnonymousMeta() {
81
81
  isWsl: _iswsl.default,
82
82
  isCI: _ciinfo.isCI,
83
83
  ciName: _ciinfo.isCI && _ciinfo.name || null,
84
- nextVersion: "15.2.0-canary.26"
84
+ nextVersion: "15.2.0-canary.27"
85
85
  };
86
86
  return traits;
87
87
  }
@@ -11,11 +11,11 @@ Object.defineProperty(exports, "eventCliSessionStopped", {
11
11
  const EVENT_VERSION = 'NEXT_CLI_SESSION_STOPPED';
12
12
  function eventCliSessionStopped(event) {
13
13
  // This should be an invariant, if it fails our build tooling is broken.
14
- if (typeof "15.2.0-canary.26" !== 'string') {
14
+ if (typeof "15.2.0-canary.27" !== 'string') {
15
15
  return [];
16
16
  }
17
17
  const payload = {
18
- nextVersion: "15.2.0-canary.26",
18
+ nextVersion: "15.2.0-canary.27",
19
19
  nodeVersion: process.version,
20
20
  cliCommand: event.cliCommand,
21
21
  durationMilliseconds: event.durationMilliseconds,
@@ -36,12 +36,12 @@ function hasBabelConfig(dir) {
36
36
  function eventCliSession(dir, nextConfig, event) {
37
37
  var _nextConfig_experimental_staleTimes, _nextConfig_experimental_staleTimes1, _nextConfig_experimental_reactCompiler, _nextConfig_experimental_reactCompiler1;
38
38
  // This should be an invariant, if it fails our build tooling is broken.
39
- if (typeof "15.2.0-canary.26" !== 'string') {
39
+ if (typeof "15.2.0-canary.27" !== 'string') {
40
40
  return [];
41
41
  }
42
42
  const { images, i18n } = nextConfig || {};
43
43
  const payload = {
44
- nextVersion: "15.2.0-canary.26",
44
+ nextVersion: "15.2.0-canary.27",
45
45
  nodeVersion: process.version,
46
46
  cliCommand: event.cliCommand,
47
47
  isSrcDir: event.isSrcDir,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next",
3
- "version": "15.2.0-canary.26",
3
+ "version": "15.2.0-canary.27",
4
4
  "description": "The React Framework",
5
5
  "main": "./dist/server/next.js",
6
6
  "license": "MIT",
@@ -80,7 +80,7 @@
80
80
  "next": "./dist/bin/next"
81
81
  },
82
82
  "scripts": {
83
- "dev": "taskr",
83
+ "dev": "cross-env NEXT_SERVER_NO_MANGLE=1 taskr",
84
84
  "release": "taskr release",
85
85
  "build": "pnpm release",
86
86
  "prepublishOnly": "cd ../../ && turbo run build",
@@ -99,7 +99,7 @@
99
99
  ]
100
100
  },
101
101
  "dependencies": {
102
- "@next/env": "15.2.0-canary.26",
102
+ "@next/env": "15.2.0-canary.27",
103
103
  "@swc/counter": "0.1.3",
104
104
  "@swc/helpers": "0.5.15",
105
105
  "busboy": "1.6.0",
@@ -131,14 +131,14 @@
131
131
  },
132
132
  "optionalDependencies": {
133
133
  "sharp": "^0.33.5",
134
- "@next/swc-darwin-arm64": "15.2.0-canary.26",
135
- "@next/swc-darwin-x64": "15.2.0-canary.26",
136
- "@next/swc-linux-arm64-gnu": "15.2.0-canary.26",
137
- "@next/swc-linux-arm64-musl": "15.2.0-canary.26",
138
- "@next/swc-linux-x64-gnu": "15.2.0-canary.26",
139
- "@next/swc-linux-x64-musl": "15.2.0-canary.26",
140
- "@next/swc-win32-arm64-msvc": "15.2.0-canary.26",
141
- "@next/swc-win32-x64-msvc": "15.2.0-canary.26"
134
+ "@next/swc-darwin-arm64": "15.2.0-canary.27",
135
+ "@next/swc-darwin-x64": "15.2.0-canary.27",
136
+ "@next/swc-linux-arm64-gnu": "15.2.0-canary.27",
137
+ "@next/swc-linux-arm64-musl": "15.2.0-canary.27",
138
+ "@next/swc-linux-x64-gnu": "15.2.0-canary.27",
139
+ "@next/swc-linux-x64-musl": "15.2.0-canary.27",
140
+ "@next/swc-win32-arm64-msvc": "15.2.0-canary.27",
141
+ "@next/swc-win32-x64-msvc": "15.2.0-canary.27"
142
142
  },
143
143
  "devDependencies": {
144
144
  "@ampproject/toolbox-optimizer": "2.8.3",
@@ -172,11 +172,11 @@
172
172
  "@jest/types": "29.5.0",
173
173
  "@mswjs/interceptors": "0.23.0",
174
174
  "@napi-rs/triples": "1.2.0",
175
- "@next/font": "15.2.0-canary.26",
176
- "@next/polyfill-module": "15.2.0-canary.26",
177
- "@next/polyfill-nomodule": "15.2.0-canary.26",
178
- "@next/react-refresh-utils": "15.2.0-canary.26",
179
- "@next/swc": "15.2.0-canary.26",
175
+ "@next/font": "15.2.0-canary.27",
176
+ "@next/polyfill-module": "15.2.0-canary.27",
177
+ "@next/polyfill-nomodule": "15.2.0-canary.27",
178
+ "@next/react-refresh-utils": "15.2.0-canary.27",
179
+ "@next/swc": "15.2.0-canary.27",
180
180
  "@opentelemetry/api": "1.6.0",
181
181
  "@playwright/test": "1.41.2",
182
182
  "@rspack/core": "1.2.2",