4.1.2 is a regularly scheduled 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
🔥 Performance
- kit: Do not normalise templates in loop if
dst
is present (#33200) - nuxt: Remove watcher from
hydrate-when
lazy hydration strategy (#33199) - nuxt,schema: Normalise components + directories more efficiently (#33207)
- kit,nuxt: Reduce unnecessary iteration in nuxt code (#33212)
- nuxt: Skip running lazy hydration transform with filter (#33213)
🩹 Fixes
- schema: Add
pkg-types
to dependencies (9fe2541ca) - nuxt: Ignore errors when treeshaking composables within other composables (f99eac516)
- nuxt: Do not tree-shake composables within other composables (#33153)
- kit: Ensure module dependencies are typed correctly (4568e8451)
- nuxt: Prevent Infinity
backgroundSize
in loading indicator (#33211) - nuxt: Remove unused
enabled
from components dir options (#32844) - nuxt: Sync watch request in useAsyncData (#33192)
- nuxt: Move key imports logic after all modules run (#33214)
📖 Documentation
- Update reference to source dir (65712297a)
- Update language on bridge head migration (c9d986889)
- Update file path for pinia store (#33205)
- Add
app/
suffix to a few links (#33217)
🏡 Chore
- Dedupe lockfile (d054c90d9)
- Suppress htmlnano type error (ff2e77809)
- nuxt: Unpin tinyglobby (b9ec6507b)
✅ Tests
- Update bundle size test (4d9feb00d)
❤️ Contributors
- Julien Huang (@huang-julien)
- Daniel Roe (@danielroe)
- Adrien Foulon (@Tofandel)
- Matej Černý (@cernymatej)
- Антон Стасюк (@11Alone11)
- wuiyang (@wuiyang)
- Revadike (@Revadike)