Sitelet https://github.com/redis/node-redis/pull/3074
Skip to content

Fix client kill enums - #3074

Merged
nkaradzhov merged 6 commits into
redis:masterfrom
watersRand:fix-client-kill-enums
Oct 8, 2025
Merged

nkaradzhov merged 6 commits into
redis:masterfrom
watersRand:fix-client-kill-enums

Conversation

@watersRand

Copy link
Copy Markdown
Contributor

This pull request resolves the issue where certain command parameter enums, specifically ClientKillFilters for the CLIENT KILL command, were not publicly exported by the @redis/client package. The purpose of this change is to make the ClientKillFilters enum accessible to all package consumers, eliminating the need for users to rely on an unstable internal import path.

This matters because it provides a reliable and supported way for developers to use commands that require these enums, improving the package's usability and API stability.

Closes #2805

@nkaradzhov

Copy link
Copy Markdown
Collaborator

Hi @watersRand, sorry for the late response and thanks for the contribution! This looks good, but we can do a little better here by exporting those to the top level so users can import { CLIENT_KILL_FILTERS } from 'redis'. I made a PR to your branch, so you can just take the changes and we can progress from there

@nkaradzhov
nkaradzhov self-requested a review October 8, 2025 13:44

@nkaradzhov nkaradzhov left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CLGTM

@nkaradzhov
nkaradzhov merged commit d6d8d8e into redis:master Oct 8, 2025
17 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.

Command parameter enums not exported

2 participants