@sap/cds-compiler 5.1.0 → 5.1.2

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,12 @@
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
+ ## Version 5.1.2 - 2024-08-05
11
+
12
+ ### Fixed
13
+
14
+ - compiler: In parseCdl mode, bound actions specifying the binding parameter with `$self` did not work.
15
+
10
16
  ## Version 5.1.0 - 2024-07-25
11
17
 
12
18
  ### Added
@@ -1203,7 +1203,9 @@ function define( model ) {
1203
1203
  const type = first?.type || first?.items?.type; // this sequence = no derived type
1204
1204
  const path = type?.path;
1205
1205
  if (path?.length === 1 && path[0]?.id === '$self') { // TODO: no where: ?
1206
- const { $self } = main.$tableAliases;
1206
+ const $self = main.$tableAliases?.$self ||
1207
+ main.kind === 'extend' && { name: { id: '$self' } };
1208
+ // remark: an extend has no "table alias" `$self` (relevant for parse-cdl)
1207
1209
  setLink( type, '_artifact', $self );
1208
1210
  setLink( path[0], '_artifact', $self );
1209
1211
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap/cds-compiler",
3
- "version": "5.1.0",
3
+ "version": "5.1.2",
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)",