npm rate-limiter-flexible 2.0.0
Redis Lua script + deprecated things removed

latest releases: 5.0.4, 5.0.3, 5.0.2...
4 years ago

Changes

  • Redis uses Lua script for expiring atomic increments. It allowed to remove a hack, which made extra queries to Redis, when TTL is not set on key set.
  • RateLimiterCluster options type fixed.

BREAKING CHANGES:

  • isWhite and isBlack getters/setters and options support removed from RLWrapperBlackAndWhite. isWhiteListed and isBlackListed options should be used instead.
  • IRateLimiterResOptions interface type removed from lib/index.d.ts. IRateLimiterRes should be used.

Don't miss a new rate-limiter-flexible release

NewReleases is sending notifications on new releases.