v6.0.0
6.0.0 - 2022-02-20
BREAKING CHANGES ⚠️
-
remove exports for
RedisStatus
andClusterStatus
, those should be used internally (#189) (531af15) -
change default namespace from
Symbol('default')
to'default'
for best readability of the logs. Please note that you shouldn't have multiple client without a namespace, or with the same namespace, otherwise they will get overridden. (#189) (3849b48)
export const DEFAULT_REDIS_NAMESPACE = 'default'; // redis
export const DEFAULT_CLUSTER_NAMESPACE = 'default'; // cluster
Fixed
- use correct approach instead of
instanceof
to prevent some bugs in realms environment (#189) (08d7ede)
Added
- add
isGlobal
option as the second param to control whether the module is global-scoped and set its default value totrue
(#189) (617d204)
// redis
static forRoot(options: RedisModuleOptions = {}, isGlobal = true): DynamicModule;
static forRootAsync(options: RedisModuleAsyncOptions, isGlobal = true): DynamicModule;
// cluster
static forRoot(options: ClusterModuleOptions, isGlobal = true): DynamicModule;
static forRootAsync(options: ClusterModuleAsyncOptions, isGlobal = true): DynamicModule;
Security
- update npm dependencies
Changed
- update project config: ci, template, eslint, package, docker-compose.yml, etc
- update code comments for
checkHealth
- extract common utils
- update messages for health
- update unit tests and e2e tests
- docs: add v5 docs, update README.md, update redis, cluster, health