@balena/pinejs 20.1.0-build-large-file-uploads-2-982761fe0158fb7be40429355c602a7d0fa49a91-1 → 21.0.0-build-21-x-658ee19ce50a7abb157362062f95f9c0ec721330-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 +323 -17
- package/CHANGELOG.md +77 -5
- package/VERSION +1 -1
- package/build/browser.cts +0 -1
- package/build/module.cts +0 -1
- package/build/server.cts +0 -1
- package/out/config-loader/env.d.ts +0 -5
- package/out/config-loader/env.js +0 -7
- package/out/config-loader/env.js.map +1 -1
- package/out/migrator/async.js +6 -7
- package/out/migrator/async.js.map +1 -1
- package/out/sbvr-api/abstract-sql.js +19 -11
- package/out/sbvr-api/abstract-sql.js.map +1 -1
- package/out/sbvr-api/sbvr-utils.d.ts +0 -10
- package/out/sbvr-api/sbvr-utils.js +7 -48
- package/out/sbvr-api/sbvr-utils.js.map +1 -1
- package/out/sbvr-api/translations.js +4 -17
- package/out/sbvr-api/translations.js.map +1 -1
- package/out/sbvr-api/uri-parser.d.ts +7 -1
- package/out/sbvr-api/uri-parser.js +0 -2
- package/out/sbvr-api/uri-parser.js.map +1 -1
- package/out/server-glue/module.js +1 -13
- package/out/server-glue/module.js.map +1 -1
- package/out/tasks/worker.js +1 -0
- package/out/tasks/worker.js.map +1 -1
- package/out/webresource-handler/index.d.ts +0 -42
- package/out/webresource-handler/index.js +1 -24
- package/out/webresource-handler/index.js.map +1 -1
- package/package.json +30 -30
- package/src/config-loader/env.ts +0 -14
- package/src/migrator/async.ts +20 -21
- package/src/sbvr-api/abstract-sql.ts +30 -25
- package/src/sbvr-api/sbvr-utils.ts +9 -58
- package/src/sbvr-api/translations.ts +5 -18
- package/src/sbvr-api/uri-parser.ts +11 -4
- package/src/server-glue/module.ts +1 -15
- package/src/tasks/worker.ts +3 -0
- package/src/webresource-handler/index.ts +0 -85
- package/out/data-server/sbvr-server.d.ts +0 -17
- package/out/data-server/sbvr-server.js +0 -350
- package/out/data-server/sbvr-server.js.map +0 -1
- package/out/http-transactions/transaction.sbvr +0 -59
- package/out/http-transactions/transactions.d.ts +0 -3
- package/out/http-transactions/transactions.js +0 -305
- package/out/http-transactions/transactions.js.map +0 -1
- package/out/webresource-handler/multipartUpload.d.ts +0 -12
- package/out/webresource-handler/multipartUpload.js +0 -257
- package/out/webresource-handler/multipartUpload.js.map +0 -1
- package/out/webresource-handler/webresource.d.ts +0 -42
- package/out/webresource-handler/webresource.js +0 -2
- package/out/webresource-handler/webresource.js.map +0 -1
- package/out/webresource-handler/webresource.sbvr +0 -60
- package/src/data-server/sbvr-server.ts +0 -412
- package/src/http-transactions/transaction.sbvr +0 -59
- package/src/http-transactions/transactions.js +0 -305
- package/src/webresource-handler/multipartUpload.ts +0 -377
- package/src/webresource-handler/webresource.sbvr +0 -60
- package/src/webresource-handler/webresource.ts +0 -48
@@ -1,31 +1,289 @@
|
|
1
1
|
- commits:
|
2
|
-
- subject:
|
3
|
-
hash:
|
2
|
+
- subject: "Translations: switch warning to an error when aliasing a $toResource"
|
3
|
+
hash: 3ee696bbc98eb24e56135c9d31b73d249bd8a260
|
4
4
|
body: ""
|
5
5
|
footer:
|
6
|
-
Change-type:
|
7
|
-
change-type:
|
8
|
-
author:
|
6
|
+
Change-type: major
|
7
|
+
change-type: major
|
8
|
+
author: Pagan Gazzard
|
9
9
|
nested: []
|
10
|
-
- subject:
|
11
|
-
|
10
|
+
- subject: Replace the cached abstractSqlQuery with the compiled sqlQuery once
|
11
|
+
generated
|
12
|
+
hash: 87f3856ddeeaab39f3b2dfe389b12506f5c818da
|
13
|
+
body: |
|
14
|
+
This allows freeing up all the memory used by the abstractSqlQuery tree
|
15
|
+
once the sqlQuery has been generated at the cost that the
|
16
|
+
abstractSqlQuery cannot be recompiled for another db engines. In
|
17
|
+
practice this shouldn't be a limitation as using multiple db engines
|
18
|
+
with a single model is not supported and unlikely to work.
|
19
|
+
footer:
|
20
|
+
Change-type: major
|
21
|
+
change-type: major
|
22
|
+
author: Pagan Gazzard
|
23
|
+
nested: []
|
24
|
+
- subject: Drop sbvr-server built-in module
|
25
|
+
hash: f1dae31946e8d34bdb8cc09965a13f3024cc2523
|
12
26
|
body: ""
|
13
27
|
footer:
|
14
|
-
Change-type:
|
15
|
-
change-type:
|
16
|
-
author:
|
28
|
+
Change-type: major
|
29
|
+
change-type: major
|
30
|
+
author: Pagan Gazzard
|
17
31
|
nested: []
|
18
|
-
- subject:
|
19
|
-
hash:
|
32
|
+
- subject: Drop http-transactions built-in module
|
33
|
+
hash: 924ca131e4973de26b87669c920775af923a5b91
|
20
34
|
body: ""
|
21
35
|
footer:
|
22
|
-
Change-type:
|
23
|
-
change-type:
|
24
|
-
author:
|
36
|
+
Change-type: major
|
37
|
+
change-type: major
|
38
|
+
author: Pagan Gazzard
|
39
|
+
nested: []
|
40
|
+
version: 21.0.0
|
41
|
+
title: ""
|
42
|
+
date: 2025-03-21T16:18:13.637Z
|
43
|
+
- commits:
|
44
|
+
- subject: Update dependencies
|
45
|
+
hash: 78d8cc5744e904762f52eb2fc893773da79296a2
|
46
|
+
body: |
|
47
|
+
Update @balena/abstract-sql-compiler from 10.2.0 to 10.2.3
|
48
|
+
Update @balena/odata-parser from 4.1.0 to 4.2.1
|
49
|
+
Update @balena/odata-to-abstract-sql from 7.1.0 to 7.1.3
|
50
|
+
footer:
|
51
|
+
Change-type: patch
|
52
|
+
change-type: patch
|
53
|
+
author: Pagan Gazzard
|
54
|
+
nested:
|
55
|
+
- commits:
|
56
|
+
- subject: "Tests: convert test/abstract-sql/case-when-else.js to typescript"
|
57
|
+
hash: 0edb21cc4ee30ead2a6eeb290623f3a0adc7a0fe
|
58
|
+
body: ""
|
59
|
+
footer:
|
60
|
+
Change-type: patch
|
61
|
+
change-type: patch
|
62
|
+
author: Pagan Gazzard
|
63
|
+
nested: []
|
64
|
+
- subject: "Tests: convert test/abstract-sql/test.js to typescript"
|
65
|
+
hash: 43c24e87e4af08c8dd803a1cc4dfcb8bead301e9
|
66
|
+
body: ""
|
67
|
+
footer:
|
68
|
+
Change-type: patch
|
69
|
+
change-type: patch
|
70
|
+
author: Pagan Gazzard
|
71
|
+
nested: []
|
72
|
+
- subject: "Tests: simplify handling of variadic test helper functions"
|
73
|
+
hash: f07fa0857b22c99c019cb1d3ea04a9b6fa7449e7
|
74
|
+
body: ""
|
75
|
+
footer:
|
76
|
+
Change-type: patch
|
77
|
+
change-type: patch
|
78
|
+
author: Pagan Gazzard
|
79
|
+
nested: []
|
80
|
+
version: abstract-sql-compiler-10.2.3
|
81
|
+
title: ""
|
82
|
+
date: 2025-03-19T14:16:28.813Z
|
83
|
+
- commits:
|
84
|
+
- subject: Clarify the `['Bind', string, string]` form of `BindNode` is legacy
|
85
|
+
hash: aa72d3c77c2b6dae37d517ca149a27ea7e5a9bc1
|
86
|
+
body: ""
|
87
|
+
footer:
|
88
|
+
Change-type: patch
|
89
|
+
change-type: patch
|
90
|
+
author: Pagan Gazzard
|
91
|
+
nested: []
|
92
|
+
version: abstract-sql-compiler-10.2.2
|
93
|
+
title: ""
|
94
|
+
date: 2025-02-14T17:34:12.685Z
|
95
|
+
- commits:
|
96
|
+
- subject: Fix @balena/sbvr-types peer dependency version specifier
|
97
|
+
hash: 228e9411aa5c502db92e2c5227e1c88b3b3ef288
|
98
|
+
body: ""
|
99
|
+
footer:
|
100
|
+
Change-type: patch
|
101
|
+
change-type: patch
|
102
|
+
author: Pagan Gazzard
|
103
|
+
nested: []
|
104
|
+
version: abstract-sql-compiler-10.2.1
|
105
|
+
title: ""
|
106
|
+
date: 2025-01-29T12:57:29.155Z
|
107
|
+
- commits:
|
108
|
+
- subject: Add the missing MethodCall type
|
109
|
+
hash: 78efcd852c6ff653da7eb17c9d15cdfaf18f177e
|
110
|
+
body: ""
|
111
|
+
footer:
|
112
|
+
Change-type: patch
|
113
|
+
change-type: patch
|
114
|
+
author: Thodoris Greasidis
|
115
|
+
- subject: Add the missing properties in the PropertyPath typings
|
116
|
+
hash: dde814052753c19020bdf069050cb96c03229f24
|
117
|
+
body: ""
|
118
|
+
footer:
|
119
|
+
Change-type: patch
|
120
|
+
change-type: patch
|
121
|
+
See: https://github.com/balena-io-modules/odata-parser/pull/96
|
122
|
+
see: https://github.com/balena-io-modules/odata-parser/pull/96
|
123
|
+
author: Thodoris Greasidis
|
124
|
+
version: odata-parser-4.2.1
|
125
|
+
title: ""
|
126
|
+
date: 2025-03-18T11:16:09.003Z
|
127
|
+
- commits:
|
128
|
+
- subject: Support ordering by a Collection Navigation property using a Key
|
129
|
+
notation
|
130
|
+
hash: 460e4f3775068621b914c3c4a12cac34aba5e0e0
|
131
|
+
body: ""
|
132
|
+
footer:
|
133
|
+
Change-type: minor
|
134
|
+
change-type: minor
|
135
|
+
See: https://balena.fibery.io/Work/Project/Shape--Build-Add-support-for-sorting-on-user-selected-tag-columns-in-the-server-side-paginated-devic-912
|
136
|
+
see: https://balena.fibery.io/Work/Project/Shape--Build-Add-support-for-sorting-on-user-selected-tag-columns-in-the-server-side-paginated-devic-912
|
137
|
+
author: Thodoris Greasidis
|
138
|
+
version: odata-parser-4.2.0
|
139
|
+
title: ""
|
140
|
+
date: 2025-03-12T23:08:54.233Z
|
141
|
+
- commits:
|
142
|
+
- subject: Test that multiple $select & $orderby on the same resource result it
|
143
|
+
being JOINed just once
|
144
|
+
hash: cd87826ae0972d8f0ac6493cbb25d8a5301cca3e
|
145
|
+
body: ""
|
146
|
+
footer:
|
147
|
+
Change-type: patch
|
148
|
+
change-type: patch
|
149
|
+
author: Thodoris Greasidis
|
150
|
+
nested: []
|
151
|
+
- subject: Add tests capturing the current behavior when using incorrect property
|
152
|
+
paths
|
153
|
+
hash: dcd9258b0498ca5f504dc717288f222923d90d31
|
154
|
+
body: ""
|
155
|
+
footer:
|
156
|
+
Change-type: patch
|
157
|
+
change-type: patch
|
158
|
+
author: Thodoris Greasidis
|
159
|
+
nested: []
|
160
|
+
- subject: Add more $any & $all tests
|
161
|
+
hash: 4c59dcdaf87127b684f4850f7127bf4e6d1910d8
|
162
|
+
body: ""
|
163
|
+
footer:
|
164
|
+
Change-type: patch
|
165
|
+
change-type: patch
|
166
|
+
author: Thodoris Greasidis
|
167
|
+
nested: []
|
168
|
+
version: odata-to-abstract-sql-7.1.3
|
169
|
+
title: ""
|
170
|
+
date: 2025-03-21T15:59:08.312Z
|
171
|
+
- commits:
|
172
|
+
- subject: Add support for also shortening translation suffix names, eg `x$test`
|
173
|
+
-> `x$t`
|
174
|
+
hash: 3b16beeadf1f2fde59dab5be924623b015abae7f
|
175
|
+
body: ""
|
176
|
+
footer:
|
177
|
+
Change-type: patch
|
178
|
+
change-type: patch
|
179
|
+
author: Pagan Gazzard
|
180
|
+
nested: []
|
181
|
+
- subject: Treat $ as a word separator for alias shortening for better translation
|
182
|
+
support
|
183
|
+
hash: 9f96bf9bb28538b3c961a635560bf77e4e1f5bea
|
184
|
+
body: >
|
185
|
+
Since translations in pinejs use $ as their boundary this allows
|
186
|
+
for
|
187
|
+
|
188
|
+
shortening translated models much better
|
189
|
+
footer:
|
190
|
+
Change-type: patch
|
191
|
+
change-type: patch
|
192
|
+
author: Pagan Gazzard
|
193
|
+
nested: []
|
194
|
+
- subject: Also shorten the overall alias if it is possible and beneficial to do
|
195
|
+
so
|
196
|
+
hash: c0010bd4613ea489e37000d01b3b5132cf2cf87a
|
197
|
+
body: ""
|
198
|
+
footer:
|
199
|
+
Change-type: patch
|
200
|
+
change-type: patch
|
201
|
+
author: Pagan Gazzard
|
202
|
+
nested: []
|
203
|
+
- subject: Always look up short aliases using lower case, to avoid issues with
|
204
|
+
mixed cases
|
205
|
+
hash: d66df2195a347e86471bd356f9efa68a5c7fa301
|
206
|
+
body: >
|
207
|
+
This could happen if eg you have `Some Term` and `some other
|
208
|
+
term`
|
209
|
+
|
210
|
+
where the mixing of cases would mean one version would not be
|
211
|
+
correctly
|
212
|
+
|
213
|
+
shortened due to not matching the case-sensitive check
|
214
|
+
footer:
|
215
|
+
Change-type: patch
|
216
|
+
change-type: patch
|
217
|
+
author: Pagan Gazzard
|
218
|
+
nested: []
|
219
|
+
- subject: Generate short versions both short and long versions of the `-`
|
220
|
+
containing aliases
|
221
|
+
hash: 3dedcc1ac808b5dd88c21cd09f64dac8c37d820d
|
222
|
+
body: ""
|
223
|
+
footer:
|
224
|
+
Change-type: patch
|
225
|
+
change-type: patch
|
226
|
+
author: Pagan Gazzard
|
227
|
+
nested: []
|
228
|
+
- subject: Generate short versions both short and long versions of the ` `
|
229
|
+
containing aliases
|
230
|
+
hash: 48f7ca9b0a3bf3f486ed943cde2bb5aa3e7b1c2b
|
231
|
+
body: ""
|
232
|
+
footer:
|
233
|
+
Change-type: patch
|
234
|
+
change-type: patch
|
235
|
+
author: Pagan Gazzard
|
236
|
+
nested: []
|
237
|
+
- subject: Properly handle the case where there is no shorter alias available
|
238
|
+
hash: a6d160e826424ef261b71bb0f13668c22112bedf
|
239
|
+
body: ""
|
240
|
+
footer:
|
241
|
+
Change-type: patch
|
242
|
+
change-type: patch
|
243
|
+
author: Pagan Gazzard
|
244
|
+
nested: []
|
245
|
+
version: odata-to-abstract-sql-7.1.2
|
246
|
+
title: ""
|
247
|
+
date: 2025-03-20T17:49:23.847Z
|
248
|
+
- commits:
|
249
|
+
- subject: "tests: Remove unnecessary returns & add curly braces"
|
250
|
+
hash: 9ad21e94dc29b333542caa92a1b465d89579e2ef
|
251
|
+
body: ""
|
252
|
+
footer:
|
253
|
+
Change-type: patch
|
254
|
+
change-type: patch
|
255
|
+
author: Thodoris Greasidis
|
256
|
+
nested: []
|
257
|
+
version: odata-to-abstract-sql-7.1.1
|
258
|
+
title: ""
|
259
|
+
date: 2025-03-18T13:55:56.178Z
|
260
|
+
version: 20.0.9
|
261
|
+
title: ""
|
262
|
+
date: 2025-03-21T16:12:40.605Z
|
263
|
+
- commits:
|
264
|
+
- subject: "Tasks: add a 100ms retry delay after a failed poll"
|
265
|
+
hash: 908e687c9d9e315ef3a9a649ffcd3c3abf3336f4
|
266
|
+
body: ""
|
267
|
+
footer:
|
268
|
+
Change-type: patch
|
269
|
+
change-type: patch
|
270
|
+
author: Pagan Gazzard
|
25
271
|
nested: []
|
26
|
-
version: 20.
|
272
|
+
version: 20.0.8
|
27
273
|
title: ""
|
28
|
-
date: 2025-
|
274
|
+
date: 2025-03-07T18:06:36.151Z
|
275
|
+
- commits:
|
276
|
+
- subject: Free up migration related memory after the models get executed
|
277
|
+
hash: 6dde0e76a1bc1b70b1d212fb76b2222e72742fed
|
278
|
+
body: ""
|
279
|
+
footer:
|
280
|
+
Change-type: patch
|
281
|
+
change-type: patch
|
282
|
+
author: Thodoris Greasidis
|
283
|
+
nested: []
|
284
|
+
version: 20.0.7
|
285
|
+
title: ""
|
286
|
+
date: 2025-02-20T10:39:41.686Z
|
29
287
|
- commits:
|
30
288
|
- subject: "fix: Resolve `\\canAccess` for term forms"
|
31
289
|
hash: 3695f922218b0f40bcfa24c2426a280be26c5582
|
@@ -1683,6 +1941,9 @@
|
|
1683
1941
|
|
1684
1942
|
|
1685
1943
|
|
1944
|
+
|
1945
|
+
|
1946
|
+
|
1686
1947
|
As balena-lint
|
1687
1948
|
rejects `new
|
1688
1949
|
Boolean()`, `new
|
@@ -1708,6 +1969,9 @@
|
|
1708
1969
|
|
1709
1970
|
|
1710
1971
|
|
1972
|
+
|
1973
|
+
|
1974
|
+
|
1711
1975
|
As engine and npm is
|
1712
1976
|
now required as part
|
1713
1977
|
of package.json we
|
@@ -1748,6 +2012,9 @@
|
|
1748
2012
|
|
1749
2013
|
|
1750
2014
|
|
2015
|
+
|
2016
|
+
|
2017
|
+
|
1751
2018
|
Ensure that the
|
1752
2019
|
input passed in for
|
1753
2020
|
JSON types is either
|
@@ -1851,6 +2118,9 @@
|
|
1851
2118
|
|
1852
2119
|
|
1853
2120
|
|
2121
|
+
|
2122
|
+
|
2123
|
+
|
1854
2124
|
This also deprecates
|
1855
2125
|
the legacy version
|
1856
2126
|
footer:
|
@@ -1882,6 +2152,9 @@
|
|
1882
2152
|
|
1883
2153
|
|
1884
2154
|
|
2155
|
+
|
2156
|
+
|
2157
|
+
|
1885
2158
|
It can in fact be a
|
1886
2159
|
lot of different
|
1887
2160
|
things and that is
|
@@ -1914,6 +2187,9 @@
|
|
1914
2187
|
|
1915
2188
|
|
1916
2189
|
|
2190
|
+
|
2191
|
+
|
2192
|
+
|
1917
2193
|
We know what type
|
1918
2194
|
they return and they
|
1919
2195
|
should be explicitly
|
@@ -1951,6 +2227,9 @@
|
|
1951
2227
|
|
1952
2228
|
|
1953
2229
|
|
2230
|
+
|
2231
|
+
|
2232
|
+
|
1954
2233
|
Update
|
1955
2234
|
@balena/sbvr-types
|
1956
2235
|
from 3.4.18 to 3.5.0
|
@@ -2099,6 +2378,9 @@
|
|
2099
2378
|
|
2100
2379
|
|
2101
2380
|
|
2381
|
+
|
2382
|
+
|
2383
|
+
|
2102
2384
|
This also deprecates
|
2103
2385
|
the legacy use of
|
2104
2386
|
direct true/false
|
@@ -5216,6 +5498,9 @@
|
|
5216
5498
|
|
5217
5499
|
|
5218
5500
|
|
5501
|
+
|
5502
|
+
|
5503
|
+
|
5219
5504
|
|
5220
5505
|
|
5221
5506
|
|
@@ -5269,6 +5554,9 @@
|
|
5269
5554
|
|
5270
5555
|
|
5271
5556
|
|
5557
|
+
|
5558
|
+
|
5559
|
+
|
5272
5560
|
|
5273
5561
|
|
5274
5562
|
|
@@ -5337,6 +5625,9 @@
|
|
5337
5625
|
|
5338
5626
|
|
5339
5627
|
|
5628
|
+
|
5629
|
+
|
5630
|
+
|
5340
5631
|
|
5341
5632
|
|
5342
5633
|
|
@@ -5468,6 +5759,9 @@
|
|
5468
5759
|
|
5469
5760
|
|
5470
5761
|
|
5762
|
+
|
5763
|
+
|
5764
|
+
|
5471
5765
|
|
5472
5766
|
|
5473
5767
|
|
@@ -5527,6 +5821,9 @@
|
|
5527
5821
|
|
5528
5822
|
|
5529
5823
|
|
5824
|
+
|
5825
|
+
|
5826
|
+
|
5530
5827
|
|
5531
5828
|
|
5532
5829
|
|
@@ -5587,6 +5884,9 @@
|
|
5587
5884
|
|
5588
5885
|
|
5589
5886
|
|
5887
|
+
|
5888
|
+
|
5889
|
+
|
5590
5890
|
|
5591
5891
|
|
5592
5892
|
|
@@ -5652,6 +5952,9 @@
|
|
5652
5952
|
|
5653
5953
|
|
5654
5954
|
|
5955
|
+
|
5956
|
+
|
5957
|
+
|
5655
5958
|
|
5656
5959
|
|
5657
5960
|
|
@@ -5828,6 +6131,9 @@
|
|
5828
6131
|
|
5829
6132
|
|
5830
6133
|
|
6134
|
+
|
6135
|
+
|
6136
|
+
|
5831
6137
|
|
5832
6138
|
|
5833
6139
|
|
package/CHANGELOG.md
CHANGED
@@ -4,12 +4,84 @@ 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
|
-
#
|
8
|
-
## (2025-
|
7
|
+
# v21.0.0
|
8
|
+
## (2025-03-21)
|
9
|
+
|
10
|
+
* Translations: switch warning to an error when aliasing a $toResource [Pagan Gazzard]
|
11
|
+
* Replace the cached abstractSqlQuery with the compiled sqlQuery once generated [Pagan Gazzard]
|
12
|
+
* Drop sbvr-server built-in module [Pagan Gazzard]
|
13
|
+
* Drop http-transactions built-in module [Pagan Gazzard]
|
14
|
+
|
15
|
+
# v20.0.9
|
16
|
+
## (2025-03-21)
|
17
|
+
|
18
|
+
|
19
|
+
<details>
|
20
|
+
<summary> Update dependencies [Pagan Gazzard] </summary>
|
21
|
+
|
22
|
+
> ## abstract-sql-compiler-10.2.3
|
23
|
+
> ### (2025-03-19)
|
24
|
+
>
|
25
|
+
> * Tests: convert test/abstract-sql/case-when-else.js to typescript [Pagan Gazzard]
|
26
|
+
> * Tests: convert test/abstract-sql/test.js to typescript [Pagan Gazzard]
|
27
|
+
> * Tests: simplify handling of variadic test helper functions [Pagan Gazzard]
|
28
|
+
>
|
29
|
+
> ## abstract-sql-compiler-10.2.2
|
30
|
+
> ### (2025-02-14)
|
31
|
+
>
|
32
|
+
> * Clarify the `['Bind', string, string]` form of `BindNode` is legacy [Pagan Gazzard]
|
33
|
+
>
|
34
|
+
> ## abstract-sql-compiler-10.2.1
|
35
|
+
> ### (2025-01-29)
|
36
|
+
>
|
37
|
+
> * Fix @balena/sbvr-types peer dependency version specifier [Pagan Gazzard]
|
38
|
+
>
|
39
|
+
> ## odata-parser-4.2.1
|
40
|
+
> ### (2025-03-18)
|
41
|
+
>
|
42
|
+
> * Add the missing MethodCall type [Thodoris Greasidis]
|
43
|
+
> * Add the missing properties in the PropertyPath typings [Thodoris Greasidis]
|
44
|
+
>
|
45
|
+
> ## odata-parser-4.2.0
|
46
|
+
> ### (2025-03-12)
|
47
|
+
>
|
48
|
+
> * Support ordering by a Collection Navigation property using a Key notation [Thodoris Greasidis]
|
49
|
+
>
|
50
|
+
> ## odata-to-abstract-sql-7.1.3
|
51
|
+
> ### (2025-03-21)
|
52
|
+
>
|
53
|
+
> * Test that multiple $select & $orderby on the same resource result it being JOINed just once [Thodoris Greasidis]
|
54
|
+
> * Add tests capturing the current behavior when using incorrect property paths [Thodoris Greasidis]
|
55
|
+
> * Add more $any & $all tests [Thodoris Greasidis]
|
56
|
+
>
|
57
|
+
> ## odata-to-abstract-sql-7.1.2
|
58
|
+
> ### (2025-03-20)
|
59
|
+
>
|
60
|
+
> * Add support for also shortening translation suffix names, eg `x$test` -> `x$t` [Pagan Gazzard]
|
61
|
+
> * Treat $ as a word separator for alias shortening for better translation support [Pagan Gazzard]
|
62
|
+
> * Also shorten the overall alias if it is possible and beneficial to do so [Pagan Gazzard]
|
63
|
+
> * Always look up short aliases using lower case, to avoid issues with mixed cases [Pagan Gazzard]
|
64
|
+
> * Generate short versions both short and long versions of the `-` containing aliases [Pagan Gazzard]
|
65
|
+
> * Generate short versions both short and long versions of the ` ` containing aliases [Pagan Gazzard]
|
66
|
+
> * Properly handle the case where there is no shorter alias available [Pagan Gazzard]
|
67
|
+
>
|
68
|
+
> ## odata-to-abstract-sql-7.1.1
|
69
|
+
> ### (2025-03-18)
|
70
|
+
>
|
71
|
+
> * tests: Remove unnecessary returns & add curly braces [Thodoris Greasidis]
|
72
|
+
>
|
73
|
+
|
74
|
+
</details>
|
75
|
+
|
76
|
+
# v20.0.8
|
77
|
+
## (2025-03-07)
|
78
|
+
|
79
|
+
* Tasks: add a 100ms retry delay after a failed poll [Pagan Gazzard]
|
80
|
+
|
81
|
+
# v20.0.7
|
82
|
+
## (2025-02-20)
|
9
83
|
|
10
|
-
*
|
11
|
-
* Add webresource vocabulary [Otavio Jacobi]
|
12
|
-
* Add multipart upload interface for handlers [Otavio Jacobi]
|
84
|
+
* Free up migration related memory after the models get executed [Thodoris Greasidis]
|
13
85
|
|
14
86
|
# v20.0.6
|
15
87
|
## (2025-02-19)
|
package/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
21.0.0
|
package/build/browser.cts
CHANGED
package/build/module.cts
CHANGED
@@ -11,7 +11,6 @@ const config: Configuration = {
|
|
11
11
|
'process.browser': false,
|
12
12
|
|
13
13
|
'process.env.CONFIG_LOADER_DISABLED': false,
|
14
|
-
'process.env.SBVR_SERVER_ENABLED': false,
|
15
14
|
}),
|
16
15
|
// When we're compiling the module build we want to always ignore the server build file
|
17
16
|
new webpack.IgnorePlugin({
|
package/build/server.cts
CHANGED
@@ -20,7 +20,6 @@ export declare const cache: {
|
|
20
20
|
parsePermissions: CacheOpts;
|
21
21
|
parseOData: CacheOpts;
|
22
22
|
odataToAbstractSql: CacheOpts;
|
23
|
-
abstractSqlCompiler: CacheOpts;
|
24
23
|
userPermissions: CacheOpts;
|
25
24
|
apiKeyPermissions: CacheOpts;
|
26
25
|
apiKeyActorId: CacheOpts;
|
@@ -59,10 +58,6 @@ export declare const tasks: {
|
|
59
58
|
queueConcurrency: number;
|
60
59
|
queueIntervalMS: number;
|
61
60
|
};
|
62
|
-
export declare const webResource: {
|
63
|
-
multipartUploadEnabled: boolean;
|
64
|
-
singleUploadMaxFilesize: number;
|
65
|
-
};
|
66
61
|
export declare const guardTestMockOnly: () => void;
|
67
62
|
export declare const TEST_MOCK_ONLY: {
|
68
63
|
DEBUG: typeof DEBUG;
|
package/out/config-loader/env.js
CHANGED
@@ -18,9 +18,6 @@ export const cache = {
|
|
18
18
|
odataToAbstractSql: {
|
19
19
|
max: 10000,
|
20
20
|
},
|
21
|
-
abstractSqlCompiler: {
|
22
|
-
max: 10000,
|
23
|
-
},
|
24
21
|
userPermissions: false,
|
25
22
|
apiKeyPermissions: false,
|
26
23
|
apiKeyActorId: false,
|
@@ -88,10 +85,6 @@ export const tasks = {
|
|
88
85
|
queueConcurrency: intVar('PINEJS_QUEUE_CONCURRENCY', 0),
|
89
86
|
queueIntervalMS: intVar('PINEJS_QUEUE_INTERVAL_MS', 1000),
|
90
87
|
};
|
91
|
-
export const webResource = {
|
92
|
-
multipartUploadEnabled: boolVar('PINEJS_WEBRESOURCE_MULTIPART_ENABLED', false),
|
93
|
-
singleUploadMaxFilesize: intVar('PINEJS_WEBRESOURCE_MAXFILESIZE', 299 * 1024 * 1024),
|
94
|
-
};
|
95
88
|
export const guardTestMockOnly = () => {
|
96
89
|
if (process.env.DEPLOYMENT !== 'TEST') {
|
97
90
|
throw new Error('Attempting to use TEST_MOCK_ONLY outside of tests');
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"env.js","sourceRoot":"","sources":["../../src/config-loader/env.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,IAAI,CAAC;AACpC,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,KAAK,CACpC,MAAM,EAAE,CAAC,QAAQ,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC,EAAE,MAA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CAAC;CACzD,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,EAAE;IACrC,IAAI,OAAO,CAAC,GAAG,CAAC,UAAU,KAAK,MAAM,EAAE,CAAC;QACvC,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;IACtE,CAAC;AACF,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,cAAc,GAAG;IAC7B,IAAI,KAAK,CAAC,CAAe;QACxB,iBAAiB,EAAE,CAAC;QACpB,KAAK,GAAG,CAAC,CAAC;IACX,CAAC;CACD,CAAC"}
|
package/out/migrator/async.js
CHANGED
@@ -3,7 +3,7 @@ import * as sbvrUtils from '../sbvr-api/sbvr-utils.js';
|
|
3
3
|
import { getExecutedMigrations, migratorEnv, lockMigrations, initMigrationStatus, readMigrationStatus, updateMigrationStatus, getRunnableAsyncMigrations, filterAndSortPendingMigrations, } from './utils.js';
|
4
4
|
import { booleanToEnabledString } from '../config-loader/env.js';
|
5
5
|
export const run = async (tx, model) => {
|
6
|
-
const { migrations } = model;
|
6
|
+
const { migrations, apiRoot: apiRootModelName } = model;
|
7
7
|
if (migrations == null || _.isEmpty(migrations)) {
|
8
8
|
return;
|
9
9
|
}
|
@@ -11,13 +11,12 @@ export const run = async (tx, model) => {
|
|
11
11
|
if (asyncMigrations == null) {
|
12
12
|
return;
|
13
13
|
}
|
14
|
-
await
|
14
|
+
const executedMigrations = await getExecutedMigrations(tx, apiRootModelName);
|
15
|
+
const pendingMigrations = filterAndSortPendingMigrations(asyncMigrations, executedMigrations);
|
16
|
+
await $run(tx, apiRootModelName, pendingMigrations);
|
15
17
|
};
|
16
|
-
const $run = async (setupTx,
|
17
|
-
const modelName = model.apiRoot;
|
18
|
+
const $run = async (setupTx, apiRootModelName, pendingMigrations) => {
|
18
19
|
const asyncMigrationSetup = [];
|
19
|
-
const executedMigrations = await getExecutedMigrations(setupTx, modelName);
|
20
|
-
const pendingMigrations = filterAndSortPendingMigrations(migrations, executedMigrations);
|
21
20
|
for (const [key, migration] of pendingMigrations) {
|
22
21
|
let asyncRunnerMigratorFn;
|
23
22
|
let initMigrationState = {
|
@@ -78,7 +77,7 @@ const $run = async (setupTx, model, migrations) => {
|
|
78
77
|
return;
|
79
78
|
}
|
80
79
|
try {
|
81
|
-
const $migrationState = await sbvrUtils.db.transaction(async (tx) => await lockMigrations({ tx, modelName, blocking: false }, async () => {
|
80
|
+
const $migrationState = await sbvrUtils.db.transaction(async (tx) => await lockMigrations({ tx, modelName: apiRootModelName, blocking: false }, async () => {
|
82
81
|
const migrationState = await readMigrationStatus(tx, key);
|
83
82
|
if (!migrationState) {
|
84
83
|
(sbvrUtils.logger.migrations?.info ?? console.info)(`stopping async migration due to missing migration status: ${key}`);
|