File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,18 @@ Check the [playground](https://github.com/vuejs/vue-router-next/tree/master/play
12
12
13
13
### Breaking changes compared to [email protected]
14
14
15
- - ` mode: 'history' ` -> ` history: createWebHistory() `
15
+ - The ` mode: 'history' ` option has been replaced with a more flexible one named ` history ` :
16
+
17
+ ``` js
18
+ import { createRouter , createWebHistory } from ' vue-router'
19
+ // there is also createWebHashHistory and createMemoryHistory
20
+
21
+ createRouter ({
22
+ history: createWebHistory (),
23
+ routes: [],
24
+ })
25
+ ```
26
+
16
27
- ` base ` option is now passed as the first argument to ` createWebHistory ` (and other histories)
17
28
- Catch all routes (` /* ` ) must now be defined using a parameter with a custom regex: ` /:catchAll(.*) `
18
29
- ` router.match ` and ` router.resolve ` are merged together into ` router.resolve ` with a slightly different signature
You can’t perform that action at this time.
0 commit comments