]> git.ipfire.org Git - thirdparty/vuejs/router.git/commit
refactor(history): simplify location as a string
authorEduardo San Martin Morote <posva13@gmail.com>
Fri, 3 Jul 2020 09:31:58 +0000 (11:31 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Fri, 3 Jul 2020 09:31:58 +0000 (11:31 +0200)
commit10a071c85c62b6674929162aa36220bd8c167f27
treee4320ae1e89b687998d14ad1e8a0a8e488c86e46
parentc6274aeaf5ad4ba4f97c82aad3e1819ef20f5d69
refactor(history): simplify location as a string

BREAKING CHANGE: HistoryLocation is just a string now. It was pretty much an
internal property but it could be used inside `history.state`. It used to be an
object `{ fullPath: '/the-url' }`. And it's now just the `fullPath` property.
__tests__/history/memory.spec.ts
__tests__/initialNavigation.spec.ts
__tests__/location.spec.ts
__tests__/router.spec.ts
src/history/common.ts
src/history/html5.ts
src/history/memory.ts
src/router.ts