v4.1.1
📦 nuxtView on GitHub →
✨ 3 features🐛 7 fixes🔧 8 symbols
Summary
Nuxt v4.1.1 is a patch release focusing on bug fixes for auto-imports, AST-aware tree-shaking, and improved developer warnings. It includes internal improvements to @nuxt/kit and Vite configuration.
Migration Steps
- Run 'npx nuxt upgrade --dedupe' to update to v4.1.1 and deduplicate the lockfile.
✨ New Features
- Added JSDoc documentation for navigateTo
- Improved developer experience in @nuxt/kit by displaying module names in logs where possible
- Enhanced dev-time warnings for useRoute and route middleware to include traces and paths
🐛 Bug Fixes
- Corrected relative pathing for auto-imported components
- Switched to globalThis over window for better environment compatibility
- Implemented AST-aware tree-shaking and route injection
- Fixed #components import mapping to ignore internal package usage
- Removed explicit vite-node deps.inline configuration
- Fixed core auto-imports inclusion in override warnings
- Ensured relative importmap entry paths are rendered when required
🔧 Affected Symbols
useRoutenavigateToglobalThiswindow#componentsvite-node@nuxt/kitimports:sources