@clairejs/server 3.10.3 → 3.10.4

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.
Files changed (70) hide show
  1. package/.prettierrc +8 -8
  2. package/README.md +732 -731
  3. package/dist/common/FileOperation.d.ts +5 -5
  4. package/dist/common/ServerModelMetadata.d.ts +10 -10
  5. package/dist/common/auth/AbstractPrincipalResolver.d.ts +4 -4
  6. package/dist/common/auth/IPrincipal.d.ts +4 -4
  7. package/dist/common/constants.d.ts +1 -1
  8. package/dist/common/request/EndpointMetadata.d.ts +40 -40
  9. package/dist/common/request/HttpData.d.ts +1 -1
  10. package/dist/common/request/HttpEndpoint.d.ts +8 -8
  11. package/dist/common/request/JobData.d.ts +1 -1
  12. package/dist/common/request/MountedEndpointInfo.d.ts +6 -6
  13. package/dist/common/request/RequestOptions.d.ts +6 -6
  14. package/dist/common/request/SocketData.d.ts +1 -1
  15. package/dist/common/request/types.d.ts +1 -1
  16. package/dist/http/auth/AbstractHttpAuthorizationProvider.d.ts +9 -9
  17. package/dist/http/auth/AbstractRbacAuthProvider.d.ts +18 -18
  18. package/dist/http/auth/RedisRbacAuthProvider.d.ts +24 -24
  19. package/dist/http/auth/SocketRbacAuthProvider.d.ts +25 -25
  20. package/dist/http/auth/rbac.d.ts +34 -34
  21. package/dist/http/common/HttpRequest.d.ts +37 -37
  22. package/dist/http/common/HttpResponse.d.ts +21 -21
  23. package/dist/http/controller/AbstractHttpController.d.ts +9 -9
  24. package/dist/http/controller/AbstractHttpMiddleware.d.ts +10 -10
  25. package/dist/http/controller/AbstractHttpRequestHandler.d.ts +16 -16
  26. package/dist/http/controller/ControllerMetadata.d.ts +6 -6
  27. package/dist/http/controller/CrudHttpController.d.ts +41 -41
  28. package/dist/http/controller/DefaultHttpRequestHandler.d.ts +21 -21
  29. package/dist/http/decorators.d.ts +35 -35
  30. package/dist/http/file-upload/AbstractFileUploadHandler.d.ts +6 -6
  31. package/dist/http/file-upload/FileUploadHandler.d.ts +10 -10
  32. package/dist/http/file-upload/types.d.ts +3 -3
  33. package/dist/http/repository/AbstractRepository.d.ts +10 -10
  34. package/dist/http/repository/DtoRepository.d.ts +58 -58
  35. package/dist/http/repository/ICrudRepository.d.ts +27 -27
  36. package/dist/http/repository/ModelRepository.d.ts +37 -37
  37. package/dist/http/security/AbstractAccessCondition.d.ts +7 -7
  38. package/dist/http/security/access-conditions/DtoFieldValidation.d.ts +4 -4
  39. package/dist/http/security/access-conditions/FilterModelFieldAccessCondition.d.ts +4 -4
  40. package/dist/http/security/access-conditions/MaximumQueryLimit.d.ts +8 -8
  41. package/dist/index.d.ts +56 -56
  42. package/dist/index.js +1 -1
  43. package/dist/job/AbstractJobController.d.ts +4 -4
  44. package/dist/job/AbstractJobRepository.d.ts +17 -17
  45. package/dist/job/AbstractJobScheduler.d.ts +38 -38
  46. package/dist/job/AwsJobScheduler.d.ts +48 -48
  47. package/dist/job/LocalJobScheduler.d.ts +88 -88
  48. package/dist/job/decorators.d.ts +5 -5
  49. package/dist/job/interfaces.d.ts +50 -50
  50. package/dist/logging/FileLogMedium.d.ts +13 -13
  51. package/dist/service/AbstractCacheService.d.ts +22 -22
  52. package/dist/service/AbstractFileService.d.ts +11 -11
  53. package/dist/service/AbstractService.d.ts +7 -7
  54. package/dist/socket/AbstractServerSocket.d.ts +18 -18
  55. package/dist/socket/AbstractServerSocketManager.d.ts +46 -46
  56. package/dist/socket/AbstractSocketConnectionHandler.d.ts +6 -6
  57. package/dist/socket/AbstractSocketController.d.ts +14 -14
  58. package/dist/socket/AwsSocketManager.d.ts +30 -30
  59. package/dist/socket/IServerSocket.d.ts +16 -16
  60. package/dist/socket/LocalSocketManager.d.ts +47 -47
  61. package/dist/system/ClaireServer.d.ts +13 -13
  62. package/dist/system/ExpressWrapper.d.ts +17 -17
  63. package/dist/system/LambdaWrapper.d.ts +21 -21
  64. package/dist/system/ServerGlobalStore.d.ts +8 -8
  65. package/dist/system/errors.d.ts +14 -14
  66. package/dist/system/lamba-request-mapper.d.ts +2 -2
  67. package/dist/system/locale/LocaleEntry.d.ts +3 -3
  68. package/dist/system/locale/LocaleTranslation.d.ts +6 -6
  69. package/dist/system/locale/decorators.d.ts +2 -2
  70. package/package.json +61 -61
package/README.md CHANGED
@@ -1,731 +1,732 @@
1
- ## Change Log
2
-
3
- #### 3.10.3
4
-
5
- - fix AwsJobScheduler cron expression
6
- - breaking change update to AbstractFileService
7
-
8
- #### 3.9.2
9
-
10
- - moving and using crud dto factory from claire core
11
- - add expire param to AbstractCacheService set
12
-
13
- #### 3.9.0
14
-
15
- - fix AbstractHttpMiddleware to accept response as second param and return boolean as result
16
-
17
- #### 3.8.8
18
-
19
- - update core package, reduce db calls in ModelRepository
20
- - allow nested update HasMany / HasOne field in ModelRepository
21
-
22
- #### 3.8.6
23
-
24
- - fix auto fill of post/put default value (no more auto fill, because of access condition check)
25
- - fix getMany projection in ModelRepository
26
- - fix hasMany fields in CRUD projection
27
-
28
- #### 3.8.3
29
-
30
- - RedisRbacAuthProvider service id resolver
31
-
32
- #### 3.8.1
33
-
34
- - fix @CurrentUser does no more require Identifiable class
35
- - fix default locale reading empty object properties in ModelRepository
36
-
37
- #### 3.8.0
38
-
39
- - add @LocaleOf decorator
40
- - handle multi-locale for ModelRepository & CrudHtppController
41
-
42
- #### 3.7.12
43
-
44
- - handle gcd of interval to reduce step function trigger rate
45
- - handle cron event for lambda wrapper
46
- - fix remove cron job for AwsJobScheduler
47
- - fix cron expression
48
- - fix rate 1 minute without 's'
49
- - add more debug log
50
- - fix cron expression validation
51
- - remove job executor
52
- - implement AwsJobScheduler (EventBridge + Step Function)
53
- - fix LocalJobScheduler interface
54
- - allow persist LocalJobScheduler job info & multi instance support
55
-
56
- #### 3.6.23
57
-
58
- - unify handle not found error
59
- - fix create many does not return mime field in CrudHttpController
60
- - fix local socket manager buffer message while socket is creating
61
- - fix async handling in lambda socket manager
62
- - handling READY socket message
63
- - fix AwsSocketManager does not remove socket from redis when disconnect
64
- - handle default "" or "/" endpoint correctly
65
- - fix CrudHttpController filter by boolean field
66
- - fix AwsSocketManager not remove socket from channel after disconnection
67
- - support @HasOne for Crud controller
68
- - fix nested queries for ModelRepository
69
-
70
- #### 3.6.3
71
-
72
- - fix onChannelConnected cannot send back data to socket (because socket was not yet added to channel and old instance was used)
73
- - add READY socket message
74
-
75
- #### 3.6.0
76
-
77
- - move database to @clairejs/orm package. Bye bye...
78
-
79
- #### 3.5.4
80
-
81
- - fix aws get socket by id
82
- - send error when close socket
83
- - remove constructor dependency of socket connection handler in socket managers
84
-
85
- #### 3.5.0
86
-
87
- - use ioredis instead of redis (for redlock to work)
88
- - update job interfaces
89
- - adapt socket managers to use ioredis
90
-
91
- #### 3.4.0
92
-
93
- - add job related classes
94
-
95
- #### 3.3.27
96
-
97
- - add random order
98
- - add \_nin operator
99
-
100
- #### 3.3.26
101
-
102
- - remove socket if authentication failed for aws socket manager
103
- - fix lambda request mapper
104
- - fix Express parse Api gateway query for socket connection
105
- - add debug log
106
- - refactor principal data resolver for socket manager
107
-
108
- #### 3.3.19
109
-
110
- - ExpressWrapper don't send response for gateway socket integration (except for connection request)
111
- - fix ExpressWrapper handle APi gateway socket message data
112
- - fix LocalSocketManager get socket by id
113
- - fix auth resolver typing
114
- - fix socket data parsing problem
115
- - fix local socket manager subscribe
116
- - update redis client to v4
117
-
118
- #### 3.3.10
119
-
120
- - fix LambdaWrapper receive ClaireApp factory
121
- - socket pong return original data
122
- - fix ModelRepository getNestedQueries
123
- - add ops to ICrudRepository
124
-
125
- #### 3.3.5
126
-
127
- - fix socket auth provider
128
- - add getSocketsByChannels
129
- - fix express server exit close connection
130
- - update socket manager to support multiple instances
131
-
132
- #### 3.2.8
133
-
134
- - fix CrudHttpController condition check for update body
135
-
136
- #### 3.2.6
137
-
138
- - add cache to RedisRbacAuthProvider
139
-
140
- #### 3.2.5
141
-
142
- - add TfaRequired() decorator and hasTfa to IPrincipal
143
- - abstract DefaultHttpRequestHandler accessControl
144
-
145
- #### 3.2.4
146
-
147
- - IPrincipal id to be any
148
-
149
- #### 3.2.3
150
-
151
- - simplify dto dissolver interface
152
- - introduce DtoRepository
153
-
154
- #### 3.2.0
155
-
156
- - introduce ICrudRepository
157
- - CrudHttpController now requires param of ICrudRepository
158
-
159
- #### 3.1.16
160
-
161
- - fix uri mapper in CRUD update request
162
-
163
- #### 3.1.15
164
-
165
- - re-implement @CurrentUser decorator
166
-
167
- #### 3.1.14
168
-
169
- - fix UriMapper & UriMapperHandler types
170
-
171
- #### 3.1.13
172
-
173
- - provide IQueryProvider to uriMapper, move uriMapper to server logic
174
- - provide tmpUri to uriMapper in ModelRepository
175
-
176
- #### 3.1.11
177
-
178
- - fix CrudHttpController missing description
179
- - fix projection query data type
180
-
181
- #### 3.1.9
182
-
183
- - strip response data if responseDto is present
184
-
185
- #### 3.1.8
186
-
187
- - return 401 http code if not auth throw
188
-
189
- #### 3.1.7
190
-
191
- - fix CrudHtppController merge wrong endpoint
192
-
193
- #### 3.1.5
194
-
195
- - fix aws socket manager parse null redis
196
-
197
- #### 3.1.4
198
-
199
- - abstract file service and cache service does not extends AbstractService anymore
200
- - fix abstract file service
201
-
202
- #### 3.1.2
203
-
204
- - fix server socket sending incorrect plain message
205
-
206
- #### 3.1.1
207
-
208
- - fix server socket
209
- - add permission conditions to CrudHttpController
210
- - add abstract services
211
- - add FileUploadHandler
212
- - add Abstract RbacAuthProvider, Redis & Cache Rbac Auth Provider
213
- - add rbac dto
214
- - add MaximumQueryLimit & DtoFieldValidation conditions
215
-
216
- #### 3.0.36
217
-
218
- - fix crud controller metadata
219
-
220
- #### 3.0.33
221
-
222
- - add @ApiDescription
223
- - add CrudHttpController metadata description
224
-
225
- #### 3.0.30
226
-
227
- - fix objectTypeConstructor
228
-
229
- #### 3.0.29:
230
-
231
- - @Socket -> @Message
232
- - use @Socket to get socket injection in controller method
233
-
234
- #### 3.0.26:
235
-
236
- - add error log in http request handler
237
-
238
- #### 3.0.25:
239
-
240
- - add null search in vector
241
- - support array search for isSymbol field
242
-
243
- #### 3.0.22:
244
-
245
- - fix timestamp field
246
-
247
- #### 3.0.19:
248
-
249
- - fix error throw in transactional
250
-
251
- #### 3.0.18:
252
-
253
- - fix not escape search value
254
- - fix accent & sensitive search in Mysql and Postgres
255
-
256
- #### 3.0.15:
257
-
258
- - require injection of database adapter in AbstractSerivce & AbstractHttpController
259
-
260
- #### 3.0.14:
261
-
262
- - add getById and getByIds to IQuery
263
-
264
- #### 3.0.12:
265
-
266
- - fix error return
267
-
268
- #### 3.0.10:
269
-
270
- - remove count query when getOne
271
-
272
- #### 3.0.8:
273
-
274
- - freeze table name in join clause
275
-
276
- #### 3.0.6:
277
-
278
- - fix index export
279
- - fix AbstractAccessCondition signature
280
-
281
- #### 3.0.5:
282
-
283
- - tested on Postgres & MySql
284
- - add join ability to IQuery, awesome!!
285
-
286
- #### 3.0.3: http method decorator return type check
287
-
288
- - add @ApiResponse decorator to store response body validator
289
- - add TypedPropertyDescriptor in HTTP method decorator to validate function return type (Promise<HttpResponse<any>>>)
290
-
291
- #### 3.0.2: improve http response
292
-
293
- - add binary response
294
-
295
- #### 3.0.0:
296
-
297
- - update claire core 3.0
298
- - controller function param decorators
299
- - ResponseBuilder
300
- - remove ops in getMany
301
-
302
- #### 2.3.13:
303
-
304
- - update raw query function signature
305
-
306
- #### 2.3.12:
307
-
308
- - fix & export CrudService
309
-
310
- #### 2.3.10:
311
-
312
- - Array & Object model field persist & parse
313
-
314
- #### 2.3.9:
315
-
316
- - @TextField will default to Sequelize.TEXT if length is not specified
317
-
318
- #### 2.3.6:
319
-
320
- - fix missing beforeCreate call when update nesting
321
-
322
- #### 2.3.1:
323
-
324
- - fix returning nested uris
325
-
326
- #### 2.3.0:
327
-
328
- - introduce CrudService
329
- - CrudHttpController support @HasMany
330
-
331
- #### 2.2.12:
332
-
333
- - fix isIntegral default
334
-
335
- #### 2.2.10:
336
-
337
- - update `CrudHttpController` Update and Delete to return `Partial<T>`
338
-
339
- #### 2.2.2:
340
-
341
- - fix `@CurrentUser` decorator
342
- - implement `@CurrentUser` decorator
343
-
344
- #### 2.2.0:
345
-
346
- - add `AbstractFileUploadHandler` and handle file upload in `CrudHttpController`
347
- - fix migration contraint remove order
348
-
349
- #### 2.1.20:
350
-
351
- - extends IPrincipal
352
-
353
- #### 2.1.19:
354
-
355
- - fix crud http controller not init database adapter
356
-
357
- #### 2.1.18:
358
-
359
- - downgrade webpack
360
-
361
- #### 2.1.16:
362
-
363
- - add pg-hstore
364
-
365
- #### 2.1.15:
366
-
367
- - add optional injection for socket manager
368
-
369
- #### 2.1.14:
370
-
371
- - AwsSocketManger needs always to be fed by JSON object
372
-
373
- #### 2.1.13:
374
-
375
- - correct json parsing when hanling aws socket message
376
-
377
- #### 2.1.11:
378
-
379
- - adjust getMany and getRecords to return Pick type based on projection
380
- - add getRecords for IQuery to return just the records
381
-
382
- #### 2.1.9:
383
-
384
- - fix CrudHttpController updateMany FilterField condition check
385
-
386
- #### 2.1.8:
387
-
388
- - fix server socket remove not delete its redis info
389
- - add socket created timestamp info
390
- - add get all alive sockets to remove stale sockets in server
391
-
392
- #### 2.1.5:
393
-
394
- - support model defualt value in db migrator & adapter
395
-
396
- #### 2.1.3:
397
-
398
- - add test for cascade delete
399
-
400
- #### 2.1.2:
401
-
402
- - update claire core
403
- - fix converting QueryCondition use "and" as default operator
404
-
405
- #### 2.1.1:
406
-
407
- - update claire core
408
- - update implementation of FileLogMedium
409
-
410
- #### 2.0.26:
411
-
412
- - parse client socket data
413
- - add more debug log
414
- - fix ExpressWrapper AWS GW socket http integration
415
-
416
- #### 2.0.17:
417
-
418
- - add AWS API GW socket request parser for express
419
-
420
- #### 2.0.16:
421
-
422
- - add log to http request handler
423
- - refactor to allow AwsSocketManager to be used with ExpressWrapper
424
-
425
- #### 2.0.14:
426
-
427
- - fix express socket unique id
428
-
429
- #### 2.0.13:
430
-
431
- - update error code from claire core
432
-
433
- #### 2.0.12:
434
-
435
- - export Get, Post, Put, Del decorators
436
-
437
- #### 2.0.11:
438
-
439
- - add log in http request handler
440
- - fix AbstractAccessCondition signature
441
-
442
- #### 2.0.9:
443
-
444
- - fix AccessCondition (to use injection)
445
- - fix ExpressWrapper & LambdaWrapper to resolve AbstractServerSocketManager
446
- - remove getMountedEndpointInfo from AbstractHttpRequestHandler, move to ServerGlobalStore
447
- - fix property assignment in isolated transactional object
448
- - add log for AwsSocketManager, fix connection problem to redis
449
-
450
- #### 2.0.1:
451
-
452
- - fix some import redundancies
453
-
454
- #### 2.0.0:
455
-
456
- - Upgrade with claire core 2.0.0
457
-
458
- #### 1.6.4:
459
-
460
- - Add pong socket response
461
-
462
- #### 1.6.3:
463
-
464
- - AbstractDatabaseMigrator: supply migration directory to migrate and rollback functions
465
- - fix migrator cli path
466
-
467
- #### 1.6.1:
468
-
469
- - AbstractPrincipal -> IPrincipal (for serialization)
470
-
471
- #### 1.5.51:
472
-
473
- - fix AwsSocketManager not release redis connection, add more log
474
- - fix ExpressWrapper unhandled socket promise exception
475
-
476
- #### 1.5.39 (Breaking change):
477
-
478
- - fix properties null check
479
- - socket multiplex
480
-
481
- #### 1.5.28:
482
-
483
- - fix server socket authId => authInfo
484
-
485
- #### 1.5.26:
486
-
487
- - add OwnedResourceAccessCondition
488
-
489
- #### 1.5.24:
490
-
491
- - replace HttpRequest.getPrincipalId by HttpRequest.getAuthInfo
492
-
493
- #### 1.5.23:
494
-
495
- - fix ServerSocket
496
- - fix not remove disconnect socket from socket manager
497
-
498
- #### 1.5.15 (Breaking change):
499
-
500
- - remove getValue / setValue in HttpRequest
501
- - add setPrincipalId / getPrincipalId in HttpRequest
502
- - adjust Socket Server
503
-
504
- #### 1.5.12:
505
-
506
- - handle socket in lambda wrapper
507
-
508
- #### 1.5.11:
509
-
510
- - fix ServerSocket
511
-
512
- #### 1.5.6:
513
-
514
- - update claire core
515
- - fix ServerSocket
516
-
517
- #### 1.5.4:
518
-
519
- - run middleware before socket authentication
520
-
521
- #### 1.5.2:
522
-
523
- - add websocket support in ExpressWrapper
524
-
525
- #### 1.5.1:
526
-
527
- - update claire core
528
-
529
- #### 1.5.0:
530
-
531
- - revert back to 1.3.38
532
-
533
- #### 1.3.38:
534
-
535
- - export QueryCondition
536
-
537
- #### 1.3.37:
538
-
539
- - return error name instead of TRANSACTION_ERROR
540
- - update claire core
541
-
542
- #### 1.3.36:
543
-
544
- - fix missing down script of unique constraint in database migrator
545
- - add rollback to database migrator
546
-
547
- #### 1.3.34:
548
-
549
- - export AbstractDatabaseMigrator
550
- - fix DefaultSqlDatabaseMigrator not generate new unique constraints for new field
551
-
552
- #### 1.3.32:
553
-
554
- - fix DefaultSqlDatabaseMigrator missing foreign constraint check when add/remove fields
555
-
556
- #### 1.3.31:
557
-
558
- - update server modify
559
-
560
- #### 1.3.30:
561
-
562
- - adjust body raw parser in ExpressWrapper
563
-
564
- #### 1.3.28:
565
-
566
- - fix not supply HttpResponse in Http handler
567
-
568
- #### 1.3.27:
569
-
570
- - add body parser raw middleware
571
-
572
- #### 1.3.26:
573
-
574
- - modify express wrapper send result
575
-
576
- #### 1.3.25:
577
-
578
- - add request options mapper in LambdaWrapper
579
-
580
- #### 1.3.24:
581
-
582
- - add LambdaWrapper
583
-
584
- #### 1.3.23:
585
-
586
- - add ExpressWrapper
587
-
588
- #### 1.3.22:
589
-
590
- - merge accessConditions in CrudHttpController
591
-
592
- #### 1.3.21:
593
-
594
- - DefaultSqlDatabaseMigrator will no longer generate remove table query.
595
-
596
- #### 1.3.20:
597
-
598
- - add permissionGroup and displayName metadata for EndpointMetadata
599
-
600
- #### 1.3.16:
601
-
602
- - update claire core
603
- - allow empty records for CrudHttpController createMany
604
-
605
- #### 1.3.15:
606
-
607
- - fix incorrect parse Http params
608
-
609
- #### 1.3.13:
610
-
611
- - update claire core
612
-
613
- #### 1.3.12:
614
-
615
- - re-introduce terser plugin
616
- - update claire core
617
-
618
- #### 1.3.10:
619
-
620
- - emit source map
621
-
622
- #### 1.3.9:
623
-
624
- - update claire core
625
-
626
- #### 1.3.8:
627
-
628
- - fix missing HttpResponse export
629
-
630
- #### 1.3.7:
631
-
632
- - upgrade Clairejs/core
633
-
634
- #### 1.3.6:
635
-
636
- - upgrade Clairejs/core
637
-
638
- - interpret @ServerTime and @Timestamp
639
-
640
- #### 1.3.2 (Breaking change):
641
-
642
- - re-introduce http response to controller
643
-
644
- #### 1.2.6:
645
-
646
- - add unaccent operators (uSUBSTR, iuSUBSTR)
647
-
648
- #### 1.2.5:
649
-
650
- - allow multiple calls to boot
651
-
652
- #### 1.2.4:
653
-
654
- - fix http request handler parse get and delete request body
655
-
656
- #### 1.2.2:
657
-
658
- - split database migrator
659
- - rework of ClaireServer to be request handler
660
- - remove dependency of expressjs and its middleware
661
-
662
- #### 1.1.9:
663
-
664
- - revert 1.1.8
665
-
666
- #### 1.1.8:
667
-
668
- - init app when getExpressApp
669
-
670
- #### 1.1.7:
671
-
672
- - add pg-hstore as dependency
673
-
674
- #### 1.1.6:
675
-
676
- - fix autoCommit in @Transactional
677
-
678
- #### 1.1.5:
679
-
680
- - use AbstractModel id field for primary key query
681
-
682
- #### 1.1.3:
683
-
684
- - fix returning ids for updateMany and deleteMany
685
-
686
- #### 1.1.2:
687
-
688
- - fix not auto generate migration when changing cascade of @FK
689
- - set build target es6
690
-
691
- #### 1.1.0:
692
-
693
- - fix foreign key cascase delete
694
- - fix auto commit of crud http controller
695
- - return array of ids when updateMany or deleteMany
696
-
697
- #### 1.0.22:
698
-
699
- - CrudHttpController exposes static validators
700
-
701
- #### 1.0.21:
702
-
703
- - update Clairejs Core
704
-
705
- #### 1.0.20:
706
-
707
- - update CrudHttpController for query change
708
-
709
- #### 1.0.17:
710
-
711
- - perform json parsing for fields of request params and queries
712
-
713
- #### 1.0.15:
714
-
715
- - fix @Searchable in CrudHttpController
716
-
717
- #### 1.0.13:
718
-
719
- - add iSUBSTR operator to search for case insensitive string
720
-
721
- #### 1.0.9:
722
-
723
- - fix CrudHttpController endpoint naming
724
-
725
- #### 1.0.8:
726
-
727
- - fix DefaultHttpRequestHandler upgrade Http
728
-
729
- #### 1.0.6:
730
-
731
- - fix DefaultHttpRequestHandler cannot return request body when no validator is provided
1
+ ## Change Log
2
+
3
+ #### 3.10.4
4
+
5
+ - use setTimeout for local scheduler at timestamp
6
+ - fix AwsJobScheduler cron expression
7
+ - breaking change update to AbstractFileService
8
+
9
+ #### 3.9.2
10
+
11
+ - moving and using crud dto factory from claire core
12
+ - add expire param to AbstractCacheService set
13
+
14
+ #### 3.9.0
15
+
16
+ - fix AbstractHttpMiddleware to accept response as second param and return boolean as result
17
+
18
+ #### 3.8.8
19
+
20
+ - update core package, reduce db calls in ModelRepository
21
+ - allow nested update HasMany / HasOne field in ModelRepository
22
+
23
+ #### 3.8.6
24
+
25
+ - fix auto fill of post/put default value (no more auto fill, because of access condition check)
26
+ - fix getMany projection in ModelRepository
27
+ - fix hasMany fields in CRUD projection
28
+
29
+ #### 3.8.3
30
+
31
+ - RedisRbacAuthProvider service id resolver
32
+
33
+ #### 3.8.1
34
+
35
+ - fix @CurrentUser does no more require Identifiable class
36
+ - fix default locale reading empty object properties in ModelRepository
37
+
38
+ #### 3.8.0
39
+
40
+ - add @LocaleOf decorator
41
+ - handle multi-locale for ModelRepository & CrudHtppController
42
+
43
+ #### 3.7.12
44
+
45
+ - handle gcd of interval to reduce step function trigger rate
46
+ - handle cron event for lambda wrapper
47
+ - fix remove cron job for AwsJobScheduler
48
+ - fix cron expression
49
+ - fix rate 1 minute without 's'
50
+ - add more debug log
51
+ - fix cron expression validation
52
+ - remove job executor
53
+ - implement AwsJobScheduler (EventBridge + Step Function)
54
+ - fix LocalJobScheduler interface
55
+ - allow persist LocalJobScheduler job info & multi instance support
56
+
57
+ #### 3.6.23
58
+
59
+ - unify handle not found error
60
+ - fix create many does not return mime field in CrudHttpController
61
+ - fix local socket manager buffer message while socket is creating
62
+ - fix async handling in lambda socket manager
63
+ - handling READY socket message
64
+ - fix AwsSocketManager does not remove socket from redis when disconnect
65
+ - handle default "" or "/" endpoint correctly
66
+ - fix CrudHttpController filter by boolean field
67
+ - fix AwsSocketManager not remove socket from channel after disconnection
68
+ - support @HasOne for Crud controller
69
+ - fix nested queries for ModelRepository
70
+
71
+ #### 3.6.3
72
+
73
+ - fix onChannelConnected cannot send back data to socket (because socket was not yet added to channel and old instance was used)
74
+ - add READY socket message
75
+
76
+ #### 3.6.0
77
+
78
+ - move database to @clairejs/orm package. Bye bye...
79
+
80
+ #### 3.5.4
81
+
82
+ - fix aws get socket by id
83
+ - send error when close socket
84
+ - remove constructor dependency of socket connection handler in socket managers
85
+
86
+ #### 3.5.0
87
+
88
+ - use ioredis instead of redis (for redlock to work)
89
+ - update job interfaces
90
+ - adapt socket managers to use ioredis
91
+
92
+ #### 3.4.0
93
+
94
+ - add job related classes
95
+
96
+ #### 3.3.27
97
+
98
+ - add random order
99
+ - add \_nin operator
100
+
101
+ #### 3.3.26
102
+
103
+ - remove socket if authentication failed for aws socket manager
104
+ - fix lambda request mapper
105
+ - fix Express parse Api gateway query for socket connection
106
+ - add debug log
107
+ - refactor principal data resolver for socket manager
108
+
109
+ #### 3.3.19
110
+
111
+ - ExpressWrapper don't send response for gateway socket integration (except for connection request)
112
+ - fix ExpressWrapper handle APi gateway socket message data
113
+ - fix LocalSocketManager get socket by id
114
+ - fix auth resolver typing
115
+ - fix socket data parsing problem
116
+ - fix local socket manager subscribe
117
+ - update redis client to v4
118
+
119
+ #### 3.3.10
120
+
121
+ - fix LambdaWrapper receive ClaireApp factory
122
+ - socket pong return original data
123
+ - fix ModelRepository getNestedQueries
124
+ - add ops to ICrudRepository
125
+
126
+ #### 3.3.5
127
+
128
+ - fix socket auth provider
129
+ - add getSocketsByChannels
130
+ - fix express server exit close connection
131
+ - update socket manager to support multiple instances
132
+
133
+ #### 3.2.8
134
+
135
+ - fix CrudHttpController condition check for update body
136
+
137
+ #### 3.2.6
138
+
139
+ - add cache to RedisRbacAuthProvider
140
+
141
+ #### 3.2.5
142
+
143
+ - add TfaRequired() decorator and hasTfa to IPrincipal
144
+ - abstract DefaultHttpRequestHandler accessControl
145
+
146
+ #### 3.2.4
147
+
148
+ - IPrincipal id to be any
149
+
150
+ #### 3.2.3
151
+
152
+ - simplify dto dissolver interface
153
+ - introduce DtoRepository
154
+
155
+ #### 3.2.0
156
+
157
+ - introduce ICrudRepository
158
+ - CrudHttpController now requires param of ICrudRepository
159
+
160
+ #### 3.1.16
161
+
162
+ - fix uri mapper in CRUD update request
163
+
164
+ #### 3.1.15
165
+
166
+ - re-implement @CurrentUser decorator
167
+
168
+ #### 3.1.14
169
+
170
+ - fix UriMapper & UriMapperHandler types
171
+
172
+ #### 3.1.13
173
+
174
+ - provide IQueryProvider to uriMapper, move uriMapper to server logic
175
+ - provide tmpUri to uriMapper in ModelRepository
176
+
177
+ #### 3.1.11
178
+
179
+ - fix CrudHttpController missing description
180
+ - fix projection query data type
181
+
182
+ #### 3.1.9
183
+
184
+ - strip response data if responseDto is present
185
+
186
+ #### 3.1.8
187
+
188
+ - return 401 http code if not auth throw
189
+
190
+ #### 3.1.7
191
+
192
+ - fix CrudHtppController merge wrong endpoint
193
+
194
+ #### 3.1.5
195
+
196
+ - fix aws socket manager parse null redis
197
+
198
+ #### 3.1.4
199
+
200
+ - abstract file service and cache service does not extends AbstractService anymore
201
+ - fix abstract file service
202
+
203
+ #### 3.1.2
204
+
205
+ - fix server socket sending incorrect plain message
206
+
207
+ #### 3.1.1
208
+
209
+ - fix server socket
210
+ - add permission conditions to CrudHttpController
211
+ - add abstract services
212
+ - add FileUploadHandler
213
+ - add Abstract RbacAuthProvider, Redis & Cache Rbac Auth Provider
214
+ - add rbac dto
215
+ - add MaximumQueryLimit & DtoFieldValidation conditions
216
+
217
+ #### 3.0.36
218
+
219
+ - fix crud controller metadata
220
+
221
+ #### 3.0.33
222
+
223
+ - add @ApiDescription
224
+ - add CrudHttpController metadata description
225
+
226
+ #### 3.0.30
227
+
228
+ - fix objectTypeConstructor
229
+
230
+ #### 3.0.29:
231
+
232
+ - @Socket -> @Message
233
+ - use @Socket to get socket injection in controller method
234
+
235
+ #### 3.0.26:
236
+
237
+ - add error log in http request handler
238
+
239
+ #### 3.0.25:
240
+
241
+ - add null search in vector
242
+ - support array search for isSymbol field
243
+
244
+ #### 3.0.22:
245
+
246
+ - fix timestamp field
247
+
248
+ #### 3.0.19:
249
+
250
+ - fix error throw in transactional
251
+
252
+ #### 3.0.18:
253
+
254
+ - fix not escape search value
255
+ - fix accent & sensitive search in Mysql and Postgres
256
+
257
+ #### 3.0.15:
258
+
259
+ - require injection of database adapter in AbstractSerivce & AbstractHttpController
260
+
261
+ #### 3.0.14:
262
+
263
+ - add getById and getByIds to IQuery
264
+
265
+ #### 3.0.12:
266
+
267
+ - fix error return
268
+
269
+ #### 3.0.10:
270
+
271
+ - remove count query when getOne
272
+
273
+ #### 3.0.8:
274
+
275
+ - freeze table name in join clause
276
+
277
+ #### 3.0.6:
278
+
279
+ - fix index export
280
+ - fix AbstractAccessCondition signature
281
+
282
+ #### 3.0.5:
283
+
284
+ - tested on Postgres & MySql
285
+ - add join ability to IQuery, awesome!!
286
+
287
+ #### 3.0.3: http method decorator return type check
288
+
289
+ - add @ApiResponse decorator to store response body validator
290
+ - add TypedPropertyDescriptor in HTTP method decorator to validate function return type (Promise<HttpResponse<any>>>)
291
+
292
+ #### 3.0.2: improve http response
293
+
294
+ - add binary response
295
+
296
+ #### 3.0.0:
297
+
298
+ - update claire core 3.0
299
+ - controller function param decorators
300
+ - ResponseBuilder
301
+ - remove ops in getMany
302
+
303
+ #### 2.3.13:
304
+
305
+ - update raw query function signature
306
+
307
+ #### 2.3.12:
308
+
309
+ - fix & export CrudService
310
+
311
+ #### 2.3.10:
312
+
313
+ - Array & Object model field persist & parse
314
+
315
+ #### 2.3.9:
316
+
317
+ - @TextField will default to Sequelize.TEXT if length is not specified
318
+
319
+ #### 2.3.6:
320
+
321
+ - fix missing beforeCreate call when update nesting
322
+
323
+ #### 2.3.1:
324
+
325
+ - fix returning nested uris
326
+
327
+ #### 2.3.0:
328
+
329
+ - introduce CrudService
330
+ - CrudHttpController support @HasMany
331
+
332
+ #### 2.2.12:
333
+
334
+ - fix isIntegral default
335
+
336
+ #### 2.2.10:
337
+
338
+ - update `CrudHttpController` Update and Delete to return `Partial<T>`
339
+
340
+ #### 2.2.2:
341
+
342
+ - fix `@CurrentUser` decorator
343
+ - implement `@CurrentUser` decorator
344
+
345
+ #### 2.2.0:
346
+
347
+ - add `AbstractFileUploadHandler` and handle file upload in `CrudHttpController`
348
+ - fix migration contraint remove order
349
+
350
+ #### 2.1.20:
351
+
352
+ - extends IPrincipal
353
+
354
+ #### 2.1.19:
355
+
356
+ - fix crud http controller not init database adapter
357
+
358
+ #### 2.1.18:
359
+
360
+ - downgrade webpack
361
+
362
+ #### 2.1.16:
363
+
364
+ - add pg-hstore
365
+
366
+ #### 2.1.15:
367
+
368
+ - add optional injection for socket manager
369
+
370
+ #### 2.1.14:
371
+
372
+ - AwsSocketManger needs always to be fed by JSON object
373
+
374
+ #### 2.1.13:
375
+
376
+ - correct json parsing when hanling aws socket message
377
+
378
+ #### 2.1.11:
379
+
380
+ - adjust getMany and getRecords to return Pick type based on projection
381
+ - add getRecords for IQuery to return just the records
382
+
383
+ #### 2.1.9:
384
+
385
+ - fix CrudHttpController updateMany FilterField condition check
386
+
387
+ #### 2.1.8:
388
+
389
+ - fix server socket remove not delete its redis info
390
+ - add socket created timestamp info
391
+ - add get all alive sockets to remove stale sockets in server
392
+
393
+ #### 2.1.5:
394
+
395
+ - support model defualt value in db migrator & adapter
396
+
397
+ #### 2.1.3:
398
+
399
+ - add test for cascade delete
400
+
401
+ #### 2.1.2:
402
+
403
+ - update claire core
404
+ - fix converting QueryCondition use "and" as default operator
405
+
406
+ #### 2.1.1:
407
+
408
+ - update claire core
409
+ - update implementation of FileLogMedium
410
+
411
+ #### 2.0.26:
412
+
413
+ - parse client socket data
414
+ - add more debug log
415
+ - fix ExpressWrapper AWS GW socket http integration
416
+
417
+ #### 2.0.17:
418
+
419
+ - add AWS API GW socket request parser for express
420
+
421
+ #### 2.0.16:
422
+
423
+ - add log to http request handler
424
+ - refactor to allow AwsSocketManager to be used with ExpressWrapper
425
+
426
+ #### 2.0.14:
427
+
428
+ - fix express socket unique id
429
+
430
+ #### 2.0.13:
431
+
432
+ - update error code from claire core
433
+
434
+ #### 2.0.12:
435
+
436
+ - export Get, Post, Put, Del decorators
437
+
438
+ #### 2.0.11:
439
+
440
+ - add log in http request handler
441
+ - fix AbstractAccessCondition signature
442
+
443
+ #### 2.0.9:
444
+
445
+ - fix AccessCondition (to use injection)
446
+ - fix ExpressWrapper & LambdaWrapper to resolve AbstractServerSocketManager
447
+ - remove getMountedEndpointInfo from AbstractHttpRequestHandler, move to ServerGlobalStore
448
+ - fix property assignment in isolated transactional object
449
+ - add log for AwsSocketManager, fix connection problem to redis
450
+
451
+ #### 2.0.1:
452
+
453
+ - fix some import redundancies
454
+
455
+ #### 2.0.0:
456
+
457
+ - Upgrade with claire core 2.0.0
458
+
459
+ #### 1.6.4:
460
+
461
+ - Add pong socket response
462
+
463
+ #### 1.6.3:
464
+
465
+ - AbstractDatabaseMigrator: supply migration directory to migrate and rollback functions
466
+ - fix migrator cli path
467
+
468
+ #### 1.6.1:
469
+
470
+ - AbstractPrincipal -> IPrincipal (for serialization)
471
+
472
+ #### 1.5.51:
473
+
474
+ - fix AwsSocketManager not release redis connection, add more log
475
+ - fix ExpressWrapper unhandled socket promise exception
476
+
477
+ #### 1.5.39 (Breaking change):
478
+
479
+ - fix properties null check
480
+ - socket multiplex
481
+
482
+ #### 1.5.28:
483
+
484
+ - fix server socket authId => authInfo
485
+
486
+ #### 1.5.26:
487
+
488
+ - add OwnedResourceAccessCondition
489
+
490
+ #### 1.5.24:
491
+
492
+ - replace HttpRequest.getPrincipalId by HttpRequest.getAuthInfo
493
+
494
+ #### 1.5.23:
495
+
496
+ - fix ServerSocket
497
+ - fix not remove disconnect socket from socket manager
498
+
499
+ #### 1.5.15 (Breaking change):
500
+
501
+ - remove getValue / setValue in HttpRequest
502
+ - add setPrincipalId / getPrincipalId in HttpRequest
503
+ - adjust Socket Server
504
+
505
+ #### 1.5.12:
506
+
507
+ - handle socket in lambda wrapper
508
+
509
+ #### 1.5.11:
510
+
511
+ - fix ServerSocket
512
+
513
+ #### 1.5.6:
514
+
515
+ - update claire core
516
+ - fix ServerSocket
517
+
518
+ #### 1.5.4:
519
+
520
+ - run middleware before socket authentication
521
+
522
+ #### 1.5.2:
523
+
524
+ - add websocket support in ExpressWrapper
525
+
526
+ #### 1.5.1:
527
+
528
+ - update claire core
529
+
530
+ #### 1.5.0:
531
+
532
+ - revert back to 1.3.38
533
+
534
+ #### 1.3.38:
535
+
536
+ - export QueryCondition
537
+
538
+ #### 1.3.37:
539
+
540
+ - return error name instead of TRANSACTION_ERROR
541
+ - update claire core
542
+
543
+ #### 1.3.36:
544
+
545
+ - fix missing down script of unique constraint in database migrator
546
+ - add rollback to database migrator
547
+
548
+ #### 1.3.34:
549
+
550
+ - export AbstractDatabaseMigrator
551
+ - fix DefaultSqlDatabaseMigrator not generate new unique constraints for new field
552
+
553
+ #### 1.3.32:
554
+
555
+ - fix DefaultSqlDatabaseMigrator missing foreign constraint check when add/remove fields
556
+
557
+ #### 1.3.31:
558
+
559
+ - update server modify
560
+
561
+ #### 1.3.30:
562
+
563
+ - adjust body raw parser in ExpressWrapper
564
+
565
+ #### 1.3.28:
566
+
567
+ - fix not supply HttpResponse in Http handler
568
+
569
+ #### 1.3.27:
570
+
571
+ - add body parser raw middleware
572
+
573
+ #### 1.3.26:
574
+
575
+ - modify express wrapper send result
576
+
577
+ #### 1.3.25:
578
+
579
+ - add request options mapper in LambdaWrapper
580
+
581
+ #### 1.3.24:
582
+
583
+ - add LambdaWrapper
584
+
585
+ #### 1.3.23:
586
+
587
+ - add ExpressWrapper
588
+
589
+ #### 1.3.22:
590
+
591
+ - merge accessConditions in CrudHttpController
592
+
593
+ #### 1.3.21:
594
+
595
+ - DefaultSqlDatabaseMigrator will no longer generate remove table query.
596
+
597
+ #### 1.3.20:
598
+
599
+ - add permissionGroup and displayName metadata for EndpointMetadata
600
+
601
+ #### 1.3.16:
602
+
603
+ - update claire core
604
+ - allow empty records for CrudHttpController createMany
605
+
606
+ #### 1.3.15:
607
+
608
+ - fix incorrect parse Http params
609
+
610
+ #### 1.3.13:
611
+
612
+ - update claire core
613
+
614
+ #### 1.3.12:
615
+
616
+ - re-introduce terser plugin
617
+ - update claire core
618
+
619
+ #### 1.3.10:
620
+
621
+ - emit source map
622
+
623
+ #### 1.3.9:
624
+
625
+ - update claire core
626
+
627
+ #### 1.3.8:
628
+
629
+ - fix missing HttpResponse export
630
+
631
+ #### 1.3.7:
632
+
633
+ - upgrade Clairejs/core
634
+
635
+ #### 1.3.6:
636
+
637
+ - upgrade Clairejs/core
638
+
639
+ - interpret @ServerTime and @Timestamp
640
+
641
+ #### 1.3.2 (Breaking change):
642
+
643
+ - re-introduce http response to controller
644
+
645
+ #### 1.2.6:
646
+
647
+ - add unaccent operators (uSUBSTR, iuSUBSTR)
648
+
649
+ #### 1.2.5:
650
+
651
+ - allow multiple calls to boot
652
+
653
+ #### 1.2.4:
654
+
655
+ - fix http request handler parse get and delete request body
656
+
657
+ #### 1.2.2:
658
+
659
+ - split database migrator
660
+ - rework of ClaireServer to be request handler
661
+ - remove dependency of expressjs and its middleware
662
+
663
+ #### 1.1.9:
664
+
665
+ - revert 1.1.8
666
+
667
+ #### 1.1.8:
668
+
669
+ - init app when getExpressApp
670
+
671
+ #### 1.1.7:
672
+
673
+ - add pg-hstore as dependency
674
+
675
+ #### 1.1.6:
676
+
677
+ - fix autoCommit in @Transactional
678
+
679
+ #### 1.1.5:
680
+
681
+ - use AbstractModel id field for primary key query
682
+
683
+ #### 1.1.3:
684
+
685
+ - fix returning ids for updateMany and deleteMany
686
+
687
+ #### 1.1.2:
688
+
689
+ - fix not auto generate migration when changing cascade of @FK
690
+ - set build target es6
691
+
692
+ #### 1.1.0:
693
+
694
+ - fix foreign key cascase delete
695
+ - fix auto commit of crud http controller
696
+ - return array of ids when updateMany or deleteMany
697
+
698
+ #### 1.0.22:
699
+
700
+ - CrudHttpController exposes static validators
701
+
702
+ #### 1.0.21:
703
+
704
+ - update Clairejs Core
705
+
706
+ #### 1.0.20:
707
+
708
+ - update CrudHttpController for query change
709
+
710
+ #### 1.0.17:
711
+
712
+ - perform json parsing for fields of request params and queries
713
+
714
+ #### 1.0.15:
715
+
716
+ - fix @Searchable in CrudHttpController
717
+
718
+ #### 1.0.13:
719
+
720
+ - add iSUBSTR operator to search for case insensitive string
721
+
722
+ #### 1.0.9:
723
+
724
+ - fix CrudHttpController endpoint naming
725
+
726
+ #### 1.0.8:
727
+
728
+ - fix DefaultHttpRequestHandler upgrade Http
729
+
730
+ #### 1.0.6:
731
+
732
+ - fix DefaultHttpRequestHandler cannot return request body when no validator is provided