@balena/abstract-sql-compiler 10.3.0-build-joshbwlng-date-trunc-3bb07009d3cb7ce704aaa7a01713a28e6534cb62-1 → 10.3.0-build-joshbwlng-date-trunc-8840807225396df6675d7ec7bae06d022cb98aeb-1
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 +7 -3
- package/CHANGELOG.md +4 -1
- package/package.json +4 -4
- package/test/abstract-sql/date-trunc.ts +0 -45
@@ -1,12 +1,16 @@
|
|
1
1
|
- commits:
|
2
2
|
- subject: Add optional time zone argument for DateTrunc
|
3
|
-
hash:
|
3
|
+
hash: 8840807225396df6675d7ec7bae06d022cb98aeb
|
4
4
|
body: ""
|
5
5
|
footer:
|
6
6
|
Change-type: minor
|
7
7
|
change-type: minor
|
8
8
|
author: joshbwlng
|
9
9
|
nested: []
|
10
|
+
version: 10.3.0
|
11
|
+
title: ""
|
12
|
+
date: 2025-06-09T23:19:21.773Z
|
13
|
+
- commits:
|
10
14
|
- subject: Update dependency lint-staged to v16
|
11
15
|
hash: 65f51a7d4c10810989efb02c96ae2bf754f6b365
|
12
16
|
body: |
|
@@ -16,9 +20,9 @@
|
|
16
20
|
change-type: patch
|
17
21
|
author: balena-renovate[bot]
|
18
22
|
nested: []
|
19
|
-
version: 10.
|
23
|
+
version: 10.2.12
|
20
24
|
title: ""
|
21
|
-
date: 2025-06-
|
25
|
+
date: 2025-06-05T06:26:44.888Z
|
22
26
|
- commits:
|
23
27
|
- subject: Add missing ; in trigger creation $$ section
|
24
28
|
hash: b8742b7b1f2f8727b70df5088d2b0aaacb0b9e94
|
package/CHANGELOG.md
CHANGED
@@ -4,9 +4,12 @@ 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
|
-
## 10.3.0 - 2025-06-
|
7
|
+
## 10.3.0 - 2025-06-09
|
8
8
|
|
9
9
|
* Add optional time zone argument for DateTrunc [joshbwlng]
|
10
|
+
|
11
|
+
## 10.2.12 - 2025-06-05
|
12
|
+
|
10
13
|
* Update dependency lint-staged to v16 [balena-renovate[bot]]
|
11
14
|
|
12
15
|
## 10.2.11 - 2025-06-04
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@balena/abstract-sql-compiler",
|
3
|
-
"version": "10.3.0-build-joshbwlng-date-trunc-
|
3
|
+
"version": "10.3.0-build-joshbwlng-date-trunc-8840807225396df6675d7ec7bae06d022cb98aeb-1",
|
4
4
|
"description": "A translator for abstract sql into sql.",
|
5
5
|
"type": "commonjs",
|
6
6
|
"main": "out/AbstractSQLCompiler.js",
|
@@ -17,7 +17,7 @@
|
|
17
17
|
"repository": "https://github.com/balena-io-modules/abstract-sql-compiler.git",
|
18
18
|
"author": "",
|
19
19
|
"peerDependencies": {
|
20
|
-
"@balena/sbvr-types": "^7.1.0 || ^8.0.0 || ^9.0.2"
|
20
|
+
"@balena/sbvr-types": "^7.1.0 || ^8.0.0 || ^9.0.2 || ^10.0.0"
|
21
21
|
},
|
22
22
|
"devDependencies": {
|
23
23
|
"@balena/lf-to-abstract-sql": "^5.0.4",
|
@@ -49,13 +49,13 @@
|
|
49
49
|
"recursive": true,
|
50
50
|
"require": "ts-node/register/transpile-only",
|
51
51
|
"bail": true,
|
52
|
-
"_": "test
|
52
|
+
"_": "test/**/*.ts"
|
53
53
|
},
|
54
54
|
"engines": {
|
55
55
|
"node": ">=20.14.0",
|
56
56
|
"npm": ">=10.7.0"
|
57
57
|
},
|
58
58
|
"versionist": {
|
59
|
-
"publishedAt": "2025-06-
|
59
|
+
"publishedAt": "2025-06-09T23:19:22.180Z"
|
60
60
|
}
|
61
61
|
}
|
@@ -1,45 +0,0 @@
|
|
1
|
-
import test from './test';
|
2
|
-
|
3
|
-
describe('DateTrunc', () => {
|
4
|
-
test(
|
5
|
-
[
|
6
|
-
'SelectQuery',
|
7
|
-
[
|
8
|
-
'Select',
|
9
|
-
[['DateTrunc', ['EmbeddedText', 'year'], ['Date', '2022-10-10']]],
|
10
|
-
],
|
11
|
-
],
|
12
|
-
[['Date', '2022-10-10']],
|
13
|
-
(result, sqlEquals) => {
|
14
|
-
it('should produce a valid DateTrunc statement', () => {
|
15
|
-
sqlEquals(result, `SELECT DATE_TRUNC('year', $1)`);
|
16
|
-
});
|
17
|
-
},
|
18
|
-
);
|
19
|
-
|
20
|
-
test(
|
21
|
-
[
|
22
|
-
'SelectQuery',
|
23
|
-
[
|
24
|
-
'Select',
|
25
|
-
[
|
26
|
-
[
|
27
|
-
'DateTrunc',
|
28
|
-
['EmbeddedText', 'year'],
|
29
|
-
['Date', '2022-10-10'],
|
30
|
-
['EmbeddedText', 'UTC'],
|
31
|
-
],
|
32
|
-
],
|
33
|
-
],
|
34
|
-
],
|
35
|
-
[['Date', '2022-10-10']],
|
36
|
-
(result, sqlEquals) => {
|
37
|
-
it('should produce a valid DateTrunc statement', () => {
|
38
|
-
sqlEquals(
|
39
|
-
result,
|
40
|
-
`SELECT DATE_TRUNC('year', $1 AT TIME ZONE 'UTC', 'UTC')`,
|
41
|
-
);
|
42
|
-
});
|
43
|
-
},
|
44
|
-
);
|
45
|
-
});
|