Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cap-js/cds-typer

Package Overview
Dependencies
Maintainers
0
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

124

0.18.0

Diff

Changelog

Source

[0.18.0] - 2024-03-12

Added

  • Improved support for projections, including projections on inline definitions, and on views, as well as support for explicit exclusion and selection of properties

Changed

  • [breaking] CDS type definitions will not be inflected. Whatever inflection you define them in will be assumed treated as a singular form and will not receive a plural form anymore
chgeo
published 0.17.0 •

Changelog

Source

[0.17.0] - 2024-03-05

Fixed

  • Fixed a bug where refering to an externally defined enum via the typeof syntax would crash the type generation
chgeo
published 0.16.0 •

Changelog

Source

[0.16.0] - 2024-02-01

Changed

  • Changed default log level from NONE to ERROR. See the doc to manually pass in another log level for cds-typer runs
  • Name collisions between automatically generated foreign key fields (.…_ID, .…_code, etc.) with explicitly named fields will now raise an error
  • Generate CDS types that are actually structured types as if they were entities. This allows the correct representation of mixing aspects and types in CDS inheritance, and also fixes issues with inline enums in such types

Fixed

  • Externally defined enums can now be used as parameter types in actions
chgeo
published 0.15.0 •

Changelog

Source

[0.15.0] - 2023-12-21

Added

  • Support for scoped entities
  • Support for delimited identifiers

Fixed

  • Inline enums are now available during runtime as well
  • Inline enums can now be used as action parameter types as well. These enums will not have a runtime representation, but will only assert type safety!
  • Arrays of inline enum values can now be used as action parameters too. But they will only be represented by their enclosing type for now, i.e. string, number, etc.
  • Foreign keys of projection entities are now propagated as well
chgeo
published 0.14.0 •

Changelog

Source

[0.14.0] - 2023-12-13

Added

  • Entities that are database views now also receive typings
chgeo
published 0.13.0 •

Changelog

Source

[0.13.0] - 2023-12-06

Changed

  • Enums are now generated ecplicitly in the respective index.js files and don't have to extract their values from the model at runtime anymore

Added

  • The excluding clause in projections now actually excludes the specified properties in the generated types
chgeo
published 0.12.0 •

Changelog

Source

[0.12.0] - 2023-11-23

Changed

  • Generate cds.LargeBinary as string, buffer, or readable in the case of media content

Added

  • Added support for the not null modifier

Fixed

  • Now using names of enum values in generated index.js files if no explicit value is present
chgeo
published 0.11.1 •

Changelog

Source

[0.11.1] - 2023-10-12

Changed

Added

Fixed

  • Fixed how service names are exported as default export
chgeo
published 0.11.0 •

Changelog

Source

[0.11.0] - 2023-10-10

Changed

Added

  • Autoexposed entities in services are now also generated
  • Each generated class now contains their original fully qualified name in a static .name property
  • Inline enums that are defined as literal type of properties are now supported as well (note: this feature is experimental. The location to which enums are generated might change in the future!)

Fixed

  • Fixed an error when an entity uses type of on a property they have inherited from another entity
  • Fixed an error during draftability propagation when defining compositions on types that are declared inline

Removed

  • compileFromCSN is no longer part of the package's API
chgeo
published 0.10.0 •

Changelog

Source

[0.10.0] - 2023-09-21

Changed

  • Actions and functions are now attached to a static .actions property of each generated class. This reflects the runtime behaviour better than the former way of generating instance methods

Added

Fixed

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