Skip to content

Releases: nuxt/nuxt

v0.8.3

08 Dec 10:48
Compare
Choose a tag to compare
v0.8.3 Pre-release
Pre-release

Bug fixes

  • Fix layouts/error.vue which was not assigned to the right variable when existing

v0.8.2

07 Dec 22:59
Compare
Choose a tag to compare
v0.8.2 Pre-release
Pre-release

Bug fix

  • Set window.onNuxtReady before importing the plugins so we can use this hook inside them

v0.8.1

07 Dec 22:48
Compare
Choose a tag to compare
v0.8.1 Pre-release
Pre-release

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

07 Dec 18:43
Compare
Choose a tag to compare
v0.8.0 Pre-release
Pre-release

Breaking Changes

  • The layouts has been moved to the layouts/ directory for better architecting. Which have to move your pages/_app.vue to layouts/app.vueand pages/_error.vue to layouts/error.vue
  • When used programmatically, you now have to call nuxt.build() because new 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 the window object, useful for test purposes (see examples/with-ava/)

Examples

v0.7.9

04 Dec 18:21
Compare
Choose a tag to compare
v0.7.9 Pre-release
Pre-release

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 be foo-bar)

Fix

  • Fix router.base when set to '/' or undefined, avoid generating 2 //

Misc

v0.7.8

01 Dec 18:11
Compare
Choose a tag to compare
v0.7.8 Pre-release
Pre-release

Improvements

v0.7.7

28 Nov 16:30
Compare
Choose a tag to compare
v0.7.7 Pre-release
Pre-release

Improvements

  • We don't need to bind nuxt.render.bind(nuxt) anymore to use nuxt.render as a middleware (Issue #18)

v0.7.6

27 Nov 17:49
Compare
Choose a tag to compare
v0.7.6 Pre-release
Pre-release

Bug fixes

  • Make sure to generate the .nojekyll file empty

v0.7.5

27 Nov 17:14
Compare
Choose a tag to compare
v0.7.5 Pre-release
Pre-release

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

v0.7.4

25 Nov 17:01
Compare
Choose a tag to compare
v0.7.4 Pre-release
Pre-release

Breaking Changes

  • pages/_error-debug.vue has been removed, now only pages/_error.vue should be defined

Improvements

  • Add Content-Length header in the server when rendering the html