@nuxt/docs-nightly 4.6.4-2611231256-4e9a2be → 4.6.4-2611231358-1d8a59f

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.
@@ -160,6 +160,7 @@ The layer keeps Nitro v2 code resolving and running. It doesn't restore every be
160
160
  - **Request URL while prerendering**: the origin of a request that Nitro prerenders, as returned by [`useRequestURL()`](/docs/api/composables/use-request-url), is the address of the prerender worker, such as `http://127.0.0.1:41234`, and its port changes with every build. Nitro v2 used `http://localhost`. Build absolute URLs in prerendered pages, such as a canonical link, from a fixed value such as one in your runtime config. Relative `$fetch` and `useFetch` calls to your API routes and public assets aren't affected.
161
161
  - **The `close` hook while prerendering**: a listener for the runtime `close` hook doesn't run when prerendering ends, and Nuxt names each Nitro v2 plugin that registers one with `NUXT_E8017`. The [Nuxt 5 upgrade guide](https://nuxt.com/docs/5.x/getting-started/upgrade#what-the-layer-doesnt-cover) describes how to save the data instead.
162
162
  - **Dependencies in the server build**: Nitro v3 bundles the packages that your server code imports. If a package doesn't work once bundled, for example with an error when the server starts, list it in `nitro.traceDeps` to keep it out of the bundle and copy it into the build output.
163
+ - **Imports your code doesn't declare**: an import that Nitro v3 can't resolve stays external, in development and in the build output, so `nuxt dev` fails at startup with `Cannot find package 'ufo' imported from .nuxt/dev/index.mjs`, and a built server fails on a route that reaches the import. Nitro v2 resolved such imports from Nuxt's own dependency tree. Declare every package your server code imports in your `package.json`.
163
164
  - **Storage drivers**: a storage driver that needs a library, including one that a module mounts, needs that library in the dependencies of your project. When it's missing, Nitro v3 prompts you to install it, or installs it without asking in a non-interactive shell, and adds it to your `package.json`. In CI, and with `nitro: { deps: { install: false } }`, the build fails and names the package to add instead. `nitro.storage` and `nitro.devStorage` still work, with a deprecation warning. See [Server Storage Is Renamed to KV](https://nuxt.com/docs/5.x/getting-started/upgrade#server-storage-is-renamed-to-kv).
164
165
  - **Modules**: some modules need a release that supports Nitro v3, such as `nuxt-security` 2.7.0 or later.
165
166
  - **Nitro configuration**: options that Nitro v3 removed are ignored, and the build lists them in a `NUXT_B9001` warning.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/docs-nightly",
3
- "version": "4.6.4-2611231256-4e9a2be",
3
+ "version": "4.6.4-2611231358-1d8a59f",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",