@nuxt/schema
Advanced tools
Comparing version 3.6.5 to 3.7.0
{ | ||
"name": "@nuxt/schema", | ||
"version": "3.6.5", | ||
"version": "3.7.0", | ||
"repository": "nuxt/nuxt", | ||
@@ -8,2 +8,3 @@ "license": "MIT", | ||
"types": "./dist/index.d.ts", | ||
"sideEffects": false, | ||
"exports": { | ||
@@ -19,2 +20,3 @@ ".": { | ||
}, | ||
"./schema/config.schema.json": "./schema/config.schema.json", | ||
"./package.json": "./package.json" | ||
@@ -28,25 +30,26 @@ }, | ||
"devDependencies": { | ||
"@nuxt/telemetry": "2.3.0", | ||
"@nuxt/telemetry": "2.4.1", | ||
"@types/file-loader": "5.0.1", | ||
"@types/pug": "2.0.6", | ||
"@types/sass-loader": "8.0.5", | ||
"@unhead/schema": "1.1.30", | ||
"@vitejs/plugin-vue": "4.2.3", | ||
"@vitejs/plugin-vue-jsx": "3.0.1", | ||
"@unhead/schema": "1.3.7", | ||
"@vitejs/plugin-vue": "4.3.3", | ||
"@vitejs/plugin-vue-jsx": "3.0.2", | ||
"@vue/compiler-core": "3.3.4", | ||
"esbuild-loader": "3.0.1", | ||
"h3": "1.7.1", | ||
"esbuild-loader": "4.0.1", | ||
"h3": "1.8.0", | ||
"ignore": "5.2.4", | ||
"nitropack": "2.5.2", | ||
"nitropack": "2.6.1", | ||
"unbuild": "latest", | ||
"unctx": "2.3.1", | ||
"vite": "4.3.9", | ||
"vite": "4.4.9", | ||
"vue": "3.3.4", | ||
"vue-bundle-renderer": "1.0.3", | ||
"vue-bundle-renderer": "2.0.0", | ||
"vue-loader": "17.2.2", | ||
"vue-router": "4.2.4", | ||
"webpack": "5.88.1", | ||
"webpack": "5.88.2", | ||
"webpack-dev-middleware": "6.1.1" | ||
}, | ||
"dependencies": { | ||
"@nuxt/ui-templates": "^1.3.1", | ||
"defu": "^6.1.2", | ||
@@ -57,6 +60,6 @@ "hookable": "^5.5.3", | ||
"postcss-import-resolver": "^2.0.0", | ||
"std-env": "^3.3.3", | ||
"ufo": "^1.1.2", | ||
"unimport": "^3.0.14", | ||
"untyped": "^1.3.2" | ||
"std-env": "^3.4.3", | ||
"ufo": "^1.3.0", | ||
"unimport": "^3.2.0", | ||
"untyped": "^1.4.0" | ||
}, | ||
@@ -63,0 +66,0 @@ "engines": { |
@@ -224,3 +224,3 @@ import type { ComponentsOptions } from '../src/types/components' | ||
*/ | ||
rootId: string, | ||
rootId: string | false, | ||
@@ -242,2 +242,3 @@ /** | ||
* | ||
* @default false | ||
* | ||
@@ -288,3 +289,3 @@ * @example ~/app/spa-loading-template.html | ||
*/ | ||
spaLoadingTemplate: string | false, | ||
spaLoadingTemplate: string | boolean, | ||
@@ -349,3 +350,3 @@ /** | ||
*/ | ||
sourcemap: boolean | { server?: boolean, client?: boolean }, | ||
sourcemap: boolean | { server?: boolean | 'hidden', client?: boolean | 'hidden' }, | ||
@@ -568,3 +569,3 @@ /** | ||
* | ||
* @default ["/<rootDir>/node_modules","/Users/antfu/i/nuxt/packages/schema/node_modules"] | ||
* @default ["/<rootDir>/node_modules","/Users/daniel/code/nuxt.js/packages/schema/node_modules"] | ||
* | ||
@@ -793,3 +794,3 @@ * @example | ||
* | ||
* It is an array of strings or regular expressions, which will be matched against the file path relative to the project `srcDir`. | ||
* It is an array of strings or regular expressions. Strings should be either absolute paths or relative to the `srcDir` (and the `srcDir` of any layers). Regular expressions will be matched against the path relative to the project `srcDir` (and the `srcDir` of any layers). | ||
* | ||
@@ -934,2 +935,8 @@ */ | ||
url: string, | ||
/** | ||
* Template to show a loading screen | ||
* | ||
*/ | ||
loadingTemplate: (data: { loading?: string }) => string, | ||
}, | ||
@@ -990,2 +997,11 @@ | ||
/** | ||
* By default the route object returned by the auto-imported `useRoute()` composable is kept in sync with the current page in view in `<NuxtPage>`. This is not true for `vue-router`'s exported `useRoute` or for the default `$route` object available in your Vue templates. | ||
* | ||
* By enabling this option a mixin will be injected to keep the `$route` template object in sync with Nuxt's managed `useRoute()`. | ||
* | ||
* @default true | ||
*/ | ||
templateRouteInjection: boolean, | ||
/** | ||
* Whether to restore Nuxt app state from `sessionStorage` when reloading the page after a chunk error or manual `reloadNuxtApp()` call. | ||
@@ -1073,3 +1089,3 @@ * | ||
*/ | ||
componentIslands: boolean, | ||
componentIslands: true | 'local' | 'local+remote' | false, | ||
@@ -1140,2 +1156,30 @@ /** | ||
watcher: 'chokidar' | 'parcel' | 'chokidar-granular', | ||
/** | ||
* Enable native async context to be accessable for nested composables | ||
* | ||
* @default false | ||
* | ||
* @see https://github.com/nuxt/nuxt/pull/20918 | ||
*/ | ||
asyncContext: boolean, | ||
/** | ||
* Use new experimental head optimisations: - Add the capo.js head plugin in order to render tags in of the head in a more performant way. - Uses the hash hydration plugin to reduce initial hydration | ||
* | ||
* @default false | ||
* | ||
* @see https://github.com/nuxt/nuxt/discussions/22632 | ||
*/ | ||
headNext: boolean, | ||
/** | ||
* Allow defining `routeRules` directly within your `~/pages` directory using `defineRouteRules`. | ||
* | ||
* Rules are converted (based on the path) and applied for server requests. For example, a rule defined in `~/pages/foo/bar.vue` will be applied to `/foo/bar` requests. A rule in `~/pages/foo/[id].vue` will be applied to `/foo/**` requests. | ||
* For more control, such as if you are using a custom `path` or `alias` set in the page's `definePageMeta`, you should set `routeRules` directly within your `nuxt.config`. | ||
* | ||
* @default false | ||
*/ | ||
inlineRouteRules: boolean, | ||
}, | ||
@@ -1382,3 +1426,3 @@ | ||
*/ | ||
vite: ViteConfig, | ||
vite: ViteConfig & { $client?: ViteConfig, $server?: ViteConfig }, | ||
@@ -1385,0 +1429,0 @@ webpack: { |
@@ -9,3 +9,5 @@ { | ||
"process.dev": false, | ||
"process.test": false | ||
"import.meta.dev": false, | ||
"process.test": false, | ||
"import.meta.test": false | ||
}, | ||
@@ -58,3 +60,3 @@ "resolve": { | ||
"/<rootDir>/node_modules", | ||
"/Users/antfu/i/nuxt/packages/schema/node_modules" | ||
"/Users/daniel/code/nuxt.js/packages/schema/node_modules" | ||
] | ||
@@ -91,2 +93,3 @@ } | ||
"emitRouteChunkError": "automatic", | ||
"templateRouteInjection": true, | ||
"restoreState": false, | ||
@@ -109,3 +112,6 @@ "inlineSSRStyles": true, | ||
"typedPages": false, | ||
"watcher": "chokidar-granular" | ||
"watcher": "chokidar-granular", | ||
"asyncContext": false, | ||
"headNext": false, | ||
"inlineRouteRules": false | ||
}, | ||
@@ -138,3 +144,3 @@ "app": { | ||
"dev": false, | ||
"spaLoadingTemplate": null, | ||
"spaLoadingTemplate": false, | ||
"plugins": [], | ||
@@ -162,3 +168,3 @@ "css": [], | ||
"/<rootDir>/node_modules", | ||
"/Users/antfu/i/nuxt/packages/schema/node_modules" | ||
"/Users/daniel/code/nuxt.js/packages/schema/node_modules" | ||
], | ||
@@ -165,0 +171,0 @@ "builder": "@nuxt/vite-builder", |
@@ -135,3 +135,3 @@ | ||
## `rootId` | ||
- **Type**: `string` | ||
- **Type**: `string | false` | ||
- **Default**: `"__nuxt"` | ||
@@ -150,4 +150,4 @@ | ||
# `spaLoadingTemplate` | ||
- **Type**: `string | false` | ||
- **Default**: `null` | ||
- **Type**: `string | boolean` | ||
- **Default**: `false` | ||
@@ -355,3 +355,3 @@ > A path to an HTML file, the contents of which will be inserted into any HTML page rendered with `ssr: false`. | ||
- **Type**: `array` | ||
- **Default**: `["/<rootDir>/node_modules","/Users/antfu/i/nuxt/packages/schema/node_modules"]` | ||
- **Default**: `["/<rootDir>/node_modules","/Users/daniel/code/nuxt.js/packages/schema/node_modules"]` | ||
@@ -513,3 +513,3 @@ > Used to set the modules directories for path resolving (for example, webpack's `resolveLoading`, `nodeExternals` and `postcss`). | ||
It is an array of strings or regular expressions, which will be matched against the file path relative to the project `srcDir`. | ||
It is an array of strings or regular expressions. Strings should be either absolute paths or relative to the `srcDir` (and the `srcDir` of any layers). Regular expressions will be matched against the path relative to the project `srcDir` (and the `srcDir` of any layers). | ||
@@ -596,2 +596,13 @@ | ||
## `loadingTemplate` | ||
- **Type**: `(data: { loading?: string }) => string` | ||
- **Default**: `undefined` | ||
> Template to show a loading screen | ||
```ts | ||
() => any | ||
``` | ||
# `experimental` | ||
@@ -638,2 +649,12 @@ | ||
## `templateRouteInjection` | ||
- **Type**: `boolean` | ||
- **Default**: `true` | ||
> By default the route object returned by the auto-imported `useRoute()` composable is kept in sync with the current page in view in `<NuxtPage>`. This is not true for `vue-router`'s exported `useRoute` or for the default `$route` object available in your Vue templates. | ||
By enabling this option a mixin will be injected to keep the `$route` template object in sync with Nuxt's managed `useRoute()`. | ||
## `restoreState` | ||
@@ -717,3 +738,3 @@ - **Type**: `boolean` | ||
## `componentIslands` | ||
- **Type**: `boolean` | ||
- **Type**: `true | 'local' | 'local+remote' | false` | ||
- **Default**: `false` | ||
@@ -786,2 +807,27 @@ | ||
## `asyncContext` | ||
- **Type**: `boolean` | ||
- **Default**: `false` | ||
> Enable native async context to be accessable for nested composables | ||
## `headNext` | ||
- **Type**: `boolean` | ||
- **Default**: `false` | ||
> Use new experimental head optimisations: - Add the capo.js head plugin in order to render tags in of the head in a more performant way. - Uses the hash hydration plugin to reduce initial hydration | ||
## `inlineRouteRules` | ||
- **Type**: `boolean` | ||
- **Default**: `false` | ||
> Allow defining `routeRules` directly within your `~/pages` directory using `defineRouteRules`. | ||
Rules are converted (based on the path) and applied for server requests. For example, a rule defined in `~/pages/foo/bar.vue` will be applied to `/foo/bar` requests. A rule in `~/pages/foo/[id].vue` will be applied to `/foo/**` requests. | ||
For more control, such as if you are using a custom `path` or `alias` set in the page's `definePageMeta`, you should set `routeRules` directly within your `nuxt.config`. | ||
# `generate` | ||
@@ -1085,3 +1131,3 @@ | ||
- **Type**: `array` | ||
- **Default**: `["/<rootDir>/.nuxt","/<rootDir>","/<rootDir>","/<rootDir>","/<rootDir>/node_modules","/Users/antfu/i/nuxt/packages/schema/node_modules"]` | ||
- **Default**: `["/<rootDir>/.nuxt","/<rootDir>","/<rootDir>","/<rootDir>","/<rootDir>/node_modules","/Users/daniel/code/nuxt.js/packages/schema/node_modules"]` | ||
@@ -1088,0 +1134,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
461040
13
10233
0
10
+ Added@nuxt/ui-templates@^1.3.1
+ Added@nuxt/ui-templates@1.3.4(transitive)
Updatedstd-env@^3.4.3
Updatedufo@^1.3.0
Updatedunimport@^3.2.0
Updateduntyped@^1.4.0