@nuxt/docs-nightly 5.0.0-29741502.a0eea766 → 5.0.0-29741513.94de156f

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.
@@ -110,7 +110,7 @@ Well done! A browser window should automatically open for <http://localhost:3000
110
110
  ::tip{icon="i-lucide-container"}
111
111
  If you're using Docker or want a consistent development environment across machines, consider using a dev container.
112
112
 
113
- [Learn more about dev containers](/docs/4.x/guide/best-practices/devcontainers)
113
+ [Learn more about dev containers](/docs/5.x/guide/best-practices/devcontainers)
114
114
  ::
115
115
 
116
116
  ::
@@ -67,6 +67,8 @@ Read more about the `updateAppConfig` utility.
67
67
 
68
68
  Nuxt tries to automatically generate a TypeScript interface from provided app config so you won't have to type it yourself.
69
69
 
70
+ The fully inferred type is only available in app code (components, composables, plugins and so on). In server routes, code in the `shared/` directory and `nuxt.config`, keys defined in `app.config` files are typed as `unknown` instead: typing them there would require typechecking your app code outside the app context, where app auto-imports are not available. Keys defined inline in the `appConfig` option of `nuxt.config` are typed everywhere. If you need other keys typed outside app code, you can extend the `AppConfig` interface as described below. The location of the augmentation file determines which contexts see it: a `.d.ts` file in the `shared/` directory covers app code, shared code and server routes.
71
+
70
72
  However, there are some cases where you might want to type it yourself. There are two possible things you might want to type.
71
73
 
72
74
  ### App Config Input
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  title: '<NuxtTime>'
3
3
  description: 'The <NuxtTime> component displays time in a locale-friendly format with server-client consistency.'
4
+ minimalVersion: "3.17"
4
5
  links:
5
6
  - label: Source
6
7
  icon: i-simple-icons-github
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  title: '<NuxtAnnouncer>'
3
3
  description: 'The <NuxtAnnouncer> component adds a hidden element to announce dynamic content changes to assistive technologies.'
4
- minimalVersion: "3.17"
4
+ minimalVersion: "4.4"
5
5
  links:
6
6
  - label: Source
7
7
  icon: i-simple-icons-github
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  title: 'useAnnouncer'
3
3
  description: A composable for announcing messages to screen readers.
4
- minimalVersion: "3.17"
4
+ minimalVersion: "4.4"
5
5
  links:
6
6
  - label: Source
7
7
  icon: i-simple-icons-github
@@ -136,7 +136,7 @@ Nuxt exposes the following properties through `ssrContext`:
136
136
 
137
137
  It is also possible to use more advanced types, such as `ref`, `reactive`, `shallowRef`, `shallowReactive` and `NuxtError`.
138
138
 
139
- #### Custom Reducer/Reviver
139
+ #### Custom Reducer/Reviver :badge[v3.4]{color="info" size="xs" class="align-middle"}
140
140
 
141
141
  Since [Nuxt v3.4](https://nuxt.com/blog/v3-4#payload-enhancements), it is possible to define your own reducer/reviver for types that are not supported by Nuxt.
142
142
 
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  title: 'defineLazyHydrationComponent'
3
3
  description: 'Define a lazy hydration component with a specific strategy.'
4
+ minimalVersion: "3.18"
4
5
  links:
5
6
  - label: Source
6
7
  icon: i-simple-icons-github
@@ -36,7 +36,7 @@ The `build` command creates a `.output` directory with all your application, ser
36
36
  | `--dotenv` | | Path to `.env` file to load, relative to the root directory |
37
37
  | `--envName` | | The environment to use when resolving configuration overrides (default is `production` when building, and `development` when running the dev server) |
38
38
  | `-e, --extends=<layer-name>` | | Extend from a Nuxt layer |
39
- | `--profile` | | Profile performance (v4.4+). Writes a V8 CPU profile and JSON report on exit. Use `--profile=verbose` for a full console report. |
39
+ | `--profile` :badge[v4.4]{color="info" size="xs" class="align-middle"} | | Profile performance. Writes a V8 CPU profile and JSON report on exit. Use `--profile=verbose` for a full console report. |
40
40
  <!--/build-opts-->
41
41
 
42
42
  ::note
@@ -45,7 +45,7 @@ The `dev` command starts a development server with hot module replacement at [ht
45
45
  | `--qr` | | Display The QR code of public URL when available |
46
46
  | `--public` | | Listen to all network interfaces |
47
47
  | `--tunnel` | | Open a tunnel using https://github.com/unjs/untun |
48
- | `--profile` | | Profile performance (v4.4+). Writes a V8 CPU profile and JSON report on exit. Use `--profile=verbose` for a full console report. |
48
+ | `--profile` :badge[v4.4]{color="info" size="xs" class="align-middle"} | | Profile performance. Writes a V8 CPU profile and JSON report on exit. Use `--profile=verbose` for a full console report. |
49
49
  | `--sslCert` | | (DEPRECATED) Use `--https.cert` instead. |
50
50
  | `--sslKey` | | (DEPRECATED) Use `--https.key` instead. |
51
51
  <!--/dev-opts-->
@@ -35,7 +35,7 @@ The `generate` command pre-renders every route of your application and stores th
35
35
  | `--dotenv` | | Path to `.env` file to load, relative to the root directory |
36
36
  | `--envName` | | The environment to use when resolving configuration overrides (default is `production` when building, and `development` when running the dev server) |
37
37
  | `-e, --extends=<layer-name>` | | Extend from a Nuxt layer |
38
- | `--profile` | | Profile performance (v4.4+). Writes a V8 CPU profile and JSON report on exit. Use `--profile=verbose` for a full console report. |
38
+ | `--profile` :badge[v4.4]{color="info" size="xs" class="align-middle"} | | Profile performance. Writes a V8 CPU profile and JSON report on exit. Use `--profile=verbose` for a full console report. |
39
39
  <!--/generate-opts-->
40
40
 
41
41
  ::read-more{to="/docs/4.x/getting-started/deployment#static-hosting"}
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  title: App Config
3
3
  description: Nuxt Kit provides a set of utilities to help you access and modify Nuxt app configuration.
4
+ minimalVersion: "4.5"
4
5
  links:
5
6
  - label: Source
6
7
  icon: i-simple-icons-github
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/docs-nightly",
3
- "version": "5.0.0-29741502.a0eea766",
3
+ "version": "5.0.0-29741513.94de156f",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",