redis 5.10.0 → 5.12.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
@@ -133,6 +133,17 @@ await client.hGet("key", "field"); // { field: <Buffer 76 61 6c 75 65> }
133
133
 
134
134
  ```
135
135
 
136
+ For commands that return serialized binary payloads, such as `DUMP`, map blob strings to `Buffer` before using the result with commands like `RESTORE`:
137
+
138
+ ```typescript
139
+ const binaryClient = createClient().withTypeMapping({
140
+ [RESP_TYPES.BLOB_STRING]: Buffer
141
+ });
142
+
143
+ const dump = await binaryClient.dump("source");
144
+ await binaryClient.restore("destination", 0, dump);
145
+ ```
146
+
136
147
  ### Unsupported Redis Commands
137
148
 
138
149
  If you want to run commands and/or use arguments that Node Redis doesn't know about (yet!) use `.sendCommand()`:
package/dist/index.d.ts CHANGED
@@ -522,9 +522,9 @@ declare const modules: {
522
522
  HYBRID: {
523
523
  readonly NOT_KEYED_COMMAND: true;
524
524
  readonly IS_READ_ONLY: true;
525
- readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, index: import("@redis/client").RedisArgument, options?: import("@redis/search/dist/lib/commands/HYBRID").FtHybridOptions | undefined) => void;
525
+ readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, index: import("@redis/client").RedisArgument, options: import("@redis/search/dist/lib/commands/HYBRID").FtHybridOptions) => void;
526
526
  readonly transformReply: {
527
- readonly 2: (reply: any) => any;
527
+ readonly 2: (reply: any) => import("@redis/search/dist/lib/commands/HYBRID").HybridSearchResult;
528
528
  readonly 3: () => import("@redis/client/dist/lib/RESP/types").ReplyUnion;
529
529
  };
530
530
  readonly unstableResp3: true;
@@ -532,9 +532,9 @@ declare const modules: {
532
532
  hybrid: {
533
533
  readonly NOT_KEYED_COMMAND: true;
534
534
  readonly IS_READ_ONLY: true;
535
- readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, index: import("@redis/client").RedisArgument, options?: import("@redis/search/dist/lib/commands/HYBRID").FtHybridOptions | undefined) => void;
535
+ readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, index: import("@redis/client").RedisArgument, options: import("@redis/search/dist/lib/commands/HYBRID").FtHybridOptions) => void;
536
536
  readonly transformReply: {
537
- readonly 2: (reply: any) => any;
537
+ readonly 2: (reply: any) => import("@redis/search/dist/lib/commands/HYBRID").HybridSearchResult;
538
538
  readonly 3: () => import("@redis/client/dist/lib/RESP/types").ReplyUnion;
539
539
  };
540
540
  readonly unstableResp3: true;
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": "5.10.0",
4
+ "version": "5.12.0",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -13,14 +13,14 @@
13
13
  "release": "release-it"
14
14
  },
15
15
  "dependencies": {
16
- "@redis/bloom": "5.10.0",
17
- "@redis/client": "5.10.0",
18
- "@redis/json": "5.10.0",
19
- "@redis/search": "5.10.0",
20
- "@redis/time-series": "5.10.0"
16
+ "@redis/bloom": "5.12.0",
17
+ "@redis/client": "5.12.0",
18
+ "@redis/json": "5.12.0",
19
+ "@redis/search": "5.12.0",
20
+ "@redis/time-series": "5.12.0"
21
21
  },
22
22
  "engines": {
23
- "node": ">= 18"
23
+ "node": ">= 18.19.0"
24
24
  },
25
25
  "repository": {
26
26
  "type": "git",