@evobug_com/safe-ts-feature-vue-router 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @evobug_com/safe-ts-feature-vue-router
2
2
 
3
- SAFE-TS feature pack for vue-router 4: which router methods reject or throw, with the exact errors, and safe versions of them that return a Result (push(router, to), resolve(router, to), ...), with the error types and guards.
3
+ SAFE-TS feature pack for vue-router 4 and 5: which router methods reject or throw, with the exact errors, and safe versions of them that return a Result (push(router, to), resolve(router, to), ...), with the error types and guards.
4
4
 
5
5
  **Documentation: [safe-ts.evobug-pages.com/vue/router](https://safe-ts.evobug-pages.com/vue/router)**
6
6
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@evobug_com/safe-ts-feature-vue-router",
3
- "version": "0.3.0",
4
- "description": "SAFE-TS feature pack for vue-router 4: which router methods reject or throw, with the exact errors, and safe versions of them that return a Result (push(router, to), resolve(router, to), ...), with the error types and guards.",
3
+ "version": "0.4.0",
4
+ "description": "SAFE-TS feature pack for vue-router 4 and 5: which router methods reject or throw, with the exact errors, and safe versions of them that return a Result (push(router, to), resolve(router, to), ...), with the error types and guards.",
5
5
  "keywords": [
6
6
  "safe-ts",
7
7
  "typescript",
@@ -29,8 +29,8 @@
29
29
  "LICENSE-APACHE"
30
30
  ],
31
31
  "peerDependencies": {
32
- "@evobug_com/safe-ts-std": "^0.3.0",
33
- "vue-router": "^4.0.0"
32
+ "@evobug_com/safe-ts-std": "^0.4.0",
33
+ "vue-router": "^4.0.0 || ^5.0.0"
34
34
  },
35
35
  "publishConfig": {
36
36
  "access": "public"
package/safe-ts.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "library": "vue-router",
4
4
  "versions": {
5
5
  "min": "4.0.0",
6
- "below": "5.0.0"
6
+ "below": "6.0.0"
7
7
  },
8
8
  "modules": [
9
9
  {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$comment": "The router methods of vue-router 4 that fail, by how, with what they fail with in the notation of safe-ts.json's $comment (docs/guide/libraries.md, \"What `error` says\"). test/vue-router.test.ts makes each failure happen against the installed vue-router and checks it against the text; safe-ts.json and the safe versions are generated from this file (`npm run generate:safe`). `push` and `replace` throw an unknown route name or a missing required param synchronously, before their promise exists, and reject with the rest; their safe versions return both in the promise. A lazy route component whose import resolves to nothing fails with `Couldn't resolve component`; in 4.0.x so does one whose import rejects. A navigation a guard stops (`return false`), one a newer navigation cancels and one to the current location don't fail: the promise resolves to a NavigationFailure. `isReady()` before any navigation stays pending. go/back/forward call `history.go` and return nothing; useLink's `navigate` (and so <RouterLink>) catches push's rejection itself.",
3
3
  "library": "vue-router",
4
- "versions": { "min": "4.0.0", "below": "5.0.0" },
4
+ "versions": { "min": "4.0.0", "below": "6.0.0" },
5
5
  "errors": {
6
6
  "vue-router": {
7
7
  "Router#push": "Error {type: 1, location}: No match for | Error: Missing required param | (what a navigation guard throws, returns or passes to next) | (what a lazy route component's import rejects with) | Error: Couldn't resolve component",