Releases: natesilva/p-ratelimit
Releases · natesilva/p-ratelimit
v1.0.1
v1.0.0
- fix: address a timing issue 9b6ebb7
- chore: update dependencies c203f61
- feat!: require Node 10 3adfbf5
- 💥 BREAKING CHANGE — the minimum required Node version is 10
- test: update to latest version of Ava 9528f59
- Bump dot-prop from 4.2.0 to 4.2.1 c964374
- Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/ini-1.3.7' a04e7e4
- Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/handlebars-4.7.6' a80a7c1
- Bump ini from 1.3.5 to 1.3.7 551ac87
- Bump handlebars from 4.1.2 to 4.7.6 9121741
- Bump lodash from 4.17.14 to 4.17.19 e2d4615
v0.11.0
- support IORedis cluster clients 3d6a583
- improved sublime project config 2d9f762
- updated dependencies 5f412eb
- quota manager tests can use a live Redis server 7c39824
- Merge pull request #3 from mjdavidson/master 6623941
- create a type alias for IORedis and other clients fd5208e
- add ts support for ioredis a36ef5a
v0.10.1
v0.10.0
-
Using the
rate
option withoutinterval
, or vice-versa, now throws anError
. (It’s okay to use neitherrate
norinterval
if you don’t want rate-limiting; perhaps you only wantconcurrency
limits.) -
You can call pRateLimit with no options (
pRateLimit()
) and this works as a no-op (it doesn’t do any rate limiting), but it prints a warning to the console. To indicate that, yes, you know what you’re doing and really want a no-op, call it like this:pRateLimit({})
.
v0.9.5
v0.9.4
- Support for specialty Redis clients that do not support the
client.duplicate()
function.- For these clients, instead of passing in a Redis client to
RedisQueueManager
, pass an array of two initialized clients. - This has been tested with Redis cluster (using
IORedis.Cluster
) and withfakeredis
.
- For these clients, instead of passing in a Redis client to
v0.9.3
- New:
fastStart
option allows quicker startup when using distributed rate limiting. [documentation]