v4.1.3
📦 nuxtView on GitHub →
✨ 5 features🐛 15 fixes🔧 9 symbols
Summary
Nuxt 4.1.3 is a patch release focusing on Vite performance optimizations, type safety improvements for lazy components and auto-imports, and various fixes for useAsyncData and SSR behavior.
Migration Steps
- Run 'npx nuxt upgrade --dedupe' to upgrade and deduplicate the lockfile.
✨ New Features
- vite: Use rolldown's replace plugin when applicable for improved performance
- nuxt: Support head option on useHead
- nuxt: Support v-slot:fallback longform syntax in <DevOnly>
- nuxt: Add stubs for new scripts from @nuxt/scripts
- nuxt: Support typeFrom when generating auto-import type templates
🐛 Bug Fixes
- kit: Add default values when adding type references in prepare:types hook
- nuxt: Augment app config in server context
- nuxt: Make lazy component types compatible with h
- vite: Deduplicate inlined server style chunks
- nuxt: Do not relativise importmap if cdnURL is set
- nuxt: Resolve aliases in imports.dirs
- nuxt: Add missing element/vnode props for <NuxtLink>
- nuxt: Do not generate server placeholder components
- nuxt: Dedupe generated component names
- webpack: Test watch instance before closing it
- nuxt: Correctly handle island rendering error
- nuxt: Don't trigger scroll when changing trailing slash
- nuxt: Prevent duplicate execution on key change in useAsyncData
- nuxt: Make middleware _path property configurable for HMR
- nuxt: Handle non-immediate useAsyncData with different key on SSR
🔧 Affected Symbols
useHeaduseAsyncDataNuxtLinkDevOnlyprepare:typesimports.dirshnitro:prepare:typescomponentsIslandsTemplate