]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
docs: mention other breaking changes
authorEduardo San Martin Morote <posva13@gmail.com>
Thu, 16 Apr 2020 13:50:39 +0000 (15:50 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Thu, 16 Apr 2020 13:50:39 +0000 (15:50 +0200)
README.md

index 5b71363c97929f23b1b98077c0609f5d49aea199..7e0e8cbcbdbe162931737a6cd49664ab929eb90f 100644 (file)
--- a/README.md
+++ b/README.md
@@ -12,6 +12,13 @@ Since the library is still unstable **and because we want feedback** on bugs and
 
 - `mode: 'history'` -> `history: createWebHistory()`
 - 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`:
+  ```js
+  router.currentRoute.value.matched
+    .map(record => Object.values(record.components))
+    .flat()
+  ```
 
 #### Improvements