@cap-js/cds-types
Advanced tools
Changelog
Version 0.9.0 - 25-01-13
log
in cds.env
service.read
to be called with a ref
HandlerFunction.parameters.req
and HandlerFunction.returns
to type handler functions that are not declared as lambdas more conveniently@types/express: ^4.17.21
in favour of a peerDependency to @types/express: >=4
TypedRequest<T>
and replaced it with just Request<T>
cds.Float
CSN property typeRequired
instead of DeepRequired
in projection function to avoid complexity errors from TypeScript.set
/.with
of UPDATE
.entries
of UPSERT
and INSERT
SELECT.one(T)
will now return T | null
, instead of T
srv.emit
Changelog
[0.8.0] - 24-11-26
Request.before('commit', …)
Request.on('succeeded' | 'failed' | 'done', …)
cds.test.log
.ref
in CQN queries.forUpdate
, .forShareLock
, and .search
in cqn.SELECT
SELECT.one('...').from(Plural)
now properly returns a single instanceChangelog
[0.7.0] - 24-10-24
cds.context.model
req.query.elements
SELECT
, UPDATE
, DELETE
, ...) private, as they should only be accessed staticallySELECT
returns a single instance now when specifying a primary keycds.app
typed as express.js applicationcds.cli
CLI argumentscds.requires
types for MTX servicescds.utils.colors
types.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 the target
parameterlocalized
variants to SELECT
cds.requires
entries are now optionals.cds.connect.to
now also supports using a precompiled model.Changelog
[0.6.5] - 2024-08-13
@types/sap__cds
link created by the postinstall
script now also works in monorepo setups where the target @cap-js/cds-types
might already be preinstalled (often hoisted some levels up)..map
, .find
, etc.). To still use them, apply spreading to object in question first.Changelog
[0.6.4] - 2024-08-05
Service.emit(...)
can now also be called with custom eventsService.before(...)
and Service.after(...)
now accept bound and unbound functions as parameterconnect.to (ServiceClass)
as alternative to 'service'
stringconnect.to ('db')
returning cds.DatabaseService
.before(...)
, .on(...)
, and .after(...)
now properly infer inflection when a typer-generated class is passed as second parameterEACH
event has appropriately been renamed each
to reflect runtime behaviourChangelog
[0.6.3] - 2024-07-19
@types/sap__cds
existsChangelog
[0.6.2] - 2024-07-18
@types/sap__cds
correctly created in case of upgrading @cap-js/cds-types
.Changelog
[0.6.1] - 2024-07-18
postinstall
and prerelease:ci-fix
now work correctly on windows.postinstall
script now creates a relative symlink from @types/sap__cds
to allow the project to be moved/ renamed.Changelog
[0.6.0] - 2024-07-05
This is a prerelease version (next
) as a preview for the upcoming release of cds 8.
@sap/cds
.@cap-js/cds-types
to @types/sap__cds
to benefit from the default type resolution mechanism employed by Definitely Typed.Changelog
[0.5.0] - 2024-06-20
This is a prerelease version (next
) as a preview for the upcoming release of cds 8.
cds.linked
, especially cds.linked.LinkedCSN
and cds.linked.classes
with its relevant type definitions