@sap/cds-compiler 5.9.14 → 5.9.16

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
@@ -7,6 +7,13 @@
7
7
  Note: `beta` fixes, changes and features are usually not listed in this ChangeLog but [here](doc/CHANGELOG_BETA.md).
8
8
  The compiler behavior concerning `beta` features can change at any time without notice.
9
9
 
10
+ ## Verion 5.9.16 - 2026-01-12
11
+
12
+ ### Fixed
13
+
14
+ - parser: Fix error with parentheses around sub expressions; they were sometimes closed
15
+ too late, dependending on the operators used inside and after the sub expression.
16
+
10
17
  ## Verion 5.9.14 - 2025-12-03
11
18
 
12
19
  ### Fixed
@@ -650,8 +650,8 @@ function surroundByParens( expr, open, close, asQuery = false ) {
650
650
  expr.$parens.push( location );
651
651
  else
652
652
  expr.$parens = [ location ];
653
- if (expr.$opPrecedence)
654
- expr.$opPrecedence = null;
653
+ if (expr.args?.$opPrecedence)
654
+ expr.args.$opPrecedence = null;
655
655
  return (asQuery) ? { query: expr, location } : expr;
656
656
  }
657
657
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap/cds-compiler",
3
- "version": "5.9.14",
3
+ "version": "5.9.16",
4
4
  "description": "CDS (Core Data Services) compiler and backends",
5
5
  "homepage": "https://cap.cloud.sap/",
6
6
  "author": "SAP SE (https://www.sap.com)",