@objectstack/service-cluster-redis 7.5.0 → 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.
- package/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +16 -0
- package/package.json +3 -3
- package/src/redis.contract.test.ts +8 -4
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @objectstack/service-cluster-redis@7.
|
|
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
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
[34mCJS[39m Build start
|
|
13
13
|
[32mESM[39m [1mdist/index.js [22m[32m12.34 KB[39m
|
|
14
14
|
[32mESM[39m [1mdist/index.js.map [22m[32m36.80 KB[39m
|
|
15
|
-
[32mESM[39m ⚡️ Build success in
|
|
15
|
+
[32mESM[39m ⚡️ Build success in 761ms
|
|
16
16
|
[32mCJS[39m [1mdist/index.cjs [22m[32m13.71 KB[39m
|
|
17
17
|
[32mCJS[39m [1mdist/index.cjs.map [22m[32m34.28 KB[39m
|
|
18
|
-
[32mCJS[39m ⚡️ Build success in
|
|
18
|
+
[32mCJS[39m ⚡️ Build success in 767ms
|
|
19
19
|
[34mDTS[39m Build start
|
|
20
|
-
[32mDTS[39m ⚡️ Build success in
|
|
20
|
+
[32mDTS[39m ⚡️ Build success in 12417ms
|
|
21
21
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m9.11 KB[39m
|
|
22
22
|
[32mDTS[39m [1mdist/index.d.cts [22m[32m9.11 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
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
|
+
|
|
3
19
|
## 7.5.0
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@objectstack/service-cluster-redis",
|
|
3
|
-
"version": "7.
|
|
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,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"ioredis": "^5.11.0",
|
|
18
|
-
"@objectstack/service-cluster": "7.
|
|
19
|
-
"@objectstack/spec": "7.
|
|
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",
|
|
@@ -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',
|