Fixed
- Added missing type for
cds.context.model
- Added missing type for
cds.context.model
- Added missing type for
req.query.elements
- Made constructors for query parts (
SELECT
,UPDATE
,DELETE
, ...) private, as they should only be accessed statically SELECT
returns a single instance now when specifying a primary key
Added
cds.app
typed as express.js applicationcds.cli
CLI argumentscds.requires
types for MTX servicescds.utils.colors
types- The CQL methods
.where
and.having
now suggest property names for certain overloads. Service.before/on/after(event, target...)
now accept also an array of typer-generated classes in thetarget
parameterlocalized
variants toSELECT
Changed
- Most
cds.requires
entries are now optionals. cds.connect.to
now also supports using a precompiled model.- Properties of entities are no longer optional in projections, eliminating the need to perform optional chaining on them when using nested projections