Skip to content

v10.0.0

Latest
Compare
Choose a tag to compare
@liaoliaots liaoliaots released this 25 Sep 18:20
· 2 commits to main since this release
13e056f

BREAKING CHANGE:

  • This lib require Node.js >= 16.13.0 (first LTS version), NestJS ^10, ioredis ^ 5
  • In some cases InjectRedis and InjectCluster 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 so InjectRedis and InjectCluster was removed and please use RedisService & 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 returns ClientNotFoundError: No Connection found error.
    • getOrNil: Retrieves a redis|cluster connection by namespace, if the query does not find a connection, it returns null;

Bug Fixes

Others

  • add exports, type field for modern Node.js
  • bump tslib dependency to 2.7.0