redis 4.3.0 → 4.4.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/README.md CHANGED
@@ -22,7 +22,7 @@ node-redis is a modern, high performance [Redis](https://redis.io) client for No
22
22
  | [@redis/bloom](./packages/bloom) | [![Downloads](https://img.shields.io/npm/dm/@redis/bloom.svg)](https://www.npmjs.com/package/@redis/bloom) [![Version](https://img.shields.io/npm/v/@redis/bloom.svg)](https://www.npmjs.com/package/@redis/bloom) [![Docs](https://img.shields.io/badge/-documentation-dc382c)](https://redis.js.org/documentation/bloom/) [Redis Bloom](https://oss.redis.com/redisbloom/) commands |
23
23
  | [@redis/graph](./packages/graph) | [![Downloads](https://img.shields.io/npm/dm/@redis/graph.svg)](https://www.npmjs.com/package/@redis/graph) [![Version](https://img.shields.io/npm/v/@redis/graph.svg)](https://www.npmjs.com/package/@redis/graph) [![Docs](https://img.shields.io/badge/-documentation-dc382c)](https://redis.js.org/documentation/graph/) [Redis Graph](https://oss.redis.com/redisgraph/) commands |
24
24
  | [@redis/json](./packages/json) | [![Downloads](https://img.shields.io/npm/dm/@redis/json.svg)](https://www.npmjs.com/package/@redis/json) [![Version](https://img.shields.io/npm/v/@redis/json.svg)](https://www.npmjs.com/package/@redis/json) [![Docs](https://img.shields.io/badge/-documentation-dc382c)](https://redis.js.org/documentation/json/) [Redis JSON](https://oss.redis.com/redisjson/) commands |
25
- | [@redis/search](./packages/search) | [![Downloads](https://img.shields.io/npm/dm/@redis/search.svg)](https://www.npmjs.com/package/@redis/search) [![Version](https://img.shields.io/npm/v/@redis/search.svg)](https://www.npmjs.com/package/@redis/search) [![Docs](https://img.shields.io/badge/-documentation-dc382c)](https://redis.js.org/documentation/search/) [Redis Search](https://oss.redis.com/redisearch/) commands |
25
+ | [@redis/search](./packages/search) | [![Downloads](https://img.shields.io/npm/dm/@redis/search.svg)](https://www.npmjs.com/package/@redis/search) [![Version](https://img.shields.io/npm/v/@redis/search.svg)](https://www.npmjs.com/package/@redis/search) [![Docs](https://img.shields.io/badge/-documentation-dc382c)](https://redis.js.org/documentation/search/) [RediSearch](https://oss.redis.com/redisearch/) commands |
26
26
  | [@redis/time-series](./packages/time-series) | [![Downloads](https://img.shields.io/npm/dm/@redis/time-series.svg)](https://www.npmjs.com/package/@redis/time-series) [![Version](https://img.shields.io/npm/v/@redis/time-series.svg)](https://www.npmjs.com/package/@redis/time-series) [![Docs](https://img.shields.io/badge/-documentation-dc382c)](https://redis.js.org/documentation/time-series/) [Redis Time-Series](https://oss.redis.com/redistimeseries/) commands |
27
27
 
28
28
  > :warning: In version 4.1.0 we moved our subpackages from `@node-redis` to `@redis`. If you're just using `npm install redis`, you don't need to do anything—it'll upgrade automatically. If you're using the subpackages directly, you'll need to point to the new scope (e.g. `@redis/client` instead of `@node-redis/client`).
@@ -52,6 +52,7 @@ await client.connect();
52
52
 
53
53
  await client.set('key', 'value');
54
54
  const value = await client.get('key');
55
+ await client.disconnect();
55
56
  ```
56
57
 
57
58
  The above code connects to localhost on port 6379. To connect to a different host or port, use a connection string in the format `redis[s]://[[username][:password]@][host][:port][/db-number]`:
package/dist/index.d.ts CHANGED
@@ -5,8 +5,8 @@ export * from '@redis/graph';
5
5
  export * from '@redis/json';
6
6
  export * from '@redis/search';
7
7
  export * from '@redis/time-series';
8
- export declare const modules: {
9
- readonly graph: {
8
+ declare const modules: {
9
+ graph: {
10
10
  CONFIG_GET: typeof import("@redis/graph/dist/commands/CONFIG_GET");
11
11
  configGet: typeof import("@redis/graph/dist/commands/CONFIG_GET");
12
12
  CONFIG_SET: typeof import("@redis/graph/dist/commands/CONFIG_SET");
@@ -19,14 +19,14 @@ export declare const modules: {
19
19
  list: typeof import("@redis/graph/dist/commands/LIST");
20
20
  PROFILE: typeof import("@redis/graph/dist/commands/PROFILE");
21
21
  profile: typeof import("@redis/graph/dist/commands/PROFILE");
22
- QUERY_RO: typeof import("@redis/graph/dist/commands/QUERY_RO");
23
- queryRo: typeof import("@redis/graph/dist/commands/QUERY_RO");
24
22
  QUERY: typeof import("@redis/graph/dist/commands/QUERY");
25
23
  query: typeof import("@redis/graph/dist/commands/QUERY");
24
+ RO_QUERY: typeof import("@redis/graph/dist/commands/RO_QUERY");
25
+ roQuery: typeof import("@redis/graph/dist/commands/RO_QUERY");
26
26
  SLOWLOG: typeof import("@redis/graph/dist/commands/SLOWLOG");
27
27
  slowLog: typeof import("@redis/graph/dist/commands/SLOWLOG");
28
28
  };
29
- readonly json: {
29
+ json: {
30
30
  ARRAPPEND: typeof import("@redis/json/dist/commands/ARRAPPEND");
31
31
  arrAppend: typeof import("@redis/json/dist/commands/ARRAPPEND");
32
32
  ARRINDEX: typeof import("@redis/json/dist/commands/ARRINDEX");
@@ -68,7 +68,7 @@ export declare const modules: {
68
68
  TYPE: typeof import("@redis/json/dist/commands/TYPE");
69
69
  type: typeof import("@redis/json/dist/commands/TYPE");
70
70
  };
71
- readonly ft: {
71
+ ft: {
72
72
  _LIST: typeof import("@redis/search/dist/commands/_LIST");
73
73
  _list: typeof import("@redis/search/dist/commands/_LIST");
74
74
  ALTER: typeof import("@redis/search/dist/commands/ALTER");
@@ -136,7 +136,7 @@ export declare const modules: {
136
136
  TAGVALS: typeof import("@redis/search/dist/commands/TAGVALS");
137
137
  tagVals: typeof import("@redis/search/dist/commands/TAGVALS");
138
138
  };
139
- readonly ts: {
139
+ ts: {
140
140
  ADD: typeof import("@redis/time-series/dist/commands/ADD");
141
141
  add: typeof import("@redis/time-series/dist/commands/ADD");
142
142
  ALTER: typeof import("@redis/time-series/dist/commands/ALTER");
@@ -180,7 +180,7 @@ export declare const modules: {
180
180
  MREVRANGE_WITHLABELS: typeof import("@redis/time-series/dist/commands/MREVRANGE_WITHLABELS");
181
181
  mRevRangeWithLabels: typeof import("@redis/time-series/dist/commands/MREVRANGE_WITHLABELS");
182
182
  };
183
- readonly bf: {
183
+ bf: {
184
184
  ADD: typeof import("@redis/bloom/dist/commands/bloom/ADD");
185
185
  add: typeof import("@redis/bloom/dist/commands/bloom/ADD");
186
186
  EXISTS: typeof import("@redis/bloom/dist/commands/bloom/EXISTS");
@@ -200,7 +200,7 @@ export declare const modules: {
200
200
  SCANDUMP: typeof import("@redis/bloom/dist/commands/bloom/SCANDUMP");
201
201
  scanDump: typeof import("@redis/bloom/dist/commands/bloom/SCANDUMP");
202
202
  };
203
- readonly cms: {
203
+ cms: {
204
204
  INCRBY: typeof import("@redis/bloom/dist/commands/count-min-sketch/INCRBY");
205
205
  incrBy: typeof import("@redis/bloom/dist/commands/count-min-sketch/INCRBY");
206
206
  INFO: typeof import("@redis/bloom/dist/commands/count-min-sketch/INFO");
@@ -214,7 +214,7 @@ export declare const modules: {
214
214
  QUERY: typeof import("@redis/bloom/dist/commands/count-min-sketch/QUERY");
215
215
  query: typeof import("@redis/bloom/dist/commands/count-min-sketch/QUERY");
216
216
  };
217
- readonly cf: {
217
+ cf: {
218
218
  ADD: typeof import("@redis/bloom/dist/commands/cuckoo/ADD");
219
219
  add: typeof import("@redis/bloom/dist/commands/cuckoo/ADD");
220
220
  ADDNX: typeof import("@redis/bloom/dist/commands/cuckoo/ADDNX");
@@ -238,7 +238,37 @@ export declare const modules: {
238
238
  SCANDUMP: typeof import("@redis/bloom/dist/commands/cuckoo/SCANDUMP");
239
239
  scanDump: typeof import("@redis/bloom/dist/commands/cuckoo/SCANDUMP");
240
240
  };
241
- readonly topK: {
241
+ tDigest: {
242
+ ADD: typeof import("@redis/bloom/dist/commands/t-digest/ADD");
243
+ add: typeof import("@redis/bloom/dist/commands/t-digest/ADD");
244
+ BYRANK: typeof import("@redis/bloom/dist/commands/t-digest/BYRANK");
245
+ byRank: typeof import("@redis/bloom/dist/commands/t-digest/BYRANK");
246
+ BYREVRANK: typeof import("@redis/bloom/dist/commands/t-digest/BYREVRANK");
247
+ byRevRank: typeof import("@redis/bloom/dist/commands/t-digest/BYREVRANK");
248
+ CDF: typeof import("@redis/bloom/dist/commands/t-digest/CDF");
249
+ cdf: typeof import("@redis/bloom/dist/commands/t-digest/CDF");
250
+ CREATE: typeof import("@redis/bloom/dist/commands/t-digest/CREATE");
251
+ create: typeof import("@redis/bloom/dist/commands/t-digest/CREATE");
252
+ INFO: typeof import("@redis/bloom/dist/commands/t-digest/INFO");
253
+ info: typeof import("@redis/bloom/dist/commands/t-digest/INFO");
254
+ MAX: typeof import("@redis/bloom/dist/commands/t-digest/MAX");
255
+ max: typeof import("@redis/bloom/dist/commands/t-digest/MAX");
256
+ MERGE: typeof import("@redis/bloom/dist/commands/t-digest/MERGE");
257
+ merge: typeof import("@redis/bloom/dist/commands/t-digest/MERGE");
258
+ MIN: typeof import("@redis/bloom/dist/commands/t-digest/MIN");
259
+ min: typeof import("@redis/bloom/dist/commands/t-digest/MIN");
260
+ QUANTILE: typeof import("@redis/bloom/dist/commands/t-digest/QUANTILE");
261
+ quantile: typeof import("@redis/bloom/dist/commands/t-digest/QUANTILE");
262
+ RANK: typeof import("@redis/bloom/dist/commands/t-digest/RANK");
263
+ rank: typeof import("@redis/bloom/dist/commands/t-digest/RANK");
264
+ RESET: typeof import("@redis/bloom/dist/commands/t-digest/RESET");
265
+ reset: typeof import("@redis/bloom/dist/commands/t-digest/RESET");
266
+ REVRANK: typeof import("@redis/bloom/dist/commands/t-digest/REVRANK");
267
+ revRank: typeof import("@redis/bloom/dist/commands/t-digest/REVRANK");
268
+ TRIMMED_MEAN: typeof import("@redis/bloom/dist/commands/t-digest/TRIMMED_MEAN");
269
+ trimmedMean: typeof import("@redis/bloom/dist/commands/t-digest/TRIMMED_MEAN");
270
+ };
271
+ topK: {
242
272
  ADD: typeof import("@redis/bloom/dist/commands/top-k/ADD");
243
273
  add: typeof import("@redis/bloom/dist/commands/top-k/ADD");
244
274
  COUNT: typeof import("@redis/bloom/dist/commands/top-k/COUNT");
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.createCluster = exports.createClient = exports.modules = void 0;
17
+ exports.createCluster = exports.createClient = void 0;
18
18
  const client_1 = require("@redis/client");
19
19
  const bloom_1 = require("@redis/bloom");
20
20
  const graph_1 = require("@redis/graph");
@@ -27,7 +27,7 @@ __exportStar(require("@redis/graph"), exports);
27
27
  __exportStar(require("@redis/json"), exports);
28
28
  __exportStar(require("@redis/search"), exports);
29
29
  __exportStar(require("@redis/time-series"), exports);
30
- exports.modules = {
30
+ const modules = {
31
31
  ...bloom_1.default,
32
32
  graph: graph_1.default,
33
33
  json: json_1.default,
@@ -38,7 +38,7 @@ function createClient(options) {
38
38
  return (0, client_1.createClient)({
39
39
  ...options,
40
40
  modules: {
41
- ...exports.modules,
41
+ ...modules,
42
42
  ...options?.modules
43
43
  }
44
44
  });
@@ -48,7 +48,7 @@ function createCluster(options) {
48
48
  return (0, client_1.createCluster)({
49
49
  ...options,
50
50
  modules: {
51
- ...exports.modules,
51
+ ...modules,
52
52
  ...options?.modules
53
53
  }
54
54
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "redis",
3
3
  "description": "A modern, high performance Redis client",
4
- "version": "4.3.0",
4
+ "version": "4.4.0",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -23,10 +23,10 @@
23
23
  "gh-pages": "gh-pages -d ./documentation -e ./documentation -u 'documentation-bot <documentation@bot>'"
24
24
  },
25
25
  "dependencies": {
26
- "@redis/bloom": "1.0.2",
27
- "@redis/client": "1.3.0",
28
- "@redis/graph": "1.0.1",
29
- "@redis/json": "1.0.3",
26
+ "@redis/bloom": "1.1.0",
27
+ "@redis/client": "1.3.1",
28
+ "@redis/graph": "1.1.0",
29
+ "@redis/json": "1.0.4",
30
30
  "@redis/search": "1.1.0",
31
31
  "@redis/time-series": "1.0.3"
32
32
  },