@voltro/kv 0.87.0 → 0.88.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 (50) hide show
  1. package/CHANGELOG.md +169 -6
  2. package/THIRD-PARTY-NOTICES.md +2 -1345
  3. package/dist/Kv.js +1 -2
  4. package/dist/KvStore.js +1 -2
  5. package/dist/analytics.js +1 -2
  6. package/dist/backendMemory.js +1 -2
  7. package/dist/backendRedis.js +1 -2
  8. package/dist/cacheAtomicProtocol.js +34 -24
  9. package/dist/cacheAtomicScript.js +19 -2
  10. package/dist/cacheAtomicState.js +1 -2
  11. package/dist/connection.js +74 -70
  12. package/dist/connectionAnalyticsConfig.js +1 -2
  13. package/dist/connectionConfigError.js +10 -0
  14. package/dist/connectionConfigProvider.js +1 -2
  15. package/dist/connectionDefinitions.js +1 -2
  16. package/dist/connectionMemory.js +1 -2
  17. package/dist/connectionMetrics.js +1 -2
  18. package/dist/connectionNamespace.js +1 -2
  19. package/dist/connectionNats.js +44 -44
  20. package/dist/connectionNatsConfig.js +1 -2
  21. package/dist/connectionNatsSubjects.js +1 -2
  22. package/dist/connectionOwner.js +1 -2
  23. package/dist/connectionPool.js +252 -252
  24. package/dist/connectionPrefix.js +1 -2
  25. package/dist/connectionScripts.js +1 -2
  26. package/dist/connectionSqlConfig.js +1 -2
  27. package/dist/connectionStorageConfig.js +1 -2
  28. package/dist/connectionStorageFacade.js +1 -2
  29. package/dist/connectionSubscriber.js +47 -47
  30. package/dist/driverModule.js +9 -0
  31. package/dist/errors.js +1 -2
  32. package/dist/expirySweep.js +1 -2
  33. package/dist/hot-contract.js +1 -2
  34. package/dist/hot-testing.d.ts +14 -1
  35. package/dist/hotMemory.js +1 -2
  36. package/dist/hotOperations.js +1 -2
  37. package/dist/hotRateLimit.js +1 -2
  38. package/dist/hotReadAvailability.js +1 -2
  39. package/dist/hotRedis.js +1 -2
  40. package/dist/hotRedisScript.js +1 -2
  41. package/dist/hotRouting.js +2 -3
  42. package/dist/hotState.js +1 -2
  43. package/dist/hotStoreConformance.js +76 -78
  44. package/dist/nativeRedisReads.js +2 -3
  45. package/dist/nativeRedisTopology.js +64 -63
  46. package/dist/redisDiagnostics.js +1 -2
  47. package/dist/redisReadPolicy.js +1 -2
  48. package/dist/storage.js +1 -2
  49. package/dist/storageAddress.js +1 -2
  50. package/package.json +13 -10
@@ -1,4 +1,4 @@
1
- //#region src/redisReadPolicy.ts
1
+ // src/redisReadPolicy.ts
2
2
  var e = async (e, t) => {
3
3
  let n = (await Promise.all(e.map(async (e) => {
4
4
  let n = performance.now();
@@ -35,5 +35,4 @@ var e = async (e, t) => {
35
35
  }
36
36
  };
37
37
  };
38
- //#endregion
39
38
  export { t as httpRedisReaders, e as measuredRedisReader };
package/dist/storage.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { StorageAddress as e, isStorageKey as t, storageAddressIdentity as n, storageKeyProblem as r } from "./storageAddress.js";
2
2
  import { Schema as i } from "effect";
3
- //#region src/connectionStorage.ts
3
+ // src/connectionStorage.ts
4
4
  var a = class extends i.TaggedError()("StorageError", {
5
5
  provider: i.String,
6
6
  message: i.String,
@@ -44,5 +44,4 @@ var a = class extends i.TaggedError()("StorageError", {
44
44
  };
45
45
  return Object.defineProperties(t, n);
46
46
  };
47
- //#endregion
48
47
  export { e as StorageAddress, a as StorageError, o as forwardStorageProvider, t as isStorageKey, n as storageAddressIdentity, r as storageKeyProblem };
@@ -1,5 +1,5 @@
1
1
  import { Schema as e } from "effect";
2
- //#region src/storageAddress.ts
2
+ // src/storageAddress.ts
3
3
  var t = (e) => {
4
4
  if (e.length === 0) return "empty";
5
5
  if (e.includes("\0")) return "contains NUL";
@@ -16,5 +16,4 @@ var t = (e) => {
16
16
  e.tenantId,
17
17
  e.key
18
18
  ]);
19
- //#endregion
20
19
  export { r as StorageAddress, n as isStorageKey, i as storageAddressIdentity, t as storageKeyProblem };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voltro/kv",
3
- "version": "0.87.0",
3
+ "version": "0.88.0",
4
4
  "description": "Named RESP connection registry + durable key-value primitive. One config surface for many Redis-family connections (Redis/Valkey/KeyDB/Dragonfly/Upstash) shared across cache, rate-limit, RYW and broadcast; plus a durable, tenant-scoped KV store distinct from the best-effort cache.",
5
5
  "keywords": [
6
6
  "voltro",
@@ -68,19 +68,22 @@
68
68
  "node": ">=24.0.0"
69
69
  },
70
70
  "dependencies": {
71
- "@voltro/shared": "0.87.0"
72
- },
73
- "optionalDependencies": {
74
- "@nats-io/transport-node": "^3.4.0",
75
- "@upstash/redis": "^1.38.4",
76
- "ioredis": "^5.11.1"
71
+ "@voltro/shared": "0.88.0"
77
72
  },
78
73
  "peerDependencies": {
79
- "effect": "4.0.1",
80
- "vitest": ">=3.0.0"
74
+ "effect": "4.1.0",
75
+ "@nats-io/transport-node": "^3.4.0",
76
+ "@upstash/redis": "^1.40.0",
77
+ "ioredis": "^6.0.0"
81
78
  },
82
79
  "peerDependenciesMeta": {
83
- "vitest": {
80
+ "@nats-io/transport-node": {
81
+ "optional": true
82
+ },
83
+ "@upstash/redis": {
84
+ "optional": true
85
+ },
86
+ "ioredis": {
84
87
  "optional": true
85
88
  }
86
89
  },