Skip to content

v2.16.2

Compare
Choose a tag to compare
@SGrondin SGrondin released this 10 Feb 23:01
· 48 commits to master since this release
  • 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.