npm @cap-js/cds-types 0.7.0
v0.7.0

20 hours ago

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 application
  • cds.cli CLI arguments
  • cds.requires types for MTX services
  • cds.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 the target parameter
  • localized variants to SELECT

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

Don't miss a new cds-types release

NewReleases is sending notifications on new releases.