@sap/cds-compiler 4.3.0 → 4.3.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,13 @@
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 4.3.2 - 2023-10-25
11
+
12
+ ### Fixed
13
+
14
+ - compiler: Fix auto-exposure of composition target entities inside anonymous composition target aspects.
15
+ - to.hana: Fix a bug in association to join translation, expect ON condition operand to be a function without arguments.
16
+
10
17
  ## Version 4.3.0 - 2023-09-29
11
18
 
12
19
  ### Added
@@ -133,6 +133,8 @@ function kickStart( model ) {
133
133
  if (target)
134
134
  model.$compositionTargets[target.name.id] = true;
135
135
  }
136
+ if (elem.targetAspect?.elements)
137
+ elem = elem.targetAspect;
136
138
  forEachGeneric( elem, 'elements', tagCompositionTargets );
137
139
  }
138
140
 
@@ -733,7 +733,8 @@ function translateAssocsToJoins(model, inputOptions = {})
733
733
  // this will substitute multiple backlink conditions ($self = ... AND $self = ...AND ...)
734
734
  if(expr.op) {
735
735
  let x = clone(expr);
736
- x.args = expr.args.map(cloneOnCondition);
736
+ if(expr.args)
737
+ x.args = expr.args.map(cloneOnCondition);
737
738
  return x;
738
739
  }
739
740
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap/cds-compiler",
3
- "version": "4.3.0",
3
+ "version": "4.3.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)",