@balena/pinejs 23.1.0 → 23.1.1-build-computed-fns-out-of-order-tables-2c7a70cea273ab61098e220529e4570cc4136f46-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.
@@ -1,3 +1,258 @@
1
+ - commits:
2
+ - subject: Fix issues with computed functions on tables that do not match the
3
+ expected column order
4
+ hash: 2c7a70cea273ab61098e220529e4570cc4136f46
5
+ body: |
6
+ Update @balena/abstract-sql-compiler from 11.1.1 to 11.2.0
7
+ Update @balena/odata-to-abstract-sql from 9.0.1 to 10.0.0
8
+ footer:
9
+ Change-type: patch
10
+ change-type: patch
11
+ author: Pagan Gazzard
12
+ nested:
13
+ - commits:
14
+ - subject: Add support for a `ConvertRow` virtual node to convert a row that looks
15
+ like a table row to match the type
16
+ hash: e1988d6cbc6cb5a759b14e31854636bebc5a26a6
17
+ body: |
18
+ Note: this is only supported on postgres currently
19
+ footer:
20
+ Change-type: minor
21
+ change-type: minor
22
+ author: Pagan Gazzard
23
+ nested: []
24
+ - subject: Add support for a `JSONPopulateRecord` node to convert JSON to a row
25
+ hash: 54720af879b4a799b441984705b7ff22e0c6f640
26
+ body: ""
27
+ footer:
28
+ Change-type: minor
29
+ change-type: minor
30
+ author: Pagan Gazzard
31
+ nested: []
32
+ - subject: Add support for a `RowToJSON` node to convert a row to JSON
33
+ hash: 5bcb0aa3bc03f3e9abdf22c266b9a6dc3816ed84
34
+ body: ""
35
+ footer:
36
+ Change-type: minor
37
+ change-type: minor
38
+ author: Pagan Gazzard
39
+ nested: []
40
+ - subject: Add support for casting to a table/record type
41
+ hash: fe84e97d6a5709cbfbb874fedda7a08c1315cdc0
42
+ body: ""
43
+ footer:
44
+ Change-type: minor
45
+ change-type: minor
46
+ author: Pagan Gazzard
47
+ nested: []
48
+ version: abstract-sql-compiler-11.2.0
49
+ title: ""
50
+ date: 2025-08-15T14:55:12.172Z
51
+ - commits:
52
+ - subject: Remove redundant exports from abstract-sql-schema-optimizer
53
+ hash: 467259a9fe3dd09a83d2c9a7b2e68dc5619eefb5
54
+ body: ""
55
+ footer:
56
+ Change-type: patch
57
+ change-type: patch
58
+ author: Pagan Gazzard
59
+ nested: []
60
+ version: abstract-sql-compiler-11.1.4
61
+ title: ""
62
+ date: 2025-08-15T12:44:01.234Z
63
+ - commits:
64
+ - subject: Handle optimizing/compiling table nodes in the standard manner
65
+ hash: 5e656c36b73b6c4d9343bbed28cceb52c74be300
66
+ body: >
67
+ This standardizes them rather than having custom handling for
68
+ some
69
+
70
+ reason
71
+ footer:
72
+ Change-type: patch
73
+ change-type: patch
74
+ author: Pagan Gazzard
75
+ nested: []
76
+ version: abstract-sql-compiler-11.1.3
77
+ title: ""
78
+ date: 2025-08-14T23:52:56.586Z
79
+ - commits:
80
+ - subject: Ignore duplicate function errors when creating computed functions
81
+ hash: e98a9ca6c287f320bf7d55006ec861339179a3fb
82
+ body: ""
83
+ footer:
84
+ Change-type: patch
85
+ change-type: patch
86
+ author: Pagan Gazzard
87
+ nested: []
88
+ version: abstract-sql-compiler-11.1.2
89
+ title: ""
90
+ date: 2025-08-13T11:45:56.590Z
91
+ - commits:
92
+ - subject: Make use of `ConvertRow` to ensure the correct type for out fake
93
+ $insert rows
94
+ hash: 4f85a9a22f7e9fc145cd6f3c3b8a2208acf6e40f
95
+ body: |
96
+ This requires @balena/abstract-sql-compiler ^11.2.0
97
+
98
+ Update @balena/abstract-sql-compiler from 11.0.0 to 11.2.0
99
+ footer:
100
+ Change-type: major
101
+ change-type: major
102
+ author: Pagan Gazzard
103
+ nested:
104
+ - commits:
105
+ - subject: Add support for a `ConvertRow` virtual node to convert a row that looks
106
+ like a table row to match the type
107
+ hash: e1988d6cbc6cb5a759b14e31854636bebc5a26a6
108
+ body: |
109
+ Note: this is only supported on postgres currently
110
+ footer:
111
+ Change-type: minor
112
+ change-type: minor
113
+ author: Pagan Gazzard
114
+ nested: []
115
+ - subject: Add support for a `JSONPopulateRecord` node to convert JSON to a row
116
+ hash: 54720af879b4a799b441984705b7ff22e0c6f640
117
+ body: ""
118
+ footer:
119
+ Change-type: minor
120
+ change-type: minor
121
+ author: Pagan Gazzard
122
+ nested: []
123
+ - subject: Add support for a `RowToJSON` node to convert a row to JSON
124
+ hash: 5bcb0aa3bc03f3e9abdf22c266b9a6dc3816ed84
125
+ body: ""
126
+ footer:
127
+ Change-type: minor
128
+ change-type: minor
129
+ author: Pagan Gazzard
130
+ nested: []
131
+ - subject: Add support for casting to a table/record type
132
+ hash: fe84e97d6a5709cbfbb874fedda7a08c1315cdc0
133
+ body: ""
134
+ footer:
135
+ Change-type: minor
136
+ change-type: minor
137
+ author: Pagan Gazzard
138
+ nested: []
139
+ version: abstract-sql-compiler-11.2.0
140
+ title: ""
141
+ date: 2025-08-15T14:55:12.172Z
142
+ - commits:
143
+ - subject: Remove redundant exports from abstract-sql-schema-optimizer
144
+ hash: 467259a9fe3dd09a83d2c9a7b2e68dc5619eefb5
145
+ body: ""
146
+ footer:
147
+ Change-type: patch
148
+ change-type: patch
149
+ author: Pagan Gazzard
150
+ nested: []
151
+ version: abstract-sql-compiler-11.1.4
152
+ title: ""
153
+ date: 2025-08-15T12:44:01.234Z
154
+ - commits:
155
+ - subject: Handle optimizing/compiling table nodes in the standard manner
156
+ hash: 5e656c36b73b6c4d9343bbed28cceb52c74be300
157
+ body: >
158
+ This standardizes them rather than having custom
159
+ handling for some
160
+
161
+ reason
162
+ footer:
163
+ Change-type: patch
164
+ change-type: patch
165
+ author: Pagan Gazzard
166
+ nested: []
167
+ version: abstract-sql-compiler-11.1.3
168
+ title: ""
169
+ date: 2025-08-14T23:52:56.586Z
170
+ - commits:
171
+ - subject: Ignore duplicate function errors when creating computed functions
172
+ hash: e98a9ca6c287f320bf7d55006ec861339179a3fb
173
+ body: ""
174
+ footer:
175
+ Change-type: patch
176
+ change-type: patch
177
+ author: Pagan Gazzard
178
+ nested: []
179
+ version: abstract-sql-compiler-11.1.2
180
+ title: ""
181
+ date: 2025-08-13T11:45:56.590Z
182
+ - commits:
183
+ - subject: Create computed functions after table definitions
184
+ hash: f5b3ec1e7f4a23c8958e16ecfc016abb4b83ec15
185
+ body: ""
186
+ footer:
187
+ Change-type: patch
188
+ change-type: patch
189
+ author: Pagan Gazzard
190
+ nested: []
191
+ version: abstract-sql-compiler-11.1.1
192
+ title: ""
193
+ date: 2025-08-12T15:07:21.133Z
194
+ - commits:
195
+ - subject: Add the ability to have computed fields generate/call functions
196
+ hash: 2a0d1a357a7baa36eaaef71c5b15c206b44a1a0f
197
+ body: ""
198
+ footer:
199
+ Change-type: minor
200
+ change-type: minor
201
+ author: Pagan Gazzard
202
+ nested: []
203
+ version: abstract-sql-compiler-11.1.0
204
+ title: ""
205
+ date: 2025-08-12T00:17:28.281Z
206
+ - commits:
207
+ - subject: Optimize away unnecessary aliasing
208
+ hash: bc19f720415adc56684978d56a70d1c5407c3ab7
209
+ body: ""
210
+ footer:
211
+ Change-type: patch
212
+ change-type: patch
213
+ author: Pagan Gazzard
214
+ nested: []
215
+ version: abstract-sql-compiler-11.0.3
216
+ title: ""
217
+ date: 2025-08-08T15:34:13.225Z
218
+ - commits:
219
+ - subject: "Tests: update dev dependencies"
220
+ hash: d3b7d59ef4413015b28b78a5943753304bfdfb01
221
+ body: ""
222
+ footer:
223
+ Change-type: patch
224
+ change-type: patch
225
+ author: Pagan Gazzard
226
+ nested: []
227
+ version: abstract-sql-compiler-11.0.2
228
+ title: ""
229
+ date: 2025-08-08T14:17:18.123Z
230
+ - commits:
231
+ - subject: Update tsconfig module to `Node18`
232
+ hash: 7b551369ed6974b4b537c80085bfad74b8a692a0
233
+ body: ""
234
+ footer:
235
+ Change-type: patch
236
+ change-type: patch
237
+ author: Pagan Gazzard
238
+ nested: []
239
+ - subject: "Tests: switch from ts-node to @swc-node/register"
240
+ hash: 0645665e87ad356aa91a97f9e730a855feb8bd67
241
+ body: ""
242
+ footer:
243
+ Change-type: patch
244
+ change-type: patch
245
+ author: Pagan Gazzard
246
+ nested: []
247
+ version: abstract-sql-compiler-11.0.1
248
+ title: ""
249
+ date: 2025-08-01T13:37:39.968Z
250
+ version: odata-to-abstract-sql-10.0.0
251
+ title: ""
252
+ date: 2025-08-15T15:10:44.518Z
253
+ version: 23.1.1
254
+ title: ""
255
+ date: 2025-08-15T15:15:09.712Z
1
256
  - commits:
2
257
  - subject: Add the ability to have computed fields generate/call functions
3
258
  hash: b7a4c06f031ec11bb2f1a02645a555288a570c77
@@ -78,7 +333,7 @@
78
333
  date: 2025-08-01T13:37:39.968Z
79
334
  version: 23.1.0
80
335
  title: ""
81
- date: 2025-08-12T15:21:15.437Z
336
+ date: 2025-08-12T15:35:03.658Z
82
337
  - commits:
83
338
  - subject: Simplify abstract sql to use `TRUE` rather than `TRUE = TRUE`
84
339
  hash: d250c28079aef4fcd34ac1b6d2f3066e90cc5d8b
@@ -4652,6 +4907,7 @@
4652
4907
 
4653
4908
 
4654
4909
 
4910
+
4655
4911
 
4656
4912
 
4657
4913
  As balena-lint
@@ -4727,6 +4983,7 @@
4727
4983
 
4728
4984
 
4729
4985
 
4986
+
4730
4987
 
4731
4988
 
4732
4989
  As engine and npm is
@@ -4817,6 +5074,7 @@
4817
5074
 
4818
5075
 
4819
5076
 
5077
+
4820
5078
 
4821
5079
 
4822
5080
  Ensure that the
@@ -4970,6 +5228,7 @@
4970
5228
 
4971
5229
 
4972
5230
 
5231
+
4973
5232
 
4974
5233
 
4975
5234
  This also deprecates
@@ -5051,6 +5310,7 @@
5051
5310
 
5052
5311
 
5053
5312
 
5313
+
5054
5314
 
5055
5315
 
5056
5316
  It can in fact be a
@@ -5133,6 +5393,7 @@
5133
5393
 
5134
5394
 
5135
5395
 
5396
+
5136
5397
 
5137
5398
 
5138
5399
  We know what type
@@ -5220,6 +5481,7 @@
5220
5481
 
5221
5482
 
5222
5483
 
5484
+
5223
5485
 
5224
5486
 
5225
5487
  Update
@@ -5418,6 +5680,7 @@
5418
5680
 
5419
5681
 
5420
5682
 
5683
+
5421
5684
 
5422
5685
 
5423
5686
  This also deprecates
@@ -8589,6 +8852,7 @@
8589
8852
 
8590
8853
 
8591
8854
 
8855
+
8592
8856
 
8593
8857
 
8594
8858
  As balena-lint
@@ -8692,6 +8956,7 @@
8692
8956
 
8693
8957
 
8694
8958
 
8959
+
8695
8960
 
8696
8961
 
8697
8962
  As engine and npm is
@@ -8810,6 +9075,7 @@
8810
9075
 
8811
9076
 
8812
9077
 
9078
+
8813
9079
 
8814
9080
 
8815
9081
  Ensure that the
@@ -8991,6 +9257,7 @@
8991
9257
 
8992
9258
 
8993
9259
 
9260
+
8994
9261
 
8995
9262
 
8996
9263
  This also deprecates
@@ -9100,6 +9367,7 @@
9100
9367
 
9101
9368
 
9102
9369
 
9370
+
9103
9371
 
9104
9372
 
9105
9373
  It can in fact be a
@@ -9210,6 +9478,7 @@
9210
9478
 
9211
9479
 
9212
9480
 
9481
+
9213
9482
 
9214
9483
 
9215
9484
  We know what type
@@ -9325,6 +9594,7 @@
9325
9594
 
9326
9595
 
9327
9596
 
9597
+
9328
9598
 
9329
9599
 
9330
9600
  Update
@@ -9551,6 +9821,7 @@
9551
9821
 
9552
9822
 
9553
9823
 
9824
+
9554
9825
 
9555
9826
 
9556
9827
  This also deprecates
package/CHANGELOG.md CHANGED
@@ -4,6 +4,99 @@ 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
+ # v23.1.1
8
+ ## (2025-08-15)
9
+
10
+
11
+ <details>
12
+ <summary> Fix issues with computed functions on tables that do not match the expected column order [Pagan Gazzard] </summary>
13
+
14
+ > ## abstract-sql-compiler-11.2.0
15
+ > ### (2025-08-15)
16
+ >
17
+ > * Add support for a `ConvertRow` virtual node to convert a row that looks like a table row to match the type [Pagan Gazzard]
18
+ > * Add support for a `JSONPopulateRecord` node to convert JSON to a row [Pagan Gazzard]
19
+ > * Add support for a `RowToJSON` node to convert a row to JSON [Pagan Gazzard]
20
+ > * Add support for casting to a table/record type [Pagan Gazzard]
21
+ >
22
+ > ## abstract-sql-compiler-11.1.4
23
+ > ### (2025-08-15)
24
+ >
25
+ > * Remove redundant exports from abstract-sql-schema-optimizer [Pagan Gazzard]
26
+ >
27
+ > ## abstract-sql-compiler-11.1.3
28
+ > ### (2025-08-14)
29
+ >
30
+ > * Handle optimizing/compiling table nodes in the standard manner [Pagan Gazzard]
31
+ >
32
+ > ## abstract-sql-compiler-11.1.2
33
+ > ### (2025-08-13)
34
+ >
35
+ > * Ignore duplicate function errors when creating computed functions [Pagan Gazzard]
36
+ >
37
+ > ## odata-to-abstract-sql-10.0.0
38
+ > ### (2025-08-15)
39
+ >
40
+ >
41
+ > <details>
42
+ > <summary> Make use of `ConvertRow` to ensure the correct type for out fake $insert rows [Pagan Gazzard] </summary>
43
+ >
44
+ >> ### abstract-sql-compiler-11.2.0
45
+ >> #### (2025-08-15)
46
+ >>
47
+ >> * Add support for a `ConvertRow` virtual node to convert a row that looks like a table row to match the type [Pagan Gazzard]
48
+ >> * Add support for a `JSONPopulateRecord` node to convert JSON to a row [Pagan Gazzard]
49
+ >> * Add support for a `RowToJSON` node to convert a row to JSON [Pagan Gazzard]
50
+ >> * Add support for casting to a table/record type [Pagan Gazzard]
51
+ >>
52
+ >> ### abstract-sql-compiler-11.1.4
53
+ >> #### (2025-08-15)
54
+ >>
55
+ >> * Remove redundant exports from abstract-sql-schema-optimizer [Pagan Gazzard]
56
+ >>
57
+ >> ### abstract-sql-compiler-11.1.3
58
+ >> #### (2025-08-14)
59
+ >>
60
+ >> * Handle optimizing/compiling table nodes in the standard manner [Pagan Gazzard]
61
+ >>
62
+ >> ### abstract-sql-compiler-11.1.2
63
+ >> #### (2025-08-13)
64
+ >>
65
+ >> * Ignore duplicate function errors when creating computed functions [Pagan Gazzard]
66
+ >>
67
+ >> ### abstract-sql-compiler-11.1.1
68
+ >> #### (2025-08-12)
69
+ >>
70
+ >> * Create computed functions after table definitions [Pagan Gazzard]
71
+ >>
72
+ >> ### abstract-sql-compiler-11.1.0
73
+ >> #### (2025-08-12)
74
+ >>
75
+ >> * Add the ability to have computed fields generate/call functions [Pagan Gazzard]
76
+ >>
77
+ >> ### abstract-sql-compiler-11.0.3
78
+ >> #### (2025-08-08)
79
+ >>
80
+ >> * Optimize away unnecessary aliasing [Pagan Gazzard]
81
+ >>
82
+ >> ### abstract-sql-compiler-11.0.2
83
+ >> #### (2025-08-08)
84
+ >>
85
+ >> * Tests: update dev dependencies [Pagan Gazzard]
86
+ >>
87
+ >> ### abstract-sql-compiler-11.0.1
88
+ >> #### (2025-08-01)
89
+ >>
90
+ >> * Update tsconfig module to `Node18` [Pagan Gazzard]
91
+ >> * Tests: switch from ts-node to @swc-node/register [Pagan Gazzard]
92
+ >>
93
+ >
94
+ > </details>
95
+ >
96
+ >
97
+
98
+ </details>
99
+
7
100
  # v23.1.0
8
101
  ## (2025-08-12)
9
102
 
package/VERSION CHANGED
@@ -1 +1 @@
1
- 23.1.0
1
+ 23.1.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@balena/pinejs",
3
- "version": "23.1.0",
3
+ "version": "23.1.1-build-computed-fns-out-of-order-tables-2c7a70cea273ab61098e220529e4570cc4136f46-1",
4
4
  "main": "out/server-glue/module.js",
5
5
  "type": "module",
6
6
  "repository": "git@github.com:balena-io/pinejs.git",
@@ -26,12 +26,12 @@
26
26
  "generate-types": "node ./bin/sbvr-compiler.js generate-types ./src/sbvr-api/user.sbvr ./src/sbvr-api/user.ts && node ./bin/sbvr-compiler.js generate-types ./src/migrator/migrations.sbvr ./src/migrator/migrations.ts && node ./bin/sbvr-compiler.js generate-types ./src/sbvr-api/dev.sbvr ./src/sbvr-api/dev.ts && node ./bin/sbvr-compiler.js generate-types ./src/tasks/tasks.sbvr ./src/tasks/tasks.ts && node ./bin/sbvr-compiler.js generate-types ./src/webresource-handler/webresource.sbvr ./src/webresource-handler/webresource.ts && balena-lint -t tsconfig.dev.json --fix ./src/sbvr-api/user.ts ./src/migrator/migrations.ts ./src/sbvr-api/dev.ts"
27
27
  },
28
28
  "dependencies": {
29
- "@balena/abstract-sql-compiler": "^11.1.1",
29
+ "@balena/abstract-sql-compiler": "^11.2.0",
30
30
  "@balena/abstract-sql-to-typescript": "^6.1.0",
31
31
  "@balena/env-parsing": "^1.2.5",
32
32
  "@balena/lf-to-abstract-sql": "^5.0.10",
33
33
  "@balena/odata-parser": "^4.2.6",
34
- "@balena/odata-to-abstract-sql": "^9.0.1",
34
+ "@balena/odata-to-abstract-sql": "^10.0.0",
35
35
  "@balena/sbvr-parser": "^1.4.12",
36
36
  "@balena/sbvr-types": "^11.1.3",
37
37
  "@sindresorhus/fnv1a": "^3.1.0",
@@ -148,6 +148,6 @@
148
148
  "recursive": true
149
149
  },
150
150
  "versionist": {
151
- "publishedAt": "2025-08-12T15:21:18.240Z"
151
+ "publishedAt": "2025-08-15T15:15:11.625Z"
152
152
  }
153
153
  }