@sap/eslint-plugin-cds 4.2.2 → 4.2.3

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,10 @@ This project adheres to [Semantic Versioning](https://semver.org/).
6
6
 
7
7
  The format is based on [Keep a Changelog](https://keepachangelog.com/).
8
8
 
9
+ ## [4.2.3] - 2026-05-12
10
+ ### Fixed
11
+ - Don't fail if the `tree-sitter` dependency cannot be installed. This might happen in WebContainer environments where native modules cannot be loaded.
12
+
9
13
  ## [4.2.2] - 2026-05-04
10
14
  ### Fixed
11
15
  - `auth-valid-restrict-grant` now also considers inherited actions.
package/lib/index.js CHANGED
@@ -19,7 +19,6 @@
19
19
  const api = require('./api')
20
20
  const getConfigs = require('./conf')
21
21
  const { allRules, initialiseRules } = require('./rules')
22
- const { javaLanguage } = require('./languages/java/java-language')
23
22
  const packageJson = require('../package.json')
24
23
 
25
24
  const rules = initialiseRules(allRules)
@@ -30,7 +29,7 @@ const plugin = {
30
29
  version: packageJson.version
31
30
  },
32
31
  languages: {
33
- java: javaLanguage
32
+ get java() { return require('./languages/java/java-language').javaLanguage }
34
33
  },
35
34
  configs: {},
36
35
  rules,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap/eslint-plugin-cds",
3
- "version": "4.2.2",
3
+ "version": "4.2.3",
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,8 +20,10 @@
20
20
  "README.md"
21
21
  ],
22
22
  "dependencies": {
23
- "@eslint/plugin-kit": "^0.6.0",
24
- "semver": "^7.7.1",
23
+ "@eslint/plugin-kit": "^0.7.0",
24
+ "semver": "^7.7.1"
25
+ },
26
+ "optionalDependencies": {
25
27
  "tree-sitter": "^0.21.1",
26
28
  "tree-sitter-java": "^0.23.5"
27
29
  },