@sap/cds 7.4.1 → 7.4.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
|
@@ -4,6 +4,13 @@
|
|
|
4
4
|
- The format is based on [Keep a Changelog](http://keepachangelog.com/).
|
|
5
5
|
- This project adheres to [Semantic Versioning](http://semver.org/).
|
|
6
6
|
|
|
7
|
+
## Version 7.4.2 - 2023-11-30
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- Typing for `DELETE.from(<e>.drafts)`
|
|
12
|
+
- UUID keys must not be generated for associations
|
|
13
|
+
|
|
7
14
|
## Version 7.4.1 - 2023-11-23
|
|
8
15
|
|
|
9
16
|
### Fixed
|
package/apis/ql.d.ts
CHANGED
|
@@ -279,8 +279,9 @@ export class UPSERT<T> extends ConstructedQuery {
|
|
|
279
279
|
|
|
280
280
|
export class DELETE<T> extends ConstructedQuery {
|
|
281
281
|
static from:
|
|
282
|
-
|
|
282
|
+
TaggedTemplateQueryPart<Awaitable<SELECT<unknown>, InstanceType<any>>>
|
|
283
283
|
& ((entity : Definition | string | ArrayConstructable, primaryKey? : PK) => DELETE<any>)
|
|
284
|
+
& ((entity : LinkedEntity | string | ArrayConstructable, primaryKey? : PK) => DELETE<any>)
|
|
284
285
|
byKey (primaryKey? : PK) : this
|
|
285
286
|
where (predicate:object) : this
|
|
286
287
|
where (...expr : any[]) : this
|
|
@@ -81,6 +81,7 @@ const _propagateToParent = ({ parentElement, childElement, deep }, childRow, row
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
+
/* eslint-disable complexity */
|
|
84
85
|
module.exports = (
|
|
85
86
|
tKey,
|
|
86
87
|
row,
|
|
@@ -113,7 +114,7 @@ module.exports = (
|
|
|
113
114
|
|
|
114
115
|
if (isCompositionEffective) _propagateToChild(foreignKeyPropagation, row, childRow, enumerable)
|
|
115
116
|
} else {
|
|
116
|
-
_generateChildField(foreignKeyPropagation, childRow, enumerable)
|
|
117
|
+
if (isCompositionEffective) _generateChildField(foreignKeyPropagation, childRow, enumerable)
|
|
117
118
|
_propagateToParent(foreignKeyPropagation, childRow, row, enumerable)
|
|
118
119
|
}
|
|
119
120
|
}
|