Releases: animir/node-rate-limiter-flexible
Multiple SQLite clients support
RateLimiterSQLite
supportssqlite3
,better-sqlite3
andknex
clients now.
SetstoreType
option to one ofsqlite3
,better-sqlite3
orknex
, defaults tosqlite3
if not set.
Thank you @muco-rolle
🎁
SQLite support
RateLimiterSQLite
added. Thanks to @no-on3 and @muco-rollerate-limiter-flexible
supports SQLite now! 🐬
Check SQLite example.
Just a day after Valkey limiter release we are releasing SQLite support. One new database and one old (but still good) added to the list of the big family. Congrats!
Valkey support [zap]
-
RateLimiterValkey
added. Thanks to @gurgundayrate-limiter-flexible
supports Valkey now! ⚡
It can be used with iovalkey package. -
[breaking] Node.js support for version 16 was dropped.
Prisma unref timeout and DynamoDB ttlSet flag
- RateLimiterDynamo got
ttlSet
flag https://github.com/animir/node-rate-limiter-flexible/wiki/Options#ttlset that could be useful in serverless envirnoment to avoid extra requests. Thanks to @ollyfg. - RateLimiterPrisma unref timeout causing apps hanging. Thank you @0xturner.
🌕
Redis custom Lua script support
- RateLimiterRedis supports for
customIncrTtlLuaScript
option now. You can set custom Lua script as a string. It will be executed instead of built-in Lua script that is called on everyupsert
. See this rejected when consume more than maximum points and multiply delay test for example. Thanks to @roggervalf - Readme language fixes. Thanks to @DePasqualeOrg
👍
Prisma support
What's Changed
-
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: v4.0.1...v5.0.0
Fix RateLimiterMongo TypeError
DynamoDB support
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.
🐯
Fix RateLimiterUnion.consume return type
- RateLimiterUnion.consume return type fixed. Thanks to @Omers-Frontegg
Fix memory storage being not accurate with expired keys
- fix memory storage consuming points when msBeforeNext is negative (key is expired). Thank you @animir