@balena/abstract-sql-to-typescript
Advanced tools
Comparing version 3.0.0 to 3.0.1-build-typing-fixes-0b9661d460138a2e93e30974bb792f2f452290b0-1
@@ -7,2 +7,8 @@ # Change Log | ||
## 3.0.1 - 2024-05-03 | ||
* Use `[A] | []` rather than `[A?]` for singular references [Pagan Gazzard] | ||
* Fix `Resource` typing to allow for null [Pagan Gazzard] | ||
* Fix `Resource` typing for expandable properties [Pagan Gazzard] | ||
## 3.0.0 - 2024-05-02 | ||
@@ -9,0 +15,0 @@ |
@@ -31,4 +31,4 @@ "use strict"; | ||
} | ||
const nullable = f.required ? '' : '?'; | ||
return `{ __id: ${referencedFieldType} } | [${referencedInterface}${nullable}]`; | ||
const nullable = f.required ? '' : ' | []'; | ||
return `{ __id: ${referencedFieldType} } | [${referencedInterface}]${nullable}`; | ||
} | ||
@@ -35,0 +35,0 @@ default: |
@@ -17,7 +17,7 @@ import type { Types } from '@balena/sbvr-types'; | ||
__id: ReadTypes; | ||
} | Resource[]; | ||
} | Array<Resource['Read']> | null; | ||
}; | ||
Write: { | ||
[key in keyof T]: WriteTypes; | ||
[key in keyof T]: WriteTypes | null; | ||
}; | ||
}; |
{ | ||
"name": "@balena/abstract-sql-to-typescript", | ||
"version": "3.0.0", | ||
"version": "3.0.1-build-typing-fixes-0b9661d460138a2e93e30974bb792f2f452290b0-1", | ||
"description": "A translator for abstract sql into typescript types.", | ||
@@ -53,4 +53,4 @@ "main": "out/index.js", | ||
"versionist": { | ||
"publishedAt": "2024-05-02T11:06:29.599Z" | ||
"publishedAt": "2024-05-03T16:59:03.119Z" | ||
} | ||
} |
@@ -65,4 +65,4 @@ import type { | ||
const nullable = f.required ? '' : '?'; | ||
return `{ __id: ${referencedFieldType} } | [${referencedInterface}${nullable}]`; | ||
const nullable = f.required ? '' : ' | []'; | ||
return `{ __id: ${referencedFieldType} } | [${referencedInterface}]${nullable}`; | ||
} | ||
@@ -69,0 +69,0 @@ default: |
@@ -18,7 +18,11 @@ import type { Types } from '@balena/sbvr-types'; | ||
Read: { | ||
[key in keyof T]: ReadTypes | { __id: ReadTypes } | Resource[]; | ||
[key in keyof T]: | ||
| ReadTypes | ||
| { __id: ReadTypes } | ||
| Array<Resource['Read']> | ||
| null; | ||
}; | ||
Write: { | ||
[key in keyof T]: WriteTypes; | ||
[key in keyof T]: WriteTypes | null; | ||
}; | ||
}; |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
201020
704
0
2