@balena/sbvr-types 12.0.2 → 12.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.versionbot/CHANGELOG.yml +16 -1
- package/CHANGELOG.md +5 -0
- package/out/type-utils.d.ts +1 -1
- package/package.json +2 -2
- package/src/type-utils.ts +1 -1
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
- commits:
|
|
2
|
+
- subject: Type `DatabaseTypeFn`'s default value argument
|
|
3
|
+
hash: f1a188d23b86ec31a83523d4233a65e038042024
|
|
4
|
+
body: |
|
|
5
|
+
The `Boolean`, `Serial` and `Big Serial` type functions all accept a
|
|
6
|
+
default value as a third argument, but `DatabaseTypeFn` only declared
|
|
7
|
+
two, so callers such as abstract-sql-compiler could not pass it without
|
|
8
|
+
their own type, and its `dataTypeGen` dropped field default values.
|
|
9
|
+
footer:
|
|
10
|
+
Change-type: patch
|
|
11
|
+
change-type: patch
|
|
12
|
+
author: Pagan Gazzard
|
|
13
|
+
version: 12.0.3
|
|
14
|
+
title: ""
|
|
15
|
+
date: 2026-10-27T07:27:22.206Z
|
|
1
16
|
- commits:
|
|
2
17
|
- subject: "Color: Return null when fetching a NULL color"
|
|
3
18
|
hash: 7ab07d8992647b989ac8e85d6f975f530a72a4fa
|
|
@@ -11,7 +26,7 @@
|
|
|
11
26
|
author: Pagan Gazzard
|
|
12
27
|
version: 12.0.2
|
|
13
28
|
title: ""
|
|
14
|
-
date: 2026-10-26T16:
|
|
29
|
+
date: 2026-10-26T16:40:17.449Z
|
|
15
30
|
- commits:
|
|
16
31
|
- subject: "Color: Fix the `Blue Component` native property"
|
|
17
32
|
hash: 26dc7ef09e9b08234879232eef8600ba35c28b2d
|
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file
|
|
|
4
4
|
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
|
|
5
5
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
|
6
6
|
|
|
7
|
+
# v12.0.3
|
|
8
|
+
## (2026-10-27)
|
|
9
|
+
|
|
10
|
+
* Type `DatabaseTypeFn`'s default value argument [Pagan Gazzard]
|
|
11
|
+
|
|
7
12
|
# v12.0.2
|
|
8
13
|
## (2026-10-26)
|
|
9
14
|
|
package/out/type-utils.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export type NativeNames = Record<string, AnyTypeNodes>;
|
|
|
4
4
|
export type NativeProperties = Record<string, Record<string, (from: ReferencedFieldNode) => AnyTypeNodes>>;
|
|
5
5
|
export type NativeFactTypes = Record<string, Record<string, (from: ReferencedFieldNode, to: ReferencedFieldNode) => AnyTypeNodes>>;
|
|
6
6
|
export interface DatabaseTypeFn {
|
|
7
|
-
(necessity: string, index: string): string;
|
|
7
|
+
(necessity: string, index: string, defaultValue?: string): string;
|
|
8
8
|
castType: string;
|
|
9
9
|
}
|
|
10
10
|
export type DatabaseType = string | DatabaseTypeFn;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@balena/sbvr-types",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.0.3",
|
|
4
4
|
"description": "SBVR type definitions.",
|
|
5
5
|
"main": "out",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -55,6 +55,6 @@
|
|
|
55
55
|
"npm": ">=8.1.0"
|
|
56
56
|
},
|
|
57
57
|
"versionist": {
|
|
58
|
-
"publishedAt": "2026-10-
|
|
58
|
+
"publishedAt": "2026-10-27T07:27:22.305Z"
|
|
59
59
|
}
|
|
60
60
|
}
|
package/src/type-utils.ts
CHANGED
|
@@ -21,7 +21,7 @@ export type NativeFactTypes = Record<
|
|
|
21
21
|
>;
|
|
22
22
|
|
|
23
23
|
export interface DatabaseTypeFn {
|
|
24
|
-
(necessity: string, index: string): string;
|
|
24
|
+
(necessity: string, index: string, defaultValue?: string): string;
|
|
25
25
|
castType: string;
|
|
26
26
|
}
|
|
27
27
|
export type DatabaseType = string | DatabaseTypeFn;
|