Skip to content

@authentication/[email protected]

Choose a tag to compare

@ForbesLindesay ForbesLindesay released this 22 Jul 18:05
a6f52f2

Breaking Changes

  • Renamed the Store TypeScript interface to RateLimitStore (#17)

  • Removed support for stores with "transactions" (#17)

    They were often implemented incorrectly, which can lead to security vulnerabilities. It is much safer to enforce that optimistic concurrency is used.

New Features

  • Added the tryConsume method that returns an object indicating the result of consuming the token, rather than throwing an error. (#18)

Bug Fixes

  • Added type for the default export of @authentication/rate-limit/bucket and @authentication/rate-limit/exponential (#18)