v4.1.2
📦 nuxtView on GitHub →
✨ 5 features🐛 7 fixes🔧 6 symbols
Summary
Nuxt 4.1.2 is a patch release focused on performance improvements in template normalization and hydration, alongside critical fixes for composable tree-shaking and dependency typing.
Migration Steps
- Run 'npx nuxt upgrade --dedupe' to upgrade to v4.1.2 and deduplicate the lockfile.
✨ New Features
- Performance: Optimized template normalization in loops when 'dst' is present.
- Performance: Removed watcher from 'hydrate-when' lazy hydration strategy for better efficiency.
- Performance: More efficient normalization of components and directories.
- Performance: Reduced unnecessary iterations in Nuxt core and Kit.
- Performance: Added filter to skip lazy hydration transform when not needed.
🐛 Bug Fixes
- schema: Added pkg-types to dependencies to fix missing type definitions.
- nuxt: Fixed tree-shaking logic to prevent errors and incorrect removal of composables within other composables.
- kit: Ensured module dependencies are correctly typed.
- nuxt: Prevented Infinity backgroundSize values in the loading indicator.
- nuxt: Removed unused 'enabled' property from components directory options.
- nuxt: Synchronized watch requests in useAsyncData.
- nuxt: Moved key imports logic to execute after all modules have run.
🔧 Affected Symbols
hydrate-whenuseAsyncDatakit.normaliseTemplatesnuxt.componentsnuxt.schemaloading-indicator