npm rate-limiter-flexible 11.0.0
Wrappers don't require points and duration options

8 hours ago

What's Changed

  • #356 fix do not require points and duration options in wrappers by @animir in #357
  • RateLimiterCompatibleAbstract lightweight base class for custom wrappers
    Added a minimal abstract class that defines the core interface (consume, get, set, delete, penalty, reward, block, getKey) without requiring the full RateLimiterAbstract implementation. This makes it easy to build custom wrappers that work seamlessly with RateLimiterUnion, RLWrapperTimeouts, and insurance limiters.
  • Fixed RateLimiterStoreAbstract.set() incorrectly calling _block instead of _set
  • Fixed key parsing when keyPrefix is empty

[BREAKING CHANGES]
RLWrapperBlackAndWhite now extends RateLimiterCompatibleAbstract, and all union/wrapper/insurance classes accept both abstract types via a new isRateLimiterCompatible helper.

⏲️

Full Changelog: v10.0.1...v11.0.0

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

NewReleases is sending notifications on new releases.