@daiso-tech/core 0.32.0 → 0.33.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 (126) hide show
  1. package/dist/async/async.errors.d.ts +14 -0
  2. package/dist/async/async.errors.js +14 -0
  3. package/dist/async/async.errors.js.map +1 -1
  4. package/dist/async/async.events.d.ts +23 -0
  5. package/dist/async/async.events.js +23 -0
  6. package/dist/async/async.events.js.map +1 -1
  7. package/dist/async/backof-policies/_shared.d.ts +1 -1
  8. package/dist/async/backof-policies/constant-backoff-policy/constant-backoff-policy.d.ts +2 -2
  9. package/dist/async/backof-policies/constant-backoff-policy/constant-backoff-policy.js +1 -1
  10. package/dist/async/backof-policies/exponential-backoff-policy/exponential-backoff-policy.d.ts +2 -2
  11. package/dist/async/backof-policies/exponential-backoff-policy/exponential-backoff-policy.js +1 -1
  12. package/dist/async/backof-policies/linear-backoff-policy/linear-backoff-policy.d.ts +2 -2
  13. package/dist/async/backof-policies/linear-backoff-policy/linear-backoff-policy.js +1 -1
  14. package/dist/async/backof-policies/polynomial-backoff-policy/polynomial-backoff-policy.d.ts +2 -2
  15. package/dist/async/backof-policies/polynomial-backoff-policy/polynomial-backoff-policy.js +1 -1
  16. package/dist/async/utilities/lazy-promise/lazy-promise.d.ts +7 -41
  17. package/dist/async/utilities/lazy-promise/lazy-promise.js +7 -8
  18. package/dist/async/utilities/lazy-promise/lazy-promise.js.map +1 -1
  19. package/dist/cache/contracts/cache-factory.contract.d.ts +3 -3
  20. package/dist/cache/contracts/cache.contract.d.ts +0 -22
  21. package/dist/cache/contracts/cache.errors.d.ts +14 -1
  22. package/dist/cache/contracts/cache.errors.js +14 -1
  23. package/dist/cache/contracts/cache.errors.js.map +1 -1
  24. package/dist/cache/contracts/cache.events.d.ts +28 -14
  25. package/dist/cache/contracts/cache.events.js +28 -3
  26. package/dist/cache/contracts/cache.events.js.map +1 -1
  27. package/dist/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter-serde.js +3 -3
  28. package/dist/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter-serde.js.map +1 -1
  29. package/dist/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter.js +0 -1
  30. package/dist/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter.js.map +1 -1
  31. package/dist/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter-serde.js +3 -3
  32. package/dist/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter-serde.js.map +1 -1
  33. package/dist/cache/implementations/derivables/cache/cache.d.ts +9 -139
  34. package/dist/cache/implementations/derivables/cache/cache.js +38 -229
  35. package/dist/cache/implementations/derivables/cache/cache.js.map +1 -1
  36. package/dist/cache/implementations/derivables/cache-factory/cache-factory.d.ts +6 -6
  37. package/dist/cache/implementations/derivables/cache-factory/cache-factory.js.map +1 -1
  38. package/dist/cache/implementations/test-utilities/cache-adapter.test-suite.d.ts +2 -2
  39. package/dist/cache/implementations/test-utilities/cache-adapter.test-suite.js +1 -1
  40. package/dist/cache/implementations/test-utilities/cache.test-suite.d.ts +4 -4
  41. package/dist/cache/implementations/test-utilities/cache.test-suite.js +239 -433
  42. package/dist/cache/implementations/test-utilities/cache.test-suite.js.map +1 -1
  43. package/dist/cache/implementations/test-utilities/database-cache-dapter.test-suite.d.ts +2 -2
  44. package/dist/cache/implementations/test-utilities/database-cache-dapter.test-suite.js +1 -1
  45. package/dist/collection/contracts/collection.errors.d.ts +17 -0
  46. package/dist/collection/contracts/collection.errors.js +17 -0
  47. package/dist/collection/contracts/collection.errors.js.map +1 -1
  48. package/dist/event-bus/contracts/event-bus-factory.contract.d.ts +3 -3
  49. package/dist/event-bus/contracts/event-bus.contract.d.ts +2 -44
  50. package/dist/event-bus/contracts/event-bus.contract.js.map +1 -1
  51. package/dist/event-bus/contracts/event-bus.errors.d.ts +16 -1
  52. package/dist/event-bus/contracts/event-bus.errors.js +16 -1
  53. package/dist/event-bus/contracts/event-bus.errors.js.map +1 -1
  54. package/dist/event-bus/implementations/derivables/event-bus/event-bus.d.ts +6 -77
  55. package/dist/event-bus/implementations/derivables/event-bus/event-bus.js +11 -131
  56. package/dist/event-bus/implementations/derivables/event-bus/event-bus.js.map +1 -1
  57. package/dist/event-bus/implementations/derivables/event-bus-factory/event-bus-factory.d.ts +4 -4
  58. package/dist/event-bus/implementations/derivables/event-bus-factory/event-bus-factory.js.map +1 -1
  59. package/dist/event-bus/implementations/test-utilities/event-bus-adapter.test-suite.d.ts +2 -2
  60. package/dist/event-bus/implementations/test-utilities/event-bus-adapter.test-suite.js +1 -1
  61. package/dist/event-bus/implementations/test-utilities/event-bus.test-suite.d.ts +4 -4
  62. package/dist/event-bus/implementations/test-utilities/event-bus.test-suite.js +691 -1432
  63. package/dist/event-bus/implementations/test-utilities/event-bus.test-suite.js.map +1 -1
  64. package/dist/lock/contracts/lock-provider-factory.contract.d.ts +3 -3
  65. package/dist/lock/contracts/lock-provider.contract.d.ts +10 -20
  66. package/dist/lock/contracts/lock.contract.d.ts +1 -10
  67. package/dist/lock/contracts/lock.errors.d.ts +18 -0
  68. package/dist/lock/contracts/lock.errors.js +18 -0
  69. package/dist/lock/contracts/lock.errors.js.map +1 -1
  70. package/dist/lock/contracts/lock.events.d.ts +22 -0
  71. package/dist/lock/contracts/lock.events.js +22 -0
  72. package/dist/lock/contracts/lock.events.js.map +1 -1
  73. package/dist/lock/implementations/derivables/lock-provider/lock-provider.d.ts +12 -155
  74. package/dist/lock/implementations/derivables/lock-provider/lock-provider.js +31 -228
  75. package/dist/lock/implementations/derivables/lock-provider/lock-provider.js.map +1 -1
  76. package/dist/lock/implementations/derivables/lock-provider/lock-serde-transformer.d.ts +5 -5
  77. package/dist/lock/implementations/derivables/lock-provider/lock-serde-transformer.js +7 -30
  78. package/dist/lock/implementations/derivables/lock-provider/lock-serde-transformer.js.map +1 -1
  79. package/dist/lock/implementations/derivables/lock-provider/lock.d.ts +8 -58
  80. package/dist/lock/implementations/derivables/lock-provider/lock.js +33 -105
  81. package/dist/lock/implementations/derivables/lock-provider/lock.js.map +1 -1
  82. package/dist/lock/implementations/derivables/lock-provider-factory/lock-provider-factory.d.ts +9 -8
  83. package/dist/lock/implementations/derivables/lock-provider-factory/lock-provider-factory.js.map +1 -1
  84. package/dist/lock/implementations/test-utilities/lock-provider.test-suite.d.ts +2 -2
  85. package/dist/lock/implementations/test-utilities/lock-provider.test-suite.js +178 -659
  86. package/dist/lock/implementations/test-utilities/lock-provider.test-suite.js.map +1 -1
  87. package/dist/serde/contracts/deserializer.contract.d.ts +1 -1
  88. package/dist/serde/contracts/deserializer.contract.js +1 -1
  89. package/dist/serde/contracts/deserializer.contract.js.map +1 -1
  90. package/dist/serde/contracts/serde.errors.d.ts +14 -2
  91. package/dist/serde/contracts/serde.errors.js +16 -4
  92. package/dist/serde/contracts/serde.errors.js.map +1 -1
  93. package/dist/serde/contracts/serializer.contract.d.ts +1 -1
  94. package/dist/serde/contracts/serializer.contract.js +1 -1
  95. package/dist/serde/contracts/serializer.contract.js.map +1 -1
  96. package/dist/serde/implementations/adapters/mongodb-serde/mongodb-serde.js +3 -3
  97. package/dist/serde/implementations/adapters/mongodb-serde/mongodb-serde.js.map +1 -1
  98. package/dist/serde/implementations/adapters/redis-serde/redis-serde.js +3 -3
  99. package/dist/serde/implementations/adapters/redis-serde/redis-serde.js.map +1 -1
  100. package/dist/serde/implementations/adapters/sql-serde/sql-serde.js +3 -3
  101. package/dist/serde/implementations/adapters/sql-serde/sql-serde.js.map +1 -1
  102. package/dist/serde/implementations/adapters/super-json-serde-adapter/super-json-serde-adapter.js +3 -3
  103. package/dist/serde/implementations/adapters/super-json-serde-adapter/super-json-serde-adapter.js.map +1 -1
  104. package/dist/serde/implementations/test-utilities/flexible-serde-adapter.test-suite.d.ts +2 -2
  105. package/dist/serde/implementations/test-utilities/flexible-serde-adapter.test-suite.js +1 -1
  106. package/dist/serde/implementations/test-utilities/flexible-serde.test-suite.d.ts +2 -2
  107. package/dist/serde/implementations/test-utilities/flexible-serde.test-suite.js +1 -1
  108. package/dist/utilities/classes/key-prefixer/_module.d.ts +0 -1
  109. package/dist/utilities/classes/key-prefixer/_module.js +0 -1
  110. package/dist/utilities/classes/key-prefixer/_module.js.map +1 -1
  111. package/dist/utilities/classes/key-prefixer/key-prefixer.d.ts +2 -11
  112. package/dist/utilities/classes/key-prefixer/key-prefixer.js +4 -46
  113. package/dist/utilities/classes/key-prefixer/key-prefixer.js.map +1 -1
  114. package/dist/utilities/errors.d.ts +2 -0
  115. package/dist/utilities/errors.js +2 -0
  116. package/dist/utilities/errors.js.map +1 -1
  117. package/package.json +3 -4
  118. package/dist/async/utilities/lazy-promise/lazy-promise-event-bus.d.ts +0 -15
  119. package/dist/async/utilities/lazy-promise/lazy-promise-event-bus.js +0 -50
  120. package/dist/async/utilities/lazy-promise/lazy-promise-event-bus.js.map +0 -1
  121. package/dist/async/utilities/lazy-promise/lazy-promise-listener.contract.d.ts +0 -23
  122. package/dist/async/utilities/lazy-promise/lazy-promise-listener.contract.js +0 -44
  123. package/dist/async/utilities/lazy-promise/lazy-promise-listener.contract.js.map +0 -1
  124. package/dist/utilities/classes/key-prefixer/key-prefixer.contract.d.ts +0 -28
  125. package/dist/utilities/classes/key-prefixer/key-prefixer.contract.js +0 -5
  126. package/dist/utilities/classes/key-prefixer/key-prefixer.contract.js.map +0 -1
@@ -7,7 +7,7 @@ import { type Promisable } from "../../../utilities/_module-exports.js";
7
7
  /**
8
8
  *
9
9
  * IMPORT_PATH: ```"@daiso-tech/core/cache/test-utilities"```
10
- * @group Test utilities
10
+ * @group TestUtilities
11
11
  */
12
12
  export type CacheAdapterTestSuiteSettings = {
13
13
  expect: ExpectStatic;
@@ -20,7 +20,7 @@ export type CacheAdapterTestSuiteSettings = {
20
20
  * The <i>cacheAdapterTestSuite</i> function simplifies the process of testing your custom implementation of <i>{@link ICacheAdapter}</i> with <i>vitest</i>.
21
21
  *
22
22
  * IMPORT_PATH: ```"@daiso-tech/core/cache/test-utilities"```
23
- * @group Test utilities
23
+ * @group TestUtilities
24
24
  * @example
25
25
  * ```ts
26
26
  * import { afterEach, beforeEach, describe, expect, test } from "vitest";
@@ -10,7 +10,7 @@ import { LazyPromise } from "../../../async/_module-exports.js";
10
10
  * The <i>cacheAdapterTestSuite</i> function simplifies the process of testing your custom implementation of <i>{@link ICacheAdapter}</i> with <i>vitest</i>.
11
11
  *
12
12
  * IMPORT_PATH: ```"@daiso-tech/core/cache/test-utilities"```
13
- * @group Test utilities
13
+ * @group TestUtilities
14
14
  * @example
15
15
  * ```ts
16
16
  * import { afterEach, beforeEach, describe, expect, test } from "vitest";
@@ -2,25 +2,25 @@
2
2
  * @module Cache
3
3
  */
4
4
  import { type TestAPI, type SuiteAPI, type ExpectStatic, type beforeEach } from "vitest";
5
- import { type IGroupableCache } from "../../../cache/contracts/_module-exports.js";
5
+ import { type ICache } from "../../../cache/contracts/_module-exports.js";
6
6
  import { type Promisable } from "../../../utilities/_module-exports.js";
7
7
  /**
8
8
  *
9
9
  * IMPORT_PATH: ```"@daiso-tech/core/cache/test-utilities"```
10
- * @group Test utilities
10
+ * @group TestUtilities
11
11
  */
12
12
  export type CacheTestSuiteSettings = {
13
13
  expect: ExpectStatic;
14
14
  test: TestAPI;
15
15
  describe: SuiteAPI;
16
16
  beforeEach: typeof beforeEach;
17
- createCache: () => Promisable<IGroupableCache>;
17
+ createCache: () => Promisable<ICache>;
18
18
  };
19
19
  /**
20
20
  * The <i>cacheTestSuite</i> function simplifies the process of testing your custom implementation of <i>{@link ICache}</i> with <i>vitest</i>.
21
21
  *
22
22
  * IMPORT_PATH: ```"@daiso-tech/core/cache/test-utilities"```
23
- * @group Test utilities
23
+ * @group TestUtilities
24
24
  * @example
25
25
  * ```ts
26
26
  * import { beforeEach, describe, expect, test } from "vitest";