@balena/abstract-sql-to-typescript 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.versionbot/CHANGELOG.yml +615 -7
- package/CHANGELOG.md +207 -0
- package/out/index.d.ts +1 -1
- package/out/index.js +2 -2
- package/out/index.js.map +1 -1
- package/package.json +18 -15
- package/repo.yml +2 -2
- package/src/index.ts +1 -1
- package/test/index.ts +1 -1
|
@@ -1,18 +1,626 @@
|
|
|
1
|
+
- commits:
|
|
2
|
+
- subject: Update dependencies
|
|
3
|
+
hash: dd79d29d1e4ac31a4fdf7daf2e663ef876aec09c
|
|
4
|
+
body: |
|
|
5
|
+
Update @balena/abstract-sql-compiler from 7.4.2 to 7.19.1
|
|
6
|
+
Update @balena/odata-to-abstract-sql from 5.4.1 to 5.4.9
|
|
7
|
+
footer:
|
|
8
|
+
Change-type: patch
|
|
9
|
+
change-type: patch
|
|
10
|
+
author: Pagan Gazzard
|
|
11
|
+
nested:
|
|
12
|
+
- commits:
|
|
13
|
+
- subject: Update dependencies
|
|
14
|
+
hash: a80855150955d687b565a33633fe69b4e5e10ebd
|
|
15
|
+
body: |
|
|
16
|
+
Update @balena/abstract-sql-compiler from 7.17.0 to 7.19.0
|
|
17
|
+
Update @balena/odata-parser from 2.2.8 to 2.2.9
|
|
18
|
+
footer:
|
|
19
|
+
Change-type: patch
|
|
20
|
+
change-type: patch
|
|
21
|
+
author: Pagan Gazzard
|
|
22
|
+
nested:
|
|
23
|
+
- commits:
|
|
24
|
+
- subject: Remove .circleci/config.yml
|
|
25
|
+
hash: 017b5e4c10ed4e13b344086888f6bc64cacb9c0c
|
|
26
|
+
body: ""
|
|
27
|
+
footer:
|
|
28
|
+
Change-type: patch
|
|
29
|
+
change-type: patch
|
|
30
|
+
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
|
|
31
|
+
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
|
|
32
|
+
author: Thodoris Greasidis
|
|
33
|
+
nested: []
|
|
34
|
+
- subject: Add support for `ConcatenateWithSeparator` nodes
|
|
35
|
+
hash: 34bae3f19224ba38cf6806653ef8884a07f41357
|
|
36
|
+
body: ""
|
|
37
|
+
footer:
|
|
38
|
+
Change-type: minor
|
|
39
|
+
change-type: minor
|
|
40
|
+
author: Thodoris Greasidis
|
|
41
|
+
nested: []
|
|
42
|
+
version: abstract-sql-compiler-7.19.0
|
|
43
|
+
title: "'Add support for nodes'"
|
|
44
|
+
date: 2022-03-24T14:48:17.742Z
|
|
45
|
+
- commits:
|
|
46
|
+
- subject: Add reference property type
|
|
47
|
+
hash: d28e2456dff10b18bcc97b7232479fe78efd5eb3
|
|
48
|
+
body: >
|
|
49
|
+
Property type describes if the reference is 'strict' or
|
|
50
|
+
'informative'.
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
Behaviour change only if type is informative otherwise default 'strict'.
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
An informative reference is just an int field that points
|
|
57
|
+
|
|
58
|
+
to another tables id field - like foreign key without constraints
|
|
59
|
+
|
|
60
|
+
or foregein key cascades.
|
|
61
|
+
footer:
|
|
62
|
+
Change-type: minor
|
|
63
|
+
change-type: minor
|
|
64
|
+
Signed-off-by: Harald Fischer <harald@balena.io>
|
|
65
|
+
signed-off-by: Harald Fischer <harald@balena.io>
|
|
66
|
+
author: Harald Fischer
|
|
67
|
+
nested: []
|
|
68
|
+
version: abstract-sql-compiler-7.18.0
|
|
69
|
+
title: "'Add informative reference dataType to schema tests'"
|
|
70
|
+
date: 2022-02-16T14:18:44.963Z
|
|
71
|
+
- commits:
|
|
72
|
+
- subject: Avoid the operation type optimization for HAVING clauses
|
|
73
|
+
hash: 3fcf08bc02c21d9f49b78787ed516fa9a403f021
|
|
74
|
+
body: >
|
|
75
|
+
Since it's possible for them to behave in a way that
|
|
76
|
+
violates the
|
|
77
|
+
|
|
78
|
+
safety checks we'll disable them until we can add specific checks
|
|
79
|
+
|
|
80
|
+
for the HAVING clause
|
|
81
|
+
footer:
|
|
82
|
+
Change-type: patch
|
|
83
|
+
change-type: patch
|
|
84
|
+
author: Pagan Gazzard
|
|
85
|
+
nested: []
|
|
86
|
+
version: abstract-sql-compiler-7.17.1
|
|
87
|
+
date: 2022-01-24T17:36:32.056Z
|
|
88
|
+
- commits:
|
|
89
|
+
- subject: Update dependencies
|
|
90
|
+
hash: e63884d3e86c2654fd601cacc53f3e8e61bb1d87
|
|
91
|
+
body: ""
|
|
92
|
+
footer:
|
|
93
|
+
Change-type: patch
|
|
94
|
+
change-type: patch
|
|
95
|
+
author: Pagan Gazzard
|
|
96
|
+
- subject: Remove circleci
|
|
97
|
+
hash: 39e258be1ffdd9cce2c4e1bcc4ba69bf00f8de76
|
|
98
|
+
body: ""
|
|
99
|
+
footer:
|
|
100
|
+
Change-type: patch
|
|
101
|
+
change-type: patch
|
|
102
|
+
author: Pagan Gazzard
|
|
103
|
+
version: odata-parser-2.2.9
|
|
104
|
+
title: "'Remove circleci/update deps'"
|
|
105
|
+
date: 2022-04-08T13:13:27.932Z
|
|
106
|
+
- subject: Remove circleci
|
|
107
|
+
hash: a0d153897fe474fbb6fb87f2606c3d8ca5296799
|
|
108
|
+
body: ""
|
|
109
|
+
footer:
|
|
110
|
+
Change-type: patch
|
|
111
|
+
change-type: patch
|
|
112
|
+
author: Pagan Gazzard
|
|
113
|
+
nested: []
|
|
114
|
+
version: odata-to-abstract-sql-5.4.9
|
|
115
|
+
title: "'Remove circleci/update deps'"
|
|
116
|
+
date: 2022-04-08T13:29:18.390Z
|
|
117
|
+
- commits:
|
|
118
|
+
- subject: Use the full alias for the prefix hash
|
|
119
|
+
hash: d60132e2eed1408735c1ee6dae12d69548cb1796
|
|
120
|
+
body: >
|
|
121
|
+
This simplifies the code and also avoids an issue where we not
|
|
122
|
+
using
|
|
123
|
+
|
|
124
|
+
enough of the prefix for the hash
|
|
125
|
+
footer:
|
|
126
|
+
Change-type: patch
|
|
127
|
+
change-type: patch
|
|
128
|
+
author: Pagan Gazzard
|
|
129
|
+
nested: []
|
|
130
|
+
version: odata-to-abstract-sql-5.4.8
|
|
131
|
+
date: 2022-01-13T13:11:52.889Z
|
|
132
|
+
- commits:
|
|
133
|
+
- subject: Use a hash instead of random str when it's necessary to shorten aliases
|
|
134
|
+
hash: cb05ec69fe0e08fc4619b38a99272c3a7ea42e21
|
|
135
|
+
body: >
|
|
136
|
+
This means the prefix will be stable/reliable across runs and
|
|
137
|
+
make it
|
|
138
|
+
|
|
139
|
+
easier to compare the output generating from different runs
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
Update @balena/abstract-sql-compiler from 7.14.1 to 7.17.0
|
|
143
|
+
|
|
144
|
+
Update @balena/lf-to-abstract-sql from 4.3.0 to 4.4.1
|
|
145
|
+
|
|
146
|
+
Update @balena/sbvr-parser from 1.2.5 to 1.3.0
|
|
147
|
+
footer:
|
|
148
|
+
Change-type: patch
|
|
149
|
+
change-type: patch
|
|
150
|
+
author: Pagan Gazzard
|
|
151
|
+
nested: []
|
|
152
|
+
version: odata-to-abstract-sql-5.4.7
|
|
153
|
+
date: 2022-01-11T17:40:53.504Z
|
|
154
|
+
- commits:
|
|
155
|
+
- subject: Improve `ResourceFunction` typings
|
|
156
|
+
hash: b511221bb08ad74b72020093f618ba49db5be765
|
|
157
|
+
body: ""
|
|
158
|
+
footer:
|
|
159
|
+
Change-type: patch
|
|
160
|
+
change-type: patch
|
|
161
|
+
author: Pagan Gazzard
|
|
162
|
+
nested: []
|
|
163
|
+
version: odata-to-abstract-sql-5.4.6
|
|
164
|
+
date: 2021-11-30T16:42:04.591Z
|
|
165
|
+
- commits:
|
|
166
|
+
- subject: Fix `isBindReference` check for non-null non-object types
|
|
167
|
+
hash: a1d356e93d8b6f4e137e70ebf5c1719b88e20ea5
|
|
168
|
+
body: ""
|
|
169
|
+
footer:
|
|
170
|
+
Change-type: patch
|
|
171
|
+
change-type: patch
|
|
172
|
+
author: Pagan Gazzard
|
|
173
|
+
nested: []
|
|
174
|
+
version: odata-to-abstract-sql-5.4.5
|
|
175
|
+
date: 2021-11-26T16:03:43.668Z
|
|
176
|
+
- commits:
|
|
177
|
+
- subject: Convert tests to type checked javascript
|
|
178
|
+
hash: a5ba8586c03c85918d69f051b499e2e8f0751e4f
|
|
179
|
+
body: ""
|
|
180
|
+
footer:
|
|
181
|
+
Change-type: patch
|
|
182
|
+
change-type: patch
|
|
183
|
+
author: Pagan Gazzard
|
|
184
|
+
nested: []
|
|
185
|
+
version: odata-to-abstract-sql-5.4.4
|
|
186
|
+
date: 2021-09-07T14:57:14.139Z
|
|
187
|
+
- commits:
|
|
188
|
+
- subject: Add SBVR Date TIme Type to DateTrunc Wrapper JS Date format has only
|
|
189
|
+
milliseconds precision, postgresql stores TIMESTAMPS with
|
|
190
|
+
microseconds precission. Comparisions may fail, when giving
|
|
191
|
+
millisecond JS dates but comparing on microseconds.
|
|
192
|
+
hash: 4cc9f617facc62717cf475c93b3b12232475e9a0
|
|
193
|
+
body: |
|
|
194
|
+
Update abstract-sql-compiler from 7.4.2 to 7.13.4
|
|
195
|
+
footer:
|
|
196
|
+
Change-type: patch
|
|
197
|
+
change-type: patch
|
|
198
|
+
Signed-off-by: fisehara <harald@balena.io>
|
|
199
|
+
signed-off-by: fisehara <harald@balena.io>
|
|
200
|
+
author: fisehara
|
|
201
|
+
nested:
|
|
202
|
+
- commits:
|
|
203
|
+
- subject: Support for non postgres db engines
|
|
204
|
+
hash: 7f93d469cadec5fe77353dff90bbf0183debaaab
|
|
205
|
+
body: |
|
|
206
|
+
FunctionWrapper type for ReferencedField
|
|
207
|
+
footer:
|
|
208
|
+
Change-type: patch
|
|
209
|
+
change-type: patch
|
|
210
|
+
Signed-off-by: fisehara <harald@balena.io>
|
|
211
|
+
signed-off-by: fisehara <harald@balena.io>
|
|
212
|
+
author: fisehara
|
|
213
|
+
nested: []
|
|
214
|
+
version: abstract-sql-compiler-7.13.4
|
|
215
|
+
date: 2021-08-17T09:30:05.634Z
|
|
216
|
+
- commits:
|
|
217
|
+
- subject: Supprt date_trunc postgres date function for DateValue
|
|
218
|
+
hash: 75066d356729fdd9d230abcd639c80ac806018ab
|
|
219
|
+
body: ""
|
|
220
|
+
footer:
|
|
221
|
+
Change-type: patch
|
|
222
|
+
change-type: patch
|
|
223
|
+
Signed-off-by: fisehara harald@balena.io
|
|
224
|
+
signed-off-by: fisehara harald@balena.io
|
|
225
|
+
author: fisehara
|
|
226
|
+
nested: []
|
|
227
|
+
version: abstract-sql-compiler-7.13.3
|
|
228
|
+
date: 2021-07-28T08:58:56.916Z
|
|
229
|
+
- commits:
|
|
230
|
+
- subject: Update dependencies
|
|
231
|
+
hash: 8fc84d38e28b1dfdf5a3d349fde874e81c4c9a02
|
|
232
|
+
body: ""
|
|
233
|
+
footer:
|
|
234
|
+
Change-type: patch
|
|
235
|
+
change-type: patch
|
|
236
|
+
author: Pagan Gazzard
|
|
237
|
+
nested: []
|
|
238
|
+
version: abstract-sql-compiler-7.13.2
|
|
239
|
+
date: 2021-07-26T13:53:41.679Z
|
|
240
|
+
- commits:
|
|
241
|
+
- subject: Delete CODEOWNERS
|
|
242
|
+
hash: 91a8e9ac9b30d144c7a9034eeda9bd30956addfd
|
|
243
|
+
body: ""
|
|
244
|
+
footer:
|
|
245
|
+
Change-type: patch
|
|
246
|
+
change-type: patch
|
|
247
|
+
See: https://www.flowdock.com/app/rulemotion/pub/threads/trLcZFnSX9fLZn4LiaIv4xuBbah
|
|
248
|
+
see: https://www.flowdock.com/app/rulemotion/pub/threads/trLcZFnSX9fLZn4LiaIv4xuBbah
|
|
249
|
+
author: Thodoris Greasidis
|
|
250
|
+
nested: []
|
|
251
|
+
version: abstract-sql-compiler-7.13.1
|
|
252
|
+
date: 2021-06-30T21:23:27.059Z
|
|
253
|
+
- commits:
|
|
254
|
+
- subject: Add support for `CurrentTimestamp`/`CurrentDate` nodes
|
|
255
|
+
hash: 0f2dce05456d953a09cbe13df3bf95471026db4a
|
|
256
|
+
body: ""
|
|
257
|
+
footer:
|
|
258
|
+
Change-type: minor
|
|
259
|
+
change-type: minor
|
|
260
|
+
author: Pagan Gazzard
|
|
261
|
+
nested: []
|
|
262
|
+
version: abstract-sql-compiler-7.13.0
|
|
263
|
+
date: 2021-05-18T18:28:20.380Z
|
|
264
|
+
- commits:
|
|
265
|
+
- subject: Update sbvr-types to 3.4.3
|
|
266
|
+
hash: 4acfbd8870b6948ea243a663515f1ebb3e0233d4
|
|
267
|
+
body: |
|
|
268
|
+
Update sbvr-types from 3.4.2 to 3.4.3
|
|
269
|
+
footer:
|
|
270
|
+
Change-type: patch
|
|
271
|
+
change-type: patch
|
|
272
|
+
author: Thodoris Greasidis
|
|
273
|
+
nested:
|
|
274
|
+
- commits:
|
|
275
|
+
- subject: Support boolean results from the db as well as integer
|
|
276
|
+
hash: 337c9af41ca4b17e06e79e574b0c5849928a167b
|
|
277
|
+
body: ""
|
|
278
|
+
footer:
|
|
279
|
+
Change-type: patch
|
|
280
|
+
change-type: patch
|
|
281
|
+
author: Pagan Gazzard
|
|
282
|
+
version: sbvr-types-3.4.3
|
|
283
|
+
date: 2021-05-11T13:04:19.851Z
|
|
284
|
+
version: abstract-sql-compiler-7.12.7
|
|
285
|
+
date: 2021-05-18T17:05:09.592Z
|
|
286
|
+
- commits:
|
|
287
|
+
- subject: Allow duration seconds to be nullable
|
|
288
|
+
hash: 66775322c806e9fb6fdcdcb922604860f78ee5dc
|
|
289
|
+
body: ""
|
|
290
|
+
footer:
|
|
291
|
+
Change-type: patch
|
|
292
|
+
change-type: patch
|
|
293
|
+
author: Pagan Gazzard
|
|
294
|
+
nested: []
|
|
295
|
+
version: abstract-sql-compiler-7.12.6
|
|
296
|
+
date: 2021-05-18T16:34:30.300Z
|
|
297
|
+
- commits:
|
|
298
|
+
- subject: Re-enable all tests
|
|
299
|
+
hash: dee9ad52b1ae35e26ccdd129c8e540b83e8cd57e
|
|
300
|
+
body: ""
|
|
301
|
+
footer:
|
|
302
|
+
Change-type: patch
|
|
303
|
+
change-type: patch
|
|
304
|
+
author: Pagan Gazzard
|
|
305
|
+
nested: []
|
|
306
|
+
version: abstract-sql-compiler-7.12.5
|
|
307
|
+
date: 2021-05-18T16:24:08.122Z
|
|
308
|
+
- commits:
|
|
309
|
+
- subject: Revert "Remove now unnecessary hack for casting SERIAL types"
|
|
310
|
+
hash: 60a56423de9262b5b454ff4cd83c1d1fd39d071e
|
|
311
|
+
body: >
|
|
312
|
+
This reverts commit
|
|
313
|
+
187bc075d237a2ced731d0a026ca25aa3e0f5540.
|
|
314
|
+
footer:
|
|
315
|
+
Change-type: patch
|
|
316
|
+
change-type: patch
|
|
317
|
+
author: Pagan Gazzard
|
|
318
|
+
nested: []
|
|
319
|
+
version: abstract-sql-compiler-7.12.4
|
|
320
|
+
date: 2021-05-04T17:51:57.071Z
|
|
321
|
+
- commits:
|
|
322
|
+
- subject: Remove now unnecessary hack for casting SERIAL types
|
|
323
|
+
hash: 187bc075d237a2ced731d0a026ca25aa3e0f5540
|
|
324
|
+
body: >
|
|
325
|
+
This became unnecessary when @balena/sbvr-types added
|
|
326
|
+
the concept of
|
|
327
|
+
|
|
328
|
+
cast types since that now specifies how to cast a SERIAL type
|
|
329
|
+
footer:
|
|
330
|
+
Change-type: patch
|
|
331
|
+
change-type: patch
|
|
332
|
+
author: Pagan Gazzard
|
|
333
|
+
nested: []
|
|
334
|
+
version: abstract-sql-compiler-7.12.3
|
|
335
|
+
date: 2021-05-03T11:31:24.967Z
|
|
336
|
+
- commits:
|
|
337
|
+
- subject: Update dependencies
|
|
338
|
+
hash: a6219180c9962df1ff0de4951201f088efb1fb4b
|
|
339
|
+
body: |
|
|
340
|
+
Update sbvr-types from 3.1.3 to 3.4.2
|
|
341
|
+
footer:
|
|
342
|
+
Change-type: patch
|
|
343
|
+
change-type: patch
|
|
344
|
+
author: Pagan Gazzard
|
|
345
|
+
nested:
|
|
346
|
+
- commits:
|
|
347
|
+
- subject: Update dev dependencies
|
|
348
|
+
hash: b7c817c8246fb95aab917e8ba1196b695103d962
|
|
349
|
+
body: ""
|
|
350
|
+
footer:
|
|
351
|
+
Change-type: patch
|
|
352
|
+
change-type: patch
|
|
353
|
+
author: Pagan Gazzard
|
|
354
|
+
version: sbvr-types-3.4.2
|
|
355
|
+
date: 2021-03-22T17:11:56.138Z
|
|
356
|
+
- commits:
|
|
357
|
+
- subject: Remove unnecessary native fact type entries for synonymous forms
|
|
358
|
+
hash: 64e889f7bda6f3dcf4c539248e737fef26b5686c
|
|
359
|
+
body: ""
|
|
360
|
+
footer:
|
|
361
|
+
Change-type: patch
|
|
362
|
+
change-type: patch
|
|
363
|
+
author: Pagan Gazzard
|
|
364
|
+
version: sbvr-types-3.4.1
|
|
365
|
+
date: 2021-02-10T18:13:49.610Z
|
|
366
|
+
- commits:
|
|
367
|
+
- subject: Add a `Current Time` name that can be used to refer to the current time
|
|
368
|
+
hash: 83d20325939d0e5f9922f57a36e0932ba71ebad4
|
|
369
|
+
body: ""
|
|
370
|
+
footer:
|
|
371
|
+
Change-type: minor
|
|
372
|
+
change-type: minor
|
|
373
|
+
author: Pagan Gazzard
|
|
374
|
+
version: sbvr-types-3.4.0
|
|
375
|
+
date: 2021-02-08T13:54:15.848Z
|
|
376
|
+
- commits:
|
|
377
|
+
- subject: Add `is before` & `is after` verbs to the Date & DateTime types
|
|
378
|
+
hash: 9d4414558d16821e485e08fc4a0504ef1d6c617f
|
|
379
|
+
body: ""
|
|
380
|
+
footer:
|
|
381
|
+
Change-type: minor
|
|
382
|
+
change-type: minor
|
|
383
|
+
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
|
|
384
|
+
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
|
|
385
|
+
author: Thodoris Greasidis
|
|
386
|
+
version: sbvr-types-3.3.0
|
|
387
|
+
date: 2021-02-05T20:43:59.350Z
|
|
388
|
+
- commits:
|
|
389
|
+
- subject: Add support for the `contains` verb to the text type
|
|
390
|
+
hash: 8e074867c7b94f99664b14caaebeddb5e9f1fe9c
|
|
391
|
+
body: ""
|
|
392
|
+
footer:
|
|
393
|
+
Change-type: minor
|
|
394
|
+
change-type: minor
|
|
395
|
+
author: Thodoris Greasidis
|
|
396
|
+
- subject: Add support for the`ends with` verb to the text type
|
|
397
|
+
hash: 4e233bffa0800a9601e80aebf86d70cd518c2901
|
|
398
|
+
body: ""
|
|
399
|
+
footer:
|
|
400
|
+
Change-type: minor
|
|
401
|
+
change-type: minor
|
|
402
|
+
author: Thodoris Greasidis
|
|
403
|
+
- subject: Add support for the `starts with` verb to the text type
|
|
404
|
+
hash: 1b5652a57bbad48f9b9b18c88f8b4ad9e6b01441
|
|
405
|
+
body: ""
|
|
406
|
+
footer:
|
|
407
|
+
Change-type: minor
|
|
408
|
+
change-type: minor
|
|
409
|
+
author: Thodoris Greasidis
|
|
410
|
+
version: sbvr-types-3.2.0
|
|
411
|
+
date: 2021-01-29T19:15:49.140Z
|
|
412
|
+
version: abstract-sql-compiler-7.12.2
|
|
413
|
+
date: 2021-03-22T17:41:46.393Z
|
|
414
|
+
- commits:
|
|
415
|
+
- subject: Enable strict options by default and only disable specific ones
|
|
416
|
+
hash: 84bfaac15e78453ff8a87a5a4836505a78f43666
|
|
417
|
+
body: ""
|
|
418
|
+
footer:
|
|
419
|
+
Change-type: patch
|
|
420
|
+
change-type: patch
|
|
421
|
+
author: Pagan Gazzard
|
|
422
|
+
nested: []
|
|
423
|
+
version: abstract-sql-compiler-7.12.1
|
|
424
|
+
date: 2021-03-22T17:21:30.316Z
|
|
425
|
+
- commits:
|
|
426
|
+
- subject: Enable narrowing down create/delete referenced fields for nested exists
|
|
427
|
+
hash: 5dbc3ddf05701e5b4188bfa8db64d0a12e3b8298
|
|
428
|
+
body: ""
|
|
429
|
+
footer:
|
|
430
|
+
Change-type: minor
|
|
431
|
+
change-type: minor
|
|
432
|
+
author: Pagan Gazzard
|
|
433
|
+
nested: []
|
|
434
|
+
version: abstract-sql-compiler-7.12.0
|
|
435
|
+
date: 2021-03-05T20:34:11.366Z
|
|
436
|
+
- commits:
|
|
437
|
+
- subject: Generalize/share the referenced fields code and cover more cases
|
|
438
|
+
hash: 3e77ac1aed9f3fb596f6a01a08a1800fead1e860
|
|
439
|
+
body: |
|
|
440
|
+
This now allows detecting deletes that are
|
|
441
|
+
footer:
|
|
442
|
+
Change-type: minor
|
|
443
|
+
change-type: minor
|
|
444
|
+
author: Pagan Gazzard
|
|
445
|
+
nested: []
|
|
446
|
+
version: abstract-sql-compiler-7.11.0
|
|
447
|
+
date: 2021-03-01T18:55:09.855Z
|
|
448
|
+
- commits:
|
|
449
|
+
- subject: Fix `getModifiedFields` for `UpsertQuery`s
|
|
450
|
+
hash: c19c902f1a6e268952540cd19960f6752a303f65
|
|
451
|
+
body: ""
|
|
452
|
+
footer:
|
|
453
|
+
Change-type: patch
|
|
454
|
+
change-type: patch
|
|
455
|
+
author: Pagan Gazzard
|
|
456
|
+
nested: []
|
|
457
|
+
version: abstract-sql-compiler-7.10.2
|
|
458
|
+
date: 2021-02-12T19:36:19.259Z
|
|
459
|
+
- commits:
|
|
460
|
+
- subject: Separate code relating to referenced fields out of the main file
|
|
461
|
+
hash: 7ca7b5cfad4e8833293426235667cc59245f427a
|
|
462
|
+
body: ""
|
|
463
|
+
footer:
|
|
464
|
+
Change-type: patch
|
|
465
|
+
change-type: patch
|
|
466
|
+
author: Pagan Gazzard
|
|
467
|
+
nested: []
|
|
468
|
+
version: abstract-sql-compiler-7.10.1
|
|
469
|
+
date: 2021-01-29T18:35:19.430Z
|
|
470
|
+
- commits:
|
|
471
|
+
- subject: Add an `action` property to modified fields of create/update/delete
|
|
472
|
+
hash: 8f071b8724bdae5574d5fea6c9f20e6e77daf3e6
|
|
473
|
+
body: ""
|
|
474
|
+
footer:
|
|
475
|
+
Change-type: minor
|
|
476
|
+
change-type: minor
|
|
477
|
+
author: Pagan Gazzard
|
|
478
|
+
nested: []
|
|
479
|
+
- subject: Automatically add `ruleReferencedFields` to `SqlRule`s
|
|
480
|
+
hash: f49548828fd75957290b6fdec166abf7bb0a53bf
|
|
481
|
+
body: ""
|
|
482
|
+
footer:
|
|
483
|
+
Change-type: minor
|
|
484
|
+
change-type: minor
|
|
485
|
+
author: Pagan Gazzard
|
|
486
|
+
nested: []
|
|
487
|
+
- subject: Add a `getRuleReferencedFields` which is tailored for rules
|
|
488
|
+
hash: 256c36de4a1efb7a46eb9833e1c3228d17194015
|
|
489
|
+
body: >
|
|
490
|
+
This works on the assumption that it is a rule query
|
|
491
|
+
that should always
|
|
492
|
+
|
|
493
|
+
return true and allows ignoring more modification cases where they
|
|
494
|
+
|
|
495
|
+
cannot change the result from true to false
|
|
496
|
+
footer:
|
|
497
|
+
Change-type: minor
|
|
498
|
+
change-type: minor
|
|
499
|
+
author: Pagan Gazzard
|
|
500
|
+
nested: []
|
|
501
|
+
version: abstract-sql-compiler-7.10.0
|
|
502
|
+
date: 2021-01-29T16:30:19.410Z
|
|
503
|
+
- commits:
|
|
504
|
+
- subject: Add test for optimizeSchema optimizing rules
|
|
505
|
+
hash: 4e94ee4961e98305c927734ce85067d409f90e18
|
|
506
|
+
body: ""
|
|
507
|
+
footer:
|
|
508
|
+
Change-type: patch
|
|
509
|
+
change-type: patch
|
|
510
|
+
author: Pagan Gazzard
|
|
511
|
+
nested: []
|
|
512
|
+
version: abstract-sql-compiler-7.9.1
|
|
513
|
+
date: 2021-01-29T13:01:10.504Z
|
|
514
|
+
- commits:
|
|
515
|
+
- subject: Optimize the abstract sql of rules when running `optimizeSchema`
|
|
516
|
+
hash: 2ed97849674acb76f498c346b28d2861d1827ba5
|
|
517
|
+
body: ""
|
|
518
|
+
footer:
|
|
519
|
+
Change-type: minor
|
|
520
|
+
change-type: minor
|
|
521
|
+
author: Pagan Gazzard
|
|
522
|
+
nested: []
|
|
523
|
+
version: abstract-sql-compiler-7.9.0
|
|
524
|
+
date: 2021-01-25T17:48:56.215Z
|
|
525
|
+
- commits:
|
|
526
|
+
- subject: Fix schema optimizations when table and resource names are different
|
|
527
|
+
hash: 46704031fbde45fd0e36b0963f8cf524df53398b
|
|
528
|
+
body: ""
|
|
529
|
+
footer:
|
|
530
|
+
Change-type: patch
|
|
531
|
+
change-type: patch
|
|
532
|
+
author: Pagan Gazzard
|
|
533
|
+
nested: []
|
|
534
|
+
version: abstract-sql-compiler-7.8.2
|
|
535
|
+
date: 2021-01-15T20:38:59.313Z
|
|
536
|
+
- commits:
|
|
537
|
+
- subject: Convert some lodash usage to native equivalents
|
|
538
|
+
hash: 400937fd3b220dccd557d67ff33d83d51ff0b939
|
|
539
|
+
body: ""
|
|
540
|
+
footer:
|
|
541
|
+
Change-type: patch
|
|
542
|
+
change-type: patch
|
|
543
|
+
author: Pagan Gazzard
|
|
544
|
+
nested: []
|
|
545
|
+
version: abstract-sql-compiler-7.8.1
|
|
546
|
+
date: 2021-01-04T13:04:45.938Z
|
|
547
|
+
- commits:
|
|
548
|
+
- subject: Optimize Is[Not]DistinctFrom and [Not]Exists for non-null values
|
|
549
|
+
hash: 682e84dea2088fb0c336b05be83183e627c20d4f
|
|
550
|
+
body: ""
|
|
551
|
+
footer:
|
|
552
|
+
Change-type: minor
|
|
553
|
+
change-type: minor
|
|
554
|
+
author: Pagan Gazzard
|
|
555
|
+
nested: []
|
|
556
|
+
version: abstract-sql-compiler-7.8.0
|
|
557
|
+
date: 2021-01-01T20:22:14.871Z
|
|
558
|
+
- commits:
|
|
559
|
+
- subject: Optimize EXISTS/NOT EXISTS for empty queries
|
|
560
|
+
hash: 39431de07eeb98d731a114c1717575d364ddc06f
|
|
561
|
+
body: ""
|
|
562
|
+
footer:
|
|
563
|
+
Change-type: minor
|
|
564
|
+
change-type: minor
|
|
565
|
+
author: Pagan Gazzard
|
|
566
|
+
nested: []
|
|
567
|
+
version: abstract-sql-compiler-7.7.0
|
|
568
|
+
date: 2021-01-01T17:47:15.206Z
|
|
569
|
+
- commits:
|
|
570
|
+
- subject: Optimize away AND/ORs with false/true respectively
|
|
571
|
+
hash: f0249d98032b0306f7d216b5ad8e8d2c96c466fc
|
|
572
|
+
body: ""
|
|
573
|
+
footer:
|
|
574
|
+
Change-type: minor
|
|
575
|
+
change-type: minor
|
|
576
|
+
author: Pagan Gazzard
|
|
577
|
+
nested: []
|
|
578
|
+
version: abstract-sql-compiler-7.6.0
|
|
579
|
+
date: 2021-01-01T16:18:03.545Z
|
|
580
|
+
- commits:
|
|
581
|
+
- subject: Optimize out booleans from AND/OR where possible
|
|
582
|
+
hash: d3d9a86ebc231dc4b11b20311e6d007a19202b18
|
|
583
|
+
body: ""
|
|
584
|
+
footer:
|
|
585
|
+
Change-type: minor
|
|
586
|
+
change-type: minor
|
|
587
|
+
author: Pagan Gazzard
|
|
588
|
+
nested: []
|
|
589
|
+
version: abstract-sql-compiler-7.5.0
|
|
590
|
+
date: 2021-01-01T14:03:49.386Z
|
|
591
|
+
version: odata-to-abstract-sql-5.4.3
|
|
592
|
+
date: 2021-08-24T18:50:04.205Z
|
|
593
|
+
- commits:
|
|
594
|
+
- subject: Delete CODEOWNERS
|
|
595
|
+
hash: 2b64f472840fa23d1636bc7ae71fe95780683017
|
|
596
|
+
body: ""
|
|
597
|
+
footer:
|
|
598
|
+
Change-type: patch
|
|
599
|
+
change-type: patch
|
|
600
|
+
See: https://www.flowdock.com/app/rulemotion/pub/threads/trLcZFnSX9fLZn4LiaIv4xuBbah
|
|
601
|
+
see: https://www.flowdock.com/app/rulemotion/pub/threads/trLcZFnSX9fLZn4LiaIv4xuBbah
|
|
602
|
+
author: Thodoris Greasidis
|
|
603
|
+
nested: []
|
|
604
|
+
version: odata-to-abstract-sql-5.4.2
|
|
605
|
+
date: 2021-06-30T21:27:55.877Z
|
|
606
|
+
version: 1.1.2
|
|
607
|
+
title: "'Update dependencies'"
|
|
608
|
+
date: 2022-04-08T15:32:53.304Z
|
|
1
609
|
- commits:
|
|
2
610
|
- subject: Fix PickExpanded/PickDeferred type helpers
|
|
3
611
|
hash: ab7a898e7d55c50f0702560d4df1f2b29a775b90
|
|
4
|
-
body:
|
|
612
|
+
body: ""
|
|
5
613
|
footer:
|
|
6
614
|
Change-type: patch
|
|
7
615
|
change-type: patch
|
|
8
616
|
author: Pagan Gazzard
|
|
9
617
|
nested: []
|
|
10
618
|
version: 1.1.1
|
|
11
|
-
date: 2021-01-04T15:
|
|
619
|
+
date: 2021-01-04T15:25:29.186Z
|
|
12
620
|
- commits:
|
|
13
621
|
- subject: Add type helpers for dealing with expanded/deferred read types
|
|
14
622
|
hash: 8267272e729853cb8e16467f1d345074d1a331fe
|
|
15
|
-
body:
|
|
623
|
+
body: ""
|
|
16
624
|
footer:
|
|
17
625
|
Change-type: minor
|
|
18
626
|
change-type: minor
|
|
@@ -23,7 +631,7 @@
|
|
|
23
631
|
- commits:
|
|
24
632
|
- subject: Use the referenced field's data type for foreign keys/concept types
|
|
25
633
|
hash: eb768404e75c538d3b694c393e30e43abd30f020
|
|
26
|
-
body:
|
|
634
|
+
body: ""
|
|
27
635
|
footer:
|
|
28
636
|
Change-type: patch
|
|
29
637
|
change-type: patch
|
|
@@ -34,7 +642,7 @@
|
|
|
34
642
|
- commits:
|
|
35
643
|
- subject: Fix defaulting mode to `read`
|
|
36
644
|
hash: 377ed4c9c2bc65d94f4ade0fe667c3f91bd3baca
|
|
37
|
-
body:
|
|
645
|
+
body: ""
|
|
38
646
|
footer:
|
|
39
647
|
Change-type: patch
|
|
40
648
|
change-type: patch
|
|
@@ -45,7 +653,7 @@
|
|
|
45
653
|
- commits:
|
|
46
654
|
- subject: Fix types for ConceptType fields
|
|
47
655
|
hash: b718096c1ead1c276e687e444e09b388d6e4f966
|
|
48
|
-
body:
|
|
656
|
+
body: ""
|
|
49
657
|
footer:
|
|
50
658
|
Change-type: patch
|
|
51
659
|
change-type: patch
|
|
@@ -56,7 +664,7 @@
|
|
|
56
664
|
- commits:
|
|
57
665
|
- subject: Support generating typescript interfaces from an abstract sql model
|
|
58
666
|
hash: f02b8e19c1322125466abb08aad0265548419909
|
|
59
|
-
body:
|
|
667
|
+
body: ""
|
|
60
668
|
footer:
|
|
61
669
|
Change-type: major
|
|
62
670
|
change-type: major
|
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,213 @@ 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
|
+
## 1.1.2 - 2022-04-08
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
<details>
|
|
11
|
+
<summary> Update dependencies [Pagan Gazzard] </summary>
|
|
12
|
+
|
|
13
|
+
> ### odata-to-abstract-sql-5.4.9 - 2022-04-08
|
|
14
|
+
>
|
|
15
|
+
>
|
|
16
|
+
> <details>
|
|
17
|
+
> <summary> Update dependencies [Pagan Gazzard] </summary>
|
|
18
|
+
>
|
|
19
|
+
>> #### abstract-sql-compiler-7.19.0 - 2022-03-24
|
|
20
|
+
>>
|
|
21
|
+
>> * Remove .circleci/config.yml [Thodoris Greasidis]
|
|
22
|
+
>> * Add support for `ConcatenateWithSeparator` nodes [Thodoris Greasidis]
|
|
23
|
+
>>
|
|
24
|
+
>> #### abstract-sql-compiler-7.18.0 - 2022-02-16
|
|
25
|
+
>>
|
|
26
|
+
>> * Add reference property type [Harald Fischer]
|
|
27
|
+
>>
|
|
28
|
+
>> #### abstract-sql-compiler-7.17.1 - 2022-01-24
|
|
29
|
+
>>
|
|
30
|
+
>> * Avoid the operation type optimization for HAVING clauses [Pagan Gazzard]
|
|
31
|
+
>>
|
|
32
|
+
>> #### odata-parser-2.2.9 - 2022-04-08
|
|
33
|
+
>>
|
|
34
|
+
>> * Update dependencies [Pagan Gazzard]
|
|
35
|
+
>> * Remove circleci [Pagan Gazzard]
|
|
36
|
+
>>
|
|
37
|
+
> </details>
|
|
38
|
+
>
|
|
39
|
+
> * Remove circleci [Pagan Gazzard]
|
|
40
|
+
>
|
|
41
|
+
> ### odata-to-abstract-sql-5.4.8 - 2022-01-13
|
|
42
|
+
>
|
|
43
|
+
> * Use the full alias for the prefix hash [Pagan Gazzard]
|
|
44
|
+
>
|
|
45
|
+
> ### odata-to-abstract-sql-5.4.7 - 2022-01-11
|
|
46
|
+
>
|
|
47
|
+
> * Use a hash instead of random str when it's necessary to shorten aliases [Pagan Gazzard]
|
|
48
|
+
>
|
|
49
|
+
> ### odata-to-abstract-sql-5.4.6 - Invalid date
|
|
50
|
+
>
|
|
51
|
+
> * Improve `ResourceFunction` typings [Pagan Gazzard]
|
|
52
|
+
>
|
|
53
|
+
> ### odata-to-abstract-sql-5.4.5 - 2021-11-26
|
|
54
|
+
>
|
|
55
|
+
> * Fix `isBindReference` check for non-null non-object types [Pagan Gazzard]
|
|
56
|
+
>
|
|
57
|
+
> ### odata-to-abstract-sql-5.4.4 - 2021-09-07
|
|
58
|
+
>
|
|
59
|
+
> * Convert tests to type checked javascript [Pagan Gazzard]
|
|
60
|
+
>
|
|
61
|
+
> ### odata-to-abstract-sql-5.4.3 - 2021-08-24
|
|
62
|
+
>
|
|
63
|
+
>
|
|
64
|
+
> <details>
|
|
65
|
+
> <summary> Add SBVR Date TIme Type to DateTrunc Wrapper JS Date format has only milliseconds precision, postgresql stores TIMESTAMPS with microseconds precission. Comparisions may fail, when giving millisecond JS dates but comparing on microseconds. [fisehara] </summary>
|
|
66
|
+
>
|
|
67
|
+
>> #### abstract-sql-compiler-7.13.4 - 2021-08-17
|
|
68
|
+
>>
|
|
69
|
+
>> * Support for non postgres db engines [fisehara]
|
|
70
|
+
>>
|
|
71
|
+
>> #### abstract-sql-compiler-7.13.3 - 2021-07-28
|
|
72
|
+
>>
|
|
73
|
+
>> * Supprt date_trunc postgres date function for DateValue [fisehara]
|
|
74
|
+
>>
|
|
75
|
+
>> #### abstract-sql-compiler-7.13.2 - 2021-07-26
|
|
76
|
+
>>
|
|
77
|
+
>> * Update dependencies [Pagan Gazzard]
|
|
78
|
+
>>
|
|
79
|
+
>> #### abstract-sql-compiler-7.13.1 - Invalid date
|
|
80
|
+
>>
|
|
81
|
+
>> * Delete CODEOWNERS [Thodoris Greasidis]
|
|
82
|
+
>>
|
|
83
|
+
>> #### abstract-sql-compiler-7.13.0 - 2021-05-18
|
|
84
|
+
>>
|
|
85
|
+
>> * Add support for `CurrentTimestamp`/`CurrentDate` nodes [Pagan Gazzard]
|
|
86
|
+
>>
|
|
87
|
+
>> #### abstract-sql-compiler-7.12.7 - 2021-05-18
|
|
88
|
+
>>
|
|
89
|
+
>>
|
|
90
|
+
>> <details>
|
|
91
|
+
>> <summary> Update sbvr-types to 3.4.3 [Thodoris Greasidis] </summary>
|
|
92
|
+
>>
|
|
93
|
+
>>> ##### sbvr-types-3.4.3 - 2021-05-11
|
|
94
|
+
>>>
|
|
95
|
+
>>> * Support boolean results from the db as well as integer [Pagan Gazzard]
|
|
96
|
+
>>>
|
|
97
|
+
>> </details>
|
|
98
|
+
>>
|
|
99
|
+
>>
|
|
100
|
+
>> #### abstract-sql-compiler-7.12.6 - 2021-05-18
|
|
101
|
+
>>
|
|
102
|
+
>> * Allow duration seconds to be nullable [Pagan Gazzard]
|
|
103
|
+
>>
|
|
104
|
+
>> #### abstract-sql-compiler-7.12.5 - 2021-05-18
|
|
105
|
+
>>
|
|
106
|
+
>> * Re-enable all tests [Pagan Gazzard]
|
|
107
|
+
>>
|
|
108
|
+
>> #### abstract-sql-compiler-7.12.4 - 2021-05-04
|
|
109
|
+
>>
|
|
110
|
+
>> * Revert "Remove now unnecessary hack for casting SERIAL types" [Pagan Gazzard]
|
|
111
|
+
>>
|
|
112
|
+
>> #### abstract-sql-compiler-7.12.3 - 2021-05-03
|
|
113
|
+
>>
|
|
114
|
+
>> * Remove now unnecessary hack for casting SERIAL types [Pagan Gazzard]
|
|
115
|
+
>>
|
|
116
|
+
>> #### abstract-sql-compiler-7.12.2 - 2021-03-22
|
|
117
|
+
>>
|
|
118
|
+
>>
|
|
119
|
+
>> <details>
|
|
120
|
+
>> <summary> Update dependencies [Pagan Gazzard] </summary>
|
|
121
|
+
>>
|
|
122
|
+
>>> ##### sbvr-types-3.4.2 - 2021-03-22
|
|
123
|
+
>>>
|
|
124
|
+
>>> * Update dev dependencies [Pagan Gazzard]
|
|
125
|
+
>>>
|
|
126
|
+
>>> ##### sbvr-types-3.4.1 - 2021-02-10
|
|
127
|
+
>>>
|
|
128
|
+
>>> * Remove unnecessary native fact type entries for synonymous forms [Pagan Gazzard]
|
|
129
|
+
>>>
|
|
130
|
+
>>> ##### sbvr-types-3.4.0 - 2021-02-08
|
|
131
|
+
>>>
|
|
132
|
+
>>> * Add a `Current Time` name that can be used to refer to the current time [Pagan Gazzard]
|
|
133
|
+
>>>
|
|
134
|
+
>>> ##### sbvr-types-3.3.0 - 2021-02-05
|
|
135
|
+
>>>
|
|
136
|
+
>>> * Add `is before` & `is after` verbs to the Date & DateTime types [Thodoris Greasidis]
|
|
137
|
+
>>>
|
|
138
|
+
>>> ##### sbvr-types-3.2.0 - 2021-01-29
|
|
139
|
+
>>>
|
|
140
|
+
>>> * Add support for the `contains` verb to the text type [Thodoris Greasidis]
|
|
141
|
+
>>> * Add support for the`ends with` verb to the text type [Thodoris Greasidis]
|
|
142
|
+
>>> * Add support for the `starts with` verb to the text type [Thodoris Greasidis]
|
|
143
|
+
>>>
|
|
144
|
+
>> </details>
|
|
145
|
+
>>
|
|
146
|
+
>>
|
|
147
|
+
>> #### abstract-sql-compiler-7.12.1 - 2021-03-22
|
|
148
|
+
>>
|
|
149
|
+
>> * Enable strict options by default and only disable specific ones [Pagan Gazzard]
|
|
150
|
+
>>
|
|
151
|
+
>> #### abstract-sql-compiler-7.12.0 - 2021-03-05
|
|
152
|
+
>>
|
|
153
|
+
>> * Enable narrowing down create/delete referenced fields for nested exists [Pagan Gazzard]
|
|
154
|
+
>>
|
|
155
|
+
>> #### abstract-sql-compiler-7.11.0 - 2021-03-01
|
|
156
|
+
>>
|
|
157
|
+
>> * Generalize/share the referenced fields code and cover more cases [Pagan Gazzard]
|
|
158
|
+
>>
|
|
159
|
+
>> #### abstract-sql-compiler-7.10.2 - 2021-02-12
|
|
160
|
+
>>
|
|
161
|
+
>> * Fix `getModifiedFields` for `UpsertQuery`s [Pagan Gazzard]
|
|
162
|
+
>>
|
|
163
|
+
>> #### abstract-sql-compiler-7.10.1 - 2021-01-29
|
|
164
|
+
>>
|
|
165
|
+
>> * Separate code relating to referenced fields out of the main file [Pagan Gazzard]
|
|
166
|
+
>>
|
|
167
|
+
>> #### abstract-sql-compiler-7.10.0 - 2021-01-29
|
|
168
|
+
>>
|
|
169
|
+
>> * Add an `action` property to modified fields of create/update/delete [Pagan Gazzard]
|
|
170
|
+
>> * Automatically add `ruleReferencedFields` to `SqlRule`s [Pagan Gazzard]
|
|
171
|
+
>> * Add a `getRuleReferencedFields` which is tailored for rules [Pagan Gazzard]
|
|
172
|
+
>>
|
|
173
|
+
>> #### abstract-sql-compiler-7.9.1 - 2021-01-29
|
|
174
|
+
>>
|
|
175
|
+
>> * Add test for optimizeSchema optimizing rules [Pagan Gazzard]
|
|
176
|
+
>>
|
|
177
|
+
>> #### abstract-sql-compiler-7.9.0 - 2021-01-25
|
|
178
|
+
>>
|
|
179
|
+
>> * Optimize the abstract sql of rules when running `optimizeSchema` [Pagan Gazzard]
|
|
180
|
+
>>
|
|
181
|
+
>> #### abstract-sql-compiler-7.8.2 - 2021-01-15
|
|
182
|
+
>>
|
|
183
|
+
>> * Fix schema optimizations when table and resource names are different [Pagan Gazzard]
|
|
184
|
+
>>
|
|
185
|
+
>> #### abstract-sql-compiler-7.8.1 - 2021-01-04
|
|
186
|
+
>>
|
|
187
|
+
>> * Convert some lodash usage to native equivalents [Pagan Gazzard]
|
|
188
|
+
>>
|
|
189
|
+
>> #### abstract-sql-compiler-7.8.0 - 2021-01-01
|
|
190
|
+
>>
|
|
191
|
+
>> * Optimize Is[Not]DistinctFrom and [Not]Exists for non-null values [Pagan Gazzard]
|
|
192
|
+
>>
|
|
193
|
+
>> #### abstract-sql-compiler-7.7.0 - 2021-01-01
|
|
194
|
+
>>
|
|
195
|
+
>> * Optimize EXISTS/NOT EXISTS for empty queries [Pagan Gazzard]
|
|
196
|
+
>>
|
|
197
|
+
>> #### abstract-sql-compiler-7.6.0 - 2021-01-01
|
|
198
|
+
>>
|
|
199
|
+
>> * Optimize away AND/ORs with false/true respectively [Pagan Gazzard]
|
|
200
|
+
>>
|
|
201
|
+
>> #### abstract-sql-compiler-7.5.0 - 2021-01-01
|
|
202
|
+
>>
|
|
203
|
+
>> * Optimize out booleans from AND/OR where possible [Pagan Gazzard]
|
|
204
|
+
>>
|
|
205
|
+
> </details>
|
|
206
|
+
>
|
|
207
|
+
>
|
|
208
|
+
> ### odata-to-abstract-sql-5.4.2 - Invalid date
|
|
209
|
+
>
|
|
210
|
+
> * Delete CODEOWNERS [Thodoris Greasidis]
|
|
211
|
+
>
|
|
212
|
+
</details>
|
|
213
|
+
|
|
7
214
|
## 1.1.1 - 2021-01-04
|
|
8
215
|
|
|
9
216
|
* Fix PickExpanded/PickDeferred type helpers [Pagan Gazzard]
|
package/out/index.d.ts
CHANGED
package/out/index.js
CHANGED
|
@@ -17,7 +17,7 @@ export type PickDeferred<T, K extends keyof T> = {
|
|
|
17
17
|
`,
|
|
18
18
|
write: '',
|
|
19
19
|
};
|
|
20
|
-
const trimNL = new common_tags_1.TemplateTag(common_tags_1.replaceResultTransformer(/^[\r\n]*|[\r\n]*$/g, ''));
|
|
20
|
+
const trimNL = new common_tags_1.TemplateTag((0, common_tags_1.replaceResultTransformer)(/^[\r\n]*|[\r\n]*$/g, ''));
|
|
21
21
|
const modelNameToCamelCaseName = (s) => s
|
|
22
22
|
.split(/[ -]/)
|
|
23
23
|
.map((p) => p[0].toLocaleUpperCase() + p.slice(1))
|
|
@@ -77,7 +77,7 @@ const fieldsToInterfaceProps = (m, fields, opts) => fields
|
|
|
77
77
|
.map((f) => {
|
|
78
78
|
const nullable = f.required ? '' : ' | null';
|
|
79
79
|
return trimNL `
|
|
80
|
-
${odata_to_abstract_sql_1.sqlNameToODataName(f.fieldName)}: ${sqlTypeToTypescriptType(m, f, opts)}${nullable};
|
|
80
|
+
${(0, odata_to_abstract_sql_1.sqlNameToODataName)(f.fieldName)}: ${sqlTypeToTypescriptType(m, f, opts)}${nullable};
|
|
81
81
|
`;
|
|
82
82
|
})
|
|
83
83
|
.join('\n');
|
package/out/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAMA,yEAAmE;AACnE,6CAAoE;AAEpE,MAAM,WAAW,GAAG;IACnB,IAAI,EAAE;;;;;;;;;;CAUN;IACA,KAAK,EAAE,EAAE;CACT,CAAC;AAEF,MAAM,MAAM,GAAG,IAAI,yBAAW,CAC7B,sCAAwB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@balena/abstract-sql-to-typescript",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "A translator for abstract sql into typescript types.",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"types": "out/index.d.ts",
|
|
@@ -13,22 +13,22 @@
|
|
|
13
13
|
"repository": "https://github.com/balena-io-modules/abstract-sql-to-typescript.git",
|
|
14
14
|
"author": "",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@balena/abstract-sql-compiler": "^7.
|
|
17
|
-
"@balena/odata-to-abstract-sql": "^5.4.
|
|
18
|
-
"@types/node": "^12.
|
|
19
|
-
"common-tags": "^1.8.
|
|
16
|
+
"@balena/abstract-sql-compiler": "^7.19.1",
|
|
17
|
+
"@balena/odata-to-abstract-sql": "^5.4.9",
|
|
18
|
+
"@types/node": "^12.20.47",
|
|
19
|
+
"common-tags": "^1.8.2"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@balena/lint": "^
|
|
23
|
-
"@types/chai": "^4.
|
|
24
|
-
"@types/common-tags": "^1.8.
|
|
25
|
-
"@types/mocha": "^8.2.
|
|
26
|
-
"chai": "^4.
|
|
27
|
-
"husky": "^4.3.
|
|
28
|
-
"lint-staged": "^
|
|
29
|
-
"mocha": "^
|
|
30
|
-
"ts-node": "^
|
|
31
|
-
"typescript": "^4.
|
|
22
|
+
"@balena/lint": "^6.2.0",
|
|
23
|
+
"@types/chai": "^4.3.0",
|
|
24
|
+
"@types/common-tags": "^1.8.1",
|
|
25
|
+
"@types/mocha": "^8.2.3",
|
|
26
|
+
"chai": "^4.3.6",
|
|
27
|
+
"husky": "^4.3.8",
|
|
28
|
+
"lint-staged": "^12.3.7",
|
|
29
|
+
"mocha": "^9.2.2",
|
|
30
|
+
"ts-node": "^10.7.0",
|
|
31
|
+
"typescript": "^4.6.3"
|
|
32
32
|
},
|
|
33
33
|
"husky": {
|
|
34
34
|
"hooks": {
|
|
@@ -43,5 +43,8 @@
|
|
|
43
43
|
"mocha": {
|
|
44
44
|
"require": "ts-node/register/transpile-only",
|
|
45
45
|
"_": "test/**/*.ts"
|
|
46
|
+
},
|
|
47
|
+
"versionist": {
|
|
48
|
+
"publishedAt": "2022-04-08T15:32:53.884Z"
|
|
46
49
|
}
|
|
47
50
|
}
|
package/repo.yml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
type: 'node'
|
|
2
2
|
upstream:
|
|
3
|
-
- repo: 'abstract-sql-compiler'
|
|
3
|
+
- repo: '@balena/abstract-sql-compiler'
|
|
4
4
|
url: 'https://github.com/balena-io-modules/lf-to-abstract-sql'
|
|
5
|
-
- repo: 'odata-to-abstract-sql'
|
|
5
|
+
- repo: '@balena/odata-to-abstract-sql'
|
|
6
6
|
url: 'https://github.com/balena-io-modules/odata-to-abstract-sql'
|
package/src/index.ts
CHANGED
package/test/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbstractSqlModel } from '@balena/abstract-sql-compiler';
|
|
1
|
+
import type { AbstractSqlModel } from '@balena/abstract-sql-compiler';
|
|
2
2
|
import { expect } from 'chai';
|
|
3
3
|
import { source } from 'common-tags';
|
|
4
4
|
import { abstractSqlToTypescriptTypes, Options } from '../src';
|