@sap-ux/annotation-converter
Advanced tools
Comparing version 0.9.11 to 0.10.0
# @sap-ux/annotation-converter | ||
## 0.10.0 | ||
### Minor Changes | ||
- d581d62: **BREAKING CHANGE**: parser and writeback no longer incorrectly convert string Collections entries as `string`. Now returned values correctly match the `StringExpression` type and function signatures. | ||
### Patch Changes | ||
- Updated dependencies [d581d62] | ||
- @sap-ux/vocabularies-types@0.12.1 | ||
## 0.9.11 | ||
@@ -4,0 +15,0 @@ |
@@ -213,3 +213,6 @@ "use strict"; | ||
if (typeof collectionItem === 'string') { | ||
return collectionItem; | ||
return { | ||
type: 'String', | ||
String: collectionItem | ||
}; | ||
} | ||
@@ -216,0 +219,0 @@ else if (typeof collectionItem === 'object') { |
{ | ||
"name": "@sap-ux/annotation-converter", | ||
"version": "0.9.11", | ||
"version": "0.10.0", | ||
"description": "SAP Fiori OData - Annotation converter", | ||
@@ -17,6 +17,6 @@ "repository": { | ||
"dependencies": { | ||
"@sap-ux/vocabularies-types": "0.12.0" | ||
"@sap-ux/vocabularies-types": "0.12.1" | ||
}, | ||
"devDependencies": { | ||
"@sap-ux/edmx-parser": "0.8.2" | ||
"@sap-ux/edmx-parser": "0.9.0" | ||
}, | ||
@@ -23,0 +23,0 @@ "scripts": { |
@@ -10,3 +10,4 @@ import type { | ||
RawAnnotation, | ||
Reference | ||
Reference, | ||
StringExpression | ||
} from '@sap-ux/vocabularies-types'; | ||
@@ -217,3 +218,3 @@ import { unalias } from './utils'; | ||
| AnnotationRecord | ||
| string | ||
| StringExpression | ||
| PropertyPathExpression | ||
@@ -225,3 +226,6 @@ | PathExpression | ||
if (typeof collectionItem === 'string') { | ||
return collectionItem; | ||
return { | ||
type: 'String', | ||
String: collectionItem | ||
}; | ||
} else if (typeof collectionItem === 'object') { | ||
@@ -228,0 +232,0 @@ if (collectionItem.hasOwnProperty('$Type')) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
235341
3775
+ Added@sap-ux/vocabularies-types@0.12.1(transitive)
- Removed@sap-ux/vocabularies-types@0.12.0(transitive)