bigal 13.0.6 → 13.0.8
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/.markdownlintignore +1 -0
- package/.textlintignore +1 -0
- package/CHANGELOG.md +124 -120
- package/CONTRIBUTING.md +19 -16
- package/dist/index.cjs +47 -56
- package/dist/index.d.cts +6 -1
- package/dist/index.d.mts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.mjs +47 -56
- package/package.json +34 -33
- package/release.config.mjs +43 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
CHANGELOG.md
|
package/.textlintignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
CHANGELOG.md
|
package/CHANGELOG.md
CHANGED
|
@@ -1,156 +1,160 @@
|
|
|
1
|
-
|
|
1
|
+
## [13.0.8](https://github.com/bigalorm/bigal/compare/v13.0.7...v13.0.8) (2025-04-07)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# 13.0.7 - 2024-03-10
|
|
4
4
|
|
|
5
5
|
- Update npms
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
# 13.0.6 - 2024-01-08
|
|
8
|
+
|
|
9
|
+
- Update npms
|
|
10
|
+
|
|
11
|
+
# 13.0.5 - 2024-12-17
|
|
8
12
|
|
|
9
13
|
- Update npms
|
|
10
14
|
- Use node protocol for built-in modules
|
|
11
15
|
|
|
12
|
-
|
|
16
|
+
# 13.0.4 - 2024-11-29
|
|
13
17
|
|
|
14
18
|
- Update npms
|
|
15
19
|
|
|
16
|
-
|
|
20
|
+
# 13.0.3 - 2024-09-30
|
|
17
21
|
|
|
18
22
|
- Update npms
|
|
19
23
|
|
|
20
|
-
|
|
24
|
+
# 13.0.2 - 2024-08-26
|
|
21
25
|
|
|
22
26
|
- Update npms
|
|
23
27
|
|
|
24
|
-
|
|
28
|
+
# 13.0.1 - 2024-07-02
|
|
25
29
|
|
|
26
30
|
- Update postgres-pool npm
|
|
27
31
|
|
|
28
|
-
|
|
32
|
+
# 13.0.0 - 2024-07-02
|
|
29
33
|
|
|
30
34
|
- Publish as CJS and ESM
|
|
31
35
|
- Upgrade eslint to flat config
|
|
32
36
|
- Update npms and dependencies
|
|
33
37
|
|
|
34
|
-
|
|
38
|
+
## BREAKING CHANGES
|
|
35
39
|
|
|
36
40
|
- Consolidated exports for /decorators, /errors, /metadata, /query, and /types to root
|
|
37
41
|
|
|
38
|
-
|
|
42
|
+
# 12.1.5 - 2024-05-13
|
|
39
43
|
|
|
40
44
|
- Update npms
|
|
41
45
|
|
|
42
|
-
|
|
46
|
+
# 12.1.4 - 2024-04-08
|
|
43
47
|
|
|
44
48
|
- Update npms
|
|
45
49
|
|
|
46
|
-
|
|
50
|
+
# 12.1.3 - 2024-03-11
|
|
47
51
|
|
|
48
52
|
- Update npms
|
|
49
53
|
|
|
50
|
-
|
|
54
|
+
# 12.1.2 - 2024-02-07
|
|
51
55
|
|
|
52
56
|
- Update npms
|
|
53
57
|
|
|
54
|
-
|
|
58
|
+
# 12.1.1 - 2024-01-12
|
|
55
59
|
|
|
56
60
|
- Handle `null` and `undefined` for columns with maxLength. #90 Thanks @tyler-neal!
|
|
57
61
|
- Update npms
|
|
58
62
|
|
|
59
|
-
|
|
63
|
+
# 12.1.0 - 2024-01-05
|
|
60
64
|
|
|
61
65
|
- Added support for optional maxLength constraint when inserting/updating string fields. #89 Thanks @tyler-neal!
|
|
62
66
|
- Update npms
|
|
63
67
|
|
|
64
|
-
|
|
68
|
+
# 12.0.2 - 2023-11-28
|
|
65
69
|
|
|
66
70
|
- Update npms
|
|
67
71
|
|
|
68
|
-
|
|
72
|
+
# 12.0.1 - 2023-10-27
|
|
69
73
|
|
|
70
74
|
- Update npms
|
|
71
75
|
|
|
72
|
-
|
|
76
|
+
# 12.0.0 - 2023-10-04
|
|
73
77
|
|
|
74
|
-
|
|
78
|
+
## BREAKING CHANGES (12.0.0)
|
|
75
79
|
|
|
76
80
|
- Drop support for Node.js 16
|
|
77
81
|
|
|
78
|
-
|
|
82
|
+
## NON-BREAKING CHANGES (12.0.0)
|
|
79
83
|
|
|
80
84
|
- Throw `QueryError`, with additional metadata
|
|
81
85
|
- Throw error if query has an empty `or` statement
|
|
82
86
|
|
|
83
|
-
|
|
87
|
+
## MAINTENANCE (12.0.0)
|
|
84
88
|
|
|
85
89
|
- Update npms
|
|
86
90
|
|
|
87
|
-
|
|
91
|
+
# 11.0.2 - 2023-07-18
|
|
88
92
|
|
|
89
93
|
- Update npms
|
|
90
94
|
|
|
91
|
-
|
|
95
|
+
# 11.0.1 - 2023-04-17
|
|
92
96
|
|
|
93
97
|
- Update npms
|
|
94
98
|
|
|
95
|
-
|
|
99
|
+
# 11.0.0 - 2023-02-07
|
|
96
100
|
|
|
97
|
-
|
|
101
|
+
## BREAKING CHANGES (11.0.0)
|
|
98
102
|
|
|
99
103
|
- Drop support for Node.js 14
|
|
100
104
|
|
|
101
|
-
|
|
105
|
+
## MAINTENANCE (11.0.0)
|
|
102
106
|
|
|
103
107
|
- Update npms
|
|
104
108
|
|
|
105
|
-
|
|
109
|
+
# 10.4.2 - 2023-01-03
|
|
106
110
|
|
|
107
111
|
- Update npms
|
|
108
112
|
- Enable noUncheckedIndexedAccess compiler option
|
|
109
113
|
|
|
110
|
-
|
|
114
|
+
# 10.4.1 - 2022-12-06
|
|
111
115
|
|
|
112
116
|
- Update npms
|
|
113
117
|
|
|
114
|
-
|
|
118
|
+
# 10.4.0 - 2022-11-03
|
|
115
119
|
|
|
116
120
|
- Fix string comparison where constraint with union values
|
|
117
121
|
- Update npms
|
|
118
122
|
|
|
119
|
-
|
|
123
|
+
# 10.3.4 - 2022-10-11
|
|
120
124
|
|
|
121
125
|
- Update npms
|
|
122
126
|
|
|
123
|
-
|
|
127
|
+
# 10.3.3 - 2022-08-30
|
|
124
128
|
|
|
125
129
|
- Update npms
|
|
126
130
|
|
|
127
|
-
|
|
131
|
+
# 10.3.2 - 2022-06-29
|
|
128
132
|
|
|
129
133
|
- Update npms
|
|
130
134
|
|
|
131
|
-
|
|
135
|
+
# 10.3.1 - 2022-05-23
|
|
132
136
|
|
|
133
137
|
- Update npms
|
|
134
138
|
|
|
135
|
-
|
|
139
|
+
# 10.3.0 - 2022-04-25
|
|
136
140
|
|
|
137
141
|
- Add where clause for conflict resolution. Thanks @shortstuffsushi!
|
|
138
142
|
- Update npms
|
|
139
143
|
|
|
140
|
-
|
|
144
|
+
# 10.2.0 - 2022-04-13
|
|
141
145
|
|
|
142
146
|
- Add `onConflict` options to `create()` to support `ON CONFLICT DO NOTHING` and `ON CONFLICT DO UPDATE`
|
|
143
147
|
- Update npms
|
|
144
148
|
|
|
145
|
-
|
|
149
|
+
# 10.1.1 - 2022-03-22
|
|
146
150
|
|
|
147
151
|
- Update npms
|
|
148
152
|
|
|
149
|
-
|
|
153
|
+
# 10.1.0 - 2022-03-15
|
|
150
154
|
|
|
151
155
|
- Add ability to override db pool for `count()`
|
|
152
156
|
|
|
153
|
-
|
|
157
|
+
# 10.0.3 - 2022-03-15
|
|
154
158
|
|
|
155
159
|
- Update npms
|
|
156
160
|
- Fix string comparison operators with arrays. Wildcard characters in array values passed to `startsWith`, `contains`,
|
|
@@ -158,98 +162,98 @@
|
|
|
158
162
|
using `ilike`
|
|
159
163
|
- Remove unnecessary `await` operators from `then()` functions
|
|
160
164
|
|
|
161
|
-
|
|
165
|
+
# 10.0.2 - 2022-03-02
|
|
162
166
|
|
|
163
167
|
- Update npms
|
|
164
168
|
|
|
165
|
-
|
|
169
|
+
# 10.0.1 - 2022-02-22
|
|
166
170
|
|
|
167
171
|
- Update npms
|
|
168
172
|
- Update husky to support Apple silicon homebrew package links
|
|
169
173
|
|
|
170
|
-
|
|
174
|
+
# 10.0.0 - 2022-01-07
|
|
171
175
|
|
|
172
176
|
- Fix populated entities to be QueryResult
|
|
173
177
|
- Improve return types when doing partial selects
|
|
174
178
|
- Be less restrictive with dependency versions
|
|
175
179
|
- Drop node 12 support
|
|
176
180
|
|
|
177
|
-
|
|
181
|
+
# 9.2.4 - 2021-12-28
|
|
178
182
|
|
|
179
183
|
- Fix PromiseLike signatures. Remove ChainablePromiseLike
|
|
180
184
|
|
|
181
|
-
|
|
185
|
+
# 9.2.3 - 2021-12-27
|
|
182
186
|
|
|
183
187
|
- Update npms
|
|
184
188
|
|
|
185
|
-
|
|
189
|
+
# 9.2.2 - 2021-12-27
|
|
186
190
|
|
|
187
191
|
- Fix to always include populate column names in select query
|
|
188
192
|
- Use readonly arrays where possible when building sql
|
|
189
193
|
- Update npms
|
|
190
194
|
|
|
191
|
-
|
|
195
|
+
# 9.2.1 - 2021-11-16
|
|
192
196
|
|
|
193
197
|
- Update npms
|
|
194
198
|
|
|
195
|
-
|
|
199
|
+
# 9.2.0 - 2021-11-16
|
|
196
200
|
|
|
197
201
|
- Update npms
|
|
198
202
|
- Add ability to override db pool for `find()` and `findOne()`
|
|
199
203
|
|
|
200
|
-
|
|
204
|
+
# 9.1.6 - 2021-10-29
|
|
201
205
|
|
|
202
206
|
- Update npms
|
|
203
207
|
- Format markdown files
|
|
204
208
|
|
|
205
|
-
|
|
209
|
+
# 9.1.5 - 2021-09-14
|
|
206
210
|
|
|
207
211
|
- Update npms
|
|
208
212
|
- Lint markdown files
|
|
209
213
|
|
|
210
|
-
|
|
214
|
+
# 9.1.4
|
|
211
215
|
|
|
212
216
|
- Update npms
|
|
213
217
|
- Set sourceRoot when transpiling Typescript, to help with sourcemap paths
|
|
214
218
|
|
|
215
|
-
|
|
219
|
+
# 9.1.3
|
|
216
220
|
|
|
217
221
|
- Fix deprecated faker.js usage
|
|
218
222
|
|
|
219
|
-
|
|
223
|
+
# 9.1.2
|
|
220
224
|
|
|
221
225
|
- Update npms
|
|
222
226
|
|
|
223
|
-
|
|
227
|
+
# 9.1.1
|
|
224
228
|
|
|
225
229
|
- Update npms
|
|
226
230
|
|
|
227
|
-
|
|
231
|
+
# 9.1.0
|
|
228
232
|
|
|
229
233
|
- Add beforeCreate and beforeUpdate static method definitions to Entity.
|
|
230
234
|
- Enable typescript lint check: [`noImplicitOverride`](https://www.typescriptlang.org/tsconfig#noImplicitOverride)
|
|
231
235
|
- Update npms
|
|
232
236
|
|
|
233
|
-
|
|
237
|
+
# 9.0.2
|
|
234
238
|
|
|
235
239
|
- Update npms
|
|
236
240
|
|
|
237
|
-
|
|
241
|
+
# 9.0.1
|
|
238
242
|
|
|
239
243
|
- Update npms
|
|
240
244
|
- Add Node.js v16 to CI tests
|
|
241
245
|
|
|
242
|
-
|
|
246
|
+
# 9.0.0
|
|
243
247
|
|
|
244
248
|
- Drop Node.js 10 support
|
|
245
249
|
- Enable consistent indexed object style lint rule
|
|
246
250
|
|
|
247
|
-
|
|
251
|
+
# 8.1.1
|
|
248
252
|
|
|
249
253
|
- Throw error when trying to populate a one-to-many relationship from `find()` with specific select columns and not including the
|
|
250
254
|
relation column.
|
|
251
255
|
|
|
252
|
-
|
|
256
|
+
# 8.1.0
|
|
253
257
|
|
|
254
258
|
- Allow chaining `populate()` with `find()` calls :tada:
|
|
255
259
|
- Add `UNSAFE_withOriginalFieldType()` helper method to `find()` and `findOne()` to retain the original type for a field.
|
|
@@ -257,7 +261,7 @@
|
|
|
257
261
|
being forced to strictly `string`.
|
|
258
262
|
- Add `UNSAFE_withFieldValue()` helper method to `findOne()` to manually set a field value.
|
|
259
263
|
|
|
260
|
-
|
|
264
|
+
# 8.0.0
|
|
261
265
|
|
|
262
266
|
- Constrain types for create(), update(), and selects
|
|
263
267
|
- Exclude instance functions and entity collections
|
|
@@ -269,17 +273,17 @@
|
|
|
269
273
|
|
|
270
274
|
**Breaking Change:** The change to create and update values expects a property called `id` on subclasses of `Entity`.
|
|
271
275
|
|
|
272
|
-
|
|
276
|
+
# 7.1.2
|
|
273
277
|
|
|
274
278
|
- Make sort argument optional for chained calls
|
|
275
279
|
|
|
276
|
-
|
|
280
|
+
# 7.1.1
|
|
277
281
|
|
|
278
282
|
- Allow sort() argument to be undefined
|
|
279
283
|
- Fix object notation for sort() to have properties be optional
|
|
280
284
|
- Make `__bigAlEntity` be optional on Entity to avoid undefined errors when using objects as model data
|
|
281
285
|
|
|
282
|
-
|
|
286
|
+
# 7.1.0
|
|
283
287
|
|
|
284
288
|
- Fix `select` typings for populate() calls
|
|
285
289
|
- Changed `Entity` to be an abstract class rather than an interface
|
|
@@ -287,259 +291,259 @@
|
|
|
287
291
|
NOTE: This is a pretty big breaking change, but v7.0.0 was less than 24h old and was broken, so leaving this as a
|
|
288
292
|
minor version change.
|
|
289
293
|
|
|
290
|
-
|
|
294
|
+
# 7.0.0
|
|
291
295
|
|
|
292
296
|
- Add generic types to select and where. #72 Thanks @krislefeber!
|
|
293
297
|
- Add debug environment variable to print sql to console. #73 Thanks @krislefeber!
|
|
294
298
|
- Add generic types to returnSelect and sort arguments
|
|
295
299
|
- Update npms
|
|
296
300
|
|
|
297
|
-
|
|
301
|
+
# 6.0.2
|
|
298
302
|
|
|
299
303
|
- Update npms
|
|
300
304
|
- Sort union/intersection members
|
|
301
305
|
|
|
302
|
-
|
|
306
|
+
# 6.0.1
|
|
303
307
|
|
|
304
308
|
- Fix jsdocs for create and update
|
|
305
309
|
|
|
306
|
-
|
|
310
|
+
# 6.0.0
|
|
307
311
|
|
|
308
312
|
- Update npms
|
|
309
313
|
- Change `.destroy()` to not return records by default. Use `.destroy({}, { returnRecords: true })` for previous behavior
|
|
310
314
|
- Return `void` instead of `boolean` when not returning records
|
|
311
315
|
|
|
312
|
-
|
|
316
|
+
# 5.0.3
|
|
313
317
|
|
|
314
318
|
- Update npms
|
|
315
319
|
|
|
316
|
-
|
|
320
|
+
# 5.0.2
|
|
317
321
|
|
|
318
322
|
- Update npms
|
|
319
323
|
|
|
320
|
-
|
|
324
|
+
# 5.0.1
|
|
321
325
|
|
|
322
326
|
- Update npms
|
|
323
327
|
|
|
324
|
-
|
|
328
|
+
# 5.0.0
|
|
325
329
|
|
|
326
330
|
- Update npms
|
|
327
331
|
- Use prettier to format files
|
|
328
332
|
- Create interfaces for Repository and ReadonlyRepository
|
|
329
333
|
- Remove interfaces for RepositoriesByModelName and RepositoriesByModelNameLowered
|
|
330
334
|
|
|
331
|
-
|
|
335
|
+
# 4.1.1
|
|
332
336
|
|
|
333
337
|
- Update npms
|
|
334
338
|
- Use prettier to format files
|
|
335
339
|
|
|
336
|
-
|
|
340
|
+
# 4.1.0
|
|
337
341
|
|
|
338
342
|
- Fix issues with `like` and array containing null or empty string.
|
|
339
343
|
Specifically support negated array type value with null and empty string.
|
|
340
344
|
- Fix `like` constraint with null value
|
|
341
345
|
|
|
342
|
-
|
|
346
|
+
# 4.0.2
|
|
343
347
|
|
|
344
348
|
- Update npms
|
|
345
349
|
|
|
346
|
-
|
|
350
|
+
# 4.0.1
|
|
347
351
|
|
|
348
352
|
- Update npms
|
|
349
353
|
|
|
350
|
-
|
|
354
|
+
# 4.0.0
|
|
351
355
|
|
|
352
356
|
- Tightened up type definitions for "object" to Record<string, unknown> or more strict definition
|
|
353
357
|
- Do not return a string from .count() if the number is greater than safe int
|
|
354
358
|
- Update npms & fix lint issues
|
|
355
359
|
|
|
356
|
-
|
|
360
|
+
# 3.4.1
|
|
357
361
|
|
|
358
362
|
- Update npms
|
|
359
363
|
|
|
360
|
-
|
|
364
|
+
# 3.4.0
|
|
361
365
|
|
|
362
366
|
- Update npms
|
|
363
367
|
- Fix jsdoc comments for .populate()
|
|
364
368
|
|
|
365
|
-
|
|
369
|
+
# 3.3.4
|
|
366
370
|
|
|
367
371
|
- Update npms
|
|
368
372
|
|
|
369
|
-
|
|
373
|
+
# 3.3.3
|
|
370
374
|
|
|
371
375
|
- Update npms
|
|
372
376
|
|
|
373
|
-
|
|
377
|
+
# 3.3.2
|
|
374
378
|
|
|
375
379
|
- Update npms
|
|
376
380
|
|
|
377
|
-
|
|
381
|
+
# 3.3.1
|
|
378
382
|
|
|
379
383
|
- Update npms
|
|
380
384
|
|
|
381
|
-
|
|
385
|
+
# 3.3.0
|
|
382
386
|
|
|
383
387
|
- Make typescript lint rules more strict
|
|
384
388
|
- Update npms
|
|
385
389
|
|
|
386
|
-
|
|
390
|
+
# 3.2.0
|
|
387
391
|
|
|
388
392
|
- Fix CreateUpdateDelete type to be strict about either returnRecords=false or defined returnSelect
|
|
389
393
|
- Update npms
|
|
390
394
|
|
|
391
|
-
|
|
395
|
+
# 3.1.1
|
|
392
396
|
|
|
393
397
|
- Throw error when invalid propertyName in query projection
|
|
394
398
|
- Update npms
|
|
395
399
|
|
|
396
|
-
|
|
400
|
+
# 3.1.0
|
|
397
401
|
|
|
398
402
|
- Update postgres-pool to v2.0.0
|
|
399
403
|
- Update npms
|
|
400
404
|
|
|
401
|
-
|
|
405
|
+
# 3.0.1
|
|
402
406
|
|
|
403
407
|
- Remove returnSelect requirement when returnRecords=false
|
|
404
408
|
|
|
405
|
-
|
|
409
|
+
# 3.0.0
|
|
406
410
|
|
|
407
411
|
- Use classes and decorators to define database models
|
|
408
412
|
- Allow repositories to be strongly typed to their database model
|
|
409
413
|
- Split readonly repository functionality into a separate class from writeable repository functionality
|
|
410
414
|
|
|
411
|
-
|
|
415
|
+
# 2.2.1
|
|
412
416
|
|
|
413
417
|
- Update npms
|
|
414
418
|
|
|
415
|
-
|
|
419
|
+
# 2.2.0
|
|
416
420
|
|
|
417
421
|
- Add readonly property to schemas to limit access to create(), update(), destroy() methods
|
|
418
422
|
- Update npms
|
|
419
423
|
|
|
420
|
-
|
|
424
|
+
# 2.1.3
|
|
421
425
|
|
|
422
426
|
- Fix querying array columns with `like` operator
|
|
423
427
|
- Add additional array types: string[], integer[], float[], boolean[]
|
|
424
428
|
|
|
425
|
-
|
|
429
|
+
# 2.1.2
|
|
426
430
|
|
|
427
431
|
- Fix casing issues with generated Repository and SqlHelper
|
|
428
432
|
- Revert explicit export of interfaces/classes: Entity, Model, ModelClassesByGlobalId, and Repository
|
|
429
433
|
|
|
430
|
-
|
|
434
|
+
# 2.1.1
|
|
431
435
|
|
|
432
436
|
- Explicit export of interfaces/classes: Entity, Model, ModelClassesByGlobalId, and Repository
|
|
433
437
|
|
|
434
|
-
|
|
438
|
+
# 2.1.0
|
|
435
439
|
|
|
436
440
|
- Fix publish path to remove "dist"
|
|
437
441
|
- Add type definitions to "dependencies"
|
|
438
442
|
|
|
439
|
-
|
|
443
|
+
# 2.0.8
|
|
440
444
|
|
|
441
445
|
- Add binary data type
|
|
442
446
|
|
|
443
|
-
|
|
447
|
+
# 2.0.7
|
|
444
448
|
|
|
445
449
|
- Add additional array types as type for defaultsTo
|
|
446
450
|
|
|
447
|
-
|
|
451
|
+
# 2.0.6
|
|
448
452
|
|
|
449
453
|
- Add array as type for defaultsTo
|
|
450
454
|
- Fix generic type issues due to Typescript 3.5
|
|
451
455
|
- Update npms
|
|
452
456
|
|
|
453
|
-
|
|
457
|
+
# 2.0.5
|
|
454
458
|
|
|
455
459
|
- Allow .findOne(), .find(), .count(), .update(), and .destroy() to be used in an iterable promise (eg. Promise.all())
|
|
456
460
|
|
|
457
|
-
|
|
461
|
+
# 2.0.4
|
|
458
462
|
|
|
459
463
|
- Fix return type for .findOne(), .find(), .count(), .destroy() to not include `undefined`
|
|
460
464
|
|
|
461
|
-
|
|
465
|
+
# 2.0.3
|
|
462
466
|
|
|
463
467
|
- Update npm dependencies
|
|
464
468
|
|
|
465
|
-
|
|
469
|
+
# 2.0.2
|
|
466
470
|
|
|
467
471
|
- Add boolean types as acceptable values for a where clause
|
|
468
472
|
|
|
469
|
-
|
|
473
|
+
# 2.0.1
|
|
470
474
|
|
|
471
475
|
- Fix case of import module for initialization function
|
|
472
476
|
|
|
473
|
-
|
|
477
|
+
# 2.0.0
|
|
474
478
|
|
|
475
479
|
- Typescript ftw! The API is the same as BigAl v1.x. BigAl v2 is a rewrite in typescript, to provide strong type support. It should be a drop in update to go to v2.
|
|
476
480
|
|
|
477
|
-
|
|
481
|
+
# 1.2.1
|
|
478
482
|
|
|
479
483
|
- Use husky to enforce precommit hook for development
|
|
480
484
|
|
|
481
|
-
|
|
485
|
+
# 1.2.0
|
|
482
486
|
|
|
483
487
|
- Add `connections` property to initialize method
|
|
484
488
|
- Use `connection` on model schema to optionally set specific connection pools for each model
|
|
485
489
|
- Update dependencies
|
|
486
490
|
|
|
487
|
-
|
|
491
|
+
# 1.1.6
|
|
488
492
|
|
|
489
493
|
- Update dependencies
|
|
490
494
|
|
|
491
|
-
|
|
495
|
+
# 1.1.5
|
|
492
496
|
|
|
493
497
|
- Throw exception when find, update, findOne, and destroy queries receive a string parameter instead of object.
|
|
494
498
|
|
|
495
|
-
|
|
499
|
+
# 1.1.4
|
|
496
500
|
|
|
497
501
|
- Fix: Results for model queries should share the same inherited base
|
|
498
502
|
|
|
499
|
-
|
|
503
|
+
# 1.1.3
|
|
500
504
|
|
|
501
505
|
- Fix: Querying array types
|
|
502
506
|
- Fix: Explicitly cast array values
|
|
503
507
|
|
|
504
|
-
|
|
508
|
+
# 1.1.2
|
|
505
509
|
|
|
506
510
|
- Fix: Try to convert float and integer column data to numbers when fetching records
|
|
507
511
|
|
|
508
|
-
|
|
512
|
+
# 1.1.1
|
|
509
513
|
|
|
510
514
|
- Fix: Checking if array column equals an empty array
|
|
511
515
|
|
|
512
|
-
|
|
516
|
+
# 1.1.0
|
|
513
517
|
|
|
514
518
|
- Allow array values for: like, contains, startsWith, and endsWith
|
|
515
519
|
|
|
516
|
-
|
|
520
|
+
# 1.0.8
|
|
517
521
|
|
|
518
522
|
- Fix: Prevent trying to save when create() is called with an empty array
|
|
519
523
|
|
|
520
|
-
|
|
524
|
+
# 1.0.7
|
|
521
525
|
|
|
522
526
|
- Fix: Add additional stack trace data when an exception occurs
|
|
523
527
|
|
|
524
|
-
|
|
528
|
+
# 1.0.6
|
|
525
529
|
|
|
526
530
|
- Fix: "invalid input syntax for type json" error when setting jsonb column value to an array. See <https://github.com/brianc/node-postgres/issues/442>
|
|
527
531
|
- Update npms to latest versions
|
|
528
532
|
|
|
529
|
-
|
|
533
|
+
# 1.0.5
|
|
530
534
|
|
|
531
535
|
- Fix: AND constraint after an OR constraint caused exception
|
|
532
536
|
|
|
533
|
-
|
|
537
|
+
# 1.0.4
|
|
534
538
|
|
|
535
539
|
- Fix: Querying date values was not working
|
|
536
540
|
- Fix: Querying a property with columnName that is the same as the property name would result in unnecessary sql syntax
|
|
537
541
|
|
|
538
|
-
|
|
542
|
+
# 1.0.3
|
|
539
543
|
|
|
540
544
|
- Fix: A query with an empty array should return 0 records. Negated queries with empty arrays will return all records.
|
|
541
545
|
|
|
542
|
-
|
|
546
|
+
# 1.0.2
|
|
543
547
|
|
|
544
548
|
- Organize schemas by case-insensitive global id
|
|
545
549
|
- Expose schema attributes collection on model instance
|
|
@@ -547,10 +551,10 @@ minor version change.
|
|
|
547
551
|
- Ensure .count() returns number instead of a string (default data type for bigint)
|
|
548
552
|
- Fix queries for empty arrays
|
|
549
553
|
|
|
550
|
-
|
|
554
|
+
# 1.0.1
|
|
551
555
|
|
|
552
556
|
- Add .count() method
|
|
553
557
|
|
|
554
|
-
|
|
558
|
+
# 1.0.0
|
|
555
559
|
|
|
556
560
|
- Initial release
|