|
| 1 | +# [4.0.0-alpha.13](https://github.com/vuejs/vue-router-next/compare/v4.0.0-alpha.12...v4.0.0-alpha.13) (2020-06-18) |
| 2 | + |
| 3 | +### Bug Fixes |
| 4 | + |
| 5 | +- allow arbitrary selectors starting with # ([14b859d](https://github.com/vuejs/vue-router-next/commit/14b859dfa6fa5ccefe42c6f834ddd24dd9921a1b)) |
| 6 | +- use assign to align with Vue browser support ([#311](https://github.com/vuejs/vue-router-next/issues/311)) ([f80b670](https://github.com/vuejs/vue-router-next/commit/f80b670d4dac30323221fcb2f93137ffd874c51b)), closes [#304](https://github.com/vuejs/vue-router-next/issues/304) |
| 7 | +- **hash:** use location.pathname ([0078147](https://github.com/vuejs/vue-router-next/commit/007814745dd98bb8cfa53f44d5c308193b2fbb60)), closes [#261](https://github.com/vuejs/vue-router-next/issues/261) |
| 8 | +- **matcher:** correct check when removing existing records on add ([2c267f5](https://github.com/vuejs/vue-router-next/commit/2c267f5aceec899c84514571e4fa75dc61441ed4)) |
| 9 | +- **matcher:** override records by name when adding ([07100fc](https://github.com/vuejs/vue-router-next/commit/07100fc1386fb636da3eb1c8196a36f6538eb91f)) |
| 10 | +- **scroll:** avoid reusing scroll position ([dfc1fb3](https://github.com/vuejs/vue-router-next/commit/dfc1fb34a761138a3390ccd5a8a042863018222a)) |
| 11 | + |
| 12 | +### Features |
| 13 | + |
| 14 | +- **scroll:** allow passing behavior option ([12e9209](https://github.com/vuejs/vue-router-next/commit/12e92094df46129ddf75d0fa8e3d9816644200de)) |
| 15 | +- **scroll:** replace selector with el ([ab8a01c](https://github.com/vuejs/vue-router-next/commit/ab8a01c0a6eda1bafc293b39cb6c77ed10fb359e)) |
| 16 | +- **warn:** warn if component is a promise ([4b2bfa8](https://github.com/vuejs/vue-router-next/commit/4b2bfa80cd3440441d71e690ca85d0532a4b8428)) |
| 17 | +- **warn:** warn when routes are not found ([#279](https://github.com/vuejs/vue-router-next/issues/279)) ([d125356](https://github.com/vuejs/vue-router-next/commit/d125356e0f67f906f5f602f0b485f9e1e4f5bf51)) |
| 18 | +- allow props for named views ([dbe2344](https://github.com/vuejs/vue-router-next/commit/dbe2344af5fed39aa4aa8fbfe48b195580d9538b)) |
| 19 | +- **warn:** warn multiple params with same name ([5c8cd6e](https://github.com/vuejs/vue-router-next/commit/5c8cd6e8ae1223e9871252cc617b19424f01c5c2)) |
| 20 | + |
| 21 | +### BREAKING CHANGES |
| 22 | + |
| 23 | +- **scroll:** this change follows the RFC at |
| 24 | + https://github.com/vuejs/rfcs/pull/176: |
| 25 | + |
| 26 | +* `selector` is renamed into `el` |
| 27 | +* `el` also accepts an `Element` |
| 28 | +* `left` and `top` are passed along `el` instead of inside an object |
| 29 | + passed as `offset` |
| 30 | + |
| 31 | +- **scroll:** `scrollBehavior` doesn't accept an object with `x` and `y` |
| 32 | + coordinates anymore. Instead it accepts an object like |
| 33 | + [`ScrollToOptions`](https://developer.mozilla.org/en-US/docs/Web/API/ScrollToOptions) |
| 34 | + with `left` and `top` properties. You can now also pass the |
| 35 | + [`behavior`](https://developer.mozilla.org/en-US/docs/Web/API/ScrollToOptions/behavior) |
| 36 | + property to enable smooth scrolling in most browsers. |
| 37 | +- It is now necessary to escape id selectors like |
| 38 | + explained at https://mathiasbynens.be/notes/css-escapes. This was |
| 39 | + necessary to allow selectors like `#container > child`. |
| 40 | + |
1 | 41 | # [4.0.0-alpha.12](https://github.com/vuejs/vue-router-next/compare/v4.0.0-alpha.11...v4.0.0-alpha.12) (2020-05-19) |
2 | 42 |
|
3 | 43 | ### Bug Fixes |
|
0 commit comments