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
🩹 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:finishhook (#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
moduleDependenciesby meta name (#33774) - nuxt,schema: Ignore
.d.vue.tsdeclarations (1c73525a2) - kit,nuxt: Protect against resolved nuxt module subpath (#33767)
- nuxt: Re-execute
callOnceduring HMR (#33810) - nuxt: Resolve watch callback after reactive key change in ()