ioredis 5.0.0 → 5.0.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.
- package/built/cluster/index.d.ts +5 -1
- package/built/index.d.ts +3 -0
- package/package.json +3 -3
package/built/cluster/index.d.ts
CHANGED
|
@@ -8,6 +8,10 @@ import { Callback, ScanStreamOptions, WriteableStream } from "../types";
|
|
|
8
8
|
import Commander from "../utils/Commander";
|
|
9
9
|
import { ClusterOptions } from "./ClusterOptions";
|
|
10
10
|
import { NodeKey, NodeRole } from "./util";
|
|
11
|
+
export declare type ClusterNode = string | number | {
|
|
12
|
+
host?: string | undefined;
|
|
13
|
+
port?: number | undefined;
|
|
14
|
+
};
|
|
11
15
|
declare type ClusterStatus = "end" | "close" | "wait" | "connecting" | "connect" | "ready" | "reconnecting" | "disconnecting";
|
|
12
16
|
/**
|
|
13
17
|
* Client for the official Redis Cluster
|
|
@@ -53,7 +57,7 @@ declare class Cluster extends Commander {
|
|
|
53
57
|
/**
|
|
54
58
|
* Creates an instance of Cluster.
|
|
55
59
|
*/
|
|
56
|
-
constructor(startupNodes:
|
|
60
|
+
constructor(startupNodes: ClusterNode[], options?: ClusterOptions);
|
|
57
61
|
/**
|
|
58
62
|
* Connect to a cluster
|
|
59
63
|
*/
|
package/built/index.d.ts
CHANGED
|
@@ -31,6 +31,9 @@ export { Callback } from "./types";
|
|
|
31
31
|
export { SentinelAddress, SentinelConnectionOptions, } from "./connectors/SentinelConnector";
|
|
32
32
|
export { StandaloneConnectionOptions } from "./connectors/StandaloneConnector";
|
|
33
33
|
export { RedisOptions, CommonRedisOptions } from "./redis/RedisOptions";
|
|
34
|
+
export { ClusterNode } from "./cluster";
|
|
35
|
+
export { ClusterOptions } from "./cluster/ClusterOptions";
|
|
36
|
+
export { NodeRole } from "./cluster/util";
|
|
34
37
|
export declare const ReplyError: any;
|
|
35
38
|
/**
|
|
36
39
|
* @ignore
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ioredis",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"description": "A robust, performance-focused and full-featured Redis client for Node.js.",
|
|
5
5
|
"main": "./built/index.js",
|
|
6
6
|
"types": "./built/index.d.ts",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"url": "https://opencollective.com/ioredis"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@ioredis/commands": "^1.1.
|
|
44
|
+
"@ioredis/commands": "^1.1.1",
|
|
45
45
|
"cluster-key-slot": "^1.1.0",
|
|
46
46
|
"debug": "^4.3.4",
|
|
47
47
|
"denque": "^2.0.1",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"standard-as-callback": "^2.1.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@ioredis/interface-generator": "^1.2.
|
|
55
|
+
"@ioredis/interface-generator": "^1.2.1",
|
|
56
56
|
"@semantic-release/changelog": "^6.0.1",
|
|
57
57
|
"@semantic-release/commit-analyzer": "^9.0.2",
|
|
58
58
|
"@semantic-release/git": "^10.0.1",
|