@nuxt/schema
Advanced tools
Comparing version 3.12.4 to 3.13.0
{ | ||
"name": "@nuxt/schema", | ||
"version": "3.12.4", | ||
"version": "3.13.0", | ||
"repository": { | ||
@@ -38,13 +38,13 @@ "type": "git", | ||
"@types/pug": "2.0.10", | ||
"@types/sass-loader": "8.0.8", | ||
"@unhead/schema": "1.9.16", | ||
"@vitejs/plugin-vue": "5.0.5", | ||
"@vitejs/plugin-vue-jsx": "4.0.0", | ||
"@vue/compiler-core": "3.4.32", | ||
"@vue/compiler-sfc": "3.4.32", | ||
"@vue/language-core": "2.0.26", | ||
"@types/sass-loader": "8.0.9", | ||
"@unhead/schema": "1.10.0", | ||
"@vitejs/plugin-vue": "5.1.2", | ||
"@vitejs/plugin-vue-jsx": "4.0.1", | ||
"@vue/compiler-core": "3.4.38", | ||
"@vue/compiler-sfc": "3.4.38", | ||
"@vue/language-core": "2.0.29", | ||
"c12": "1.11.1", | ||
"esbuild-loader": "4.2.2", | ||
"h3": "1.12.0", | ||
"ignore": "5.3.1", | ||
"ignore": "5.3.2", | ||
"nitropack": "2.9.7", | ||
@@ -55,9 +55,9 @@ "ofetch": "1.3.4", | ||
"unenv": "1.10.0", | ||
"vite": "5.3.4", | ||
"vue": "3.4.32", | ||
"vite": "5.4.2", | ||
"vue": "3.4.38", | ||
"vue-bundle-renderer": "2.1.0", | ||
"vue-loader": "17.4.2", | ||
"vue-router": "4.4.0", | ||
"webpack": "5.93.0", | ||
"webpack-dev-middleware": "7.3.0" | ||
"vue-router": "4.4.3", | ||
"webpack": "5.94.0", | ||
"webpack-dev-middleware": "7.4.2" | ||
}, | ||
@@ -75,3 +75,3 @@ "dependencies": { | ||
"uncrypto": "^0.1.3", | ||
"unimport": "^3.9.0", | ||
"unimport": "^3.11.0", | ||
"untyped": "^1.4.2" | ||
@@ -78,0 +78,0 @@ }, |
@@ -112,3 +112,3 @@ [![Nuxt banner](https://github.com/nuxt/nuxt/tree/main/.github/assets/banner.svg)](https://nuxt.com) | ||
<p valign="center"> | ||
<a href="https://chat.nuxt.dev"><img width="20px" src="https://github.com/nuxt/nuxt/tree/main/.github/assets/discord.svg" alt="Discord"></a> <a href="https://twitter.nuxt.dev"><img width="20px" src="https://github.com/nuxt/nuxt/tree/main/.github/assets/twitter.svg" alt="Twitter"></a> <a href="https://github.nuxt.dev"><img width="20px" src="https://github.com/nuxt/nuxt/tree/main/.github/assets/github.svg" alt="GitHub"></a> | ||
<a href="https://go.nuxt.com/discord"><img width="20px" src="https://github.com/nuxt/nuxt/tree/main/.github/assets/discord.svg" alt="Discord"></a> <a href="https://go.nuxt.com/x"><img width="20px" src="https://github.com/nuxt/nuxt/tree/main/.github/assets/twitter.svg" alt="Twitter"></a> <a href="https://go.nuxt.com/github"><img width="20px" src="https://github.com/nuxt/nuxt/tree/main/.github/assets/github.svg" alt="GitHub"></a> | ||
</p> | ||
@@ -115,0 +115,0 @@ |
@@ -43,3 +43,3 @@ import type { ComponentsOptions } from '../src/types/components' | ||
* | ||
* @see https://nuxt.com/docs/guide/directory-structure/components | ||
* @see [`components/` directory documentation](https://nuxt.com/docs/guide/directory-structure/components) | ||
*/ | ||
@@ -91,3 +91,3 @@ components: boolean | ComponentsOptions | ComponentsOptions['dirs'], | ||
* | ||
* @see [documentation](https://vuejs.org/api/application.html#app-config-compileroptions) | ||
* @see [Vue documentation](https://vuejs.org/api/application.html#app-config-compileroptions) | ||
*/ | ||
@@ -217,3 +217,3 @@ compilerOptions: CompilerOptions, | ||
* | ||
* @see https://vuejs.org/api/built-in-components.html#transition | ||
* @see [Vue Transition docs](https://vuejs.org/api/built-in-components.html#transition) | ||
*/ | ||
@@ -229,3 +229,3 @@ layoutTransition: NuxtAppConfig['layoutTransition'], | ||
* | ||
* @see https://vuejs.org/api/built-in-components.html#transition | ||
* @see [Vue Transition docs](https://vuejs.org/api/built-in-components.html#transition) | ||
*/ | ||
@@ -242,3 +242,3 @@ pageTransition: NuxtAppConfig['pageTransition'], | ||
* | ||
* @see https://nuxt.com/docs/getting-started/transitions#view-transitions-api-experimental | ||
* @see [Nuxt View Transition API docs](https://nuxt.com/docs/getting-started/transitions#view-transitions-api-experimental) | ||
*/ | ||
@@ -254,3 +254,3 @@ viewTransition: NuxtAppConfig['viewTransition'], | ||
* | ||
* @see https://vuejs.org/api/built-in-components.html#keepalive | ||
* @see [Vue KeepAlive](https://vuejs.org/api/built-in-components.html#keepalive) | ||
*/ | ||
@@ -369,3 +369,3 @@ keepalive: NuxtAppConfig['keepalive'], | ||
* | ||
* @see https://nuxt.com/docs/guide/directory-structure/plugins | ||
* @see [`plugins/` directory documentation](https://nuxt.com/docs/guide/directory-structure/plugins) | ||
* | ||
@@ -415,3 +415,3 @@ * @example | ||
* | ||
* @see https://unhead.unjs.io/setup/ssr/installation#options | ||
* @see [`unhead` options documentation](https://unhead.unjs.io/setup/ssr/installation#options) | ||
* | ||
@@ -466,3 +466,3 @@ * @example | ||
* ```js | ||
* transpile: [({ isLegacy }) => isLegacy && 'ky'] | ||
* transpile: [({ isLegacy }) => isLegacy && 'ky'] | ||
* ``` | ||
@@ -561,8 +561,8 @@ */ | ||
* Value should be either a string or array of strings pointing to source directories or config path relative to current config. | ||
* You can use `github:`, `gh:` `gitlab:` or `bitbucket:`. | ||
* You can use `github:`, `gh:` `gitlab:` or `bitbucket:` | ||
* | ||
* | ||
* @see https://github.com/unjs/c12#extending-config-layer-from-remote-sources | ||
* @see [`c12` docs on extending config layers](https://github.com/unjs/c12#extending-config-layer-from-remote-sources) | ||
* | ||
* @see https://github.com/unjs/giget | ||
* @see [`giget` documentation](https://github.com/unjs/giget) | ||
*/ | ||
@@ -672,4 +672,6 @@ extends: string | [string, SourceOptions?] | (string | [string, SourceOptions?])[], | ||
/** | ||
* For multi-app projects, the unique name of the Nuxt application. | ||
* For multi-app projects, the unique id of the Nuxt application. | ||
* | ||
* Defaults to `nuxt-app`. | ||
* | ||
* @default "nuxt-app" | ||
@@ -682,3 +684,3 @@ */ | ||
* | ||
* @default "6fc9bff4-0e40-4e61-8167-19c6af90719a" | ||
* @default "d1a598f6-b7ef-4ad9-b968-65c5fd513bcd" | ||
*/ | ||
@@ -1001,3 +1003,3 @@ buildId: string, | ||
* runtimeConfig: { | ||
* apiKey: '' // Default to an empty string, automatically set at runtime using process.env.NUXT_API_KEY | ||
* apiKey: '', // Default to an empty string, automatically set at runtime using process.env.NUXT_API_KEY | ||
* public: { | ||
@@ -1027,3 +1029,3 @@ * baseURL: '' // Exposed to the frontend as well. | ||
* @example | ||
* ``` | ||
* ```ts | ||
* export default defineNuxtConfig({ | ||
@@ -1128,5 +1130,6 @@ * devServer: { | ||
* You can set it to false to use the legacy 'Node' mode, which is the default for TypeScript. | ||
* See https://github.com/microsoft/TypeScript/pull/51669 | ||
* | ||
* @default true | ||
* | ||
* @see [TypeScript PR implementing `bundler` module resolution](https://github.com/microsoft/TypeScript/pull/51669) | ||
*/ | ||
@@ -1360,3 +1363,3 @@ typescriptBundlerResolution: boolean, | ||
* | ||
* @see [Parcel watcher](https://github.com/parcel-bundler/watcher) | ||
* @see [@parcel/watcher](https://github.com/parcel-bundler/watcher) | ||
*/ | ||
@@ -1381,3 +1384,3 @@ watcher: 'chokidar' | 'parcel' | 'chokidar-granular', | ||
* | ||
* @see [Nuxt Discussion #22632](https://github.com/nuxt/nuxt/discussions/22632] | ||
* @see [Nuxt Discussion #22632](https://github.com/nuxt/nuxt/discussions/22632) | ||
*/ | ||
@@ -1400,5 +1403,6 @@ headNext: boolean, | ||
* This only works with static or strings/arrays rather than variables or conditional assignment. | ||
* https://github.com/nuxt/nuxt/issues/24770 | ||
* | ||
* @default true | ||
* | ||
* @see [Nuxt Issues #24770](https://github.com/nuxt/nuxt/issues/24770) | ||
*/ | ||
@@ -1471,3 +1475,3 @@ scanPageMeta: boolean, | ||
* | ||
* @see https://github.com/unjs/unenv | ||
* @see [unenv](https://github.com/unjs/unenv) | ||
* | ||
@@ -1642,3 +1646,3 @@ * **Note:** To make globals like `Buffer` work in the browser, you need to manually inject them. | ||
* | ||
* @see https://nitro.unjs.io/config/ | ||
* @see [Nitro configuration docs](https://nitro.unjs.io/config/) | ||
*/ | ||
@@ -1653,3 +1657,3 @@ nitro: NitroConfig, | ||
* | ||
* @see https://nitro.unjs.io/config/#routerules | ||
* @see [Nitro route rules documentation](https://nitro.unjs.io/config/#routerules) | ||
*/ | ||
@@ -1662,6 +1666,6 @@ routeRules: NitroConfig['routeRules'], | ||
* Each handler accepts the following options: | ||
* - handler: The path to the file defining the handler. - route: The route under which the handler is available. This follows the conventions of https://github.com/unjs/radix3. - 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. | ||
* - handler: The path to the file defining the handler. - route: The route under which the handler is available. This follows the conventions of [radix3](https://github.com/unjs/radix3.) - 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. | ||
* | ||
* | ||
* @see https://nuxt.com/docs/guide/directory-structure/server | ||
* @see [`server/` directory documentation](https://nuxt.com/docs/guide/directory-structure/server) | ||
* | ||
@@ -1683,3 +1687,3 @@ * @note Files from `server/api`, `server/middleware` and `server/routes` will be automatically registered by Nuxt. | ||
* | ||
* @see https://nitro.unjs.io/guide/routing | ||
* @see [Nitro server routes documentation](https://nitro.unjs.io/guide/routing) | ||
*/ | ||
@@ -1698,4 +1702,4 @@ devServerHandlers: NitroDevEventHandler[], | ||
* | ||
* https://postcss.org/ | ||
* | ||
* @see [PostCSS docs](https://postcss.org/) | ||
*/ | ||
@@ -1713,3 +1717,3 @@ plugins: Record<string, unknown> & { autoprefixer?: Options0; cssnano?: Options1 }, | ||
* | ||
* @see [documentation](https://router.vuejs.org/api/interfaces/routeroptions.html). | ||
* @see [Vue Router documentation](https://router.vuejs.org/api/interfaces/routeroptions.html). | ||
*/ | ||
@@ -1743,3 +1747,3 @@ options: RouterConfigSerializable, | ||
* | ||
* @default ["nitropack","defu","h3","consola","ofetch","@unhead/vue","@nuxt/devtools","vue","@vue/runtime-core","@vue/compiler-sfc","@vue/runtime-dom","vue-router","vue-router/auto-routes","unplugin-vue-router/client","@nuxt/schema","nuxt"] | ||
* @default ["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"] | ||
*/ | ||
@@ -1762,3 +1766,3 @@ hoist: Array<string>, | ||
* | ||
* @see https://nuxt.com/docs/guide/concepts/typescript | ||
* @see [Nuxt TypeScript docs](https://nuxt.com/docs/guide/concepts/typescript) | ||
*/ | ||
@@ -1787,4 +1791,5 @@ typeCheck: boolean | 'build', | ||
* | ||
* See https://vitejs.dev/config for more information. Please note that not all vite options are supported in Nuxt. | ||
* | ||
* @see [Vite configuration docs](https://vitejs.dev/config) for more information. | ||
* Please note that not all vite options are supported in Nuxt. | ||
*/ | ||
@@ -1888,3 +1893,3 @@ vite: ViteConfig & { $client?: ViteConfig, $server?: ViteConfig }, | ||
* | ||
* To understand a bit more about the use of manifests, take a look at [this webpack documentation](https://webpack.js.org/guides/code-splitting/). | ||
* To understand a bit more about the use of manifests, take a look at [webpack documentation](https://webpack.js.org/guides/code-splitting/). | ||
* | ||
@@ -1928,4 +1933,4 @@ * | ||
/** | ||
* See https://github.com/esbuild-kit/esbuild-loader | ||
* | ||
* @see [esbuild loader](https://github.com/esbuild-kit/esbuild-loader) | ||
*/ | ||
@@ -1935,4 +1940,4 @@ esbuild: Omit<LoaderOptions, 'loader'>, | ||
/** | ||
* See: https://github.com/webpack-contrib/file-loader#options | ||
* | ||
* @see [`file-loader` Options](https://github.com/webpack-contrib/file-loader#options) | ||
* | ||
@@ -1947,4 +1952,4 @@ * @default | ||
/** | ||
* See: https://github.com/webpack-contrib/file-loader#options | ||
* | ||
* @see [`file-loader` Options](https://github.com/webpack-contrib/file-loader#options) | ||
* | ||
@@ -1959,4 +1964,4 @@ * @default | ||
/** | ||
* See: https://github.com/webpack-contrib/file-loader#options | ||
* | ||
* @see [`file-loader` Options](https://github.com/webpack-contrib/file-loader#options) | ||
* | ||
@@ -1971,4 +1976,4 @@ * @default | ||
/** | ||
* See: https://pugjs.org/api/reference.html#options | ||
* | ||
* @see [`pug` options](https://pugjs.org/api/reference.html#options) | ||
*/ | ||
@@ -2013,4 +2018,4 @@ pugPlain: Options3, | ||
/** | ||
* See: https://github.com/webpack-contrib/less-loader#options | ||
* | ||
* @see [`less-loader` Options](https://github.com/webpack-contrib/less-loader#options) | ||
*/ | ||
@@ -2020,4 +2025,4 @@ less: any, | ||
/** | ||
* See: https://github.com/webpack-contrib/sass-loader#options | ||
* | ||
* @see [`sass-loader` Options](https://github.com/webpack-contrib/sass-loader#options) | ||
* | ||
@@ -2036,4 +2041,4 @@ * @default | ||
/** | ||
* See: https://github.com/webpack-contrib/sass-loader#options | ||
* | ||
* @see [`sass-loader` Options](https://github.com/webpack-contrib/sass-loader#options) | ||
*/ | ||
@@ -2043,4 +2048,4 @@ scss: Options4, | ||
/** | ||
* See: https://github.com/webpack-contrib/stylus-loader#options | ||
* | ||
* @see [`stylus-loader` Options](https://github.com/webpack-contrib/stylus-loader#options) | ||
*/ | ||
@@ -2095,3 +2100,3 @@ stylus: any, | ||
/** | ||
* Customize PostCSS Loader. Same options as https://github.com/webpack-contrib/postcss-loader#options | ||
* Customize PostCSS Loader. same options as [`postcss-loader` options](https://github.com/webpack-contrib/postcss-loader#options) | ||
* | ||
@@ -2098,0 +2103,0 @@ */ |
@@ -54,4 +54,6 @@ { | ||
"script": { | ||
"propsDestructure": false, | ||
"hoistStatic": {} | ||
}, | ||
"features": { | ||
"propsDestructure": false | ||
} | ||
@@ -159,3 +161,7 @@ }, | ||
"nuxtLink": { | ||
"componentName": "NuxtLink" | ||
"componentName": "NuxtLink", | ||
"prefetch": true, | ||
"prefetchOn": { | ||
"visibility": true | ||
} | ||
}, | ||
@@ -233,3 +239,2 @@ "useAsyncData": { | ||
"@vue/compiler-sfc", | ||
"@vue/runtime-dom", | ||
"vue-router", | ||
@@ -365,3 +370,3 @@ "vue-router/auto-routes", | ||
"test": false, | ||
"buildId": "6fc9bff4-0e40-4e61-8167-19c6af90719a", | ||
"buildId": "d1a598f6-b7ef-4ad9-b968-65c5fd513bcd", | ||
"modulesDir": [ | ||
@@ -425,3 +430,3 @@ "/<rootDir>/node_modules" | ||
"app": { | ||
"buildId": "6fc9bff4-0e40-4e61-8167-19c6af90719a", | ||
"buildId": "d1a598f6-b7ef-4ad9-b968-65c5fd513bcd", | ||
"baseURL": "/", | ||
@@ -467,3 +472,3 @@ "buildAssetsDir": "/_nuxt/", | ||
"app": { | ||
"buildId": "6fc9bff4-0e40-4e61-8167-19c6af90719a", | ||
"buildId": "d1a598f6-b7ef-4ad9-b968-65c5fd513bcd", | ||
"baseURL": "/", | ||
@@ -470,0 +475,0 @@ "buildAssetsDir": "/_nuxt/", |
@@ -330,3 +330,3 @@ | ||
Value should be either a string or array of strings pointing to source directories or config path relative to current config. | ||
You can use `github:`, `gh:` `gitlab:` or `bitbucket:`. | ||
You can use `github:`, `gh:` `gitlab:` or `bitbucket:` | ||
@@ -412,8 +412,11 @@ | ||
> For multi-app projects, the unique name of the Nuxt application. | ||
> For multi-app projects, the unique id of the Nuxt application. | ||
Defaults to `nuxt-app`. | ||
# `buildId` | ||
- **Type**: `string` | ||
- **Default**: `"6fc9bff4-0e40-4e61-8167-19c6af90719a"` | ||
- **Default**: `"d1a598f6-b7ef-4ad9-b968-65c5fd513bcd"` | ||
@@ -705,3 +708,2 @@ > A unique identifier matching the build. This may contain the hash of the current state of the project. | ||
You can set it to false to use the legacy 'Node' mode, which is the default for TypeScript. | ||
See https://github.com/microsoft/TypeScript/pull/51669 | ||
@@ -955,3 +957,2 @@ | ||
This only works with static or strings/arrays rather than variables or conditional assignment. | ||
https://github.com/nuxt/nuxt/issues/24770 | ||
@@ -985,2 +986,14 @@ | ||
#### `prefetch` | ||
- **Type**: `boolean` | ||
- **Default**: `true` | ||
#### `prefetchOn` | ||
##### `visibility` | ||
- **Type**: `boolean` | ||
- **Default**: `true` | ||
### `useAsyncData` | ||
@@ -1168,3 +1181,3 @@ | ||
Each handler accepts the following options: | ||
- handler: The path to the file defining the handler. - route: The route under which the handler is available. This follows the conventions of https://github.com/unjs/radix3. - 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. | ||
- handler: The path to the file defining the handler. - route: The route under which the handler is available. This follows the conventions of [radix3](https://github.com/unjs/radix3.) - 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. | ||
@@ -1198,3 +1211,3 @@ | ||
> https://github.com/postcss/autoprefixer | ||
> Plugin to parse CSS and add vendor prefixes to CSS rules. | ||
@@ -1244,3 +1257,3 @@ | ||
- **Type**: `array` | ||
- **Default**: `["nitropack","defu","h3","consola","ofetch","@unhead/vue","@nuxt/devtools","vue","@vue/runtime-core","@vue/compiler-sfc","@vue/runtime-dom","vue-router","vue-router/auto-routes","unplugin-vue-router/client","@nuxt/schema","nuxt"]` | ||
- **Default**: `["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"]` | ||
@@ -1321,2 +1334,9 @@ > 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`. | ||
#### `hoistStatic` | ||
- **Type**: `any` | ||
- **Default**: `{}` | ||
### `features` | ||
#### `propsDestructure` | ||
@@ -1327,7 +1347,2 @@ - **Type**: `boolean` | ||
#### `hoistStatic` | ||
- **Type**: `any` | ||
- **Default**: `{}` | ||
## `vueJsx` | ||
@@ -1541,5 +1556,3 @@ | ||
> See: https://pugjs.org/api/reference.html#options | ||
### `vue` | ||
@@ -1604,5 +1617,3 @@ | ||
> See: https://github.com/webpack-contrib/less-loader#options | ||
### `sass` | ||
@@ -1621,5 +1632,3 @@ | ||
> See: https://github.com/webpack-contrib/sass-loader#options | ||
### `stylus` | ||
@@ -1629,5 +1638,3 @@ - **Type**: `any` | ||
> See: https://github.com/webpack-contrib/stylus-loader#options | ||
### `vueStyle` | ||
@@ -1634,0 +1641,0 @@ - **Type**: `any` |
Sorry, the diff of this file is not supported yet
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
580536
12587
Updatedunimport@^3.11.0