Releases: nodeshift/opossum
Releases · nodeshift/opossum
opossum v5.1.2
Bug Fixes
- type-error on empty action (#528) (7b51dba), closes #524
- upgrade @babel/core from 7.12.7 to 7.12.9 (#517) (2a28a73)
- upgrade @babel/preset-env from 7.12.10 to 7.12.11 (#527) (bce3bfc)
- upgrade babel-loader from 8.2.1 to 8.2.2 (#519) (654af20)
- upgrade multiple dependencies with Snyk (#513) (7e3ef5c)
- upgrade multiple dependencies with Snyk (#523) (480d2ff)
- upgrade webpack from 5.10.1 to 5.10.3 (#526) (e72394c)
- upgrade webpack from 5.4.0 to 5.6.0 (#512) (dc8f308)
- upgrade webpack from 5.6.0 to 5.8.0 (#518) (f4438c8)
- upgrade webpack from 5.8.0 to 5.9.0 (#520) (119ac47)
- upgrade webpack from 5.9.0 to 5.10.1 (#525) (d552015)
- using default parameter to avoid runtime error (#522) (6a6f08b)
Release v5.1.1 - Catching errors in the fallback
Release 5.1.0
Features
Bug Fixes
- lint issues in test (#499) (35ddd8c)
- package.json & package-lock.json to reduce vulnerabilities (#493) (03fed29)
- upgrade @babel/core from 7.12.1 to 7.12.3 (#490) (6a73957)
- upgrade babel-loader from 8.1.0 to 8.2.1 (#505) (885403b)
- upgrade documentation from 13.0.2 to 13.1.0 (#491) (cc94100)
- upgrade multiple dependencies with Snyk (#485) (efe299e)
- upgrade multiple dependencies with Snyk (#487) (3afaa17)
- upgrade webpack from 5.1.1 to 5.3.2 (#500) (1562a41)
- upgrade webpack-cli from 4.0.0 to 4.1.0 (#501) (63d20c2)
Reverts
Release 5.0.2
Bug Fixes
- Adding docs about fallback parameters (#460) (e8989b6), closes #459
- upgrade @babel/core from 7.11.0 to 7.11.1 (#458) (bd59b48)
- upgrade @babel/core from 7.11.1 to 7.11.4 (#463) (2d4318d)
- upgrade @babel/core from 7.11.5 to 7.11.6 (#467) (c0edb40)
- upgrade multiple dependencies with Snyk (#466) (4dc36ef)
- upgrade opener from 1.5.1 to 1.5.2 (#465) (96df963)
- upgrade webpack from 4.44.1 to 4.44.2 (#471) (a9d8b86)
Dropping Node 8
Version 4.2.4
v4.2.1 Release
Release 4.2.0
Adds CircuitBreaker#call() method
This allows the user to control the this
context within the function execution for a circuit. This method behaves in many ways like Function.prototype.call()
. It takes a this
context as the first parameter and any optional parameters as an argument list to the function. Here is an example usage:
const context = {
lunch: 'sushi'
};
async function getLunch (param) {
return param
? Promise.resolve(param)
: Promise.resolve(this.lunch);
}
getLunch.lunch = 'tacos';
const circuit = new CircuitBreaker(getLunch);
circuit.call()
.then(console.log) // logs 'tacos'
.then(_ => {
circuit.call(context)
.then(console.log) // logs 'sushi'
.then(_ => {
circuit.call(context, 'burgers')
.then(console.log); // logs 'burgers'
});
});
Extract metrics and remove factory function
4.0.0 (2019-08-21)
Breaking Changes
- The factory function has been removed in favor of simply using the
CircuitBreaker
constructor. - Prometheus and Hystrix metrics have been moved into their own repositories.
- We no longer keep a set of all circuits