Skip to content

Releases: vuejs/vuex

v0.8.2

28 Jun 03:04
Compare
Choose a tag to compare

Compatibility with Vue 2.0.0-alpha.7.

v0.8.0

23 Jun 17:41
Compare
Choose a tag to compare
  • Now supports both Vue 1.x and 2.0!

  • Small breaking change: store.watch now only accept functions:

    // before
    store.watch('a.b', cb)
    
    // after
    store.watch(state => state.a.b, cb)

v0.7.1

22 Jun 18:10
Compare
Choose a tag to compare
  • Fix devtools middleware timetravel

v0.7.0

21 Jun 08:06
Compare
Choose a tag to compare

Use 0.8.0 which supports both Vue 2.0 and 1.x

  • Support Vue 2.0.
  • Not compatible with Vue 1.x

v0.6.3

23 Apr 16:19
Compare
Choose a tag to compare
  • Store module key must now be a single identifier (no longer support nested paths). e.g.:

    new Vuex.Store({
      modules: {
        'a.b.c': { ... } // this would no longer work
      }
    })

    This was not a public feature, and it didn't prove useful. It also introduced extra dependency on Vue internals due to the reliance on path parser. It is now removed for simplicities sake.

  • Minor warning improvements.

  • Silent mutation dispatch support. Documentation

  • Improved FSB support. cbfd5b8

v0.6.2

08 Mar 10:21
Compare
Choose a tag to compare

New

  • store.dispatch now also supports object-format mutations. For example:

    store.dispatch({
      type: 'INCREMENT',
      by: 10
    })

    The corresponding mutation handler function will receive the object as the second argument:

    mutations: {
      INCREMENT (state, payload) {
        state.count += payload.by
      }
    }
  • store.hotUpdate now supports swapping individual modules. Previously store.hotUpdate({ modules: { someModule }}) would leave the store with only someModule, now it simply updates someModule and leaves others intact.

  • Standalone build now auto installs when global Vue is present.

v0.6.1

08 Mar 10:15
Compare
Choose a tag to compare
  • fixed npm dist build

v0.6.0

07 Mar 02:46
Compare
Choose a tag to compare

Note: the npm build for this version is wrong - use 0.6.1 instead. Just specify ^6.0.0 and you will get it.

Sorry for another release with breaking changes - but I'd rather ship it sooner than later! Please bear with me before we reach 1.0, but this is pretty close :)

Breaking

  • vuex.state option has been renamed to vuex.getters:

    vuex: {
      getters: {
        count: state => state.count
      }
    }

    vuex.state still works - but you will see a deprecation warning about it.

  • Getters are now required to be pure functions. This means they can no longer access this. This makes them globally cacheable - thus the same expensive getter shared across multiple components will be evaluated only once for all of them.

    If you need this to compute local derived state, just define separate, local computed properties:

    vuex: {
      getters: {
        currentId: state => state.currentId
      }
    },
    computed: {
      isCurrent () {
        return this.id === this.currentId
      }
    }

v0.5.1

04 Mar 12:39
Compare
Choose a tag to compare
  • Fixed devtools + strict mode

v0.5.0

04 Mar 12:38
Compare
Choose a tag to compare

New

Breaking

  • Vuex.createLogger has been deprecated. The function is now no longer bundled by default, to use it, import it directly:

    import createLogger from 'vuex/logger'