]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
docs: add changes
authorEduardo San Martin Morote <posva13@gmail.com>
Wed, 22 Apr 2020 20:08:21 +0000 (22:08 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Wed, 22 Apr 2020 20:08:21 +0000 (22:08 +0200)
README.md

index d34b8ffef4cba44f334e64687fac584eddc15833..428632bc0adceecedaed958286ed3d463064dab6 100644 (file)
--- a/README.md
+++ b/README.md
@@ -11,6 +11,7 @@ Since the library is still unstable **and because we want feedback** on bugs and
 ### Breaking changes compared to vue-router@3.x
 
 - `mode: 'history'` -> `history: createWebHistory()`
+- `base` option is now passed as the first argument to `createWebHistory` (and other histories)
 - Catch all routes (`/*`) must now be defined using a parameter with a custom regex: `/:catchAll(.*)`
 - `router.match` and `router.resolve` are merged together into `router.resolve` with a slightly different signature
 - `router.getMatchedComponents` is now removed as they can be retrieved from `router.currentRoute.value.matched`:
@@ -19,6 +20,7 @@ Since the library is still unstable **and because we want feedback** on bugs and
     .map(record => Object.values(record.components))
     .flat()
   ```
+- _resolving_(`router.resolve`) or _pushing_ (`router.push`) a location with missing params no longer warns and produces an invalid URL, but throws an Error instead
 
 #### Improvements