feat(client): add CLIENT UNBLOCK command#3266
Merged
nkaradzhov merged 1 commit intoMay 12, 2026
Merged
Conversation
|
Hi, I’m Jit, a friendly security platform designed to help developers build secure applications from day zero with an MVS (Minimal viable security) mindset. In case there are security findings, they will be communicated to you as a comment inside the PR. Hope you’ll enjoy using Jit. Questions? Comments? Want to learn more? Get in touch with us. |
nkaradzhov
approved these changes
May 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1916.
Adds support for the Redis
CLIENT UNBLOCKcommand in@redis/client.What changed:
CLIENT_UNBLOCKandclientUnblockTIMEOUT/ERRORmodes viaCLIENT_UNBLOCK_MODESCLIENT_UNBLOCK_MODESfrom the client packageValidation:
$env:TS_NODE_PROJECT='./packages/test-utils/tsconfig.json'; .\node_modules\.bin\mocha.cmd --require ts-node/register/transpile-only packages/client/lib/commands/CLIENT_UNBLOCK.spec.tsnpm run buildnpm run lint:changedNote:
npm cidid not run in this Windows/npm setup because the upstream lockfile is not in sync for optional platform packages; I usednpm install --ignore-scriptsfor local validation and did not commit dependency metadata changes.Note
Low Risk
Low risk: adds a new Redis command wrapper and related exports/tests without changing existing command behavior.
Overview
Adds support for Redis
CLIENT UNBLOCKto@redis/client, including newCLIENT_UNBLOCK/clientUnblockcommand entries and an exportedCLIENT_UNBLOCK_MODESenum forTIMEOUT/ERROR.The command implementation accepts numeric or numeric-string client IDs, conditionally appends the mode argument, and includes a new unit test covering argument parsing and mode handling.
Reviewed by Cursor Bugbot for commit 671c4b3. Bugbot is set up for automated code reviews on this repo. Configure here.