Skip to content

Releases: nuxt/nuxt

v0.10.7

29 Apr 23:32
Compare
Choose a tag to compare

Features

  • Add generate.interval to wait X ms between every render on nuxt generate (@jroxendal via #617)

Improvements

  • Add --config-file option in nuxt dev mode (@alexmoreno via #592)
  • Add chunkNames on Webpack for code-splitted pages and layouts:

screen shot 2017-04-17 at 16 13 57

Bug fixes

  • The bundles are now directly in the dist folder when using nuxt generate with publicPath being an URL (fix #612)
  • Lock version for Vue ~2.2, we are working on implementing Vue 2.3 as soon as possible! (@qm3ster via #637)

v0.10.6

17 Apr 14:23
Compare
Choose a tag to compare

Features

Improvements

  • You now have access to this in the data hook 🔥
  • Give nuxt instance as context (this) to build.extend method (@any35 via #488)
  • Add store parameter in validate method (@agoalofalife via #507)
  • Add babel-preset-es2015 in dependencies to avoid error with some external libraries

v0.10.5

25 Mar 23:54
Compare
Choose a tag to compare

Features

v0.10.4

25 Mar 18:06
Compare
Choose a tag to compare

Bug fixes

  • Give the layout via window.__NUXT__.layout, this avoids calling middleware on client-side before mounting the app
  • Fix host & port inverted on console.log (#443 (comment))

v0.10.3

25 Mar 14:05
Compare
Choose a tag to compare

Features

  • We can now specify the watchers options for chokidar and webpack via nuxt.config.js:
module.exports = {
  watchers: {
    chokidar: {
      usePolling: true
    },
    webpack: {
      aggregateTimeout: 1000,
      poll: 1000
    }
  }
}

Improvements

  • Show url after each build #443

v0.10.2

25 Mar 11:37
Compare
Choose a tag to compare

Improvements

  • Watch middleware and store with chokidar to avoid restarting the app when these folders are created during development.

Bug fixes

  • Add store in context before hydrating the client (@evseevn via #442, fix #445)

v0.10.1

25 Mar 02:46
Compare
Choose a tag to compare

Improvements

  • Webpack finally build only once, thanks to @AndyHall for his hack webpack/watchpack#25 (comment)
  • Nuxt.js now import .scss, .sass, .less and .styl files (only the webpack loaders dependencies needs to be installed), useful for using external libraries

v0.10.0

24 Mar 18:06
Compare
Choose a tag to compare

✋ 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

  • data is now asyncData for pages components, it's not asyncData which receives the context and can be asynchronous, this is to respect the vue.js methods. It also fix the mixins with data. If you used the context in your data methods, please rename them to asyncData starting from this release. See updated documentation.
  • Static Generated: generate.routeParams is replaced by generate.routes which 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.publicPath option, 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 by @cj in #271). You can now write JSX directly into your Vue components, see hello-world-jsx example.
  • 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-router mode (default to 'history') (@cj via #272)
  • Add ~middleware alias
  • We can now specify a custom layout for the layouts/error.vue component, see #172
  • The app template is now customisable! Read more on the app.html documentation.
  • nuxt build accept now a -c or --config-file option 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.render now always returns a Promise, even in dev mode when the build is not ready yet
  • Cleaner build/error outputs for terminal (@cj via #274)
  • Nuxt.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.js with performance.prefetch: false)
  • We also added gzip support in production (you can disable it via the nuxt.config.js with 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 duration property in transition

Bug fixes

  • When switching layout, the page component are created only once (fix #214)
  • extendRoutes works with generate + windows paths (fix #275)
  • Middleware are called from error page and the layout is respected when redirected (fix #389)

Examples

v0.9.9

10 Feb 23:41
Compare
Choose a tag to compare

Bug fixes

  • Fix regression from v0.9.8 of routes order (#235)

v0.9.8

10 Feb 01:23
Compare
Choose a tag to compare

Features

  • The middleware feature is out 🔥 ! Read more on the documentation.

You can check the example-auth0 repository to see a real-life example. Otherwise, you can check the i18n example or the middleware example.

  • Wildcard route: _.vue will now create a route { path: '/*', name: 'all' }

Improvements

  • ~store links now to the store file which exports the vuex store instance, useful to require it in plugins to extend it, same for ~router. See documentation.
  • A progress bar is now displayed when building the application (thanks to progress-bar-webpack-plugin)

nuxt-build-progress-bar

Bug fixes

  • Fix regression from v0.9.7: data was not called anymore when query changed, it's now fixed.
  • Fix bug: routes generated by file names were in the wrong order.