Vuex Router Sync Versions Save

Effortlessly keep vue-router and vuex store in sync.

v6.0.0-rc.1

3 years ago

Features

  • make it compatible with vue3 (vuex 4 and router 4) (#100) (a2a300d)

v5.0.0

6 years ago

Breaking Changes

This major release only breaks backwards compatibility if you use TypeScript.

  • TypeScript type declarations have been updated to be compatible with vuex >= 3.0.0 and vue-router >= 3.0.0, and no longer work with lower versions.

v4.1.0

7 years ago
  • Now includes TypeScript definition. (@snaptopixel)

v4.0.0

7 years ago

Breaking Change

  • The router/ROUTE_CHANGED mutation now sends the payload in the shape of { to, from } instead of just the to route. Although this is a breaking change, no actions are required unless you are explicitly listening to this mutation in a custom plugin.

New

  • The route state now exposes the meta property of the current route (@scottbedard via #32)

  • The route state now exposes the from route (@predhme via #36)

  • You can now configure a custom route module name (@vinicius73 via #37):

    sync(store, router, { moduleName: 'RouteModule' })
    

v2.0.0

7 years ago

Breaking Changes

  • store.state.route is now immutable. Do not attempt to trigger navigations by mutating this object - just call $router.go() instead.