@nuxt/schema-nightly 4.0.0-29077680.05abdf14 → 4.0.0-29077753.3a027b35

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
@@ -232,6 +232,7 @@ type NuxtPage = {
232
232
  alias?: string[] | string;
233
233
  redirect?: RouteLocationRaw;
234
234
  children?: NuxtPage[];
235
+ middleware?: string[] | string;
235
236
  /**
236
237
  * Set the render mode.
237
238
  *
@@ -1601,7 +1602,7 @@ interface ConfigSchema {
1601
1602
  /**
1602
1603
  * A unique identifier matching the build. This may contain the hash of the current state of the project.
1603
1604
  *
1604
- * @default "01349561-4f47-4806-859c-67b272764f27"
1605
+ * @default "e34597ed-99df-40a7-bdc8-a7e780da0288"
1605
1606
  */
1606
1607
  buildId: string,
1607
1608
 
@@ -2270,7 +2271,7 @@ interface ConfigSchema {
2270
2271
  inlineRouteRules: boolean,
2271
2272
 
2272
2273
  /**
2273
- * Allow exposing some route metadata defined in `definePageMeta` at build-time to modules (alias, name, path, redirect).
2274
+ * Allow exposing some route metadata defined in `definePageMeta` at build-time to modules (alias, name, path, redirect, props, middleware).
2274
2275
  *
2275
2276
  * This only works with static or strings/arrays rather than variables or conditional assignment.
2276
2277
  *
@@ -2509,6 +2510,27 @@ interface ConfigSchema {
2509
2510
  * @see [PR #31379](https://github.com/nuxt/nuxt/pull/31379)
2510
2511
  */
2511
2512
  purgeCachedData: boolean,
2513
+
2514
+ /**
2515
+ * Whether to call and use the result from `getCachedData` on manual refresh for `useAsyncData` and `useFetch`.
2516
+ *
2517
+ * @default true
2518
+ */
2519
+ granularCachedData: boolean,
2520
+
2521
+ /**
2522
+ * Whether to parse `error.data` when rendering a server error page.
2523
+ *
2524
+ * @default true
2525
+ */
2526
+ parseErrorData: boolean,
2527
+
2528
+ /**
2529
+ * Whether Nuxt should stop if a Nuxt module is incompatible.
2530
+ *
2531
+ * @default false
2532
+ */
2533
+ enforceModuleCompatibility: boolean,
2512
2534
  },
2513
2535
 
2514
2536
  generate: {
package/dist/index.d.ts CHANGED
@@ -232,6 +232,7 @@ type NuxtPage = {
232
232
  alias?: string[] | string;
233
233
  redirect?: RouteLocationRaw;
234
234
  children?: NuxtPage[];
235
+ middleware?: string[] | string;
235
236
  /**
236
237
  * Set the render mode.
237
238
  *
@@ -1601,7 +1602,7 @@ interface ConfigSchema {
1601
1602
  /**
1602
1603
  * A unique identifier matching the build. This may contain the hash of the current state of the project.
1603
1604
  *
1604
- * @default "01349561-4f47-4806-859c-67b272764f27"
1605
+ * @default "e34597ed-99df-40a7-bdc8-a7e780da0288"
1605
1606
  */
1606
1607
  buildId: string,
1607
1608
 
@@ -2270,7 +2271,7 @@ interface ConfigSchema {
2270
2271
  inlineRouteRules: boolean,
2271
2272
 
2272
2273
  /**
2273
- * Allow exposing some route metadata defined in `definePageMeta` at build-time to modules (alias, name, path, redirect).
2274
+ * Allow exposing some route metadata defined in `definePageMeta` at build-time to modules (alias, name, path, redirect, props, middleware).
2274
2275
  *
2275
2276
  * This only works with static or strings/arrays rather than variables or conditional assignment.
2276
2277
  *
@@ -2509,6 +2510,27 @@ interface ConfigSchema {
2509
2510
  * @see [PR #31379](https://github.com/nuxt/nuxt/pull/31379)
2510
2511
  */
2511
2512
  purgeCachedData: boolean,
2513
+
2514
+ /**
2515
+ * Whether to call and use the result from `getCachedData` on manual refresh for `useAsyncData` and `useFetch`.
2516
+ *
2517
+ * @default true
2518
+ */
2519
+ granularCachedData: boolean,
2520
+
2521
+ /**
2522
+ * Whether to parse `error.data` when rendering a server error page.
2523
+ *
2524
+ * @default true
2525
+ */
2526
+ parseErrorData: boolean,
2527
+
2528
+ /**
2529
+ * Whether Nuxt should stop if a Nuxt module is incompatible.
2530
+ *
2531
+ * @default false
2532
+ */
2533
+ enforceModuleCompatibility: boolean,
2512
2534
  },
2513
2535
 
2514
2536
  generate: {
package/dist/index.mjs CHANGED
@@ -1805,7 +1805,7 @@ const experimental = defineResolvers({
1805
1805
  */
1806
1806
  inlineRouteRules: false,
1807
1807
  /**
1808
- * Allow exposing some route metadata defined in `definePageMeta` at build-time to modules (alias, name, path, redirect).
1808
+ * Allow exposing some route metadata defined in `definePageMeta` at build-time to modules (alias, name, path, redirect, props, middleware).
1809
1809
  *
1810
1810
  * This only works with static or strings/arrays rather than variables or conditional assignment.
1811
1811
  *
@@ -2053,7 +2053,27 @@ const experimental = defineResolvers({
2053
2053
  $resolve: (val) => {
2054
2054
  return typeof val === "boolean" ? val : true;
2055
2055
  }
2056
- }
2056
+ },
2057
+ /**
2058
+ * Whether to call and use the result from `getCachedData` on manual refresh for `useAsyncData` and `useFetch`.
2059
+ */
2060
+ granularCachedData: {
2061
+ $resolve: async (val, get) => {
2062
+ return typeof val === "boolean" ? val : (await get("future")).compatibilityVersion === 4;
2063
+ }
2064
+ },
2065
+ /**
2066
+ * Whether to parse `error.data` when rendering a server error page.
2067
+ */
2068
+ parseErrorData: {
2069
+ $resolve: async (val, get) => {
2070
+ return typeof val === "boolean" ? val : (await get("future")).compatibilityVersion === 4;
2071
+ }
2072
+ },
2073
+ /**
2074
+ * Whether Nuxt should stop if a Nuxt module is incompatible.
2075
+ */
2076
+ enforceModuleCompatibility: false
2057
2077
  }
2058
2078
  });
2059
2079
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/schema-nightly",
3
- "version": "4.0.0-29077680.05abdf14",
3
+ "version": "4.0.0-29077753.3a027b35",
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.3",
54
54
  "mini-css-extract-plugin": "2.9.2",
55
- "nitro": "npm:nitro-nightly@3.0.0-20250404-081807.9f0c8e3c",
55
+ "nitro": "npm:nitro-nightly@3.0.0-20250411-094421.5736f5be",
56
56
  "ofetch": "1.4.1",
57
57
  "pkg-types": "2.1.0",
58
58
  "postcss": "8.5.3",
@@ -68,7 +68,7 @@
68
68
  "vue-bundle-renderer": "2.1.1",
69
69
  "vue-loader": "17.4.2",
70
70
  "vue-router": "4.5.0",
71
- "webpack": "5.99.3",
71
+ "webpack": "5.99.5",
72
72
  "webpack-dev-middleware": "7.4.2"
73
73
  },
74
74
  "dependencies": {
@@ -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 "01349561-4f47-4806-859c-67b272764f27"
714
+ * @default "e34597ed-99df-40a7-bdc8-a7e780da0288"
715
715
  */
716
716
  buildId: string,
717
717
 
@@ -1380,7 +1380,7 @@ export interface ConfigSchema {
1380
1380
  inlineRouteRules: boolean,
1381
1381
 
1382
1382
  /**
1383
- * Allow exposing some route metadata defined in `definePageMeta` at build-time to modules (alias, name, path, redirect).
1383
+ * Allow exposing some route metadata defined in `definePageMeta` at build-time to modules (alias, name, path, redirect, props, middleware).
1384
1384
  *
1385
1385
  * This only works with static or strings/arrays rather than variables or conditional assignment.
1386
1386
  *
@@ -1619,6 +1619,27 @@ export interface ConfigSchema {
1619
1619
  * @see [PR #31379](https://github.com/nuxt/nuxt/pull/31379)
1620
1620
  */
1621
1621
  purgeCachedData: boolean,
1622
+
1623
+ /**
1624
+ * Whether to call and use the result from `getCachedData` on manual refresh for `useAsyncData` and `useFetch`.
1625
+ *
1626
+ * @default true
1627
+ */
1628
+ granularCachedData: boolean,
1629
+
1630
+ /**
1631
+ * Whether to parse `error.data` when rendering a server error page.
1632
+ *
1633
+ * @default true
1634
+ */
1635
+ parseErrorData: boolean,
1636
+
1637
+ /**
1638
+ * Whether Nuxt should stop if a Nuxt module is incompatible.
1639
+ *
1640
+ * @default false
1641
+ */
1642
+ enforceModuleCompatibility: boolean,
1622
1643
  },
1623
1644
 
1624
1645
  generate: {
@@ -193,7 +193,10 @@
193
193
  "debugModuleMutation": false,
194
194
  "lazyHydration": true,
195
195
  "templateImportResolution": true,
196
- "purgeCachedData": true
196
+ "purgeCachedData": true,
197
+ "granularCachedData": true,
198
+ "parseErrorData": true,
199
+ "enforceModuleCompatibility": false
197
200
  },
198
201
  "app": {
199
202
  "baseURL": "/",
@@ -390,7 +393,7 @@
390
393
  "serverDir": "/<rootDir>/server",
391
394
  "appId": "nuxt-app",
392
395
  "test": false,
393
- "buildId": "01349561-4f47-4806-859c-67b272764f27",
396
+ "buildId": "e34597ed-99df-40a7-bdc8-a7e780da0288",
394
397
  "modulesDir": [
395
398
  "/<rootDir>/node_modules"
396
399
  ],
@@ -454,7 +457,7 @@
454
457
  "runtimeConfig": {
455
458
  "public": {},
456
459
  "app": {
457
- "buildId": "01349561-4f47-4806-859c-67b272764f27",
460
+ "buildId": "e34597ed-99df-40a7-bdc8-a7e780da0288",
458
461
  "baseURL": "/",
459
462
  "buildAssetsDir": "/_nuxt/",
460
463
  "cdnURL": ""
@@ -500,7 +503,7 @@
500
503
  "runtimeConfig": {
501
504
  "public": {},
502
505
  "app": {
503
- "buildId": "01349561-4f47-4806-859c-67b272764f27",
506
+ "buildId": "e34597ed-99df-40a7-bdc8-a7e780da0288",
504
507
  "baseURL": "/",
505
508
  "buildAssetsDir": "/_nuxt/",
506
509
  "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**: `"01349561-4f47-4806-859c-67b272764f27"`
454
+ - **Default**: `"e34597ed-99df-40a7-bdc8-a7e780da0288"`
455
455
 
456
456
  > A unique identifier matching the build. This may contain the hash of the current state of the project.
457
457
 
@@ -993,7 +993,7 @@ For more control, such as if you are using a custom `path` or `alias` set in the
993
993
  - **Type**: `boolean | 'after-resolve'`
994
994
  - **Default**: `"after-resolve"`
995
995
 
996
- > Allow exposing some route metadata defined in `definePageMeta` at build-time to modules (alias, name, path, redirect).
996
+ > Allow exposing some route metadata defined in `definePageMeta` at build-time to modules (alias, name, path, redirect, props, middleware).
997
997
 
998
998
 
999
999
  This only works with static or strings/arrays rather than variables or conditional assignment.
@@ -1150,6 +1150,27 @@ By default, Nuxt attempts to resolve imports in templates relative to the module
1150
1150
  Nuxt will automatically purge cached data from `useAsyncData` and `nuxtApp.static.data`. This helps prevent memory leaks and ensures fresh data is loaded when needed, but it is possible to disable it.
1151
1151
 
1152
1152
 
1153
+ ## `granularCachedData`
1154
+ - **Type**: `boolean`
1155
+ - **Default**: `true`
1156
+
1157
+ > Whether to call and use the result from `getCachedData` on manual refresh for `useAsyncData` and `useFetch`.
1158
+
1159
+
1160
+ ## `parseErrorData`
1161
+ - **Type**: `boolean`
1162
+ - **Default**: `true`
1163
+
1164
+ > Whether to parse `error.data` when rendering a server error page.
1165
+
1166
+
1167
+ ## `enforceModuleCompatibility`
1168
+ - **Type**: `boolean`
1169
+ - **Default**: `false`
1170
+
1171
+ > Whether Nuxt should stop if a Nuxt module is incompatible.
1172
+
1173
+
1153
1174
  # `generate`
1154
1175
 
1155
1176
  ## `routes`
@@ -1114,7 +1114,7 @@
1114
1114
  "description": "",
1115
1115
  "tags": [],
1116
1116
  "id": "#buildId",
1117
- "default": "01349561-4f47-4806-859c-67b272764f27",
1117
+ "default": "e34597ed-99df-40a7-bdc8-a7e780da0288",
1118
1118
  "type": "string"
1119
1119
  },
1120
1120
  "modulesDir": {
@@ -1486,7 +1486,7 @@
1486
1486
  "default": {
1487
1487
  "public": {},
1488
1488
  "app": {
1489
- "buildId": "01349561-4f47-4806-859c-67b272764f27",
1489
+ "buildId": "e34597ed-99df-40a7-bdc8-a7e780da0288",
1490
1490
  "baseURL": "/",
1491
1491
  "buildAssetsDir": "/_nuxt/",
1492
1492
  "cdnURL": ""
@@ -1896,7 +1896,7 @@
1896
1896
  "type": "boolean"
1897
1897
  },
1898
1898
  "scanPageMeta": {
1899
- "title": "Allow exposing some route metadata defined in `definePageMeta` at build-time to modules (alias, name, path, redirect).",
1899
+ "title": "Allow exposing some route metadata defined in `definePageMeta` at build-time to modules (alias, name, path, redirect, props, middleware).",
1900
1900
  "description": "This only works with static or strings/arrays rather than variables or conditional assignment.",
1901
1901
  "tags": [
1902
1902
  "@see [Nuxt Issues #24770](https://github.com/nuxt/nuxt/issues/24770)"
@@ -2132,6 +2132,30 @@
2132
2132
  "id": "#experimental/purgeCachedData",
2133
2133
  "default": true,
2134
2134
  "type": "boolean"
2135
+ },
2136
+ "granularCachedData": {
2137
+ "title": "Whether to call and use the result from `getCachedData` on manual refresh for `useAsyncData` and `useFetch`.",
2138
+ "description": "",
2139
+ "tags": [],
2140
+ "id": "#experimental/granularCachedData",
2141
+ "default": true,
2142
+ "type": "boolean"
2143
+ },
2144
+ "parseErrorData": {
2145
+ "title": "Whether to parse `error.data` when rendering a server error page.",
2146
+ "description": "",
2147
+ "tags": [],
2148
+ "id": "#experimental/parseErrorData",
2149
+ "default": true,
2150
+ "type": "boolean"
2151
+ },
2152
+ "enforceModuleCompatibility": {
2153
+ "title": "Whether Nuxt should stop if a Nuxt module is incompatible.",
2154
+ "description": "",
2155
+ "tags": [],
2156
+ "id": "#experimental/enforceModuleCompatibility",
2157
+ "default": false,
2158
+ "type": "boolean"
2135
2159
  }
2136
2160
  },
2137
2161
  "default": {
@@ -2184,7 +2208,10 @@
2184
2208
  "debugModuleMutation": false,
2185
2209
  "lazyHydration": true,
2186
2210
  "templateImportResolution": true,
2187
- "purgeCachedData": true
2211
+ "purgeCachedData": true,
2212
+ "granularCachedData": true,
2213
+ "parseErrorData": true,
2214
+ "enforceModuleCompatibility": false
2188
2215
  },
2189
2216
  "type": "object"
2190
2217
  },
@@ -2393,7 +2420,7 @@
2393
2420
  "default": {
2394
2421
  "public": {},
2395
2422
  "app": {
2396
- "buildId": "01349561-4f47-4806-859c-67b272764f27",
2423
+ "buildId": "e34597ed-99df-40a7-bdc8-a7e780da0288",
2397
2424
  "baseURL": "/",
2398
2425
  "buildAssetsDir": "/_nuxt/",
2399
2426
  "cdnURL": ""
@@ -2414,7 +2441,7 @@
2414
2441
  "runtimeConfig": {
2415
2442
  "public": {},
2416
2443
  "app": {
2417
- "buildId": "01349561-4f47-4806-859c-67b272764f27",
2444
+ "buildId": "e34597ed-99df-40a7-bdc8-a7e780da0288",
2418
2445
  "baseURL": "/",
2419
2446
  "buildAssetsDir": "/_nuxt/",
2420
2447
  "cdnURL": ""
@@ -4238,7 +4265,7 @@
4238
4265
  "serverDir": "/<rootDir>/server",
4239
4266
  "buildDir": "/<rootDir>/.nuxt",
4240
4267
  "appId": "nuxt-app",
4241
- "buildId": "01349561-4f47-4806-859c-67b272764f27",
4268
+ "buildId": "e34597ed-99df-40a7-bdc8-a7e780da0288",
4242
4269
  "modulesDir": [
4243
4270
  "/<rootDir>/node_modules"
4244
4271
  ],
@@ -4306,7 +4333,7 @@
4306
4333
  "runtimeConfig": {
4307
4334
  "public": {},
4308
4335
  "app": {
4309
- "buildId": "01349561-4f47-4806-859c-67b272764f27",
4336
+ "buildId": "e34597ed-99df-40a7-bdc8-a7e780da0288",
4310
4337
  "baseURL": "/",
4311
4338
  "buildAssetsDir": "/_nuxt/",
4312
4339
  "cdnURL": ""
@@ -4385,7 +4412,10 @@
4385
4412
  "debugModuleMutation": false,
4386
4413
  "lazyHydration": true,
4387
4414
  "templateImportResolution": true,
4388
- "purgeCachedData": true
4415
+ "purgeCachedData": true,
4416
+ "granularCachedData": true,
4417
+ "parseErrorData": true,
4418
+ "enforceModuleCompatibility": false
4389
4419
  },
4390
4420
  "generate": {
4391
4421
  "routes": [],
@@ -4409,7 +4439,7 @@
4409
4439
  "runtimeConfig": {
4410
4440
  "public": {},
4411
4441
  "app": {
4412
- "buildId": "01349561-4f47-4806-859c-67b272764f27",
4442
+ "buildId": "e34597ed-99df-40a7-bdc8-a7e780da0288",
4413
4443
  "baseURL": "/",
4414
4444
  "buildAssetsDir": "/_nuxt/",
4415
4445
  "cdnURL": ""