1
0
mirror of https://github.com/redis/node-redis.git synced 2025-12-12 21:21:15 +03:00

fix(client): export various enum values (#3074)

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.

fixes: #2805



Co-authored-by: Nikolay Karadzhov <nkaradzhov89@gmail.com>
This commit is contained in:
blackman
2025-10-08 16:47:57 +03:00
committed by GitHub
parent 5b63382e6a
commit d6d8d8e8ed
2 changed files with 16 additions and 8 deletions

View File

@@ -31,9 +31,7 @@ export const createSentinel = RedisSentinel.create;
export { GEO_REPLY_WITH, GeoReplyWith } from './lib/commands/GEOSEARCH_WITH';
export { SetOptions } from './lib/commands/SET';
export { REDIS_FLUSH_MODES } from './lib/commands/FLUSHALL';
export { SetOptions, CLIENT_KILL_FILTERS, FAILOVER_MODES, CLUSTER_SLOT_STATES, COMMAND_LIST_FILTER_BY, REDIS_FLUSH_MODES } from './lib/commands'
export { BasicClientSideCache, BasicPooledClientSideCache } from './lib/client/cache';