ioredis 5.4.1 → 5.4.2

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.
@@ -21,9 +21,12 @@ class DataHandler {
21
21
  this.returnReply(reply);
22
22
  },
23
23
  });
24
- redis.stream.on("data", (data) => {
24
+ // prependListener ensures the parser receives and processes data before socket timeout checks are performed
25
+ redis.stream.prependListener("data", (data) => {
25
26
  parser.execute(data);
26
27
  });
28
+ // prependListener() doesn't enable flowing mode automatically - we need to resume the stream manually
29
+ redis.stream.resume();
27
30
  }
28
31
  returnFatalError(err) {
29
32
  err.message += ". Please report this.";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ioredis",
3
- "version": "5.4.1",
3
+ "version": "5.4.2",
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",