Skip to content

Releases: nuxt/nuxt

v0.3.7

11 Nov 00:38
Compare
Choose a tag to compare
v0.3.7 Pre-release
Pre-release

Features

  • Remove the behaviour from the v0.3.6 for the static generation, now the page with a redirection is generated with an empty app telling nuxt that it has not been generated yet and to launch it from the client-side (the state for the store can be already filled)
  • Change redirect api, it's now: redirect([code,] path [, query]), the default status code is 302 Found
export default {
  data ({ redirect, route }) {
    // Check if user is connected via req.session or JWT...
    redirect('/login', { redirect: route.fullPath })
  }
}

v0.3.6

10 Nov 23:01
Compare
Choose a tag to compare
v0.3.6 Pre-release
Pre-release

Features

  • Add redirected key in the result of nuxt.renderRoute(route, context = {}), useful for unit tests
  • Add redirect field in the contextreceived in data (context) and fetch (context), useful for authenticated routes:
// Ex: dashboard.vue
<script>
export default {
  fetch ({ redirect, route }) {
    // Check if user is connected via req.session or JWT...
    redirect({
      path: '/login',
      query: { redirect: route.fullPath }
    })
  }
}
</script>

You can also use redirect('/login') if you don't want to add any query parameter.

The redirect also works for nuxt generate and will create a html page with:

<meta http-equiv="refresh" content="0; url={{ redirectedPath }}" />
<script type="text/javascript">
    window.location.href = '{{ redirectedPath }}'
</script>

v0.3.5

10 Nov 18:36
Compare
Choose a tag to compare
v0.3.5 Pre-release
Pre-release

Feature

  • Add _build and _renderer options to control the start of the renderer and the build process when instantiating Nuxt(options)

Fix

  • Dev server will render the correct routes when router.base is set
  • Fix webpack server config buildPath which was erased
  • Stop using path.join to join url paths (on Windows, will be joined by a \)

v0.3.4

10 Nov 16:17
Compare
Choose a tag to compare
v0.3.4 Pre-release
Pre-release

Features

  • Breaking changes: custom routes are now defined in router.routes, see examples/custom-routes/
  • Add router object to cutomise vue-router options: base and linkActiveClass

v0.3.3

10 Nov 14:10
Compare
Choose a tag to compare
v0.3.3 Pre-release
Pre-release

Misc.

  • Don't use sync function when generating the routes
  • Check is static folder exists before copying it

v0.3.2

10 Nov 13:46
Compare
Choose a tag to compare
v0.3.2 Pre-release
Pre-release

Features

  • Thanks to @alexchopin for making nuxt generate to generate a static website with nuxt.js

v0.3.1

10 Nov 02:38
Compare
Choose a tag to compare
v0.3.1 Pre-release
Pre-release

Features

  • [dev mode] Nuxt.js is now watching on the pages/ folder to reload the build when a .vue file is added or removed (using chokidar)
  • Breaking changes: rename nuxt.stop() to nuxt.close() to stop watching files on dev build (used by most libraries)

Misc.

  • Add use strict in every js files of nuxt

v0.3.0

10 Nov 01:25
Compare
Choose a tag to compare
v0.3.0 Pre-release
Pre-release

Features

  • Breaking change: ./static/ folder is now mapped to /, this to allows to have robots.txt files or sitemap.xml, since there is no main reason to not map it to /
  • Breaking change: nuxt.renderRoute(route, context) send back an object with html and error instead of the html
  • Nuxt.js is now serving the static folder from its render(req, res) function (instead of the server used by nuxt-dev and nuxt-start), this to keep consistency in the behaviour of nuxt

Misc

  • Update with-ava example to check when the app sent back an error from the server
  • Update exit status to 1 when app fail to respect standard

v0.2.6

09 Nov 23:00
Compare
Choose a tag to compare
v0.2.6 Pre-release
Pre-release

Features

  • nuxt build -> Build only the application
  • nuxt start -> Launch the server and nuxt (without building it, so make sure to launch nuxt build before)
  • Add dev option to specify if the build will be for production or development, define also the webpack-dev-middleware and hot-reloading for nuxt-dev

Misc

  • Refactoring some logic for webpack inside the webpack/*.config.js files
  • Update README for production deployment
  • Improve test with ava (checking the value of the color of the element)

v0.2.5

09 Nov 14:55
Compare
Choose a tag to compare
v0.2.5 Pre-release
Pre-release

Move repository to nuxt organization

Feature

  • give the root instance in window.onNuxtReady

Misc.

  • Rename components loading to nuxt-loading and error-page to nuxt-error to avoid global component erase and keep consistency