npm @cap-js/cds-types 0.9.0
v0.9.0

one day ago

Added

  • Added missing properties for log in cds.env
  • Added overload for service.read to be called with a ref
  • Added HandlerFunction.parameters.req and HandlerFunction.returns to type handler functions that are not declared as lambdas more conveniently
  • Added types for anonymous, privileged, and default user

Changed

  • removed dependency to @types/express: ^4.17.21 in favour of a peerDependency to @types/express: >=4

Removed

  • [breaking] Removed type TypedRequest<T> and replaced it with just Request<T>
  • Removed deprecated cds.Float CSN property type

Fixed

  • Use Required instead of DeepRequired in projection function to avoid complexity errors from TypeScript
  • Added missing type inference for .set/.with of UPDATE
  • Added missing type inference for .entries of UPSERT and INSERT
  • Variants of SELECT.one(T) will now return T | null, instead of T
  • Documentation link to srv.emit

Don't miss a new cds-types release

NewReleases is sending notifications on new releases.