New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cap-js/cds-types

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cap-js/cds-types - npm Package Versions

2

0.9.0

Diff

Changelog

Source

Version 0.9.0 - 25-01-13

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
cap-npm
published 0.8.0 •

Changelog

Source

[0.8.0] - 24-11-26

Fixed

  • Added missing type for Request.before('commit', …)
  • Added missing types for Request.on('succeeded' | 'failed' | 'done', …)
  • Added missing type for cds.test.log
  • Added missing .ref in CQN queries
  • Added missing .forUpdate, .forShareLock, and .search in cqn.SELECT
  • Calling SELECT.one('...').from(Plural) now properly returns a single instance
cap-npm
published 0.7.0 •

Changelog

Source

[0.7.0] - 24-10-24

Fixed

  • 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
cap-npm
published 0.6.5 •

Changelog

Source

[0.6.5] - 2024-08-13

Fixed

  • The @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).

Removed

  • Removed array-like methods from model parts (.map, .find, etc.). To still use them, apply spreading to object in question first.
cap-npm
published 0.6.4 •

Changelog

Source

[0.6.4] - 2024-08-05

Added

  • Service.emit(...) can now also be called with custom events
  • Service.before(...) and Service.after(...) now accept bound and unbound functions as parameter
  • connect.to (ServiceClass) as alternative to 'service' string
  • connect.to ('db') returning cds.DatabaseService

Changed

  • .before(...), .on(...), and .after(...) now properly infer inflection when a typer-generated class is passed as second parameter

Fixed

  • EACH event has appropriately been renamed each to reflect runtime behaviour
cap-npm
published 0.6.3 •

Changelog

Source

[0.6.3] - 2024-07-19

Fixed

  • Installation no longer fails if symlink @types/sap__cds exists
cap-npm
published 0.6.2 •

Changelog

Source

[0.6.2] - 2024-07-18

Fixed

  • Symlink @types/sap__cds correctly created in case of upgrading @cap-js/cds-types.
cap-npm
published 0.6.1 •

Changelog

Source

[0.6.1] - 2024-07-18

Fixed

  • Scripts postinstall and prerelease:ci-fix now work correctly on windows.

Changed

  • postinstall script now creates a relative symlink from @types/sap__cds to allow the project to be moved/ renamed.
chgeo
published 0.6.0 •

Changelog

Source

[0.6.0] - 2024-07-05

This is a prerelease version (next) as a preview for the upcoming release of cds 8.

Changed

  • Wrapped all types into an augmented module declaration for @sap/cds.
  • Added a postinstall script to symlink @cap-js/cds-types to @types/sap__cds to benefit from the default type resolution mechanism employed by Definitely Typed.
chgeo
published 0.5.0 •

Changelog

Source

[0.5.0] - 2024-06-20

This is a prerelease version (next) as a preview for the upcoming release of cds 8.

Fixed

  • Linked definitions are now available via cds.linked, especially cds.linked.LinkedCSN and cds.linked.classes with its relevant type definitions
2
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc