@nuxt/schema-nightly 4.3.0-29461891.8f4fbecd → 4.3.0-29465977.c4f46c64

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.
package/dist/index.d.mts CHANGED
@@ -4,7 +4,6 @@ import { Options as Options$5 } from '@vitejs/plugin-vue';
4
4
  import { Options as Options$6 } from '@vitejs/plugin-vue-jsx';
5
5
  import { SchemaDefinition, Schema } from 'untyped';
6
6
  export { SchemaDefinition } from 'untyped';
7
- import { NitroOptions, NitroRouteConfig, NitroConfig, Nitro, NitroEventHandler, NitroDevEventHandler, NitroRuntimeConfigApp, NitroRuntimeConfig } from 'nitropack/types';
8
7
  import { SnakeCase } from 'scule';
9
8
  import { SourceOptions, DotenvOptions, ResolvedConfig } from 'c12';
10
9
  import { Server, IncomingMessage, ServerResponse } from 'node:http';
@@ -17,7 +16,7 @@ import { TransformerOptions } from 'unctx/transform';
17
16
  import { CompatibilityDateSpec } from 'compatx';
18
17
  import { Ignore, Options } from 'ignore';
19
18
  import { ChokidarOptions } from 'chokidar';
20
- import { EventHandler, H3CorsOptions } from 'h3';
19
+ import { H3CorsOptions, CorsOptions } from 'h3';
21
20
  import { NuxtLinkOptions } from 'nuxt/app';
22
21
  import { FetchOptions } from 'ofetch';
23
22
  import { Options as Options$1 } from 'autoprefixer';
@@ -352,8 +351,6 @@ interface NuxtDebugOptions {
352
351
  modules?: boolean;
353
352
  /** Debug for file watchers */
354
353
  watchers?: boolean;
355
- /** Debug options for Nitro */
356
- nitro?: NitroOptions['debug'];
357
354
  /** Debug for production hydration mismatch */
358
355
  hydration?: boolean;
359
356
  /** Debug for Vue Router */
@@ -478,7 +475,7 @@ type WatchEvent = 'add' | 'addDir' | 'change' | 'unlink' | 'unlinkDir';
478
475
  type VueTSConfig = 0 extends 1 & RawVueCompilerOptions ? TSConfig : TSConfig & {
479
476
  vueCompilerOptions?: RawVueCompilerOptions;
480
477
  };
481
- type NuxtPage = {
478
+ interface NuxtPage {
482
479
  name?: string;
483
480
  path: string;
484
481
  props?: RouteRecordRaw['props'];
@@ -488,7 +485,6 @@ type NuxtPage = {
488
485
  redirect?: RouteLocationRaw;
489
486
  children?: NuxtPage[];
490
487
  middleware?: string[] | string;
491
- rules?: NitroRouteConfig;
492
488
  /**
493
489
  * Set the render mode.
494
490
  *
@@ -501,7 +497,7 @@ type NuxtPage = {
501
497
  mode?: 'client' | 'server' | 'all';
502
498
  /** @internal */
503
499
  _sync?: boolean;
504
- };
500
+ }
505
501
  type NuxtMiddleware = {
506
502
  name: string;
507
503
  path: string;
@@ -653,12 +649,6 @@ interface NuxtHooks {
653
649
  optional?: boolean;
654
650
  }>;
655
651
  }) => HookResult;
656
- /**
657
- * Called when the dev middleware is being registered on the Nitro dev server.
658
- * @param handler the Vite or Webpack event handler
659
- * @returns Promise
660
- */
661
- 'server:devHandler': (handler: EventHandler) => HookResult;
662
652
  /**
663
653
  * Called at setup allowing modules to extend sources.
664
654
  * @param presets Array containing presets objects
@@ -695,39 +685,6 @@ interface NuxtHooks {
695
685
  * @returns Promise
696
686
  */
697
687
  'components:extend': (components: Component[]) => HookResult;
698
- /**
699
- * Called before Nitro writes `.nuxt/tsconfig.server.json`, allowing addition of custom references and declarations.
700
- * @param options Objects containing `references`, `declarations`
701
- * @returns Promise
702
- */
703
- 'nitro:prepare:types': (options: {
704
- references: TSReference[];
705
- declarations: string[];
706
- }) => HookResult;
707
- /**
708
- * Called before initializing Nitro, allowing customization of Nitro's configuration.
709
- * @param nitroConfig The nitro config to be extended
710
- * @returns Promise
711
- */
712
- 'nitro:config': (nitroConfig: NitroConfig) => HookResult;
713
- /**
714
- * Called after Nitro is initialized, which allows registering Nitro hooks and interacting directly with Nitro.
715
- * @param nitro The created nitro object
716
- * @returns Promise
717
- */
718
- 'nitro:init': (nitro: Nitro) => HookResult;
719
- /**
720
- * Called before building the Nitro instance.
721
- * @param nitro The created nitro object
722
- * @returns Promise
723
- */
724
- 'nitro:build:before': (nitro: Nitro) => HookResult;
725
- /**
726
- * Called after copying public assets. Allows modifying public assets before Nitro server is built.
727
- * @param nitro The created nitro object
728
- * @returns Promise
729
- */
730
- 'nitro:build:public-assets': (nitro: Nitro) => HookResult;
731
688
  /**
732
689
  * Allows extending the routes to be pre-rendered.
733
690
  * @param ctx Nuxt context
@@ -1869,7 +1826,7 @@ interface ConfigSchema {
1869
1826
  /**
1870
1827
  * Set CORS options for the dev server
1871
1828
  */
1872
- cors: H3CorsOptions;
1829
+ cors: 'origin' extends keyof H3CorsOptions ? 'origin' extends keyof CorsOptions ? CorsOptions | H3CorsOptions : H3CorsOptions : CorsOptions;
1873
1830
  };
1874
1831
  /**
1875
1832
  * `future` is for early opting-in to new features that will become default in a future (possibly major) version of the framework.
@@ -2305,6 +2262,17 @@ interface ConfigSchema {
2305
2262
  * @see https://github.com/KazariEX/dxup
2306
2263
  */
2307
2264
  typescriptPlugin: boolean;
2265
+ /**
2266
+ * Whether to add a middleware to handle changes of base URL at runtime (has a performance overhead)
2267
+ *
2268
+ * This option only has effect when using Nitro v3+.
2269
+ */
2270
+ runtimeBaseURL: boolean;
2271
+ /**
2272
+ * Whether to enable a compatibility layer for Nitro auto imports.
2273
+ * We recommend migrating to direct imports instead.
2274
+ */
2275
+ nitroAutoImports: boolean;
2308
2276
  };
2309
2277
  /**
2310
2278
  *
@@ -2366,44 +2334,6 @@ interface ConfigSchema {
2366
2334
  bundle: (nuxt: Nuxt) => Promise<void>;
2367
2335
  };
2368
2336
  };
2369
- /**
2370
- * Configuration for Nitro.
2371
- *
2372
- * @see [Nitro configuration docs](https://nitro.build/config)
2373
- */
2374
- nitro: NitroConfig;
2375
- /**
2376
- * Global route options applied to matching server routes.
2377
- *
2378
- * @experimental This is an experimental feature and API may change in the future.
2379
- *
2380
- * @see [Nitro route rules documentation](https://nitro.build/config#routerules)
2381
- */
2382
- routeRules: NitroConfig['routeRules'];
2383
- /**
2384
- * Nitro server handlers.
2385
- *
2386
- * Each handler accepts the following options:
2387
- * - handler: The path to the file defining the handler. - route: The route under which the handler is available. This follows the conventions of [rou3](https://github.com/h3js/rou3). - method: The HTTP method of requests that should be handled. - middleware: Specifies whether it is a middleware handler. - lazy: Specifies whether to use lazy loading to import the handler.
2388
- *
2389
- * @see [`server/` directory documentation](https://nuxt.com/docs/4.x/directory-structure/server)
2390
- *
2391
- * @note Files from `server/api`, `server/middleware` and `server/routes` will be automatically registered by Nuxt.
2392
- *
2393
- * @example
2394
- * ```js
2395
- * serverHandlers: [
2396
- * { route: '/path/foo/**:name', handler: '~/server/foohandler.ts' }
2397
- * ]
2398
- * ```
2399
- */
2400
- serverHandlers: NitroEventHandler[];
2401
- /**
2402
- * Nitro development-only server handlers.
2403
- *
2404
- * @see [Nitro server routes documentation](https://nitro.build/guide/routing)
2405
- */
2406
- devServerHandlers: NitroDevEventHandler[];
2407
2337
  postcss: {
2408
2338
  /**
2409
2339
  * A strategy for ordering PostCSS plugins.
@@ -2776,18 +2706,17 @@ type RuntimeConfigNamespace = Record<string, unknown>;
2776
2706
  interface PublicRuntimeConfig extends RuntimeConfigNamespace {
2777
2707
  }
2778
2708
  interface RuntimeConfig extends RuntimeConfigNamespace {
2779
- app: NitroRuntimeConfigApp;
2780
- /** Only available on the server. */
2781
- nitro?: NitroRuntimeConfig['nitro'];
2782
2709
  public: PublicRuntimeConfig;
2783
2710
  }
2711
+ /**
2712
+ * User configuration in `nuxt.config` file
2713
+ */
2784
2714
  interface NuxtConfig extends DeepPartial<Omit<ConfigSchema, 'components' | 'vue' | 'vite' | 'runtimeConfig' | 'webpack' | 'nitro'>> {
2785
2715
  components?: ConfigSchema['components'];
2786
2716
  vue?: Omit<DeepPartial<ConfigSchema['vue']>, 'config'> & {
2787
2717
  config?: Partial<Filter<AppConfig$1, string | boolean>>;
2788
2718
  };
2789
2719
  vite?: ConfigSchema['vite'];
2790
- nitro?: NitroConfig;
2791
2720
  runtimeConfig?: Overrideable<RuntimeConfig>;
2792
2721
  webpack?: DeepPartial<ConfigSchema['webpack']> & {
2793
2722
  $client?: DeepPartial<ConfigSchema['webpack']>;
@@ -2891,4 +2820,4 @@ interface AppConfig {
2891
2820
  declare const _default: any;
2892
2821
 
2893
2822
  export { _default as NuxtConfigSchema };
2894
- export type { AppConfig, AppConfigInput, AppHeadMetaObject, Component, ComponentMeta, ComponentsDir, ComponentsOptions, CustomAppConfig, GenerateAppOptions, HookResult, ImportPresetWithDeprecation, ImportsOptions, KeyedFunction, MetaObject, MetaObjectRaw, ModuleDefinition, ModuleDependencies, ModuleDependencyMeta, ModuleMeta, ModuleOptions, ModuleSetupInstallResult, ModuleSetupReturn, Nuxt, NuxtAnalyzeMeta, NuxtApp, NuxtAppConfig, NuxtBuilder, NuxtCompatibility, NuxtCompatibilityIssue, NuxtCompatibilityIssues, NuxtConfig, NuxtConfigLayer, NuxtDebugContext, NuxtDebugModuleMutationRecord, NuxtHookName, NuxtHooks, NuxtLayout, NuxtMiddleware, NuxtModule, NuxtOptions, NuxtPage, NuxtPlugin, NuxtPluginTemplate, NuxtServerTemplate, NuxtTemplate, NuxtTypeTemplate, PublicRuntimeConfig, ResolvedModuleOptions, ResolvedNuxtTemplate, RouterConfig, RouterConfigSerializable, RouterOptions, RuntimeConfig, RuntimeValue, ScanDir, TSReference, UpperSnakeCase, ViteConfig, ViteOptions, VueTSConfig, WatchEvent };
2823
+ export type { AppConfig, AppConfigInput, AppHeadMetaObject, Component, ComponentMeta, ComponentsDir, ComponentsOptions, ConfigSchema, CustomAppConfig, GenerateAppOptions, HookResult, ImportPresetWithDeprecation, ImportsOptions, KeyedFunction, MetaObject, MetaObjectRaw, ModuleDefinition, ModuleDependencies, ModuleDependencyMeta, ModuleMeta, ModuleOptions, ModuleSetupInstallResult, ModuleSetupReturn, Nuxt, NuxtAnalyzeMeta, NuxtApp, NuxtAppConfig, NuxtBuilder, NuxtCompatibility, NuxtCompatibilityIssue, NuxtCompatibilityIssues, NuxtConfig, NuxtConfigLayer, NuxtDebugContext, NuxtDebugModuleMutationRecord, NuxtDebugOptions, NuxtHookName, NuxtHooks, NuxtLayout, NuxtMiddleware, NuxtModule, NuxtOptions, NuxtPage, NuxtPlugin, NuxtPluginTemplate, NuxtServerTemplate, NuxtTemplate, NuxtTypeTemplate, PublicRuntimeConfig, ResolvedModuleOptions, ResolvedNuxtTemplate, RouterConfig, RouterConfigSerializable, RouterOptions, RuntimeConfig, RuntimeValue, ScanDir, TSReference, UpperSnakeCase, ViteConfig, ViteOptions, VueTSConfig, WatchEvent };
package/dist/index.d.ts CHANGED
@@ -4,7 +4,6 @@ import { Options as Options$5 } from '@vitejs/plugin-vue';
4
4
  import { Options as Options$6 } from '@vitejs/plugin-vue-jsx';
5
5
  import { SchemaDefinition, Schema } from 'untyped';
6
6
  export { SchemaDefinition } from 'untyped';
7
- import { NitroOptions, NitroRouteConfig, NitroConfig, Nitro, NitroEventHandler, NitroDevEventHandler, NitroRuntimeConfigApp, NitroRuntimeConfig } from 'nitropack/types';
8
7
  import { SnakeCase } from 'scule';
9
8
  import { SourceOptions, DotenvOptions, ResolvedConfig } from 'c12';
10
9
  import { Server, IncomingMessage, ServerResponse } from 'node:http';
@@ -17,7 +16,7 @@ import { TransformerOptions } from 'unctx/transform';
17
16
  import { CompatibilityDateSpec } from 'compatx';
18
17
  import { Ignore, Options } from 'ignore';
19
18
  import { ChokidarOptions } from 'chokidar';
20
- import { EventHandler, H3CorsOptions } from 'h3';
19
+ import { H3CorsOptions, CorsOptions } from 'h3';
21
20
  import { NuxtLinkOptions } from 'nuxt/app';
22
21
  import { FetchOptions } from 'ofetch';
23
22
  import { Options as Options$1 } from 'autoprefixer';
@@ -352,8 +351,6 @@ interface NuxtDebugOptions {
352
351
  modules?: boolean;
353
352
  /** Debug for file watchers */
354
353
  watchers?: boolean;
355
- /** Debug options for Nitro */
356
- nitro?: NitroOptions['debug'];
357
354
  /** Debug for production hydration mismatch */
358
355
  hydration?: boolean;
359
356
  /** Debug for Vue Router */
@@ -478,7 +475,7 @@ type WatchEvent = 'add' | 'addDir' | 'change' | 'unlink' | 'unlinkDir';
478
475
  type VueTSConfig = 0 extends 1 & RawVueCompilerOptions ? TSConfig : TSConfig & {
479
476
  vueCompilerOptions?: RawVueCompilerOptions;
480
477
  };
481
- type NuxtPage = {
478
+ interface NuxtPage {
482
479
  name?: string;
483
480
  path: string;
484
481
  props?: RouteRecordRaw['props'];
@@ -488,7 +485,6 @@ type NuxtPage = {
488
485
  redirect?: RouteLocationRaw;
489
486
  children?: NuxtPage[];
490
487
  middleware?: string[] | string;
491
- rules?: NitroRouteConfig;
492
488
  /**
493
489
  * Set the render mode.
494
490
  *
@@ -501,7 +497,7 @@ type NuxtPage = {
501
497
  mode?: 'client' | 'server' | 'all';
502
498
  /** @internal */
503
499
  _sync?: boolean;
504
- };
500
+ }
505
501
  type NuxtMiddleware = {
506
502
  name: string;
507
503
  path: string;
@@ -653,12 +649,6 @@ interface NuxtHooks {
653
649
  optional?: boolean;
654
650
  }>;
655
651
  }) => HookResult;
656
- /**
657
- * Called when the dev middleware is being registered on the Nitro dev server.
658
- * @param handler the Vite or Webpack event handler
659
- * @returns Promise
660
- */
661
- 'server:devHandler': (handler: EventHandler) => HookResult;
662
652
  /**
663
653
  * Called at setup allowing modules to extend sources.
664
654
  * @param presets Array containing presets objects
@@ -695,39 +685,6 @@ interface NuxtHooks {
695
685
  * @returns Promise
696
686
  */
697
687
  'components:extend': (components: Component[]) => HookResult;
698
- /**
699
- * Called before Nitro writes `.nuxt/tsconfig.server.json`, allowing addition of custom references and declarations.
700
- * @param options Objects containing `references`, `declarations`
701
- * @returns Promise
702
- */
703
- 'nitro:prepare:types': (options: {
704
- references: TSReference[];
705
- declarations: string[];
706
- }) => HookResult;
707
- /**
708
- * Called before initializing Nitro, allowing customization of Nitro's configuration.
709
- * @param nitroConfig The nitro config to be extended
710
- * @returns Promise
711
- */
712
- 'nitro:config': (nitroConfig: NitroConfig) => HookResult;
713
- /**
714
- * Called after Nitro is initialized, which allows registering Nitro hooks and interacting directly with Nitro.
715
- * @param nitro The created nitro object
716
- * @returns Promise
717
- */
718
- 'nitro:init': (nitro: Nitro) => HookResult;
719
- /**
720
- * Called before building the Nitro instance.
721
- * @param nitro The created nitro object
722
- * @returns Promise
723
- */
724
- 'nitro:build:before': (nitro: Nitro) => HookResult;
725
- /**
726
- * Called after copying public assets. Allows modifying public assets before Nitro server is built.
727
- * @param nitro The created nitro object
728
- * @returns Promise
729
- */
730
- 'nitro:build:public-assets': (nitro: Nitro) => HookResult;
731
688
  /**
732
689
  * Allows extending the routes to be pre-rendered.
733
690
  * @param ctx Nuxt context
@@ -1869,7 +1826,7 @@ interface ConfigSchema {
1869
1826
  /**
1870
1827
  * Set CORS options for the dev server
1871
1828
  */
1872
- cors: H3CorsOptions;
1829
+ cors: 'origin' extends keyof H3CorsOptions ? 'origin' extends keyof CorsOptions ? CorsOptions | H3CorsOptions : H3CorsOptions : CorsOptions;
1873
1830
  };
1874
1831
  /**
1875
1832
  * `future` is for early opting-in to new features that will become default in a future (possibly major) version of the framework.
@@ -2305,6 +2262,17 @@ interface ConfigSchema {
2305
2262
  * @see https://github.com/KazariEX/dxup
2306
2263
  */
2307
2264
  typescriptPlugin: boolean;
2265
+ /**
2266
+ * Whether to add a middleware to handle changes of base URL at runtime (has a performance overhead)
2267
+ *
2268
+ * This option only has effect when using Nitro v3+.
2269
+ */
2270
+ runtimeBaseURL: boolean;
2271
+ /**
2272
+ * Whether to enable a compatibility layer for Nitro auto imports.
2273
+ * We recommend migrating to direct imports instead.
2274
+ */
2275
+ nitroAutoImports: boolean;
2308
2276
  };
2309
2277
  /**
2310
2278
  *
@@ -2366,44 +2334,6 @@ interface ConfigSchema {
2366
2334
  bundle: (nuxt: Nuxt) => Promise<void>;
2367
2335
  };
2368
2336
  };
2369
- /**
2370
- * Configuration for Nitro.
2371
- *
2372
- * @see [Nitro configuration docs](https://nitro.build/config)
2373
- */
2374
- nitro: NitroConfig;
2375
- /**
2376
- * Global route options applied to matching server routes.
2377
- *
2378
- * @experimental This is an experimental feature and API may change in the future.
2379
- *
2380
- * @see [Nitro route rules documentation](https://nitro.build/config#routerules)
2381
- */
2382
- routeRules: NitroConfig['routeRules'];
2383
- /**
2384
- * Nitro server handlers.
2385
- *
2386
- * Each handler accepts the following options:
2387
- * - handler: The path to the file defining the handler. - route: The route under which the handler is available. This follows the conventions of [rou3](https://github.com/h3js/rou3). - method: The HTTP method of requests that should be handled. - middleware: Specifies whether it is a middleware handler. - lazy: Specifies whether to use lazy loading to import the handler.
2388
- *
2389
- * @see [`server/` directory documentation](https://nuxt.com/docs/4.x/directory-structure/server)
2390
- *
2391
- * @note Files from `server/api`, `server/middleware` and `server/routes` will be automatically registered by Nuxt.
2392
- *
2393
- * @example
2394
- * ```js
2395
- * serverHandlers: [
2396
- * { route: '/path/foo/**:name', handler: '~/server/foohandler.ts' }
2397
- * ]
2398
- * ```
2399
- */
2400
- serverHandlers: NitroEventHandler[];
2401
- /**
2402
- * Nitro development-only server handlers.
2403
- *
2404
- * @see [Nitro server routes documentation](https://nitro.build/guide/routing)
2405
- */
2406
- devServerHandlers: NitroDevEventHandler[];
2407
2337
  postcss: {
2408
2338
  /**
2409
2339
  * A strategy for ordering PostCSS plugins.
@@ -2776,18 +2706,17 @@ type RuntimeConfigNamespace = Record<string, unknown>;
2776
2706
  interface PublicRuntimeConfig extends RuntimeConfigNamespace {
2777
2707
  }
2778
2708
  interface RuntimeConfig extends RuntimeConfigNamespace {
2779
- app: NitroRuntimeConfigApp;
2780
- /** Only available on the server. */
2781
- nitro?: NitroRuntimeConfig['nitro'];
2782
2709
  public: PublicRuntimeConfig;
2783
2710
  }
2711
+ /**
2712
+ * User configuration in `nuxt.config` file
2713
+ */
2784
2714
  interface NuxtConfig extends DeepPartial<Omit<ConfigSchema, 'components' | 'vue' | 'vite' | 'runtimeConfig' | 'webpack' | 'nitro'>> {
2785
2715
  components?: ConfigSchema['components'];
2786
2716
  vue?: Omit<DeepPartial<ConfigSchema['vue']>, 'config'> & {
2787
2717
  config?: Partial<Filter<AppConfig$1, string | boolean>>;
2788
2718
  };
2789
2719
  vite?: ConfigSchema['vite'];
2790
- nitro?: NitroConfig;
2791
2720
  runtimeConfig?: Overrideable<RuntimeConfig>;
2792
2721
  webpack?: DeepPartial<ConfigSchema['webpack']> & {
2793
2722
  $client?: DeepPartial<ConfigSchema['webpack']>;
@@ -2891,4 +2820,4 @@ interface AppConfig {
2891
2820
  declare const _default: any;
2892
2821
 
2893
2822
  export { _default as NuxtConfigSchema };
2894
- export type { AppConfig, AppConfigInput, AppHeadMetaObject, Component, ComponentMeta, ComponentsDir, ComponentsOptions, CustomAppConfig, GenerateAppOptions, HookResult, ImportPresetWithDeprecation, ImportsOptions, KeyedFunction, MetaObject, MetaObjectRaw, ModuleDefinition, ModuleDependencies, ModuleDependencyMeta, ModuleMeta, ModuleOptions, ModuleSetupInstallResult, ModuleSetupReturn, Nuxt, NuxtAnalyzeMeta, NuxtApp, NuxtAppConfig, NuxtBuilder, NuxtCompatibility, NuxtCompatibilityIssue, NuxtCompatibilityIssues, NuxtConfig, NuxtConfigLayer, NuxtDebugContext, NuxtDebugModuleMutationRecord, NuxtHookName, NuxtHooks, NuxtLayout, NuxtMiddleware, NuxtModule, NuxtOptions, NuxtPage, NuxtPlugin, NuxtPluginTemplate, NuxtServerTemplate, NuxtTemplate, NuxtTypeTemplate, PublicRuntimeConfig, ResolvedModuleOptions, ResolvedNuxtTemplate, RouterConfig, RouterConfigSerializable, RouterOptions, RuntimeConfig, RuntimeValue, ScanDir, TSReference, UpperSnakeCase, ViteConfig, ViteOptions, VueTSConfig, WatchEvent };
2823
+ export type { AppConfig, AppConfigInput, AppHeadMetaObject, Component, ComponentMeta, ComponentsDir, ComponentsOptions, ConfigSchema, CustomAppConfig, GenerateAppOptions, HookResult, ImportPresetWithDeprecation, ImportsOptions, KeyedFunction, MetaObject, MetaObjectRaw, ModuleDefinition, ModuleDependencies, ModuleDependencyMeta, ModuleMeta, ModuleOptions, ModuleSetupInstallResult, ModuleSetupReturn, Nuxt, NuxtAnalyzeMeta, NuxtApp, NuxtAppConfig, NuxtBuilder, NuxtCompatibility, NuxtCompatibilityIssue, NuxtCompatibilityIssues, NuxtConfig, NuxtConfigLayer, NuxtDebugContext, NuxtDebugModuleMutationRecord, NuxtDebugOptions, NuxtHookName, NuxtHooks, NuxtLayout, NuxtMiddleware, NuxtModule, NuxtOptions, NuxtPage, NuxtPlugin, NuxtPluginTemplate, NuxtServerTemplate, NuxtTemplate, NuxtTypeTemplate, PublicRuntimeConfig, ResolvedModuleOptions, ResolvedNuxtTemplate, RouterConfig, RouterConfigSerializable, RouterOptions, RuntimeConfig, RuntimeValue, ScanDir, TSReference, UpperSnakeCase, ViteConfig, ViteOptions, VueTSConfig, WatchEvent };
package/dist/index.mjs CHANGED
@@ -716,6 +716,7 @@ const experimental = defineResolvers({
716
716
  }
717
717
  },
718
718
  experimental: {
719
+ runtimeBaseURL: false,
719
720
  decorators: false,
720
721
  asyncEntry: {
721
722
  $resolve: (val) => typeof val === "boolean" ? val : false
@@ -723,7 +724,7 @@ const experimental = defineResolvers({
723
724
  // TODO: Remove when nitro has support for mocking traced dependencies
724
725
  // https://github.com/nitrojs/nitro/issues/1118
725
726
  externalVue: true,
726
- serverAppConfig: false,
727
+ serverAppConfig: true,
727
728
  emitRouteChunkError: {
728
729
  $resolve: (val) => {
729
730
  if (val === true) {
@@ -872,6 +873,11 @@ const experimental = defineResolvers({
872
873
  $resolve: async (val, get) => {
873
874
  return typeof val === "boolean" ? val : await get("future.compatibilityVersion") >= 5;
874
875
  }
876
+ },
877
+ nitroAutoImports: {
878
+ $resolve: async (val, get) => {
879
+ return typeof val === "boolean" ? val : await get("future.compatibilityVersion") < 5;
880
+ }
875
881
  }
876
882
  }
877
883
  });
@@ -1024,18 +1030,6 @@ const typescript = defineResolvers({
1024
1030
  hoist: {
1025
1031
  $resolve: (val) => {
1026
1032
  const defaults = [
1027
- // Nitro auto-imported/augmented dependencies
1028
- "nitro/types",
1029
- "nitro/runtime",
1030
- // TODO: remove in v5
1031
- "nitropack/types",
1032
- "nitropack/runtime",
1033
- "nitropack",
1034
- "defu",
1035
- "h3",
1036
- "consola",
1037
- "ofetch",
1038
- "crossws",
1039
1033
  // Key nuxt dependencies
1040
1034
  "@unhead/vue",
1041
1035
  "@nuxt/devtools",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/schema-nightly",
3
- "version": "4.3.0-29461891.8f4fbecd",
3
+ "version": "4.3.0-29465977.c4f46c64",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -51,7 +51,6 @@
51
51
  "hookable": "5.5.3",
52
52
  "ignore": "7.0.5",
53
53
  "mini-css-extract-plugin": "2.9.4",
54
- "nitropack": "2.12.9",
55
54
  "ofetch": "1.5.1",
56
55
  "oxc-transform": "0.107.0",
57
56
  "postcss": "8.5.6",