You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the docs of both commands (XCLAIM, XAUTOCLAIM) the reply will always be an array containing stream id and two other arrays.
Is this a mistype? A relic of past redis version? based on my very loose understanding the result should always be Array<StreamMessageReply>. I would love an explanation or if possible, a fix. I'd gladly create a PR for this but prefer to start a discussion for clarification.
Node.js Version
v18.18.0
Redis Server Version
7.4.1
Node Redis Version
4.7.0
Platform
Linux
The text was updated successfully, but these errors were encountered:
Hello @LiraNuna,
Before Redis 7, XCLAIM and XAUTOCLAIM could return nil, this breaking change to the response is documented here.
The union return type is there because we strive to keep the client libraries compatible with the three latest major versions of Redis.
Description
The return type of XCLAIM and XAUTOCLAIM commands indicates that the resulting messages might be null:
According to the docs of both commands (XCLAIM, XAUTOCLAIM) the reply will always be an array containing stream id and two other arrays.
Is this a mistype? A relic of past redis version? based on my very loose understanding the result should always be
Array<StreamMessageReply>
. I would love an explanation or if possible, a fix. I'd gladly create a PR for this but prefer to start a discussion for clarification.Node.js Version
v18.18.0
Redis Server Version
7.4.1
Node Redis Version
4.7.0
Platform
Linux
The text was updated successfully, but these errors were encountered: