@sap/eslint-plugin-cds 3.0.3 → 3.0.5

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
@@ -6,6 +6,18 @@ This project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
7
  The format is based on [Keep a Changelog](http://keepachangelog.com/).
8
8
 
9
+ ## [3.0.5] - 2024-09-11
10
+
11
+ ### Fixed
12
+
13
+ - Inferred rules did not run when executed via `eslint` or `cds lint`.
14
+
15
+ ## [3.0.4] - 2024-06-19
16
+
17
+ ### Changed
18
+
19
+ - Internal refactorings
20
+
9
21
  ## [3.0.3] - 2024-05-08
10
22
 
11
23
  ### Fixed
@@ -68,7 +68,7 @@ module.exports = (spec) => {
68
68
  Cache.remove(`rule:${cdscontext.id}:${Cache.get('rootpath')}`)
69
69
  Cache.remove(`report:${context.getFilename()}:${context.id}`)
70
70
  }
71
- if (isTest || showInEditor || Cache.has(`rule:${cdscontext.id}:${Cache.get('rootpath')}`)) {
71
+ if (isTest || showInEditor || !Cache.has(`rule:${cdscontext.id}:${Cache.get('rootpath')}`)) {
72
72
  LOG && LOG(` Model: "${meta.model}" Rule: ${context.id}`)
73
73
  if (!showInEditor) {
74
74
  Cache.set(`rule:${cdscontext.id}:${Cache.get('rootpath')}`, 'done')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap/eslint-plugin-cds",
3
- "version": "3.0.3",
3
+ "version": "3.0.5",
4
4
  "description": "ESLint plugin including recommended SAP Cloud Application Programming model and environment rules",
5
5
  "homepage": "https://cap.cloud.sap/",
6
6
  "keywords": [
@@ -20,7 +20,7 @@
20
20
  "README.md"
21
21
  ],
22
22
  "dependencies": {
23
- "@sap/cds": ">=5.6.0",
23
+ "@sap/cds": ">=7",
24
24
  "semver": "^7.3.4"
25
25
  },
26
26
  "peerDependencies": {