@objectstack/service-cluster-redis 9.4.0 → 9.5.1

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @objectstack/service-cluster-redis@9.4.0 build /home/runner/work/framework/framework/packages/services/service-cluster-redis
2
+ > @objectstack/service-cluster-redis@9.5.1 build /home/runner/work/framework/framework/packages/services/service-cluster-redis
3
3
  > tsup
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -12,11 +12,11 @@
12
12
  CJS Build start
13
13
  ESM dist/index.js 13.20 KB
14
14
  ESM dist/index.js.map 37.77 KB
15
- ESM ⚡️ Build success in 1011ms
15
+ ESM ⚡️ Build success in 592ms
16
16
  CJS dist/index.cjs 14.57 KB
17
17
  CJS dist/index.cjs.map 35.24 KB
18
- CJS ⚡️ Build success in 1017ms
18
+ CJS ⚡️ Build success in 603ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 13730ms
20
+ DTS ⚡️ Build success in 12470ms
21
21
  DTS dist/index.d.ts 9.99 KB
22
22
  DTS dist/index.d.cts 9.99 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @objectstack/service-cluster-redis
2
2
 
3
+ ## 9.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [ee72aae]
8
+ - @objectstack/spec@9.5.1
9
+ - @objectstack/service-cluster@9.5.1
10
+
11
+ ## 9.5.0
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [d08551c]
16
+ - Updated dependencies [707aeed]
17
+ - Updated dependencies [7a103d4]
18
+ - Updated dependencies [4b01250]
19
+ - @objectstack/spec@9.5.0
20
+ - @objectstack/service-cluster@9.5.0
21
+
3
22
  ## 9.4.0
4
23
 
5
24
  ### Patch Changes
package/README.md ADDED
@@ -0,0 +1,59 @@
1
+ # @objectstack/service-cluster-redis
2
+
3
+ Redis driver for `@objectstack/service-cluster` — implements the cluster
4
+ primitives `IPubSub` / `ILock` / `IKV` / `ICounter` against Redis using
5
+ [`ioredis`](https://github.com/redis/ioredis).
6
+
7
+ ## Status: community-optional reference driver
8
+
9
+ This package is the **reference remote driver** that proves the
10
+ `registerClusterDriver()` SPI. It is **not** on the ObjectStack Cloud or
11
+ ObjectOS EE deployment path — both run **Redis-free** (single-node-affinity
12
+ routing + DB-backed queue/coordination). It is maintained as long as the
13
+ cluster driver SPI is stable, but it is **not operated or supported by
14
+ ObjectStack** as part of the managed/enterprise runtime.
15
+
16
+ Reach for it only when you self-host **multiple replicas that must share
17
+ cluster primitives** with low latency — e.g. sub-second cross-process pub/sub
18
+ or high-frequency cross-process locks. For most deployments the default
19
+ `memory` driver (single process) or the DB-backed queue is sufficient; see
20
+ `@objectstack/service-cluster` for when a remote driver is actually needed.
21
+
22
+ ## Installation
23
+
24
+ ```bash
25
+ pnpm add @objectstack/service-cluster @objectstack/service-cluster-redis ioredis
26
+ ```
27
+
28
+ ## Usage
29
+
30
+ Importing the package once at process start self-registers the `'redis'`
31
+ driver, which `defineCluster({ driver: 'redis' })` then resolves.
32
+
33
+ ```typescript
34
+ import { ObjectKernel } from '@objectstack/core';
35
+ import { ClusterServicePlugin } from '@objectstack/service-cluster';
36
+ import '@objectstack/service-cluster-redis'; // self-registers the 'redis' driver
37
+
38
+ const kernel = new ObjectKernel();
39
+ kernel.use(new ClusterServicePlugin({
40
+ config: {
41
+ driver: 'redis',
42
+ url: process.env.REDIS_URL ?? 'redis://localhost:6379',
43
+ nodeId: 'web-1',
44
+ },
45
+ }));
46
+ await kernel.bootstrap();
47
+ ```
48
+
49
+ You can also build the service directly with `defineCluster({ driver: 'redis', url, nodeId })`,
50
+ or pass a shared ioredis client via `driverOptions.client`.
51
+
52
+ ## License
53
+
54
+ Apache-2.0. See [LICENSING.md](../../../LICENSING.md).
55
+
56
+ ## See Also
57
+
58
+ - [@objectstack/service-cluster](../service-cluster) — primitives, SPI, and the
59
+ default in-process `memory` driver
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@objectstack/service-cluster-redis",
3
- "version": "9.4.0",
3
+ "version": "9.5.1",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Redis cluster driver for ObjectStack — implements IPubSub/ILock/IKV/ICounter against Redis using ioredis.",
6
6
  "type": "module",
@@ -15,8 +15,8 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "ioredis": "^5.11.1",
18
- "@objectstack/service-cluster": "9.4.0",
19
- "@objectstack/spec": "9.4.0"
18
+ "@objectstack/service-cluster": "9.5.1",
19
+ "@objectstack/spec": "9.5.1"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/node": "^25.9.2",