@sap/cds 8.9.8 → 8.9.9

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,12 @@
4
4
  - The format is based on [Keep a Changelog](https://keepachangelog.com/).
5
5
  - This project adheres to [Semantic Versioning](https://semver.org/).
6
6
 
7
+ ## Version 8.9.9 - 2026-03-10
8
+
9
+ ### Fixed
10
+
11
+ - Requests targeting a view with parameters are now correctly send to remote OData services
12
+
7
13
  ## Version 8.9.8 - 2025-12-17
8
14
 
9
15
  ### Fixed
@@ -311,6 +311,12 @@ function _from(from, kind, model) {
311
311
  queryTarget = model && _getQueryTarget(queryTarget, id, model)
312
312
  const params = _params(args, kind, queryTarget)
313
313
  path.push(`${id}${params}`)
314
+ // args are only set in case the entity has parameters.
315
+ // Check model if that is the case and if so, conform to the OData representation for
316
+ // Views with parameters, meaning the actual entity is behind /Set
317
+ if (queryTarget?.params) {
318
+ path.push(`Set`)
319
+ }
314
320
  } else if (typeof curRef === 'string') {
315
321
  queryTarget = model && _getQueryTarget(queryTarget, curRef, model)
316
322
  path.push(curRef)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap/cds",
3
- "version": "8.9.8",
3
+ "version": "8.9.9",
4
4
  "description": "SAP Cloud Application Programming Model - CDS for Node.js",
5
5
  "homepage": "https://cap.cloud.sap/",
6
6
  "keywords": [