@sap/cds-compiler 3.5.0 → 3.5.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 3.5.2 - 2022-12-20
11
+
12
+ ### Fixed
13
+
14
+ - to.sql/hdi/hdbcds: Don't process references in actions, as they have no impact on the database - avoids internal errors
15
+
10
16
  ## Version 3.5.0 - 2022-12-07
11
17
 
12
18
  ### Added
@@ -20,26 +26,6 @@ The compiler behavior concerning `beta` features can change at any time without
20
26
  - If option `addTextsLanguageAssoc` is set but ignored by the compiler, an info message is emitted.
21
27
  This can happen if, e.g., the `sap.common.Languages` entity is missing.
22
28
  - Add OData vocabularies 'Offline' and 'PDF'.
23
- - Two new aspects in the `sap.common` context get special meaning:
24
- `sap.common.TextsAspect` and `sap.common.FioriTextsAspect`.
25
- If these aspects exist, the former will be included in all `.texts`
26
- entities without `@fiori.draft.enabled` annotation. The latter will be
27
- included in all `.texts` aspects that are `@fiori.draft.enabled`.
28
- They allow to extend `.texts` entities by simply extending these aspects.
29
- Example:
30
- ```
31
- entity E {
32
- key id : Integer;
33
- content: localized String;
34
- }
35
- extend sap.common.TextsAspect with {
36
- elem: String;
37
- };
38
- // from @sap/cds common.cds
39
- aspect sap.common.TextsAspect {
40
- key locale: String;
41
- }
42
- ```
43
29
 
44
30
  ### Changed
45
31
 
@@ -260,7 +260,7 @@ function transformForRelationalDBWithCsn(inputModel, options, moduleName) {
260
260
  forEachDefinition(csn, temporal.getAnnotationHandler(csn, options, pathDelimiter, {error}));
261
261
 
262
262
  // eliminate the doA2J in the functions 'handleManagedAssociationFKs' and 'createForeignKeyElements'
263
- doA2J && flattening.handleManagedAssociationsAndCreateForeignKeys(csn, options, error, pathDelimiter, true, { allowArtifact: artifact => (artifact.kind === 'entity') });
263
+ doA2J && flattening.handleManagedAssociationsAndCreateForeignKeys(csn, options, error, pathDelimiter, true, { skipDict: { actions: true }, allowArtifact: artifact => (artifact.kind === 'entity') });
264
264
 
265
265
  doA2J && forEachDefinition(csn, flattenIndexes);
266
266
  // Managed associations get an on-condition - in views and entities
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap/cds-compiler",
3
- "version": "3.5.0",
3
+ "version": "3.5.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)",