@nuxt/schema-nightly 4.0.0-29144650.ca2dff25 → 4.0.0-29145487.7beaa672

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
@@ -5,7 +5,7 @@ import { Options as Options$6 } from '@vitejs/plugin-vue-jsx';
5
5
  import * as untyped from 'untyped';
6
6
  import { SchemaDefinition, Schema } from 'untyped';
7
7
  export { SchemaDefinition } from 'untyped';
8
- import { NitroOptions, NitroConfig, Nitro, NitroEventHandler, NitroDevEventHandler, NitroRuntimeConfigApp, NitroRuntimeConfig } from 'nitro/types';
8
+ import { NitroOptions, NitroConfig, Nitro, NitroEventHandler, NitroDevEventHandler, NitroRuntimeConfigApp, NitroRuntimeConfig } from 'nitropack/types';
9
9
  import { SnakeCase } from 'scule';
10
10
  import * as c12 from 'c12';
11
11
  import { SourceOptions, ResolvedConfig } from 'c12';
package/dist/index.d.ts CHANGED
@@ -5,7 +5,7 @@ import { Options as Options$6 } from '@vitejs/plugin-vue-jsx';
5
5
  import * as untyped from 'untyped';
6
6
  import { SchemaDefinition, Schema } from 'untyped';
7
7
  export { SchemaDefinition } from 'untyped';
8
- import { NitroOptions, NitroConfig, Nitro, NitroEventHandler, NitroDevEventHandler, NitroRuntimeConfigApp, NitroRuntimeConfig } from 'nitro/types';
8
+ import { NitroOptions, NitroConfig, Nitro, NitroEventHandler, NitroDevEventHandler, NitroRuntimeConfigApp, NitroRuntimeConfig } from 'nitropack/types';
9
9
  import { SnakeCase } from 'scule';
10
10
  import * as c12 from 'c12';
11
11
  import { SourceOptions, ResolvedConfig } from 'c12';
package/dist/index.mjs CHANGED
@@ -2161,7 +2161,7 @@ const nitro = defineResolvers({
2161
2161
  /**
2162
2162
  * Configuration for Nitro.
2163
2163
  * @see [Nitro configuration docs](https://nitro.build/config/)
2164
- * @type {typeof import('nitro/types')['NitroConfig']}
2164
+ * @type {typeof import('nitropack/types')['NitroConfig']}
2165
2165
  */
2166
2166
  nitro: {
2167
2167
  runtimeConfig: {
@@ -2193,7 +2193,7 @@ const nitro = defineResolvers({
2193
2193
  * Global route options applied to matching server routes.
2194
2194
  * @experimental This is an experimental feature and API may change in the future.
2195
2195
  * @see [Nitro route rules documentation](https://nitro.build/config/#routerules)
2196
- * @type {typeof import('nitro/types')['NitroConfig']['routeRules']}
2196
+ * @type {typeof import('nitropack/types')['NitroConfig']['routeRules']}
2197
2197
  */
2198
2198
  routeRules: {},
2199
2199
  /**
@@ -2215,13 +2215,13 @@ const nitro = defineResolvers({
2215
2215
  * { route: '/path/foo/**:name', handler: '~/server/foohandler.ts' }
2216
2216
  * ]
2217
2217
  * ```
2218
- * @type {typeof import('nitro/types')['NitroEventHandler'][]}
2218
+ * @type {typeof import('nitropack/types')['NitroEventHandler'][]}
2219
2219
  */
2220
2220
  serverHandlers: [],
2221
2221
  /**
2222
2222
  * Nitro development-only server handlers.
2223
2223
  * @see [Nitro server routes documentation](https://nitro.build/guide/routing)
2224
- * @type {typeof import('nitro/types')['NitroDevEventHandler'][]}
2224
+ * @type {typeof import('nitropack/types')['NitroDevEventHandler'][]}
2225
2225
  */
2226
2226
  devServerHandlers: []
2227
2227
  });
@@ -2368,6 +2368,10 @@ const typescript = defineResolvers({
2368
2368
  // Nitro auto-imported/augmented dependencies
2369
2369
  "nitro/types",
2370
2370
  "nitro/runtime",
2371
+ // TODO: remove in v5
2372
+ "nitropack/types",
2373
+ "nitropack/runtime",
2374
+ "nitropack",
2371
2375
  "defu",
2372
2376
  "h3",
2373
2377
  "consola",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/schema-nightly",
3
- "version": "4.0.0-29144650.ca2dff25",
3
+ "version": "4.0.0-29145487.7beaa672",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -52,7 +52,7 @@
52
52
  "hookable": "5.5.3",
53
53
  "ignore": "7.0.4",
54
54
  "mini-css-extract-plugin": "2.9.2",
55
- "nitro": "npm:nitro-nightly@3.0.0-20250527-175200.8c2a2d85",
55
+ "nitropack": "2.11.12",
56
56
  "ofetch": "1.4.1",
57
57
  "pkg-types": "2.1.0",
58
58
  "postcss": "8.5.4",
@@ -19,7 +19,7 @@ import type { NuxtHooks } from '../src/types/hooks'
19
19
  import type { H3CorsOptions } from 'h3'
20
20
  import type { NuxtLinkOptions } from 'nuxt/app'
21
21
  import type { FetchOptions } from 'ofetch'
22
- import type { NitroConfig, NitroEventHandler, NitroDevEventHandler } from 'nitro/types'
22
+ import type { NitroConfig, NitroEventHandler, NitroDevEventHandler } from 'nitropack/types'
23
23
  import type { Options as Options0 } from 'autoprefixer'
24
24
  import type { Options as Options1 } from 'cssnano'
25
25
  import type { RouterConfigSerializable } from '../src/types/router'
@@ -711,7 +711,7 @@ export interface ConfigSchema {
711
711
  /**
712
712
  * A unique identifier matching the build. This may contain the hash of the current state of the project.
713
713
  *
714
- * @default "072c29a7-52f1-448c-be7d-8aeccdb30ab6"
714
+ * @default "106c0d3f-806d-4b3e-9800-2b2cbe4abf26"
715
715
  */
716
716
  buildId: string,
717
717
 
@@ -1873,7 +1873,7 @@ export interface ConfigSchema {
1873
1873
  /**
1874
1874
  * Modules to generate deep aliases for within `compilerOptions.paths`. This does not yet support subpaths. It may be necessary when using Nuxt within a pnpm monorepo with `shamefully-hoist=false`.
1875
1875
  *
1876
- * @default ["nitro/types","nitro/runtime","defu","h3","consola","ofetch","@unhead/vue","@nuxt/devtools","vue","@vue/runtime-core","@vue/compiler-sfc","vue-router","vue-router/auto-routes","unplugin-vue-router/client","@nuxt/schema","nuxt"]
1876
+ * @default ["nitro/types","nitro/runtime","nitropack/types","nitropack/runtime","nitropack","defu","h3","consola","ofetch","@unhead/vue","@nuxt/devtools","vue","@vue/runtime-core","@vue/compiler-sfc","vue-router","vue-router/auto-routes","unplugin-vue-router/client","@nuxt/schema","nuxt"]
1877
1877
  */
1878
1878
  hoist: Array<string>,
1879
1879
 
@@ -251,6 +251,9 @@
251
251
  "hoist": [
252
252
  "nitro/types",
253
253
  "nitro/runtime",
254
+ "nitropack/types",
255
+ "nitropack/runtime",
256
+ "nitropack",
254
257
  "defu",
255
258
  "h3",
256
259
  "consola",
@@ -395,7 +398,7 @@
395
398
  "serverDir": "/<rootDir>/server",
396
399
  "appId": "nuxt-app",
397
400
  "test": false,
398
- "buildId": "072c29a7-52f1-448c-be7d-8aeccdb30ab6",
401
+ "buildId": "106c0d3f-806d-4b3e-9800-2b2cbe4abf26",
399
402
  "modulesDir": [
400
403
  "/<rootDir>/node_modules"
401
404
  ],
@@ -459,7 +462,7 @@
459
462
  "runtimeConfig": {
460
463
  "public": {},
461
464
  "app": {
462
- "buildId": "072c29a7-52f1-448c-be7d-8aeccdb30ab6",
465
+ "buildId": "106c0d3f-806d-4b3e-9800-2b2cbe4abf26",
463
466
  "baseURL": "/",
464
467
  "buildAssetsDir": "/_nuxt/",
465
468
  "cdnURL": ""
@@ -505,7 +508,7 @@
505
508
  "runtimeConfig": {
506
509
  "public": {},
507
510
  "app": {
508
- "buildId": "072c29a7-52f1-448c-be7d-8aeccdb30ab6",
511
+ "buildId": "106c0d3f-806d-4b3e-9800-2b2cbe4abf26",
509
512
  "baseURL": "/",
510
513
  "buildAssetsDir": "/_nuxt/",
511
514
  "cdnURL": ""
package/schema/config.md CHANGED
@@ -451,7 +451,7 @@ Defaults to `nuxt-app`.
451
451
 
452
452
  # `buildId`
453
453
  - **Type**: `string`
454
- - **Default**: `"072c29a7-52f1-448c-be7d-8aeccdb30ab6"`
454
+ - **Default**: `"106c0d3f-806d-4b3e-9800-2b2cbe4abf26"`
455
455
 
456
456
  > A unique identifier matching the build. This may contain the hash of the current state of the project.
457
457
 
@@ -1285,14 +1285,14 @@ It is preferred to use `nitro.prerender.routes`.
1285
1285
  ## `routeRules`
1286
1286
 
1287
1287
  # `routeRules`
1288
- - **Type**: `NitroTypesNitroConfig['routeRules']`
1288
+ - **Type**: `NitropackTypesNitroConfig['routeRules']`
1289
1289
  - **Default**: `{}`
1290
1290
 
1291
1291
  > Global route options applied to matching server routes.
1292
1292
 
1293
1293
 
1294
1294
  # `serverHandlers`
1295
- - **Type**: `NitroTypesNitroEventHandler[]`
1295
+ - **Type**: `NitropackTypesNitroEventHandler[]`
1296
1296
  - **Default**: `[]`
1297
1297
 
1298
1298
  > Nitro server handlers.
@@ -1303,7 +1303,7 @@ Each handler accepts the following options:
1303
1303
 
1304
1304
 
1305
1305
  # `devServerHandlers`
1306
- - **Type**: `NitroTypesNitroDevEventHandler[]`
1306
+ - **Type**: `NitropackTypesNitroDevEventHandler[]`
1307
1307
  - **Default**: `[]`
1308
1308
 
1309
1309
  > Nitro development-only server handlers.
@@ -1373,7 +1373,7 @@ The 'shared' option is advised for module authors, who will want to support mult
1373
1373
 
1374
1374
  ## `hoist`
1375
1375
  - **Type**: `array`
1376
- - **Default**: `["nitro/types","nitro/runtime","defu","h3","consola","ofetch","@unhead/vue","@nuxt/devtools","vue","@vue/runtime-core","@vue/compiler-sfc","vue-router","vue-router/auto-routes","unplugin-vue-router/client","@nuxt/schema","nuxt"]`
1376
+ - **Default**: `["nitro/types","nitro/runtime","nitropack/types","nitropack/runtime","nitropack","defu","h3","consola","ofetch","@unhead/vue","@nuxt/devtools","vue","@vue/runtime-core","@vue/compiler-sfc","vue-router","vue-router/auto-routes","unplugin-vue-router/client","@nuxt/schema","nuxt"]`
1377
1377
 
1378
1378
  > Modules to generate deep aliases for within `compilerOptions.paths`. This does not yet support subpaths. It may be necessary when using Nuxt within a pnpm monorepo with `shamefully-hoist=false`.
1379
1379
 
@@ -1114,7 +1114,7 @@
1114
1114
  "description": "",
1115
1115
  "tags": [],
1116
1116
  "id": "#buildId",
1117
- "default": "072c29a7-52f1-448c-be7d-8aeccdb30ab6",
1117
+ "default": "106c0d3f-806d-4b3e-9800-2b2cbe4abf26",
1118
1118
  "type": "string"
1119
1119
  },
1120
1120
  "modulesDir": {
@@ -1486,7 +1486,7 @@
1486
1486
  "default": {
1487
1487
  "public": {},
1488
1488
  "app": {
1489
- "buildId": "072c29a7-52f1-448c-be7d-8aeccdb30ab6",
1489
+ "buildId": "106c0d3f-806d-4b3e-9800-2b2cbe4abf26",
1490
1490
  "baseURL": "/",
1491
1491
  "buildAssetsDir": "/_nuxt/",
1492
1492
  "cdnURL": ""
@@ -2429,8 +2429,8 @@
2429
2429
  "tags": [
2430
2430
  "@see [Nitro configuration docs](https://nitro.build/config/)"
2431
2431
  ],
2432
- "tsType": "typeof import('nitro/types')['NitroConfig']",
2433
- "markdownType": "NitroTypesNitroConfig",
2432
+ "tsType": "typeof import('nitropack/types')['NitroConfig']",
2433
+ "markdownType": "NitropackTypesNitroConfig",
2434
2434
  "id": "#nitro",
2435
2435
  "properties": {
2436
2436
  "runtimeConfig": {
@@ -2438,7 +2438,7 @@
2438
2438
  "default": {
2439
2439
  "public": {},
2440
2440
  "app": {
2441
- "buildId": "072c29a7-52f1-448c-be7d-8aeccdb30ab6",
2441
+ "buildId": "106c0d3f-806d-4b3e-9800-2b2cbe4abf26",
2442
2442
  "baseURL": "/",
2443
2443
  "buildAssetsDir": "/_nuxt/",
2444
2444
  "cdnURL": ""
@@ -2459,7 +2459,7 @@
2459
2459
  "runtimeConfig": {
2460
2460
  "public": {},
2461
2461
  "app": {
2462
- "buildId": "072c29a7-52f1-448c-be7d-8aeccdb30ab6",
2462
+ "buildId": "106c0d3f-806d-4b3e-9800-2b2cbe4abf26",
2463
2463
  "baseURL": "/",
2464
2464
  "buildAssetsDir": "/_nuxt/",
2465
2465
  "cdnURL": ""
@@ -2479,8 +2479,8 @@
2479
2479
  "@experimental This is an experimental feature and API may change in the future.",
2480
2480
  "@see [Nitro route rules documentation](https://nitro.build/config/#routerules)"
2481
2481
  ],
2482
- "tsType": "typeof import('nitro/types')['NitroConfig']['routeRules']",
2483
- "markdownType": "NitroTypesNitroConfig['routeRules']",
2482
+ "tsType": "typeof import('nitropack/types')['NitroConfig']['routeRules']",
2483
+ "markdownType": "NitropackTypesNitroConfig['routeRules']",
2484
2484
  "id": "#routeRules",
2485
2485
  "default": {},
2486
2486
  "type": "any"
@@ -2493,8 +2493,8 @@
2493
2493
  "@note Files from `server/api`, `server/middleware` and `server/routes` will be automatically registered by Nuxt.",
2494
2494
  "@example\n```js\nserverHandlers: [\n { route: '/path/foo/**:name', handler: '~/server/foohandler.ts' }\n]\n```"
2495
2495
  ],
2496
- "tsType": "typeof import('nitro/types')['NitroEventHandler'][]",
2497
- "markdownType": "NitroTypesNitroEventHandler[]",
2496
+ "tsType": "typeof import('nitropack/types')['NitroEventHandler'][]",
2497
+ "markdownType": "NitropackTypesNitroEventHandler[]",
2498
2498
  "id": "#serverHandlers",
2499
2499
  "default": [],
2500
2500
  "type": "array",
@@ -2508,8 +2508,8 @@
2508
2508
  "tags": [
2509
2509
  "@see [Nitro server routes documentation](https://nitro.build/guide/routing)"
2510
2510
  ],
2511
- "tsType": "typeof import('nitro/types')['NitroDevEventHandler'][]",
2512
- "markdownType": "NitroTypesNitroDevEventHandler[]",
2511
+ "tsType": "typeof import('nitropack/types')['NitroDevEventHandler'][]",
2512
+ "markdownType": "NitropackTypesNitroDevEventHandler[]",
2513
2513
  "id": "#devServerHandlers",
2514
2514
  "default": [],
2515
2515
  "type": "array",
@@ -2659,6 +2659,9 @@
2659
2659
  "default": [
2660
2660
  "nitro/types",
2661
2661
  "nitro/runtime",
2662
+ "nitropack/types",
2663
+ "nitropack/runtime",
2664
+ "nitropack",
2662
2665
  "defu",
2663
2666
  "h3",
2664
2667
  "consola",
@@ -2724,6 +2727,9 @@
2724
2727
  "hoist": [
2725
2728
  "nitro/types",
2726
2729
  "nitro/runtime",
2730
+ "nitropack/types",
2731
+ "nitropack/runtime",
2732
+ "nitropack",
2727
2733
  "defu",
2728
2734
  "h3",
2729
2735
  "consola",
@@ -4283,7 +4289,7 @@
4283
4289
  "serverDir": "/<rootDir>/server",
4284
4290
  "buildDir": "/<rootDir>/.nuxt",
4285
4291
  "appId": "nuxt-app",
4286
- "buildId": "072c29a7-52f1-448c-be7d-8aeccdb30ab6",
4292
+ "buildId": "106c0d3f-806d-4b3e-9800-2b2cbe4abf26",
4287
4293
  "modulesDir": [
4288
4294
  "/<rootDir>/node_modules"
4289
4295
  ],
@@ -4351,7 +4357,7 @@
4351
4357
  "runtimeConfig": {
4352
4358
  "public": {},
4353
4359
  "app": {
4354
- "buildId": "072c29a7-52f1-448c-be7d-8aeccdb30ab6",
4360
+ "buildId": "106c0d3f-806d-4b3e-9800-2b2cbe4abf26",
4355
4361
  "baseURL": "/",
4356
4362
  "buildAssetsDir": "/_nuxt/",
4357
4363
  "cdnURL": ""
@@ -4459,7 +4465,7 @@
4459
4465
  "runtimeConfig": {
4460
4466
  "public": {},
4461
4467
  "app": {
4462
- "buildId": "072c29a7-52f1-448c-be7d-8aeccdb30ab6",
4468
+ "buildId": "106c0d3f-806d-4b3e-9800-2b2cbe4abf26",
4463
4469
  "baseURL": "/",
4464
4470
  "buildAssetsDir": "/_nuxt/",
4465
4471
  "cdnURL": ""
@@ -4492,6 +4498,9 @@
4492
4498
  "hoist": [
4493
4499
  "nitro/types",
4494
4500
  "nitro/runtime",
4501
+ "nitropack/types",
4502
+ "nitropack/runtime",
4503
+ "nitropack",
4495
4504
  "defu",
4496
4505
  "h3",
4497
4506
  "consola",