@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 +7 -0
- package/lib/compiler/populate.js +5 -1
- package/lib/gen/Dictionary.json +1 -1
- package/package.json +1 -1
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
|
package/lib/compiler/populate.js
CHANGED
|
@@ -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
|
package/lib/gen/Dictionary.json
CHANGED