Added
- Support new
cds.Map
type, which is emitted as{[key:string]: unknown}
. The most appropriate type would in fact be{[key:string]: any}
, which would also allow any and all keys. But would also cause issues with strict project configurations. Therefore, to effectively usecds.Map
, users will have to cast theunknown
s to the effective type they expect. - Introduce
cds.env.typer.build_task
to allow disabling thetypescript
build task shipped with cds-typer by setting it tofalse
Changed
- [breaking] The types
cds.Binary
andcds.LargeBinary
are now generated asBuffer
andReadable
respectively to reflect the behaviour of the new database packages@cap-js/hana
and@cap-js/sqlite
. You can switch back to the old behaviour by addinglegacy_binary_types: true
to your project configuration. CHANGELOG.md
andLICENSE
files are no longer part of the npm package.