@cap-js/db-service 1.20.2 → 1.20.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
@@ -4,6 +4,13 @@
4
4
  - The format is based on [Keep a Changelog](http://keepachangelog.com/).
5
5
  - This project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
+ ## [1.20.3](https://github.com/cap-js/cds-dbs/compare/db-service-v1.20.2...db-service-v1.20.3) (2025-08-04)
8
+
9
+
10
+ ### Fixed
11
+
12
+ * detect path expression inside nested xpr after `exists` ([#1293](https://github.com/cap-js/cds-dbs/issues/1293)) ([05c045d](https://github.com/cap-js/cds-dbs/commit/05c045def55862028c026ba885dcfa4cfd019efc))
13
+
7
14
  ## [1.20.2](https://github.com/cap-js/cds-dbs/compare/db-service-v1.20.1...db-service-v1.20.2) (2025-05-28)
8
15
 
9
16
 
@@ -404,7 +404,7 @@ function infer(originalQuery, model) {
404
404
  if (arg.list) arg.list.forEach(arg => inferArg(arg, null, $baseLink, context))
405
405
  if (arg.xpr)
406
406
  arg.xpr.forEach((token, i) =>
407
- inferArg(token, queryElements, $baseLink, { ...context, inXpr: true, inExists: arg.xpr[i - 1] === 'exists' }),
407
+ inferArg(token, queryElements, $baseLink, { ...context, inXpr: true, inExists: inExists || arg.xpr[i - 1] === 'exists' }),
408
408
  ) // e.g. function in expression
409
409
 
410
410
  if (!arg.ref) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cap-js/db-service",
3
- "version": "1.20.2",
3
+ "version": "1.20.3",
4
4
  "description": "CDS base database service",
5
5
  "homepage": "https://github.com/cap-js/cds-dbs/tree/main/db-service#cds-base-database-service",
6
6
  "repository": {