Packages

nuxt

4.6.4 · 2 Nov 2026MIT3.6M / weekRepositoryHomepagenpmAtom feed

The latest release, 4.6.4, is affected by 4 advisories with no fixed version yet.See advisories
Your version

3.2.0

9 Feb 2023Where it was published

3.21.11 is the newest release of 3.x.

In short

14 new1 faster7 fixed15 internal

Security

12 advisories affect 3.2.0; 4.6.0 fixes the others

7 more

Release note

3.2.0 is the first minor release since we've started our new release schedule. We've brought it forward by a couple of weeks to include some goodies we want you to be able to play with soon.

Highlights

  • ⚡️ Nuxt DevTools

    You can opt-in to Nuxt DevTools per-project by going to the project root and running:

    npx nuxi@latest devtools enable  

    Restart your Nuxt server and open your app in browser. Click the Nuxt icon on the bottom (or press Alt+D) to toggle the DevTools.

    More information in the docs!

  • ✨ Better DX for overriding runtimeConfig, including inline type helpers

  • 🪄 Automatically inferred return type for useFetch and $fetch based on method.

    It'll be a type error to use the wrong method when hitting an endpoint.

    Plus, if you have multiple methods served by a single endpoint (like ~/server/api/test.get.ts and ~/server/api/test.post.ts then the response type will match the kind of response you make.

  • 🍪 useFetch is now integrated with event.$fetch, meaning cookies and context are now passed to api requests automagically within internal requests.

  • 🔥 We now treeshake client-only components out of the server build more effectively using the experimental treeshakeClientOnly feature

    This is turned on by default but if you experience any issues, you can turn this off via:

    export default defineNuxtConfig({  
    experimental: {  
    treeshakeClientOnly: false  
    }  
    })  
  • 🛠️ New addRouteMiddleware kit utility for module authors

  • 💪 Nitropack v2.2 has been released

    Lots of features, including runtime proxy support using route rules, nested fetch calls, binary and raw storage operations, exposed event.context.cf (cloudflare) and built-in session support.

    For full details see release notes

Changelog

compare changes

Enhancements

  • kit: Add addRouteMiddleware method

  • cli: Warn when prerendering routes with ssr: false

  • schema: Add type hints for runtime config

  • nuxt: Support type auto-import

  • nuxt: Infer useFetch return based on the method

  • cli: Add initial support for enabling/disabling devtools

  • nuxt: Upgrade to nitropack 2.2

Performance

  • vite: Use stub entry in vite server build when ssr: false

Fixes

  • nuxt: Treeshake client-only components with placeholders

  • webpack: Client-side typechecking when ssr: false

  • vite: Exclude styles, not all assets

  • nuxt: Defer adding route path to preloaded record

  • nuxt: Don't exclude pnpm layers from nitro esbuild/imports

  • nuxt: Use parser to treeshake <ClientOnly>

  • Reorder the types field in package.json

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.