@mrxsys/mrx-core 2.11.0-1-and-269-20251003 โ†’ 2.11.0-1-and-273-20251029

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 (35) hide show
  1. package/CHANGELOG.md +407 -0
  2. package/dist/{chunk-dzfefxjq.js โ†’ chunk-pjv1ekwr.js} +32 -0
  3. package/dist/chunk-rz5p4j3p.js +13 -0
  4. package/dist/modules/elysia/crud/index.js +1 -1
  5. package/dist/modules/elysia/crud/operations/index.js +1 -1
  6. package/dist/modules/kv-store/bun-redis/bun-redis-store.d.ts +25 -0
  7. package/dist/modules/kv-store/bun-redis/index.d.ts +1 -0
  8. package/dist/modules/kv-store/bun-redis/index.js +84 -0
  9. package/dist/modules/kv-store/ioredis/index.js +10 -16
  10. package/dist/modules/kv-store/ioredis/ioredis-store.d.ts +0 -82
  11. package/dist/modules/kv-store/memory/memory-store.d.ts +0 -84
  12. package/dist/modules/kv-store/types/kv-store.d.ts +2 -2
  13. package/dist/modules/logger/enums/index.js +1 -1
  14. package/dist/modules/logger/enums/logger-error-keys.d.ts +6 -3
  15. package/dist/modules/logger/events/logger-events.d.ts +12 -3
  16. package/dist/modules/logger/index.js +169 -81
  17. package/dist/modules/logger/logger.d.ts +115 -133
  18. package/dist/modules/logger/sinks/console-logger.d.ts +2 -16
  19. package/dist/modules/logger/sinks/devnull-logger.d.ts +8 -0
  20. package/dist/modules/logger/sinks/file-logger/enums/file-logger-error-keys.d.ts +3 -0
  21. package/dist/modules/logger/sinks/file-logger/file-logger.d.ts +25 -0
  22. package/dist/modules/logger/sinks/index.d.ts +4 -2
  23. package/dist/modules/logger/sinks/index.js +53 -31
  24. package/dist/modules/logger/types/index.d.ts +6 -6
  25. package/dist/modules/logger/types/log-levels.d.ts +1 -4
  26. package/dist/modules/logger/types/logger-options.d.ts +41 -0
  27. package/dist/modules/logger/types/logger-sink.d.ts +12 -3
  28. package/dist/modules/logger/types/sink-bodies-intersection.d.ts +2 -0
  29. package/dist/modules/logger/types/sink-body.d.ts +1 -1
  30. package/dist/modules/logger/types/sink-map.d.ts +1 -1
  31. package/package.json +23 -17
  32. package/dist/chunk-b96fm9ph.js +0 -10
  33. package/dist/modules/logger/sinks/file-logger.d.ts +0 -25
  34. package/dist/modules/logger/types/bodies-intersection.d.ts +0 -2
  35. package/dist/modules/logger/types/log-stream-chunk.d.ts +0 -15
package/CHANGELOG.md ADDED
@@ -0,0 +1,407 @@
1
+
2
+ ## v2.11.0-1-and-269-20251003
3
+
4
+ [compare changes](https://github.com/MRX-Systems/MRX-Core/compare/v2.10.0...v2.11.0-1-and-269-20251003)
5
+
6
+ ### ๐Ÿš€ Enhancements
7
+
8
+ - **๐Ÿš€:** [Add microservice success keys for responses] ## Features - Introduced `MICROSERVICE_SUCCESS_KEYS` for consistent success messages. ([c8031f41](https://github.com/MRX-Systems/MRX-Core/commit/c8031f41))
9
+ - **๐Ÿš€:** [Add CRUD success keys enumeration] ([f7df540b](https://github.com/MRX-Systems/MRX-Core/commit/f7df540b))
10
+ - **๐Ÿš€:** [Integrate CRUD success keys into response messages] ([863a601e](https://github.com/MRX-Systems/MRX-Core/commit/863a601e))
11
+ - **๐Ÿš€:** [Add new entrypoints] ([ee80b6a0](https://github.com/MRX-Systems/MRX-Core/commit/ee80b6a0))
12
+ - **๐Ÿš€:** [Add status code] ([8bb890c3](https://github.com/MRX-Systems/MRX-Core/commit/8bb890c3))
13
+
14
+ ### ๐Ÿ”ง Fixes
15
+
16
+ - **๐Ÿ”ง:** [Correct expiration calculation in signJWT function] ## Bug Fixes - Fixed the expiration time calculation in the `signJWT` function to ensure it correctly adds the parsed human-readable time to the current timestamp. ([3493f499](https://github.com/MRX-Systems/MRX-Core/commit/3493f499))
17
+ - **๐Ÿ”ง:** [Update error response structure to use 'content' instead of 'cause'] ## Bug Fixes - Changed the error response property from 'cause' to 'content' for consistency. ([77bb785b](https://github.com/MRX-Systems/MRX-Core/commit/77bb785b))
18
+ - **๐Ÿ”ง:** [Add missing error handling for 'PARSE' case] ## Bug Fixes - Added error handling for the 'PARSE' case in the error plugin. ([c1aaa0e7](https://github.com/MRX-Systems/MRX-Core/commit/c1aaa0e7))
19
+ - **๐Ÿ”ง:** [Update error keys to include 'mrx-core' prefix] ([aa611054](https://github.com/MRX-Systems/MRX-Core/commit/aa611054))
20
+ - **๐Ÿ”ง:** [Refactor error handling to use ERROR_KEYS constants] ## Bug Fixes - Updated error messages to utilize constants from ERROR_KEYS. ([00690808](https://github.com/MRX-Systems/MRX-Core/commit/00690808))
21
+ - **๐Ÿ”ง:** [WTF] ([46a23ff2](https://github.com/MRX-Systems/MRX-Core/commit/46a23ff2))
22
+ - **๐Ÿ”ง:** [Correct authorization error key typos] ([e6a3693b](https://github.com/MRX-Systems/MRX-Core/commit/e6a3693b))
23
+ - **๐Ÿ”ง:** [Correct typos in database error keys] ([b8621308](https://github.com/MRX-Systems/MRX-Core/commit/b8621308))
24
+
25
+ ### ๐Ÿ“ฆ Build
26
+
27
+ - **๐Ÿ“ฆ:** [Update peer dependencies for elysia and ioredis] Updated the peer dependencies for `elysia` to version `^1.4.7` and `ioredis` to version `^5.8.0` in package.json to ensure compatibility with the latest features and improvements. ([b2aa92d0](https://github.com/MRX-Systems/MRX-Core/commit/b2aa92d0))
28
+ - **๐Ÿ“ฆ:** [Update dependencies in package.json for improved stability] ([bbc02f9d](https://github.com/MRX-Systems/MRX-Core/commit/bbc02f9d))
29
+ - **๐Ÿ“ฆ:** [Add new entrypoits] ([a99dcc77](https://github.com/MRX-Systems/MRX-Core/commit/a99dcc77))
30
+ - **๐Ÿ“ฆ:** [Update dependencies in package.json] ([683a1a68](https://github.com/MRX-Systems/MRX-Core/commit/683a1a68))
31
+ - **๐Ÿ“ฆ:** [Update mssql dependency version] ([a6084d4a](https://github.com/MRX-Systems/MRX-Core/commit/a6084d4a))
32
+
33
+ ### ๐Ÿฆ‰ Chore
34
+
35
+ - **๐Ÿฆ‰:** V2.10.1-1-and-263-20250924 ([20aaf4f3](https://github.com/MRX-Systems/MRX-Core/commit/20aaf4f3))
36
+ - **๐Ÿฆ‰:** V2.11.0-1-and-267-20250925 ([f3ab1a0b](https://github.com/MRX-Systems/MRX-Core/commit/f3ab1a0b))
37
+
38
+ ### ๐Ÿงช Tests
39
+
40
+ - **๐Ÿงช:** [Enhance JWT expiration tests with additional scenarios] ## Tests - Added new test cases for various expiration scenarios including: - Date expiration for 30 minutes and 1 day. - Human-readable time expressions for 15 minutes, 2 hours, and 30 minutes. - Additional checks for past expiration handling. - Improved tolerance checks for expiration validation. ([eefe5aca](https://github.com/MRX-Systems/MRX-Core/commit/eefe5aca))
41
+ - **๐Ÿงช:** [Update unreachable expectation in signJWT test case] ([82a6c71d](https://github.com/MRX-Systems/MRX-Core/commit/82a6c71d))
42
+ - **๐Ÿงช:** [Refactor expiration checks in signJWT test case] ([fe75f283](https://github.com/MRX-Systems/MRX-Core/commit/fe75f283))
43
+ - **๐Ÿงช:** [Update error response structure to use 'content' instead of 'cause'] ([f1b36d38](https://github.com/MRX-Systems/MRX-Core/commit/f1b36d38))
44
+ - **๐Ÿงช:** [Update error handling for static database not found] ([c0514d1c](https://github.com/MRX-Systems/MRX-Core/commit/c0514d1c))
45
+ - **๐Ÿงช:** [Update error messages to include 'mrx-core' prefix] ## Tests - Updated error messages in the `parseHumanTimeToSeconds` tests to include the 'mrx-core' prefix. ([2c6a0bab](https://github.com/MRX-Systems/MRX-Core/commit/2c6a0bab))
46
+ - **๐Ÿงช:** [Update error message to include 'mrx-core' prefix] ## Tests - Updated the error message for rate limit exceeded response. ([55f1ee7e](https://github.com/MRX-Systems/MRX-Core/commit/55f1ee7e))
47
+ - **๐Ÿงช:** [Integrate success keys for microservice responses] ([966a9097](https://github.com/MRX-Systems/MRX-Core/commit/966a9097))
48
+ - **๐Ÿงช:** [Add test for onError handling of PARSE code] ([9f671fb2](https://github.com/MRX-Systems/MRX-Core/commit/9f671fb2))
49
+ - **๐Ÿงช:** [Refactor HTTP status code references in tests] ([3d6fef78](https://github.com/MRX-Systems/MRX-Core/commit/3d6fef78))
50
+
51
+ ### ๐Ÿค– CI
52
+
53
+ - **๐Ÿค–:** [Refactor CI/CD workflows and actions] ([404d76da](https://github.com/MRX-Systems/MRX-Core/commit/404d76da))
54
+ - **๐Ÿค–:** [Update CI configuration for MSSQL secrets management] ([6987886a](https://github.com/MRX-Systems/MRX-Core/commit/6987886a))
55
+ - **๐Ÿค–:** [Add Bun version input to CI workflows] ([a0ecbb82](https://github.com/MRX-Systems/MRX-Core/commit/a0ecbb82))
56
+
57
+ ### โค๏ธ Contributors
58
+
59
+ - Ruby <necrelox@proton.me>
60
+ - Github-actions <maxime.meriaux@mrxsys.com>
61
+
62
+ ## v2.11.0-1-and-267-20250925
63
+
64
+ [compare changes](https://github.com/MRX-Systems/MRX-Core/compare/v2.10.1-1-and-263-20250924...v2.11.0-1-and-267-20250925)
65
+
66
+ ### ๐Ÿš€ Enhancements
67
+
68
+ - **๐Ÿš€:** [Add microservice success keys for responses] ## Features - Introduced `MICROSERVICE_SUCCESS_KEYS` for consistent success messages. ([1e8020c6](https://github.com/MRX-Systems/MRX-Core/commit/1e8020c6))
69
+ - **๐Ÿš€:** [Add CRUD success keys enumeration] ([98c53251](https://github.com/MRX-Systems/MRX-Core/commit/98c53251))
70
+ - **๐Ÿš€:** [Integrate CRUD success keys into response messages] ([a0d20b27](https://github.com/MRX-Systems/MRX-Core/commit/a0d20b27))
71
+ - **๐Ÿš€:** [Add new entrypoints] ([eae4a1c6](https://github.com/MRX-Systems/MRX-Core/commit/eae4a1c6))
72
+
73
+ ### ๐Ÿ”ง Fixes
74
+
75
+ - **๐Ÿ”ง:** [Update error response structure to use 'content' instead of 'cause'] ## Bug Fixes - Changed the error response property from 'cause' to 'content' for consistency. ([2fd8fab3](https://github.com/MRX-Systems/MRX-Core/commit/2fd8fab3))
76
+ - **๐Ÿ”ง:** [Add missing error handling for 'PARSE' case] ## Bug Fixes - Added error handling for the 'PARSE' case in the error plugin. ([395f2265](https://github.com/MRX-Systems/MRX-Core/commit/395f2265))
77
+ - **๐Ÿ”ง:** [Update error keys to include 'mrx-core' prefix] ([0dd9ba3d](https://github.com/MRX-Systems/MRX-Core/commit/0dd9ba3d))
78
+ - **๐Ÿ”ง:** [Refactor error handling to use ERROR_KEYS constants] ## Bug Fixes - Updated error messages to utilize constants from ERROR_KEYS. ([e1a2e9d2](https://github.com/MRX-Systems/MRX-Core/commit/e1a2e9d2))
79
+ - **๐Ÿ”ง:** [WTF] ([9e33e9dc](https://github.com/MRX-Systems/MRX-Core/commit/9e33e9dc))
80
+
81
+ ### ๐Ÿ“ฆ Build
82
+
83
+ - **๐Ÿ“ฆ:** [Add new entrypoits] ([8815abfb](https://github.com/MRX-Systems/MRX-Core/commit/8815abfb))
84
+
85
+ ### ๐Ÿงช Tests
86
+
87
+ - **๐Ÿงช:** [Update error response structure to use 'content' instead of 'cause'] ([7071a151](https://github.com/MRX-Systems/MRX-Core/commit/7071a151))
88
+ - **๐Ÿงช:** [Update error handling for static database not found] ([f3f89593](https://github.com/MRX-Systems/MRX-Core/commit/f3f89593))
89
+ - **๐Ÿงช:** [Update error messages to include 'mrx-core' prefix] ## Tests - Updated error messages in the `parseHumanTimeToSeconds` tests to include the 'mrx-core' prefix. ([6898c33a](https://github.com/MRX-Systems/MRX-Core/commit/6898c33a))
90
+ - **๐Ÿงช:** [Update error message to include 'mrx-core' prefix] ## Tests - Updated the error message for rate limit exceeded response. ([8e2e2f79](https://github.com/MRX-Systems/MRX-Core/commit/8e2e2f79))
91
+ - **๐Ÿงช:** [Integrate success keys for microservice responses] ([ab39a2d5](https://github.com/MRX-Systems/MRX-Core/commit/ab39a2d5))
92
+
93
+ ### โค๏ธ Contributors
94
+
95
+ - Ruby <necrelox@proton.me>
96
+
97
+ ## v2.10.1-1-and-263-20250924
98
+
99
+ [compare changes](https://github.com/MRX-Systems/MRX-Core/compare/v2.10.0-and-262-20250924...v2.10.1-1-and-263-20250924)
100
+
101
+ ### ๐Ÿ”ง Fixes
102
+
103
+ - **๐Ÿ”ง:** [Correct expiration calculation in signJWT function] ## Bug Fixes - Fixed the expiration time calculation in the `signJWT` function to ensure it correctly adds the parsed human-readable time to the current timestamp. ([3493f499](https://github.com/MRX-Systems/MRX-Core/commit/3493f499))
104
+
105
+ ### ๐Ÿ“ฆ Build
106
+
107
+ - **๐Ÿ“ฆ:** [Update peer dependencies for elysia and ioredis] Updated the peer dependencies for `elysia` to version `^1.4.7` and `ioredis` to version `^5.8.0` in package.json to ensure compatibility with the latest features and improvements. ([b2aa92d0](https://github.com/MRX-Systems/MRX-Core/commit/b2aa92d0))
108
+
109
+ ### ๐Ÿฆ‰ Chore
110
+
111
+ - **๐Ÿฆ‰:** V2.10.0 ([b99a11ce](https://github.com/MRX-Systems/MRX-Core/commit/b99a11ce))
112
+
113
+ ### ๐Ÿงช Tests
114
+
115
+ - **๐Ÿงช:** [Enhance JWT expiration tests with additional scenarios] ## Tests - Added new test cases for various expiration scenarios including: - Date expiration for 30 minutes and 1 day. - Human-readable time expressions for 15 minutes, 2 hours, and 30 minutes. - Additional checks for past expiration handling. - Improved tolerance checks for expiration validation. ([eefe5aca](https://github.com/MRX-Systems/MRX-Core/commit/eefe5aca))
116
+
117
+ ### โค๏ธ Contributors
118
+
119
+ - Ruby <necrelox@proton.me>
120
+ - Github-actions <maxime.meriaux@mrxsys.com>
121
+
122
+ ## v2.10.0
123
+
124
+ [compare changes](https://github.com/MRX-Systems/MRX-Core/compare/v2.10.0-and-262-20250924...v2.10.0)
125
+
126
+ ## v2.10.0-and-262-20250924
127
+
128
+ [compare changes](https://github.com/MRX-Systems/MRX-Core/compare/v2.9.0-1-and-259-20250918...v2.10.0-and-262-20250924)
129
+
130
+ ### ๐Ÿš€ Enhancements
131
+
132
+ - **๐Ÿš€:** [Refactor CRUD operations to use getDbInjection utility] ([13eac707](https://github.com/MRX-Systems/MRX-Core/commit/13eac707))
133
+
134
+ ### ๐Ÿ“ฆ Build
135
+
136
+ - **๐Ÿ“ฆ:** [Update elysia dependency version in package.json] ([54db5ba5](https://github.com/MRX-Systems/MRX-Core/commit/54db5ba5))
137
+
138
+ ### ๐ŸŒŠ Types
139
+
140
+ - **๐ŸŒŠ:** [Enhance RenameKey type definition for clarity] ([41c26e24](https://github.com/MRX-Systems/MRX-Core/commit/41c26e24))
141
+ - **๐ŸŒŠ:** [Add AddPrefixToAllKeys type definition] ([d2c0544d](https://github.com/MRX-Systems/MRX-Core/commit/d2c0544d))
142
+
143
+ ### ๐Ÿฆ‰ Chore
144
+
145
+ - **๐Ÿฆ‰:** V2.9.0 ([2a7532dc](https://github.com/MRX-Systems/MRX-Core/commit/2a7532dc))
146
+
147
+ ### โค๏ธ Contributors
148
+
149
+ - Ruby <necrelox@proton.me>
150
+ - Github-actions <maxime.meriaux@mrxsys.com>
151
+
152
+ ## v2.9.0
153
+
154
+ [compare changes](https://github.com/MRX-Systems/MRX-Core/compare/v2.9.0-1-and-259-20250918...v2.9.0)
155
+
156
+ ### ๐Ÿš€ Enhancements
157
+
158
+ - **๐Ÿš€:** [Refactor CRUD operations to use getDbInjection utility] ([13eac707](https://github.com/MRX-Systems/MRX-Core/commit/13eac707))
159
+
160
+ ### ๐Ÿ“ฆ Build
161
+
162
+ - **๐Ÿ“ฆ:** [Update elysia dependency version in package.json] ([54db5ba5](https://github.com/MRX-Systems/MRX-Core/commit/54db5ba5))
163
+
164
+ ### โค๏ธ Contributors
165
+
166
+ - Ruby <necrelox@proton.me>
167
+
168
+ ## v2.9.0-1-and-259-20250918
169
+
170
+ [compare changes](https://github.com/MRX-Systems/MRX-Core/compare/v2.8.0...v2.9.0-1-and-259-20250918)
171
+
172
+ ### ๐Ÿš€ Enhancements
173
+
174
+ - **๐Ÿš€:** [Add new CrudSchema] ([5820a1d0](https://github.com/MRX-Systems/MRX-Core/commit/5820a1d0))
175
+ - **๐Ÿš€:** [Add flatten utility for nested union types] ([f856ebb2](https://github.com/MRX-Systems/MRX-Core/commit/f856ebb2))
176
+ - **๐Ÿš€:** [Add CRUD operations for count, delete, find, insert, and update] ([71a03b21](https://github.com/MRX-Systems/MRX-Core/commit/71a03b21))
177
+ - **๐Ÿš€:** [Add crud plugin] ([913bcdba](https://github.com/MRX-Systems/MRX-Core/commit/913bcdba))
178
+ - **๐Ÿš€:** [Add CRUD module exports and type definitions] ([abd8d243](https://github.com/MRX-Systems/MRX-Core/commit/abd8d243))
179
+ - **๐Ÿš€:** [Add db-resolver module export] ([2bbcfead](https://github.com/MRX-Systems/MRX-Core/commit/2bbcfead))
180
+
181
+ ### โšก Performance
182
+
183
+ - **โšก:** [Replace TypeGuard with KindGuard in adaptive where clause schema] ([039baae5](https://github.com/MRX-Systems/MRX-Core/commit/039baae5))
184
+
185
+ ### ๐Ÿ”ง Fixes
186
+
187
+ - **๐Ÿ”ง:** [Fix entrypoint and other] ([ef213c5f](https://github.com/MRX-Systems/MRX-Core/commit/ef213c5f))
188
+ - **๐Ÿ”ง:** [Fix pr] ([1f951675](https://github.com/MRX-Systems/MRX-Core/commit/1f951675))
189
+ - **๐Ÿ”ง:** [Fix pr 2] ([8c4509ff](https://github.com/MRX-Systems/MRX-Core/commit/8c4509ff))
190
+ - **๐Ÿ”ง:** [Update test/unit/modules/jwt/jwt.spec.ts] ([e88996fc](https://github.com/MRX-Systems/MRX-Core/commit/e88996fc))
191
+ - **๐Ÿ”ง:** [Update source/modules/elysia/crud-schema/utils/create-response-200-schema.ts] ([524f94cb](https://github.com/MRX-Systems/MRX-Core/commit/524f94cb))
192
+ - **๐Ÿ”ง:** [fix handling of selectedFields in query builder] ([1e6aea40](https://github.com/MRX-Systems/MRX-Core/commit/1e6aea40))
193
+ - **๐Ÿ”ง:** [Fix update & delete method to exec query with option throwIfNoResult] ([569fc41e](https://github.com/MRX-Systems/MRX-Core/commit/569fc41e))
194
+ - **๐Ÿ”ง:** [PR Correction] ([0ea07dae](https://github.com/MRX-Systems/MRX-Core/commit/0ea07dae))
195
+ - **๐Ÿ”ง:** [Update path for find operation to '/find'] ## Bug Fixes - Corrected the default path for the find operation from '/search' to '/find'. ([45c6085e](https://github.com/MRX-Systems/MRX-Core/commit/45c6085e))
196
+ - **๐Ÿ”ง:** [Change deprecated response parameter to responseValue in afterHandle] ([b6bb9580](https://github.com/MRX-Systems/MRX-Core/commit/b6bb9580))
197
+ - **๐Ÿ”ง:** [Update db-resolver, add prefix in cause] ([cd1351a8](https://github.com/MRX-Systems/MRX-Core/commit/cd1351a8))
198
+
199
+ ### ๐Ÿงน Refactors
200
+
201
+ - **๐Ÿงน:** [error module rename files to kebab-case and refacto BaseError] ([51334872](https://github.com/MRX-Systems/MRX-Core/commit/51334872))
202
+ - **๐Ÿงน:** [error module rename files to kebab-case and refacto BaseError] ([84cb8951](https://github.com/MRX-Systems/MRX-Core/commit/84cb8951))
203
+ - **๐Ÿงน:** [database module rename files to kebab-case and refacto BaseError] ([7ed791ac](https://github.com/MRX-Systems/MRX-Core/commit/7ed791ac))
204
+ - **๐Ÿงน:** [repository module rename files to kebab-case and refacto BaseError] ([f8ffde81](https://github.com/MRX-Systems/MRX-Core/commit/f8ffde81))
205
+ - **๐Ÿงน:** [totp module rename files to kebab-case and refacto BaseError] ([64656932](https://github.com/MRX-Systems/MRX-Core/commit/64656932))
206
+ - **๐Ÿงน:** [typed-event-emitter module rename files to kebab-case and refacto BaseError] ([767b024f](https://github.com/MRX-Systems/MRX-Core/commit/767b024f))
207
+ - **๐Ÿงน:** [singleton-manager module rename files to kebab-case and refacto BaseError] ([0f44c222](https://github.com/MRX-Systems/MRX-Core/commit/0f44c222))
208
+ - **๐Ÿงน:** [mailer module rename files to kebab-case and refacto BaseError] ([9191f7a4](https://github.com/MRX-Systems/MRX-Core/commit/9191f7a4))
209
+ - **๐Ÿงน:** [logger module rename files to kebab-case and refacto BaseError] ([0e88299e](https://github.com/MRX-Systems/MRX-Core/commit/0e88299e))
210
+ - **๐Ÿงน:** [kv-store module rename files to kebab-case and refacto BaseError] ([5240ebe8](https://github.com/MRX-Systems/MRX-Core/commit/5240ebe8))
211
+ - **๐Ÿงน:** [jwt module rename files to kebab-case and refacto BaseError] ([59d38869](https://github.com/MRX-Systems/MRX-Core/commit/59d38869))
212
+ - **๐Ÿงน:** [ratelimit module rename files to kebab-case and refacto BaseError] ([18383311](https://github.com/MRX-Systems/MRX-Core/commit/18383311))
213
+ - **๐Ÿงน:** [db-resolver module rename files to kebab-case and refacto BaseError] ([493dd447](https://github.com/MRX-Systems/MRX-Core/commit/493dd447))
214
+ - **๐Ÿงน:** [crud schema module rename files to kebab-case and refacto BaseError] ([1ee9af34](https://github.com/MRX-Systems/MRX-Core/commit/1ee9af34))
215
+ - **๐Ÿงน:** [crud module rename files to kebab-case and refacto BaseError] ([7282132c](https://github.com/MRX-Systems/MRX-Core/commit/7282132c))
216
+ - **๐Ÿงน:** [cache module rename files to kebab-case and refacto BaseError] ([2a229985](https://github.com/MRX-Systems/MRX-Core/commit/2a229985))
217
+ - **๐Ÿงน:** [refactor imports and clean up code structure] ([e0ca7178](https://github.com/MRX-Systems/MRX-Core/commit/e0ca7178))
218
+ - **๐Ÿงน:** [Remove old crud-schema module] ([76e1975b](https://github.com/MRX-Systems/MRX-Core/commit/76e1975b))
219
+ - **๐Ÿงน:** [Remove old crud] ([72423e48](https://github.com/MRX-Systems/MRX-Core/commit/72423e48))
220
+ - **๐Ÿงน:** [rename crud-models-type to crud-schema-models-type] ([b3269ea7](https://github.com/MRX-Systems/MRX-Core/commit/b3269ea7))
221
+ - **๐Ÿงน:** [Rename global utils to shared for types enums and utils] ([42b57652](https://github.com/MRX-Systems/MRX-Core/commit/42b57652))
222
+ - **๐Ÿงน:** [Refactor isDateFromElysiaTypeBox for clarity and consistency] ## Refactoring - Updated the import statements for clarity. - Replaced direct property access with KindGuard methods for better readability and maintainability. ([1461fb40](https://github.com/MRX-Systems/MRX-Core/commit/1461fb40))
223
+ - **๐Ÿงน:** [Refactor createPropertiesSchema for improved clarity] ## Refactoring - Updated the type definition for `clauseSchema` to use `TFlatten` for better type handling. - Replaced direct usage of `t.Union` with `flatten(t.Union(...))` to enhance readability and maintainability. ([6664fbc3](https://github.com/MRX-Systems/MRX-Core/commit/6664fbc3))
224
+ - **๐Ÿงน:** [Refactor TFlatten] ([2816c18c](https://github.com/MRX-Systems/MRX-Core/commit/2816c18c))
225
+ - **๐Ÿงน:** [Update import paths for shared utilities] ([115298e7](https://github.com/MRX-Systems/MRX-Core/commit/115298e7))
226
+ - **๐Ÿงน:** [Refactor response schema handling for clarity] ([995ff541](https://github.com/MRX-Systems/MRX-Core/commit/995ff541))
227
+ - **๐Ÿงน:** [Refactor type exports in index files] - Updated type exports in `source/shared/types/index.ts` to include `TFlatten`. - Corrected export statement in `source/shared/utils/index.ts` for `flatten`. ([a5495345](https://github.com/MRX-Systems/MRX-Core/commit/a5495345))
228
+ - **๐Ÿงน:** [Update CRUD and crud-schema module imports] ([7a3b4226](https://github.com/MRX-Systems/MRX-Core/commit/7a3b4226))
229
+ - **๐Ÿงน:** [Uncomment params in CRUD operations] ([94251627](https://github.com/MRX-Systems/MRX-Core/commit/94251627))
230
+ - **๐Ÿงน:** [Improve SingletonManager registration logic] ([1d2fb5f8](https://github.com/MRX-Systems/MRX-Core/commit/1d2fb5f8))
231
+ - **๐Ÿงน:** [use new prototype of SingletonManager.register] ([1b7055cb](https://github.com/MRX-Systems/MRX-Core/commit/1b7055cb))
232
+ - **๐Ÿงน:** [Update error keys for SingletonManager] Refactored error keys in SingletonManager to use more accurate terminology. - Changed CLASS_CONSTRUCTOR_ALREADY_REGISTERED to CLASS_INSTANCE_ALREADY_REGISTERED - Changed CLASS_CONSTRUCTOR_NOT_REGISTERED to CLASS_INSTANCE_NOT_REGISTERED Updated corresponding tests to reflect these changes. ([6b4368eb](https://github.com/MRX-Systems/MRX-Core/commit/6b4368eb))
233
+ - **๐Ÿงน:** [Simplify dbResolver implementation and remove unused code] ## Refactoring - Removed unused imports and types related to dynamic database options. - Simplified the `dbResolver` function by eliminating unnecessary complexity. - Streamlined the error handling for static database resolution. ## Description This commit refactors the `dbResolver` implementation by removing unused code and simplifying the logic. The changes enhance readability and maintainability while ensuring that the core functionality remains intact. ([2ce26419](https://github.com/MRX-Systems/MRX-Core/commit/2ce26419))
234
+ - **๐Ÿงน:** [Refactor CRUD operations to use new dbResolver] ([2070b4d1](https://github.com/MRX-Systems/MRX-Core/commit/2070b4d1))
235
+
236
+ ### ๐Ÿ“– Documentation
237
+
238
+ - **๐Ÿ“–:** [Update tsdoc singleton-manager.register] ([ec420015](https://github.com/MRX-Systems/MRX-Core/commit/ec420015))
239
+ - **๐Ÿ“–:** [Update tsdoc singleton-manager.unregister] ([e97233b4](https://github.com/MRX-Systems/MRX-Core/commit/e97233b4))
240
+
241
+ ### ๐Ÿ“ฆ Build
242
+
243
+ - **๐Ÿ“ฆ:** [update error module import path] Changed the import path for error types from 'types/index.ts' to 'utils/index.ts' to better reflect the structure and purpose of the files. ([d3adc500](https://github.com/MRX-Systems/MRX-Core/commit/d3adc500))
244
+ - **๐Ÿ“ฆ:** [update exports path for error utilities] Updated the exports path for error utilities in package.json to point to the correct utils directory. This change ensures that the application correctly references the utility functions for error handling. ([d38ec275](https://github.com/MRX-Systems/MRX-Core/commit/d38ec275))
245
+ - **๐Ÿ“ฆ:** [Update test timeout values in package.json] ([84128961](https://github.com/MRX-Systems/MRX-Core/commit/84128961))
246
+ - **๐Ÿ“ฆ:** [Update dependencies in package.json] ([d782c873](https://github.com/MRX-Systems/MRX-Core/commit/d782c873))
247
+ - **๐Ÿ“ฆ:** [Update package dependencies and exports] ([3cadc25a](https://github.com/MRX-Systems/MRX-Core/commit/3cadc25a))
248
+ - **๐Ÿ“ฆ:** [Update elysia dependency to version 1.4.5] ([18320d6d](https://github.com/MRX-Systems/MRX-Core/commit/18320d6d))
249
+ - **๐Ÿ“ฆ:** [Update typescript-eslint dependency to version 8.44.0] ([92bcd88f](https://github.com/MRX-Systems/MRX-Core/commit/92bcd88f))
250
+ - **๐Ÿ“ฆ:** [Remove old entrypoint] ([56bb697c](https://github.com/MRX-Systems/MRX-Core/commit/56bb697c))
251
+
252
+ ### ๐ŸŒŠ Types
253
+
254
+ - **๐ŸŒŠ:** [Improve return type with conditionnal header] ([1f304cec](https://github.com/MRX-Systems/MRX-Core/commit/1f304cec))
255
+ - **๐ŸŒŠ:** [Add TFlatten type for flattening nested union types] ([b3771d09](https://github.com/MRX-Systems/MRX-Core/commit/b3771d09))
256
+ - **๐ŸŒŠ:** [Refactor PropertiesSchema] ([39635ee5](https://github.com/MRX-Systems/MRX-Core/commit/39635ee5))
257
+ - **๐ŸŒŠ:** [Add CRUD operation interfaces for count, delete, find, insert, and update] ([0ea2c52b](https://github.com/MRX-Systems/MRX-Core/commit/0ea2c52b))
258
+ - **๐ŸŒŠ:** [Update LocalHook to Elysia 1.4.5 types] ([5fe24ecb](https://github.com/MRX-Systems/MRX-Core/commit/5fe24ecb))
259
+
260
+ ### ๐Ÿฆ‰ Chore
261
+
262
+ - **๐Ÿฆ‰:** [Update Dependabot schedule to weekly] ([3bd835bb](https://github.com/MRX-Systems/MRX-Core/commit/3bd835bb))
263
+ - **๐Ÿฆ‰:** [For the moment remove old db-resolver] ([19aaa85b](https://github.com/MRX-Systems/MRX-Core/commit/19aaa85b))
264
+
265
+ ### ๐Ÿงช Tests
266
+
267
+ - **๐Ÿงช:** [error module rename files to kebab-case and refacto BaseError] ([76c8c3e7](https://github.com/MRX-Systems/MRX-Core/commit/76c8c3e7))
268
+ - **๐Ÿงช:** [add test for CrudSchema and its utilities] ([4f61f4a2](https://github.com/MRX-Systems/MRX-Core/commit/4f61f4a2))
269
+ - **๐Ÿงช:** [Refactor tests for createAdaptiveWhereClauseSchema] ([2c1200f7](https://github.com/MRX-Systems/MRX-Core/commit/2c1200f7))
270
+ - **๐Ÿงช:** [Refactor tests for createCountResponse200Schema] Updated tests for createCountResponse200Schema to improve clarity and accuracy. - Removed unnecessary checks for 'type' and 'kind'. - Utilized KindGuard for type validation of schema properties. ([129dbe14](https://github.com/MRX-Systems/MRX-Core/commit/129dbe14))
271
+ - **๐Ÿงช:** [Refactor createCountSchema tests for clarity and consistency] - Updated test descriptions for better clarity. - Replaced direct property checks with KindGuard assertions for type validation. - Removed unnecessary checks related to Kind and OptionalKind. ([9f5e67d2](https://github.com/MRX-Systems/MRX-Core/commit/9f5e67d2))
272
+ - **๐Ÿงช:** [Refactor createDeleteSchema tests for clarity and consistency] Refactored tests for createDeleteSchema to improve clarity and consistency. - Removed unnecessary checks for 'type' and 'kind' properties. - Utilized KindGuard for type verification in tests. - Enhanced test descriptions for better understanding. ([f4bb606b](https://github.com/MRX-Systems/MRX-Core/commit/f4bb606b))
273
+ - **๐Ÿงช:** [Refactor createFiltersSchema tests for clarity and consistency] ([cb8112ea](https://github.com/MRX-Systems/MRX-Core/commit/cb8112ea))
274
+ - **๐Ÿงช:** [Refactor createFindSchema tests for clarity and consistency] Refactored the tests for createFindSchema to improve clarity and consistency. - Replaced usage of `Kind` and `OptionalKind` with `KindGuard` for better type checking. - Simplified test descriptions to focus on the core functionality being tested. - Ensured all optional properties are validated using `KindGuard`. ([3c35bdb9](https://github.com/MRX-Systems/MRX-Core/commit/3c35bdb9))
275
+ - **๐Ÿงช:** [Refactor createIdParamSchema tests for clarity and consistency] ([4bcec05c](https://github.com/MRX-Systems/MRX-Core/commit/4bcec05c))
276
+ - **๐Ÿงช:** [Refactor createInsertSchema tests for clarity and consistency] Refactored the tests for createInsertSchema to improve clarity and consistency. - Removed redundant checks for type and kind. - Utilized KindGuard for type validation. - Simplified test descriptions for better readability. ([594e4688](https://github.com/MRX-Systems/MRX-Core/commit/594e4688))
277
+ - **๐Ÿงช:** [Refactor createOrderSchema tests for clarity and consistency] ([60dd45f0](https://github.com/MRX-Systems/MRX-Core/commit/60dd45f0))
278
+ - **๐Ÿงช:** [Refactor createPropertiesSchema tests for clarity and consistency] Refactored the tests for createPropertiesSchema to improve clarity and consistency. - Updated test descriptions for better understanding. - Replaced direct property checks with KindGuard assertions for type validation. - Removed redundant checks related to 'kind' to streamline the tests. ([297e4fec](https://github.com/MRX-Systems/MRX-Core/commit/297e4fec))
279
+ - **๐Ÿงช:** [Refactor createQSchema tests for improved clarity and consistency] ([2fd71132](https://github.com/MRX-Systems/MRX-Core/commit/2fd71132))
280
+ - **๐Ÿงช:** [Refactor createResponse200Schema tests for improved validation] - Updated tests to utilize KindGuard for type validation. - Removed direct type checks and replaced with guard functions for better clarity. - Enhanced readability and consistency across schema property validations. ([271c022c](https://github.com/MRX-Systems/MRX-Core/commit/271c022c))
281
+ - **๐Ÿงช:** [Refactor createSelectedFieldsSchema tests for improved validation] Refactored tests for createSelectedFieldsSchema to utilize KindGuard for type validation. This enhances clarity and ensures accurate type checking for union, literal, and array elements in the schema. ([b046d270](https://github.com/MRX-Systems/MRX-Core/commit/b046d270))
282
+ - **๐Ÿงช:** [Refactor createUpdateOneSchema tests for improved validation] Refactored tests for createUpdateOneSchema to enhance validation checks. - Replaced direct property checks with KindGuard assertions for better type validation. - Ensured all schema properties are validated against expected types and structures. ([43d17a61](https://github.com/MRX-Systems/MRX-Core/commit/43d17a61))
283
+ - **๐Ÿงช:** [Refactor createUpdateSchema tests for improved clarity] - Updated test descriptions for better clarity and consistency. - Replaced direct property checks with type guard assertions for validation. - Ensured all schema properties are validated using KindGuard methods. ([08b9bd68](https://github.com/MRX-Systems/MRX-Core/commit/08b9bd68))
284
+ - **๐Ÿงช:** [Add error handling tests for various error types] ([4db818ba](https://github.com/MRX-Systems/MRX-Core/commit/4db818ba))
285
+ - **๐Ÿงช:** [Add tests for flatten utility functionality] ([1c2cead5](https://github.com/MRX-Systems/MRX-Core/commit/1c2cead5))
286
+ - **๐Ÿงช:** [Add test for handling union types in createPropertiesSchema] ([15786d56](https://github.com/MRX-Systems/MRX-Core/commit/15786d56))
287
+ - **๐Ÿงช:** [Refactor tests for createResponse200Schema] ([ba8f4f39](https://github.com/MRX-Systems/MRX-Core/commit/ba8f4f39))
288
+ - **๐Ÿงช:** [Delete timeout to "should connect to the SMTP server successfully"] ([51b56fe8](https://github.com/MRX-Systems/MRX-Core/commit/51b56fe8))
289
+ - **๐Ÿงช:** [add tests for repository methods with selectedFields set to "*"] ([111bc580](https://github.com/MRX-Systems/MRX-Core/commit/111bc580))
290
+ - **๐Ÿงช:** [Update SingletonManager registration to use instances] ([f3a8d91e](https://github.com/MRX-Systems/MRX-Core/commit/f3a8d91e))
291
+ - **๐Ÿงช:** [Refactor db-resolver tests for improved clarity and structure] ([a77ec879](https://github.com/MRX-Systems/MRX-Core/commit/a77ec879))
292
+ - **๐Ÿงช:** [Update injectDynamicDB macro cleanup process] ## Refactoring - Changed `beforeEach` in `injectDynamicDB` to be asynchronous. - Ensured proper disconnection of the database before each test. ([2b4d3491](https://github.com/MRX-Systems/MRX-Core/commit/2b4d3491))
293
+ - **๐Ÿงช:** [Improve dynamic database cleanup process] ([c18a0902](https://github.com/MRX-Systems/MRX-Core/commit/c18a0902))
294
+
295
+ ### ๐ŸŽจ Styles
296
+
297
+ - **๐ŸŽจ:** Auto-fix lint issues ([d85bca25](https://github.com/MRX-Systems/MRX-Core/commit/d85bca25))
298
+
299
+ ### ๐Ÿค– CI
300
+
301
+ - **๐Ÿค–:** [update CI workflows and add Dependabot configuration] ## CI Changes - Removed specific Bun version from setup in integration and unit test workflows. - Added a new Dependabot configuration file for automatic updates. ([60b1ebf6](https://github.com/MRX-Systems/MRX-Core/commit/60b1ebf6))
302
+ - **๐Ÿค–:** [Add bun-version specification to integration and unit test jobs] - Added `bun-version: 1.2.21` to the setup steps in both job-integration-test.yml and job-unit-test.yml to ensure consistent Bun version usage during CI runs. ([f4b7826d](https://github.com/MRX-Systems/MRX-Core/commit/f4b7826d))
303
+ - **๐Ÿค–:** [Specify bun version to 1.2.20 for the moment] ([63cf4c1b](https://github.com/MRX-Systems/MRX-Core/commit/63cf4c1b))
304
+
305
+ ### โค๏ธ Contributors
306
+
307
+ - Ruby <necrelox@proton.me>
308
+ - Necrelox ([@Necrelox](https://github.com/Necrelox))
309
+ - Komiroko <komiriko@pm.me>
310
+
311
+ ## v2.8.0
312
+
313
+ [compare changes](https://github.com/MRX-Systems/MRX-Core/compare/v2.7.0...v2.8.0)
314
+
315
+ ### ๐Ÿš€ Enhancements
316
+
317
+ - **๐Ÿš€:** [Add tags support to CRUD options] ([f38ec111](https://github.com/MRX-Systems/MRX-Core/commit/f38ec111))
318
+ - **๐Ÿš€:** [Add prefix option to CRUD options] ([6305bcf3](https://github.com/MRX-Systems/MRX-Core/commit/6305bcf3))
319
+ - **๐Ÿš€:** [Add JWT error keys enumeration] ([5fce607d](https://github.com/MRX-Systems/MRX-Core/commit/5fce607d))
320
+ - **๐Ÿš€:** [Add parseHumanTimeToSeconds utility function] ([829511bc](https://github.com/MRX-Systems/MRX-Core/commit/829511bc))
321
+ - **๐Ÿš€:** [Add JWT signing and verification functions] ([82fe48c3](https://github.com/MRX-Systems/MRX-Core/commit/82fe48c3))
322
+ - **๐Ÿš€:** [Add error keys for human time parsing] ([d566df3e](https://github.com/MRX-Systems/MRX-Core/commit/d566df3e))
323
+ - **๐Ÿš€:** [Enhance query returning with trigger modifications] ([c5b62b91](https://github.com/MRX-Systems/MRX-Core/commit/c5b62b91))
324
+ - **๐Ÿš€:** [Add KV_STORE_ERROR_KEYS enum for error handling] ## Features - Introduced `KV_STORE_ERROR_KEYS` enum to standardize error messages. ([45fc7119](https://github.com/MRX-Systems/MRX-Core/commit/45fc7119))
325
+ - **๐Ÿš€:** [Add IoRedisStore class for Redis-based key-value store] ([0181be2b](https://github.com/MRX-Systems/MRX-Core/commit/0181be2b))
326
+ - **๐Ÿš€:** [Add MemoryStore class for in-memory key-value storage] ([4342e1f7](https://github.com/MRX-Systems/MRX-Core/commit/4342e1f7))
327
+ - **๐Ÿš€:** [Add RATE_LIMIT_ERROR_KEYS export] ([1b819bea](https://github.com/MRX-Systems/MRX-Core/commit/1b819bea))
328
+ - **๐Ÿš€:** [Add generateCacheKey utility for caching requests] ## Features - Introduced `generateCacheKey` function to create a unique cache key based on request properties. ([b80bd5e2](https://github.com/MRX-Systems/MRX-Core/commit/b80bd5e2))
329
+ - **๐Ÿš€:** [Add caching functionality with cache utility] ([a54cd86f](https://github.com/MRX-Systems/MRX-Core/commit/a54cd86f))
330
+ - **๐Ÿš€:** [Enhance caching mechanism with route tracking and metadata] ## Features - Implemented route tracking to cache responses based on request method and URL. - Enhanced cache storage to include metadata alongside the response. - Updated cache control headers to reflect cache hits and misses. ([1e77647f](https://github.com/MRX-Systems/MRX-Core/commit/1e77647f))
331
+
332
+ ### ๐Ÿ”ง Fixes
333
+
334
+ - **๐Ÿ”ง:** [Improve error handling in Repository class] ([af8b8ef2](https://github.com/MRX-Systems/MRX-Core/commit/af8b8ef2))
335
+ - **๐Ÿ”ง:** [fix add x-cache MISS to the first request] - Added a check to ensure 'x-cache' header is set to 'MISS' if not already defined. - This change enhances the clarity of cache status in responses. ([26eb7929](https://github.com/MRX-Systems/MRX-Core/commit/26eb7929))
336
+ - **๐Ÿ”ง:** [Update cache control headers to use metadata TTL] ([d70ce44a](https://github.com/MRX-Systems/MRX-Core/commit/d70ce44a))
337
+
338
+ ### ๐Ÿงน Refactors
339
+
340
+ - **๐Ÿงน:** [Totp module little clean] ([701c9a3b](https://github.com/MRX-Systems/MRX-Core/commit/701c9a3b))
341
+ - **๐Ÿงน:** [Enhance error handling structure in error plugin] ## Refactoring - Improved the structure of the error handling in the error plugin. - Updated the validation error response to include detailed error information. ([883a17d2](https://github.com/MRX-Systems/MRX-Core/commit/883a17d2))
342
+ - **๐Ÿงน:** [Remove JWT plugin and related files for cleanup] ([4805d0d0](https://github.com/MRX-Systems/MRX-Core/commit/4805d0d0))
343
+ - **๐Ÿงน:** [Rename ResolveDbHeader to dbResolverHeader for consistency] ([239b7898](https://github.com/MRX-Systems/MRX-Core/commit/239b7898))
344
+ - **๐Ÿงน:** [Refactor like operator to use where clause] ## Refactoring - Changed the implementation of the `$like` operator to use `where` instead of `whereLike`. (for non case sensitive) ([a2cf66d2](https://github.com/MRX-Systems/MRX-Core/commit/a2cf66d2))
345
+ - **๐Ÿงน:** [Change 'like' operator to use uppercase syntax] ## Refactoring - Updated the 'like' operator in the query builder to use uppercase 'LIKE'. ([19057d82](https://github.com/MRX-Systems/MRX-Core/commit/19057d82))
346
+ - **๐Ÿงน:** [Remove return await in ioredisStore] ([2019a41c](https://github.com/MRX-Systems/MRX-Core/commit/2019a41c))
347
+ - **๐Ÿงน:** [Remove rate limiting store implementation] ([aec26501](https://github.com/MRX-Systems/MRX-Core/commit/aec26501))
348
+ - **๐Ÿงน:** [Refactor rate limiting to use kvStore] ([1d42fb97](https://github.com/MRX-Systems/MRX-Core/commit/1d42fb97))
349
+
350
+ ### ๐Ÿ“– Documentation
351
+
352
+ - **๐Ÿ“–:** [fix tsdoc CoreError to BaseError] ([8db68847](https://github.com/MRX-Systems/MRX-Core/commit/8db68847))
353
+
354
+ ### ๐Ÿ“ฆ Build
355
+
356
+ - **๐Ÿ“ฆ:** [update dependencies in package.json] ([2c69bbb5](https://github.com/MRX-Systems/MRX-Core/commit/2c69bbb5))
357
+ - **๐Ÿ“ฆ:** [Update nodemailer type definitions to version 7.0.1] ([387ac697](https://github.com/MRX-Systems/MRX-Core/commit/387ac697))
358
+ - **๐Ÿ“ฆ:** [Refactor JWT module paths for better organization] ([9f504873](https://github.com/MRX-Systems/MRX-Core/commit/9f504873))
359
+ - **๐Ÿ“ฆ:** [Update JWT module paths and dependencies] ([71eaca98](https://github.com/MRX-Systems/MRX-Core/commit/71eaca98))
360
+ - **๐Ÿ“ฆ:** [Update package.json for improved dependency management] ([f48a7fa6](https://github.com/MRX-Systems/MRX-Core/commit/f48a7fa6))
361
+ - **๐Ÿ“ฆ:** [Add kvStore module paths to builder] ([3020bf8a](https://github.com/MRX-Systems/MRX-Core/commit/3020bf8a))
362
+ - **๐Ÿ“ฆ:** [Update dependencies and add kvStore module paths] ([056c4b2b](https://github.com/MRX-Systems/MRX-Core/commit/056c4b2b))
363
+ - **๐Ÿ“ฆ:** [Remove kvStore module from build process] ## Build Changes - Removed './source/modules/kvStore/index.ts' from the build configuration. ([502e25a2](https://github.com/MRX-Systems/MRX-Core/commit/502e25a2))
364
+ - **๐Ÿ“ฆ:** [Remove kvStore module from exports] ([b2a02bc6](https://github.com/MRX-Systems/MRX-Core/commit/b2a02bc6))
365
+ - **๐Ÿ“ฆ:** [Add cache module to builder configuration] ## Build - Included cache module paths in the builder configuration. ([63681c8b](https://github.com/MRX-Systems/MRX-Core/commit/63681c8b))
366
+ - **๐Ÿ“ฆ:** [Add cache module exports to package.json] ([ef662af9](https://github.com/MRX-Systems/MRX-Core/commit/ef662af9))
367
+
368
+ ### ๐ŸŒŠ Types
369
+
370
+ - **๐ŸŒŠ:** [Update throwIfNoResult type in QueryOptions interface] Updated the `throwIfNoResult` property in the `QueryOptions` interface to accept an object with optional `message` and `code` properties, enhancing error handling capabilities. ([644ff8be](https://github.com/MRX-Systems/MRX-Core/commit/644ff8be))
371
+ - **๐ŸŒŠ:** [Add KvStore interface for key-value store operations] ([ec2c8dea](https://github.com/MRX-Systems/MRX-Core/commit/ec2c8dea))
372
+ - **๐ŸŒŠ:** [Add CacheOptions type definition and index export] ([7f17d79b](https://github.com/MRX-Systems/MRX-Core/commit/7f17d79b))
373
+ - **๐ŸŒŠ:** [Add CacheItem type definition for caching mechanism] ([a10a15f7](https://github.com/MRX-Systems/MRX-Core/commit/a10a15f7))
374
+
375
+ ### ๐Ÿฆ‰ Chore
376
+
377
+ - **๐Ÿฆ‰:** [Clean up CHANGELOG.md for better readability] ([d66fac36](https://github.com/MRX-Systems/MRX-Core/commit/d66fac36))
378
+
379
+ ### ๐Ÿงช Tests
380
+
381
+ - **๐Ÿงช:** [totp tests little clean] ([238ac25b](https://github.com/MRX-Systems/MRX-Core/commit/238ac25b))
382
+ - **๐Ÿงช:** [Add test to hande custom code and refacto custom message] ([c7737572](https://github.com/MRX-Systems/MRX-Core/commit/c7737572))
383
+ - **๐Ÿงช:** [Update validation error handling tests for new structure] ([42184d86](https://github.com/MRX-Systems/MRX-Core/commit/42184d86))
384
+ - **๐Ÿงช:** [Remove JWT tests for cleanup] ([08ca9a71](https://github.com/MRX-Systems/MRX-Core/commit/08ca9a71))
385
+ - **๐Ÿงช:** [[Add comprehensive tests for parseHumanTimeToSeconds function] ([8d2c37c1](https://github.com/MRX-Systems/MRX-Core/commit/8d2c37c1))
386
+ - **๐Ÿงช:** [Add comprehensive tests for JWT signing and verification] ([6c281486](https://github.com/MRX-Systems/MRX-Core/commit/6c281486))
387
+ - **๐Ÿงช:** [Add tests for parseHumanTimeToSeconds utility function] ([6bf5dbca](https://github.com/MRX-Systems/MRX-Core/commit/6bf5dbca))
388
+ - **๐Ÿงช:** [Rename ResolveDbHeader to dbResolverHeader for consistency] ([8a5a4dd2](https://github.com/MRX-Systems/MRX-Core/commit/8a5a4dd2))
389
+ - **๐Ÿงช:** [Add case insensitive Q operator filter test] ## Tests - Introduced a new test case for the Q operator to ensure it is case insensitive. ([fccfb182](https://github.com/MRX-Systems/MRX-Core/commit/fccfb182))
390
+ - **๐Ÿงช:** [Refactor MSSQL test setup and enhance findByNamePattern] ([e1dcea34](https://github.com/MRX-Systems/MRX-Core/commit/e1dcea34))
391
+ - **๐Ÿงช:** [Add comprehensive tests for MemoryStore functionality] ([25c165ec](https://github.com/MRX-Systems/MRX-Core/commit/25c165ec))
392
+ - **๐Ÿงช:** [Refactor rate limit tests to use MemoryStore] ([1311cd07](https://github.com/MRX-Systems/MRX-Core/commit/1311cd07))
393
+ - **๐Ÿงช:** [Remove MemoryStore test suite] ([e0fe6f39](https://github.com/MRX-Systems/MRX-Core/commit/e0fe6f39))
394
+ - **๐Ÿงช:** [Add tests for generateCacheKey utility function] ## Tests - Implement unit tests for the `generateCacheKey` function. - Cover scenarios for requests with and without bodies. - Validate that identical requests produce the same cache key. - Ensure different bodies generate different cache keys. ([90562c7a](https://github.com/MRX-Systems/MRX-Core/commit/90562c7a))
395
+ - **๐Ÿงช:** [Add comprehensive tests for cache module functionality] ([28d28d3d](https://github.com/MRX-Systems/MRX-Core/commit/28d28d3d))
396
+ - **๐Ÿงช:** [Add test for specific TTL handling in cache logic] - Implemented a test to verify that the cache correctly handles specific TTL values in the `isCached` option. - The test checks that the cache returns a MISS header on the first request and verifies the cache-control header. - It also ensures that after the TTL expires, the cache still returns a MISS header on subsequent requests. ([9ca8a99c](https://github.com/MRX-Systems/MRX-Core/commit/9ca8a99c))
397
+ - **๐Ÿงช:** [fix test name CoreError to BaseError] ([c02afec2](https://github.com/MRX-Systems/MRX-Core/commit/c02afec2))
398
+
399
+ ### ๐ŸŽจ Styles
400
+
401
+ - **๐ŸŽจ:** [fix import order in HOTP tests] Rearranged the import statements in the HOTP test file for consistency and improved readability. ([a66d34d6](https://github.com/MRX-Systems/MRX-Core/commit/a66d34d6))
402
+ - **๐ŸŽจ:** [Remove unnecessary blank line in signJWT function] Removed an extra blank line in the signJWT function for improved code readability and consistency. ([8ea44aef](https://github.com/MRX-Systems/MRX-Core/commit/8ea44aef))
403
+
404
+ ### โค๏ธ Contributors
405
+
406
+ - Ruby <necrelox@proton.me>
407
+
@@ -35,6 +35,10 @@ var count = (database, tableName, {
35
35
  content: data
36
36
  };
37
37
  }, {
38
+ detail: {
39
+ summary: "Count",
40
+ description: `Count ${tableName} records based on query options.`
41
+ },
38
42
  ...getDbInjection(database),
39
43
  body: `${tableName}Count`,
40
44
  response: `${tableName}CountResponse200`,
@@ -63,6 +67,10 @@ var batchDelete = (database, tableName, {
63
67
  content: data
64
68
  };
65
69
  }, {
70
+ detail: {
71
+ summary: "Delete",
72
+ description: `Delete ${tableName} records based on query options.`
73
+ },
66
74
  ...getDbInjection(database),
67
75
  body: `${tableName}Delete`,
68
76
  response: `${tableName}Response200`,
@@ -96,6 +104,10 @@ var deleteOne = (database, tableName, {
96
104
  content: data
97
105
  };
98
106
  }, {
107
+ detail: {
108
+ summary: "Delete One",
109
+ description: `Delete a single ${tableName} record by its primary key.`
110
+ },
99
111
  ...getDbInjection(database),
100
112
  params: `${tableName}IdParam`,
101
113
  response: `${tableName}Response200`,
@@ -122,6 +134,10 @@ var find = (database, tableName, {
122
134
  content: data
123
135
  };
124
136
  }, {
137
+ detail: {
138
+ summary: "Find",
139
+ description: `Find ${tableName} records based on query options.`
140
+ },
125
141
  ...getDbInjection(database),
126
142
  body: `${tableName}Find`,
127
143
  response: `${tableName}Response200`,
@@ -154,6 +170,10 @@ var findOne = (database, tableName, {
154
170
  content: data
155
171
  };
156
172
  }, {
173
+ detail: {
174
+ summary: "Find One",
175
+ description: `Find a single ${tableName} record by its primary key.`
176
+ },
157
177
  ...getDbInjection(database),
158
178
  params: `${tableName}IdParam`,
159
179
  response: `${tableName}Response200`,
@@ -181,6 +201,10 @@ var insert = (database, tableName, {
181
201
  content: data
182
202
  };
183
203
  }, {
204
+ detail: {
205
+ summary: "Insert",
206
+ description: `Insert one or more records into the ${tableName} table.`
207
+ },
184
208
  ...getDbInjection(database),
185
209
  body: `${tableName}Insert`,
186
210
  response: `${tableName}Response200`,
@@ -208,6 +232,10 @@ var update = (database, tableName, {
208
232
  content: data
209
233
  };
210
234
  }, {
235
+ detail: {
236
+ summary: "Update",
237
+ description: `Update one or more ${tableName} records based on query options.`
238
+ },
211
239
  ...getDbInjection(database),
212
240
  body: `${tableName}Update`,
213
241
  response: `${tableName}Response200`,
@@ -242,6 +270,10 @@ var updateOne = (database, tableName, {
242
270
  content: data
243
271
  };
244
272
  }, {
273
+ detail: {
274
+ summary: "Update Single Record",
275
+ description: `Update a single record in the ${tableName} table by its primary key.`
276
+ },
245
277
  ...getDbInjection(database),
246
278
  params: `${tableName}IdParam`,
247
279
  body: `${tableName}UpdateOne`,
@@ -0,0 +1,13 @@
1
+ // @bun
2
+ // source/modules/logger/enums/logger-error-keys.ts
3
+ var LOGGER_ERROR_KEYS = {
4
+ BEFORE_EXIT_CLOSE_ERROR: "mrx-core.logger.error.before_exit_close_error",
5
+ BEFORE_EXIT_FLUSH_ERROR: "mrx-core.logger.error.before_exit_flush_error",
6
+ NO_SINKS_PROVIDED: "mrx-core.logger.error.no_sinks_provided",
7
+ REGISTER_SINK_ERROR: "mrx-core.logger.error.register_sink_error",
8
+ SINK_ALREADY_ADDED: "mrx-core.logger.error.sink_already_added",
9
+ SINK_CLOSE_ERROR: "mrx-core.logger.error.sink_close_error",
10
+ SINK_LOG_ERROR: "mrx-core.logger.error.sink_log_error"
11
+ };
12
+
13
+ export { LOGGER_ERROR_KEYS };
@@ -8,7 +8,7 @@ import {
8
8
  insert,
9
9
  update,
10
10
  updateOne
11
- } from "../../../chunk-dzfefxjq.js";
11
+ } from "../../../chunk-pjv1ekwr.js";
12
12
  import {
13
13
  createCountResponse200Schema,
14
14
  createCountSchema,
@@ -8,7 +8,7 @@ import {
8
8
  insert,
9
9
  update,
10
10
  updateOne
11
- } from "../../../../chunk-dzfefxjq.js";
11
+ } from "../../../../chunk-pjv1ekwr.js";
12
12
  import"../../../../chunk-441xs5k1.js";
13
13
  import"../../../../chunk-fs3wm3p4.js";
14
14
  import"../../../../chunk-z0ct35ft.js";
@@ -0,0 +1,25 @@
1
+ import { type RedisOptions } from 'bun';
2
+ import type { KvStore } from '../../../modules/kv-store/types/kv-store';
3
+ /**
4
+ * Redis-based key-value store implementation using Bun's Redis client.
5
+ *
6
+ * Provides a Redis-backed implementation of the KvStore interface with
7
+ * automatic JSON serialization/deserialization and proper error handling.
8
+ */
9
+ export declare class BunRedisStore implements KvStore {
10
+ /**
11
+ * Redis client instance.
12
+ */
13
+ private readonly _client;
14
+ constructor(url?: string, options?: RedisOptions);
15
+ connect(): Promise<void>;
16
+ close?(): void;
17
+ get<T = unknown>(key: string): Promise<T | null>;
18
+ set<T = unknown>(key: string, value: T, ttlSec?: number): Promise<void>;
19
+ increment(key: string, amount?: number): Promise<number>;
20
+ decrement(key: string, amount?: number): Promise<number>;
21
+ del(key: string): Promise<boolean>;
22
+ expire(key: string, ttlSec: number): Promise<boolean>;
23
+ ttl(key: string): Promise<number>;
24
+ clean(): Promise<number>;
25
+ }
@@ -0,0 +1 @@
1
+ export { BunRedisStore } from './bun-redis-store';