Skip to content

Releases: liaoliaots/nestjs-redis

v4.1.0

09 Oct 06:20
6eb1bd8
Compare
Choose a tag to compare

What's Changed

New

  • add extraProviders async option
  • export RedisStatus and ClusterStatus for some use cases

Bug Fixes

  • await clients quit instead of .catch()

Improvements

  • remove unnecessary wrapper module to increase perf

Maintenance

  • use redis-errors lib instead of custom error
  • add default module options to prevent some possible issues
  • update messages
  • update api comments
  • add engines field
  • update README.md, redis/cluster docs
  • update dependencies

v4.0.1

27 Sep 11:43
Compare
Choose a tag to compare

What's Changed

Maintenance

  • update code comments (#111)

Documentation

  • update README.md
  • update redis/cluster

v4.0.0

27 Sep 09:21
Compare
Choose a tag to compare

What's Changed

⚠️ BREAKING CHANGES

  • [redis] rename RedisService to RedisManager for better semantics, no other changes (#110)
  • [cluster] rename ClusterService to ClusterManager for better semantics, no other changes (#110)

Migration from v3 to v4

v3

import { RedisService, ClusterService } from '@liaoliaots/nestjs-redis';

v4

import { RedisManager, ClusterManager } from '@liaoliaots/nestjs-redis';

Documentation

  • update examples

Maintenance

  • update dependencies
  • update github actions

v3.1.1

19 Sep 14:26
Compare
Choose a tag to compare

What's Changed

Bug Fixes

  • fix error messages typo (#108)

Documentation

  • update redis/cluster
  • update README.md

Maintenance

  • update dependencies
  • update 01-testing-inject sample

v3.1.0

15 Sep 15:07
922714e
Compare
Choose a tag to compare

What's Changed

New

redis

  • add new readyLog option to display a message on client ready (#107)

cluster

  • add new readyLog option to display a message on client ready (#107)

Maintenance

redis

  • change default namespace to Symbol('default') (#107)
  • update message of quitClients (#107)

cluster

  • change default namespace to Symbol('default') (#107)
  • update message of quitClients (#107)

Documentation

  • fix menu links
  • update redis/cluster docs
  • update examples
  • update health checks

v3.0.0

06 Sep 14:22
Compare
Choose a tag to compare

What's Changed

⚠️ BREAKING CHANGES

  • drop support for @nestjs/terminus@next - please use v8

redis

  • rename DEFAULT_REDIS_CLIENT to DEFAULT_REDIS_NAMESPACE (#66)
  • rename ClientOptions to RedisClientOptions (#98)
  • rename defaultOptions to commonOptions (#98)

cluster

  • rename DEFAULT_CLUSTER_CLIENT to DEFAULT_CLUSTER_NAMESPACE (#66)
  • rename ClientOptions to ClusterClientOptions (#98)

health checks

  • if you don't use health check, you don't have to install @nestjs/terminus
  • rename check to checkHealth

For now, you need to import RedisHealthModule and RedisHealthIndicator via:

import { RedisHealthModule, RedisHealthIndicator } from '@liaoliaots/nestjs-redis/health';
  1. add RedisHealthModule to imports list of @Module() decorator
  2. inject RedisHealthIndicator provider into our service, controller, etc
  3. pass the redis or cluster client to it

Bug Fixes

  • avoid provider overridden (#85) (#95)

New

redis:

  • add getRedisToken to get internal DI token (#95)

cluster:

  • add getClusterToken to get internal DI token (#95)

Maintenance

  • update dependencies
  • preserve code comments
  • update github actions, add unit-testing action
  • update error messages
  • use fastify for e2e testing
  • update unit and e2e tests
  • update config

v3.0.0-next.3

14 Jul 15:56
Compare
Choose a tag to compare
v3.0.0-next.3 Pre-release
Pre-release

What's Changed

Bug Fixes

  • make quit promise safe
  • use quit for status ready, otherwise use disconnect (#56)

Documentation

  • update test coverage
  • update menus
  • other updates

v3.0.0-next.2

12 Jul 16:43
8ac8a2a
Compare
Choose a tag to compare
v3.0.0-next.2 Pre-release
Pre-release

What's Changed

Maintenance

  • remove unnecessary packages check

Documentation

  • update test coverage
  • update dependency graph

v3.0.0-next.1

12 Jul 15:32
Compare
Choose a tag to compare
v3.0.0-next.1 Pre-release
Pre-release

What's Changed

Maintenance

  • remove node engines

v3.0.0-next.0

12 Jul 15:20
Compare
Choose a tag to compare
v3.0.0-next.0 Pre-release
Pre-release

What's Changed

BREAKING CHANGES

  • drop support for NestJS 7 - For NestJS 7 please use @liaoliaots/nestjs-redis 2.x

Documentation

  • update install
  • other updates

Maintenance

  • add engines field