@balena/pinejs 22.1.4-build-renovate-bcrypt-6-x-6b995cfc00adc4154dc008a20bc666adc18c70f5-1 → 23.0.0-build-23-x-06bf0c67151995a64e8f502ea9dfb1232abb6001-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/.pinejs-cache.json +1 -1
- package/.versionbot/CHANGELOG.yml +534 -7
- package/CHANGELOG.md +110 -2
- package/VERSION +1 -1
- package/out/sbvr-api/abstract-sql.d.ts +1 -1
- package/out/sbvr-api/abstract-sql.js +1 -1
- package/out/sbvr-api/abstract-sql.js.map +1 -1
- package/out/sbvr-api/permissions.js +11 -1
- package/out/sbvr-api/permissions.js.map +1 -1
- package/out/sbvr-api/sbvr-utils.d.ts +1 -1
- package/out/sbvr-api/sbvr-utils.js +2 -2
- package/out/sbvr-api/sbvr-utils.js.map +1 -1
- package/out/sbvr-api/uri-parser.d.ts +1 -1
- package/package.json +7 -7
- package/src/migrator/migrations.ts +1 -1
- package/src/sbvr-api/abstract-sql.ts +1 -1
- package/src/sbvr-api/dev.ts +1 -1
- package/src/sbvr-api/permissions.ts +26 -4
- package/src/sbvr-api/sbvr-utils.ts +2 -2
- package/src/sbvr-api/uri-parser.ts +1 -1
- package/src/sbvr-api/user.ts +1 -1
- package/src/tasks/tasks.ts +1 -1
- package/src/webresource-handler/webresource.ts +1 -1
@@ -1,16 +1,543 @@
|
|
1
1
|
- commits:
|
2
|
-
- subject:
|
3
|
-
hash:
|
4
|
-
body:
|
5
|
-
Update bcrypt from 5.1.1 to 6.0.0
|
2
|
+
- subject: Handle generating constrained definitions of computed field definitions
|
3
|
+
hash: 06bf0c67151995a64e8f502ea9dfb1232abb6001
|
4
|
+
body: ""
|
6
5
|
footer:
|
7
6
|
Change-type: patch
|
8
7
|
change-type: patch
|
9
|
-
author:
|
8
|
+
author: Pagan Gazzard
|
10
9
|
nested: []
|
11
|
-
|
10
|
+
- subject: Update @balena/abstract-sql-compiler to 11.x,
|
11
|
+
@balena/odata-to-abstract-sql to 9.x
|
12
|
+
hash: 8cf56a4d8729efe43bcf25b9e3c7bfdb6ecea23f
|
13
|
+
body: |
|
14
|
+
Update @balena/abstract-sql-compiler from 10.6.3 to 11.0.0
|
15
|
+
Update @balena/abstract-sql-to-typescript from 5.1.5 to 6.1.0
|
16
|
+
Update @balena/odata-to-abstract-sql from 8.0.2 to 9.0.0
|
17
|
+
footer:
|
18
|
+
Change-type: major
|
19
|
+
change-type: major
|
20
|
+
author: Pagan Gazzard
|
21
|
+
nested:
|
22
|
+
- commits:
|
23
|
+
- subject: Only publish the `out` directory
|
24
|
+
hash: 7511b8ebe5a9461f20add0ed97d0670ed3b5a479
|
25
|
+
body: ""
|
26
|
+
footer:
|
27
|
+
Change-type: major
|
28
|
+
change-type: major
|
29
|
+
author: Pagan Gazzard
|
30
|
+
nested: []
|
31
|
+
- subject: Compile computed fields into the table definition
|
32
|
+
hash: 45529f014aa1c181f338c0f7348767f2990a9084
|
33
|
+
body: >
|
34
|
+
This allows all downstream consumers to simplify as they only
|
35
|
+
ever have
|
36
|
+
|
37
|
+
to look at/use the table definition and can completely ignore
|
38
|
+
whether
|
39
|
+
|
40
|
+
fields are computed or not as it will have been handled for them
|
41
|
+
|
42
|
+
already as necessary
|
43
|
+
footer:
|
44
|
+
Change-type: major
|
45
|
+
change-type: major
|
46
|
+
author: Pagan Gazzard
|
47
|
+
nested: []
|
48
|
+
- subject: Standardize filenames
|
49
|
+
hash: 2bf244d1b75f0248df7ba897487425272c234989
|
50
|
+
body: ""
|
51
|
+
footer:
|
52
|
+
Change-type: major
|
53
|
+
change-type: major
|
54
|
+
author: Pagan Gazzard
|
55
|
+
nested: []
|
56
|
+
- subject: Improve typing of `AbstractSqlField['computed']`
|
57
|
+
hash: cb702d0505617fed4b60297a4951a89a9ddbce02
|
58
|
+
body: ""
|
59
|
+
footer:
|
60
|
+
Change-type: major
|
61
|
+
change-type: major
|
62
|
+
author: Pagan Gazzard
|
63
|
+
nested: []
|
64
|
+
- subject: Improve typing of `AbstractSqlModel['rules']`
|
65
|
+
hash: c4099bb461f7633d57f6d5173bbd6315bcc6ee62
|
66
|
+
body: ""
|
67
|
+
footer:
|
68
|
+
Change-type: major
|
69
|
+
change-type: major
|
70
|
+
author: Pagan Gazzard
|
71
|
+
nested: []
|
72
|
+
- subject: Remove support for deprecated `['Bind', string, string]` bind node
|
73
|
+
format
|
74
|
+
hash: 6a6f353f44475b369181d71a6fd93924939aceba
|
75
|
+
body: |
|
76
|
+
Use `['Bind', [string, string]]` instead
|
77
|
+
footer:
|
78
|
+
Change-type: major
|
79
|
+
change-type: major
|
80
|
+
author: Pagan Gazzard
|
81
|
+
nested: []
|
82
|
+
- subject: Remove deprecated `AliasableFromTypeNodes` type, use `FromTypeNodes`
|
83
|
+
instead
|
84
|
+
hash: 73d2e69e3ee2969d1bd6e73bab4bd56a032a76fa
|
85
|
+
body: ""
|
86
|
+
footer:
|
87
|
+
Change-type: major
|
88
|
+
change-type: major
|
89
|
+
author: Pagan Gazzard
|
90
|
+
nested: []
|
91
|
+
- subject: Use an options object for `optimizeSchema` rather than flags
|
92
|
+
hash: c8451a5781df92f0f6e4f21fb666db493ae4c810
|
93
|
+
body: ""
|
94
|
+
footer:
|
95
|
+
Change-type: major
|
96
|
+
change-type: major
|
97
|
+
author: Pagan Gazzard
|
98
|
+
nested: []
|
99
|
+
- subject: Convert to ESM
|
100
|
+
hash: d71031138e0b0cc49aaaa514f8bc4ff5abfcbdc2
|
101
|
+
body: ""
|
102
|
+
footer:
|
103
|
+
Change-type: major
|
104
|
+
change-type: major
|
105
|
+
author: Pagan Gazzard
|
106
|
+
nested: []
|
107
|
+
- subject: Remove support for legacy `Now` nodes in favor of `CurrentTimestamp`
|
108
|
+
hash: 903a7ab4a727d09e1089684140b5fcdf48bf9967
|
109
|
+
body: ""
|
110
|
+
footer:
|
111
|
+
Change-type: major
|
112
|
+
change-type: major
|
113
|
+
author: Pagan Gazzard
|
114
|
+
nested: []
|
115
|
+
- subject: Switch to a separate `viewDefinition` property for creating views
|
116
|
+
hash: 214523e0cfe05e256c2d1c67c48231968a32d620
|
117
|
+
body: >
|
118
|
+
This removes the inference of whether to create a view from
|
119
|
+
based on
|
120
|
+
|
121
|
+
inspecting the definition and instead makes it a conscious
|
122
|
+
choice to
|
123
|
+
|
124
|
+
avoid converting a definition to a view in cases where that may
|
125
|
+
not
|
126
|
+
|
127
|
+
make sense, eg if using a definition over a materialized table
|
128
|
+
in order
|
129
|
+
|
130
|
+
to have a dynamic view over that table
|
131
|
+
footer:
|
132
|
+
Change-type: major
|
133
|
+
change-type: major
|
134
|
+
author: Pagan Gazzard
|
135
|
+
nested: []
|
136
|
+
version: abstract-sql-compiler-11.0.0
|
137
|
+
title: ""
|
138
|
+
date: 2025-08-01T11:57:14.534Z
|
139
|
+
- commits:
|
140
|
+
- subject: Add support for writable tables with definitions
|
141
|
+
hash: 0fe525bf580706d3d37758e836830be6c65956dc
|
142
|
+
body: ""
|
143
|
+
footer:
|
144
|
+
Change-type: minor
|
145
|
+
change-type: minor
|
146
|
+
author: Pagan Gazzard
|
147
|
+
nested: []
|
148
|
+
version: abstract-sql-to-typescript-6.1.0
|
149
|
+
title: ""
|
150
|
+
date: 2025-08-06T12:50:39.595Z
|
151
|
+
- commits:
|
152
|
+
- subject: Update @balena/abstract-sql-compiler to 11.x,
|
153
|
+
@balena/odata-to-abstract-sql to 9.x
|
154
|
+
hash: 7ca2207809ca28a640542cd92f1a46dce029b09a
|
155
|
+
body: |
|
156
|
+
Update @balena/abstract-sql-compiler from 10.6.3 to 11.0.0
|
157
|
+
Update @balena/odata-to-abstract-sql from 8.0.2 to 9.0.0
|
158
|
+
footer:
|
159
|
+
Change-type: major
|
160
|
+
change-type: major
|
161
|
+
author: Pagan Gazzard
|
162
|
+
nested:
|
163
|
+
- commits:
|
164
|
+
- subject: Only publish the `out` directory
|
165
|
+
hash: 1f210d29c2053207e31d28a520b43b7f1521f27d
|
166
|
+
body: ""
|
167
|
+
footer:
|
168
|
+
Change-type: major
|
169
|
+
change-type: major
|
170
|
+
author: Pagan Gazzard
|
171
|
+
nested: []
|
172
|
+
- subject: Update tsconfig module to `Node18`
|
173
|
+
hash: b89d039e1fa96d2c33f8c5e875384144295b56ed
|
174
|
+
body: ""
|
175
|
+
footer:
|
176
|
+
Change-type: patch
|
177
|
+
change-type: patch
|
178
|
+
author: Pagan Gazzard
|
179
|
+
nested: []
|
180
|
+
- subject: Rely on computed fields having been compiled into the table definition
|
181
|
+
hash: ccc192fa696378f57ad5d174ae795a7415599b88
|
182
|
+
body: >
|
183
|
+
This greatly simplifies the code and the overall
|
184
|
+
computed fields
|
185
|
+
|
186
|
+
implementation whilst also removing a bunch of edge
|
187
|
+
cases with computed
|
188
|
+
|
189
|
+
fields and `$filter`/`$orderby`
|
190
|
+
footer:
|
191
|
+
Change-type: major
|
192
|
+
change-type: major
|
193
|
+
author: Pagan Gazzard
|
194
|
+
nested: []
|
195
|
+
- subject: Update @balena/abstract-sql-compiler to 11.x
|
196
|
+
hash: 1952cc5fe23284d46d7533f454cd78636e59a262
|
197
|
+
body: >
|
198
|
+
Update @balena/abstract-sql-compiler from 10.6.2 to
|
199
|
+
11.0.0
|
200
|
+
footer:
|
201
|
+
Change-type: major
|
202
|
+
change-type: major
|
203
|
+
author: Pagan Gazzard
|
204
|
+
nested:
|
205
|
+
- commits:
|
206
|
+
- subject: Only publish the `out` directory
|
207
|
+
hash: 7511b8ebe5a9461f20add0ed97d0670ed3b5a479
|
208
|
+
body: ""
|
209
|
+
footer:
|
210
|
+
Change-type: major
|
211
|
+
change-type: major
|
212
|
+
author: Pagan Gazzard
|
213
|
+
nested: []
|
214
|
+
- subject: Compile computed fields into the table definition
|
215
|
+
hash: 45529f014aa1c181f338c0f7348767f2990a9084
|
216
|
+
body: >
|
217
|
+
This allows all downstream consumers to simplify
|
218
|
+
as they only ever have
|
219
|
+
|
220
|
+
to look at/use the table definition and can
|
221
|
+
completely ignore whether
|
222
|
+
|
223
|
+
fields are computed or not as it will have been
|
224
|
+
handled for them
|
225
|
+
|
226
|
+
already as necessary
|
227
|
+
footer:
|
228
|
+
Change-type: major
|
229
|
+
change-type: major
|
230
|
+
author: Pagan Gazzard
|
231
|
+
nested: []
|
232
|
+
- subject: Standardize filenames
|
233
|
+
hash: 2bf244d1b75f0248df7ba897487425272c234989
|
234
|
+
body: ""
|
235
|
+
footer:
|
236
|
+
Change-type: major
|
237
|
+
change-type: major
|
238
|
+
author: Pagan Gazzard
|
239
|
+
nested: []
|
240
|
+
- subject: Improve typing of `AbstractSqlField['computed']`
|
241
|
+
hash: cb702d0505617fed4b60297a4951a89a9ddbce02
|
242
|
+
body: ""
|
243
|
+
footer:
|
244
|
+
Change-type: major
|
245
|
+
change-type: major
|
246
|
+
author: Pagan Gazzard
|
247
|
+
nested: []
|
248
|
+
- subject: Improve typing of `AbstractSqlModel['rules']`
|
249
|
+
hash: c4099bb461f7633d57f6d5173bbd6315bcc6ee62
|
250
|
+
body: ""
|
251
|
+
footer:
|
252
|
+
Change-type: major
|
253
|
+
change-type: major
|
254
|
+
author: Pagan Gazzard
|
255
|
+
nested: []
|
256
|
+
- subject: Remove support for deprecated `['Bind', string, string]` bind node
|
257
|
+
format
|
258
|
+
hash: 6a6f353f44475b369181d71a6fd93924939aceba
|
259
|
+
body: |
|
260
|
+
Use `['Bind', [string, string]]` instead
|
261
|
+
footer:
|
262
|
+
Change-type: major
|
263
|
+
change-type: major
|
264
|
+
author: Pagan Gazzard
|
265
|
+
nested: []
|
266
|
+
- subject: Remove deprecated `AliasableFromTypeNodes` type, use `FromTypeNodes`
|
267
|
+
instead
|
268
|
+
hash: 73d2e69e3ee2969d1bd6e73bab4bd56a032a76fa
|
269
|
+
body: ""
|
270
|
+
footer:
|
271
|
+
Change-type: major
|
272
|
+
change-type: major
|
273
|
+
author: Pagan Gazzard
|
274
|
+
nested: []
|
275
|
+
- subject: Use an options object for `optimizeSchema` rather than flags
|
276
|
+
hash: c8451a5781df92f0f6e4f21fb666db493ae4c810
|
277
|
+
body: ""
|
278
|
+
footer:
|
279
|
+
Change-type: major
|
280
|
+
change-type: major
|
281
|
+
author: Pagan Gazzard
|
282
|
+
nested: []
|
283
|
+
- subject: Convert to ESM
|
284
|
+
hash: d71031138e0b0cc49aaaa514f8bc4ff5abfcbdc2
|
285
|
+
body: ""
|
286
|
+
footer:
|
287
|
+
Change-type: major
|
288
|
+
change-type: major
|
289
|
+
author: Pagan Gazzard
|
290
|
+
nested: []
|
291
|
+
- subject: Remove support for legacy `Now` nodes in favor of `CurrentTimestamp`
|
292
|
+
hash: 903a7ab4a727d09e1089684140b5fcdf48bf9967
|
293
|
+
body: ""
|
294
|
+
footer:
|
295
|
+
Change-type: major
|
296
|
+
change-type: major
|
297
|
+
author: Pagan Gazzard
|
298
|
+
nested: []
|
299
|
+
- subject: Switch to a separate `viewDefinition` property for creating views
|
300
|
+
hash: 214523e0cfe05e256c2d1c67c48231968a32d620
|
301
|
+
body: >
|
302
|
+
This removes the inference of whether to create
|
303
|
+
a view from based on
|
304
|
+
|
305
|
+
inspecting the definition and instead makes it a
|
306
|
+
conscious choice to
|
307
|
+
|
308
|
+
avoid converting a definition to a view in cases
|
309
|
+
where that may not
|
310
|
+
|
311
|
+
make sense, eg if using a definition over a
|
312
|
+
materialized table in order
|
313
|
+
|
314
|
+
to have a dynamic view over that table
|
315
|
+
footer:
|
316
|
+
Change-type: major
|
317
|
+
change-type: major
|
318
|
+
author: Pagan Gazzard
|
319
|
+
nested: []
|
320
|
+
version: abstract-sql-compiler-11.0.0
|
321
|
+
title: ""
|
322
|
+
date: 2025-08-01T11:57:14.534Z
|
323
|
+
- commits:
|
324
|
+
- subject: "Tests: Update @balena/odata-to-abstract-sql to 8.0.1"
|
325
|
+
hash: 66ee93652310d4add5b0c8c09843dc052d796f5e
|
326
|
+
body: ""
|
327
|
+
footer:
|
328
|
+
Change-type: patch
|
329
|
+
change-type: patch
|
330
|
+
author: Pagan Gazzard
|
331
|
+
nested: []
|
332
|
+
version: abstract-sql-compiler-10.6.3
|
333
|
+
title: ""
|
334
|
+
date: 2025-07-17T11:05:36.688Z
|
335
|
+
- subject: Convert to ESM
|
336
|
+
hash: a3a76d60cb6598e0918163d0e0771e14adafd13e
|
337
|
+
body: ""
|
338
|
+
footer:
|
339
|
+
Change-type: major
|
340
|
+
change-type: major
|
341
|
+
author: Pagan Gazzard
|
342
|
+
nested: []
|
343
|
+
version: odata-to-abstract-sql-9.0.0
|
344
|
+
title: ""
|
345
|
+
date: 2025-08-01T13:41:59.468Z
|
346
|
+
- subject: Convert to ESM
|
347
|
+
hash: eabeffb8039c65cabafe396e7f8653509d1b3218
|
348
|
+
body: ""
|
349
|
+
footer:
|
350
|
+
Change-type: major
|
351
|
+
change-type: major
|
352
|
+
author: Pagan Gazzard
|
353
|
+
nested: []
|
354
|
+
version: abstract-sql-to-typescript-6.0.0
|
355
|
+
title: ""
|
356
|
+
date: 2025-08-01T13:46:57.529Z
|
357
|
+
- commits:
|
358
|
+
- subject: Only publish the `out` directory
|
359
|
+
hash: 1f210d29c2053207e31d28a520b43b7f1521f27d
|
360
|
+
body: ""
|
361
|
+
footer:
|
362
|
+
Change-type: major
|
363
|
+
change-type: major
|
364
|
+
author: Pagan Gazzard
|
365
|
+
nested: []
|
366
|
+
- subject: Update tsconfig module to `Node18`
|
367
|
+
hash: b89d039e1fa96d2c33f8c5e875384144295b56ed
|
368
|
+
body: ""
|
369
|
+
footer:
|
370
|
+
Change-type: patch
|
371
|
+
change-type: patch
|
372
|
+
author: Pagan Gazzard
|
373
|
+
nested: []
|
374
|
+
- subject: Rely on computed fields having been compiled into the table definition
|
375
|
+
hash: ccc192fa696378f57ad5d174ae795a7415599b88
|
376
|
+
body: >
|
377
|
+
This greatly simplifies the code and the overall computed fields
|
378
|
+
|
379
|
+
implementation whilst also removing a bunch of edge cases with
|
380
|
+
computed
|
381
|
+
|
382
|
+
fields and `$filter`/`$orderby`
|
383
|
+
footer:
|
384
|
+
Change-type: major
|
385
|
+
change-type: major
|
386
|
+
author: Pagan Gazzard
|
387
|
+
nested: []
|
388
|
+
- subject: Update @balena/abstract-sql-compiler to 11.x
|
389
|
+
hash: 1952cc5fe23284d46d7533f454cd78636e59a262
|
390
|
+
body: |
|
391
|
+
Update @balena/abstract-sql-compiler from 10.6.2 to 11.0.0
|
392
|
+
footer:
|
393
|
+
Change-type: major
|
394
|
+
change-type: major
|
395
|
+
author: Pagan Gazzard
|
396
|
+
nested:
|
397
|
+
- commits:
|
398
|
+
- subject: Only publish the `out` directory
|
399
|
+
hash: 7511b8ebe5a9461f20add0ed97d0670ed3b5a479
|
400
|
+
body: ""
|
401
|
+
footer:
|
402
|
+
Change-type: major
|
403
|
+
change-type: major
|
404
|
+
author: Pagan Gazzard
|
405
|
+
nested: []
|
406
|
+
- subject: Compile computed fields into the table definition
|
407
|
+
hash: 45529f014aa1c181f338c0f7348767f2990a9084
|
408
|
+
body: >
|
409
|
+
This allows all downstream consumers to simplify as they
|
410
|
+
only ever have
|
411
|
+
|
412
|
+
to look at/use the table definition and can completely
|
413
|
+
ignore whether
|
414
|
+
|
415
|
+
fields are computed or not as it will have been handled
|
416
|
+
for them
|
417
|
+
|
418
|
+
already as necessary
|
419
|
+
footer:
|
420
|
+
Change-type: major
|
421
|
+
change-type: major
|
422
|
+
author: Pagan Gazzard
|
423
|
+
nested: []
|
424
|
+
- subject: Standardize filenames
|
425
|
+
hash: 2bf244d1b75f0248df7ba897487425272c234989
|
426
|
+
body: ""
|
427
|
+
footer:
|
428
|
+
Change-type: major
|
429
|
+
change-type: major
|
430
|
+
author: Pagan Gazzard
|
431
|
+
nested: []
|
432
|
+
- subject: Improve typing of `AbstractSqlField['computed']`
|
433
|
+
hash: cb702d0505617fed4b60297a4951a89a9ddbce02
|
434
|
+
body: ""
|
435
|
+
footer:
|
436
|
+
Change-type: major
|
437
|
+
change-type: major
|
438
|
+
author: Pagan Gazzard
|
439
|
+
nested: []
|
440
|
+
- subject: Improve typing of `AbstractSqlModel['rules']`
|
441
|
+
hash: c4099bb461f7633d57f6d5173bbd6315bcc6ee62
|
442
|
+
body: ""
|
443
|
+
footer:
|
444
|
+
Change-type: major
|
445
|
+
change-type: major
|
446
|
+
author: Pagan Gazzard
|
447
|
+
nested: []
|
448
|
+
- subject: Remove support for deprecated `['Bind', string, string]` bind node
|
449
|
+
format
|
450
|
+
hash: 6a6f353f44475b369181d71a6fd93924939aceba
|
451
|
+
body: |
|
452
|
+
Use `['Bind', [string, string]]` instead
|
453
|
+
footer:
|
454
|
+
Change-type: major
|
455
|
+
change-type: major
|
456
|
+
author: Pagan Gazzard
|
457
|
+
nested: []
|
458
|
+
- subject: Remove deprecated `AliasableFromTypeNodes` type, use `FromTypeNodes`
|
459
|
+
instead
|
460
|
+
hash: 73d2e69e3ee2969d1bd6e73bab4bd56a032a76fa
|
461
|
+
body: ""
|
462
|
+
footer:
|
463
|
+
Change-type: major
|
464
|
+
change-type: major
|
465
|
+
author: Pagan Gazzard
|
466
|
+
nested: []
|
467
|
+
- subject: Use an options object for `optimizeSchema` rather than flags
|
468
|
+
hash: c8451a5781df92f0f6e4f21fb666db493ae4c810
|
469
|
+
body: ""
|
470
|
+
footer:
|
471
|
+
Change-type: major
|
472
|
+
change-type: major
|
473
|
+
author: Pagan Gazzard
|
474
|
+
nested: []
|
475
|
+
- subject: Convert to ESM
|
476
|
+
hash: d71031138e0b0cc49aaaa514f8bc4ff5abfcbdc2
|
477
|
+
body: ""
|
478
|
+
footer:
|
479
|
+
Change-type: major
|
480
|
+
change-type: major
|
481
|
+
author: Pagan Gazzard
|
482
|
+
nested: []
|
483
|
+
- subject: Remove support for legacy `Now` nodes in favor of `CurrentTimestamp`
|
484
|
+
hash: 903a7ab4a727d09e1089684140b5fcdf48bf9967
|
485
|
+
body: ""
|
486
|
+
footer:
|
487
|
+
Change-type: major
|
488
|
+
change-type: major
|
489
|
+
author: Pagan Gazzard
|
490
|
+
nested: []
|
491
|
+
- subject: Switch to a separate `viewDefinition` property for creating views
|
492
|
+
hash: 214523e0cfe05e256c2d1c67c48231968a32d620
|
493
|
+
body: >
|
494
|
+
This removes the inference of whether to create a view
|
495
|
+
from based on
|
496
|
+
|
497
|
+
inspecting the definition and instead makes it a
|
498
|
+
conscious choice to
|
499
|
+
|
500
|
+
avoid converting a definition to a view in cases where
|
501
|
+
that may not
|
502
|
+
|
503
|
+
make sense, eg if using a definition over a materialized
|
504
|
+
table in order
|
505
|
+
|
506
|
+
to have a dynamic view over that table
|
507
|
+
footer:
|
508
|
+
Change-type: major
|
509
|
+
change-type: major
|
510
|
+
author: Pagan Gazzard
|
511
|
+
nested: []
|
512
|
+
version: abstract-sql-compiler-11.0.0
|
513
|
+
title: ""
|
514
|
+
date: 2025-08-01T11:57:14.534Z
|
515
|
+
- commits:
|
516
|
+
- subject: "Tests: Update @balena/odata-to-abstract-sql to 8.0.1"
|
517
|
+
hash: 66ee93652310d4add5b0c8c09843dc052d796f5e
|
518
|
+
body: ""
|
519
|
+
footer:
|
520
|
+
Change-type: patch
|
521
|
+
change-type: patch
|
522
|
+
author: Pagan Gazzard
|
523
|
+
nested: []
|
524
|
+
version: abstract-sql-compiler-10.6.3
|
525
|
+
title: ""
|
526
|
+
date: 2025-07-17T11:05:36.688Z
|
527
|
+
- subject: Convert to ESM
|
528
|
+
hash: a3a76d60cb6598e0918163d0e0771e14adafd13e
|
529
|
+
body: ""
|
530
|
+
footer:
|
531
|
+
Change-type: major
|
532
|
+
change-type: major
|
533
|
+
author: Pagan Gazzard
|
534
|
+
nested: []
|
535
|
+
version: odata-to-abstract-sql-9.0.0
|
536
|
+
title: ""
|
537
|
+
date: 2025-08-01T13:41:59.468Z
|
538
|
+
version: 23.0.0
|
12
539
|
title: ""
|
13
|
-
date: 2025-08-06T14:
|
540
|
+
date: 2025-08-06T14:22:47.262Z
|
14
541
|
- commits:
|
15
542
|
- subject: Update dependencies
|
16
543
|
hash: 484a0ac08086e881026323429a4c0d0d677b1bdd
|
package/CHANGELOG.md
CHANGED
@@ -4,10 +4,118 @@ 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
|
-
#
|
7
|
+
# v23.0.0
|
8
8
|
## (2025-08-06)
|
9
9
|
|
10
|
-
*
|
10
|
+
* Handle generating constrained definitions of computed field definitions [Pagan Gazzard]
|
11
|
+
|
12
|
+
<details>
|
13
|
+
<summary> Update @balena/abstract-sql-compiler to 11.x, @balena/odata-to-abstract-sql to 9.x [Pagan Gazzard] </summary>
|
14
|
+
|
15
|
+
> ## abstract-sql-compiler-11.0.0
|
16
|
+
> ### (2025-08-01)
|
17
|
+
>
|
18
|
+
> * Only publish the `out` directory [Pagan Gazzard]
|
19
|
+
> * Compile computed fields into the table definition [Pagan Gazzard]
|
20
|
+
> * Standardize filenames [Pagan Gazzard]
|
21
|
+
> * Improve typing of `AbstractSqlField['computed']` [Pagan Gazzard]
|
22
|
+
> * Improve typing of `AbstractSqlModel['rules']` [Pagan Gazzard]
|
23
|
+
> * Remove support for deprecated `['Bind', string, string]` bind node format [Pagan Gazzard]
|
24
|
+
> * Remove deprecated `AliasableFromTypeNodes` type, use `FromTypeNodes` instead [Pagan Gazzard]
|
25
|
+
> * Use an options object for `optimizeSchema` rather than flags [Pagan Gazzard]
|
26
|
+
> * Convert to ESM [Pagan Gazzard]
|
27
|
+
> * Remove support for legacy `Now` nodes in favor of `CurrentTimestamp` [Pagan Gazzard]
|
28
|
+
> * Switch to a separate `viewDefinition` property for creating views [Pagan Gazzard]
|
29
|
+
>
|
30
|
+
> ## abstract-sql-to-typescript-6.1.0
|
31
|
+
> ### (2025-08-06)
|
32
|
+
>
|
33
|
+
> * Add support for writable tables with definitions [Pagan Gazzard]
|
34
|
+
>
|
35
|
+
> ## abstract-sql-to-typescript-6.0.0
|
36
|
+
> ### (2025-08-01)
|
37
|
+
>
|
38
|
+
>
|
39
|
+
> <details>
|
40
|
+
> <summary> Update @balena/abstract-sql-compiler to 11.x, @balena/odata-to-abstract-sql to 9.x [Pagan Gazzard] </summary>
|
41
|
+
>
|
42
|
+
>> ### odata-to-abstract-sql-9.0.0
|
43
|
+
>> #### (2025-08-01)
|
44
|
+
>>
|
45
|
+
>> * Only publish the `out` directory [Pagan Gazzard]
|
46
|
+
>> * Update tsconfig module to `Node18` [Pagan Gazzard]
|
47
|
+
>> * Rely on computed fields having been compiled into the table definition [Pagan Gazzard]
|
48
|
+
>>
|
49
|
+
>> <details>
|
50
|
+
>> <summary> Update @balena/abstract-sql-compiler to 11.x [Pagan Gazzard] </summary>
|
51
|
+
>>
|
52
|
+
>>> #### abstract-sql-compiler-11.0.0
|
53
|
+
>>> ##### (2025-08-01)
|
54
|
+
>>>
|
55
|
+
>>> * Only publish the `out` directory [Pagan Gazzard]
|
56
|
+
>>> * Compile computed fields into the table definition [Pagan Gazzard]
|
57
|
+
>>> * Standardize filenames [Pagan Gazzard]
|
58
|
+
>>> * Improve typing of `AbstractSqlField['computed']` [Pagan Gazzard]
|
59
|
+
>>> * Improve typing of `AbstractSqlModel['rules']` [Pagan Gazzard]
|
60
|
+
>>> * Remove support for deprecated `['Bind', string, string]` bind node format [Pagan Gazzard]
|
61
|
+
>>> * Remove deprecated `AliasableFromTypeNodes` type, use `FromTypeNodes` instead [Pagan Gazzard]
|
62
|
+
>>> * Use an options object for `optimizeSchema` rather than flags [Pagan Gazzard]
|
63
|
+
>>> * Convert to ESM [Pagan Gazzard]
|
64
|
+
>>> * Remove support for legacy `Now` nodes in favor of `CurrentTimestamp` [Pagan Gazzard]
|
65
|
+
>>> * Switch to a separate `viewDefinition` property for creating views [Pagan Gazzard]
|
66
|
+
>>>
|
67
|
+
>>> #### abstract-sql-compiler-10.6.3
|
68
|
+
>>> ##### (2025-07-17)
|
69
|
+
>>>
|
70
|
+
>>> * Tests: Update @balena/odata-to-abstract-sql to 8.0.1 [Pagan Gazzard]
|
71
|
+
>>>
|
72
|
+
>>
|
73
|
+
>> </details>
|
74
|
+
>>
|
75
|
+
>> * Convert to ESM [Pagan Gazzard]
|
76
|
+
>>
|
77
|
+
>
|
78
|
+
> </details>
|
79
|
+
>
|
80
|
+
> * Convert to ESM [Pagan Gazzard]
|
81
|
+
>
|
82
|
+
> ## odata-to-abstract-sql-9.0.0
|
83
|
+
> ### (2025-08-01)
|
84
|
+
>
|
85
|
+
> * Only publish the `out` directory [Pagan Gazzard]
|
86
|
+
> * Update tsconfig module to `Node18` [Pagan Gazzard]
|
87
|
+
> * Rely on computed fields having been compiled into the table definition [Pagan Gazzard]
|
88
|
+
>
|
89
|
+
> <details>
|
90
|
+
> <summary> Update @balena/abstract-sql-compiler to 11.x [Pagan Gazzard] </summary>
|
91
|
+
>
|
92
|
+
>> ### abstract-sql-compiler-11.0.0
|
93
|
+
>> #### (2025-08-01)
|
94
|
+
>>
|
95
|
+
>> * Only publish the `out` directory [Pagan Gazzard]
|
96
|
+
>> * Compile computed fields into the table definition [Pagan Gazzard]
|
97
|
+
>> * Standardize filenames [Pagan Gazzard]
|
98
|
+
>> * Improve typing of `AbstractSqlField['computed']` [Pagan Gazzard]
|
99
|
+
>> * Improve typing of `AbstractSqlModel['rules']` [Pagan Gazzard]
|
100
|
+
>> * Remove support for deprecated `['Bind', string, string]` bind node format [Pagan Gazzard]
|
101
|
+
>> * Remove deprecated `AliasableFromTypeNodes` type, use `FromTypeNodes` instead [Pagan Gazzard]
|
102
|
+
>> * Use an options object for `optimizeSchema` rather than flags [Pagan Gazzard]
|
103
|
+
>> * Convert to ESM [Pagan Gazzard]
|
104
|
+
>> * Remove support for legacy `Now` nodes in favor of `CurrentTimestamp` [Pagan Gazzard]
|
105
|
+
>> * Switch to a separate `viewDefinition` property for creating views [Pagan Gazzard]
|
106
|
+
>>
|
107
|
+
>> ### abstract-sql-compiler-10.6.3
|
108
|
+
>> #### (2025-07-17)
|
109
|
+
>>
|
110
|
+
>> * Tests: Update @balena/odata-to-abstract-sql to 8.0.1 [Pagan Gazzard]
|
111
|
+
>>
|
112
|
+
>
|
113
|
+
> </details>
|
114
|
+
>
|
115
|
+
> * Convert to ESM [Pagan Gazzard]
|
116
|
+
>
|
117
|
+
|
118
|
+
</details>
|
11
119
|
|
12
120
|
# v22.1.3
|
13
121
|
## (2025-08-06)
|
package/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
23.0.0
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import AbstractSQLCompiler from '@balena/abstract-sql-compiler';
|
1
|
+
import * as AbstractSQLCompiler from '@balena/abstract-sql-compiler';
|
2
2
|
import { type ODataBinds } from '@balena/odata-to-abstract-sql';
|
3
3
|
import * as sbvrUtils from './sbvr-utils.js';
|
4
4
|
import type { ODataRequest } from './uri-parser.js';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import _ from 'lodash';
|
2
|
-
import AbstractSQLCompiler from '@balena/abstract-sql-compiler';
|
2
|
+
import * as AbstractSQLCompiler from '@balena/abstract-sql-compiler';
|
3
3
|
import { odataNameToSqlName, isBindReference, } from '@balena/odata-to-abstract-sql';
|
4
4
|
import deepFreeze from 'deep-freeze';
|
5
5
|
import { BadRequestError, SqlCompilationError } from './errors.js';
|