npm @cap-js/cds-types 0.17.0
v0.17.0

3 hours ago

Added

  • Types for nested .where and .having predicates
  • Passing events generated by cds-typer into service.on now offers code completion for the event's properties in the handler
  • Allow all events that can be used in service.on to be used in service.once as well

Changed

  • ResultHandler now returns unknown instead of void, to accommodate asynchronous functions when having @typescript-eslint/strict-void-return activated
  • Documentation for cds.test.axios mentioning that @cap-js/cds-test@1 now returns an axios facade in absence of axios.
  • made cds.context.locale optional
  • cds.tx(ƒ) now returns the return type of ƒ

Deprecated

  • cds.test.chai, cds.test.assert pointing to either cds.test.expect or a custom import of chai.
  • cds.test.axios in favor of cds.test.defaults

Removed

Fixed

Security

Don't miss a new cds-types release

NewReleases is sending notifications on new releases.