Vai al contenuto
verdict:

Nuxt 4.6.0

notable

note: la sintesi e le note di rilascio sono in inglese

warning: intervento richiesto

3 breaking changes4 punti chiave

Nuxt 4.6 adds nuxt/server imports, faster typed $fetch and better dev errors, but requires newer Node.js versions.

sintesi · solo dalle note di rilascio · claude-haiku-5-5 · prompt v7

breaking changestutte citate, ognuna con una soluzione

breaking[1]: Nuxt CLI v4 drops nuxt init and only supports npm create nuxt@latest.

Although this is a major version, none of the changes should be breaking for Nuxt v4 users: we require Node.js v22.21+, v24.11+ or v26+, we drop nuxt init and only support npm create nuxt@latest, and Nuxt 2 and @nuxt/bridge are no longer supported.

help: Create new projects with npm create nuxt@latest instead of nuxt init.

breaking[2]: This release requires newer Node.js versions than before.

> This release requires Node.js ^22.22.3 || ^24.15.0 || >=26.0.0.

help: Upgrade Node.js to a version in the required range: ^22.22.3, ^24.15.0 or >=26.0.0.

breaking[3]: Nuxt 2 and @nuxt/bridge are no longer supported.

Although this is a major version, none of the changes should be breaking for Nuxt v4 users: we require Node.js v22.21+, v24.11+ or v26+, we drop nuxt init and only support npm create nuxt@latest, and Nuxt 2 and @nuxt/bridge are no longer supported.

help: The notes give no migration path. Check that your project does not depend on Nuxt 2 or @nuxt/bridge before upgrading.

punti chiave

release-notesgithub.com/nuxt/nuxt · 935 righe
  1. > v4.6.0 is the next minor release.
  2. ## 📣 Some news
  3. ### 🖥️ Nuxt CLI v4
  4. Alongside the release of Nuxt v4.6, today also brings a new major release of the Nuxt CLI: **`@nuxt/cli` v4**. It ships as a dependency of `nuxt`, so you'll get it automatically when you upgrade.
  5. Most of what's new is in `nuxt dev`:
  6. - **an interactive terminal UI**, showing URLs, startup progress and keyboard shortcuts, with panels to dive into error logs, routes, network requests and more
  7. - **the dev server gives you more info**, such as why it reloaded or restarted, which `nuxt.config` keys changed, where the time went during a slow start or build, and how long each module took to set up
  8. - **a CLI-level error channel** rendered with `my-bad` (see below), powering things like automatically reloading when a syntax error in `nuxt.config.ts` is fixed
  9. - **a lock file** in `.nuxt/`, which lets a second `nuxt dev` (say, one started by an agent) take over or defer to the one you started, and powers new `nuxt curl` and `nuxt task` commands that talk to the running server
  10. There's also a new `nuxt docs "<query>"` search, and `nuxt preview --takeover` can replace a running preview server. And in general `nuxt/cli` is a ***lot*** smaller and starts a ***lot*** faster:
  11. | | v3.37 | v4.0 | |
  12. | --- | --- | --- | --- |
  13. | `@nuxt/cli` install size | 13.1 MB | 3.5 MB | **-73%** |
  14. | `@nuxt/cli` dependencies | 70 | 31 | **-56%** |
  15. | `nuxt dev`: first paint | 330 ms | 50 ms | **6.6x faster** |
  16. | `nuxt dev`: port bound | 338 ms | 104 ms | **3.2x faster** |
  17. | `nuxt dev`: memory at rest (Linux) | 630 MB | 440 MB | **-30%** |
  18. <img width="903" height="638" alt="nuxt-dev" src="https://github.com/user-attachments/assets/426fe6f8-736e-410b-9129-d179f1043021" />
  19. Although this is a major version, none of the changes should be breaking for Nuxt v4 users: we require Node.js v22.21+, v24.11+ or v26+, we drop `nuxt init` and only support `npm create nuxt@latest`, and Nuxt 2 and `@nuxt/bridge` are no longer supported.
  20. 👉 **Check out the full [Nuxt CLI v4 release notes](https://github.com/nuxt/cli/releases/tag/v4.0.0) for everything that's changed.**
  21. ### 💡 A server-agnostic Nuxt
  22. The biggest thing about this release is our move towards making Nuxt server-agnostic.
  23. I feel that freedom of choice is very much a fundamental value of the web, and one that unites the whole Nuxt team.
  24. You can use `pages/` (with vue-router) or not. You can use Vite, webpack or Rspack to bundle your code. You can pick from dozens of providers to deploy to, pick any image or font provider, choose any database adapter. In every case, the framework is the same.
  25. The server side was different. `#app` composables imported h3 types, server code imported from `h3` and `nitropack`, and every module that touched the server was tied to whichever major version of those packages Nuxt happened to depend on.
  26. This has become particularly clear as we have been upgrading to new majors of h3 and nitro, which ship breaking changes with a cascading effect throughout the whole ecosystem.
  27. 👉 **This release changes that.**
  28. Alongside explicitly defining our public API in `nuxt/kit` (which now does not refer to external packages), Nuxt now specifies our own types for the request event, route rules and typed `$fetch`, and we expose an import surface (`nuxt/server`) for the server utilities that will be needed by most apps.
  29. This is the culmination of work we started almost a year ago, making it possible to use any server builder with Nuxt, not just Nitro ([#33462](https://github.com/nuxt/nuxt/pull/33462)).
  30. Of course, under the hood, `nuxt/server` is still powered by Nitro by default - though we are also announcing a second, experimental implementation, `@nuxt/vite-server`, which allows pure-Vite server builds using the [Vite Environment API](https://vite.dev/guide/api-environment#environment-api).
  31. > [!IMPORTANT]
  32. > We believe that Nitro is still the right choice for almost everyone.
  33. 🌟 We see a number of key benefits for `nuxt/server`.
  34. 1. **it smooths the upgrade to Nuxt 5**, which moves to Nitro v3 and h3 v2. Server code written against `nuxt/server` on 4.6 runs unchanged there, so a module can ship one file for both.
  35. 2. **it decouples Nuxt from the Nitro release cycle**. Because we 'own' the API, we can adapt to breaking changes in Nitro or h3 without requiring a future major - and we can release Nuxt majors without having to wait for upstream releases.
  36. 3. **it makes Nuxt's code more maintainable**. It helps us preserve the separation of concerns between our API - `/app` and `/server` - and the bundler + server that you ultimately want to build your app.
  37. ... and there are a number of other benefits too, from a single type surface to being able to iterate more quickly on features.
  38. Finally, I want to say a special thank-you to [@pi0](https://github.com/pi0), whose relentless focus on server agnosticism and work on h3, Nitro and web-standard server primitives over the last few years is what makes a portable `RequestEvent` possible at all. Thank you, Pooya. ❤️
  39. Almost every feature in this release is already in the Nuxt 5 branch, and most of the remaining Nuxt 5 defaults can be tested today with `future.compatibilityVersion: 5` (more details below!).
  40. > [!TIP]
  41. > Nuxt 3 reached end-of-life on July 31, 2026, so there is no 3.x release alongside this one. If you're still on v3, the [upgrade guide](https://nuxt.com/docs/getting-started/upgrade) is waiting for you.
  42. ## 👀 Highlights
  43. 🤷 If you've read this far I'm afraid I have bad news for you: there's a lot more still to say! Nuxt 4.6 is one of our biggest minor releases, with over 420 commits since v4.5.2.
  44. ... so, you might want to grab a coffee! ☕️
  45. ### 🧩 `nuxt/server`
  46. It has been asked for for a long time, and it now exists ([#36275](https://github.com/nuxt/nuxt/pull/36275))!
  47. `nuxt/server` is a new import source for server code: handlers, middleware and utilities - a complement to `nuxt/app`. Where `nuxt/app` is for the part of your application that also runs in the browser, `nuxt/server` is for the part that only runs on the server.
  48. ```ts [server/api/hello.ts]
  49. import { defineEventHandler, getQuery } from 'nuxt/server'
  50. export default defineEventHandler((event) => {
  51. const { name } = getQuery<{ name?: string }>(event)
  52. return { message: `Hello, ${name ?? 'world'}!` }
  53. })
  54. ```
  55. The utilities use web standards and are typed against a portable `RequestEvent`:
  56. ```ts
  57. event.req // Request
  58. event.url // URL
  59. event.res // { status, statusText, headers }
  60. event.res.headers // Headers
  61. event.context // per-request context
  62. ```
  63. Under `@nuxt/nitro-server` they are backed by Nitro and h3, but you never import from either.
  64. So the same handler runs under Nitro v2, Nitro v3 or `@nuxt/vite-server`, and a module that imports from `nuxt/server` doesn't need a peer dependency on `h3` or `nitropack`.
  65. We think this will make a big difference in smoothing out the upgrade to Nuxt v5 and Nitro v3.
  66. There is a typing benefit too. We no longer hoist h3 or Nitro types into your app to type `useRequestEvent`, `$fetch` or route rules, which removes a source of type conflicts when versions differ ([#36212](https://github.com/nuxt/nuxt/pull/36212), [#36214](https://github.com/nuxt/nuxt/pull/36214), [#36293](https://github.com/nuxt/nuxt/pull/36293)).
  67. The surface is small, and covers what published modules and user code typically need: `defineEventHandler`, `createError`/`isNuxtError`, request URL, headers, query, body (plain and validated with any [Standard Schema](https://standardschema.dev) library or a function), cookies, redirects, response status, `getRouterParam(s)`, `getRequestIP`, `handleCors`, `getRouteRules`, `useRuntimeConfig`, `useAppConfig` and sessions.
  68. ```ts [server/api/users.post.ts]
  69. import { defineEventHandler, readValidatedBody } from 'nuxt/server'
  70. import { z } from 'zod'
  71. export default defineEventHandler(async (event) => {
  72. const user = await readValidatedBody(event, z.object({ name: z.string() }))
  73. return { created: user.name }
  74. })
  75. ```
  76. We encourage you to use web APIs (`event.req.headers`, for example), or raise an issue if there's functionality you're missing from `nuxt/server` 🙏
  77. If you do need to step outside `nuxt/server` for a particular handler, don't worry! Nothing has been taken away: import `defineEventHandler` and the helpers you need from `h3` or `nitropack/runtime` as before, and that handler works exactly as it did on Nuxt 4.5.
  78. ```ts [server/api/upload.post.ts]
  79. import { defineEventHandler, readMultipartFormData } from 'h3'
  80. export default defineEventHandler(async (event) => {
  81. const parts = await readMultipartFormData(event)
  82. return { received: parts?.length ?? 0 }
  83. })
  84. ```
  85. > [!IMPORTANT]
  86. > On Nuxt 4, the _auto-imported_ `defineEventHandler`, `getQuery`, `readBody` and the rest are still h3's own helpers, which take a different shape of event. Import from `nuxt/server` explicitly, including `defineEventHandler` to use the new server runtime. If you mix the two, you'll see a `NUXT_E8012` error which should tell you which import to change.
  87. A few helpers also behave differently from their h3 v1 namesakes: `sendRedirect` returns the response rather than sending it, `createError` takes `status` and `statusText`, and response headers are set through `event.res.headers`. The upgrade guide has [a table of the differences](https://nuxt.com/docs/getting-started/upgrade#moving-to-nuxtserver).
  88. Nothing in this release _requires_ a migration. But if you have server code you'd like to make portable ahead of Nuxt 5, this is the best way.
  89. 👉 Read the [server imports guide](https://nuxt.com/docs/guide/going-further/server-imports).
  90. ### 🔐 `appSecret` and sessions
  91. Nuxt now has a root application secret: `runtimeConfig.appSecret`, set with `NUXT_APP_SECRET` ([#35874](https://github.com/nuxt/nuxt/pull/35874), thanks to [@onmax](https://github.com/onmax)). Modules and server features derive purpose-specific secrets from it with `deriveSecret(purpose)`, so `NUXT_APP_SECRET` is the only secret you need to configure.
  92. ```bash
  93. openssl rand -base64 32
  94. ```
  95. In development Nuxt generates and persists one if none is configured (and warns the first time a derived secret is used). Builds never generate one.
  96. The first thing to use it is a set of session helpers in `nuxt/server` ([#36358](https://github.com/nuxt/nuxt/pull/36358)). Sessions are sealed into a cookie with [iron](https://github.com/brc-dd/iron-webcrypto), so there's no server-side storage to configure:
  97. ```ts [server/api/visits.ts]
  98. import { defineEventHandler, useSession } from 'nuxt/server'
  99. export default defineEventHandler(async (event) => {
  100. const session = await useSession<{ visits: number }>(event)
  101. await session.update(data => ({ visits: (data.visits ?? 0) + 1 }))
  102. return { visits: session.data.visits }
  103. })
  104. ```
  105. > [!NOTE]
  106. > As a reminder, runtime config keys prefixed with `app` (`runtimeConfig.app`, `runtimeConfig.appSecret`) are reserved for Nuxt.
  107. ### 🎯 Typed `$fetch`, rebuilt
  108. `$fetch` and `useFetch` have been typed from your server routes for a long time. But the types were derived from Nitro's `InternalApi` interface, and past a few hundred routes they hit TypeScript's instantiation limit with the familiar `TS2589: Type instantiation is excessively deep and possibly infinite`.
  109. We've rebuilt typed fetch on top of [`fetchdts`](https://github.com/danielroe/fetchdts) ([#36238](https://github.com/nuxt/nuxt/pull/36238)). Nuxt compiles your server routes into a route tree with an exact-match table for static paths and accessors specialised to your route set. Resolution cost now scales with call sites, not with route count:
  110. | routes | before | after |
  111. | - | - | - |
  112. | 100 | 1,397,361 instantiations / 0.77s | 51,558 / 0.26s |
  113. | 300 | 5,774,425 / 3.49s (`TS2589`) | 51,558 / 0.16s |
  114. | 1000 | 12,831,467 / 7.44s (`TS2589`) | 51,558 / 0.20s |
  115. | 3000 (200 call sites) | 71,875,148 / 53.63s (`TS2589`) | 101,678 / 0.62s |
  116. Peak memory for the same runs dropped from 946 MB to 140 MB. 🔥
  117. Plus, the route set also carries the `body`, `query` and `headers` a handler validates, so calls are checked more tightly than before:
  118. ```ts
  119. // server/api/users.post.ts validates { title: string, count: number }
  120. await $fetch('/api/users', { method: 'post', body: { title: 'a', count: 1 } })
  121. await $fetch('/api/users', { method: 'post', body: { title: 'a', count: 'no' } })
  122. // ^ not assignable to number
  123. await $fetch('/api/users', { method: 'post' })
  124. // ^ body is required
  125. ```
  126. On Nuxt 4 this is opt-in, because there are small changes to type inference, and hand-written `ServerRoutes` augmentations need a small rewrite. It is the default in Nuxt 5.
  127. ```ts [nuxt.config.ts]
  128. export default defineNuxtConfig({
  129. experimental: {
  130. routeTypedFetch: true,
  131. },
  132. })
  133. ```
  134. There's also a new `experimental.strictRouteTypes` option to reject calls to paths that don't exist (otherwise these just return `unknown`), and an `'isomorphic'` mode that types your pages as `GET` routes too if you want to be able to `$fetch` from the Vue renderer with type safety.
  135. 👉 Read more in the [experimental features docs](https://nuxt.com/docs/guide/going-further/experimental-features#routetypedfetch).
  136. ### 🐛 Better errors in development with `my-bad`
  137. Server-side errors in development used to look like this:
  138. ```
  139. ReferenceError: foo is not defined
  140. at Object.<anonymous> (/_nuxt/app/pages/index.vue:1:1)
  141. ```
  142. There was no source position or code frame, and the Youch iframe we rendered could not show you the frame in your own source either. Both are now fixed ([#36258](https://github.com/nuxt/nuxt/pull/36258), [nuxt/cli#1518](https://github.com/nuxt/cli/pull/1518)).
  143. Dev SSR stack traces are now mapped before anything reads the error, and the Youch overlay has been replaced with [`my-bad`](https://github.com/danielroe/my-bad). It renders into your app's own error page as an overlay (or as a standalone page when the app can't render one), with the mapped stack trace and a code frame from your source, and the same report is printed in your terminal. We are still working with [@atinux](https://github.com/atinux), [@HugoRCD](https://github.com/HugoRCD) and [@antfu](https://github.com/antfu) to make these pages nicer still.
  144. <img width="3200" height="2000" alt="my-bad-ssr-expanded-dark" src="https://github.com/user-attachments/assets/dc460902-117e-4b64-881c-1f0c80f05cbd" />
  145. <img width="3200" height="2000" alt="my-bad-ssr-copymenu-dark" src="https://github.com/user-attachments/assets/5516ae18-09bc-4b88-a692-6f910b8b4ed6" />
  146. With Nuxt CLI v4, there is a single live error channel at the CLI level. It survives worker restarts, so (for example) a syntax error in `nuxt.config.ts` will live-reload the page once you fix it. Each error is rendered once rather than at every layer it passes through, and the same channel streams build progress and app logs to the dev panel.
  147. <!-- TODO: record video of fixing a syntax error in nuxt.config.ts and watch the error page live-reload -->
  148. ### 🎨 A new loading screen, 404 and error pages
  149. [@HugoRCD](https://github.com/HugoRCD) has redrawn the loading screen you see while the dev server starts. It is now a WebGL2 particle field that traces a mountain range behind the Nuxt lockup ([#36178](https://github.com/nuxt/nuxt/pull/36178)), using a single shader and a single draw call. Without WebGL2 it falls back to the static lockup, and with `prefers-reduced-motion` the animation stops. Try hovering over it. 🏔️
  150. <!-- VIDEO: release-assets/loading-screen-{dark,light}.mp4 (14s, cold start into app); stills: release-assets/loading-screen-{dark,light}.png -->
  151. Hugo also gave the built-in 404 and error pages a neutral palette and lighter type ([#36255](https://github.com/nuxt/nuxt/pull/36255)), and [@MirkoJa](https://github.com/MirkoJa) added a back button to the 404 page ([#35688](https://github.com/nuxt/nuxt/pull/35688)).
  152. <img width="3200" height="2000" alt="404-page-dark" src="https://github.com/user-attachments/assets/3070c5ac-8ade-4826-8479-ebea88fa8092" />
  153. <!-- SCREENSHOT: release-assets/mac/404-page-{dark,light}.png and release-assets/error-page-prod-{dark,light}.png -->
  154. ### ⚡️ Vue Vapor support
  155. Nuxt now supports Vue 3.6's [Vapor Mode](https://github.com/vuejs/core/releases/tag/v3.6.0-rc.1#about-vapor-mode) in interop mode ([#35759](https://github.com/nuxt/nuxt/pull/35759)). Your app root stays on the virtual DOM, and you can opt individual components or pages into Vapor by adding the `vapor` attribute to `<script setup>`:
  156. ```ts [nuxt.config.ts]
  157. export default defineNuxtConfig({
  158. vue: {
  159. vapor: true,
  160. },
  161. })
  162. ```
  163. ```vue [app/pages/index.vue]
  164. <script setup vapor lang="ts">
  165. const count = ref(0)
  166. </script>
  167. <template>
  168. <button @click="count++">
  169. count is {{ count }}
  170. </button>
  171. </template>
  172. ```
  173. Routing, `useAsyncData`, layouts and most built-in components keep working unchanged. Along the way we made the auto-import loader, `useAsyncData`, `definePageMeta` and slot inspection Vapor-aware, and we now have a Vapor test suite so we can track what's supported.
  174. > [!NOTE]
  175. > This requires Vue `^3.6.0-rc.2` or newer. See the [known limitations](https://nuxt.com/docs/guide/concepts/vuejs-development#known-limitations) and try it in a fresh project first.
  176. ### 🧩 Addons for `useFetch` and `useAsyncData`
  177. [@cernymatej](https://github.com/cernymatej) has added an `addons` option to the `createUseFetch` and `createUseAsyncData` factories ([#35797](https://github.com/nuxt/nuxt/pull/35797)). An addon can declare custom call-site options, adjust the merged options, wrap the handler with middleware, and extend what the composable returns, and it can be reused across as many custom instances as you like.
  178. ```ts [app/composables/useApiFetch.ts]
  179. const refreshOnFocus = defineUseFetchAddon({
  180. setup: (options: UseFetchAddonOptions<{ refreshOnFocus?: boolean }>) => {
  181. if (import.meta.server || !options.refreshOnFocus) { return }
  182. return (asyncData) => {
  183. const focused = useWindowFocus()
  184. watch(focused, focused => focused && asyncData.refresh())
  185. return { focused }
  186. }
  187. },
  188. })
  189. export const useApiFetch = createUseFetch({ baseURL: '/api', addons: [refreshOnFocus] })
  190. ```
  191. ```vue [app/pages/todos.vue]
  192. <script setup lang="ts">
  193. const { data, focused } = await useApiFetch('/todos', { refreshOnFocus: true })
  194. </script>
  195. ```
  196. This resolves a long list of feature requests for `useAsyncData` and `useFetch` (refresh on focus, polling, retries, auth headers and more) without making the core composables opinionated about any of them.
  197. 👉 Read about [`defineUseFetchAddon`](https://nuxt.com/docs/api/utils/define-use-fetch-addon) and [`defineUseAsyncDataAddon`](https://nuxt.com/docs/api/utils/define-use-async-data-addon).
  198. ### 🚀 Performance
  199. There is a lot of performance work in this release.
  200. - **`<NuxtLink>` renders 58% faster on the server** ([#36015](https://github.com/nuxt/nuxt/pull/36015)). Internal links are now rendered as a plain `<a>` with no `useLink`, no computed and no reactive state. Rendering 200 links went from 1.36ms to 0.57ms, which is 1.4x faster than a bare `<RouterLink>`.
  201. - **Early 404s** ([#36117](https://github.com/nuxt/nuxt/pull/36117)). With `experimental.early404`, page routes are compiled into a static matcher at build time and requests that can't match any page skip creating the Vue app, running plugins and middleware entirely. On an app with 30 pages and ~23ms of boot work per render, a JSON 404 went from 37.1ms to 0.3ms.
  202. - **Templates declare their dependencies** ([#35875](https://github.com/nuxt/nuxt/pull/35875)). The virtual file templates used in Nuxt's build used to regenerate on every file change. They now declare what invalidates them, so editing a component regenerates 0 of 49 core templates instead of all of them, and the `builder:watch` hook settles in 0.6ms instead of 36ms.
  203. - **Cookie jars** ([#36114](https://github.com/nuxt/nuxt/pull/36114)). `useCookie` parses the cookie header once per request (or once per microtask on the client) instead of on every call. A nice side effect: a cookie set in a plugin during SSR can now be read by a later `useCookie` in a page.
  204. - **`ssr: false` pages are tree-shaken from the server bundle** ([#35836](https://github.com/nuxt/nuxt/pull/35836), thanks to [@Austin1serb](https://github.com/Austin1serb)).
  205. - **Serializable `definePageMeta` keys are extracted at build time** ([#35919](https://github.com/nuxt/nuxt/pull/35919)), behind `experimental.extractSerializablePageMeta`.
  206. - **Faster dev server warm-up**: Vite's server module graph is warmed before the client ([#36154](https://github.com/nuxt/nuxt/pull/36154)), the client graph is crawled during warm-up ([#35870](https://github.com/nuxt/nuxt/pull/35870)), and warm-up yields to your first navigation so it never competes with a real request ([#36412](https://github.com/nuxt/nuxt/pull/36412)).
  207. - **Smaller client bundle**: `unctx` is no longer shipped to the browser and `defu` is skipped for a single `app.config` ([#36371](https://github.com/nuxt/nuxt/pull/36371)).
  208. - **Fewer dependencies**: `@nuxt/kit` no longer depends on `c12`, `untyped`, `confbox`, `pkg-types`, `ufo` or `mlly`, and `jiti` and `giget` are now optional peers loaded only when needed ([#35936](https://github.com/nuxt/nuxt/pull/35936), [#35943](https://github.com/nuxt/nuxt/pull/35943), [#35946](https://github.com/nuxt/nuxt/pull/35946), [#36071](https://github.com/nuxt/nuxt/pull/36071), [#36073](https://github.com/nuxt/nuxt/pull/36073), [#36083](https://github.com/nuxt/nuxt/pull/36083)).
  209. - Lazy impound tracing for builds ([#36172](https://github.com/nuxt/nuxt/pull/36172)), virtual module hooks filtered by id ([#36077](https://github.com/nuxt/nuxt/pull/36077)), `isVue` checks migrated to plugin filters ([#36116](https://github.com/nuxt/nuxt/pull/36116)) and an `flru` prerender cache ([#36340](https://github.com/nuxt/nuxt/pull/36340)).
  210. Put together, on our benchmark machine (arm64 Linux, Node 24.15, medians of 5 runs):
  211. | | v4.5.2 | v4.6.0 | |
  212. | --- | --- | --- | --- |
  213. | `@nuxt/kit` install size | 6.4 MB | 2.1 MB | **-67%** |
  214. | `@nuxt/kit` transitive dependencies | 36 | 22 | **-39%** |
  215. | `nuxt build`, starter | 4.4 s | 3.6 s | **-18%** |
  216. | `nuxt build`, 200 pages / 200 components / 50 routes | 11.6 s | 10.3 s | **-11%** |
  217. | SSR throughput, page with 300 `<NuxtLink>`s | 110 req/s | 140 req/s | **+26%** |
  218. Dev server start-up (spawn to first HTML) on the same machine is about 12% faster on a starter app, with the second request served in roughly half the time, though the CLI major changed alongside so not all of that is Nuxt.
  219. ### 📦 Lighter payloads
  220. `useAsyncData` and `useFetch` accept a `serialize: false` option to keep data out of the `__NUXT_DATA__` payload ([#35779](https://github.com/nuxt/nuxt/pull/35779)). That's most useful inside components that never hydrate, and `experimental.stripNeverHydratedData` applies it automatically to data fetched within `hydrate-never` component trees.
  221. Nuxt also warns in development when a page's payload exceeds 100 kB ([#35777](https://github.com/nuxt/nuxt/pull/35777)) and when a route rendered with `noScripts` relies on client-side JavaScript ([#35780](https://github.com/nuxt/nuxt/pull/35780)), and `noScripts` pages keep their non-script resource hints and attach their styles correctly ([#35803](https://github.com/nuxt/nuxt/pull/35803), [#36356](https://github.com/nuxt/nuxt/pull/36356), [#36359](https://github.com/nuxt/nuxt/pull/36359)).
  222. `<NuxtLink>` now prefetches server-page islands ([#35808](https://github.com/nuxt/nuxt/pull/35808)), and [@atinux](https://github.com/atinux) made prefetch hints throttled and prioritised so a page full of links doesn't flood the network ([#36261](https://github.com/nuxt/nuxt/pull/36261), [#36324](https://github.com/nuxt/nuxt/pull/36324)). Building on that, route chunks, layouts, middleware, payloads, islands and resource hints all now go through one client prefetch scheduler with per-kind concurrency caps, deduplication by key, and cancellation of in-flight work when you navigate away ([#36391](https://github.com/nuxt/nuxt/pull/36391)).
  223. ### 🔮 Nuxt 5 features, today
  224. Most of what's new in Nuxt 5 is already in 4.6, either as the default or behind a flag. `future.compatibilityVersion: 5` turns on the Nuxt 5 defaults in one go, and every one of them can be enabled (or disabled) individually.
  225. ```ts [nuxt.config.ts]
  226. export default defineNuxtConfig({
  227. future: {
  228. compatibilityVersion: 5,
  229. },
  230. })
  231. ```
  232. Newly gated behind the flag in this release:
  233. - **Typed pages** (`experimental.typedPages`) ([#35789](https://github.com/nuxt/nuxt/pull/35789))
  234. - **Typed `$fetch`** (`experimental.routeTypedFetch`), described above
  235. - **Case-sensitive routing**, matching Nitro ([#35650](https://github.com/nuxt/nuxt/pull/35650), thanks to [@Mateleo](https://github.com/Mateleo))
  236. - **Early return from `navigateTo`** (`experimental.navigateToEarlyReturn`): `navigateTo` in `<script setup>` short-circuits the rest of the setup, so redirects and 404s don't throw on missing data ([#36115](https://github.com/nuxt/nuxt/pull/36115))
  237. - **Serializable page meta extraction** (`experimental.extractSerializablePageMeta`)
  238. - **Client-side payload extraction** (`experimental.payloadExtraction: 'client'`)
  239. - **Normalized page names**, `clearNuxtState` resetting to defaults, `experimental.watcher: 'builder'`, and no auto-imported server-only head composables
  240. - **No `baseUrl` in generated tsconfigs** ([#36040](https://github.com/nuxt/nuxt/pull/36040), thanks to [@oritwoen](https://github.com/oritwoen))
  241. - **Inline error rendering** (`experimental.inlineErrorRendering`): when a server render fails, `error.vue` is rendered in the same request with a plain try/catch, instead of re-entering the server over an internal request to `/__nuxt_error`. Headers and cookies the failed render had already set are kept, error renders no longer pass through Nitro middleware and route rules a second time, and `render:html` fires with the original event ([#36399](https://github.com/nuxt/nuxt/pull/36399)).
  242. The upgrade guide now lists [exactly what the flag changes on Nuxt 4](https://nuxt.com/docs/getting-started/upgrade#testing-nuxt-5).
  243. ### 🧪 Experimental: `@nuxt/vite-server`
  244. Since v4.2 `server.builder` has been configurable. This release adds a second server builder: `@nuxt/vite-server`. It builds a Nuxt app with Vite alone ([#36218](https://github.com/nuxt/nuxt/pull/36218), [#36279](https://github.com/nuxt/nuxt/pull/36279), [#36288](https://github.com/nuxt/nuxt/pull/36288)).
  245. This is all you need to do to configure it.
  246. ```ts [nuxt.config.ts]
  247. export default defineNuxtConfig({
  248. server: {
  249. builder: 'vite', // 'nitro' is the default
  250. },
  251. })
  252. ```
  253. It can produce a pure client SPA, a server-rendered app with a small Node entry, a web-standard `fetch` handler for platforms that provide the server (there are e2e examples for [Cloudflare Workers](https://developers.cloudflare.com/workers/vite-plugin/), [Netlify](https://github.com/netlify/framework-adapters/tree/main/packages/vite-plugin) and [universal deploy](https://github.com/universal-deploy/universal-deploy)), as well as fully static output with `nuxt generate`.
  254. Right now, this helps keep Nuxt's code agnostic, enforce the contract behind `nuxt/server`, and to give Vite plugins that provide a deploy target something to build on. It does not have Nitro's full feature set (there is no storage, caching, tasks or server plugins), and we expect most apps to keep using Nitro. **Nitro remains the default.**
  255. > [!WARNING]
  256. > This is highly experimental and the API will change. `'nitro'` and `'vite'` are new shorthands for `@nuxt/nitro-server` and `@nuxt/vite-server`.
  257. ### 🛠️ Developer experience
  258. - **Clickable file paths** in terminal output ([#35898](https://github.com/nuxt/nuxt/pull/35898)). Warnings that mention a file now link to it in your editor, at the line responsible where we know it.
  259. - **IDE hover docs for built-in components** ([#35701](https://github.com/nuxt/nuxt/pull/35701)). Hovering a built-in component like `<NuxtLayout>` or `<NuxtLink>` in a template now shows a short description and a link to the docs. Thanks to [@Ibochkarev](https://github.com/Ibochkarev).
  260. - **`app/types/` and `server/types/`** are included in the right tsconfig, so ambient types and augmentations placed there are picked up ([#35783](https://github.com/nuxt/nuxt/pull/35783), thanks to [@Flo0806](https://github.com/Flo0806), who also added an augmentable `NuxtPageMeta` for typing `NuxtPage.meta` in [#34816](https://github.com/nuxt/nuxt/pull/34816)).
  261. - **Grouping folders in `components/`**: a `(group)/` folder is excluded from the component name ([#35699](https://github.com/nuxt/nuxt/pull/35699), thanks to [@abaza738](https://github.com/abaza738)).
  262. - **Dynamic `expires` in `useCookie`**, accepting a function ([#35628](https://github.com/nuxt/nuxt/pull/35628), thanks to [@DarlanPrado](https://github.com/DarlanPrado)).
  263. - **A warning when a `public/` file shadows an application route** ([#35674](https://github.com/nuxt/nuxt/pull/35674), thanks to [@Norbiros](https://github.com/Norbiros)).
  264. - **Install hints use your package manager** ([#35871](https://github.com/nuxt/nuxt/pull/35871)).
  265. - **Prerender your error pages** as real HTML (`404.html`, or any status codes you pass) with `experimental.prerenderErrorPages` instead of an empty SPA shell ([#35193](https://github.com/nuxt/nuxt/pull/35193), thanks again to [@Flo0806](https://github.com/Flo0806)).
  266. - `$Fetch` is exported from `nuxt/app` ([#35625](https://github.com/nuxt/nuxt/pull/35625)) and `ShallowRef` is in the Vue auto-import preset ([#36266](https://github.com/nuxt/nuxt/pull/36266)), both from [@DamianGlowala](https://github.com/DamianGlowala); `preloadComponents` and the `NuxtIsland` `name` prop are typed ([#35775](https://github.com/nuxt/nuxt/pull/35775)), and `useLayout`, `useLoadingIndicator` and `useRequestHeader` are exported from `nuxt/app` ([#36033](https://github.com/nuxt/nuxt/pull/36033)).
  267. - **`typescript.tsConfig` is now a shared baseline** for all four generated tsconfigs, with `appTsConfig` and `serverTsConfig` for per-context overrides ([#35697](https://github.com/nuxt/nuxt/pull/35697), thanks to [@chairulakmal](https://github.com/chairulakmal)).
  268. - **Top-level `prerender` option**, an alias for `nitro.prerender` in the same way `runtimeConfig` and `routeRules` are top-level ([#32356](https://github.com/nuxt/nuxt/pull/32356)). Nuxt now also points you towards top-level options where they exist, since those work across server builders ([#36416](https://github.com/nuxt/nuxt/pull/36416)).
  269. - **Links to `public/` files just work.** If the router has no route for a `<NuxtLink>` target (a PDF in `public/`, say, or a link from Markdown with Nuxt Content), Nuxt falls through to a full-page load instead of rendering your 404, so `external` is no longer required ([#36169](https://github.com/nuxt/nuxt/pull/36169)).
  270. - **Renaming a component in development refreshes its imports**, so you no longer see stale references to the old file ([#36165](https://github.com/nuxt/nuxt/pull/36165), thanks to [@oritwoen](https://github.com/oritwoen)).
  271. - **Layers**: dependencies of layers installed from `node_modules` are pre-bundled by Vite ([#36208](https://github.com/nuxt/nuxt/pull/36208)), and symlinked layer directories resolve to their real path ([#36402](https://github.com/nuxt/nuxt/pull/36402), thanks to [@silverbackdan](https://github.com/silverbackdan)).
  272. ### 🧰 For module authors
  273. If you maintain a module with server code, we've enabled making modules compatible with both Nuxt 4 & 5, without requiring a major bump. (And we'll be opening PRs proactively after the release of Nuxt v4.6 to assist with preparing for a Nuxt v5 release...)
  274. - **One module for Nuxt 4 and Nuxt 5.** `addServerHandler`, `addDevServerHandler` and `addNitroPlugin` accept a map of variants per server API ([#36317](https://github.com/nuxt/nuxt/pull/36317)). Nuxt chooses the most appropriate one. A handler that imports only from `nuxt/server` needs no Nitro 2/3 variants at all (but does require Nuxt v4.6+).
  275. ```ts [module.ts]
  276. addServerHandler({
  277. route: '/api/my-module/status',
  278. handler: {
  279. nuxt: resolve('./runtime/server/status'),
  280. nitro2: resolve('./runtime/server/status.legacy'),
  281. },
  282. })
  283. ```
  284. Nuxt reads the file's imports to decide which API it uses. Where that isn't enough, you can declare `meta.compatibility.server`. `getNitroVersion` and `hasNitroVersion` are also there in case you have logic that _explicitly_ requires you to know the Nitro version installed ([#36127](https://github.com/nuxt/nuxt/pull/36127)).
  285. 👉 Read the [server compatibility guide](https://nuxt.com/docs/guide/modules/server-compatibility) for more information.
  286. - **Nuxt-owned, augmentable server types**: `ServerTypes`, `ServerRoutes`, `AppRouteRules` and `NuxtRequestContext`. Augment `@nuxt/schema` once; `nuxt/schema` mirrors it ([#36293](https://github.com/nuxt/nuxt/pull/36293)).
  287. - **`useTerminal`** for host-aware prompts, status messages and tasks in progress, rendered by the CLI's dev panel when there is one ([#36162](https://github.com/nuxt/nuxt/pull/36162)).
  288. - **`module:before` and `module:done` hooks**, which Nuxt CLI v4 uses to show per-module setup time as it happens ([#36173](https://github.com/nuxt/nuxt/pull/36173)).
  289. - **`onConfigResolved` and `diffNuxtConfig`** to see what changed between two config loads ([#35853](https://github.com/nuxt/nuxt/pull/35853)).
  290. - **`ensureDependencyInstalled` and `getAddDependencyCommand`** to check for and offer to install optional dependencies with the user's package manager ([#34554](https://github.com/nuxt/nuxt/pull/34554)).
  291. - **Template `dependencies`** to say exactly what should invalidate a template ([#35875](https://github.com/nuxt/nuxt/pull/35875)).
  292. - **`addServerImports`, `addServerImportsDir` and `addServerTemplate`** work the same across Nitro versions; a server tsconfig and versioned route config types are generated for you ([#36265](https://github.com/nuxt/nuxt/pull/36265)).
  293. - **`@nuxt/kit` has an explicit public API** ([#36074](https://github.com/nuxt/nuxt/pull/36074)) and `@nuxt/schema` is an optional peer ([#36246](https://github.com/nuxt/nuxt/pull/36246)).
  294. - Modules can now set `experimental.asyncContext` ([#36175](https://github.com/nuxt/nuxt/pull/36175), thanks to [@cernymatej](https://github.com/cernymatej)), Vite plugins added via kit land at the top level rather than wrapped ([#36037](https://github.com/nuxt/nuxt/pull/36037)), and more build-time warnings have moved to [diagnostic codes](https://nuxt.com/docs/errors) with docs pages ([#36138](https://github.com/nuxt/nuxt/pull/36138)).
  295. - `@nuxt/kit` peer dependency ranges are widened to the versions actually required rather than tracking the latest of each package ([#36417](https://github.com/nuxt/nuxt/pull/36417)), and `updateRuntimeConfig` no longer warns when called before Nitro exists ([#36403](https://github.com/nuxt/nuxt/pull/36403), thanks to [@Neekoras](https://github.com/Neekoras)).
  296. ### 🔒 Security
  297. - The internal error route is only served to an error render, and can no longer be reached from outside ([259058cf4](https://github.com/nuxt/nuxt/commit/259058cf4), [#36305](https://github.com/nuxt/nuxt/pull/36305)).
  298. - Dev error reports are scoped for remote peers, and the dev error channel is kept out of production builds ([#36389](https://github.com/nuxt/nuxt/pull/36389), [#36407](https://github.com/nuxt/nuxt/pull/36407)).
  299. - Unhandled error data is no longer passed to the error page ([38a40cfc0](https://github.com/nuxt/nuxt/commit/38a40cfc0)), oversized island bodies are drained before being rejected ([#36320](https://github.com/nuxt/nuxt/pull/36320)), and error-render recursion is tracked in request context rather than via a client-controllable header ([d8c729435](https://github.com/nuxt/nuxt/commit/d8c729435)).
  300. ### 🩹 Important fixes
  301. - Awaited `useAsyncData` no longer resolves with unfetched data on hydration ([#36124](https://github.com/nuxt/nuxt/pull/36124)), awaited lazy async data resolves immediately ([#36301](https://github.com/nuxt/nuxt/pull/36301)), and `useAsyncData` types resolve for generic type params ([#36316](https://github.com/nuxt/nuxt/pull/36316)).
  302. - `useRequestFetch` forwards request headers ([#36180](https://github.com/nuxt/nuxt/pull/36180), thanks to [@hdwebpros](https://github.com/hdwebpros)).
  303. - `navigateTo` matches vue-router's path encoding ([#36055](https://github.com/nuxt/nuxt/pull/36055)), preserves percent-encoding in server redirects ([#36112](https://github.com/nuxt/nuxt/pull/36112)), and applies `baseURL` with `open` ([#36197](https://github.com/nuxt/nuxt/pull/36197)).
  304. - Scoped styles apply to server component slots ([#36047](https://github.com/nuxt/nuxt/pull/36047)), island asset requests are deduped ([#36048](https://github.com/nuxt/nuxt/pull/36048)), lazy hydration no longer produces blank remounts ([#36051](https://github.com/nuxt/nuxt/pull/36051)), all from [@oritwoen](https://github.com/oritwoen), and hydrated `nuxt-client` markup is stripped from cached island HTML ([#36298](https://github.com/nuxt/nuxt/pull/36298)).
  305. - A batch of CSS fixes across Vite, webpack and rspack: duplicate CSS links for inlined chunks ([#36056](https://github.com/nuxt/nuxt/pull/36056)), `baseURL` and `url()` rewriting in inlined styles ([#36137](https://github.com/nuxt/nuxt/pull/36137), [#36143](https://github.com/nuxt/nuxt/pull/36143)), island descendant CSS extraction ([#36260](https://github.com/nuxt/nuxt/pull/36260)) and stable style chunk names ([#36361](https://github.com/nuxt/nuxt/pull/36361)).
  306. - View transitions handle interrupted and skipped navigations ([#35537](https://github.com/nuxt/nuxt/pull/35537) from [@Askerka00](https://github.com/Askerka00), [#36314](https://github.com/nuxt/nuxt/pull/36314)), and page transitions stay mounted for nested routes with no children ([#36304](https://github.com/nuxt/nuxt/pull/36304)).
  307. - The streaming shell head renders after the first render pass ([#36120](https://github.com/nuxt/nuxt/pull/36120)).
  308. - Payload URLs are parsed as origin-relative paths, so a path like `//x/_payload.json` no longer serves the wrong payload ([#36409](https://github.com/nuxt/nuxt/pull/36409), spotted by [@Kushalkhemka](https://github.com/Kushalkhemka)).
  309. - `/index.html` is prerendered for client-only apps with islands ([#36299](https://github.com/nuxt/nuxt/pull/36299)).
  310. - `definePageMeta` works at the top level of `setup()` ([#36245](https://github.com/nuxt/nuxt/pull/36245)), and changed auto-import sources are rescanned before their consumers ([#33671](https://github.com/nuxt/nuxt/pull/33671), thanks to [@Flo0806](https://github.com/Flo0806)).
  311. - A template that never finishes compiling now fails the build instead of exiting 0 ([#36322](https://github.com/nuxt/nuxt/pull/36322)).
  312. - Error causes are preserved in development ([#35632](https://github.com/nuxt/nuxt/pull/35632), thanks to [@onmax](https://github.com/onmax)).
  313. - Layout `onBeforeLeave` reuses the pending transition promise ([#36395](https://github.com/nuxt/nuxt/pull/36395)), and `baseURL` and middleware flags are respected in apps without `pages/` ([#36034](https://github.com/nuxt/nuxt/pull/36034)).
  314. - `stripNeverHydratedData` no longer mutates the options object ([#36035](https://github.com/nuxt/nuxt/pull/36035)), the dev error module is stubbed out of production builds ([55e61d75d](https://github.com/nuxt/nuxt/commit/55e61d75d)), and preloading a component that is not global now warns ([47de80ece](https://github.com/nuxt/nuxt/commit/47de80ece)).
  315. ### ✅ Upgrading
  316. Our recommendation for upgrading is to run:
  317. ```sh
  318. npx nuxt upgrade --dedupe
  319. ```
  320. This will refresh your lockfile and pull in all the latest dependencies that Nuxt relies on, including Nuxt CLI v4.
  321. > [!NOTE]
  322. > This release requires Node.js `^22.22.3 || ^24.15.0 || >=26.0.0`.
  323. If you have server code you'd like to make portable, read [Moving to `nuxt/server`](https://nuxt.com/docs/getting-started/upgrade#moving-to-nuxtserver) in the upgrade guide.
  324. ## 👉 Changelog
  325. [compare changes](https://github.com/nuxt/nuxt/compare/v3.21.11...v4.6.0)
  326. ### 🚀 Enhancements
  327. - **kit:** add `resolveServerVariant` + `addServerImports` variant support (#36445)
  328. - **nuxt:** add addon support to `createUseFetch` and `createUseAsyncData` (#35797)
  329. - **vite-server:** back `serverFetch` and route rules in `nuxt/server` ([`2386a5b6a`](https://github.com/nuxt/nuxt/commit/2386a5b6a))
  330. - **nuxt,nitro,schema:** add `useServerHooks` to `nuxt/server` ([`e003cd46d`](https://github.com/nuxt/nuxt/commit/e003cd46d))
  331. - **nuxt,nitro:** add `serverFetch` to `nuxt/server` ([`d14e82bc2`](https://github.com/nuxt/nuxt/commit/d14e82bc2))
  332. - **nuxt,nitro:** add forwarded url, cookie and route rule helpers to `nuxt/server` ([`92c15e581`](https://github.com/nuxt/nuxt/commit/92c15e581))
  333. - **nuxt,vite:** add `hook`, `bundler` and `middleware` tracing channels (#36423)
  334. - **nuxt:** serve unmatched public asset paths on client-side navigation (#36169)
  335. - **nuxt,schema:** add top-level `prerender` alias for `nitro.prerender` (#32356)
  336. - **nuxt,vite-server:** render the error page in the renderer itself (#36399)
  337. - **nuxt:** unified client prefetch scheduler (#36391)
  338. - **nuxt:** add `useAppConfig` to `nuxt/server` ([`083b44ee4`](https://github.com/nuxt/nuxt/commit/083b44ee4))
  339. - **nuxt:** add `handleCors` to `nuxt/server` ([`f2c93dbfc`](https://github.com/nuxt/nuxt/commit/f2c93dbfc))
  340. - **nuxt:** add `readValidatedBody` and `getValidatedQuery` to `nuxt/server` ([`c8343d7a4`](https://github.com/nuxt/nuxt/commit/c8343d7a4))
  341. - **nuxt:** add `getRouterParam(s)` and `getRequestIP` to `nuxt/server` ([`158901fde`](https://github.com/nuxt/nuxt/commit/158901fde))
  342. - **nuxt,nitro,vite,vite-server:** scope dev error reports for remote peers (#36389)
  343. - **nitro,vite:** map dev ssr stacktraces and render errors with `my-bad` (#36258)
  344. - **ui-templates:** use neutral palette and lighter error type (#36255)
  345. - **ui-templates:** particle mountain loading screen (#36178)
  346. - **nuxt:** add session utils to `nuxt/server` (#36358)
  347. - **nuxt,schema:** add nuxt `appSecret` (#35874)
  348. - **nuxt:** add server + client cookie jars to avoid unnecessary reads (#36114)
  349. - **kit,nitro,schema:** register server handlers and plugins per server API (#36317)
  350. - **nuxt,nitro,vite-server:** compile nuxt core route rules (#36307)
  351. - **vite-server:** support `nuxt generate` prerendering (#36288)
  352. - **kit,schema,vite-server:** render in a target's own env (+ add e2e tests) (#36279)
  353. - **nuxt,schema:** give `nuxt/server` handlers a portable event ([`5bf478b8c`](https://github.com/nuxt/nuxt/commit/5bf478b8c))
  354. - **nuxt,kit,schema,nitro,vite-server:** add `nuxt/server` (#36275)
  355. - **kit:** add a server tsconfig and versioned nitro route config types (#36265)
  356. - **nuxt:** add `ShallowRef` type to vue preset (#36266)
  357. - **nuxt:** type `$fetch` and `useFetch` from generated server routes (#36238)
  358. - **kit,nuxt,vite,vite-server:** add experimental pure vite server (#36218)
  359. - **kit,schema:** add `module:before`/`module:done` hooks (#36173)
  360. - **kit:** add `useTerminal` for host-aware prompts and tasks (#36162)
  361. - **nuxt:** add experimental early404 for unmatched page routes (#36117)
  362. - **nuxt:** add experimental early return after `navigateTo` (#36115)
  363. - **kit:** nitro version utils + version-tagged server utils (#36127)
  364. - **nuxt:** support vue vapor (#35759)
  365. - **nitro:** allow prerendering error page (#35193)
  366. - **nuxt:** use @nuxt/cli v4 prerelease (#35981)
  367. - **nitro,nuxt:** improvements when rendering with `noScripts` (#35803)
  368. - **kit,nitro,nuxt,rspack,vite,webpack:** use package manager in hints (#35871)
  369. - **nuxt:** make file names clickable 🖱️ (#35898)
  370. - **nitro:** warn in dev when noScripts routes rely on client JS (#35780)
  371. - **nitro,nuxt,schema:** let templates declare dependencies (#35875)
  372. - **nuxt:** prefetch server page islands via `<NuxtLink>` (#35808)
  373. - **kit:** expose resolved config snapshot and diff helper (#35853)
  374. - **nitro:** warn in dev when payload exceeds 100 kB (#35777)
  375. - **nuxt,nitro:** auto-import types from `app/types` and `server/types` directories (#35783)
  376. - **nuxt:** type `preloadComponents` and `NuxtIsland` name (#35775)
  377. - **schema:** enable `typedPages` with `compatibilityVersion: 5` (#35789)
  378. - **nuxt:** add `serialize` option to keep async data out of payload (#35779)
  379. - **ui-templates:** add back button on 404 page (#35688)
  380. - **kit:** easier way to define global `tsConfig` options (#35697)
  381. - **nuxt:** log template write paths when debugging (#35686)
  382. - **nuxt:** export `$Fetch` type (#35625)
  383. - **nuxt:** add IDE hover docs for built-in components (#35701)
  384. - **nuxt:** support grouping folders in component directories (#35699)
  385. - **schema:** add augmentable `NuxtPageMeta` interface for `NuxtPage.meta` (#34816)
  386. - **nuxt:** warn when public files override application routes (#35674)
  387. - **nuxt:** support dynamic `expires` in `useCookie` (#35628)
  388. - **schema:** case-sensitive routing by default in v5 (#35650)
  389. ### 🔥 Performance
  390. - **kit:** use `package-manager-detector` to install packages (#36434)
  391. - **vite:** stop serial-build warmup on first navigation ([`04f319837`](https://github.com/nuxt/nuxt/commit/04f319837))
  392. - **vite:** evaluate ssr entry before the first dev render ([`2da76d248`](https://github.com/nuxt/nuxt/commit/2da76d248))
  393. - **vite-server:** index public files only once (#36373)
  394. - **nuxt:** drop `unctx` from client environment (+ `defu` in single-object config) (#36371)
  395. - **nitro:** use `flru` for prerender cache (#36340)
  396. - **nitro,nuxt:** use lazy impound tracing for builds (#36172)
  397. - **vite:** warm the server module graph before the client (#36154)
  398. - **nuxt,vite:** migrate `isVue` calls into plugin filters (#36116)
  399. - **kit:** remove `confbox` and `pkg-types` from dependencies (#36083)
  400. - **nuxt:** filter virtual module load hooks by id (#36077)
  401. - **kit:** drop `ufo` dependency (#36073)
  402. - **kit:** use `microdiff` and `node:crypto` (#36071)
  403. - **nuxt:** render internal `<NuxtLink>` anchors directly on server (#36015)
  404. - **nuxt,kit:** avoid loading `jiti` unless it is needed (#35943)
  405. - **nuxt:** tree-shake `ssr: false` pages from server bundle (#35836)
  406. - **nuxt:** extract serializable `definePageMeta` keys at build time (#35919)
  407. - **vite:** crawl client module graph when warming dev server (#35870)
  408. ### 🩹 Fixes
  409. - **nuxt:** resolve anchor hrefs through the router (#36459)
  410. - **nuxt:** leave a newer async data entry alone when an old one is taken off (#36436)
  411. - **nuxt:** await async layouts before navigation (#36454)
  412. - **nuxt,vite:** show compile error overlay on client-only pages (#36444)
  413. - **schema,vite-server:** accept `null` from prerender ignore functions ([`6c36b5e39`](https://github.com/nuxt/nuxt/commit/6c36b5e39))
  414. - **nuxt:** keep `CookieOptions` compatible with cookie serialize options ([`62ebbd909`](https://github.com/nuxt/nuxt/commit/62ebbd909))
  415. - **kit:** point `NUXT_B1022` at resolving templates before bundling ([`3f269cb66`](https://github.com/nuxt/nuxt/commit/3f269cb66))
  416. - **kit:** only write missing types when building into a relocated build dir ([`dfbab4f7c`](https://github.com/nuxt/nuxt/commit/dfbab4f7c))
  417. - **kit,nuxt:** preserve types when building into a relocated build dir (#36418)
  418. - **nuxt,nitro:** render html page errors + json server route errors (#36455)
  419. - **nuxt,vite-server:** keep cookies + respond to json clients on errors (#36451)
  420. - **vite,nitro:** rewrap console if build throws ([`aec739e93`](https://github.com/nuxt/nuxt/commit/aec739e93))
  421. - **kit,nuxt:** provide `nuxt/internal/dev-error` as a server runtime module ([`a17d9dbc6`](https://github.com/nuxt/nuxt/commit/a17d9dbc6))
  422. - **nuxt:** allow `@nuxt/cli` runtime imports in server runtime ([`e2eb0b5e3`](https://github.com/nuxt/nuxt/commit/e2eb0b5e3))
  423. - **nuxt:** type nitro type path helper with `NitroConfig` ([`507002bb0`](https://github.com/nuxt/nuxt/commit/507002bb0))
  424. - **nuxt:** refresh component imports after rename (#36165)
  425. - **nuxt:** skip browser notices without error in dev overlay (#36415)
  426. - **kit:** widen peer dependency ranges to supported versions (#36417)
  427. - **schema:** deprecate `nitro.*` options duplicated at the top level (#36416)
  428. - **vite:** pre-bundle deps of layers installed in `node_modules` (#36208)
  429. - **nuxt:** respect base URL and clear middleware flags without `pages/` (#36034)\ (#36034)
  430. - **nuxt,nitro:** stub dev error module in production builds ([`55e61d75d`](https://github.com/nuxt/nuxt/commit/55e61d75d))
  431. - **nitro:** do not warn for public asset dirs generated in the build dir ([`61fdd921a`](https://github.com/nuxt/nuxt/commit/61fdd921a))
  432. - **nuxt:** resolve `@nuxt/*` type paths from nuxt's own resolution ([`3796a4105`](https://github.com/nuxt/nuxt/commit/3796a4105))
  433. - **nuxt:** warn when preloading a component that is not global ([`47de80ece`](https://github.com/nuxt/nuxt/commit/47de80ece))
  434. - **nitro:** resolve nitro dependency types from the copies nitro uses ([`70bf7caf7`](https://github.com/nuxt/nuxt/commit/70bf7caf7))
  435. - **nuxt:** avoid mutating options when stripping never-hydrated data (#36035)
  436. - **kit:** do not warn when updateRuntimeConfig runs before nitro exists (#36403)
  437. - **kit:** resolve symlinked layer directories to their real path (#36402)
  438. - **nuxt:** reuse pending transition promise in layout `onBeforeLeave` (#36395)
  439. - **vite:** keep named compile report over nameless hmr payload ([`98bc0a675`](https://github.com/nuxt/nuxt/commit/98bc0a675))
  440. - **nuxt:** reject sealed values not issued by nuxt sessions (#36413)
  441. - **nitro,vite:** sort prerendered routes in app manifest ([`d54d0c7db`](https://github.com/nuxt/nuxt/commit/d54d0c7db))
  442. - **nuxt:** parse payload url as origin-relative path (#36409)
  443. - **nitro:** explain when an h3 event reaches a nuxt/server helper ([`a973b058b`](https://github.com/nuxt/nuxt/commit/a973b058b))
  444. - **nuxt:** invalidate auto-import consumers on the hmr-less ssr dev server ([`1718612ad`](https://github.com/nuxt/nuxt/commit/1718612ad))
  445. - **nitro:** give the portable event's response headers the full `Headers` interface ([`9c3525f6a`](https://github.com/nuxt/nuxt/commit/9c3525f6a))
  446. - **nuxt:** accept `Endpoint`-shaped `ServerRoutes` augmentations in the `InternalApi` engine ([`9d4d1edaf`](https://github.com/nuxt/nuxt/commit/9d4d1edaf))
  447. - **nitro:** keep dev error channel out of production builds (#36407)
  448. - **nuxt:** share client app context across module instances ([`984832f0a`](https://github.com/nuxt/nuxt/commit/984832f0a))
  449. - **nitro:** resolve path placeholders in nitro preview command ([`71a61556d`](https://github.com/nuxt/nuxt/commit/71a61556d))
  450. - **nitro:** extend nitropack runtime app config with nuxt fields ([`b0e1abf52`](https://github.com/nuxt/nuxt/commit/b0e1abf52))
  451. - **nitro:** detect an http error by brand in the dev error handler ([`134256aa4`](https://github.com/nuxt/nuxt/commit/134256aa4))
  452. - **nuxt:** explain nitro 2 env parsing when a derived secret is unusable ([`262d62e2c`](https://github.com/nuxt/nuxt/commit/262d62e2c))
  453. - **nuxt:** prepend the vite unctx transform so it reaches page-meta macro modules ([`3a43e1d74`](https://github.com/nuxt/nuxt/commit/3a43e1d74))
  454. - **nitro:** renumber duplicate NUXT_E8009 diagnostic code ([`70eabb790`](https://github.com/nuxt/nuxt/commit/70eabb790))
  455. - **vite:** await `ssrFixStacktrace` (#36372)
  456. - **vite:** keep deduped packages out of importer-based external resolution (#36363)
  457. - **nuxt,vite:** attach resources to pages served without scripts (#36359)
  458. - **vite:** share a style chunk-name counter across component extractions (#36361)
  459. - **nuxt:** keep non-script resource hints on `noScripts` routes (#36356)
  460. - **nuxt:** strip hydrated `nuxt-client` markup from cached island html (#36298)
  461. - **nuxt:** widen `nuxt/server` helper event types (#36335)
  462. - **nuxt:** keep a configured appSecret and warn when it is used ([`31b47404d`](https://github.com/nuxt/nuxt/commit/31b47404d))
  463. - **nuxt:** keep session managers in step after `clearSession` ([`4ae850572`](https://github.com/nuxt/nuxt/commit/4ae850572))
  464. - **nuxt:** use a throttle approach for hint prefetching (#36324)
  465. - **kit:** normalise method case when checking for duplicates ([`d7a41e6dc`](https://github.com/nuxt/nuxt/commit/d7a41e6dc))
  466. - **kit:** respect method when checking for existing handlers (#36329)
  467. - **kit:** register the base path of a wildcard route on nitro v2 (#36325)
  468. - **nitro:** render streaming shell head after first render pass (#36120)
  469. - **vite:** skip client manifest finalisation for aborted builds (#36270)
  470. - **nitro:** apply server replacements to prerenderer (#36311)
  471. - **kit,nuxt,schema:** let a server build declare the module backing `fetch` ([`f61a5149b`](https://github.com/nuxt/nuxt/commit/f61a5149b))
  472. - **kit,nitro:** follow host nitro major in server build runtime fallback ([`4418fdb2d`](https://github.com/nuxt/nuxt/commit/4418fdb2d))
  473. - **nuxt:** apply nitro type paths in `prepare:types` in dev (#36244)
  474. - **nuxt:** forward request headers with `useRequestFetch` (#36180)
  475. - **nitro:** serve repeated reads of a `nuxt/server` request body ([`639960e90`](https://github.com/nuxt/nuxt/commit/639960e90))
  476. - **nitro:** write registered server plugins into the nitro config ([`e47c43d33`](https://github.com/nuxt/nuxt/commit/e47c43d33))
  477. - **nuxt:** resolve awaited lazy async data immediately (#36301)
  478. - **nuxt:** resolve `useAsyncData` type for generic type params (#36316)
  479. - **nitro:** drain oversized island body before rejecting it (#36320)
  480. - **kit,nuxt:** fail the build when a template never finishes compiling (#36322)
  481. - **nitro:** buffer the body read through a `nuxt/server` event ([`0fca34007`](https://github.com/nuxt/nuxt/commit/0fca34007))
  482. - **nitro:** scan a layer's server utils before the project's ([`0d23fa357`](https://github.com/nuxt/nuxt/commit/0d23fa357))
  483. - **nitro:** pass glob patterns to devStorage fs watch ignore (#36306)
  484. - **nuxt:** keep view transition state for interrupting navigations (#36314)
  485. - **nuxt:** handle rejected `ready` promise of skipped view transition (#35537)
  486. - **nitro:** serve the internal error route only to an error render ([`259058cf4`](https://github.com/nuxt/nuxt/commit/259058cf4))
  487. - **nitro:** guard internal error render on request context ([`d8c729435`](https://github.com/nuxt/nuxt/commit/d8c729435))
  488. - **vite:** resolve bare ssr externals from their importer (#36309)
  489. - **nitro,vite-server:** render `error.vue` 404 when accessing `/__nuxt_error` (#36305)
  490. - **nuxt:** skip scanning page meta if the scanner cannot parse (#36297)
  491. - **nitro:** prerender `/index.html` for client-only apps with islands (#36299)
  492. - **nuxt:** keep page transition mounted for nested route with no children (#36304)
  493. - **nuxt:** respect image prefetching as preload to respect Accept hea… (#36261)
  494. - **nuxt:** listen to `link:prefetch` hook before onNuxtReady (#36271)
  495. - **vite:** let the app build serve a server build that is not its own pass ([`dc160687a`](https://github.com/nuxt/nuxt/commit/dc160687a))
  496. - **vite:** let a server build that is not its own pass reach the app entry ([`bf7a83e31`](https://github.com/nuxt/nuxt/commit/bf7a83e31))
  497. - **nitro:** load `nitropack` in any program that augments it ([`5a8519004`](https://github.com/nuxt/nuxt/commit/5a8519004))
  498. - **kit,nitro,schema:** derive the fallback server runtime from the host nitro major ([`85f372478`](https://github.com/nuxt/nuxt/commit/85f372478))
  499. - **nitro:** do not pass unhandled error data to error page ([`38a40cfc0`](https://github.com/nuxt/nuxt/commit/38a40cfc0))
  500. - **kit:** declare `@nuxt/schema` as an optional peer dependency (#36246)
  501. - **kit,nuxt,schema,vite-server:** let vite plugins own the deploy target (#36233)
  502. - **nuxt:** avoid app config declaration conflicts (#36053)
  503. - **nuxt:** rescan changed auto-import sources before their consumers (#33671)
  504. - **rspack,webpack:** do not serve server bundle from dev server ([`7e07e3050`](https://github.com/nuxt/nuxt/commit/7e07e3050))
  505. - **vite:** extract css of island descendants when inlining is off (#36260)
  506. - **kit:** explicitly include `.vue` and other extensions tsconfigs (#36253)
  507. - **nuxt:** resolve layout hydration guard when unmounted early (#36252)
  508. - **nuxt:** bound island v-for on nuxt-client elements without selectiveClient ([`0b7a3c61a`](https://github.com/nuxt/nuxt/commit/0b7a3c61a))
  509. - **nuxt:** only rewrite island uid marker in attribute position ([`40ea3de58`](https://github.com/nuxt/nuxt/commit/40ea3de58))
  510. - **nuxt:** serialize numeric v-for island slot scopes 1-based (#36230)
  511. - **nuxt:** support `definePageMeta` at the top level of `setup()` (#36245)
  512. - **nuxt:** make `target` optional if calling `navigateTo` w/ open (#36196)
  513. - **vite:** exclude stable entry chunk from preload dependencies (#36198)
  514. - **nuxt:** apply `baseURL` when calling `navigateTo` with `open` (#36197)
  515. - **nuxt:** expose shallow async data ref (#36075)
  516. - **nuxt:** ignore grouping folders when collapsing repeated name segments (#36195)
  517. - **nuxt:** register namespace binding alongside default import (#36194)
  518. - **nuxt:** keep extracted `__proto__` page meta keys as own properties (#36193)
  519. - **nuxt:** disable early 404 for page paths that cannot be decoded (#36191)
  520. - **nitro:** resolve aliases and rootDir-relative asset dirs (#36209)
  521. - **nuxt:** key dynamic meta by file path + nuxt instance (#36188)
  522. - **schema:** keep `nuxt/schema` augmentation bridge out of bundled types (#36186)
  523. - **kit:** forward `configFile` and `rcFile` to config loader (#36185)
  524. - **nuxt:** validate component export name before code generation (#36181)
  525. - **nuxt:** allow modules to set `experimental.asyncContext` (#36175)
  526. - **schema:** type `import.meta.env` as `ImportMetaEnv` ([`fd17d697e`](https://github.com/nuxt/nuxt/commit/fd17d697e))
  527. - **kit,nitro,schema:** ensure tsconfigs exist before build (#34646)
  528. - **schema,nuxt:** accept partial app config input + stop merging functions (#36158)
  529. - **ui-templates:** mark the loading page's poll as a document request ([`8d6240a99`](https://github.com/nuxt/nuxt/commit/8d6240a99))
  530. - **ui-templates:** back off the loading page's poll (#36147)
  531. - **vite:** rewrite every public asset `url()` in CSS (#36143)
  532. - **vite:** apply `baseURL` to public assets in inlined styles (#36137)
  533. - **nuxt:** resolve layout name override in layout `isCurrent` check (#36132)
  534. - **nuxt:** bridge `AppConfigInput` augmentations into `nuxt/schema` (#36128)
  535. - **nuxt:** don't resolve awaited `useAsyncData` with unfetched data on hydration (#36124)
  536. - **nuxt:** preserve percent-encoding in server `navigateTo` redirects (#36112)
  537. - **nuxt:** preserve regexp and function values when cloning import presets ([`c099af61e`](https://github.com/nuxt/nuxt/commit/c099af61e))
  538. - **nitro:** match exact nonce attribute for streaming CSP nonce ([`22682d782`](https://github.com/nuxt/nuxt/commit/22682d782))
  539. - **nuxt:** pass absolute paths to build cache ignore check ([`625d9f50a`](https://github.com/nuxt/nuxt/commit/625d9f50a))
  540. - **nitro:** preserve overlapping dynamic payload rules (#34717)
  541. - **kit:** retry CJS-global and alias load failures through jiti (#36082)
  542. - **rspack,webpack:** respect inlineStyles predicate for global css ([`d1d245bee`](https://github.com/nuxt/nuxt/commit/d1d245bee))
  543. - **rspack,webpack:** do not search filesystem for postcss config ([`1ff282846`](https://github.com/nuxt/nuxt/commit/1ff282846))
  544. - **rspack,webpack:** keep url() wrapper when rewriting inlined styles ([`09fd9a117`](https://github.com/nuxt/nuxt/commit/09fd9a117))
  545. - **nuxt:** hide internal dynamic page meta key behind a symbol (#36081)
  546. - **nuxt:** keep page bundle restrictions out of the pages array (#36080)
  547. - **nuxt:** avoid duplicate island asset requests (#36048)
  548. - **kit:** reorder diagnostics by code ([`540c9e772`](https://github.com/nuxt/nuxt/commit/540c9e772))
  549. - **kit:** retry nested load failures through jiti (#36072)
  550. - **nuxt:** keep `<NuxtTime>` locale prop reactive after hydration (#35923)
  551. - **nuxt:** validate `scopeId` prop passed to `<NuxtIsland>` (#36064)
  552. - **vite,nitro:** keep css links for unrendered components (#36060)
  553. - **nuxt:** apply scoped styles to server component slots (#36047)
  554. - **kit,nitro:** ignore baseUrl with compatibilityVersion 5 (#36040)
  555. - **nitro:** in dev, only add css for islands actually rendered (#36057)
  556. - **vite:** drop duplicate CSS links for fully inlined shared chunks (#36056)
  557. - **nuxt:** match vue-router path encoding in `navigateTo` (#36055)
  558. - **nuxt:** avoid blank lazy hydration remounts (#36051)
  559. - **nuxt:** don't defer hydration route for trailing-slash-only diffs (#36050)
  560. - **kit:** add vite plugins at top level instead of wrapping them (#36037)
  561. - **nuxt:** keep ref-initialised `useState` connected to payload state (#36038)
  562. - **nuxt:** only compute `distURL` in development (#36032)
  563. - **nuxt:** export `useLayout`, `useLoadingIndicator` and `useRequestHeader` (#36033)
  564. - **vite:** recover throttled watcher changes in dev servers ([`3d1087088`](https://github.com/nuxt/nuxt/commit/3d1087088))
  565. - **nuxt:** only map test components for webpack and rspack ([`63f8ce22e`](https://github.com/nuxt/nuxt/commit/63f8ce22e))
  566. - **nuxt,nitro:** unwrap route rule matches when resolving rules ([`67e1b8d94`](https://github.com/nuxt/nuxt/commit/67e1b8d94))
  567. - **nuxt:** stub client-only components + map test components in server build (#36019)
  568. - **nuxt:** do not write readonly cookies on client (#36014)
  569. - **nuxt:** skip cookie watcher entirely when readonly (#35997)
  570. - **nitro,nuxt:** hoist route matcher to prevent temporal dead zone (#36012)
  571. - **nuxt:** resolve `ufo` from nuxt dependencies (#36010)
  572. - **nitro:** resolve paths pointing at bare module specifiers (#36011)
  573. - **nuxt:** preserve error causes in development (#35632)
  574. - **nuxt:** improve js type-checking ([`5a003806e`](https://github.com/nuxt/nuxt/commit/5a003806e))
  575. ### 💅 Refactors
  576. - **nuxt,nitro:** drop `toNuxtRequestEvent` from `nuxt/server` ([`cf00e7b9e`](https://github.com/nuxt/nuxt/commit/cf00e7b9e))
  577. - **nuxt,nitro,vite-server:** share error handling between the renderer and server builders (#36398)
  578. - **nuxt:** drop `setResponseHeader(s)` from `nuxt/server` ([`d4b0330f9`](https://github.com/nuxt/nuxt/commit/d4b0330f9))
  579. - **nuxt:** own more of the public api for `nuxt/app` (#36368)
  580. - **vite-server:** return meta-refresh body for `redirect` route rules ([`0f069152c`](https://github.com/nuxt/nuxt/commit/0f069152c))
  581. - **schema,nuxt,nitro:** move server type declarations into schema (#36293)
  582. - **nuxt,nitro:** let a server builder name the event the app sees ([`14c7b50df`](https://github.com/nuxt/nuxt/commit/14c7b50df))
  583. - **nuxt,nitro,schema:** collect prerender hints in nuxt context (#36277)
  584. - **nuxt,kit,nitro,vite,vite-server:** add server runtime record + vite ssr (#36274)
  585. - **nuxt,nitro,nuxt,schema,vite:** extract ssr renderer (#36272)
  586. - **kit,nitro:** pass the asset dir resolution order into NUXT_B7023 ([`0e032202c`](https://github.com/nuxt/nuxt/commit/0e032202c))
  587. - **kit,nuxt,schema,vite:** decouple core from `@nuxt/nitro-server` (#36223)
  588. - **nuxt,schema:** own typed `$fetch` types in nuxt (#36214)
  589. - **nitro,nuxt,schema:** decouple `#app` from h3 types and runtime (#36212)
  590. - **kit,schema,nitro:** resolve nitro types from server builder (#36171)
  591. - **kit,nitro,nuxt,schema:** migrate more build-time warnings -> nostics (#36138)
  592. - **kit:** inline minimal nitro v2/v3 types and drop nitro deps (#36125)
  593. - **kit,schema:** explicitly define kit public api (#36074)
  594. - **nuxt:** iterate over fragment children (#36041)
  595. - **nuxt:** remove reverse trace indexing (#36044)
  596. - **webpack:** replace pify with node promisify (#36042)
  597. - remove `mlly` from dependencies (#35946)
  598. - **kit:** inline c12 and untyped, make jiti/giget optional peers (#35936)
  599. - **vite:** share dependency-install prompt via kit (#34554)
  600. - **nuxt:** remove `config.cjs` file in `require` export (#35805)
  601. - **nuxt:** use native vue pausable watcher for `useCookie` (#36006)
  602. ### 📖 Documentation
  603. - complete `nuxt/server` migration + module guides ([`27a1d9d28`](https://github.com/nuxt/nuxt/commit/27a1d9d28))
  604. - return streams directly (#36449)
  605. - document typing runtime config and events in modules ([`776773f1c`](https://github.com/nuxt/nuxt/commit/776773f1c))
  606. - document declared routes in createUseFetch ([`a624e4e47`](https://github.com/nuxt/nuxt/commit/a624e4e47))
  607. - adjust spacing (#36262)
  608. - add a guide for moving server code to nuxt/server ([`9730d7c0a`](https://github.com/nuxt/nuxt/commit/9730d7c0a))
  609. - document the new `nuxt/server` helpers and what stays on nitro ([`5b51b07d6`](https://github.com/nuxt/nuxt/commit/5b51b07d6))
  610. - document `typesDir` ([`4a0780dfe`](https://github.com/nuxt/nuxt/commit/4a0780dfe))
  611. - list remaining `compatibilityVersion: 5` defaults in the 4.x upgrade guide ([`e9d5767b8`](https://github.com/nuxt/nuxt/commit/e9d5767b8))
  612. - use `@since 4.6.0` for surfaces shipping in 4.x ([`e6fee2f42`](https://github.com/nuxt/nuxt/commit/e6fee2f42))
  613. - link the 5.x upgrade guide by full url ([`fc8387a1a`](https://github.com/nuxt/nuxt/commit/fc8387a1a))
  614. - clarify Nuxt collects prerender hints and route rules ([`e5e472743`](https://github.com/nuxt/nuxt/commit/e5e472743))
  615. - reserve app-prefixed runtime config keys for nuxt ([`5ea634670`](https://github.com/nuxt/nuxt/commit/5ea634670))
  616. - link to the 5.x upgrade guide rather than carrying it ([`c8f2d4b26`](https://github.com/nuxt/nuxt/commit/c8f2d4b26))
  617. - document useRequestEvent return type ([`1212aa788`](https://github.com/nuxt/nuxt/commit/1212aa788))
  618. - document `nuxt/server` and module server compatibility ([`94e2040fa`](https://github.com/nuxt/nuxt/commit/94e2040fa))
  619. - document $Fetch type export ([`e69ab1b89`](https://github.com/nuxt/nuxt/commit/e69ab1b89))
  620. - document island prefetching for server-only pages ([`9c154b6da`](https://github.com/nuxt/nuxt/commit/9c154b6da))
  621. - document kit dependency helpers ([`09c9af7a2`](https://github.com/nuxt/nuxt/commit/09c9af7a2))
  622. - document loadNuxtConfig options and diffNuxtConfig ([`2d32d994a`](https://github.com/nuxt/nuxt/commit/2d32d994a))
  623. - change `<NuxtTime>` prop from 'date' to 'datetime' (#36341)
  624. - strip version prefixes ([`897977f33`](https://github.com/nuxt/nuxt/commit/897977f33))
  625. - explain `ssrStreaming.botRegex` in more detail ([`d810367b9`](https://github.com/nuxt/nuxt/commit/d810367b9))
  626. - update testing guide to test-utils v4.2.0 (#36234)
  627. - move CLI command reference to nuxt/cli (#36145)
  628. - update mcp tools and mention `X-MCP-Tools` header (#36065)
  629. - remove `nitro/h3` import from server types example ([`86c957f79`](https://github.com/nuxt/nuxt/commit/86c957f79))
  630. - document reverse proxy path handling (#36069)
  631. - fix typos and grammar issues (#36061)
  632. - mention Valibot for server-side validation (#36045)
  633. - add `test/` in directory structure (#35991)
  634. ### 📦 Build
  635. - **ui-templates:** don't inline the `modulepreload` polyfill (#36247)
  636. ### 🏡 Chore
  637. - update test `engines.node` ([`20069e45b`](https://github.com/nuxt/nuxt/commit/20069e45b))
  638. - ignore local build output in knip ([`a925055b5`](https://github.com/nuxt/nuxt/commit/a925055b5))
  639. - prepare root types before linting ([`e093be119`](https://github.com/nuxt/nuxt/commit/e093be119))
  640. - **ui-templates:** share generated output paths ([`83ef10ac9`](https://github.com/nuxt/nuxt/commit/83ef10ac9))
  641. - ignore generated output in knip ([`d26c50aad`](https://github.com/nuxt/nuxt/commit/d26c50aad))
  642. - **ui-templates:** preview templates in a grid (#36257)
  643. - update ui templates in precommit hook (#36383)
  644. - force lf line endings for pnpm patch files ([`5380cbe37`](https://github.com/nuxt/nuxt/commit/5380cbe37))
  645. - **kit,nitro,vite,vite-server:** move tests out of `src` ([`337fa63c0`](https://github.com/nuxt/nuxt/commit/337fa63c0))
  646. - allow reviews (#36215)
  647. - update link to vue policy ([`9e3f5f6b6`](https://github.com/nuxt/nuxt/commit/9e3f5f6b6))
  648. - update security policy (#36248)
  649. - bump @flakiness/vitest to 1.9.2 (#36176)
  650. - migrate release pipeline to uppt (#36167)
  651. - send test results to Flakiness.io dashboard (#36159)
  652. - enable `minimumReleaseAgeExcludePrune` & `catalogPrune` (#36140)
  653. - tweak guidance ([`86c3994ec`](https://github.com/nuxt/nuxt/commit/86c3994ec))
  654. - add guidance for agents ([`84b495a64`](https://github.com/nuxt/nuxt/commit/84b495a64))
  655. - exempt first-party packages from pnpm minimumReleaseAge (#36001)
  656. - don't update nitro group until approved explicitly ([`1f0f3030a`](https://github.com/nuxt/nuxt/commit/1f0f3030a))
  657. ### ✅ Tests
  658. - allow main-only nitro diagnostic ([`6c7f9fd47`](https://github.com/nuxt/nuxt/commit/6c7f9fd47))
  659. - allow arbitrary component names in preload type test ([`a8716b9b2`](https://github.com/nuxt/nuxt/commit/a8716b9b2))
  660. - wait for the error page to reload itself after a compile fix ([`5828109bc`](https://github.com/nuxt/nuxt/commit/5828109bc))
  661. - wait for ladder payloads before promoting prefetch work ([`5d9d66216`](https://github.com/nuxt/nuxt/commit/5d9d66216))
  662. - order forwarded hint payloads before asserting recency ([`a24dfe308`](https://github.com/nuxt/nuxt/commit/a24dfe308))
  663. - wait for restored catch-all page before asserting ([`3271893e8`](https://github.com/nuxt/nuxt/commit/3271893e8))
  664. - cover `nuxt/server` sessions end to end ([`ddde51e2e`](https://github.com/nuxt/nuxt/commit/ddde51e2e))
  665. - require every `main` diagnostic code to exist on 4.x ([`c66f1a5e7`](https://github.com/nuxt/nuxt/commit/c66f1a5e7))
  666. - tolerate rewording when comparing diagnostic codes across branches ([`9d862ea97`](https://github.com/nuxt/nuxt/commit/9d862ea97))
  667. - cover foreign `HTTPError` in dev error handler ([`f2ddcb0ba`](https://github.com/nuxt/nuxt/commit/f2ddcb0ba))
  668. - guard diagnostic codes against drift from `4.x` ([`4150664f1`](https://github.com/nuxt/nuxt/commit/4150664f1))
  669. - cover `import.meta.test` guard in dev error handler ([`51e8a676d`](https://github.com/nuxt/nuxt/commit/51e8a676d))
  670. - assert the nitro 2 parsing of the `appSecret` environment override ([`0da748765`](https://github.com/nuxt/nuxt/commit/0da748765))
  671. - fail fast with vite error overlay contents in e2e navigation ([`14ad6961d`](https://github.com/nuxt/nuxt/commit/14ad6961d))
  672. - give builder watcher suite room for cold start ([`43e1e64a3`](https://github.com/nuxt/nuxt/commit/43e1e64a3))
  673. - wait for async state in watcher and middleware abort tests ([`ca21185ee`](https://github.com/nuxt/nuxt/commit/ca21185ee))
  674. - add names for runtime config tests ([`7c68ff3db`](https://github.com/nuxt/nuxt/commit/7c68ff3db))
  675. - add regression test for inline style order (#33041)
  676. - guard the cost of resolving a typed `$fetch` call (#36254)
  677. - isolate dev fixtures by worker (#35937)
  678. - add tests for `head` option of `defineNuxtComponent` (#36251)
  679. - add property tests for pure utilities (#36190)
  680. - drop console logs from retried navigations and report their text ([`39e55ee68`](https://github.com/nuxt/nuxt/commit/39e55ee68))
  681. - nest the island depth-guard body in json structure, not a string ([`9b1bcb522`](https://github.com/nuxt/nuxt/commit/9b1bcb522))
  682. - dispatch rapid suspense navigation clicks in a single task ([`fc2f6b27b`](https://github.com/nuxt/nuxt/commit/fc2f6b27b))
  683. - dedupe test names (#36166)
  684. - assert inlined styles keep `url()` wrappers (#36146)
  685. - don't orphan e2e dev servers on fixture setup timeout (#36126)
  686. - loosen unprotected import assertion for impound ([`107990d39`](https://github.com/nuxt/nuxt/commit/107990d39))
  687. - settle page:loading:end before asserting in router options ([`7d59e9f9a`](https://github.com/nuxt/nuxt/commit/7d59e9f9a))
  688. - assert each diagnostics catalog is sorted by code ([`21725176b`](https://github.com/nuxt/nuxt/commit/21725176b))
  689. - report which diagnostic code and catalogs collide ([`70034f67b`](https://github.com/nuxt/nuxt/commit/70034f67b))
  690. - disable type checking in bundle-size fixes... ([`68490ceb7`](https://github.com/nuxt/nuxt/commit/68490ceb7))
  691. - give each payload variant its own build directory ([`421571000`](https://github.com/nuxt/nuxt/commit/421571000))
  692. - run ui-templates tests serially ([`38faf1901`](https://github.com/nuxt/nuxt/commit/38faf1901))
  693. - avoid island prefetch prefix collision ([`ff9a20788`](https://github.com/nuxt/nuxt/commit/ff9a20788))
  694. ### 🤖 CI
  695. - tag 4.x nightlies with `4x` ([`9e68918cc`](https://github.com/nuxt/nuxt/commit/9e68918cc))
  696. - use uppt for nightly releases ([`20abf8c08`](https://github.com/nuxt/nuxt/commit/20abf8c08))
  697. - upload playwright test results for e2e failures ([`ead96f4a0`](https://github.com/nuxt/nuxt/commit/ead96f4a0))
  698. - disable codspeed until compatible with vitest 5 ([`212287582`](https://github.com/nuxt/nuxt/commit/212287582))
  699. - proceed on nightly publishing when one fails ([`870dfea91`](https://github.com/nuxt/nuxt/commit/870dfea91))
  700. - add new scope ([`6989883fa`](https://github.com/nuxt/nuxt/commit/6989883fa))
  701. - remove bridge webhook flow (#36207)
  702. - bump uppt to v0.6.9 ([`142f427b7`](https://github.com/nuxt/nuxt/commit/142f427b7))
  703. - bump uppt to v0.6.8 ([`a1b06cecb`](https://github.com/nuxt/nuxt/commit/a1b06cecb))
  704. - preview release add pm option (#36141)
  705. - drop removed triage workflows ([`5a3841acc`](https://github.com/nuxt/nuxt/commit/5a3841acc))
  706. - use full versions in action pin comments ([`9fd234a5e`](https://github.com/nuxt/nuxt/commit/9fd234a5e))
  707. - drop build step in ci ([`b4f401bc8`](https://github.com/nuxt/nuxt/commit/b4f401bc8))
  708. - update agentscan (#35536)
  709. - drop 3.x branch from workflow triggers ([`5b41eed20`](https://github.com/nuxt/nuxt/commit/5b41eed20))
  710. ### 🎉 New Contributors
  711. - Mansurkhoja Temirkhojaev (@mansurkhoja)
  712. - saini-25 (@saini-25)
  713. - Nicholas (@Neekoras)
  714. - Marc Gschwend (@mgschwend)
  715. - Hamed (@hamedniroomand)
  716. - Ryan Boog (@hdwebpros)
  717. - Paulina Sędłak-Jakubowska (@iniluap)
  718. - Khaled Waleed (@61021)
  719. - Andrey Lushnikov (@aslushnikov)
  720. - btea (@btea)
  721. - syvixor (@syvixor)
  722. - Fabian Hiller (@fabian-hiller)
  723. - Balázs Németh (@zsilbi)
  724. - Vincent de Vreede (@Vincentdevreede)
  725. ### ❤️ Contributors
  726. - Daniel Roe (@danielroe)
  727. - Mansurkhoja Temirkhojaev (@mansurkhoja)
  728. - Alex Liu (@Mini-ghost)
  729. - Andrei Elkin (@AndreyYolkin)
  730. - Issayah (@VividLemon)
  731. - Matej Černý (@cernymatej)
  732. - Ori (@oritwoen)
  733. - saini-25 (@saini-25)
  734. - abeer0 (@iiio2)
  735. - Nicholas (@Neekoras)
  736. - Daniel West (@silverbackdan)
  737. - Marc Gschwend (@mgschwend)
  738. - Hugo (@HugoRCD)
  739. - Max (@onmax)
  740. - Sébastien Chopin (@atinux)
  741. - Hamed (@hamedniroomand)
  742. - Ryan Boog (@hdwebpros)
  743. - Paulina Sędłak-Jakubowska (@iniluap)
  744. - Aubakirov Asker (@Askerka00)
  745. - Florian Heuberger (@Flo0806)
  746. - Yoshihiro Yamaguchi (@yamachi4416)
  747. - Khaled Waleed (@61021)
  748. - Damian Głowala (@DamianGlowala)
  749. - Andrey Lushnikov (@aslushnikov)
  750. - btea (@btea)
  751. - Benjamin Canac (@benjamincanac)
  752. - Estéban (@Barbapapazes)
  753. - Matteo Gabriele (@MatteoGabriele)
  754. - syvixor (@syvixor)
  755. - Fabian Hiller (@fabian-hiller)
  756. - Balázs Németh (@zsilbi)
  757. - Austin Serb (@Austin1serb)
  758. - Norbiros (@Norbiros)
  759. - Vincent de Vreede (@Vincentdevreede)
  760. - Robin (@OrbisK)
  761. - Mirko Jantschke (@MirkoJa)
  762. - Chairul Akmal (@chairulakmal)
  763. - Alexander Lichter (@TheAlexLichter)
  764. - Bochkarev Ivan (@Ibochkarev)
  765. - Maher (@abaza738)
  766. - Darlan José Batista do Prado (@DarlanPrado)
  767. - Mateleo (@Mateleo)

vedi su githubdetected 2026-10-06 via npm