Skip to content

Commit 53ae7bc

Browse files
committed
release: v4.0.0-beta.1
1 parent aba3a3f commit 53ae7bc

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,40 @@
1+
# [4.0.0-beta.1](https://github.com/vuejs/vue-router-next/compare/v4.0.0-alpha.14...v4.0.0-beta.1) (2020-07-03)
2+
3+
### Bug Fixes
4+
5+
- **hash:** manual changes should trigger a navigation ([93891ab](https://github.com/vuejs/vue-router-next/commit/93891abf02fc24d66c6f43926a28f275560fb714)), closes [#346](https://github.com/vuejs/vue-router-next/issues/346)
6+
- **router-link:** add missing prop custom in jsx ([c6274ae](https://github.com/vuejs/vue-router-next/commit/c6274aeaf5ad4ba4f97c82aad3e1819ef20f5d69))
7+
- **router-view:** preserve keep-alive route guard this context ([#344](https://github.com/vuejs/vue-router-next/issues/344)) ([994c073](https://github.com/vuejs/vue-router-next/commit/994c073fd90add30bf16b5268332277f8b082a74))
8+
- **warn:** warn when RouterView is wrapped with transition ([e4b3fbe](https://github.com/vuejs/vue-router-next/commit/e4b3fbe8b799b6621537afe365267a18eab9d3cd))
9+
10+
### Code Refactoring
11+
12+
- **history:** simplify location as a string ([10a071c](https://github.com/vuejs/vue-router-next/commit/10a071c85c62b6674929162aa36220bd8c167f27))
13+
- **router:** remove history property ([aba3a3f](https://github.com/vuejs/vue-router-next/commit/aba3a3f3a0d860f76d75938ae09616a329c7c13c))
14+
15+
### Features
16+
17+
- **guards:** next callback beforeRouteEnter ([d9dad0b](https://github.com/vuejs/vue-router-next/commit/d9dad0b9467fee9478406899043ee35f30cdf1fb))
18+
19+
### BREAKING CHANGES
20+
21+
- **router:** the history property was marked as internal already. Since we
22+
need to pass the history instance to the router, we always have access to it,
23+
differently from Vue Router 3 where the history was instantiated internally.
24+
The history API was also internal (it wasn't documented), so this change
25+
shouldn't be a problem as people shouldn't be relying on `router.history` in
26+
their apps. If you think this property is needed, please open an issue to
27+
discuss the use case. Note it's already accessible as you have to create it:
28+
29+
```js
30+
export const history = createWebHistory()
31+
export const router = createRouter({ history, routes: [] })
32+
```
33+
34+
- **history:** HistoryLocation is just a string now. It was pretty much an
35+
internal property but it could be used inside `history.state`. It used to be an
36+
object `{ fullPath: '/the-url' }`. And it's now just the `fullPath` property.
37+
138
# [4.0.0-alpha.14](https://github.com/vuejs/vue-router-next/compare/v4.0.0-alpha.13...v4.0.0-alpha.14) (2020-07-01)
239

340
### Bug Fixes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-router",
3-
"version": "4.0.0-alpha.14",
3+
"version": "4.0.0-beta.1",
44
"main": "dist/vue-router.cjs.js",
55
"browser": "dist/vue-router.esm.js",
66
"unpkg": "dist/vue-router.global.js",

0 commit comments

Comments
 (0)