next 16.0.2-canary.5 → 16.0.2-canary.6

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 +3 -3
  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/font/dist/google/font-data.json +48 -1
  8. package/dist/compiled/@next/font/dist/google/index.d.ts +41 -1
  9. package/dist/compiled/next-server/pages-api-turbo.runtime.prod.js +1 -1
  10. package/dist/compiled/next-server/pages-api-turbo.runtime.prod.js.map +1 -1
  11. package/dist/compiled/next-server/pages-turbo.runtime.prod.js +1 -1
  12. package/dist/compiled/next-server/pages-turbo.runtime.prod.js.map +1 -1
  13. package/dist/esm/build/index.js +3 -3
  14. package/dist/esm/build/swc/index.js +1 -1
  15. package/dist/esm/build/webpack-config.js +2 -2
  16. package/dist/esm/client/app-bootstrap.js +1 -1
  17. package/dist/esm/client/index.js +1 -1
  18. package/dist/esm/server/dev/hot-reloader-turbopack.js +1 -1
  19. package/dist/esm/server/dev/hot-reloader-webpack.js +1 -1
  20. package/dist/esm/server/lib/app-info-log.js +1 -1
  21. package/dist/esm/server/lib/router-utils/setup-dev-bundler.js +10 -4
  22. package/dist/esm/server/lib/router-utils/setup-dev-bundler.js.map +1 -1
  23. package/dist/esm/server/lib/start-server.js +1 -1
  24. package/dist/esm/shared/lib/errors/canary-only-config-error.js +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/router-utils/setup-dev-bundler.js +10 -4
  29. package/dist/server/lib/router-utils/setup-dev-bundler.js.map +1 -1
  30. package/dist/server/lib/start-server.js +1 -1
  31. package/dist/shared/lib/errors/canary-only-config-error.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
package/dist/bin/next CHANGED
@@ -85,7 +85,7 @@ const program = new NextRootCommand();
85
85
  program.name('next').description('The Next.js CLI allows you to develop, build, start your application, and more.').configureHelp({
86
86
  formatHelp: (cmd, helper)=>(0, _formatclihelpoutput.formatCliHelpOutput)(cmd, helper),
87
87
  subcommandTerm: (cmd)=>`${cmd.name()} ${cmd.usage()}`
88
- }).helpCommand(false).helpOption('-h, --help', 'Displays this message.').version(`Next.js v${"16.0.2-canary.5"}`, '-v, --version', 'Outputs the Next.js version.');
88
+ }).helpCommand(false).helpOption('-h, --help', 'Displays this message.').version(`Next.js v${"16.0.2-canary.6"}`, '-v, --version', 'Outputs the Next.js version.');
89
89
  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-mangling', 'Disables mangling.').option('--profile', 'Enables production profiling for React.').option('--experimental-app-only', 'Builds only App Router routes.').option('--turbo', 'Builds using Turbopack.').option('--turbopack', 'Builds using Turbopack.').option('--webpack', 'Builds using webpack.').addOption(new _commander.Option('--experimental-build-mode [mode]', 'Uses an experimental build mode.').choices([
90
90
  'compile',
91
91
  'generate',
@@ -375,7 +375,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
375
375
  try {
376
376
  const nextBuildSpan = (0, _trace.trace)('next-build', undefined, {
377
377
  buildMode: experimentalBuildMode,
378
- version: "16.0.2-canary.5"
378
+ version: "16.0.2-canary.6"
379
379
  });
380
380
  _buildcontext.NextBuildContext.nextBuildSpan = nextBuildSpan;
381
381
  _buildcontext.NextBuildContext.dir = dir;
@@ -901,7 +901,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
901
901
  // Files outside of the distDir can be "type": "module"
902
902
  await writeFileUtf8(_path.default.join(distDir, 'package.json'), '{"type": "commonjs"}');
903
903
  // These are written to distDir, so they need to come after creating and cleaning distDr.
904
- await (0, _builddiagnostics.recordFrameworkVersion)("16.0.2-canary.5");
904
+ await (0, _builddiagnostics.recordFrameworkVersion)("16.0.2-canary.6");
905
905
  await (0, _builddiagnostics.updateBuildDiagnostics)({
906
906
  buildStage: 'start'
907
907
  });
@@ -2578,7 +2578,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
2578
2578
  configOutDir: _path.default.join(dir, configOutDir),
2579
2579
  staticPages,
2580
2580
  serverPropsPages,
2581
- nextVersion: "16.0.2-canary.5",
2581
+ nextVersion: "16.0.2-canary.6",
2582
2582
  tracingRoot: outputFileTracingRoot,
2583
2583
  hasNodeMiddleware,
2584
2584
  hasInstrumentationHook,
@@ -130,7 +130,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
130
130
  }
131
131
  return newObj;
132
132
  }
133
- const nextVersion = "16.0.2-canary.5";
133
+ const nextVersion = "16.0.2-canary.6";
134
134
  const ArchName = (0, _os.arch)();
135
135
  const PlatformName = (0, _os.platform)();
136
136
  function infoLog(...args) {
@@ -1727,7 +1727,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
1727
1727
  isClient && new _copyfileplugin.CopyFilePlugin({
1728
1728
  // file path to build output of `@next/polyfill-nomodule`
1729
1729
  filePath: require.resolve('./polyfills/polyfill-nomodule'),
1730
- cacheKey: "16.0.2-canary.5",
1730
+ cacheKey: "16.0.2-canary.6",
1731
1731
  name: `static/chunks/polyfills${dev ? '' : '-[hash]'}.js`,
1732
1732
  minimize: false,
1733
1733
  info: {
@@ -1917,7 +1917,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
1917
1917
  // - Next.js location on disk (some loaders use absolute paths and some resolve options depend on absolute paths)
1918
1918
  // - Next.js version
1919
1919
  // - next.config.js keys that affect compilation
1920
- version: `${__dirname}|${"16.0.2-canary.5"}|${configVars}`,
1920
+ version: `${__dirname}|${"16.0.2-canary.6"}|${configVars}`,
1921
1921
  cacheDirectory: _path.default.join(distDir, 'cache', 'webpack'),
1922
1922
  // For production builds, it's more efficient to compress all cache files together instead of compression each one individually.
1923
1923
  // So we disable compression here and allow the build runner to take care of compressing the cache as a whole.
@@ -15,7 +15,7 @@ Object.defineProperty(exports, "appBootstrap", {
15
15
  });
16
16
  const _assetprefix = require("./asset-prefix");
17
17
  const _setattributesfromprops = require("./set-attributes-from-props");
18
- const version = "16.0.2-canary.5";
18
+ const version = "16.0.2-canary.6";
19
19
  window.next = {
20
20
  version,
21
21
  appDir: true
@@ -60,7 +60,7 @@ const _hooksclientcontextsharedruntime = require("../shared/lib/hooks-client-con
60
60
  const _onrecoverableerror = require("./react-client-callbacks/on-recoverable-error");
61
61
  const _tracer = /*#__PURE__*/ _interop_require_default._(require("./tracing/tracer"));
62
62
  const _isnextroutererror = require("./components/is-next-router-error");
63
- const version = "16.0.2-canary.5";
63
+ const version = "16.0.2-canary.6";
64
64
  let router;
65
65
  const emitter = (0, _mitt.default)();
66
66
  const looseToArray = (input)=>[].slice.call(input);
@@ -8994,6 +8994,29 @@
8994
8994
  "styles": ["italic"],
8995
8995
  "subsets": ["latin", "latin-ext"]
8996
8996
  },
8997
+ "Momo Signature": {
8998
+ "weights": ["400"],
8999
+ "styles": ["normal"],
9000
+ "subsets": ["latin", "latin-ext", "vietnamese"]
9001
+ },
9002
+ "Momo Trust Display": {
9003
+ "weights": ["400"],
9004
+ "styles": ["normal"],
9005
+ "subsets": ["latin", "latin-ext", "vietnamese"]
9006
+ },
9007
+ "Momo Trust Sans": {
9008
+ "weights": ["200", "300", "400", "500", "600", "700", "800", "variable"],
9009
+ "styles": ["normal"],
9010
+ "axes": [
9011
+ {
9012
+ "tag": "wght",
9013
+ "min": 200,
9014
+ "max": 800,
9015
+ "defaultValue": 400
9016
+ }
9017
+ ],
9018
+ "subsets": ["latin", "latin-ext", "vietnamese"]
9019
+ },
8997
9020
  "Mona Sans": {
8998
9021
  "weights": [
8999
9022
  "200",
@@ -11247,6 +11270,30 @@
11247
11270
  ],
11248
11271
  "subsets": ["latin", "latin-ext", "syriac"]
11249
11272
  },
11273
+ "Noto Sans Syriac Western": {
11274
+ "weights": [
11275
+ "100",
11276
+ "200",
11277
+ "300",
11278
+ "400",
11279
+ "500",
11280
+ "600",
11281
+ "700",
11282
+ "800",
11283
+ "900",
11284
+ "variable"
11285
+ ],
11286
+ "styles": ["normal"],
11287
+ "axes": [
11288
+ {
11289
+ "tag": "wght",
11290
+ "min": 100,
11291
+ "max": 900,
11292
+ "defaultValue": 400
11293
+ }
11294
+ ],
11295
+ "subsets": ["latin", "latin-ext", "syriac"]
11296
+ },
11250
11297
  "Noto Sans TC": {
11251
11298
  "weights": [
11252
11299
  "100",
@@ -12852,7 +12899,7 @@
12852
12899
  "defaultValue": 400
12853
12900
  }
12854
12901
  ],
12855
- "subsets": ["latin", "latin-ext", "vietnamese"]
12902
+ "subsets": ["arabic", "latin", "latin-ext", "vietnamese"]
12856
12903
  },
12857
12904
  "Parisienne": {
12858
12905
  "weights": ["400"],
@@ -9513,6 +9513,36 @@ export declare function Molle<T extends CssVariable | undefined = undefined>(opt
9513
9513
  adjustFontFallback?: boolean;
9514
9514
  subsets?: Array<'latin' | 'latin-ext'>;
9515
9515
  }): T extends undefined ? NextFont : NextFontWithVariable;
9516
+ export declare function Momo_Signature<T extends CssVariable | undefined = undefined>(options: {
9517
+ weight: '400' | Array<'400'>;
9518
+ style?: 'normal' | Array<'normal'>;
9519
+ display?: Display;
9520
+ variable?: T;
9521
+ preload?: boolean;
9522
+ fallback?: string[];
9523
+ adjustFontFallback?: boolean;
9524
+ subsets?: Array<'latin' | 'latin-ext' | 'vietnamese'>;
9525
+ }): T extends undefined ? NextFont : NextFontWithVariable;
9526
+ export declare function Momo_Trust_Display<T extends CssVariable | undefined = undefined>(options: {
9527
+ weight: '400' | Array<'400'>;
9528
+ style?: 'normal' | Array<'normal'>;
9529
+ display?: Display;
9530
+ variable?: T;
9531
+ preload?: boolean;
9532
+ fallback?: string[];
9533
+ adjustFontFallback?: boolean;
9534
+ subsets?: Array<'latin' | 'latin-ext' | 'vietnamese'>;
9535
+ }): T extends undefined ? NextFont : NextFontWithVariable;
9536
+ export declare function Momo_Trust_Sans<T extends CssVariable | undefined = undefined>(options?: {
9537
+ weight?: '200' | '300' | '400' | '500' | '600' | '700' | '800' | 'variable' | Array<'200' | '300' | '400' | '500' | '600' | '700' | '800'>;
9538
+ style?: 'normal' | Array<'normal'>;
9539
+ display?: Display;
9540
+ variable?: T;
9541
+ preload?: boolean;
9542
+ fallback?: string[];
9543
+ adjustFontFallback?: boolean;
9544
+ subsets?: Array<'latin' | 'latin-ext' | 'vietnamese'>;
9545
+ }): T extends undefined ? NextFont : NextFontWithVariable;
9516
9546
  export declare function Mona_Sans<T extends CssVariable | undefined = undefined>(options?: {
9517
9547
  weight?: '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | 'variable' | Array<'200' | '300' | '400' | '500' | '600' | '700' | '800' | '900'>;
9518
9548
  style?: 'normal' | 'italic' | Array<'normal' | 'italic'>;
@@ -11667,6 +11697,16 @@ export declare function Noto_Sans_Syriac_Eastern<T extends CssVariable | undefin
11667
11697
  adjustFontFallback?: boolean;
11668
11698
  subsets?: Array<'latin' | 'latin-ext' | 'syriac'>;
11669
11699
  }): T extends undefined ? NextFont : NextFontWithVariable;
11700
+ export declare function Noto_Sans_Syriac_Western<T extends CssVariable | undefined = undefined>(options?: {
11701
+ weight?: '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | 'variable' | Array<'100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900'>;
11702
+ style?: 'normal' | Array<'normal'>;
11703
+ display?: Display;
11704
+ variable?: T;
11705
+ preload?: boolean;
11706
+ fallback?: string[];
11707
+ adjustFontFallback?: boolean;
11708
+ subsets?: Array<'latin' | 'latin-ext' | 'syriac'>;
11709
+ }): T extends undefined ? NextFont : NextFontWithVariable;
11670
11710
  export declare function Noto_Sans_TC<T extends CssVariable | undefined = undefined>(options?: {
11671
11711
  weight?: '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | 'variable' | Array<'100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900'>;
11672
11712
  style?: 'normal' | Array<'normal'>;
@@ -12944,7 +12984,7 @@ export declare function Parastoo<T extends CssVariable | undefined = undefined>(
12944
12984
  preload?: boolean;
12945
12985
  fallback?: string[];
12946
12986
  adjustFontFallback?: boolean;
12947
- subsets?: Array<'latin' | 'latin-ext' | 'vietnamese'>;
12987
+ subsets?: Array<'arabic' | 'latin' | 'latin-ext' | 'vietnamese'>;
12948
12988
  }): T extends undefined ? NextFont : NextFontWithVariable;
12949
12989
  export declare function Parisienne<T extends CssVariable | undefined = undefined>(options: {
12950
12990
  weight: '400' | Array<'400'>;