@cap-js/cds-typer
Advanced tools
Comparing version 0.18.0 to 0.18.1
@@ -9,2 +9,7 @@ # Change Log | ||
## Version 0.18.1 - 2024-03-13 | ||
### Fix | ||
- Remove faulty plural for CDS `type` definitions from the generated _index.js_ files | ||
## Version 0.18.0 - 2024-03-12 | ||
@@ -11,0 +16,0 @@ ### Added |
@@ -406,3 +406,3 @@ 'use strict' | ||
`module.exports.${singular} = csn.${original}`, | ||
`module.exports.${plural} = csn.${original}`, | ||
/Array<.*>/.test(plural) ? undefined : `module.exports.${plural} = csn.${original}`, | ||
// FIXME: we currently produce at most 3 entries. | ||
@@ -412,3 +412,3 @@ // This could be an issue when the user re-used the original name in a @singular/@plural annotation. | ||
`module.exports.${original} = csn.${original}` | ||
]))) | ||
].filter(Boolean)))) // FIXME: this is a hack to support CDS types that will produce "Array<MyType>" as plural, which we do not want as export in the index.js files | ||
) // singular -> plural aliases | ||
@@ -415,0 +415,0 @@ .concat(['// events']) |
{ | ||
"name": "@cap-js/cds-typer", | ||
"version": "0.18.0", | ||
"version": "0.18.1", | ||
"description": "Generates .ts files for a CDS model to receive code completion in VS Code", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
137524