nuxt
4.6.4 · 2 Nov 2026MIT3.5M / weekRepositoryHomepagenpmAtom feed
0.10.7 is the newest release of 0.9.x.
In short
6 new3 fixed8 changed
Security
3 advisories affect 0.9.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
Breaking Changes
The 0.9.0 is an important release, we can now define dynamic routes without the nuxt.config.js file, please read more in examples/custom-routes/
The router.routes object does not exist anymore, this gives a better readability for any Nuxt.js project without removing any features.
We also introduce a validate({ params, query }) method to validate the routes params/query before entering the the data method, if you return false, the error page will be displayed with a 404.
Also, we can now define children routes by creating a directory with the same name as the file, example:
-| pages/ ---| parent/ -----| child.vue ---| parent.vue
And then, in your parent.vue component, you can add <nuxt-child></nuxt-child> to display the child component (when navigating to /parent/child)
Features
JavaScripts hooks can be defined in the
transitionproperty. To see the list of props and events: vuejs.org/v2/api/transitioncan also be afunction (to, from) { return 'fade' }so you can set a different transition depending of the route destinationIntroduction
<nuxt-link>which is exactly the same as<router-link>but in the future, will add lazy-loading and more 🔥
If you were using the class .router-link-active, please replace it to .nuxt-link-active, or if you want to keep the router-link-active class, update your nuxt.config.js like this:
module.exports = {
router: {
linkActiveClass: 'router-link-active'
}
}Improvements
You can import components without giving the
.vueextension now (fixed #59)In development mode, when the
nuxt.config.jsfile changed with a syntax error, the server will not crash (fixed #60)Upgrade to
webpack 2.2.0-rc.0build.babeloptions are given to thevue-loaderas well. Now you can write JSX in your vue components, see gomix.com
Bug fixes
Fix importing
.jsfile with ES6 syntax in.vuefiles (Fix #63)Use cross-env for setting
NODE_ENV=productionon WindowsAvoid the renderer error when
nuxt.config.jschange onnuxt
What's next?
Before launching the 1.0.0, we are working on:
100% coverage with a lot of tests because it's really important for us to deliver a reliable framework
The ability to add middleware to your routes, useful for having routes that need the user to be authenticated first
config.build.publicPath, see #25nuxt.renderStreamandnuxt.renderRouteStream, see #26Generate filenames with chunkName for avoid CDN caching
A complete documentation on nuxtjs.org
Real-life examples
Improvements and 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.