Skip to content

v0.6.2

Compare
Choose a tag to compare
@yyx990803 yyx990803 released this 08 Mar 10:21
· 984 commits to main since this release

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.