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
andvue-router >= 3.0.0
, and no longer work with lower versions.
Assets
2
- Now includes TypeScript definition. (@snaptopixel)
Assets
2
yyx990803
released this
Breaking Change
- The
router/ROUTE_CHANGED
mutation now sends the payload in the shape of{ to, from }
instead of just theto
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 themeta
property of the current route (@scottbedard via #32) -
The
route
state now exposes thefrom
route (@predhme via #36) -
You can now configure a custom route module name (@vinicius73 via #37):
sync(store, router, { moduleName: 'RouteModule' })
Assets
2
yyx990803
released this
Breaking Changes
store.state.route
is now immutable. Do not attempt to trigger navigations by mutating this object - just call$router.go()
instead.