Post

Nuxt 4.6 is out, alongside nuxt/cli v4 ๐Ÿš€ ๐Ÿงฉ `nuxt/server`, our first big step to a server-agnostic Nuxt ๐ŸŽฏ typed `$fetch` was rebuilt (no more TS2589!) ๐Ÿ” `appSecret` + sealed cookie sessions โšก๏ธ Vue Vapor support ๐Ÿ› brand new dev error pages โ€ฆ plus lots of groundwork for Nuxt 5 ๐Ÿ”๏ธ ๐Ÿ‘‰ nuxt.com/blog/v4-6

first, Nuxt CLI v4 gives `nuxt dev` an interactive panel: URLs, startup progress, request logs and single-key shortcuts it's also 73% smaller and gets to first paint 6.6x faster โšก๏ธ github.com/nuxt/cli/re...

๐Ÿงฉ `nuxt/server` is a new import source for server code, built on web standards meaning the same handler can run on Nitro v2, Nitro v3 or the new (very experimental) `@nuxt/vite-server` โšก ... so modules can support Nuxt 4 _and_ Nuxt 5 from one file

this has been a long time coming, and it rests on years of work from @pi0.io on h3, Nitro and web-standard server primitives thank you, Pooya โค๏ธ ๐Ÿ‘‰ Nitro is still the default, and still the right choice for almost everyone

๐ŸŽฏ typed `$fetch` is rebuilt on `fetchdts` 3000 server routes used to take 53s to type-check - now it's just 0.2s! request bodies are checked against what each handler validates, too ๐Ÿ‘‰ you can opt in with `experimental.routeTypedFetch`

๐Ÿ› dev errors now come with mapped stack traces and a code frame from your own source, in the browser and the terminal there's even a 'copy as agent prompt' button ๐Ÿ‘€

๐Ÿ”๏ธ and @hugorcd.com has redrawn the dev loading screen as a WebGL particle field!

0 reposts13 likes

โฌ†๏ธ to upgrade: npx nuxt upgrade --dedupe ... and a huge thank you to everyone who contributed! ๐Ÿ’š