@balena/pinejs 20.1.0-build-large-file-uploads-2-1a7d50e8660ff52fe7df8d6ef9ce8b6b707027dc-1 → 21.0.0-build-21-x-aded34a9c5c670522247399b3cc4dc7814430d5e-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 +339 -17
- package/CHANGELOG.md +79 -5
- package/Gruntfile.cts +1 -1
- package/VERSION +1 -1
- package/build/browser.cts +0 -1
- package/build/module.cts +0 -1
- package/build/server.cts +0 -1
- package/out/bin/utils.js +2 -3
- package/out/bin/utils.js.map +1 -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/database-layer/db.js.map +1 -1
- package/out/express-emulator/express.js +4 -1
- package/out/express-emulator/express.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/cached-compile.js +2 -1
- package/out/sbvr-api/cached-compile.js.map +1 -1
- package/out/sbvr-api/control-flow.js.map +1 -1
- package/out/sbvr-api/errors.js +1 -1
- package/out/sbvr-api/errors.js.map +1 -1
- package/out/sbvr-api/hooks.d.ts +1 -2
- package/out/sbvr-api/hooks.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/index.d.ts +1 -1
- package/out/tasks/index.js +2 -2
- package/out/tasks/index.js.map +1 -1
- package/out/tasks/worker.d.ts +3 -2
- package/out/tasks/worker.js +2 -1
- package/out/tasks/worker.js.map +1 -1
- package/out/webresource-handler/handlers/NoopHandler.js +0 -1
- package/out/webresource-handler/handlers/NoopHandler.js.map +1 -1
- package/out/webresource-handler/index.d.ts +0 -42
- package/out/webresource-handler/index.js +2 -25
- package/out/webresource-handler/index.js.map +1 -1
- package/package.json +32 -32
- package/src/bin/utils.ts +5 -3
- package/src/config-loader/env.ts +0 -14
- package/src/database-layer/db.ts +6 -2
- package/src/express-emulator/express.js +4 -1
- package/src/migrator/async.ts +20 -21
- package/src/sbvr-api/abstract-sql.ts +30 -25
- package/src/sbvr-api/cached-compile.ts +2 -1
- package/src/sbvr-api/control-flow.ts +1 -1
- package/src/sbvr-api/errors.ts +1 -1
- package/src/sbvr-api/express-extension.ts +1 -1
- package/src/sbvr-api/hooks.ts +2 -2
- 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/index.ts +2 -2
- package/src/tasks/worker.ts +6 -2
- package/src/webresource-handler/handlers/NoopHandler.ts +3 -1
- package/src/webresource-handler/index.ts +1 -86
- 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 -251
- 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 -368
- package/src/webresource-handler/webresource.sbvr +0 -60
- package/src/webresource-handler/webresource.ts +0 -48
@@ -1,31 +1,305 @@
|
|
1
1
|
- commits:
|
2
|
-
- subject:
|
3
|
-
hash:
|
2
|
+
- subject: Update @balena/lint to 9.x
|
3
|
+
hash: aded34a9c5c670522247399b3cc4dc7814430d5e
|
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
|
-
hash:
|
10
|
+
- subject: "Translations: switch warning to an error when aliasing a $toResource"
|
11
|
+
hash: dd59217d951c6909d436425d26e5beb866dcfb93
|
12
12
|
body: ""
|
13
13
|
footer:
|
14
|
-
Change-type:
|
15
|
-
change-type:
|
16
|
-
author:
|
14
|
+
Change-type: major
|
15
|
+
change-type: major
|
16
|
+
author: Pagan Gazzard
|
17
|
+
nested: []
|
18
|
+
- subject: Replace the cached abstractSqlQuery with the compiled sqlQuery once
|
19
|
+
generated
|
20
|
+
hash: 558ba7b872ed543eb1ab906876d13c3aff72cc83
|
21
|
+
body: |
|
22
|
+
This allows freeing up all the memory used by the abstractSqlQuery tree
|
23
|
+
once the sqlQuery has been generated at the cost that the
|
24
|
+
abstractSqlQuery cannot be recompiled for another db engines. In
|
25
|
+
practice this shouldn't be a limitation as using multiple db engines
|
26
|
+
with a single model is not supported and unlikely to work.
|
27
|
+
footer:
|
28
|
+
Change-type: major
|
29
|
+
change-type: major
|
30
|
+
author: Pagan Gazzard
|
17
31
|
nested: []
|
18
|
-
- subject:
|
19
|
-
hash:
|
32
|
+
- subject: Drop sbvr-server built-in module
|
33
|
+
hash: 49ba5d72aa8ca122ba8e8f563db1e3130bddc78b
|
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
|
+
- subject: Drop http-transactions built-in module
|
41
|
+
hash: 6e4578a0dd95810935138341e6cb4bae27664554
|
42
|
+
body: ""
|
43
|
+
footer:
|
44
|
+
Change-type: major
|
45
|
+
change-type: major
|
46
|
+
author: Pagan Gazzard
|
47
|
+
nested: []
|
48
|
+
- subject: Fix some linting issues
|
49
|
+
hash: 9e15788b2a6c0b3e353ab13f25a46dc6c3167fe4
|
50
|
+
body: ""
|
51
|
+
footer:
|
52
|
+
Change-type: patch
|
53
|
+
change-type: patch
|
54
|
+
author: Pagan Gazzard
|
55
|
+
nested: []
|
56
|
+
version: 21.0.0
|
57
|
+
title: ""
|
58
|
+
date: 2025-03-21T17:22:57.809Z
|
59
|
+
- commits:
|
60
|
+
- subject: Update dependencies
|
61
|
+
hash: 78d8cc5744e904762f52eb2fc893773da79296a2
|
62
|
+
body: |
|
63
|
+
Update @balena/abstract-sql-compiler from 10.2.0 to 10.2.3
|
64
|
+
Update @balena/odata-parser from 4.1.0 to 4.2.1
|
65
|
+
Update @balena/odata-to-abstract-sql from 7.1.0 to 7.1.3
|
66
|
+
footer:
|
67
|
+
Change-type: patch
|
68
|
+
change-type: patch
|
69
|
+
author: Pagan Gazzard
|
70
|
+
nested:
|
71
|
+
- commits:
|
72
|
+
- subject: "Tests: convert test/abstract-sql/case-when-else.js to typescript"
|
73
|
+
hash: 0edb21cc4ee30ead2a6eeb290623f3a0adc7a0fe
|
74
|
+
body: ""
|
75
|
+
footer:
|
76
|
+
Change-type: patch
|
77
|
+
change-type: patch
|
78
|
+
author: Pagan Gazzard
|
79
|
+
nested: []
|
80
|
+
- subject: "Tests: convert test/abstract-sql/test.js to typescript"
|
81
|
+
hash: 43c24e87e4af08c8dd803a1cc4dfcb8bead301e9
|
82
|
+
body: ""
|
83
|
+
footer:
|
84
|
+
Change-type: patch
|
85
|
+
change-type: patch
|
86
|
+
author: Pagan Gazzard
|
87
|
+
nested: []
|
88
|
+
- subject: "Tests: simplify handling of variadic test helper functions"
|
89
|
+
hash: f07fa0857b22c99c019cb1d3ea04a9b6fa7449e7
|
90
|
+
body: ""
|
91
|
+
footer:
|
92
|
+
Change-type: patch
|
93
|
+
change-type: patch
|
94
|
+
author: Pagan Gazzard
|
95
|
+
nested: []
|
96
|
+
version: abstract-sql-compiler-10.2.3
|
97
|
+
title: ""
|
98
|
+
date: 2025-03-19T14:16:28.813Z
|
99
|
+
- commits:
|
100
|
+
- subject: Clarify the `['Bind', string, string]` form of `BindNode` is legacy
|
101
|
+
hash: aa72d3c77c2b6dae37d517ca149a27ea7e5a9bc1
|
102
|
+
body: ""
|
103
|
+
footer:
|
104
|
+
Change-type: patch
|
105
|
+
change-type: patch
|
106
|
+
author: Pagan Gazzard
|
107
|
+
nested: []
|
108
|
+
version: abstract-sql-compiler-10.2.2
|
109
|
+
title: ""
|
110
|
+
date: 2025-02-14T17:34:12.685Z
|
111
|
+
- commits:
|
112
|
+
- subject: Fix @balena/sbvr-types peer dependency version specifier
|
113
|
+
hash: 228e9411aa5c502db92e2c5227e1c88b3b3ef288
|
114
|
+
body: ""
|
115
|
+
footer:
|
116
|
+
Change-type: patch
|
117
|
+
change-type: patch
|
118
|
+
author: Pagan Gazzard
|
119
|
+
nested: []
|
120
|
+
version: abstract-sql-compiler-10.2.1
|
121
|
+
title: ""
|
122
|
+
date: 2025-01-29T12:57:29.155Z
|
123
|
+
- commits:
|
124
|
+
- subject: Add the missing MethodCall type
|
125
|
+
hash: 78efcd852c6ff653da7eb17c9d15cdfaf18f177e
|
126
|
+
body: ""
|
127
|
+
footer:
|
128
|
+
Change-type: patch
|
129
|
+
change-type: patch
|
130
|
+
author: Thodoris Greasidis
|
131
|
+
- subject: Add the missing properties in the PropertyPath typings
|
132
|
+
hash: dde814052753c19020bdf069050cb96c03229f24
|
133
|
+
body: ""
|
134
|
+
footer:
|
135
|
+
Change-type: patch
|
136
|
+
change-type: patch
|
137
|
+
See: https://github.com/balena-io-modules/odata-parser/pull/96
|
138
|
+
see: https://github.com/balena-io-modules/odata-parser/pull/96
|
139
|
+
author: Thodoris Greasidis
|
140
|
+
version: odata-parser-4.2.1
|
141
|
+
title: ""
|
142
|
+
date: 2025-03-18T11:16:09.003Z
|
143
|
+
- commits:
|
144
|
+
- subject: Support ordering by a Collection Navigation property using a Key
|
145
|
+
notation
|
146
|
+
hash: 460e4f3775068621b914c3c4a12cac34aba5e0e0
|
147
|
+
body: ""
|
148
|
+
footer:
|
149
|
+
Change-type: minor
|
150
|
+
change-type: minor
|
151
|
+
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
|
152
|
+
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
|
153
|
+
author: Thodoris Greasidis
|
154
|
+
version: odata-parser-4.2.0
|
155
|
+
title: ""
|
156
|
+
date: 2025-03-12T23:08:54.233Z
|
157
|
+
- commits:
|
158
|
+
- subject: Test that multiple $select & $orderby on the same resource result it
|
159
|
+
being JOINed just once
|
160
|
+
hash: cd87826ae0972d8f0ac6493cbb25d8a5301cca3e
|
161
|
+
body: ""
|
162
|
+
footer:
|
163
|
+
Change-type: patch
|
164
|
+
change-type: patch
|
165
|
+
author: Thodoris Greasidis
|
166
|
+
nested: []
|
167
|
+
- subject: Add tests capturing the current behavior when using incorrect property
|
168
|
+
paths
|
169
|
+
hash: dcd9258b0498ca5f504dc717288f222923d90d31
|
170
|
+
body: ""
|
171
|
+
footer:
|
172
|
+
Change-type: patch
|
173
|
+
change-type: patch
|
174
|
+
author: Thodoris Greasidis
|
175
|
+
nested: []
|
176
|
+
- subject: Add more $any & $all tests
|
177
|
+
hash: 4c59dcdaf87127b684f4850f7127bf4e6d1910d8
|
178
|
+
body: ""
|
179
|
+
footer:
|
180
|
+
Change-type: patch
|
181
|
+
change-type: patch
|
182
|
+
author: Thodoris Greasidis
|
183
|
+
nested: []
|
184
|
+
version: odata-to-abstract-sql-7.1.3
|
185
|
+
title: ""
|
186
|
+
date: 2025-03-21T15:59:08.312Z
|
187
|
+
- commits:
|
188
|
+
- subject: Add support for also shortening translation suffix names, eg `x$test`
|
189
|
+
-> `x$t`
|
190
|
+
hash: 3b16beeadf1f2fde59dab5be924623b015abae7f
|
191
|
+
body: ""
|
192
|
+
footer:
|
193
|
+
Change-type: patch
|
194
|
+
change-type: patch
|
195
|
+
author: Pagan Gazzard
|
196
|
+
nested: []
|
197
|
+
- subject: Treat $ as a word separator for alias shortening for better translation
|
198
|
+
support
|
199
|
+
hash: 9f96bf9bb28538b3c961a635560bf77e4e1f5bea
|
200
|
+
body: >
|
201
|
+
Since translations in pinejs use $ as their boundary this allows
|
202
|
+
for
|
203
|
+
|
204
|
+
shortening translated models much better
|
205
|
+
footer:
|
206
|
+
Change-type: patch
|
207
|
+
change-type: patch
|
208
|
+
author: Pagan Gazzard
|
209
|
+
nested: []
|
210
|
+
- subject: Also shorten the overall alias if it is possible and beneficial to do
|
211
|
+
so
|
212
|
+
hash: c0010bd4613ea489e37000d01b3b5132cf2cf87a
|
213
|
+
body: ""
|
214
|
+
footer:
|
215
|
+
Change-type: patch
|
216
|
+
change-type: patch
|
217
|
+
author: Pagan Gazzard
|
218
|
+
nested: []
|
219
|
+
- subject: Always look up short aliases using lower case, to avoid issues with
|
220
|
+
mixed cases
|
221
|
+
hash: d66df2195a347e86471bd356f9efa68a5c7fa301
|
222
|
+
body: >
|
223
|
+
This could happen if eg you have `Some Term` and `some other
|
224
|
+
term`
|
225
|
+
|
226
|
+
where the mixing of cases would mean one version would not be
|
227
|
+
correctly
|
228
|
+
|
229
|
+
shortened due to not matching the case-sensitive check
|
230
|
+
footer:
|
231
|
+
Change-type: patch
|
232
|
+
change-type: patch
|
233
|
+
author: Pagan Gazzard
|
234
|
+
nested: []
|
235
|
+
- subject: Generate short versions both short and long versions of the `-`
|
236
|
+
containing aliases
|
237
|
+
hash: 3dedcc1ac808b5dd88c21cd09f64dac8c37d820d
|
238
|
+
body: ""
|
239
|
+
footer:
|
240
|
+
Change-type: patch
|
241
|
+
change-type: patch
|
242
|
+
author: Pagan Gazzard
|
243
|
+
nested: []
|
244
|
+
- subject: Generate short versions both short and long versions of the ` `
|
245
|
+
containing aliases
|
246
|
+
hash: 48f7ca9b0a3bf3f486ed943cde2bb5aa3e7b1c2b
|
247
|
+
body: ""
|
248
|
+
footer:
|
249
|
+
Change-type: patch
|
250
|
+
change-type: patch
|
251
|
+
author: Pagan Gazzard
|
252
|
+
nested: []
|
253
|
+
- subject: Properly handle the case where there is no shorter alias available
|
254
|
+
hash: a6d160e826424ef261b71bb0f13668c22112bedf
|
255
|
+
body: ""
|
256
|
+
footer:
|
257
|
+
Change-type: patch
|
258
|
+
change-type: patch
|
259
|
+
author: Pagan Gazzard
|
260
|
+
nested: []
|
261
|
+
version: odata-to-abstract-sql-7.1.2
|
262
|
+
title: ""
|
263
|
+
date: 2025-03-20T17:49:23.847Z
|
264
|
+
- commits:
|
265
|
+
- subject: "tests: Remove unnecessary returns & add curly braces"
|
266
|
+
hash: 9ad21e94dc29b333542caa92a1b465d89579e2ef
|
267
|
+
body: ""
|
268
|
+
footer:
|
269
|
+
Change-type: patch
|
270
|
+
change-type: patch
|
271
|
+
author: Thodoris Greasidis
|
272
|
+
nested: []
|
273
|
+
version: odata-to-abstract-sql-7.1.1
|
274
|
+
title: ""
|
275
|
+
date: 2025-03-18T13:55:56.178Z
|
276
|
+
version: 20.0.9
|
277
|
+
title: ""
|
278
|
+
date: 2025-03-21T16:12:40.605Z
|
279
|
+
- commits:
|
280
|
+
- subject: "Tasks: add a 100ms retry delay after a failed poll"
|
281
|
+
hash: 908e687c9d9e315ef3a9a649ffcd3c3abf3336f4
|
282
|
+
body: ""
|
283
|
+
footer:
|
284
|
+
Change-type: patch
|
285
|
+
change-type: patch
|
286
|
+
author: Pagan Gazzard
|
25
287
|
nested: []
|
26
|
-
version: 20.
|
288
|
+
version: 20.0.8
|
27
289
|
title: ""
|
28
|
-
date: 2025-
|
290
|
+
date: 2025-03-07T18:06:36.151Z
|
291
|
+
- commits:
|
292
|
+
- subject: Free up migration related memory after the models get executed
|
293
|
+
hash: 6dde0e76a1bc1b70b1d212fb76b2222e72742fed
|
294
|
+
body: ""
|
295
|
+
footer:
|
296
|
+
Change-type: patch
|
297
|
+
change-type: patch
|
298
|
+
author: Thodoris Greasidis
|
299
|
+
nested: []
|
300
|
+
version: 20.0.7
|
301
|
+
title: ""
|
302
|
+
date: 2025-02-20T10:39:41.686Z
|
29
303
|
- commits:
|
30
304
|
- subject: "fix: Resolve `\\canAccess` for term forms"
|
31
305
|
hash: 3695f922218b0f40bcfa24c2426a280be26c5582
|
@@ -1683,6 +1957,9 @@
|
|
1683
1957
|
|
1684
1958
|
|
1685
1959
|
|
1960
|
+
|
1961
|
+
|
1962
|
+
|
1686
1963
|
As balena-lint
|
1687
1964
|
rejects `new
|
1688
1965
|
Boolean()`, `new
|
@@ -1708,6 +1985,9 @@
|
|
1708
1985
|
|
1709
1986
|
|
1710
1987
|
|
1988
|
+
|
1989
|
+
|
1990
|
+
|
1711
1991
|
As engine and npm is
|
1712
1992
|
now required as part
|
1713
1993
|
of package.json we
|
@@ -1748,6 +2028,9 @@
|
|
1748
2028
|
|
1749
2029
|
|
1750
2030
|
|
2031
|
+
|
2032
|
+
|
2033
|
+
|
1751
2034
|
Ensure that the
|
1752
2035
|
input passed in for
|
1753
2036
|
JSON types is either
|
@@ -1851,6 +2134,9 @@
|
|
1851
2134
|
|
1852
2135
|
|
1853
2136
|
|
2137
|
+
|
2138
|
+
|
2139
|
+
|
1854
2140
|
This also deprecates
|
1855
2141
|
the legacy version
|
1856
2142
|
footer:
|
@@ -1882,6 +2168,9 @@
|
|
1882
2168
|
|
1883
2169
|
|
1884
2170
|
|
2171
|
+
|
2172
|
+
|
2173
|
+
|
1885
2174
|
It can in fact be a
|
1886
2175
|
lot of different
|
1887
2176
|
things and that is
|
@@ -1914,6 +2203,9 @@
|
|
1914
2203
|
|
1915
2204
|
|
1916
2205
|
|
2206
|
+
|
2207
|
+
|
2208
|
+
|
1917
2209
|
We know what type
|
1918
2210
|
they return and they
|
1919
2211
|
should be explicitly
|
@@ -1951,6 +2243,9 @@
|
|
1951
2243
|
|
1952
2244
|
|
1953
2245
|
|
2246
|
+
|
2247
|
+
|
2248
|
+
|
1954
2249
|
Update
|
1955
2250
|
@balena/sbvr-types
|
1956
2251
|
from 3.4.18 to 3.5.0
|
@@ -2099,6 +2394,9 @@
|
|
2099
2394
|
|
2100
2395
|
|
2101
2396
|
|
2397
|
+
|
2398
|
+
|
2399
|
+
|
2102
2400
|
This also deprecates
|
2103
2401
|
the legacy use of
|
2104
2402
|
direct true/false
|
@@ -5216,6 +5514,9 @@
|
|
5216
5514
|
|
5217
5515
|
|
5218
5516
|
|
5517
|
+
|
5518
|
+
|
5519
|
+
|
5219
5520
|
|
5220
5521
|
|
5221
5522
|
|
@@ -5269,6 +5570,9 @@
|
|
5269
5570
|
|
5270
5571
|
|
5271
5572
|
|
5573
|
+
|
5574
|
+
|
5575
|
+
|
5272
5576
|
|
5273
5577
|
|
5274
5578
|
|
@@ -5337,6 +5641,9 @@
|
|
5337
5641
|
|
5338
5642
|
|
5339
5643
|
|
5644
|
+
|
5645
|
+
|
5646
|
+
|
5340
5647
|
|
5341
5648
|
|
5342
5649
|
|
@@ -5468,6 +5775,9 @@
|
|
5468
5775
|
|
5469
5776
|
|
5470
5777
|
|
5778
|
+
|
5779
|
+
|
5780
|
+
|
5471
5781
|
|
5472
5782
|
|
5473
5783
|
|
@@ -5527,6 +5837,9 @@
|
|
5527
5837
|
|
5528
5838
|
|
5529
5839
|
|
5840
|
+
|
5841
|
+
|
5842
|
+
|
5530
5843
|
|
5531
5844
|
|
5532
5845
|
|
@@ -5587,6 +5900,9 @@
|
|
5587
5900
|
|
5588
5901
|
|
5589
5902
|
|
5903
|
+
|
5904
|
+
|
5905
|
+
|
5590
5906
|
|
5591
5907
|
|
5592
5908
|
|
@@ -5652,6 +5968,9 @@
|
|
5652
5968
|
|
5653
5969
|
|
5654
5970
|
|
5971
|
+
|
5972
|
+
|
5973
|
+
|
5655
5974
|
|
5656
5975
|
|
5657
5976
|
|
@@ -5828,6 +6147,9 @@
|
|
5828
6147
|
|
5829
6148
|
|
5830
6149
|
|
6150
|
+
|
6151
|
+
|
6152
|
+
|
5831
6153
|
|
5832
6154
|
|
5833
6155
|
|
package/CHANGELOG.md
CHANGED
@@ -4,12 +4,86 @@ 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
|
+
* Update @balena/lint to 9.x [Pagan Gazzard]
|
11
|
+
* Translations: switch warning to an error when aliasing a $toResource [Pagan Gazzard]
|
12
|
+
* Replace the cached abstractSqlQuery with the compiled sqlQuery once generated [Pagan Gazzard]
|
13
|
+
* Drop sbvr-server built-in module [Pagan Gazzard]
|
14
|
+
* Drop http-transactions built-in module [Pagan Gazzard]
|
15
|
+
* Fix some linting issues [Pagan Gazzard]
|
16
|
+
|
17
|
+
# v20.0.9
|
18
|
+
## (2025-03-21)
|
19
|
+
|
20
|
+
|
21
|
+
<details>
|
22
|
+
<summary> Update dependencies [Pagan Gazzard] </summary>
|
23
|
+
|
24
|
+
> ## abstract-sql-compiler-10.2.3
|
25
|
+
> ### (2025-03-19)
|
26
|
+
>
|
27
|
+
> * Tests: convert test/abstract-sql/case-when-else.js to typescript [Pagan Gazzard]
|
28
|
+
> * Tests: convert test/abstract-sql/test.js to typescript [Pagan Gazzard]
|
29
|
+
> * Tests: simplify handling of variadic test helper functions [Pagan Gazzard]
|
30
|
+
>
|
31
|
+
> ## abstract-sql-compiler-10.2.2
|
32
|
+
> ### (2025-02-14)
|
33
|
+
>
|
34
|
+
> * Clarify the `['Bind', string, string]` form of `BindNode` is legacy [Pagan Gazzard]
|
35
|
+
>
|
36
|
+
> ## abstract-sql-compiler-10.2.1
|
37
|
+
> ### (2025-01-29)
|
38
|
+
>
|
39
|
+
> * Fix @balena/sbvr-types peer dependency version specifier [Pagan Gazzard]
|
40
|
+
>
|
41
|
+
> ## odata-parser-4.2.1
|
42
|
+
> ### (2025-03-18)
|
43
|
+
>
|
44
|
+
> * Add the missing MethodCall type [Thodoris Greasidis]
|
45
|
+
> * Add the missing properties in the PropertyPath typings [Thodoris Greasidis]
|
46
|
+
>
|
47
|
+
> ## odata-parser-4.2.0
|
48
|
+
> ### (2025-03-12)
|
49
|
+
>
|
50
|
+
> * Support ordering by a Collection Navigation property using a Key notation [Thodoris Greasidis]
|
51
|
+
>
|
52
|
+
> ## odata-to-abstract-sql-7.1.3
|
53
|
+
> ### (2025-03-21)
|
54
|
+
>
|
55
|
+
> * Test that multiple $select & $orderby on the same resource result it being JOINed just once [Thodoris Greasidis]
|
56
|
+
> * Add tests capturing the current behavior when using incorrect property paths [Thodoris Greasidis]
|
57
|
+
> * Add more $any & $all tests [Thodoris Greasidis]
|
58
|
+
>
|
59
|
+
> ## odata-to-abstract-sql-7.1.2
|
60
|
+
> ### (2025-03-20)
|
61
|
+
>
|
62
|
+
> * Add support for also shortening translation suffix names, eg `x$test` -> `x$t` [Pagan Gazzard]
|
63
|
+
> * Treat $ as a word separator for alias shortening for better translation support [Pagan Gazzard]
|
64
|
+
> * Also shorten the overall alias if it is possible and beneficial to do so [Pagan Gazzard]
|
65
|
+
> * Always look up short aliases using lower case, to avoid issues with mixed cases [Pagan Gazzard]
|
66
|
+
> * Generate short versions both short and long versions of the `-` containing aliases [Pagan Gazzard]
|
67
|
+
> * Generate short versions both short and long versions of the ` ` containing aliases [Pagan Gazzard]
|
68
|
+
> * Properly handle the case where there is no shorter alias available [Pagan Gazzard]
|
69
|
+
>
|
70
|
+
> ## odata-to-abstract-sql-7.1.1
|
71
|
+
> ### (2025-03-18)
|
72
|
+
>
|
73
|
+
> * tests: Remove unnecessary returns & add curly braces [Thodoris Greasidis]
|
74
|
+
>
|
75
|
+
|
76
|
+
</details>
|
77
|
+
|
78
|
+
# v20.0.8
|
79
|
+
## (2025-03-07)
|
80
|
+
|
81
|
+
* Tasks: add a 100ms retry delay after a failed poll [Pagan Gazzard]
|
82
|
+
|
83
|
+
# v20.0.7
|
84
|
+
## (2025-02-20)
|
9
85
|
|
10
|
-
*
|
11
|
-
* Add webresource vocabulary [Otavio Jacobi]
|
12
|
-
* Add multipart upload interface for handlers [Otavio Jacobi]
|
86
|
+
* Free up migration related memory after the models get executed [Thodoris Greasidis]
|
13
87
|
|
14
88
|
# v20.0.6
|
15
89
|
## (2025-02-19)
|
package/Gruntfile.cts
CHANGED
@@ -137,7 +137,7 @@ export = (grunt: typeof Grunt) => {
|
|
137
137
|
},
|
138
138
|
});
|
139
139
|
|
140
|
-
// eslint-disable-next-line @typescript-eslint/no-
|
140
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
141
141
|
require('load-grunt-tasks')(grunt);
|
142
142
|
|
143
143
|
if (!grunt.option('target')) {
|
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
package/out/bin/utils.js
CHANGED
@@ -1,11 +1,10 @@
|
|
1
|
-
process.env.PINEJS_CACHE_FILE =
|
2
|
-
process.env.PINEJS_CACHE_FILE ||
|
3
|
-
fileURLToPath(new URL('.pinejs-cache.json', import.meta.url));
|
1
|
+
process.env.PINEJS_CACHE_FILE = optionalVar('PINEJS_CACHE_FILE', fileURLToPath(new URL('.pinejs-cache.json', import.meta.url)));
|
4
2
|
import fs from 'fs';
|
5
3
|
import path from 'path';
|
6
4
|
import '../server-glue/sbvr-loader.js';
|
7
5
|
import { fileURLToPath } from 'url';
|
8
6
|
import { loadSBVR } from '../server-glue/sbvr-loader.js';
|
7
|
+
import { optionalVar } from '@balena/env-parsing';
|
9
8
|
export { version } from '../config-loader/env.js';
|
10
9
|
export const writeAll = (output, outputFile) => {
|
11
10
|
if (outputFile) {
|
package/out/bin/utils.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/bin/utils.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,GAAG,CAAC,iBAAiB
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/bin/utils.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,GAAG,CAAC,iBAAiB,GAAG,WAAW,CAC1C,mBAAmB,EACnB,aAAa,CAAC,IAAI,GAAG,CAAC,oBAAoB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAC7D,CAAC;AAMF,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,+BAA+B,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,MAAc,EAA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AW,IAAI,WAAW,IAAI,WAAW,CAAC,SAAS,IAAI,IAAI,EAAE,CAAC;YACxE,OAAO,GAAG,WAAW,CAAC,SAAS,CAAC;QACjC,CAAC;aAAM,IAAI,WAAW,IAAI,WAAW,IAAI,WAAW,CAAC,SAAS,IAAI,IAAI,EAAE,CAAC;YACxE,OAAO,GAAG,MAAM,QAAQ,CAAC,WAAW,CAAC,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;QAC9D,CAAC;aAAM,CAAC;YACP,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;QAC7C,CAAC;IACF,CAAC;SAAM,CAAC;QACP,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;IAC7C,CAAC;IACD,MAAM,EAAE,eAAe,EAAE,wBAAwB,EAAE,GAAG,MAAM,MAAM,CACjE,2BAA2B,CAC3B,CAAC;IACF,IAAI,OAAO,CAAC;IACZ,IAAI,CAAC;QACJ,OAAO,GAAG,eAAe,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IAAC,OAAO,CAAM,EAAE,CAAC;QACjB,MAAM,IAAI,KAAK,CACd,QAAQ,CAAC,CAAC,OAAO,8KAA8K,CAC/L,CAAC;IACH,CAAC;IACD,OAAO,wBAAwB,CAAC,OAAO,CAAC,CAAC;AAC1C,CAAC,CAAC"}
|
@@ -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');
|