@objectstack/service-cluster-redis 7.4.1 → 7.6.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @objectstack/service-cluster-redis@7.4.1 build /home/runner/work/framework/framework/packages/services/service-cluster-redis
2
+ > @objectstack/service-cluster-redis@7.6.0 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 12.34 KB
14
14
  ESM dist/index.js.map 36.80 KB
15
- ESM ⚡️ Build success in 528ms
15
+ ESM ⚡️ Build success in 761ms
16
16
  CJS dist/index.cjs 13.71 KB
17
17
  CJS dist/index.cjs.map 34.28 KB
18
- CJS ⚡️ Build success in 536ms
18
+ CJS ⚡️ Build success in 767ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 10397ms
20
+ DTS ⚡️ Build success in 12417ms
21
21
  DTS dist/index.d.ts 9.11 KB
22
22
  DTS dist/index.d.cts 9.11 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @objectstack/service-cluster-redis
2
2
 
3
+ ## 7.6.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [955d4c8]
8
+ - Updated dependencies [c4a4cbd]
9
+ - Updated dependencies [b046ec2]
10
+ - Updated dependencies [2170ad9]
11
+ - Updated dependencies [02d6359]
12
+ - Updated dependencies [7648242]
13
+ - Updated dependencies [8fa1e7f]
14
+ - Updated dependencies [55866f5]
15
+ - Updated dependencies [60f9c45]
16
+ - @objectstack/spec@7.6.0
17
+ - @objectstack/service-cluster@7.6.0
18
+
19
+ ## 7.5.0
20
+
21
+ ### Patch Changes
22
+
23
+ - @objectstack/spec@7.5.0
24
+ - @objectstack/service-cluster@7.5.0
25
+
3
26
  ## 7.4.1
4
27
 
5
28
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@objectstack/service-cluster-redis",
3
- "version": "7.4.1",
3
+ "version": "7.6.0",
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,14 +15,14 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "ioredis": "^5.11.0",
18
- "@objectstack/service-cluster": "7.4.1",
19
- "@objectstack/spec": "7.4.1"
18
+ "@objectstack/service-cluster": "7.6.0",
19
+ "@objectstack/spec": "7.6.0"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/node": "^25.9.1",
23
23
  "ioredis-mock": "^8.13.1",
24
24
  "typescript": "^6.0.3",
25
- "vitest": "^4.1.7"
25
+ "vitest": "^4.1.8"
26
26
  },
27
27
  "keywords": [
28
28
  "objectstack",
@@ -17,6 +17,14 @@ import {
17
17
  runKVContract,
18
18
  runCounterContract,
19
19
  } from '@objectstack/service-cluster/testing';
20
+ // Load the driver entrypoint at module eval — importing it registers the
21
+ // 'redis' cluster driver as a side-effect, which `defineCluster({ driver:
22
+ // 'redis' })` then resolves. Doing this here (not via `await import()` inside
23
+ // the timed test bodies) keeps the one-time cold module-load cost out of the
24
+ // per-test 5s timeout — the wiring tests below were flaky on slow CI for
25
+ // exactly that reason (the first test paid the full import cost and timed out).
26
+ import './index.js';
27
+ import { defineCluster } from '@objectstack/service-cluster';
20
28
 
21
29
  import { RedisPubSub } from './pubsub.js';
22
30
  import { RedisLock } from './lock.js';
@@ -118,8 +126,6 @@ describe('IPubSub contract — redis(mock)', () => {
118
126
 
119
127
  describe('Redis driver — wiring', () => {
120
128
  it('exports a registerable driver and defineCluster picks it up', async () => {
121
- await import('./index.js');
122
- const { defineCluster } = await import('@objectstack/service-cluster');
123
129
  const client = makeClient();
124
130
  const cluster = defineCluster({
125
131
  driver: 'redis',
@@ -145,8 +151,6 @@ describe('Redis driver — wiring', () => {
145
151
  });
146
152
 
147
153
  it('does NOT quit caller-owned client on close', async () => {
148
- await import('./index.js');
149
- const { defineCluster } = await import('@objectstack/service-cluster');
150
154
  const client = makeClient();
151
155
  const cluster = defineCluster({
152
156
  driver: 'redis',