]> git.ipfire.org Git - thirdparty/vuejs/router.git/commit
feat: refactor navigation to comply with vuejs/rfcs#150
authorEduardo San Martin Morote <posva13@gmail.com>
Fri, 17 Apr 2020 17:51:23 +0000 (19:51 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Fri, 17 Apr 2020 17:51:23 +0000 (19:51 +0200)
commit290c3be1f6cb476016f23b77d6fc49987dd84751
tree0e802686cad2a8261fdd6ee4680f8422fc4d83ba
parent0e870d793f2f63ee8916e70d22606318b546de6a
feat: refactor navigation to comply with vuejs/rfcs#150

BREAKING CHANGE: This follows the RFC at https://github.com/vuejs/rfcs/pull/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.
__tests__/errors.spec.ts
__tests__/guards/global-after.spec.ts
__tests__/guards/navigationGuards.spec.ts
__tests__/router.spec.ts
src/errors.ts
src/index.ts
src/navigationGuards.ts
src/router.ts
src/types/index.ts
src/utils/scroll.ts