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.