Releases: liaoliaots/nestjs-redis
Releases · liaoliaots/nestjs-redis
v10.0.0
BREAKING CHANGE:
- This lib require Node.js >= 16.13.0 (first LTS version), NestJS ^10, ioredis ^ 5
- In some cases
InjectRedis
andInjectCluster
won't handle dependencies correctly(for example: a module import RedisModule and re-export it will cause "Cannot resolve dependency" error) thus leading to errors and there is no better solution soInjectRedis
andInjectCluster
was removed and please useRedisService
&ClusterService
instead which is the most stable solution. RedisService
&ClusterService
has two instance methods:getOrThrow
: Retrieves a redis|cluster connection by namespace. However, if the query does not find a connection, it returnsClientNotFoundError
: No Connection found error.getOrNil
: Retrieves a redis|cluster connection by namespace, if the query does not find a connection, it returnsnull
;
Bug Fixes
- fix: application shutdown, thanks #536 @DecathectZero, Issue Number: #335
Others
- add
exports
,type
field for modern Node.js - bump
tslib
dependency to 2.7.0
v10.0.0-alpha.3 - Pre Release
- new TypeScript build options,
"module": "Node16"
,"moduleResolution": "Node16"
- add
exports
type
field in package.json for modern Node.js - this lib requires Node.js>=16.13.0 (the first lts version) or higher
- publish test
v10.0.0-alpha.2 - Incoming Changes
- This lib support both node-redis and ioredis, the minimum required version is
node-redis^4.1.0
,ioredis^5.0.0
. - In some cases
InjectRedis
andInjectCluster
won't handle dependencies correctly(for example: a module import RedisModule and re-export it will cause "Cannot resolve dependency" error) thus leading to errors and there is no better solution soInjectRedis
andInjectCluster
will be removed and please useRedisManager
&ClusterManager
instead which is the most stable solution.
v9.0.5
nestjs-redis-health: v9.0.4
v9.0.4
nestjs-redis-health: v9.0.3
v9.0.3
9.0.3 - 2022-10-02
Other
- build with
[email protected] LTS
[email protected]
- regenerate dependency graphs (#366)
- use index.d.ts of
jest-extended
directly instead of global.d.ts file (#366) - bump
@liaoliaots/nestjs-redis
to 9.0.3 (#366) - bump
@liaoliaots/nestjs-redis-health
to 9.0.2 (#366)