releases.shpreview
Nuxt/Nuxt

Nuxt

Mon
Wed
Fri
JunJulAugSepOctNovDecJanFebMarAprMayJun
Less
More
Releases9Avg3/moVersionsv3.21.3 to v4.4.7

4.4.8 is a hotfix release to address an issue running the dev server on MacOS.

👉 Changelog

compare changes

🩹 Fixes
  • vite: Shorter socket name for macOs with tmp fallback (#35265)
  • kit: Respect type option in findPath (#35272)
  • deps: Update nuxt/scripts presets (905621594)
  • nuxt: Revert unhead dependency back to v2 (e6d578fea)
📖 Documentation
  • Fix many typos (#35266)
  • Explain static fallback pages (#35277)
  • Change null to undefined in data-fetching docs to match actual types (#35301)
  • Fix broken internal links, useAsyncData watch type, and NuxtError type (#35303)
❤️ Contributors

3.21.8 is a hotfix release to address an issue running the dev server on MacOS.

👉 Changelog

compare changes

🩹 Fixes
  • vite: Shorter socket name for macOs with tmp fallback (#35265)
  • kit: Respect type option in findPath (#35272)
  • deps: Update nuxt/scripts presets (ff6b060dd)
📖 Documentation
  • Change null to undefined in data-fetching docs to match actual types (#35301)
❤️ Contributors

4.4.7 is the a security hotfix release.

👉 make sure to check https://github.com/nuxt/nuxt/security/advisories to view open advisories resolved by this release.

👉 Changelog

compare changes

🩹 Fixes
  • nitro: Assign noSSR before deciding payload extraction (#35108)
  • vite: Avoid filtering out dirs with shared prefix from allowDirs (#35112)
  • nuxt: Use resolve from pathe for buildCache path boundary check (#35111)
  • nuxt: Prevent sibling-directory traversal in test component wrapper (#35110)
  • nitro: Pass event data to isValid in dev clipboard-copy listener (#35109)
  • nuxt: Validate protocols in reloadNuxtApp path before reload (#35115)
  • vite: Prefix public asset virtuals with null byte (9e303b438)
  • nuxt: Re-run getCachedData after initial fetch (#35122)
  • nuxt: Propagate useFetch/useAsyncData factory types (#35133)
  • vite: Close vite dev server on nuxt close (a10a68abc)
  • kit,nuxt: Handle cancelling prompts to install packages (e84813229)
  • kit: Avoid excluding node-context files in legacy tsconfig (#35152)
  • nuxt: Handle missing payload in chunkError listener (#35155)
  • nuxt: Await in-lifght template generation when closing nuxt (#35181)
  • nuxt: Clarify page and layout usage warnings (#35184)
  • webpack: Surface compilation errors when stats.toString is empty (073b07851)
  • nuxt: Reject prototype-chain keys in the island registry (#35205)
  • nuxt: Apply isScriptProtocol guard to navigateTo open option (#35206)
  • nuxt: Prevent server-only page island from recursing via <NuxtPage> (#35198)
  • rspack,webpack: Require loopback host when missing same-origin signals (#35200)
  • nitro: Gate chrome devtools workspace endpoint to local requests (#35201)
  • nuxt: Escape props in <NuxtClientFallback> ssr output (#35199)
  • kit: Improve TS extension stripping/substitutions (#35233)
  • nuxt: Preserve .d.mts/.d.cts in resolveTypePaths (#35235)
  • nuxt: Escape <NoScript> slot content (4b054e9d9)
  • nuxt: Match route rules case-insensitively to mirror vue-router (07e39cd6f)
  • nuxt: Reject script-capable protocols in <NuxtLink> href (0103ce06f)
  • nuxt: Block path-normalization open redirect in navigateTo (2cce6fb02)
  • nuxt: Reject cross-origin paths in reloadNuxtApp (e447a793c)
  • vite: Bind vite-node IPC to a permissioned filesystem socket (1f9f4767a)
💅 Refactors
  • kit,nuxt,vite: Use es2023 array methods (#34980)
  • nuxt: Replace runInNewContext with AST walker (d72a89ef4)
📖 Documentation
  • Document vite client and server options (#35090)
  • Add dedicated module dependencies page (#35171)
  • Add nodeTsConfig and sharedTsConfig options (#35231)
  • Edit for clarity and grammar (#35214)
🏡 Chore
✅ Tests
  • Update test for js payload rendering (bdcb81536)
  • Cover add regression test for hmr in sibling local layers (#35125)
  • Improve reliability of hmr test (1d709b3cc)
🤖 CI
  • Always run all tests for 4.x/3.x (0dc4665cf)
  • Migrate from tibdex (ded29dc0f)
  • Add zizmor github actions check (#35089)
  • Update to agentscan v1.8.0 (#35120)
  • Automatically close PRs from automated accounts (#35161)
  • Disable provenance-change enforcement in dependency-review (a2cf43e68)
❤️ Contributors

3.21.7 is the a security hotfix release.

👉 make sure to check https://github.com/nuxt/nuxt/security/advisories to view open advisories resolved by this release.

👉 Changelog

compare changes

🩹 Fixes
  • nitro: Assign noSSR before deciding payload extraction (#35108)
  • vite: Avoid filtering out dirs with shared prefix from allowDirs (#35112)
  • nuxt: Use resolve from pathe for buildCache path boundary check (#35111)
  • nuxt: Prevent sibling-directory traversal in test component wrapper (#35110)
  • nitro: Pass event data to isValid in dev clipboard-copy listener (#35109)
  • nuxt: Validate protocols in reloadNuxtApp path before reload (#35115)
  • vite: Resolve vite clientServer with ssr: false (#34959)
  • vite: Prefix public asset virtuals with null byte (38d330179)
  • nuxt: Handle missing payload in chunkError listener (#35155)
  • vite: Close vite dev server on nuxt close (d007d7060)
  • kit,nuxt: Handle cancelling prompts to install packages (59821a5ca)
  • nuxt: Await in-lifght template generation when closing nuxt (#35181)
  • webpack: Surface compilation errors when stats.toString is empty (71dccff2b)
  • kit: Improve TS extension stripping/substitutions (#35233)
  • nuxt: Preserve .d.mts/.d.cts in resolveTypePaths (#35235)
  • nuxt: Reject prototype-chain keys in the island registry (#35205)
  • nitro: Gate chrome devtools workspace endpoint to local requests (#35201)
  • nuxt: Escape props in <NuxtClientFallback> ssr output (#35199)
  • nuxt: Apply isScriptProtocol guard to navigateTo open option (#35206)
  • rspack,webpack: Require loopback host when missing same-origin signals (#35200)
  • nuxt: Absolutely resolve defu in app config template (40bedf0db)
  • nuxt: Match route rules case-insensitively to mirror vue-router (3f3e3fa7b)
  • nuxt: Escape <NoScript> slot content (7fea9fd68)
  • nuxt: Block path-normalization open redirect in navigateTo (1f2dd5e78)
  • nuxt: Reject cross-origin paths in reloadNuxtApp (6497d99dd)
  • vite: Bind vite-node IPC to a permissioned filesystem socket (c293bf950)
  • nuxt: Reject script-capable protocols in <NuxtLink> href (53284043d)
  • nuxt: Clarify page and layout usage warnings (#35184)
  • nuxt: Do not absolutely resolve defu (d11d7b1b5)
📖 Documentation
  • Edit for clarity and grammar (#35214)
  • Add dedicated module dependencies page (#35171)
🏡 Chore
  • Use execFileSync for safety in release scripts (9a455a658)
  • Assert there is always a tag (8da21fba8)
  • Fix type in test (bc2837125)
  • Fix lychee dynamic composable exclude (#35119)
  • Add autofix action tag in comment (70eba297f)
  • Update renovate minimum release age (27a6821a1)
✅ Tests
  • Update test for js payload rendering (b51a80840)
  • Improve reliability of hmr test (0078499f0)
🤖 CI
  • Always run all tests for 4.x/3.x (0519c0ade)
  • Update to agentscan v1.8.0 (#35120)
  • Automatically close PRs from automated accounts (#35161)
  • Migrate from tibdex (6277aedcb)
  • Disable provenance-change enforcement in dependency-review (1d4910eed)
  • Add zizmor github actions check (#35089)
❤️ Contributors

4.4.6 is the next patch release.

👉 Changelog

compare changes

🩹 Fixes
  • vite: Use spa entry for vite-node fallback (#35037)
  • vite: Invalidate SSR module cache when modules are invalidated via plugin hooks (a86657a0e)
  • nuxt: Match deduplicated resolveComponent calls in jsx blocks (#35028)
  • nuxt: Prefer our own builder/server deps (#35029)
  • nuxt: Update useFetch key even with watch: false (#35002)
  • nitro: Mark @babel/plugin-syntax-typescript as optional peer dep (#35041)
  • nitro: Add json extension to payload cache items (#35043)
  • nuxt: Handle errors fetching app manifest (#35050)
  • nuxt: Encode html-significant characters in external redirect body (#35052)
  • nuxt: Preserve setPageLayout props on same-path navigation (#35055)
  • vite: Don't strip buildAssetsDir from vite-node SSR ids (#35040)
  • nuxt: Mark useLoadingIndicator properties as readonly (#35062)
  • vite: Strip queries in css inline styles map (#35067)
  • nitro: Validate island request hash matches props (#35077)
  • nitro: Use regexp to strip query (163e18d4b)
  • nitro: Use statusCode for nitro v2 compatibility (952f6841e)
  • nitro-server: Re-export h3 named symbols statically (cd99001c8)
  • nuxt: Render component-less parent routes during client-side nav (#35036)
  • kit: Respect tsConfig.exclude in legacy tsconfig.json (#35079)
  • nuxt: Run middleware for page islands (#35092)
💅 Refactors
  • rspack,webpack: Extract same-origin check for dev middleware (#35051)
📖 Documentation
  • Remove CSB, set node 22 and use steps for clarity (#35066)
🏡 Chore
✅ Tests
🤖 CI
  • Clean up agent-scan workflow (ab8317547)
  • Continue autofix workflow when test:engines fails (3025e561e)
  • Improve workflows (#35088)
❤️ Contributors

3.21.6 is the next patch release.

👉 Changelog

compare changes

🩹 Fixes
  • nuxt: Prefer our own builder/server deps (#35029)
  • nitro: Add json extension to payload cache items (#35043)
  • nuxt: Handle errors fetching app manifest (#35050)
  • nuxt: Preserve setPageLayout props on same-path navigation (#35055)
  • vite: Don't strip buildAssetsDir from vite-node SSR ids (#35040)
  • nuxt: Mark useLoadingIndicator properties as readonly (#35062)
  • vite: Strip queries in css inline styles map (#35067)
  • nuxt: Encode html-significant characters in external redirect body (#35052)
  • nitro: Validate island request hash matches props (#35077)
  • nitro: Use regexp to strip query (042b615e6)
  • nitro: Use statusCode for nitro v2 compatibility (82dcd6a31)
  • nuxt: Render component-less parent routes during client-side nav (#35036)
  • nuxt: Run middleware for page islands (#35092)
💅 Refactors
  • rspack,webpack: Extract same-origin check for dev middleware (#35051)
📖 Documentation
  • Remove CSB, set node 22 and use steps for clarity (#35066)
🏡 Chore
✅ Tests
  • Relax relative time assertion (256513eb0)
  • Move build assets dir fixture out of app/ (6d2ac69ff)
🤖 CI
  • Clean up agent-scan workflow (31590cf07)
  • Continue autofix workflow when test:engines fails (958abb882)
  • Improve workflows (#35088)
❤️ Contributors

4.4.5 is the next patch release.

👉 Changelog

compare changes

🔥 Performance
  • kit: Cache layer roots and short-circuit isIgnored relative (#35015)
🩹 Fixes
  • vite: Resolve vite clientServer with ssr: false (#34959)
  • nitro: Correct payload route rule for / + override ssr: true (#34990)
  • nitro: Break recursive rendering deadlocks during prerender (#34939)
  • vite: Drop redundant css link when entry styles are inlined (#34950)
  • vite: Sort optimizeDeps.include in pre-bundle hint (#34976)
  • nuxt: Only force suspense remount after first resolve (#34949)
  • kit: Read .env before resolving nuxt schema (#34958)
  • nitro: Preserve serverHandlers array after nitro:config (#34985)
  • nuxt: Cast partial nitro handlers when prepending to server arrays (61dcde4db)
  • vite: Only consider CSS inlined when styles are actually emitted (#35006)
  • nuxt: Dedupe getCachedData for concurrent callers sharing a key (#34999)
  • nuxt: Respect factory fetch/baseURL options in server useFetch (#35003)
  • nuxt: Handle string presets in auto-imports (#35013)
  • nuxt: Correct island transform for server pages and 'deep' mode (#35005)
  • vite: Inline css for non-island children of server components (#35001)
  • nuxt: Defer head DOM updates until page transition finishes (#35016)
  • nuxt: Explicitly freeze head during island plugin phase (#35010)
  • vite: Inline css imported from non-vue js modules (#35020)
📖 Documentation
  • Add warning about routing in server components (#34994)
🏡 Chore
✅ Tests
  • Extract server components fixture + add some failing tests (#34995)
  • Isolate buildDir per matrix project for shared fixtures (#35007)
  • Remove tests for 5.x runtimeBaseURL fature (816c25487)
❤️ Contributors

3.21.5 is the next patch release.

👉 Changelog

compare changes

🔥 Performance
  • kit: Cache layer roots and short-circuit isIgnored relative (#35015)
🩹 Fixes
  • nitro: Correct payload route rule for / + override ssr: true (#34990)
  • nitro: Break recursive rendering deadlocks during prerender (#34939)
  • vite: Drop redundant css link when entry styles are inlined (#34950)
  • nuxt: Only force suspense remount after first resolve (#34949)
  • kit: Read .env before resolving nuxt schema (#34958)
  • nitro: Preserve serverHandlers array after nitro:config (#34985)
  • vite: Only consider CSS inlined when styles are actually emitted (#35006)
  • nuxt: Handle string presets in auto-imports (#35013)
  • nuxt: Correct island transform for server pages and 'deep' mode (#35005)
  • vite: Inline css for non-island children of server components (#35001)
  • nuxt: Defer head DOM updates until page transition finishes (#35016)
  • nuxt: Explicitly freeze head during island plugin phase (#35010)
  • vite: Inline css imported from non-vue js modules (#35020)
  • nitro: Remove unused middleware (fe857d36b)
📖 Documentation
  • Add warning about routing in server components (#34994)
🏡 Chore
  • Ignore pnpm cyclic workspace deps warn (#34998)
  • Remove jiti from build steps (#35004)
  • Fix lockfile (48e56a509)
  • nuxt: Cast to nitro event handler type (5b358ca19)
✅ Tests
  • Extract server components fixture + add some failing tests (#34995)
  • Isolate buildDir per matrix project for shared fixtures (#35007)
  • Split env testing into separate file (fd4019cf8)
  • Use 3.x style tsconfig (86625efad)
  • Use more 3.x style tsconfigs (4a9bde3f3)
  • Correct import path (133d5f6d7)
  • Update snapshots (9fc42f788)
❤️ Contributors
v4.4.3

4.4.3 is the next patch release. v4.4.4 was published with no changes due to an issue running the release script for v4.4.3.

👉 Changelog

compare changes

🔥 Performance
  • nitro: Directly import nuxt package version (#34567)
  • vite,webpack: Use vfs for manifest + vite node server (#34666)
  • nuxt: Clean-up build hooks + emit gc'd snapshots (#34587)
  • nuxt: Skip key watcher when useAsyncData key is static (#34620)
  • kit: Parallelise module load + cache jiti instances (#34842)
  • nuxt: Batch-resolve typescript hoist paths with cached base roots (#34862)
🩹 Fixes
  • nuxt: Handle negative zero in getUserTrace slice boundary (#34524)
  • nuxt: Signal error state and clear timers in loading indicator cleanup (#34523)
  • nuxt: Fix broken hook cleanup in route announcer (#34525)
  • nuxt: Filter clearNuxtState key enumeration by useState prefix (#34541)
  • nuxt: Correct useFetch cache options type (#34551)
  • nuxt: Prevent in-flight requests from overwriting cleared async data (#34553)
  • nuxt: Check response status before parsing payload (#34555)
  • nuxt: Handle TS type assertions on member expression callees in keyed functions parser (#34558)
  • nuxt: Use comment as client component placeholder (#33466)
  • nitro: Resolve h3 export path in nitro vfs (#34566)
  • nuxt: Use factory resolved options everywhere in useFetch (#34568)
  • nitro: Use hash-based cache for dev payloads (#34569)
  • nuxt: Await parcel watcher subscription before registering close hook (#34573)
  • nuxt: Self-remove hydration error guards after first navigation (#34572)
  • nuxt: Mark portal properties as configurable (#34574)
  • nuxt: Retry manifest fetch after transient failure (#34570)
  • kit: Add PackagePreset type to addImportsSources (#34582)
  • nuxt: Avoid any return type from callHookWith in vue:setup (#34584)
  • nuxt: Strip DevOnly components with attributes in production builds (#34585)
  • nuxt: Move parcel watcher debug timer outside subscription loop (#34590)
  • nuxt: Preserve falsy prop values in NuxtTime data attribute serialization (#34600)
  • nuxt: Clear cached rejected promise in callOnce (#34614)
  • nuxt: Correct useAsyncData key type (#34599)
  • nitro: Set __buildAssetsURL before server entry import (#34607)
  • nuxt: Use consistent [nuxt] prefix in console warnings (#34668)
  • vite: Remove obsolete writeDevServer + handle vite-node precomputed (f8e49b71b)
  • nuxt: Update impound protection for nitro/* (ac9e25b8c)
  • nuxt,schema: Allow disabling clearing build hooks (#34594)
  • rspack,webpack: Emit styles.mjs when inline styles off (#34697)
  • nuxt: Fix FormData body hashing in useFetch deduplication key (#34546)
  • nuxt: Generate type re-exports for shared type-only imports (#34632)
  • nuxt,nitro: Add Symbol serialization for dev server logs (#34575)
  • vite: Do not process css files with decorator transform (#34769)
  • vite: Ensure leading slash in /@fs URLs for Windows (#34810)
  • vite: Preserve server-origin errors and surface them via Youch (#34820)
  • nitro: Do not add import condition for ssr resolve conditions (#34739)
  • nuxt: Fix callOnce navigation mode alternating execution (#34718)
  • schema,rspack,webpack: Respect configured test option (#34827)
  • nuxt: Handle custom cookie serialisation before passing to cookie-es (#34711)
  • nuxt: Link to correct docs page for keyed functions (#34854)
  • nuxt: Adjust setPageLayout props type to allow passing arrays of objects (#34860)
  • nuxt,schema: Move config type to schema + mark type peerDeps (#34864)
  • nitro: Restore 'import' condition for ssr resolve (af7a12725)
  • nitro: Re-encode ssrContext.url to match vue-router (#34902)
  • schema: Remove type peerDependencies (#34894)
  • nuxt: Propagate unexpected errors from isDirectorySync (#34900)
  • nuxt: Bridge @nuxt/schema augmentations into nuxt/schema (#34905)
  • nuxt: Sync _route when navigating up the route tree (#34918)
  • nuxt: Skip <NuxtPage> cached vnode when its suspense is unmounted (#34899)
  • nitro: Only recommend payload extraction when ssr is enabled (#34924)
  • nitro: Avoid double-decoding of url (3f1a9524b)
  • nuxt: Flatten buffer before filtering promises and fix rendering of content (#34863)
  • nuxt: Correct async data type inference when using transform with getCachedData (#34819)
  • nuxt: Avoid transforming NuxtTeleportIslandComponent with nuxt-client directive (#34817)
  • nuxt: Resolve layer aliases in css files (#34940)
  • nuxt: Invoke user-supplied error handler when suppressing render errors (#34938)
📖 Documentation
  • Add v4.4 badge for layout props (#34528)
  • Document that component props are sent in query string (619de0dd5)
  • Clarify function signature requirement for custom $fetch in createUseFetch (#34564)
  • Update experimental typedPages documentation (#34580)
  • Fix page:loading:start description to match implementation (#34617)
  • Add missing jsdoc strings (ccb53e0eb)
  • Add example for route middleware setup (#34661)
  • Use new object boolean syntax when prefetchOn interaction (#34825)
  • Remove @nuxt/scripts from core modules roadmap (#34835)
  • Remove @nuxt/hints from core modules roadmap (#34867)
  • Correct URL (#34907)
  • Set NODE_ENV to production in deployment examples (#34937)
🏡 Chore
  • Do not ship devDependencies when publishing (8018d6577)
  • Remove unused field 🤦 (2a75ac774)
  • Remove explicit copilot instructions (c7237f22c)
  • Use single renovate PR for 3.x and 4.x branches (1dda87b84)
  • Use top level vulnerabilityAlerts config (39999b7b6)
  • Dedupe security update prs after update (4734db95c)
  • Throttle per host to reduce rate limits in link checking (#34488)
  • Update renovate config (214a72bcf)
  • Drop redundant as const (#34909)
  • Migrate resolutions to pnpm-workspace.yaml (4a39b1bfa)
✅ Tests
  • Use toThrow instead of toThrowError (3d3d8164d)
  • Update bundle size (e4b31efa4)
  • Reduce matrices in ci (#34703)
  • Add scroll behavior tests for fixed page key with scrollToTop (#34761)
  • Update deprecated error assertions (a7a301095)
🤖 CI
  • Add bot workflow (#34677)
  • Fix bot label (967eca84b)
  • Add agent-scan workflow (#34681)
  • Correct renovate bot name in workflow (#34708)
  • Correct dependabot bot name in workflow (#34709)
  • Drop stackblitz link issue commenter (1e9cacacb)
  • Inline actions triggered by labels into triage actions (ee5acd096)
  • Update workflows to use renamed type labels (#34933)
❤️ Contributors
v3.21.3

3.21.3 is the next patch release. v3.21.4 was published with no changes due to an issue running the release script for v3.21.3.

👉 Changelog

compare changes

🔥 Performance
  • nuxt: Batch-resolve typescript hoist paths with cached base roots (#34862)
  • vite,webpack: Use vfs for manifest + vite node server (#34666)
🩹 Fixes
  • nuxt: Handle negative zero in getUserTrace slice boundary (#34524)
  • nuxt: Signal error state and clear timers in loading indicator cleanup (#34523)
  • nuxt: Fix broken hook cleanup in route announcer (#34525)
  • nuxt: Filter clearNuxtState key enumeration by useState prefix (#34541)
  • nuxt: Correct useFetch cache options type (#34551)
  • nuxt: Prevent in-flight requests from overwriting cleared async data (#34553)
  • nuxt: Check response status before parsing payload (#34555)
  • nuxt: Handle TS type assertions on member expression callees in keyed functions parser (#34558)
  • nitro: Resolve h3 export path in nitro vfs (#34566)
  • nitro: Use hash-based cache for dev payloads (#34569)
  • nuxt: Await parcel watcher subscription before registering close hook (#34573)
  • nuxt: Self-remove hydration error guards after first navigation (#34572)
  • nuxt: Mark portal properties as configurable (#34574)
  • nuxt: Retry manifest fetch after transient failure (#34570)
  • kit: Add PackagePreset type to addImportsSources (#34582)
  • nuxt: Avoid any return type from callHookWith in vue:setup (#34584)
  • nuxt: Strip DevOnly components with attributes in production builds (#34585)
  • nuxt: Move parcel watcher debug timer outside subscription loop (#34590)
  • nuxt: Preserve falsy prop values in NuxtTime data attribute serialization (#34600)
  • nuxt: Clear cached rejected promise in callOnce (#34614)
  • nitro: Set __buildAssetsURL before server entry import (#34607)
  • nuxt: Use consistent [nuxt] prefix in console warnings (#34668)
  • nitro: Do not add import condition for ssr resolve conditions (#34739)
  • rspack,webpack: Emit styles.mjs when inline styles off (#34697)
  • nuxt: Fix FormData body hashing in useFetch deduplication key (#34546)
  • nuxt,nitro: Add Symbol serialization for dev server logs (#34575)
  • vite: Ensure leading slash in /@fs URLs for Windows (#34810)
  • vite: Preserve server-origin errors and surface them via Youch (#34820)
  • nuxt: Fix callOnce navigation mode alternating execution (#34718)
  • schema,rspack,webpack: Respect configured test option (#34827)
  • nitro: Restore 'import' condition for ssr resolve (247254652)
  • nuxt: Propagate unexpected errors from isDirectorySync (#34900)
  • nitro: Re-encode ssrContext.url to match vue-router (#34902)
  • vite: Remove obsolete writeDevServer + handle vite-node precomputed (c45b45b9c)
  • nitro: Avoid double-decoding of url (93e731ba3)
  • nuxt: Sync _route when navigating up the route tree (#34918)
  • nuxt: Skip <NuxtPage> cached vnode when its suspense is unmounted (#34899)
  • nitro: Only recommend payload extraction when ssr is enabled (#34924)
  • nuxt: Flatten buffer before filtering promises and fix rendering of content (#34863)
  • nuxt: Avoid transforming NuxtTeleportIslandComponent with nuxt-client directive (#34817)
  • nuxt: Resolve layer aliases in css files (#34940)
  • nuxt: Invoke user-supplied error handler when suppressing render errors (#34938)
📖 Documentation
  • Document that component props are sent in query string (1bf4fa87c)
  • Fix page:loading:start description to match implementation (#34617)
  • Add missing jsdoc strings (30a9a49aa)
  • Work around upstream bun bug (#34792)
  • Use new object boolean syntax when prefetchOn interaction (#34825)
  • Remove @nuxt/scripts from core modules roadmap (#34835)
  • Remove @nuxt/hints from core modules roadmap (#34867)
  • Correct URL (#34907)
  • Set NODE_ENV to production in deployment examples (#34937)
🏡 Chore
  • Do not ship devDependencies when publishing (07f05c1a2)
  • Remove unused field 🤦 (5644951b5)
  • Remove explicit copilot instructions (240721d38)
  • Use single renovate PR for 3.x and 4.x branches (8193a6025)
  • Use top level vulnerabilityAlerts config (1975bf748)
  • Dedupe security update prs after update (df17b0aec)
  • Throttle per host to reduce rate limits in link checking (#34488)
  • Drop redundant as const (#34909)
  • Pin typescript (e94ed7ac5)
✅ Tests
  • Use toThrow instead of toThrowError (60d5c8d21)
  • Reduce matrices in ci (#34704)
  • Add scroll behavior tests for fixed page key with scrollToTop (#34761)
  • Update deprecated error assertions (9ba7ca7b6)
🤖 CI
  • Ensure latest tag is published first + manual oidc exchange for dist-tag (7339257f8)
  • Add bot workflow (#34677)
  • Fix bot label (a222917b2)
  • Don't run ossf workflow on 4.x branch (c183f341b)
  • Add agent-scan workflow (#34681)
  • Correct renovate bot name in workflow (#34708)
  • Correct dependabot bot name in workflow (#34709)
  • Drop stackblitz link issue commenter (884ab3757)
  • Inline actions triggered by labels into triage actions (124f65c5f)
  • Update workflows to use renamed type labels (#34933)
❤️ Contributors
v4.4.0

4.4.0/4.4.2 is the next minor release (v4.4.2 was published with no changes due to a publishing failure)

👀 Highlights

🏭 createUseFetch and createUseAsyncData

You can now create custom instances of useFetch and useAsyncData with your own default options (#32300).

// composables/api.ts

// Simple defaults
export const useClientFetch = createUseFetch({
  server: false,
})

// Dynamic defaults with full control over merging
export const useApiFetch = createUseFetch((currentOptions) => {
  const runtimeConfig = useRuntimeConfig()

  return {
    ...currentOptions,
    baseURL: currentOptions.baseURL ?? runtimeConfig.public.baseApiUrl,
  }
})

Then use them exactly like useFetch – they're fully typed and support all the same options:

<!-- pages/dashboard.vue -->
<script setup lang="ts">
// Uses your baseURL from runtimeConfig automatically
const { data: users } = await useApiFetch('/users')
</script>

When you pass a plain object, your usage options automatically override the defaults. When you pass a function, you get full control over how options are merged – which means you can compose interceptors, headers, and other complex options however you need.

Under the hood, this is powered by a new Nuxt ad-hoc module that scans your composables directory and automatically registers your custom instances for key injection – so they work seamlessly with SSR, just like useAsyncData and useFetch.

There's also createUseAsyncData for the same pattern with useAsyncData.

📖 Read more: createUseAsyncData

🗺️ Vue Router v5

We've upgraded to vue-router v5 (#34181), which removes the dependency on unplugin-vue-router. This is the first major vue-router upgrade since Nuxt 3, and it comes with a bunch of improvements under the hood.

For most apps, this should be a transparent upgrade. If you're using unplugin-vue-router directly, you can remove it from your dependencies.

The next step will be taking typed routes out of experimental status. 👀

💪 Typed Layout Props in definePageMeta

You can now pass props to your layouts directly from definePageMeta (#34262). This means your layouts can be parameterised per-page without needing to use provide/inject or other workarounds. Check out the updated docs for the full details.

// pages/dashboard.vue
definePageMeta({
  layout: {
    name: 'panel',
    props: {
      sidebar: true,
      title: 'Dashboard',
    },
  },
})

Even better – the props are fully typed (#34409). If your layout defines props, you'll get autocomplete and type-checking in definePageMeta.

<!-- layouts/panel.vue -->
<script setup lang="ts">
defineProps<{
  sidebar?: boolean
  title?: string
}>()
</script>

📖 Read more: Layouts

🗣️ useAnnouncer Composable

Accessibility got a major boost with the new useAnnouncer composable and <NuxtAnnouncer> component (#34318). While useRouteAnnouncer handles page navigation for screen readers, many apps need to announce dynamic in-page changes – form submissions, loading states, search results, and more.

<!-- app.vue -->
<template>
  <NuxtAnnouncer />
  <NuxtRouteAnnouncer />
  <NuxtLayout>
    <NuxtPage />
  </NuxtLayout>
</template>
<!-- components/ContactForm.vue -->
<script setup lang="ts">
const { polite, assertive } = useAnnouncer()

async function submitForm() {
  try {
    await $fetch('/api/contact', { method: 'POST', body: formData })
    polite('Message sent successfully')
  }
  catch (error) {
    assertive('Error: Failed to send message')
  }
}
</script>

Note: This is part of our accessibility roadmap. You don't need to use it everywhere – for many interactions, moving focus to new content or using native form validation is sufficient. useAnnouncer is most useful when content changes dynamically without a corresponding focus change.

📖 Read more: useAnnouncer

🚀 Migrate to unrouting

We've migrated Nuxt's file-system route generation to unrouting (#34316), which uses a trie data structure for constructing routes. The cold start is roughly the same (~8ms vs ~6ms for large apps), but dev server changes are up to 28x faster when you're not adding/removing pages, and ~15% faster even when you are.

This also makes route generation more deterministic – it's no longer sensitive to page file ordering.

🍫 Smarter Payload Handling for Cached Routes

When a cached route (ISR/SWR) is rendered at runtime with payload extraction enabled, the browser immediately fetches _payload.json as a second request – which triggers a full SSR re-render of the same page. In serverless environments, this can spin up a second lambda before the first response has even finished streaming.

This release addresses this with two changes (#34410):

  1. A new payloadExtraction: 'client' mode that inlines the full payload in the initial HTML response while still generating _payload.json for client-side navigation
  2. A runtime in-memory LRU payload cache so that _payload.json requests can be served without a full re-render
// nuxt.config.ts
export default defineNuxtConfig({
  experimental: {
    payloadExtraction: 'client',
  },
})

Note: payloadExtraction: 'client' will become the default with compatibilityVersion: 5. The runtime cache is active for all users.

📖 Read more: Experimental payloadExtraction

🍪 refresh Option for useCookie

If you're using cookies for session management, you've probably run into the problem of needing to extend a cookie's expiration without changing its value. The new refresh option makes this simple (#33814):

const session = useCookie('session-id', {
  maxAge: 60 * 60,
  refresh: true,
})

// Extends expiration each time, even with the same value
session.value = session.value

📖 Read more: useCookie

♻️ useState Reset to Default

useState and clearNuxtState now support resetting to the initial value instead of clearing to undefined (#33527). This aligns with how useAsyncData handles resets and is more intuitive for state management.

const count = useState('counter', () => 0)
count.value = 42

// Resets to 0 (the init value), not undefined
clearNuxtState('counter')

📖 Read more: clearNuxtState

🕵️‍♂️ Better Import Protection

Inspired by features in TanStack Start, import protection now shows suggestions and a full trace of where a problematic import originated (#34454). This makes it much easier to debug why a server-only import ended up in your client bundle.

For example, if you accidentally import from a server route in a component:

The trace shows the import chain (the component was imported from a page), the exact line of code, and actionable suggestions for how to fix it.

We plan to continue work on improving our error messages. 🪵

🔮 View Transitions Types

You can now define view transition types in Nuxt's experimental view transitions support (#31982). This lets you use different transition styles for different navigation patterns (forwards vs. backwards, tabs vs. pages, etc.).

📖 Read more: View Transitions API

💡 Improved optimizeDeps Hints

When Vite discovers new dependencies at runtime and triggers page reloads, Nuxt now shows a clear, copy-pasteable nuxt.config.ts snippet to pre-bundle them (#34320). It also warns about unresolvable entries at startup.

🏷️ Normalised Page Component Names (Experimental)

A new experimental option normalises page component names to match route names (#33513), which can help with consistency in devtools and debugging.

// nuxt.config.ts
export default defineNuxtConfig({
  experimental: {
    normalizeComponentNames: true,
  },
})

📖 Read more: normalizeComponentNames

⚡ Build Profiling

Ever wondered where your build time goes? You can now get a detailed performance breakdown of your Nuxt builds (#34468, nuxt/cli#1243):

nuxt build --profile

This produces a report showing duration, RSS delta, and heap delta for every build phase, module, and bundler plugin:

It also profiles individual modules and bundler plugins, making it easy to spot bottlenecks. Three output formats are written:

  • Chrome Trace (.nuxt/perf-trace.json) – open in chrome://tracing or Perfetto for a visual timeline
  • JSON report (.nuxt/perf-report.json) – machine-readable data for tracking over time
  • CPU profile (nuxt-build.cpuprofile) – open in Chrome DevTools or VS Code for flame graphs

For even more detail, use --profile=verbose to print timing breakdowns to the console.

📖 Read more: nuxt build

We'll be using this feature to make Nuxt even faster – and if performance is something you care about, this might be a good opportunity to contribute!

🔥 Performance Improvements
  • 14,000x faster module ID parsing – replaced new URL() + regex chain with a single indexOf + slice (#34451)
  • Disabled NuxtLink visibility prefetching in dev – stops Vite from discovering and reloading deps unnecessarily during development (#34325)

✅ Upgrading

Our recommendation for upgrading is to run:

npx nuxt upgrade --dedupe

This will deduplicate your lockfile and help ensure you pull in updates from other dependencies that Nuxt relies on, particularly in the unjs ecosystem.

Tip: Check out our upgrade guide if upgrading from an older version.

👉 Changelog

compare changes

🚀 Enhancements
  • nuxt: Migrate to unrouting for nuxt file system -> route generation (#34316)
  • nuxt: Allow setting layout props in definePageMeta (#34262)
  • nuxt: Upgrade to vue-router v5 (#34181)
  • nuxt: Add useAnnouncer composable and <NuxtAnnouncer> component (#34318)
  • nuxt: Add reset to default functionality for useState and clearNuxtState (#33527)
  • nuxt,schema: Experimentally normalise page component names to match route (#33513)
  • nuxt: Add refresh option to useCookie (#33814)
  • nuxt: Export page composables from #app/composables/pages (#33453)
  • vite: Improved optimizeDeps hints (#34320)
  • nuxt: Add View Transitions Types support (#31982)
  • nuxt: Typed props for layout property in definePageMeta (#34409)
  • deps: Upgrade hookable to v6 (#33905)
  • deps: Update to std-env v4 (#34457)
  • nitro,nuxt: Add suggestions + trace to import protection (#34454)
  • kit,nitro,nuxt,schema,vite: Add build profiling (#34468)
  • nuxt,kit,schema: Add a factory function for useFetch and useAsyncData (#32300)
🔥 Performance
  • nuxt: Disable NuxtLink visibility prefetching in dev mode (#34325)
  • nuxt,vite,webpack: Use string parsing for module ids (#34451)
  • nitro,schema: Inline payload in HTML for cached routes + add payloadExtraction: 'client' (#34410)
🩹 Fixes
  • schema: Do not bundle types (#34300)
  • nuxt: Always inject explicit prerender routes into prerender queue (#34311)
  • vite: Resolve package CSS paths in dev manifest (#34303)
  • nuxt: Wait for layout transition to finish before scrolling to top (#34206)
  • kit: Prevent duplicate moduleDependencies options (#34330)
  • nuxt: Retain promise methods after destructuring (#34319)
  • nitro: Encode forward slashes in payload (#34375)
  • nuxt: Do not cache _payload.json in dev mode (#34365)
  • nuxt: Accept refs as inputs in NuxtLink.useLink (#34380)
  • vite: Add nitro dev handler after vite proxy middleware (#34349)
  • nuxt: Hydrate prerendered pages with initial route + replace after hydration (#34211)
  • nitro: Escape strings rendered within js payload script tags (d52a4fdd7)
  • vite: Recreate ViteNodeServer after config restart (#34396)
  • nitro: Allow navigation from error page to external protocols (#34405)
  • nitro,nuxt,schema: Don't extract payloads w/ ssr: false (#34327)
  • nuxt: Replace destr with JSON.parse in cookie encode/decode (#34452)
  • vite: Normalise development ssr app stacktrace (#33989)
  • vite: Update ssr styles plugin for rolldown compatibility (#34435)
  • nuxt: Script block extract regex conflict (#34412)
  • vite: Move rollup-plugin-visualizer to optional peer dep (#34458)
  • nuxt: Restore island head entries from payload during hydration (#34491)
  • kit: Share asyncNuxtStorage across kit instances (#34492)
  • nuxt: Close BroadcastChannel and add error handling in refreshCookie (#34508)
  • nuxt: Check file freshness before truncating in cache restore (#34509)
  • nuxt: Never preload manifest (#34511)
  • nitro: Validate island handler context (#34510)
  • nuxt: Pass deleteCount to splice in preloadRouteComponents (#34514)
  • nuxt: Fix cookie expiration timeout for long-lived cookies (#34513)
  • nuxt: Handle rejected promise in view transition abort (#34515)
💅 Refactors
  • nuxt: Nullish coalesce instead of non-null assertions (#34331)
  • nitro,vite: Set ssr export conditions + vue feature flags within nitro builder (#34379)
  • nitro,nuxt: Add /h3 subpath export for forward-compat (#34383)
  • nuxt: Use JSON.parse instead of destr (#34037)
  • vite: Use vite's transformWithEsbuild for analysis (#34447)
  • nitro,vite: Use babel for experimental decorator support (#34465)
  • webpack: Remove unused event.context.webpack code (#34502)
📖 Documentation
  • Update instructions for typedPages with public hoist pattern (#34285)
  • Add alternative editor LSP setup guidance (#34322)
  • Improve <NuxtImg> fetch priority example (#34341)
  • Update Cloudflare dashboard path (#34372)
  • Clarify --preset option in nuxt build command (#34335)
  • Add shared/ directory to Nuxt 4 upgrade guide (#34391)
  • Update link redirects + reduce checking flakiness (01aa49659)
  • Add import for fileURLToPath in example code (#34401)
  • Capitalise title (#34395)
  • Update testing guide to test-utils v4 (#34408)
  • Add pending back for useFetch + useLazyFetch docs (#34449)
  • Correct md heading level (#34467)
  • Fix twoslash code examples (#34469)
  • Remove duplicated word (5a22feaec)
  • Add typed layout props docs (#34507)
🏡 Chore
  • Prevent layout shift on banner image readme (#34309)
  • Use npmx links 💖 (#34340)
  • Use nuxt/.github pr template (5502ccd7b)
  • Update link for nuxt ossf badge (#34406)
  • Remove unnecessary workspace resolutions (#34453)
  • Migrate npm badges and links to npmx.dev (71eb13c21)
  • Publish 4.x releases to 4x and latest tags (1bc9bfd10)
  • Enforce consistent return-await usage (#34490)
  • vite: Optional chaining for nitroApp.hooks (24a12c810)
  • kit: Cast nitroConfig to any (cc380ba3b)
  • Expand engines.node following #34458 (#34458)
  • Update installed-check and engines.node (0c5869c2d)
  • Lint (31028d2e0)
✅ Tests
  • Add page path gen benchmark (#34315)
  • Add dev server benchmark for page route generation (#34323)
  • Skip bundle tests when running in stubbed mode (#34450)
  • Remove curly braces from inlined css expectations (c9ab2747f)
  • Update bundle size (f8e243a57)
  • Update bundle size (102f7ffe1)
  • Update bundle size (dcebd1800)
🤖 CI
  • Optimise ci workflows (#34274)
  • Run benchmarks on pushes to main (6abf31062)
  • Avoid checkout in issue-needs-reproduction (7849b34c8)
  • Merge all issue labelled workflows (fdd30349a)
  • Fail fast on matrices for merge groups (1008d3afd)
  • More perf optimisations for merge queues (297e4e526)
  • Move build step after runtime/unit tests (#34388)
  • Update default branches (ba251c697)
  • Bump matrix timeout (9026c16c8)
  • Give issues: write permission to needs-reproduction workflow (ba3412b49)
  • Include v5 prefix in skip-changelog filter (dbc1a8666)
  • Don't run actions against release PRs (961589297)
  • Run ci on push to 4.x/3.x (9240729e8)
  • Only run provenance check on PRs (5ba227449)
❤️ Contributors

4.3.1 is a regularly scheduled patch release.

👉 Changelog

compare changes

🩹 Fixes
  • nuxt: Correct reference format of server builder (#34177)
  • nuxt: Add status/statusText getters to NuxtError (#34188)
  • nuxt: Don't inject shared types for differing auto-imports (#34191)
  • schema: Add direnv and vendor to default ignore (#34190)
  • nuxt: Focus hash links after navigation (#34193)
  • nuxt: Exclude head runtime from unhead imports transform (#34195)
  • kit: Include prereleases in semver satisfy check (#34210)
  • nitro: Encode unicode paths in x-nitro-prerender header (#34202)
  • nuxt: Watch server/ for builder:watch hook (#34208)
  • nitro: Preserve error.message for fatal errors (#34226)
  • Only enable dynamic imports when ts plugin (#34205)
  • webpack: Use H3Error for 403 in dev server (#34233)
  • nuxt: Ensure NuxtError extends Error type (#34242)
  • vite: Use H3Error for 404 in dev server (#34225)
  • nuxt: Add backwards compat for #app barrel export in keyed functions (#34199)
  • nuxt: Track + re-add custom routes on hmr (#32044)
  • nuxt: Keep vnode when leaving deeper nested route (#33778)
  • vite: Prevent CSS flickering in dev mode after config changes (#33856)
  • nuxt: Do not start view transition if there is no route (#33723)
  • nuxt: Call deferHydration done on NuxtPage unmount (#34152)
  • nuxt: Handle invalid datetime in <NuxtTime>` (#33992)
  • nuxt: Preserve middleware error status in 404 fallback (#34148)
  • nitro: Do not augment nuxt/schema (#34255)
  • nuxt: Cache manifest files to preserve buildId (#34002)
  • nuxt: Don't decode query string in SSR context URL (#34252)
  • nuxt: Allow specifying moduleDependencies by meta.name (#34263)
  • nuxt: Resolve #components import mapping conflict for packages outside rootDir (#34139)
  • vite,webpack: Use node.res to send 403/404 (#34266)
  • nitro,nuxt: Align path encoding with vue-router (#34265)
  • nitro: Augment nuxt/schema once more (552bbd8d1)
💅 Refactors
  • nuxt: Prefer genObjectKey to omit unnecessary quotes (#34245)
  • nuxt: Use ComponentProps helper to extract layout props (#34248)
📖 Documentation
  • Update roadmap dates (#34166)
  • Correct default value of nitroAutoImports (#34182)
  • Clarify shared type context limitations for custom imports (#34194)
  • Fix broken links (#34223)
  • Document payload extraction for ISR/SWR routes (#34222)
  • Update default aliases in configuration reference (#34237)
  • Update example of email validation (#34247)
  • Align server alias examples with #server and rootDir (#34259)
  • Add documentation for keyedComposables (#34201)
🏡 Chore
  • Remove px from width attribute (8d1cbb27a)
  • Add ai config in gitignore (#34220)
✅ Tests
  • Vitest v4 compatibility (825b2c202)
  • Add runtime tests for deeply nested <NuxtPage> navigation (048efc030)
❤️ Contributors

3.21.1 is a regularly schedule patch release.

👉 Changelog

compare changes

🩹 Fixes
  • nuxt: Correct reference format of server builder (#34177)
  • nuxt: Add status/statusText getters to NuxtError (#34188)
  • schema: Add direnv and vendor to default ignore (#34190)
  • nuxt: Focus hash links after navigation (#34193)
  • nuxt: Exclude head runtime from unhead imports transform (#34195)
  • kit: Include prereleases in semver satisfy check (#34210)
  • nuxt: Watch server/ for builder:watch hook (#34208)
  • nitro: Encode unicode paths in x-nitro-prerender header (#34202)
  • nitro: Preserve error.message for fatal errors (#34226)
  • Only enable dynamic imports when ts plugin (#34205)
  • webpack: Use H3Error for 403 in dev server (#34233)
  • nuxt: Ensure NuxtError extends Error type (#34242)
  • vite: Use H3Error for 404 in dev server (#34225)
  • nuxt: Add backwards compat for #app barrel export in keyed functions (#34199)
  • nuxt: Track + re-add custom routes on hmr (#32044)
  • nuxt: Keep vnode when leaving deeper nested route (#33778)
  • vite: Prevent CSS flickering in dev mode after config changes (#33856)
  • nuxt: Do not start view transition if there is no route (#33723)
  • nuxt: Call deferHydration done on NuxtPage unmount (#34152)
  • nuxt: Handle invalid datetime in <NuxtTime>` (#33992)
  • nuxt: Preserve middleware error status in 404 fallback (#34148)
  • nitro: Do not augment nuxt/schema (#34255)
  • nuxt: Cache manifest files to preserve buildId (#34002)
  • nuxt: Don't decode query string in SSR context URL (#34252)
  • nuxt: Allow specifying moduleDependencies by meta.name (#34263)
  • nuxt: Resolve #components import mapping conflict for packages outside rootDir (#34139)
  • vite,webpack: Use node.res to send 403/404 (#34266)
  • nitro,nuxt: Align path encoding with vue-router (#34265)
  • nitro: Augment nuxt/schema once more (9f5bb611d)
💅 Refactors
  • nuxt: Prefer genObjectKey to omit unnecessary quotes (#34245)
  • nuxt: Use ComponentProps helper to extract layout props (#34248)
📖 Documentation
  • Remove link to ai guide entirely (084b5d7f2)
  • Update roadmap dates (#34166)
  • Clarify shared type context limitations for custom imports (#34194)
  • Fix broken links (#34223)
  • Document payload extraction for ISR/SWR routes (#34222)
  • Update example of email validation (#34247)
  • Add documentation for keyedComposables (#34201)
🏡 Chore
  • Remove px from width attribute (e80147f7d)
  • Add ai config in gitignore (#34220)
✅ Tests
  • Vitest v4 compatibility (70e147b71)
  • Add runtime tests for deeply nested <NuxtPage> navigation (707a9dc44)
  • Resolve merge issues in tests (85abddc54)
❤️ Contributors

4.3.0 is the next minor release.

Nuxt 4.3 brings powerful new features for layouts, caching, and developer experience – plus significant performance improvements under the hood.

📣 Some News

Extended v3 Support

Early this month, I opened a discussion to find out how the upgrade had gone from v3 to v4. I was really pleased to hear how well it had gone for most people.

Having said that, we're committed to making sure no one gets left behind. And so we will continue to provide security updates and critical bug fix releases beyond the previously announced end-of-life date of January 31, 2026, meaning Nuxt v3 will meet its end-of-life on July 31, 2026.

Tip

As usual, today also brings a minor release for v3, with many of the same improvements backported from v4.3.

Preparing for Nuxt 5

We're closer than ever to the releases of Nuxt v5 and Nitro v3. In the coming weeks, the main branch of the Nuxt repository will begin receiving initial commits for Nuxt 5. However, it's still business as usual.

  • Continue making pull requests to the main branch
  • We'll backport changes to the 4.x and 3.x branches

Keep an eye out on the Upgrade Guide – we'll be adding details about how you can already start migrating your projects to prepare for Nuxt v4 with future.compatibilityVersion: 5.

🗂️ Route Rule Layouts

But that's enough about the future. We have a lot of good things for you today!

First, you can now set layouts directly in route rules using the new appLayout property (#31092). This provides a centralized, declarative way to manage layouts across your application without scattering definePageMeta calls throughout your pages.

export default defineNuxtConfig({
  routeRules: {
    '/admin/**': { appLayout: 'admin' },
    '/dashboard/**': { appLayout: 'dashboard' },
    '/auth/**': { appLayout: 'minimal' }
  }
})

This might be useful for:

  • Admin panels with a shared layout across many routes
  • Marketing pages that need a different layout from the app

Tip

Plus, you can pass props to layouts now! See the setPageLayout improvements below.

📦 ISR/SWR Payload Extraction

Payload extraction now works with ISR (incremental static regeneration), SWR (stale-while-revalidate) and cache routeRules (#33467). Previously, only pre-rendered pages could generate _payload.json files.

This means:

  • Client-side navigation to ISR/SWR pages can use cached payloads
  • CDNs (Vercel, Netlify, Cloudflare) can cache payload files alongside HTML
  • Fewer API calls during navigation – data can be prefetched and served from the cached payload
export default defineNuxtConfig({
  routeRules: {
    '/products/**': { 
      isr: 3600, // Revalidate every hour
    }
  }
})

🧹 Dev Mode Payload Extraction

Related to the above, payload extraction now also works in development mode (#30784). This makes it easier to test and debug payload behavior without needing to run a production build.

Important

Payload extraction works in dev mode with nitro.static set to true, or for individual pages which have isr, swr, prerender or cache route rules.

🚫 Disable Modules from Layers

When extending Nuxt layers, you can now disable specific modules that you don't need (#33883). Just pass false to the module's options:

export default defineNuxtConfig({
  extends: ['../shared-layer'],
  // disable @nuxt/image from layer
  image: false,
})

🏷️ Route Groups in Page Meta

Route groups (folders wrapped in parentheses like (protected)/) are now exposed in page meta (#33460). This makes it easy to check which groups a route belongs to in middleware or anywhere you have access to the route.

<script setup lang="ts">
// This page's meta will include: { groups: ['protected'] }
useRoute().meta.groups
</script>
export default defineNuxtRouteMiddleware((to) => {
  if (to.meta.groups?.includes('protected') && !isAuthenticated()) {
    return navigateTo('/login')
  }
})

This provides a clean, convention-based approach to route-level authorization without needing to add definePageMeta to every protected page.

🎨 Layout Props with setPageLayout

The setPageLayout composable now accepts a second parameter to pass props to your layout (#33805):

export default defineNuxtRouteMiddleware((to) => {
  setPageLayout('admin', {
    sidebar: true,
    theme: 'dark'
  })
})
<script setup lang="ts">
defineProps<{
  sidebar?: boolean
  theme?: 'light' | 'dark'
}>()
</script>

🔧 #server Alias

A new #server alias provides clean imports within your server directory (#33870), similar to how #shared works:

// Before: relative path hell
import { helper } from '../../../../utils/helper'

// After: clean and predictable
import { helper } from '#server/utils/helper'

The alias includes import protection – you can't accidentally import #server code from client or shared contexts.

🪟 Draggable Error Overlay

The development error overlay introduced in Nuxt 4.2 is now draggable and can be minimized (#33695). You can:

  • Drag it to any corner of the screen (it snaps to edges)
  • Minimize it to a small pill button when you want to keep working
  • Your position and minimized state persist across page reloads

This is a quality-of-life improvement when you're iterating on fixes and don't want the overlay blocking your view.

⚙️ Async Plugin Constructors

Module authors can now use async functions when adding build plugins (#33619):

export default defineNuxtModule({
  async setup() {
    // Lazy load only when actually needed
    addVitePlugin(() => import('my-cool-plugin').then(r => r.default()))
    
    // No need to load webpack plugin if using Vite
    addWebpackPlugin(() => import('my-cool-plugin/webpack').then(r => r.default()))
  }
})

This enables true lazy loading of build plugins, avoiding unnecessary code loading when plugins aren't needed.

🚀 Performance Improvements

This release includes several performance optimizations for faster builds:

  • Hook filters - Internal plugins now use filters to avoid running hooks unnecessarily (#33898)
  • SSR styles optimization - The nuxt:ssr-styles plugin is now significantly faster (#33862, #33865)
  • Layer alias transform - Skipped when using Vite (it handles this natively) (#33864)
  • Route rules compilation - Route rules are now compiled into a client chunk using rou3, removing the need for radix3 in the client bundle and eliminating app manifest fetches (#33920)

🎨 Inline Styles for Webpack/Rspack

The inlineStyles feature now works with webpack and rspack builders (#33966), not just Vite. This enables critical CSS inlining for better Core Web Vitals regardless of your bundler choice.

⚠️ Deprecations

statusCodestatus, statusMessagestatusText

In preparation for Nitro v3 and H3 v2, we're moving to use Web API naming conventions (#33912). The old properties still work but are deprecated in advance of v5:

- throw createError({ statusCode: 404, statusMessage: 'Not Found' })
+ throw createError({ status: 404, statusText: 'Not Found' })

🐛 Bug Fixes

Notable fixes in this release:

  • Fixed head component deduplication using key attribute (#33958, #33963)
  • Fixed async data properties not being reactive in Options API (#34119)
  • Fixed useCookie unsafe number parsing during decode (#34007)
  • Fixed NuxtPage not re-rendering when nested NuxtLayout has layouts disabled (#34078)
  • Fixed client-side pathname decoding for non-ASCII route aliases (#34043)
  • Fixed suspense remounting when navigating after pending state (#33991)
  • Fixed clipboard copy in error overlay (#33873)
  • Enabled allowArbitraryExtensions by default in TypeScript config (#34084)
  • Added noUncheckedIndexedAccess to server tsconfig for safer typing (#33985)

Important

Enabling noUncheckedIndexedAccess in the Nitro server TypeScript config improves type safety but may surface new type errors in your server code. This change was necessary because Nuxt's app context performs type checks on server routes (learn more).

While we recommend keeping this enabled for better type safety, you can disable it if needed:

export default defineNuxtConfig({
  nitro: {
    typescript: {
      tsConfig: {
        compilerOptions: {
          noUncheckedIndexedAccess: false
        }
      }
    }
  }
})

Note that disabling this may allow type errors to slip through that could cause runtime issues with indexed access.

📚 Documentation

  • Improved module author guides with clearer structure (#33803)
  • Added MCP setup instructions for Claude Desktop (#33914)
  • Added layers directory documentation (#33967)
  • Added Deno package manager examples (#34070)
  • Clarified type-checking context limitations for server routes (#33964)

🎉 Nuxt 3.21.0

Alongside v4.3.0, we're releasing Nuxt v3.21.0 with many of the same improvements backported to the 3.x branch. This release includes:

  • All the same features: Route rule layouts, ISR payload extraction, layout props with setPageLayout, #server alias, draggable error overlay, and more
  • All performance improvements: SSR styles optimization, hook filters, and route rules compilation
  • Module disabling: Disable layer modules by setting options to false
  • Critical bug fixes: Async data reactivity in Options API, useCookie number parsing, head component deduplication, and more

✅ Upgrading

Our recommendation for upgrading is to run:

npx nuxt upgrade --dedupe

# or, if you are upgrading to v3.21
npx nuxt@latest upgrade --dedupe --channel=v3

This will deduplicate your lockfile and help ensure you pull in updates from other dependencies that Nuxt relies on, particularly in the unjs ecosystem.

Tip

Check out our upgrade guide if upgrading from an older version.

👉 Changelog

compare changes

🚀 Enhancements
  • kit: Support async constructor for adding plugins (#33619)
  • kit: Export Nuxt major version type (#33700)
  • schema: Add #server alias for server directory imports (#33870)
  • ui-templates: Let it snow! ❄️ (#33804)
  • schema: Hoist nitro crossws types (5b16a51f5)
  • nitro,nuxt: Compile route rules into client chunk (#33920)
  • nuxt: Allow disabling modules by setting module options to false (#33883)
  • kit: Allow specifying moduleDependencies as an async function (#33504)
  • nuxt: Support appLayout in route rules (#31092)
  • nuxt: Add route groups to page meta (#33460)
  • nuxt: Enable payload extraction for ISR/SWR routes (#33467)
  • nuxt: Allow updating props with setPageLayout (#33805)
  • nuxt: Enable dragging and minimizing for error overlay (#33695)
  • nitro,nuxt: Add support for payload extraction in dev (#30784)
  • rspack,webpack: Add inline styles (#33966)
  • kit: Add forward-compatible nitro types (#34036)
🔥 Performance
  • nuxt: Do not init layer alias transform when using vite (#33864)
  • vite: Add hook filters for ssr styles plugin (#33865)
  • vite: Optimize nuxt:ssr-styles plugin (#33862)
  • nuxt: Use filter for vfs plugin load (eb3d2d4c6)
  • nuxt,vite: Use filters to avoid running hooks unnecessarily (6b7fc7477)
  • nuxt,vite: Add more filters to internal plugins (#33898)
🩹 Fixes
  • kit: Normalize local layer paths with trailing slashes (#33858)
  • nuxt: Avoid overwriting multiple head input in island handler (#33849)
  • nuxt: Update meta instead of calling router.replace in page hmr (#33897)
  • nuxt: Don't call page:loading:end in cache if already called (7789f73bd)
  • vite: Add error handling for parsing NUXT_VITE_NODE_OPTIONS (41a564d23)
  • nuxt: Do not skip middleware when appMiddleware references invalid key (323f27bc8)
  • nitro: Clipboard copy in error overlay (#33873)
  • webpack,rspack: Resolve deep imports in virtual files (#33927)
  • webpack: Disable async chunks in dev mode (0310c4070)
  • webpack: Correctly evaluate sourcemap name (653f364af)
  • nuxt: Handle node10 resolution for nuxt/meta (01c2c9b13)
  • nuxt: Do not early return if component priorities conflict (#33955)
  • nuxt: Use key for tag deduplication in <Head> component (#33958)
  • schema,vite: Resolve build.transpile when initialising vite (#33868)
  • nuxt,rspack,webpack: Inject module identifiers for webpack builders (#33962)
  • nuxt: Add key to head components for proper deduplication (#33963)
  • nitro: Check prettyResponse.body type before error overlay (#33977)
  • nuxt: Don't URI-encode static route paths (#33990)
  • nuxt: Skip internal stub routes from prerender (#34001)
  • kit,schema: Align module onUpgrade arguments with types (#33988)
  • nuxt: Handle unsafe number parsing in useCookie decode (#34007)
  • nuxt: Do not externalise rou3 (2df4e1ae3)
  • nitro: Add noUncheckedIndexedAccess to server tsconfig (#33985)
  • nuxt: Add auto-import declarations for shared/ context (#33978)
  • nuxt: Update global reference to globalThis in useRequestFetch (#33976)
  • vite: Configure hmr port for server build (#33929)
  • kit: Add forward compatible nitro v3 types (#34053)
  • nitro,nuxt: Do not import nitro deps in builders (#34054)
  • nitro: Add h3 types to auto-imports (#34035)
  • schema: Add some more directories to ignore (ebc2a66ab)
  • nitro: Also augment nuxt/schema (a6a044d81)
  • nuxt: Make asyncData properties reactive in Options API (#34119)
  • nuxt: Rerender NuxtPage when nested NuxtLayout has explicitly disabled layouts (#34078)
  • kit,nitro: Enable allowArbitraryExtensions by default (#34084)
  • nuxt: Decode client-side pathname for non-ASCII route aliases (#34043)
  • nuxt: Force remount suspense when navigating after pending (#33991)
  • nuxt: Add documentation link to server builder error message (#34122)
  • nuxt: Validate placeholder/fallback tags + warn about placeholder/fallback props (567a1c6fb)
  • nuxt: Force flush useAsyncData debounced execute post watcher flush (#34125)
  • nitro: Process isr/swr/cache keys (d84278622)
  • nuxt: Add typeFrom support for imports.d.ts template exports (#34135)
  • nuxt: Ensure we inline styles for hydrate-never components (#34132)
💅 Refactors
  • kit: Add explicit return types for kit utilities (6cd1289d1)
  • nitro,nuxt,schema,vite: Provide explicit return types (1d2c0c25f)
  • kit,nuxt,schema: Use named imports from defu + consola (322dae3e0)
  • Add explicit .ts file extensions to relative imports (80778c0cd)
  • kit,nitro,nuxt,schema: Reduce barrels + move <> to as (f1713850c)
  • nitro,nuxt: Use ~ prefix for internal ssrContext properties (#33896)
  • nitro: Add explicit return types for runtime utils (a4fda917e)
  • nitro: Move tree-shaken flags from replace plugin -> vfs (#33907)
  • nitro,nuxt,vite,webpack: Use status/statusText + deprecate old props (#33912)
  • webpack: Use RuntimeModule API for chunk preloads (#33930)
  • nuxt: Use AST-aware function key injection (#33446)
  • nitro,nuxt,schema: Use augments for nitro schema types (#34039)
  • nitro,rspack,vite,webpack: Move cors handling -> nitro builder (#34048)
📖 Documentation
  • Split and improve Module Author Guides (#33803)
  • Update links to module guide (86d67b24f)
  • Fix useHead return type (#33857)
  • Add note that middleware doesn't run when rendering islands (7df27c781)
  • Add note on default branch for layers (#33919)
  • Add mcp setup instructions for claude desktop (#33914)
  • Mention deno as package manager (#33875)
  • Clarify purpose of statusText (#32834)
  • Update lychee config and remove medium article link (c0b4e0f28)
  • Update module count and fix typo (#33950)
  • Add DeepWiki badge (#33508)
  • Give example of usage of defineWrappedResponseHandler (#33952)
  • Provide cleaner example code for vitest projects (#33960)
  • Improve addImports example (#34011)
  • Update yarn create command (4a3c08874)
  • Update roadmap with a11y (d3453d6a5)
  • Add a11y release (#34041)
  • Remove Nuxtr from recommendations (#34045)
  • Typo (#34050)
  • Remove duplicate feature (#34058)
  • Fix typo (#34057)
  • Provide deno package manager examples (#34070)
  • Update JSDoc for config.experimental properties (#34069)
  • Fix transition types (#34082)
  • Make custom wrapper recipe link more prominent (#34085)
  • Remove null from getCachedData trigger (f7cf3747e)
  • nuxt: Mention custom serializers in useState docs (#34105)
  • Add info about runtime directories + type checking (#34097)
  • Clarify module setups in .nuxtrc example (#34107)
  • Remove duplicate entries in table (#34094)
  • Clarify catch all notation for addServerHandler (#34060)
  • Add layers directory documentation (#33967)
  • Clarify type-checking context limitations for server routes (#33964)
  • Add a tip for appLayout (beda47955)
  • Add docs for disabling modules by passing false to its options (cdad9310c)
  • Add info about caching payloads with isr/swr (6e10ff04f)
  • Add example for async addVitePlugin (1098254f7)
  • Add example of passing props to layouts (1f9e6b82c)
  • Mark vite plugin as not typed (5e09fddfb)
  • Add warning about source from <NuxtIsland> (1586bbb6e)
📦 Build
  • Remove babel debugging plugin from jiti stub options (bce8248b4)
  • vite: Add build entries for vite-node entrypoints (#33893)
  • nuxt: Tidy up subpath export types (a63d4a014)
  • Use obuild except for nuxt + nitro-server packages (#34049)
  • schema: Fix /builder-env subpath types (7f5034288)
🏡 Chore
✅ Tests
  • Update tests for new version of nuxt/test-utils (#33842)
  • Avoid unnecessary tick (988f6657a)
  • Add regression test for asyncData HMR (#32182)
  • Add test for page hmr resetting state (#32418)
  • Add reproduction for vite pre-transform error (#31574)
  • Add regression test for #32154 (#32154)
  • Use vi.hoisted for klona mock (#34113)
🤖 CI
  • Directly call webhook url (ce15997ce)
  • Use new reusable triage workflows (#34072)
  • Use new shared dependency review workflow (8c01e1ce9)
❤️ Contributors

3.21.0 is the next minor release.

Nuxt 4.3 and 3.21 bring powerful new features for layouts, caching, and developer experience – plus significant performance improvements under the hood.

📣 Some News

Extended v3 Support

Early this month, I opened a discussion to find out how the upgrade had gone from v3 to v4. I was really pleased to hear how well it had gone for most people.

Having said that, we're committed to making sure no one gets left behind. And so we will continue to provide security updates and critical bug fix releases beyond the previously announced end-of-life date of January 31, 2026, meaning Nuxt v3 will meet its end-of-life on July 31, 2026.

Tip

As usual, today also brings a minor release for v3, with many of the same improvements backported from v4.3.

Preparing for Nuxt 5

We're closer than ever to the releases of Nuxt v5 and Nitro v3. In the coming weeks, the main branch of the Nuxt repository will begin receiving initial commits for Nuxt 5. However, it's still business as usual.

  • Continue making pull requests to the main branch
  • We'll backport changes to the 4.x and 3.x branches

Keep an eye out on the Upgrade Guide – we'll be adding details about how you can already start migrating your projects to prepare for Nuxt v4 with future.compatibilityVersion: 5.

🗂️ Route Rule Layouts

But that's enough about the future. We have a lot of good things for you today!

First, you can now set layouts directly in route rules using the new appLayout property (#31092). This provides a centralized, declarative way to manage layouts across your application without scattering definePageMeta calls throughout your pages.

export default defineNuxtConfig({
  routeRules: {
    '/admin/**': { appLayout: 'admin' },
    '/dashboard/**': { appLayout: 'dashboard' },
    '/auth/**': { appLayout: 'minimal' }
  }
})

This might be useful for:

  • Admin panels with a shared layout across many routes
  • Marketing pages that need a different layout from the app

Tip

Plus, you can pass props to layouts now! See the setPageLayout improvements below.

📦 ISR/SWR Payload Extraction

Payload extraction now works with ISR (incremental static regeneration), SWR (stale-while-revalidate) and cache routeRules (#33467). Previously, only pre-rendered pages could generate _payload.json files.

This means:

  • Client-side navigation to ISR/SWR pages can use cached payloads
  • CDNs (Vercel, Netlify, Cloudflare) can cache payload files alongside HTML
  • Fewer API calls during navigation – data can be prefetched and served from the cached payload
export default defineNuxtConfig({
  routeRules: {
    '/products/**': { 
      isr: 3600, // Revalidate every hour
    }
  }
})

🧹 Dev Mode Payload Extraction

Related to the above, payload extraction now also works in development mode (#30784). This makes it easier to test and debug payload behavior without needing to run a production build.

Important

Payload extraction works in dev mode with nitro.static set to true, or for individual pages which have isr, swr, prerender or cache route rules.

🚫 Disable Modules from Layers

When extending Nuxt layers, you can now disable specific modules that you don't need (#33883). Just pass false to the module's options:

export default defineNuxtConfig({
  extends: ['../shared-layer'],
  // disable @nuxt/image from layer
  image: false,
})

🏷️ Route Groups in Page Meta

Route groups (folders wrapped in parentheses like (protected)/) are now exposed in page meta (#33460). This makes it easy to check which groups a route belongs to in middleware or anywhere you have access to the route.

<script setup lang="ts">
// This page's meta will include: { groups: ['protected'] }
useRoute().meta.groups
</script>
export default defineNuxtRouteMiddleware((to) => {
  if (to.meta.groups?.includes('protected') && !isAuthenticated()) {
    return navigateTo('/login')
  }
})

This provides a clean, convention-based approach to route-level authorization without needing to add definePageMeta to every protected page.

🎨 Layout Props with setPageLayout

The setPageLayout composable now accepts a second parameter to pass props to your layout (#33805):

export default defineNuxtRouteMiddleware((to) => {
  setPageLayout('admin', {
    sidebar: true,
    theme: 'dark'
  })
})
<script setup lang="ts">
defineProps<{
  sidebar?: boolean
  theme?: 'light' | 'dark'
}>()
</script>

🔧 #server Alias

A new #server alias provides clean imports within your server directory (#33870), similar to how #shared works:

// Before: relative path hell
import { helper } from '../../../../utils/helper'

// After: clean and predictable
import { helper } from '#server/utils/helper'

The alias includes import protection – you can't accidentally import #server code from client or shared contexts.

🪟 Draggable Error Overlay

The development error overlay introduced in Nuxt 4.2 is now draggable and can be minimized (#33695). You can:

  • Drag it to any corner of the screen (it snaps to edges)
  • Minimize it to a small pill button when you want to keep working
  • Your position and minimized state persist across page reloads

This is a quality-of-life improvement when you're iterating on fixes and don't want the overlay blocking your view.

⚙️ Async Plugin Constructors

Module authors can now use async functions when adding build plugins (#33619):

export default defineNuxtModule({
  async setup() {
    // Lazy load only when actually needed
    addVitePlugin(() => import('my-cool-plugin').then(r => r.default()))
    
    // No need to load webpack plugin if using Vite
    addWebpackPlugin(() => import('my-cool-plugin/webpack').then(r => r.default()))
  }
})

This enables true lazy loading of build plugins, avoiding unnecessary code loading when plugins aren't needed.

🚀 Performance Improvements

This release includes several performance optimizations for faster builds:

  • Hook filters - Internal plugins now use filters to avoid running hooks unnecessarily (#33898)
  • SSR styles optimization - The nuxt:ssr-styles plugin is now significantly faster (#33862, #33865)
  • Layer alias transform - Skipped when using Vite (it handles this natively) (#33864)
  • Route rules compilation - Route rules are now compiled into a client chunk using rou3, removing the need for radix3 in the client bundle and eliminating app manifest fetches (#33920)

🎨 Inline Styles for Webpack/Rspack

The inlineStyles feature now works with webpack and rspack builders (#33966), not just Vite. This enables critical CSS inlining for better Core Web Vitals regardless of your bundler choice.

⚠️ Deprecations

statusCodestatus, statusMessagestatusText

In preparation for Nitro v3 and H3 v2, we're moving to use Web API naming conventions (#33912). The old properties still work but are deprecated in advance of v5:

- throw createError({ statusCode: 404, statusMessage: 'Not Found' })
+ throw createError({ status: 404, statusText: 'Not Found' })

🐛 Bug Fixes

Notable fixes in this release:

  • Fixed head component deduplication using key attribute (#33958, #33963)
  • Fixed async data properties not being reactive in Options API (#34119)
  • Fixed useCookie unsafe number parsing during decode (#34007)
  • Fixed NuxtPage not re-rendering when nested NuxtLayout has layouts disabled (#34078)
  • Fixed client-side pathname decoding for non-ASCII route aliases (#34043)
  • Fixed suspense remounting when navigating after pending state (#33991)
  • Fixed clipboard copy in error overlay (#33873)
  • Enabled allowArbitraryExtensions by default in TypeScript config (#34084)
  • Added noUncheckedIndexedAccess to server tsconfig for safer typing (#33985)

Important

Enabling noUncheckedIndexedAccess in the Nitro server TypeScript config improves type safety but may surface new type errors in your server code. This change was necessary because Nuxt's app context performs type checks on server routes (learn more).

While we recommend keeping this enabled for better type safety, you can disable it if needed:

export default defineNuxtConfig({
  nitro: {
    typescript: {
      tsConfig: {
        compilerOptions: {
          noUncheckedIndexedAccess: false
        }
      }
    }
  }
})

Note that disabling this may allow type errors to slip through that could cause runtime issues with indexed access.

📚 Documentation

  • Improved module author guides with clearer structure (#33803)
  • Added MCP setup instructions for Claude Desktop (#33914)
  • Added layers directory documentation (#33967)
  • Added Deno package manager examples (#34070)
  • Clarified type-checking context limitations for server routes (#33964)

🎉 Nuxt 3.21.0

Alongside v4.3.0, we're releasing Nuxt v3.21.0 with many of the same improvements backported to the 3.x branch. This release includes:

  • All the same features: Route rule layouts, ISR payload extraction, layout props with setPageLayout, #server alias, draggable error overlay, and more
  • All performance improvements: SSR styles optimization, hook filters, and route rules compilation
  • Module disabling: Disable layer modules by setting options to false
  • Critical bug fixes: Async data reactivity in Options API, useCookie number parsing, head component deduplication, and more

✅ Upgrading

Our recommendation for upgrading is to run:

npx nuxt@latest upgrade --dedupe --channel=v3

This will deduplicate your lockfile and help ensure you pull in updates from other dependencies that Nuxt relies on, particularly in the unjs ecosystem.

Tip

Check out our upgrade guide if upgrading from an older version.

👉 Changelog

compare changes

🚀 Enhancements
  • kit: Support async constructor for adding plugins (#33619)
  • kit: Export Nuxt major version type (#33700)
  • schema: Add #server alias for server directory imports (#33870)
  • schema: Hoist nitro crossws types (6ff79ea6c)
  • nitro,nuxt: Compile route rules into client chunk (#33920)
  • nuxt: Allow disabling modules by setting module options to false (#33883)
  • kit: Allow specifying moduleDependencies as an async function (#33504)
  • nuxt: Support appLayout in route rules (#31092)
  • nuxt: Add route groups to page meta (#33460)
  • nuxt: Enable payload extraction for ISR/SWR routes (#33467)
  • nuxt: Allow updating props with setPageLayout (#33805)
  • nuxt: Enable dragging and minimizing for error overlay (#33695)
  • nitro,nuxt: Add support for payload extraction in dev (#30784)
  • rspack,webpack: Add inline styles (#33966)
  • kit: Add forward-compatible nitro types (#34036)
🔥 Performance
  • nuxt: Do not init layer alias transform when using vite (#33864)
  • vite: Add hook filters for ssr styles plugin (#33865)
  • vite: Optimize nuxt:ssr-styles plugin (#33862)
  • nuxt: Use filter for vfs plugin load (5bd8e81ed)
  • nuxt,vite: Use filters to avoid running hooks unnecessarily (e762a1e20)
  • nuxt,vite: Add more filters to internal plugins (#33898)
🩹 Fixes
  • kit: Normalize local layer paths with trailing slashes (#33858)
  • nuxt: Avoid overwriting multiple head input in island handler (#33849)
  • nuxt: Update meta instead of calling router.replace in page hmr (#33897)
  • nuxt: Don't call page:loading:end in cache if already called (fbbe10133)
  • vite: Add error handling for parsing NUXT_VITE_NODE_OPTIONS (8abb7ef5b)
  • nuxt: Do not skip middleware when appMiddleware references invalid key (ed8bb68c5)
  • nitro: Clipboard copy in error overlay (#33873)
  • webpack,rspack: Resolve deep imports in virtual files (#33927)
  • webpack: Disable async chunks in dev mode (c4bfd0a49)
  • webpack: Correctly evaluate sourcemap name (93e3d92b9)
  • nuxt: Handle node10 resolution for nuxt/meta (b748840bc)
  • nuxt: Do not early return if component priorities conflict (#33955)
  • nuxt: Use key for tag deduplication in <Head> component (#33958)
  • schema,vite: Resolve build.transpile when initialising vite (#33868)
  • nuxt,rspack,webpack: Inject module identifiers for webpack builders (#33962)
  • nuxt: Add key to head components for proper deduplication (#33963)
  • nitro: Check prettyResponse.body type before error overlay (#33977)
  • nuxt: Don't URI-encode static route paths (#33990)
  • nuxt: Skip internal stub routes from prerender (#34001)
  • kit,schema: Align module onUpgrade arguments with types (#33988)
  • nuxt: Handle unsafe number parsing in useCookie decode (#34007)
  • nuxt: Do not externalise rou3 (7da94e8c3)
  • nitro: Add noUncheckedIndexedAccess to server tsconfig (#33985)
  • nuxt: Update global reference to globalThis in useRequestFetch (#33976)
  • vite: Configure hmr port for server build (#33929)
  • kit: Add forward compatible nitro v3 types (#34053)
  • nitro,nuxt: Do not import nitro deps in builders (#34054)
  • nitro: Add h3 types to auto-imports (#34035)
  • schema: Add some more directories to ignore (9cb9a19dd)
  • nitro: Also augment nuxt/schema (9b40196a6)
  • nuxt: Make asyncData properties reactive in Options API (#34119)
  • nuxt: Rerender NuxtPage when nested NuxtLayout has explicitly disabled layouts (#34078)
  • nuxt,schema: Clean up types (5ce351d0f)
  • nuxt: Allow user augmentation of runtime config (dd30410cb)
  • kit,nitro: Enable allowArbitraryExtensions by default (#34084)
  • nuxt: Decode client-side pathname for non-ASCII route aliases (#34043)
  • nuxt: Force remount suspense when navigating after pending (#33991)
  • nuxt: Add documentation link to server builder error message (#34122)
  • nuxt: Validate placeholder/fallback tags + warn about placeholder/fallback props (f7912d3f3)
  • nuxt: Force flush useAsyncData debounced execute post watcher flush (#34125)
  • nitro: Process isr/swr/cache keys (7f2bf4d13)
  • nuxt: Add typeFrom support for imports.d.ts template exports (#34135)
  • nuxt: Ensure we inline styles for hydrate-never components (#34132)
💅 Refactors
  • kit: Add explicit return types for kit utilities (ec2239cb4)
  • nitro,nuxt,schema,vite: Provide explicit return types (2564002de)
  • kit,nuxt,schema: Use named imports from defu + consola (e31668f67)
  • Add explicit .ts file extensions to relative imports (458f3c9b6)
  • kit,nitro,nuxt,schema: Reduce barrels + move <> to as (08f72881e)
  • nitro,nuxt: Use ~ prefix for internal ssrContext properties (#33896)
  • nitro: Add explicit return types for runtime utils (74bb6ddeb)
  • nitro: Move tree-shaken flags from replace plugin -> vfs (#33907)
  • nitro,nuxt,vite,webpack: Use status/statusText + deprecate old props (#33912)
  • webpack: Use RuntimeModule API for chunk preloads (#33930)
  • nuxt: Use AST-aware function key injection (#33446)
  • nitro,nuxt,schema: Use augments for nitro schema types (#34039)
  • nitro,rspack,vite,webpack: Move cors handling -> nitro builder (#34048)
  • nitro: Move to nitropack/runtime namespace (b06d53166)
  • nitro,nuxt: Move to nitropack/runtime namespace (897a2259f)
📖 Documentation
  • Fix useHead return type (#33857)
  • Add correct instructions to upgrade to latest Nuxt 3.x (#33866)
  • Improve grammar (#34093)
  • Use h2 for nuxt add command page (a0a1763d5)
  • Update links to module guide (c9c1282f8)
  • Split and improve Module Author Guides (#33803)
  • Split directory structure and re-order guides (v4) (#33691)
  • Add mcp server and llms.txt (#33371)
  • Add note that middleware doesn't run when rendering islands (d22cf7903)
  • Add note on default branch for layers (#33919)
  • Add mcp setup instructions for claude desktop (#33914)
  • Mention deno as package manager (#33875)
  • Clarify purpose of statusText (#32834)
  • Update lychee config and remove medium article link (36c19ce73)
  • Update module count and fix typo (#33950)
  • Add DeepWiki badge (#33508)
  • Give example of usage of defineWrappedResponseHandler (#33952)
  • Provide cleaner example code for vitest projects (#33960)
  • Update yarn create command (b30432979)
  • Update roadmap with a11y (7ea35137c)
  • Add a11y release (#34041)
  • Remove Nuxtr from recommendations (#34045)
  • Remove duplicate feature (#34058)
  • Provide deno package manager examples (#34070)
  • Make custom wrapper recipe link more prominent (#34085)
  • nuxt: Mention custom serializers in useState docs (#34105)
  • Clarify module setups in .nuxtrc example (#34107)
  • Add layers directory documentation (#33967)
  • Add a tip for appLayout (9b78698c3)
  • Add docs for disabling modules by passing false to its options (18500730c)
  • Add info about caching payloads with isr/swr (4b055548e)
  • Add example for async addVitePlugin (4407f6862)
  • Add example of passing props to layouts (401aa90ab)
  • Mark vite plugin as not typed (25eae7699)
  • Add warning about source from <NuxtIsland> (08778c98c)
  • Sync with main branch (e8c04aaa6)
  • Fix ai guide link (01c173b78)
📦 Build
  • Remove babel debugging plugin from jiti stub options (1ec010681)
  • vite: Add build entries for vite-node entrypoints (#33893)
  • nuxt: Tidy up subpath export types (fe92e9c17)
  • Use obuild except for nuxt + nitro-server packages (#34049)
  • schema: Fix /builder-env subpath types (1951648fa)
🏡 Chore
✅ Tests
  • Update tests for new version of nuxt/test-utils (#33842)
  • Avoid unnecessary tick (fb4720840)
  • Add regression test for asyncData HMR (#32182)
  • Add test for page hmr resetting state (#32418)
  • Add reproduction for vite pre-transform error (#31574)
  • Add regression test for #32154 (#32154)
  • Use vi.hoisted for klona mock (#34113)
  • Update bundle size (e6c8d10c6)
  • Fix paths in hmr test (3b8b2138a)
  • Update snapshots (51c83b8ec)
  • Update bundle size (22708c05c)
🤖 CI
  • Directly call webhook url (4eedbcae5)
  • Use new reusable triage workflows (#34072)
  • Use new shared dependency review workflow (9e6770f18)
❤️ Contributors

4.2.2 is the next patch release.

✅ Upgrading

Our recommendation for upgrading is to run:

npx nuxt upgrade --dedupe

This will deduplicate your lockfile as well, and help ensure that you pull in updates from other dependencies that Nuxt relies on, particularly in the unjs ecosystem.

👉 Changelog

compare changes

🩹 Fixes
  • nitro: Do not show pretty error handler when testing (243261edb)
  • nuxt: Generate valid references for component declaration items (#33388)
  • nuxt: Sync internal route before calling page:finish hook (#33707)
  • kit: Add TypeScript path alias support for test files (#33672)
  • nitro: Ensure html is a string before injecting error handler (f70b70c97)
  • nitro: Include layer server directories in tsconfig.server.json (#33510)
  • nuxt: Ensure deduped async data executions return latest promise (#33740)
  • kit,nuxt: Type + respect moduleDependencies by meta name (#33774)
  • nuxt,schema: Ignore .d.vue.ts declarations (1c73525a2)
  • kit,nuxt: Protect against resolved nuxt module subpath (#33767)
  • nuxt: Re-execute callOnce during HMR (#33810)
  • nuxt: Resolve watch callback after reactive key change in useAsyncData (#33802)
  • nuxt: Escape HTML in development error page stack trace (#33820)
  • kit: Do not add resolved rootDir to cached layer config (#33779)
  • kit,schema: Add moduleDependencies -> installModule (#33689)
💅 Refactors
  • nuxt: Improve type safety within callOnce function (#33825)
📖 Documentation
  • Split directory structure and re-order guides (v4) (#33691)
  • Add hints release (#33701)
  • Fix link to vitest globals config (#33702)
  • Add mcp server and llms.txt (#33371)
  • Fix 404 link (98c2f1397)
  • Text consistency (#33709)
  • Type error as non-optional prop (#33763)
  • Reformat tables (#33813)
🏡 Chore
  • Update pnpm to 10.21 and enable trust policy (d2c9711c0)
  • Revert pnpm trust policy and restore provenance action (f9d0e0a3d)
  • Update markdownlint config to ignore mdc issues (e7fff7132)
  • Pin to single version of unstorage (ec316eae8)
✅ Tests
  • Add patchProp and nodeOps to excluded Vue helpers (#33754)
  • Use fake timers for watch params test (08d9d2f3b)
🤖 CI
  • Add --pnpm flag to correctly publish prerelease (#33688)
  • Update action lint config (#33710)
❤️ Contributors

3.20.2 is the next patch release.

✅ Upgrading

Our recommendation for upgrading is to run:

npx nuxt upgrade --dedupe --channel=v3

This will deduplicate your lockfile as well, and help ensure that you pull in updates from other dependencies that Nuxt relies on, particularly in the unjs ecosystem.

Note

This will only work if you already have a version of @nuxt/cli which has the --channel flag. If this does not work, you can instead run npx nuxi@latest for the initial upgrade.

👉 Changelog

compare changes

🩹 Fixes
  • nitro: Do not show pretty error handler when testing (cc75ce409)
  • nuxt: Generate valid references for component declaration items (#33388)
  • nuxt: Sync internal route before calling page:finish hook (#33707)
  • nitro: Ensure html is a string before injecting error handler (6f51a25e9)
  • nitro: Include layer server directories in tsconfig.server.json (#33510)
  • nuxt: Ensure deduped async data executions return latest promise (#33740)
  • kit,nuxt: Type + respect moduleDependencies by meta name (#33774)
  • nuxt,schema: Ignore .d.vue.ts declarations (9a6a770ab)
  • kit,nuxt: Protect against resolved nuxt module subpath (#33767)
  • nuxt: Re-execute callOnce during HMR (#33810)
  • nuxt: Resolve watch callback after reactive key change in useAsyncData (#33802)
  • nuxt: Escape HTML in development error page stack trace (#33820)
  • kit: Do not add resolved rootDir to cached layer config (#33779)
  • kit,schema: Add moduleDependencies -> installModule (#33689)
💅 Refactors
  • nuxt: Improve type safety within callOnce function (#33825)
📖 Documentation
  • Split directory structure and re-order guides (v3) (#33690)
  • Fix link (016ef66e3)
  • Add hints release (#33701)
  • Fix link to vitest globals config (#33702)
  • Fix 404 link (5543b7cf7)
  • Text consistency (#33709)
  • Type error as non-optional prop (#33763)
🏡 Chore
  • Update pnpm to 10.21 and enable trust policy (1cb55efc0)
  • Revert pnpm trust policy and restore provenance action (103ae1351)
  • Update markdownlint config to ignore mdc issues (d4933e26e)
  • Pin to single version of unstorage (619956e7f)
✅ Tests
  • Add patchProp and nodeOps to excluded Vue helpers (#33754)
  • Use fake timers for watch params test (58607fbea)
  • Update test for v3 defaults (daa002638)
🤖 CI
  • Add --pnpm flag to correctly publish prerelease (#33688)
  • Update action lint config (#33710)
❤️ Contributors

4.2.1 is the next patch release.

✅ Upgrading

Our recommendation for upgrading is to run:

npx nuxt upgrade --dedupe

This will deduplicate your lockfile as well, and help ensure that you pull in updates from other dependencies that Nuxt relies on, particularly in the unjs ecosystem.

👉 Changelog

compare changes

🩹 Fixes
  • kit,nuxt,schema: Deprecate ImportPresetWithDeprecation (#33596)
  • nuxt: Correct warning message for prefetch/noPrefetch conflict (#33617)
  • nitro: Remove <nuxt-error-overlay> iframe border (#33625)
  • vite: Use rolldown replace only in build (#33615)
  • nitro: Use directory paths in moduleEntryPaths (#33628)
  • nitro: Start error overlay minimized based on status code (#33658)
  • vite: Ensure optimizeDeps config is applied before other plugins (#33586)
  • nuxt: Respect layer priority order for scanned components (#33654)
  • nuxt: Process prerender routes on pages:resolved (#33662)
  • nuxt: Remove abort signal event listeners after render (#33665)
  • nuxt: Cleanup event listener with cleanup signal (#33667)
  • vite: Update vite-node (#33663)
  • vite: Respect vite proxy in dev middleware (#33670)
💅 Refactors
  • kit,nitro,nuxt,schema,vite: Explicitly import process/performance (#33650)
📖 Documentation
  • Fix typo in eslint flat config description (#33569)
  • Add signal support to useAsyncData examples (#33601)
  • Document pending as alias of status === 'pending' (#33221)
  • Note that cookieStore is true by default (#33572)
  • Add information on types for server context (#33511)
  • Mark webstorm issue resolved (#33608)
  • Clarify route middleware doesn't affect API routes (#33643)
  • Improve docs for useHead/useHydration/useLazy* (#33626)
  • Update link to nitro source to v2 branch (08018af4f)
  • Add typescript documentation for module authors (#33637)
  • Typo (#33655)
🏡 Chore
🤖 CI
  • Disable cache in release action (ff37598bc)
❤️ Contributors

3.20.1 is the next patch release.

✅ Upgrading

Our recommendation for upgrading is to run:

npx nuxt upgrade --dedupe --channel=v3

This will deduplicate your lockfile as well, and help ensure that you pull in updates from other dependencies that Nuxt relies on, particularly in the unjs ecosystem.

👉 Changelog

compare changes

🩹 Fixes
  • vite: Unset optimizeDeps.include for server environment (#33550)
  • kit,nuxt,schema: Deprecate ImportPresetWithDeprecation (#33596)
  • nuxt: Correct warning message for prefetch/noPrefetch conflict (#33617)
  • nitro: Remove <nuxt-error-overlay> iframe border (#33625)
  • vite: Use rolldown replace only in build (#33615)
  • nitro: Use directory paths in moduleEntryPaths (#33628)
  • nitro: Start error overlay minimized based on status code (#33658)
  • vite: Ensure optimizeDeps config is applied before other plugins (#33586)
  • nuxt: Respect layer priority order for scanned components (#33654)
  • nuxt: Process prerender routes on pages:resolved (#33662)
  • nuxt: Remove abort signal event listeners after render (#33665)
  • nuxt: Cleanup event listener with cleanup signal (#33667)
  • vite: Respect vite proxy in dev middleware (#33670)
💅 Refactors
  • kit,nitro,nuxt,schema,vite: Explicitly import process/performance (#33650)
📖 Documentation
  • Fix typo in eslint flat config description (#33569)
  • Add signal support to useAsyncData examples (#33601)
  • Note that cookieStore is true by default (#33572)
  • Document pending as alias of status === 'pending' (#33221)
  • Clarify route middleware doesn't affect API routes (#33643)
  • Improve docs for useHead/useHydration/useLazy* (#33626)
  • Typo (#33655)
🏡 Chore
🤖 CI
  • Disable cache in release action (885df65f4)
❤️ Contributors

3.20.0 is the next minor release.

✅ Upgrading

Our recommendation for upgrading is to run:

npx nuxt upgrade --dedupe --channel=v3

This will deduplicate your lockfile as well, and help ensure that you pull in updates from other dependencies that Nuxt relies on, particularly in the unjs ecosystem.

👉 Changelog

compare changes

🚀 Enhancements
  • nuxt: Allow specifying component declarationPath (#33419)
  • kit: Add extensions option for resolveModule (#33328)
  • nuxt: Add abortController option to useAsyncData (#32531)
  • nuxt: Display youch error page w/ user error page in dev (#33359)
  • nuxt: Experimental typescript plugin support (#33314)
  • nuxt,schema: Extract asyncData handlers to chunks (#33131)
  • kit: Add setGlobalHead utility (#33512)
  • kit,vite: Allow enabling vite environment api (#33492)
🔥 Performance
  • nuxt: Precompute renderer dependencies at build time (#33361)
  • kit,schema: Remove some unnecessary dependencies (bdf34c263)
🩹 Fixes
  • nuxt: Preserve hash with redirecting based on routeRules (#33222)
  • kit: Safely cleanup loadNuxtConfig in concurrent calls (#33420)
  • nuxt: Allow object-format href in <NuxtLink> (b97ae2f70)
  • nuxt: Remove mergeModels from auto imports (#33344)
  • nuxt: Add back shortPath property (#33384)
  • nuxt: Do not allow native attrs to shadow nuxt link props (0981990a7)
  • nuxt: Remove declarationPath from component dirs (e384ba3cb)
  • nuxt: Preserve root route in isPrerendered check (#33476)
  • nuxt: Exempt webpack vfs from pkg lookup (4df1e8275)
  • nitro: Exempt nightly release from import protections (272d9abbe)
  • webpack,rspack: Preserve prerender + nitro flags in server builds (#33503)
  • nuxt: Support component auto-imports as arguments of h() (#33509)
  • vite: Prevent assignment for rolldown's replacement plugin (#33526)
  • nuxt: Use sha256 hash for prerender cache keys (#33505)
  • nuxt: Add NuxtTime relative time numeric prop (#33552)
  • nuxt: Add NuxtTime relative time relativeStyle prop (#33557)
  • nuxt: Handle arrays in app config correctly during HMR (#33555)
💅 Refactors
  • Remove obsolete shortPath property (#33384)
  • kit: Extract trace utilities (ddaedfa51)
  • nuxt,vite,webpack: Allow builders to augment types (#33427)
  • schema: Deprecate extend, extendConfig, and configResolved hooks (932a80dc6)
  • nitro,nuxt: Extract @nuxt/nitro-server package (#33462)
  • nuxt: Use RouteLocationNormalizedLoadedGeneric internally (aa211fb4f)
  • vite: Make vite plugins environment-compatible (#33445)
📖 Documentation
  • Add nuxt module addServerPlugin note (#33409)
  • Remove deprecated node version (#33411)
  • Update declarationPath in addComponent (#33380)
  • Add some notes/deprecations for vite hooks (2c6912d2f)
  • Fix incorrect ESM module field info (#33451)
  • Recommend getLayerDirectories() instead of nuxt.options._layers (#33484)
  • Add docs for moduleDependencies (#33499)
  • Pin codemod to v0.18.7 for migration recipe (#33522)
🏡 Chore
  • Migrate gitpod to ona (#33159)
  • Use native node to run test:prepare (cbad63c02)
  • Do not use native node to run test:prepare (672c09423)
  • Update valid semantic scopes (4ca29168b)
  • Ignore nitro templates (ec59aceeb)
  • Remove vue-demi from ignoredBuiltDependencies (#33494)
  • Update vscode url (#33360)
  • Correct jsdoc location for function used as parameters (#33507)
  • Remove code comment (#33515)
  • Patch changelogen for large numbers of commits (b6530b5b6)
  • Filter out commits before last tag when constructing changelog (257049712)
  • Ignore @rollup/plugin-commonjs (c2bd323b8)
  • Pin @rollup/plugin-commonjs (a524522ea)
✅ Tests
  • Update runtime test to use asyncDataDefaults.errorValue (b6f1c9b0d)
  • Refactor suite to use common matrix utils (#33483)
  • Update typed router test (c55db2854)
🤖 CI
  • Publish @nuxt/nitro-server on pkg-pr-new (d37ef17b0)
  • Remove nitro-server publish until v4.2 is released (e34c2f52f)
  • For now, use tag push to trigger release (0705b835f)
❤️ Contributors
Last Checked
46m ago
Latest
v4.4.8
Tracking since Apr 28, 2023