mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
v3.3.0 (#19524)
This commit is contained in:
parent
4b2cb52f8a
commit
2ebf5f4c44
@ -344,8 +344,6 @@ The content will not be included in production builds and tree-shaken.
|
|||||||
|
|
||||||
## `<NuxtClientFallback>` Component
|
## `<NuxtClientFallback>` Component
|
||||||
|
|
||||||
::StabilityEdge
|
|
||||||
|
|
||||||
Nuxt provides the `<NuxtClientFallback>` component to render its content on the client if any of its children trigger an error in SSR.
|
Nuxt provides the `<NuxtClientFallback>` component to render its content on the client if any of its children trigger an error in SSR.
|
||||||
You can specify a `fallbackTag` to make it render a specific tag if it fails to render on the server.
|
You can specify a `fallbackTag` to make it render a specific tag if it fails to render on the server.
|
||||||
|
|
||||||
@ -362,8 +360,6 @@ You can specify a `fallbackTag` to make it render a specific tag if it fails to
|
|||||||
</template>
|
</template>
|
||||||
```
|
```
|
||||||
|
|
||||||
::
|
|
||||||
|
|
||||||
## Library Authors
|
## Library Authors
|
||||||
|
|
||||||
Making Vue component libraries with automatic tree-shaking and component registration is super easy ✨
|
Making Vue component libraries with automatic tree-shaking and component registration is super easy ✨
|
||||||
|
@ -7,8 +7,6 @@ description: Use the modules/ directory to automatically register local modules
|
|||||||
|
|
||||||
# Modules Directory
|
# Modules Directory
|
||||||
|
|
||||||
:StabilityEdge
|
|
||||||
|
|
||||||
Nuxt scans the `modules/` directory and loads them before starting. It is a good place to place any local modules you develop while building your application.
|
Nuxt scans the `modules/` directory and loads them before starting. It is a good place to place any local modules you develop while building your application.
|
||||||
|
|
||||||
The auto-registered files patterns are:
|
The auto-registered files patterns are:
|
||||||
|
@ -70,8 +70,6 @@ const nuxtApp = {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
:StabilityEdge{title="nuxtApp.versions"}
|
|
||||||
|
|
||||||
For more details, check out [the source code](https://github.com/nuxt/nuxt/blob/main/packages/nuxt/src/app/nuxt.ts).
|
For more details, check out [the source code](https://github.com/nuxt/nuxt/blob/main/packages/nuxt/src/app/nuxt.ts).
|
||||||
|
|
||||||
## Runtime Context vs. Build Context
|
## Runtime Context vs. Build Context
|
||||||
|
@ -11,8 +11,6 @@ Nuxt provides a `<NuxtClientFallback>` component to render its content on the cl
|
|||||||
This component is experimental and in order to use it you must enable the `experimental.clientFallback` option in your `nuxt.config`.
|
This component is experimental and in order to use it you must enable the `experimental.clientFallback` option in your `nuxt.config`.
|
||||||
::
|
::
|
||||||
|
|
||||||
:StabilityEdge{title=NuxtClientFallback}
|
|
||||||
|
|
||||||
## Events
|
## Events
|
||||||
|
|
||||||
- **`@ssr-error`**: Event emitted when a child triggers an error in SSR. Note that this will only be triggered on the server.
|
- **`@ssr-error`**: Event emitted when a child triggers an error in SSR. Note that this will only be triggered on the server.
|
||||||
|
@ -124,7 +124,7 @@ defineNuxtLink({
|
|||||||
- **activeClass**: A default class to apply on active links. Works the same as [Vue Router's `linkActiveClass` option](https://router.vuejs.org/api/#linkactiveclass). Defaults to Vue Router's default (`"router-link-active"`)
|
- **activeClass**: A default class to apply on active links. Works the same as [Vue Router's `linkActiveClass` option](https://router.vuejs.org/api/#linkactiveclass). Defaults to Vue Router's default (`"router-link-active"`)
|
||||||
- **exactActiveClass**: A default class to apply on exact active links. Works the same as [Vue Router's `linkExactActiveClass` option](https://router.vuejs.org/api/#linkexactactiveclass). Defaults to Vue Router's default (`"router-link-exact-active"`)
|
- **exactActiveClass**: A default class to apply on exact active links. Works the same as [Vue Router's `linkExactActiveClass` option](https://router.vuejs.org/api/#linkexactactiveclass). Defaults to Vue Router's default (`"router-link-exact-active"`)
|
||||||
- **prefetchedClass**: A default class to apply to links that have been prefetched.
|
- **prefetchedClass**: A default class to apply to links that have been prefetched.
|
||||||
- **trailingSlash**: An option to either add or remove trailing slashes in the `href`. If unset or not matching the valid values `append` or `remove`, it will be ignored. **This option is currently only available on the [Edge Channel](/docs/guide/going-further/edge-channel/).** <!-- stabilityedge -->
|
- **trailingSlash**: An option to either add or remove trailing slashes in the `href`. If unset or not matching the valid values `append` or `remove`, it will be ignored.
|
||||||
|
|
||||||
::LinkExample{link="/docs/examples/routing/nuxt-link"}
|
::LinkExample{link="/docs/examples/routing/nuxt-link"}
|
||||||
::
|
::
|
||||||
|
@ -38,7 +38,7 @@ Hook | Arguments | Description
|
|||||||
`kit:compatibility` | `compatibility, issues` | Allows extending compatibility checks.
|
`kit:compatibility` | `compatibility, issues` | Allows extending compatibility checks.
|
||||||
`ready` | `nuxt` | Called after Nuxt initialization, when the Nuxt instance is ready to work.
|
`ready` | `nuxt` | Called after Nuxt initialization, when the Nuxt instance is ready to work.
|
||||||
`close` | `nuxt` | Called when Nuxt instance is gracefully closing.
|
`close` | `nuxt` | Called when Nuxt instance is gracefully closing.
|
||||||
`restart` | `{ hard?: boolean }` | To be called to restart the current Nuxt instance. **This hook is currently only available on the [Edge Channel](/docs/guide/going-further/edge-channel/).** <!-- stabilityedge -->
|
`restart` | `{ hard?: boolean }` | To be called to restart the current Nuxt instance.
|
||||||
`modules:before` | - | Called during Nuxt initialization, before installing user modules.
|
`modules:before` | - | Called during Nuxt initialization, before installing user modules.
|
||||||
`modules:done` | - | Called during Nuxt initialization, after installing user modules.
|
`modules:done` | - | Called during Nuxt initialization, after installing user modules.
|
||||||
`app:resolve` | `app` | Called after resolving the `app` instance.
|
`app:resolve` | `app` | Called after resolving the `app` instance.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nuxt/kit",
|
"name": "@nuxt/kit",
|
||||||
"version": "3.2.3",
|
"version": "3.3.0",
|
||||||
"repository": "nuxt/nuxt",
|
"repository": "nuxt/nuxt",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
@ -19,7 +19,7 @@
|
|||||||
"prepack": "unbuild"
|
"prepack": "unbuild"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nuxt/schema": "3.2.3",
|
"@nuxt/schema": "3.3.0",
|
||||||
"c12": "^1.2.0",
|
"c12": "^1.2.0",
|
||||||
"consola": "^2.15.3",
|
"consola": "^2.15.3",
|
||||||
"defu": "^6.1.2",
|
"defu": "^6.1.2",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nuxi",
|
"name": "nuxi",
|
||||||
"version": "3.2.3",
|
"version": "3.3.0",
|
||||||
"repository": "nuxt/nuxt",
|
"repository": "nuxt/nuxt",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
@ -18,8 +18,8 @@
|
|||||||
"prepack": "unbuild"
|
"prepack": "unbuild"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nuxt/kit": "3.2.3",
|
"@nuxt/kit": "3.3.0",
|
||||||
"@nuxt/schema": "3.2.3",
|
"@nuxt/schema": "3.3.0",
|
||||||
"@types/clear": "^0",
|
"@types/clear": "^0",
|
||||||
"@types/flat": "^5.0.2",
|
"@types/flat": "^5.0.2",
|
||||||
"@types/mri": "^1.1.1",
|
"@types/mri": "^1.1.1",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nuxt",
|
"name": "nuxt",
|
||||||
"version": "3.2.3",
|
"version": "3.3.0",
|
||||||
"repository": "nuxt/nuxt",
|
"repository": "nuxt/nuxt",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
@ -61,11 +61,11 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nuxt/devalue": "^2.0.0",
|
"@nuxt/devalue": "^2.0.0",
|
||||||
"@nuxt/kit": "3.2.3",
|
"@nuxt/kit": "3.3.0",
|
||||||
"@nuxt/schema": "3.2.3",
|
"@nuxt/schema": "3.3.0",
|
||||||
"@nuxt/telemetry": "^2.1.10",
|
"@nuxt/telemetry": "^2.1.10",
|
||||||
"@nuxt/ui-templates": "^1.1.1",
|
"@nuxt/ui-templates": "^1.1.1",
|
||||||
"@nuxt/vite-builder": "3.2.3",
|
"@nuxt/vite-builder": "3.3.0",
|
||||||
"@unhead/ssr": "^1.1.23",
|
"@unhead/ssr": "^1.1.23",
|
||||||
"@unhead/vue": "^1.1.23",
|
"@unhead/vue": "^1.1.23",
|
||||||
"@vue/reactivity": "^3.2.47",
|
"@vue/reactivity": "^3.2.47",
|
||||||
@ -86,7 +86,7 @@
|
|||||||
"magic-string": "^0.30.0",
|
"magic-string": "^0.30.0",
|
||||||
"mlly": "^1.2.0",
|
"mlly": "^1.2.0",
|
||||||
"nitropack": "~2.3.1",
|
"nitropack": "~2.3.1",
|
||||||
"nuxi": "3.2.3",
|
"nuxi": "3.3.0",
|
||||||
"ofetch": "^1.0.1",
|
"ofetch": "^1.0.1",
|
||||||
"ohash": "^1.0.0",
|
"ohash": "^1.0.0",
|
||||||
"pathe": "^1.1.0",
|
"pathe": "^1.1.0",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nuxt/schema",
|
"name": "@nuxt/schema",
|
||||||
"version": "3.2.3",
|
"version": "3.3.0",
|
||||||
"repository": "nuxt/nuxt",
|
"repository": "nuxt/nuxt",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nuxt/test-utils",
|
"name": "@nuxt/test-utils",
|
||||||
"version": "3.2.3",
|
"version": "3.3.0",
|
||||||
"repository": "nuxt/nuxt",
|
"repository": "nuxt/nuxt",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
@ -18,8 +18,8 @@
|
|||||||
"prepack": "unbuild"
|
"prepack": "unbuild"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nuxt/kit": "3.2.3",
|
"@nuxt/kit": "3.3.0",
|
||||||
"@nuxt/schema": "3.2.3",
|
"@nuxt/schema": "3.3.0",
|
||||||
"consola": "^2.15.3",
|
"consola": "^2.15.3",
|
||||||
"defu": "^6.1.2",
|
"defu": "^6.1.2",
|
||||||
"execa": "^7.1.0",
|
"execa": "^7.1.0",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nuxt/vite-builder",
|
"name": "@nuxt/vite-builder",
|
||||||
"version": "3.2.3",
|
"version": "3.3.0",
|
||||||
"repository": "nuxt/nuxt",
|
"repository": "nuxt/nuxt",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
@ -18,13 +18,13 @@
|
|||||||
"prepack": "unbuild"
|
"prepack": "unbuild"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nuxt/schema": "3.2.3",
|
"@nuxt/schema": "3.3.0",
|
||||||
"@types/cssnano": "^5.1.0",
|
"@types/cssnano": "^5.1.0",
|
||||||
"unbuild": "latest",
|
"unbuild": "latest",
|
||||||
"vue": "3.2.47"
|
"vue": "3.2.47"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nuxt/kit": "3.2.3",
|
"@nuxt/kit": "3.3.0",
|
||||||
"@rollup/plugin-replace": "^5.0.2",
|
"@rollup/plugin-replace": "^5.0.2",
|
||||||
"@vitejs/plugin-vue": "^4.0.0",
|
"@vitejs/plugin-vue": "^4.0.0",
|
||||||
"@vitejs/plugin-vue-jsx": "^3.0.0",
|
"@vitejs/plugin-vue-jsx": "^3.0.0",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nuxt/webpack-builder",
|
"name": "@nuxt/webpack-builder",
|
||||||
"version": "3.2.3",
|
"version": "3.3.0",
|
||||||
"repository": "nuxt/nuxt",
|
"repository": "nuxt/nuxt",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
@ -21,7 +21,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/core": "^7.21.0",
|
"@babel/core": "^7.21.0",
|
||||||
"@nuxt/friendly-errors-webpack-plugin": "^2.5.2",
|
"@nuxt/friendly-errors-webpack-plugin": "^2.5.2",
|
||||||
"@nuxt/kit": "3.2.3",
|
"@nuxt/kit": "3.3.0",
|
||||||
"autoprefixer": "^10.4.14",
|
"autoprefixer": "^10.4.14",
|
||||||
"css-loader": "^6.7.3",
|
"css-loader": "^6.7.3",
|
||||||
"css-minimizer-webpack-plugin": "^4.2.2",
|
"css-minimizer-webpack-plugin": "^4.2.2",
|
||||||
@ -60,7 +60,7 @@
|
|||||||
"webpackbar": "^5.0.2"
|
"webpackbar": "^5.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nuxt/schema": "3.2.3",
|
"@nuxt/schema": "3.3.0",
|
||||||
"@types/lodash-es": "^4.17.6",
|
"@types/lodash-es": "^4.17.6",
|
||||||
"@types/pify": "^5.0.1",
|
"@types/pify": "^5.0.1",
|
||||||
"@types/webpack-bundle-analyzer": "^4.6.0",
|
"@types/webpack-bundle-analyzer": "^4.6.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user