@sap/cds-compiler 4.6.0 → 4.6.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
@@ -8,6 +8,13 @@ Note: `beta` fixes, changes and features are usually not listed in this ChangeLo
8
8
  The compiler behavior concerning `beta` features can change at any time without notice.
9
9
 
10
10
 
11
+ ## Version 4.6.2 - 2024-02-02
12
+
13
+ ### Fixed
14
+
15
+ - compiler: Fix incorrect error about type properties if deprecated flag `ignoreSpecifiedQueryElements` is set.
16
+ - Update OData vocabularies: 'Authorization', 'Common'.
17
+
11
18
  ## Version 4.6.0 - 2024-01-26
12
19
 
13
20
  ### Added
@@ -100,6 +100,8 @@ function populate( model ) {
100
100
  ? 'Composition'
101
101
  : true;
102
102
  const redirectInSubQueries = isDeprecatedEnabled( options, '_redirectInSubQueries' );
103
+ const ignoreSpecifiedElements
104
+ = isDeprecatedEnabled( model.options, 'ignoreSpecifiedQueryElements' );
103
105
 
104
106
  forEachDefinition( model, traverseElementEnvironments );
105
107
  while (newAutoExposed.length) {
@@ -542,7 +544,9 @@ function populate( model ) {
542
544
  ielem[prop].$priority = 'annotate';
543
545
  wasAnnotated = true;
544
546
  }
545
- else if (typePropertiesFromSpecifiedElements[prop]) {
547
+ else if (typePropertiesFromSpecifiedElements[prop] && !ignoreSpecifiedElements) {
548
+ // If ignoreSpecifiedElements is set, we ignore type properties of specified elements,
549
+ // similar to how it was done in cds-compiler v3. Only annotations are copied.
546
550
  if (!ielem.typeProps$)
547
551
  setLink( ielem, 'typeProps$', Object.create( null ) );
548
552
  // Note: At this point in time, effectiveType() was likely not called on the
@@ -2690,7 +2690,7 @@
2690
2690
  "Capabilities.PermissionType": {
2691
2691
  "$kind": "ComplexType",
2692
2692
  "Properties": {
2693
- "SchemeName": "Auth.SchemeName",
2693
+ "SchemeName": "Authorization.SchemeName",
2694
2694
  "Scopes": "Collection(Capabilities.ScopeType)"
2695
2695
  }
2696
2696
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap/cds-compiler",
3
- "version": "4.6.0",
3
+ "version": "4.6.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)",