@mrxsys/mrx-core 2.11.0-4-and-276-20251029 → 2.11.0

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 (119) hide show
  1. package/dist/{chunk-0d0zd2yg.js → chunk-037vwvd4.js} +2 -2
  2. package/dist/{chunk-jksb9ers.js → chunk-10w8mg8e.js} +1 -1
  3. package/dist/{chunk-dre2fgj0.js → chunk-2z8amjqt.js} +1 -1
  4. package/dist/{chunk-p14h6jfs.js → chunk-4g0x6g4j.js} +2 -2
  5. package/dist/chunk-4t7sy5qt.js +10 -0
  6. package/dist/chunk-642xajvx.js +59 -0
  7. package/dist/chunk-6hs00zfd.js +13 -0
  8. package/dist/{chunk-afyz8rg5.js → chunk-7j86h1nd.js} +14 -9
  9. package/dist/chunk-8pw0syzf.js +9 -0
  10. package/dist/{chunk-eeb7yskp.js → chunk-awphtyzp.js} +4 -4
  11. package/dist/{chunk-8tffnbpn.js → chunk-ayyrgqyv.js} +1 -1
  12. package/dist/{chunk-12qzn7jw.js → chunk-dmsev7vs.js} +1 -1
  13. package/dist/{chunk-gtn1kn0z.js → chunk-hv6g22kf.js} +4 -4
  14. package/dist/chunk-hwfebx4x.js +11 -0
  15. package/dist/{chunk-e30paw8a.js → chunk-j7dyc5ks.js} +5 -5
  16. package/dist/chunk-jz3wd472.js +23 -0
  17. package/dist/{chunk-fs3wm3p4.js → chunk-r7yr9p57.js} +6 -6
  18. package/dist/{chunk-afd82epa.js → chunk-sbpj7f3p.js} +13 -13
  19. package/dist/{chunk-pjv1ekwr.js → chunk-tmvj28bq.js} +1 -1
  20. package/dist/chunk-y5dtkmnp.js +8 -0
  21. package/dist/chunk-yrt0ffvf.js +9 -0
  22. package/dist/{chunk-441xs5k1.js → chunk-yzgdqb02.js} +6 -6
  23. package/dist/chunk-zn2nm5gg.js +9 -0
  24. package/dist/{chunk-7t524zqh.js → chunk-zv4ta4fb.js} +3 -3
  25. package/dist/errors/{base-error.d.ts → app-error.d.ts} +2 -1
  26. package/dist/errors/http-error.d.ts +2 -2
  27. package/dist/errors/index.d.ts +2 -1
  28. package/dist/errors/index.js +6 -4
  29. package/dist/errors/internal-error.d.ts +4 -0
  30. package/dist/modules/data/data.d.ts +5 -5
  31. package/dist/modules/data/enums/data-error-keys.d.ts +1 -1
  32. package/dist/modules/data/enums/index.js +1 -1
  33. package/dist/modules/data/index.js +3 -3
  34. package/dist/modules/database/enums/database-error-keys.d.ts +26 -26
  35. package/dist/modules/database/enums/index.js +1 -1
  36. package/dist/modules/database/enums/mssql-error-code.d.ts +23 -23
  37. package/dist/modules/database/index.js +5 -5
  38. package/dist/modules/database/mssql.d.ts +9 -9
  39. package/dist/modules/elysia/cache/index.js +3 -3
  40. package/dist/modules/elysia/crud/index.js +13 -13
  41. package/dist/modules/elysia/crud/operations/count.d.ts +20 -4
  42. package/dist/modules/elysia/crud/operations/delete.d.ts +25 -9
  43. package/dist/modules/elysia/crud/operations/deleteOne.d.ts +25 -9
  44. package/dist/modules/elysia/crud/operations/find.d.ts +25 -9
  45. package/dist/modules/elysia/crud/operations/findOne.d.ts +25 -9
  46. package/dist/modules/elysia/crud/operations/index.js +10 -10
  47. package/dist/modules/elysia/crud/operations/insert.d.ts +25 -9
  48. package/dist/modules/elysia/crud/operations/update.d.ts +25 -19
  49. package/dist/modules/elysia/crud/operations/updateOne.d.ts +25 -19
  50. package/dist/modules/elysia/crud/types/response-200-schema.d.ts +2 -2
  51. package/dist/modules/elysia/crud/utils/create-insert-schema.d.ts +3 -8
  52. package/dist/modules/elysia/crud/utils/index.js +4 -4
  53. package/dist/modules/elysia/db-resolver/enums/db-resolver-error-keys.d.ts +1 -1
  54. package/dist/modules/elysia/db-resolver/enums/index.js +1 -1
  55. package/dist/modules/elysia/db-resolver/index.js +9 -9
  56. package/dist/modules/elysia/error/enums/error.keys.d.ts +4 -4
  57. package/dist/modules/elysia/error/enums/index.js +1 -1
  58. package/dist/modules/elysia/error/error.d.ts +47 -1
  59. package/dist/modules/elysia/error/index.d.ts +1 -1
  60. package/dist/modules/elysia/error/index.js +47 -38
  61. package/dist/modules/elysia/microservice/enums/index.js +1 -1
  62. package/dist/modules/elysia/microservice/enums/microservice-success-keys.d.ts +2 -2
  63. package/dist/modules/elysia/microservice/index.js +1 -1
  64. package/dist/modules/elysia/rate-limit/enums/index.js +1 -1
  65. package/dist/modules/elysia/rate-limit/enums/rate-limit-error-keys.d.ts +1 -1
  66. package/dist/modules/elysia/rate-limit/index.js +5 -5
  67. package/dist/modules/jwt/enums/index.js +2 -2
  68. package/dist/modules/jwt/enums/jwt-error-keys.d.ts +3 -3
  69. package/dist/modules/jwt/enums/parse-human-time-to-seconds-error-keys.d.ts +1 -1
  70. package/dist/modules/jwt/index.js +10 -12
  71. package/dist/modules/jwt/utils/index.js +3 -3
  72. package/dist/modules/jwt/utils/parse-human-time-to-seconds.d.ts +1 -1
  73. package/dist/modules/kv-store/bun-redis/index.js +7 -7
  74. package/dist/modules/kv-store/enums/index.js +1 -1
  75. package/dist/modules/kv-store/enums/kv-store-error-keys.d.ts +3 -3
  76. package/dist/modules/kv-store/ioredis/index.js +7 -7
  77. package/dist/modules/kv-store/memory/index.js +3 -3
  78. package/dist/modules/logger/enums/index.js +1 -1
  79. package/dist/modules/logger/enums/logger-error-keys.d.ts +7 -7
  80. package/dist/modules/logger/events/logger-events.d.ts +4 -4
  81. package/dist/modules/logger/index.js +86 -11
  82. package/dist/modules/logger/logger.d.ts +1 -1
  83. package/dist/modules/logger/sinks/console-logger.d.ts +1 -1
  84. package/dist/modules/logger/sinks/file-logger/enums/file-logger-error-keys.d.ts +1 -1
  85. package/dist/modules/logger/sinks/index.js +7 -7
  86. package/dist/modules/logger/worker-logger.d.ts +1 -0
  87. package/dist/modules/mailer/enums/index.js +1 -1
  88. package/dist/modules/mailer/enums/mailer-error-keys.d.ts +3 -3
  89. package/dist/modules/mailer/index.js +6 -6
  90. package/dist/modules/mailer/smtp.d.ts +4 -4
  91. package/dist/modules/repository/index.js +4 -4
  92. package/dist/modules/repository/repository.d.ts +9 -9
  93. package/dist/modules/singleton-manager/enums/index.js +1 -1
  94. package/dist/modules/singleton-manager/enums/singleton-manager-error-keys.d.ts +2 -2
  95. package/dist/modules/singleton-manager/index.js +3 -3
  96. package/dist/modules/singleton-manager/singleton-manager.d.ts +3 -3
  97. package/dist/modules/totp/enums/index.js +1 -1
  98. package/dist/modules/totp/enums/totp-error-keys.d.ts +5 -5
  99. package/dist/modules/totp/index.js +6 -6
  100. package/dist/modules/totp/otp-auth-uri.d.ts +1 -1
  101. package/dist/modules/totp/utils/base32.d.ts +1 -1
  102. package/dist/modules/totp/utils/generate-secret-bytes.d.ts +1 -1
  103. package/dist/modules/totp/utils/index.js +5 -5
  104. package/dist/shared/utils/env.d.ts +1 -1
  105. package/dist/shared/utils/index.js +3 -3
  106. package/package.json +16 -17
  107. package/CHANGELOG.md +0 -407
  108. package/dist/chunk-4v86f7gp.js +0 -59
  109. package/dist/chunk-6w9ja96e.js +0 -9
  110. package/dist/chunk-9cgzhc50.js +0 -15
  111. package/dist/chunk-9d3zvgp6.js +0 -9
  112. package/dist/chunk-9r5anep5.js +0 -11
  113. package/dist/chunk-rz5p4j3p.js +0 -13
  114. package/dist/chunk-spnh9dzk.js +0 -10
  115. package/dist/chunk-xhhj1gvj.js +0 -9
  116. package/dist/chunk-z0ct35ft.js +0 -8
  117. package/dist/errors/utils/index.d.ts +0 -1
  118. package/dist/errors/utils/index.js +0 -16
  119. package/dist/errors/utils/is-nowarajs-error.ts.d.ts +0 -4
package/CHANGELOG.md DELETED
@@ -1,407 +0,0 @@
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
-
@@ -1,59 +0,0 @@
1
- // @bun
2
- // source/modules/database/enums/database-error-keys.ts
3
- var DATABASE_ERROR_KEYS = {
4
- MSSQL_CONNECTION_ERROR: "mrx-core.mssql.error.database.connection_error",
5
- MSSQL_DATABASE_ACCESS_DENIED: "mrx-core.mssql.error.database.access_denied",
6
- MSSQL_DATABASE_AMBIGUOUS_COLUMN: "mrx-core.mssql.error.database.ambiguous_column",
7
- MSSQL_DATABASE_AUTHORIZATION_FAILED: "mrx-core.mssql.error.database.authorization_failed",
8
- MSSQL_DATABASE_COLUMN_NOT_FOUND: "mrx-core.mssql.error.database.column_not_found",
9
- MSSQL_DATABASE_CONVERSION_FAILED: "mrx-core.mssql.error.database.conversion_failed",
10
- MSSQL_DATABASE_DATA_TOO_LARGE: "mrx-core.mssql.error.database.data_too_large",
11
- MSSQL_DATABASE_DEADLOCK_DETECTED: "mrx-core.mssql.error.database.deadlock_detected",
12
- MSSQL_DATABASE_DUPLICATE_KEY: "mrx-core.mssql.error.database.duplicate_key",
13
- MSSQL_DATABASE_FOREIGN_KEY_VIOLATION: "mrx-core.mssql.error.database.foreign_key_violation",
14
- MSSQL_DATABASE_IDENTITY_INSERT_NOT_ALLOWED: "mrx-core.mssql.error.database.identity_insert_not_allowed",
15
- MSSQL_DATABASE_INSUFFICIENT_MEMORY: "mrx-core.mssql.error.database.insufficient_memory",
16
- MSSQL_DATABASE_INSUFFICIENT_STORAGE: "mrx-core.mssql.error.database.insufficient_storage",
17
- MSSQL_DATABASE_PERMISSION_DENIED: "mrx-core.mssql.error.database.permission_denied",
18
- MSSQL_DATABASE_QUERY_TIMEOUT: "mrx-core.mssql.error.database.query_timeout",
19
- MSSQL_DATABASE_RESOURCE_LOCKED: "mrx-core.mssql.error.database.resource_locked",
20
- MSSQL_DATABASE_SYNTAX_ERROR: "mrx-core.mssql.error.database.syntax_error",
21
- MSSQL_DATABASE_TRANSACTION_ABORTED: "mrx-core.mssql.error.database.transaction_aborted",
22
- MSSQL_DATABASE_TRANSACTION_LOG_FULL: "mrx-core.mssql.error.database.transaction_log_full",
23
- MSSQL_DATABASE_UNIQUE_CONSTRAINT_VIOLATION: "mrx-core.mssql.error.database.unique_constraint_violation",
24
- MSSQL_DATABASE_CANNOT_UPDATE_IDENTITY_COLUMN: "mrx-core.mssql.error.database.cannot_update_identity_column",
25
- MSSQL_DISCONNECT_ERROR: "mrx-core.mssql.error.database.disconnect_error",
26
- MSSQL_NO_RESULT: "mrx-core.mssql.error.database.no_result",
27
- MSSQL_NOT_CONNECTED: "mrx-core.mssql.error.database.not_connected",
28
- MSSQL_QUERY_ERROR: "mrx-core.mssql.error.database.query_error",
29
- MSSQL_TABLE_NOT_FOUND: "mrx-core.mssql.error.database.table_not_found"
30
- };
31
-
32
- // source/modules/database/enums/mssql-error-code.ts
33
- var MSSQL_ERROR_CODE = {
34
- 0: DATABASE_ERROR_KEYS.MSSQL_QUERY_ERROR,
35
- 102: DATABASE_ERROR_KEYS.MSSQL_DATABASE_SYNTAX_ERROR,
36
- 1105: DATABASE_ERROR_KEYS.MSSQL_DATABASE_INSUFFICIENT_STORAGE,
37
- 1205: DATABASE_ERROR_KEYS.MSSQL_DATABASE_DEADLOCK_DETECTED,
38
- 1222: DATABASE_ERROR_KEYS.MSSQL_DATABASE_RESOURCE_LOCKED,
39
- 18452: DATABASE_ERROR_KEYS.MSSQL_DATABASE_AUTHORIZATION_FAILED,
40
- 18456: DATABASE_ERROR_KEYS.MSSQL_DATABASE_AUTHORIZATION_FAILED,
41
- 207: DATABASE_ERROR_KEYS.MSSQL_DATABASE_COLUMN_NOT_FOUND,
42
- 208: DATABASE_ERROR_KEYS.MSSQL_TABLE_NOT_FOUND,
43
- 209: DATABASE_ERROR_KEYS.MSSQL_DATABASE_AMBIGUOUS_COLUMN,
44
- 229: DATABASE_ERROR_KEYS.MSSQL_DATABASE_PERMISSION_DENIED,
45
- 2601: DATABASE_ERROR_KEYS.MSSQL_DATABASE_UNIQUE_CONSTRAINT_VIOLATION,
46
- 2627: DATABASE_ERROR_KEYS.MSSQL_DATABASE_DUPLICATE_KEY,
47
- 3928: DATABASE_ERROR_KEYS.MSSQL_DATABASE_TRANSACTION_ABORTED,
48
- 4060: DATABASE_ERROR_KEYS.MSSQL_DATABASE_ACCESS_DENIED,
49
- 544: DATABASE_ERROR_KEYS.MSSQL_DATABASE_IDENTITY_INSERT_NOT_ALLOWED,
50
- 547: DATABASE_ERROR_KEYS.MSSQL_DATABASE_FOREIGN_KEY_VIOLATION,
51
- 701: DATABASE_ERROR_KEYS.MSSQL_DATABASE_INSUFFICIENT_MEMORY,
52
- 8102: DATABASE_ERROR_KEYS.MSSQL_DATABASE_CANNOT_UPDATE_IDENTITY_COLUMN,
53
- 8152: DATABASE_ERROR_KEYS.MSSQL_DATABASE_DATA_TOO_LARGE,
54
- 8169: DATABASE_ERROR_KEYS.MSSQL_DATABASE_CONVERSION_FAILED,
55
- 8645: DATABASE_ERROR_KEYS.MSSQL_DATABASE_QUERY_TIMEOUT,
56
- 9002: DATABASE_ERROR_KEYS.MSSQL_DATABASE_TRANSACTION_LOG_FULL
57
- };
58
-
59
- export { DATABASE_ERROR_KEYS, MSSQL_ERROR_CODE };
@@ -1,9 +0,0 @@
1
- // @bun
2
- // source/modules/mailer/enums/mailer-error-keys.ts
3
- var MAILER_ERROR_KEYS = {
4
- SMTP_ALREADY_CONNECTED: "mrx-core.mailer.error.smtp.already_connected",
5
- SMTP_CONNECTION_ERROR: "mrx-core.mailer.error.smtp.connection_error",
6
- SMTP_NOT_CONNECTED: "mrx-core.mailer.error.smtp.not_connected"
7
- };
8
-
9
- export { MAILER_ERROR_KEYS };
@@ -1,15 +0,0 @@
1
- // @bun
2
- // source/errors/base-error.ts
3
- class BaseError extends Error {
4
- cause;
5
- date = new Date;
6
- constructor(message, cause) {
7
- super(message, { cause });
8
- this.cause = cause;
9
- this.name = new.target.name;
10
- if (Error.captureStackTrace)
11
- Error.captureStackTrace(this, new.target);
12
- }
13
- }
14
-
15
- export { BaseError };
@@ -1,9 +0,0 @@
1
- // @bun
2
- // source/modules/jwt/enums/jwt-error-keys.ts
3
- var JWT_ERROR_KEYS = {
4
- JWT_EXPIRATION_PASSED: "mrx-core.jwt.error.expiration_passed",
5
- JWT_SECRET_NOT_FOUND: "mrx-core.jwt.error.secret_not_found",
6
- JWT_SIGN_ERROR: "mrx-core.jwt.error.sign_error"
7
- };
8
-
9
- export { JWT_ERROR_KEYS };
@@ -1,11 +0,0 @@
1
- // @bun
2
- // source/modules/totp/enums/totp-error-keys.ts
3
- var TOTP_ERROR_KEYS = {
4
- INVALID_ALGORITHM: "mrx-core.totp.error.invalid_algorithm",
5
- INVALID_BASE32_CHARACTER: "mrx-core.totp.error.invalid_base32_character",
6
- INVALID_OTP_AUTH_URI: "mrx-core.totp.error.invalid_otp_auth_uri",
7
- INVALID_SECRET_LENGTH: "mrx-core.totp.error.invalid_secret_length",
8
- MISSING_SECRET: "mrx-core.totp.error.missing_secret"
9
- };
10
-
11
- export { TOTP_ERROR_KEYS };
@@ -1,13 +0,0 @@
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 };
@@ -1,10 +0,0 @@
1
- // @bun
2
- // source/modules/elysia/error/enums/error.keys.ts
3
- var ERROR_KEYS = {
4
- CORE_ERROR_VALIDATION: "mrx-core.error.validation",
5
- CORE_ERROR_NOT_FOUND: "mrx-core.error.not_found",
6
- CORE_ERROR_PARSE: "mrx-core.error.parse",
7
- CORE_ERROR_INTERNAL_SERVER_ERROR: "mrx-core.error.internal_server_error"
8
- };
9
-
10
- export { ERROR_KEYS };
@@ -1,9 +0,0 @@
1
- // @bun
2
- // source/modules/kv-store/enums/kv-store-error-keys.ts
3
- var KV_STORE_ERROR_KEYS = {
4
- CLOSING_CONNECTION_FAILED: "mrx-core.kv-store.error.closing_connection_failed",
5
- CONNECTION_FAILED: "mrx-core.kv-store.error.connection_failed",
6
- NOT_INTEGER: "mrx-core.kv-store.error.not_integer"
7
- };
8
-
9
- export { KV_STORE_ERROR_KEYS };
@@ -1,8 +0,0 @@
1
- // @bun
2
- // source/modules/singleton-manager/enums/singleton-manager-error-keys.ts
3
- var SINGLETON_MANAGER_ERROR_KEYS = {
4
- CLASS_INSTANCE_ALREADY_REGISTERED: "mrx-core.singleton-manager.error.class_instance_already_registered",
5
- CLASS_INSTANCE_NOT_REGISTERED: "mrx-core.singleton-manager.error.class_instance_not_registered"
6
- };
7
-
8
- export { SINGLETON_MANAGER_ERROR_KEYS };
@@ -1 +0,0 @@
1
- export { isBaseError, isHttpError } from './is-nowarajs-error.ts';
@@ -1,16 +0,0 @@
1
- // @bun
2
- import {
3
- HttpError
4
- } from "../../chunk-7t524zqh.js";
5
- import"../../chunk-sqts8vyk.js";
6
- import {
7
- BaseError
8
- } from "../../chunk-9cgzhc50.js";
9
-
10
- // source/errors/utils/is-nowarajs-error.ts.ts
11
- var isBaseError = (e) => e instanceof BaseError;
12
- var isHttpError = (e) => e instanceof HttpError;
13
- export {
14
- isHttpError,
15
- isBaseError
16
- };
@@ -1,4 +0,0 @@
1
- import { BaseError } from '../../errors/base-error';
2
- import { HttpError } from '../../errors/http-error';
3
- export declare const isBaseError: (e: unknown) => e is BaseError;
4
- export declare const isHttpError: (e: unknown) => e is HttpError;