Skip to content

Latest commit

 

History

History
186 lines (114 loc) · 10.8 KB

CHANGELOG.md

File metadata and controls

186 lines (114 loc) · 10.8 KB

4.0.0-alpha.7 (2020-04-17)

Features

  • add $route and $router types (a4f80aa)
  • add guards types (c7ccd5a)
  • refactor navigation to comply with vuejs/rfcs#150 (290c3be)

BREAKING CHANGES

  • This follows the RFC at vuejs/rfcs#150 Summary: router.afterEach and router.onError are now the global equivalent of router.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 by router.push and be exposed as the resolved value.

4.0.0-alpha.6 (2020-04-17)

Bug Fixes

  • 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)

Code Refactoring

  • router: merge createHref into resolve (66b2db9)

Features

Reverts

  • Revert "test: only call browser.end on the last test" (d3221f1)

BREAKING CHANGES

  • 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)

Bug Fixes

  • 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

Features

  • allow symbols as route record name (f42ab3f)
  • link: activeClass and exactActiveClass props (d53b383)
  • link: allow custom prop (874510b)

BREAKING CHANGES

  • 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)

Bug Fixes

  • 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)

Features

  • 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)

BREAKING CHANGES

  • 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 with toRefs if you want to expose parts of the route:
    setup () {
      return { params: toRefs(useRoute()).params }
    }

4.0.0-alpha.3 (2020-03-14)

Bug Fixes

  • add missing type definitions

4.0.0-alpha.2 (2020-03-14)

Bug Fixes

  • 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)

Features

  • 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)

Code Refactoring

  • rename createHistory and createHashHistory (7dbebb6)

Features

  • add dynamic routing at router level (a7943c6)

BREAKING CHANGES

  • createHistory is now named createWebHistory. createHashHistory is now named createWebHashHistory.

    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)

Known issues

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(.*)

Missing features

  • keep-alive is not yet supported
  • Partial support of per-component navigation guards. No beforeRouteEnter yet