Releases: SGrondin/bottleneck
Releases · SGrondin/bottleneck
v2.16.2
- Wrapped functions now inherit their
this
context. It allows for much nicer object-oriented code.
Thank you @elliot-nelson for this feature.
var object = {
value: "Hello World",
hello: limit.wrap(function () {
return this.value;
})
};
// When calling `object.hello()`, `this` = `object`
object.hello().then(console.log);
- Clustering code now handles
timeout
events (Redis key TTL expiration) more efficiently.
v2.16.1
v2.16.0
v2.15.3
v2.15.2
- Fixed an issue with Clustering, introduced in 2.14.0 or 2.15.1 depending on whether replication is being used, where it would not register that a client has become unresponsive, and this would lead to the whole cluster getting "stuck" due to assigning priority to that client. It would then only launch new jobs every 4-5s. This has been fixed and a strong test added.
v2.15.1
- Fixed a script exception when using Redis Cluster. More information in this issue.
v2.15.0
v2.14.1
- Adds a
light
bundle and exposes Bottleneck's internalEvents
library. See octokit/plugin-throttling.js#1 (comment)
v2.14.0
- Clustering now spreads load evenly across instances in the Cluster
- When using Clustering,
group.deleteKey(key)
now deletes keys (across the Cluster) even if they are not present in the local Group instance - Added
group.clusterKeys()
. Unlikegroup.keys()
, it returns all Group keys in the Cluster, not just those in the local Group instance.