Releases: SGrondin/bottleneck
Releases · SGrondin/bottleneck
v2.13.1
- Fixed a subtle memory leak due to a function scoping change. The issue was introduced in
v2.10.0
. - Improved how Groups expire Redis data fixed and an issue where blank Redis keys would be recreated even when a Group key was not being used. This issue was also introduced in
v2.10.0
and tests have been added.
v2.13.0
v2.12.2
v2.12.1
v2.12.0
- Added new standalone feature called Batching.
new Bottleneck.Batcher({ maxTime: 1000, maxSize: 25 });
See Documentation for more information.
v2.11.2
v2.11.1
- Fixed an issue with reservoir refresh where the very first refresh would happen too early.
- Reduced the heartbeat for local datastores to 250ms. It is still 5000ms for redis/ioredis datastores. This allows local limiters to set a
reservoirRefreshInterval
value as low as 250ms.
v2.11.0
v2.10.0
- Added the
done()
method which returns the total weight of completed jobs across the Cluster. - Added a new "Reservoir Refresh" feature. Every
reservoirRefreshInterval
, thereservoir
value is automatically reset toreservoirRefreshAmount
. - Fixed a number of edge cases with Clustering and improved its performance.
It is strongly recommended to upgrade to this version if you are using Clustering.
v2.9.0
- Added support for pubsub across the Cluster. Use the
publish()
method and listen to themessage
event on a limiter. - Removed the need to wait for the
ready()
promise to complete before issuing commands. The commands will be queued until the limiter successfully connects. Make sure to listen to theerror
event to handle connection errors. - Added the
jobs()
method to return a list of job ids in a specific state. - Fixed an edge case with certain methods (like
check()
) when a Group key is recreated after timing out.