-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCHANGELOG
More file actions
704 lines (362 loc) · 12.2 KB
/
Copy pathCHANGELOG
File metadata and controls
704 lines (362 loc) · 12.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [10.1.0] - 2026-08-24
### Added
- Added `QueryHandlerNotRegistered` exception.
- Added `CommandHandlerNotRegistered` exception.
## [10.0.0] - 2026-08-11
### Added
- Added `QueryRegistry`.
- Added `CommandRegistry`.
### Changed
- Add serialization/deserialization of queries in order to allow operations in external systems/services.
## [9.24.1] - 2026-08-08
### Fixed
- Fixed nested values validation on `ArrayValue`.
## [9.23.0] - 2026-08-05
### Changed
- Allow Aggregates on AuthProvider instead of only Entities.
## [9.22.0] - 2026-07-18
### Added
- Expose `Filters` and `Filter` types from `Criteria`.
## [9.21.0] - 2026-07-15
### Added
- Added `FileProvider`.
## [9.20.0] - 2026-07-11
### Added
- Added `InMemoryDAO`.
## [9.19.0] - 2026-07-10
### Added
- Added `clearStore` method to `IdempotencyStore`.
## [9.18.1] - 2026-07-07
### Fixed
- Export `hasAllKeys`.
## [9.18.0] - 2026-07-07
### Added
- Added `hasAllKeys` to object utils.
## [9.17.0] - 2026-07-05
### Added
- Added `getCurrentUserRoles` to `AuthProvider`.
## [9.16.0] - 2026-07-05
### Added
- Added `refreshCurrentUser` to `AuthProvider`.
## [9.15.1] - 2026-07-03
### Fixed
- Make compatible the `AuthProvider` permissions with the `RBACPolicy`.
## [9.15.0] - 2026-07-02
### Added
- Added `count` method to DAO.
## [9.14.0] - 2026-06-20
### Added
- Added `PathValue` value object.
## [9.13.0] - 2026-06-19
### Added
- Added `MarkdownValue` value object.
- Added `HTMLValue` value object.
## [9.9.0] - 2026-05-28
### Added
- Added `SnakeToCamel` Formatter.
## [9.8.0] - 2026-05-28
### Added
- Added `meta` to `OfflinePayload`.
## [9.7.2] - 2026-05-27
### Fixed
- The `search` method in `DAO` indicates that it should return an `array` or `null` but it always should return an `array`.
## [9.7.0] - 2026-05-26
### Added
- Added `OfflineStore`.
## [9.6.5] - 2026-05-25
### Fixed
- Restore `search` method on `DAO`.
## [8.11.0] - 2026-04-05
### Added
- Added support for `POST` request with no body.
## [8.10.2] - 2026-04-05
### Fixed
- Fixed `getPermissions` definition on `RBACPolicy`.
## [8.10.1] - 2026-04-05
### Fixed
- Restored missing change to allow custom actions on `RBAC`.
## [8.10.0] - 2026-04-04
### Changed
- Added the possibility to be optional on `StringValue`.
## [8.9.0] - 2026-03-19
### Added
- Added the possibility to receive null value on `ObjectValue` if marked as optional.
## [8.6.0] - 2025-12-27
### Added
- Added `Sync/Async` `QueryBus` and `CommandBus`.
## [8.5.0] - 2025-12-26
### Added
- Added specific implementations for `Query`.
## [8.1.0] - 2025-11-27
### Added
- Added `LocalStorageStateManager`.
## [8.0.0] - 2025-11-26
### Changed
- Added the possibily to be async or sync using a generic in most of the abstractions.
## [7.0.3] - 2025-11-14
### Added
- Added support to receive a body in the GET and DELETE methods.
## [7.0.1] - 2025-11-13
### Added
- Added `deleteType`.
## [7.0.0] - 2025-11-13
### Added
- Added `deleteMode` to `DAO`.
## [6.2.0] - 2025-11-12
### Added
- Added the capacility to set a list of allowed filters in the `URLCriteriaParser`.
## [6.1.0] - 2025-11-10
### Added
- Added the capability to return a value in the `CommandHandler` for early stages of `CQRS` adoption.
## [6.0.0] - 2025-11-10
### Added
- Added `EntityToJSONAPIMapper`.
- Added `type` attribute to `Entity`.
## [5.4.3] - 2025-11-10
### Fixed
- Added missing export of "abac" module.
## [5.4.1] - 2025-11-09
### Fixed
- Fixed logging level rule.
## [5.3.0] - 2025-11-09
### Added
- Added level to `ConsoleLogger`.
- Added `DeadLetterQueue` to `EventBus`.
## [5.2.5] - 2025-11-09
### Changed
- Added `Async` prefix on CQRS in memory to homologate the event bus.
## [5.2.4] - 2025-11-08
### Changed
- Homologate `Query` and `Command` to `DomainEvent`. `type` is not `getType()`.
## [5.2.3] - 2025-11-08
### Added
- Added missing `EventBus` abstraction.
## [5.2.2] - 2025-11-07
### Added
- Added support for all the criteria filters on the JSON/API `URLCriteriaBuilder`.
- Added `URLCriteriaParser` to parse an url to a `Criteria`.
## [5.2.1] - 2025-11-05
### Changed
- Change `TourGuide` from abstract class to interface.
## [5.2.0] - 2025-11-05
### Added
- Added `TourGuide`.
- Added `Logger`.
## [5.1.0] - 2025-11-01
### Added
- Added `UnitOfWorkRunner`.
## [5.0.0] - 2025-11-01
### Added
- Added `CQRS` module.
### Removed
- Removed `messages` module.
## [4.4.3] - 2025-10-29
### Added
- Added `replyTo` to `Mail`.
## [4.4.2] - 2025-10-29
### Changed
- Removed `from` from `Mail`.
## [4.4.1] - 2025-10-29
### Changed
- Added the capacility to attach a text body and a HTML instead of only one.
## [4.4.0] - 2025-10-29
### Added
- Added `mail` module.
## [4.3.0] - 2025-10-25
### Added
- Added `di` module.
## [4.2.3] - 2025-10-25
### Added
- Added support for `array` values in the `ObjectValue`.
## [4.2.2] - 2025-10-25
### Added
- Added `URLValue`.
- Added `enum` to possible rules on the `ArrayValue` and `ObjectValue`.
## [4.2.1] - 2025-10-21
### Removed
- After tests on several `Telemetry` implementations and `Subscription` I found that the init method is useless due to errors in many cases where the error was triggered by the import and not the initialization so it's being removed.
## [4.2.0] - 2025-10-21
### Added
- Added `ConsoleTelemetry` for dev or test environments.
## [4.1.2] - 2025-10-21
### Changed
- Allow any params in the `init` method of the `Telemetry` and `Subscription`.
## [4.1.1] - 2025-10-21
### Added
- Added telemetry module to the main entry point.
## [4.1.0] - 2025-10-21
### Added
- Added `Telemetry`.
## [4.0.0] - 2025-10-21
### Added
- Added `ABAC` support to `RBACPolicy`.
## [3.1.5] - 2025-10-18
### Fixed
- Fixed `greater_than_or_equal` validation in the `FloatValue`.
## [3.1.4] - 2025-10-18
### Added
- Added `converters` module.
## [3.1.3] - 2025-10-18
### Added
- Added support for `meta` field on the body for the `create` method of the `JSONAPIConnector`.
## [3.1.2] - 2025-10-18
### Added
- Added support for arrays in the `create` method of the `JSONAPIConnector`.
## [3.1.1] - 2025-10-16
### Added
- Added `in-memory` implementation to the `state-manager` module.
## [3.1.0] - 2025-10-16
### Added
- Added `pub-sub` module.
## [3.0.0] - 2025-10-15
### Changed
- Update how filters are stored in the `Criteria` to allow multiple filters over one field.
## [2.6.0] - 2025-10-14
### Added
- Added `countBy` to `DAO`.
## [2.5.9] - 2025-10-14
### Fixed
- `JSONAPIErrors` was never thrown in the `JSONAPIConnector` due to a missing `await`.
## [2.5.8] - 2025-10-14
### Fixed
- Remove `Object.freeze` from `IntegerValue` and `FloatValue` to prevent errors when assigning the `attributeName` on subclasses.
## [2.5.7] - 2025-10-13
### Added
- Added `ObjectValue`.
## [2.5.6] - 2025-10-13
### Added
- Added `min` and `max` to `FloatValue`.
## [2.5.5] - 2025-10-13
### Added
- Added `greater_than_or_equal` and `less_than_or_equal` to `rule`.
## [2.5.4] - 2025-10-13
### Added
- Added `rule` function to avoid the use of `const` when defining the schema on the `ArrayValue`.
## [2.5.3] - 2025-10-13
### Added
- Added `ArrayValue` to value-objects.
## [2.5.2] - 2025-10-13
### Changed
- Allow `DateValue` to be optional.
## [2.5.1] - 2025-10-13
### Changed
- `toPrimitives` method from `DomainEvent` now is defined in the abstract class. In future versions the `DomainEventRegistry` will be updated to handle the transformation of values like date/string and preserve it between conversions.
## [2.5.0] - 2025-10-12
### Added
_ Added `event-bus` with `in-memory` implementations.
## [2.4.2] - 2025-10-12
### Fixed
- Add `id` param to `create` method in the `JSONAPIConnector`.
## [2.4.1] - 2025-10-12
### Fixed
- Added missed export for `JSONAPIErrors`.
## [2.4.0] - 2025-10-11
### Changed
- Now the `JSONAPIConnector` throws a `JSONAPIErrors` exception instead of a generic `HTTPException`.
## [2.3.4] - 2025-10-11
### Changed
- Allow partial attributes in the `create` and `update` methods of the `JSONAPIConnector`.
## [2.3.3] - 2025-10-11
### Added
- Added `ValueNotValid` exception.
## [2.3.2] - 2025-10-11
### Added
- Added `NotAuthorized` exception.
## [2.3.1] - 2025-10-11
### Changed
- `userID` now is protected in the `RBACPolicy`.
## [2.3.0] - 2025-10-10
### Added
- Added `RBAC` module.
## [2.2.4] - 2025-10-10
### Changed
- Remove `Optional` param in the `EnumValue`. Instead allow null values in the `allowedTypes` array.
## [2.2.3] - 2025-10-10
### Changed
- Allow `optional` param in the `EnumValue`.
## [2.2.2] - 2025-10-10
### Added
- Added `FloatValue` to value-objects.
## [2.2.1] - 2025-10-10
### Added
- Added `DateValue` to value-objects.
## [2.2.0] - 2025-10-09
### Changed
- Now the `FetchHTTPProvider` returns the body of the request even on errors to handle JSON/API errors better.
## [2.0.1]
### Added
- Added `BooleanValue`.
## [2.0.0]
### Changed
- Rename method `currentUser` to `getCurrentUser` on the `AuthProvider` interface.
## [1.3.2]
### Changed
- Now the `.authenticate` method from `AuthProvider` should return the token to remove responsabilities from it. A `AuthManager` should be implemented instead in case of future needs.
## [1.3.1] - 2025-10-04
### Added
- Added `ValuesNotValid` exception to have a central error for value objects.
## [1.3.0] - 2025-10-04
### Added
- Added `Result` to have more controlled results in application services.
### Fixed
- Added missed exports for `i18n` module.
## [1.2.3] - 2025-10-03
### Changed
- Added to constructor of the `FetchHTTPProvider` the possibility to receive a function to fetch the `Authorization`.
## [1.2.2] - 2025-10-03
### Added
- Added implementation of the state manager from the session storage.
### Changed
- `FetchHTTPProvider` now supports the `headers` options.
## [1.2.1] - 2025-10-03
### Changed
- `FetchHTTPProvider` now supports the `credentials` options.
## [1.2.0] - 2025-10-02
### Added
- Added `i18n` support via `TranslationResolver`.
## [1.1.5] - 2025-10-01
### Changed
- Now the `BaseModel` is more flexible to avoid typing issues in the `fromPrimitives` method.
## [1.1.4] - 2025-10-01
### Added
- Added support for `CommonJS`.
## [1.1.3] - 2025-10-01
### Added
- Added root entry point. Now you can import everything from `@schorts/shared-kernel` instead of having to choose an specific module. Example: `@schorts/shared-kernel/auth`.
## [1.1.2] - 2025-09-30
### Changed
- Now the `DAO` actions like `create`, `update` and `delete` can receive a `UnitOfWork`.
## [1.1.1] - 2025-09-30
### Added
- Added `RegisterEntity` decorator to only decorate the entity to add it to the `EntityRegistry`.
## [1.1.0] - 2025-09-30
### Changed
- Now the `ValueObject` for ID property on `Entity` is required.
### Added
- Added `EntityRegistry` to dynamically instantiate entities in the DAO implementation.
## [1.0.5] - 2025-09-30
### Added
- Introduce `DAO` concept for a related package with a `Firestore` implementation.
- Introduce `UnitOfWOrk` concept for a related package with a `Firestore` implementation.
## [1.0.4] - 2025-09-30
### Fixed
- Add `dist` folder to the repo and NPM package.
## [1.0.3] - 2025-09-30
### Added
- This CHANGELOG file to keep track of the relevant changes.
### Changed
- Removed indirect dependencies from the `package.json`.
[8.9.0]: https://github.com/schorts99/shared-kernel/releases/tag/v8.9.0
[1.2.0]: https://github.com/schorts99/shared-kernel/compare/v1.2.4...v1.2.0
[1.1.4]: https://github.com/schorts99/shared-kernel/compare/v1.1.3...v1.1.4
[1.1.3]: https://github.com/schorts99/shared-kernel/compare/v1.1.2...v1.1.3
[1.1.2]: https://github.com/schorts99/shared-kernel/compare/v1.1.1...v1.1.2
[1.1.1]: https://github.com/schorts99/shared-kernel/compare/v1.1.0...v1.1.1
[1.1.0]: https://github.com/schorts99/shared-kernel/compare/v1.0.5...v1.1.0
[1.0.5]: https://github.com/schorts99/shared-kernel/compare/v1.0.4...v0.0.5
[1.0.4]: https://github.com/schorts99/shared-kernel/compare/v1.0.3...v0.0.4
[1.0.3]: https://github.com/schorts99/shared-kernel/releases/tag/v1.0.3