4.0.0-alpha.7 (2020-04-17)
- add
$route
and$router
types (a4f80aa) - add guards types (c7ccd5a)
- refactor navigation to comply with vuejs/rfcs#150 (290c3be)
- This follows the RFC at vuejs/rfcs#150
Summary:
router.afterEach
androuter.onError
are now the global equivalent ofrouter.push
/router.replace
as well as navigation through the interface (history.go()
). A navigation only rejects if there was an unexpected error. A navigation failure will still resolve the promise returned byrouter.push
and be exposed as the resolved value.
4.0.0-alpha.6 (2020-04-17)
- history: allow base with / and base tag (d7c71b5), closes #164
- history: allow hash history with no origin (760d216), closes #163
- scroll: only apply on browser (cf53192)
- revert history navigation if navigation is cancelled (d8a0d11)
- router: merge createHref into resolve (66b2db9)
- add this.$route (92dc18d)
- add this.$router (1807f30)
- scroll: handle scroll on popstate (181efe9)
- merge meta fields (72a052f)
- guards: support errors in navigation guards (23ed08d)
- router: hasRoute (ca02444)
- Revert "test: only call browser.end on the last test" (d3221f1)
- router: createHref is removed from the router. Instead, resolve
returns a location object with the corresponding
href
property
4.0.0-alpha.5 (2020-04-08)
- link: not active when matched is empty (acd644d)
- check query and hash when navigating (3862ad9)
- ignore order of keys in query and params (643bd15)
- skip initial guards with static redirect (c76bb93)
- types: add missing exported types (ec241f7), closes #147
- allow symbols as route record name (f42ab3f)
- link: activeClass and exactActiveClass props (d53b383)
- link: allow
custom
prop (874510b)
- Renamed types by removing suffix Normalized and using Raw instead
RouteLocation
->RouteLocationRaw
RouteLocationNormalized
->RouteLocation
RouteLocationNormalized
is now a location that can be displayed (not a static redirect)RouteLocationNormalizedResolved
->RouteLocationNormalizedLoaded
RouteRecord
->RouteRecordRaw
RouteRecordNormalized
->RouteRecord
RouteRecordNormalized
is now a record that is not a static redirect
4.0.0-alpha.4 (2020-03-28)
- history: use current history state when replacing (5d80209)
- export more types (1583d48), closes #137
- guards: free instances only if navigation is confirmed (d0514e1)
- hash: fix base position for hash routing (ba40b8f)
- initial location with base (d05208b)
- router: prevent duplicated navigation on aliases (e825586)
- allow passing state to history (ac1c96f)
- improve route access (baf266c)
- history: expose state on html5 (3f83607)
- matcher: remove aliases alongside the original record (26b71b2)
- router: support custom parseQuery and stringifyQuery (#136) (5dce7bc)
- view: add props option as boolean (7fe1e7d)
- view: allow passing props as a function (494fc5e)
- view: useView to customize router-view (06b0c34)
- allow true in
next
(d76c6aa) - invoke guards with the right context (7053413)
- lazy loading (6ecdc70)
- view: allow props as object in record (fd4dc06)
useRoute
now retrieves a reactive RouteLocationNormalized instead of a Ref. This means there is no need to use.value
when accessing the route. You still need to wrap it withtoRefs
if you want to expose parts of the route:setup () { return { params: toRefs(useRoute()).params } }
4.0.0-alpha.3 (2020-03-14)
- add missing type definitions
4.0.0-alpha.2 (2020-03-14)
- history: correct url when replacing current location (704b45e)
- link: allow attrs to override behavior (4cae9db)
- link: allow custom classes (#134) (392c295), closes #133
- link: navigate to the alias path (3284110)
- link: non active repeatable params (0ccbc1e)
- add aliasOf to normalized records (d9f3174)
- handle active/exact in Link (6f49dce)
- matcher: link aliases to their original record (e9eb648)
4.0.0-alpha.1 (2020-02-26)
- rename createHistory and createHashHistory (7dbebb6)
- add dynamic routing at router level (a7943c6)
-
createHistory
is now namedcreateWebHistory
.createHashHistory
is now namedcreateWebHashHistory
.Both createHistory and createHashHistory are renamed to better reflect that they must be used in a browser environment while createMemoryHistory doesn't.
4.0.0-alpha.0 (2020-02-26)
Breaking changes compared to [email protected]
mode: 'history'
->history: createHistory()
- Catch all routes (
/*
) must now be defined using a parameter with a custom regex:/:catchAll(.*)
keep-alive
is not yet supported- Partial support of per-component navigation guards. No
beforeRouteEnter
yet