@ethlete/eslint-plugin 1.0.0-next.28 → 1.0.0-next.29

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.0-next.29
4
+
5
+ ### Patch Changes
6
+
7
+ - `no-angular-router-api` names `injectRouterState().id` / `.trigger` as the replacement for `router.currentNavigation` and `lastSuccessfulNavigation`.
8
+
3
9
  ## 1.0.0-next.28
4
10
 
5
11
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,11 @@
1
1
  {
2
2
  "name": "@ethlete/eslint-plugin",
3
- "version": "1.0.0-next.28",
3
+ "version": "1.0.0-next.29",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "https://github.com/ethlete-io/ethdk",
7
+ "directory": "libs/eslint-plugin"
8
+ },
4
9
  "license": "MIT",
5
10
  "type": "commonjs",
6
11
  "main": "./src/index.js",
@@ -19,8 +19,8 @@
19
19
  * this.router.events → injectRouterEvent()
20
20
  * this.router.routerState → injectRouterState()
21
21
  * this.router.snapshot → injectRouterState()
22
- * this.router.lastSuccessfulNavigation → injectRouterState()
23
- * this.router.currentNavigation → injectRouterState()
22
+ * this.router.lastSuccessfulNavigation → injectRouterState().id / .trigger
23
+ * this.router.currentNavigation → injectRouterState().id / .trigger (navigation state: injectRouterNavigationState())
24
24
  *
25
25
  * ✅ inject(Router) is still fine for navigation:
26
26
  * router.navigate(['/path'])
@@ -47,8 +47,11 @@ const ROUTER_STATE_PROPS = new Map([
47
47
  ['url', "injectUrl() from '@ethlete/core'"],
48
48
  ['events', "injectRouterEvent() from '@ethlete/core'"],
49
49
  ['routerState', "injectRouterState() from '@ethlete/core'"],
50
- ['lastSuccessfulNavigation', "injectRouterState() from '@ethlete/core'"],
51
- ['currentNavigation', "injectRouterState() from '@ethlete/core'"],
50
+ ['lastSuccessfulNavigation', "injectRouterState() from '@ethlete/core' (its 'id' and 'trigger')"],
51
+ [
52
+ 'currentNavigation',
53
+ "injectRouterState() from '@ethlete/core' (its 'id' and 'trigger'), or injectRouterNavigationState() for the navigation's state",
54
+ ],
52
55
  ]);
53
56
 
54
57
  /** @type {import('eslint').Rule.RuleModule} */