Atomic counters and rate limiting tools. Limit resource access at any scale.
Add RateLimiterPrisma
. Read about it on Wiki. Prisma supports PostgreSQL, MySQL, SQLite, MongoDB and many other databases. Thank you @animir
Test environment and github actions got a number of improvements. Thank you @mroderick
BREAKING CHANGES: we dropped support for Node.js 14
and all previous versions.
Full Changelog: https://github.com/animir/node-rate-limiter-flexible/compare/v4.0.1...v5.0.0
RateLimiterMongo TypeError: Cannot read properties of null (reading 'value')
error was fixed. See https://github.com/animir/node-rate-limiter-flexible/issues/251 for reference.
Thanks to @o-ali
Thanks to @Daniel-97 rate-limiter-flexible
supports DynamoDB now!
Usage example can be found here.
BREAKING CHANGES: we dropped support for Node.js 12 and previous versions.
:tiger:
schemaName
to RateLimiterPostgres limiter. Thanks to @paulsc54:honey_pot:
I have really great news!
rate-limiter-flexible
supports ioredis
v4+ and redis
v4+ now.
We have been waiting for this moment for years.
Thanks to @roggervalf. And one big thank you from me personally
Since this is major release, there are
BREAKING CHANGES:
rate-limiter-flexible
works with ioredis
package of any version (tested versions 2, 3, 4 and 5) by default now.redis
package version 4 or later, you should set useRedisPackage flag.redis
client with legacyMode: true
, you should remove it.redis
of version 3 or lower, you should stick to rate-limiter-flexible
version 2. Or try the experimental useRedis3AndLowerPackage option.inmemory
prefix are removed. You can use inMemoryBlockOnConsumed and
inMemoryBlockDuration instead.redis
option for RateLimiterRedis
was removed. (Most likely you never heard about it, since it was deprecated years ago). You should use storeClient
option instead.Thank you @dmozgovoi for the quick improvement.
In some cases especially with insuranceLimiter set it is important to reject requests quickly based on Redis client status being not ready
. Thanks @dmozgovoi
Thank you @svsool