Releases: nuxt/nuxt
Releases · nuxt/nuxt
v0.8.3
v0.8.2
v0.8.1
Feature
- Add
routeChanged
event for$nuxt
, you can use it like this in your plugins:
if (process.BROWSER_BUILD) {
// set google-analytics script here...
// and then:
window.onNuxtReady((app) => {
app.$nuxt.$on('routeChanged', (to, from) => {
ga('set', 'page', to.fullPath)
ga('send', 'pageview')
})
})
}
v0.8.0
Breaking Changes
- The layouts has been moved to the layouts/ directory for better architecting. Which have to move your
pages/_app.vue
tolayouts/app.vue
andpages/_error.vue
tolayouts/error.vue
- When used programmatically, you now have to call
nuxt.build()
becausenew Nuxt(options)
is not launching anymore the build automatically.
const Nuxt = require('Nuxt')
const nuxt = new Nuxt(options)
nuxt.build()
.then(() => {
app.use(nuxt.render)
})
Features
- Add
nuxt.renderAndGetWindow(jsdom, url)
method to render the url and sent back thewindow
object, useful for test purposes (see examples/with-ava/)
Examples
- Add authenticated routes example: https://nuxtjs.org/examples/auth-routes
v0.7.9
Features
- Add
env
in the data context argument - Add $nuxt.error({ statusCode, message }) method in the client side for calling the error page
Improvements
- Add generated name in the routes generates by the pages directory (ex pages/index.vue will me the
index
name, pages/foo/bar.vue will befoo-bar
)
Fix
- Fix router.base when set to '/' or undefined, avoid generating 2 //
Misc
- Start working on the examples/auth-routes/ example
v0.7.8
Improvements
- Update
vue-router
to v2.1.0 - Add examples/cached-components/ example
v0.7.7
v0.7.6
v0.7.5
Features
nuxt generate
now adds a.nojekyll
file in the generated folder to tell Github Pages to not ignore the_nuxt
directory (see github pages docs about it)
Updates
nuxt init
has been remove, use nuxt/starter instead