Skip to content

Upgrading to 0.20.7 ​

Breaking changes ​

Router helper types ​

RegisteredRouteMap, RegisteredRouterRoute, and RegisteredRoutesName are no longer exported. Infer route types from your router instead, using typeof router.route or typeof router.route.name. RegisteredRoutesName is exported again, but deprecated, in 0.20.8.

AddBeforeRouteHook and AddAfterRouteHook are removed. Infer registration method types from the router, for example typeof router.onBeforeRouteEnter.

For routers created with global: false, use createRouterAssets(router) to get components, composables, and component hooks tied to that router. See Type Safety.

Full release notes.