Releases: vuejs/vuex
v0.8.2
v0.8.0
v0.7.1
v0.7.0
v0.6.3
-
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
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. Previouslystore.hotUpdate({ modules: { someModule }})
would leave the store with onlysomeModule
, now it simply updatessomeModule
and leaves others intact. -
Standalone build now auto installs when global
Vue
is present.
v0.6.1
v0.6.0
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 tovuex.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
v0.5.0
New
- It now works with the Vuex pane in vue-devtools!
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'