Skip to content

Commit 9f89b11

Browse files
committed
1 parent 5b8983d commit 9f89b11

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

packages/router/CHANGELOG.md

+38
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,41 @@
1+
## [4.1.4](https://github.com/vuejs/router/compare/v4.1.3...v4.1.4) (2022-08-22)
2+
3+
## Important Note
4+
5+
Changes introduced by e8875705eb8b8a0756544174b85a1a3c2de55ff6.
6+
7+
If you were relying on passing `params` that were not defined as
8+
part of the `path`, eg: having a route defined as follows:
9+
10+
```js
11+
{
12+
path: '/somewhere',
13+
name: 'somewhere'
14+
}
15+
```
16+
17+
And pushing with an _artificial_ param:
18+
19+
```js
20+
router.push({ name: 'somewhere', params: { oops: 'gets removed' }})
21+
```
22+
23+
This change will break your app. This behavior has worked in some
24+
scenarios but has been **advised against** for years as it's an
25+
anti-pattern in routing. You can still put the data in `query` or as an
26+
actual param. Fixing #1497, required getting rid of unused params which
27+
and therefore will break this anti-pattern usage.
28+
29+
### Bug Fixes
30+
31+
- **build:** production mjs import ([53f7206](https://github.com/vuejs/router/commit/53f720622aa273e33c05517fa917cdcfbfba52bc)), closes [#1516](https://github.com/vuejs/router/issues/1516)
32+
- **build:** remove devtools in cjs production ([5b8983d](https://github.com/vuejs/router/commit/5b8983d04592c1420837c4533ee3b6cf6a07a314)), closes [#1524](https://github.com/vuejs/router/issues/1524)
33+
- **matcher:** remove unused params ([e887570](https://github.com/vuejs/router/commit/e8875705eb8b8a0756544174b85a1a3c2de55ff6)), closes [#1497](https://github.com/vuejs/router/issues/1497)
34+
35+
### Features
36+
37+
- pass state in guards and redirect ([add447b](https://github.com/vuejs/router/commit/add447b4595330750b05e9c1dda07cd5b2e6d41f)), closes [#1472](https://github.com/vuejs/router/issues/1472)
38+
139
## [4.1.3](https://github.com/vuejs/router/compare/v4.1.2...v4.1.3) (2022-07-27)
240

341
### Bug Fixes

packages/router/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-router",
3-
"version": "4.1.3",
3+
"version": "4.1.4",
44
"main": "index.js",
55
"unpkg": "dist/vue-router.global.js",
66
"jsdelivr": "dist/vue-router.global.js",

0 commit comments

Comments
 (0)