Skip to content

Releases: SGrondin/bottleneck

v2.13.1

01 Dec 23:17
Compare
Choose a tag to compare

v2.13.0

03 Nov 16:20
Compare
Choose a tag to compare
  • Added support for ES5 in Bottleneck v2. import Bottleneck from "bottleneck/es5";

v2.12.2

21 Oct 20:48
Compare
Choose a tag to compare
  • Added Bottleneck.BottleneckError to the TypeScript typings file.

v2.12.1

13 Oct 18:02
Compare
Choose a tag to compare
  • Optimized and improved accuracy of Batching

v2.12.0

09 Oct 14:58
Compare
Choose a tag to compare
  • Added new standalone feature called Batching.
    new Bottleneck.Batcher({ maxTime: 1000, maxSize: 25 });
    See Documentation for more information.

v2.11.2

02 Oct 18:00
Compare
Choose a tag to compare
  • Fixed Node process exiting early due to the reservoir reaching 0 when there are still queued jobs. This has been the source of much confusion for new users.
  • Optimized entering Blocked Mode when using Clustering.

v2.11.1

27 Sep 18:41
Compare
Choose a tag to compare
  • 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

21 Sep 00:21
Compare
Choose a tag to compare
  • Added the ability to manually control the creation and reuse of Redis connections via the connection option and the Bottleneck.RedisConnection and Bottleneck.IORedisConnection objects.

v2.10.0

13 Sep 20:19
Compare
Choose a tag to compare
  • Added the done() method which returns the total weight of completed jobs across the Cluster.
  • Added a new "Reservoir Refresh" feature. Every reservoirRefreshInterval, the reservoir value is automatically reset to reservoirRefreshAmount.
  • 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

06 Sep 18:58
Compare
Choose a tag to compare
  • Added support for pubsub across the Cluster. Use the publish() method and listen to the message 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 the error 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.