nuxt
4.6.4 · 2 Nov 2026MIT3.5M / weekRepositoryHomepagenpmAtom feed
0.10.7 is the newest release of 0.10.x.
In short
3 breaking17 new3 fixed1 internal
- Breaking
This should be the last release with a breaking change before the
1.0! - Breaking
datais nowasyncDatafor pages components, it's notasyncDatawhich receives the context and can be asynchronous, this is to respect the vue.js methods. It also fix the mixins withdata. If you used the context in yourdatamethods, please rename them toasyncDatastarting from this release. See updated documentation. - Breaking
Static Generated:
generate.routeParamsis replaced bygenerate.routeswhich has to be an array of dynamics routes called by Nuxt, see updated documentation.
Security
3 advisories affect 0.10.0; 4.6.0 fixes them
- Moderatenuxt vulnerable to Cross-site Scripting in navigateTo if used after SSRGHSA-vf6r-87q4-2vjf · 5 Aug 2024Fixed in 3.12.4
- LowNuxt: Incomplete fix for GHSA-934w-87qh-qr26: a `javascript:` URL prefixed with an ASCII control character executes from `<NuxtLink>` when `pages` is disabledGHSA-jjm6-p2m9-9w4x · 22 Oct 2026Fixed in 4.6.0
- LowCross-site scripting via <NoScript> slot content in Nuxt's head componentsGHSA-m3q2-p4fw-w38m · 16 Jun 2026Fixed in 3.21.7
Release note
✋ Thanks a lot to all the contributors and people helping us to make Nuxt.js better! ✋
This should be the last release with a breaking change before the 1.0! You can see our roadmap here.
Breaking changes
- Breaking
datais nowasyncDatafor pages components, it's notasyncDatawhich receives the context and can be asynchronous, this is to respect the vue.js methods. It also fix the mixins withdata. If you used the context in yourdatamethods, please rename them toasyncDatastarting from this release. See updated documentation. - Breaking
Static Generated:
generate.routeParamsis replaced bygenerate.routeswhich has to be an array of dynamics routes called by Nuxt, see updated documentation.
Features
Nuxt.js use Vue 2.2.5 and its rendering feature for CSS, no more CSS extracted, only the strict minimum CSS is now included in every page server-rendered!
Cache for bundle with hash name are now available, combined with the
build.publicPathoption, it's a perfect combo for hosting your.nuxt/dist/files on any CDN!Use the official babel-preset-vue-app for babel default configuration (suggestion
New option build.publicPath, useful to set CDN url for production deployment or changing the
/_nuxt/path if you don't like it.New option router.mode, let's you define the
vue-routermode (default to'history') (@cj via #272)Add
~middlewarealiasWe can now specify a custom layout for the
layouts/error.vuecomponent, see #172The app template is now customisable! Read more on the app.html documentation.
nuxt buildaccept now a-cor--config-fileoption now (@PierreRambaud via #392)New option: generate.minify to customize html-minifier options.
We can now import CSS files directly in
<script>, making Nuxt.js compatible with more external libraries.
Improvements
nuxt.rendernow always returns aPromise, even in dev mode when the build is not ready yetNuxt.js prefetch every code-splitted to improve the loading performance when navigating, you have nothing to do, simply upgrade and your app will be faster! (you can disable it via the
nuxt.config.jswithperformance.prefetch: false)We also added
gzipsupport in production (you can disable it via thenuxt.config.jswith performance.gzip)store.replaceState(window.__NUXT__.state)is now made before importing the plugin.import store from '~store'in plugins (client-side) will have the store filled.Add
durationproperty intransition
Bug fixes
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.