Skip to content

feat(client): add CLIENT UNBLOCK command#3266

Merged
nkaradzhov merged 1 commit into
redis:masterfrom
raashish1601:codex/client-unblock-command
May 12, 2026
Merged

feat(client): add CLIENT UNBLOCK command#3266
nkaradzhov merged 1 commit into
redis:masterfrom
raashish1601:codex/client-unblock-command

Conversation

@raashish1601
Copy link
Copy Markdown
Contributor

@raashish1601 raashish1601 commented May 11, 2026

Closes #1916.

Adds support for the Redis CLIENT UNBLOCK command in @redis/client.

What changed:

  • adds CLIENT_UNBLOCK and clientUnblock
  • supports numeric and string client IDs
  • supports optional TIMEOUT / ERROR modes via CLIENT_UNBLOCK_MODES
  • exports CLIENT_UNBLOCK_MODES from the client package
  • adds parse-argument coverage

Validation:

  • $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.ts
  • npm run build
  • npm run lint:changed

Note: npm ci did not run in this Windows/npm setup because the upstream lockfile is not in sync for optional platform packages; I used npm install --ignore-scripts for 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 UNBLOCK to @redis/client, including new CLIENT_UNBLOCK/clientUnblock command entries and an exported CLIENT_UNBLOCK_MODES enum for TIMEOUT/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.

@jit-ci
Copy link
Copy Markdown

jit-ci Bot commented May 11, 2026

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 nkaradzhov merged commit 25bb055 into redis:master May 12, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for redis command: CLIENT UNBLOCK

2 participants