Breaking Changes
-
Renamed the
StoreTypeScript interface toRateLimitStore(#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
tryConsumemethod 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/bucketand@authentication/rate-limit/exponential(#18)