@sap/cds-compiler 5.8.0 → 5.8.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.8.2 - 2025-03-07
11
+
12
+ ### Fixed
13
+
14
+ - for.odata: Generate foreign key elements for events again.
15
+
10
16
  ## Version 5.8.0 - 2025-02-27
11
17
 
12
18
  ### Added
@@ -11,7 +11,7 @@ function createForeignKeyElements(csn, options, messageFunctions, csnUtils, iter
11
11
  const { error } = messageFunctions;
12
12
 
13
13
  applyTransformations(csn, { elements: createForeignKeysInCsn, params: createForeignKeysInCsn},
14
- [], Object.assign(iterateOptions, { skip: ['event'] }));
14
+ [], iterateOptions);
15
15
 
16
16
  /**
17
17
  * Process a given elements or params dictionary and create foreign key elements.
@@ -151,7 +151,8 @@ function allInOneFlattening(csn, refFlattener, adaptRefs, inspectRef, getFinalTy
151
151
  }
152
152
  // loop through types as well in order to collect the managaed associations
153
153
  // that reside in types definitions
154
- if ((def.kind === 'action' || def.kind === 'function' || def.kind === 'type' || def.kind === 'aspect') && !isExternalServiceMember(def, defName)) {
154
+ if ((def.kind === 'action' || def.kind === 'function' || def.kind === 'type' || def.kind === 'aspect' || def.kind === 'event')
155
+ && !isExternalServiceMember(def, defName)) {
155
156
  if (def.kind === 'type' && csnUtils.isManagedAssociation(def))
156
157
  allMgdAssocDefs.push(def);
157
158
  else
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap/cds-compiler",
3
- "version": "5.8.0",
3
+ "version": "5.8.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)",