Releases: nodeshift/opossum
Releases · nodeshift/opossum
v4.2.1 Release
08 Nov 15:34
Compare
Sorry, something went wrong.
No results found
4.2.1 (2019-11-08)
Bug Fixes
Release 4.2.0
28 Oct 22:15
Compare
Sorry, something went wrong.
No results found
4.2.0 (2019-10-28)
Bug Fixes
clear intervals on shutdown (#378 ) (91e2dbe )
Clear reset timer on open() (#383 ) (7f488f1 )
do not close if preexisting task resolves when state is not OPEN (#382 ) (7b92602 )
circuit: remove unneeded resolve() (#377 ) (cde55eb )
Features
Adds CircuitBreaker#call() method
16 Oct 13:43
Compare
Sorry, something went wrong.
No results found
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
21 Aug 22:32
Compare
Sorry, something went wrong.
No results found
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
DO NOT USE
21 Aug 22:28
Compare
Sorry, something went wrong.
No results found
Breaking changes were unintentionally pushed as a minor version release. Please either stick with 3.0.0 or bump to 4.0.0.
Version 3.0.0
26 Jul 15:35
Compare
Sorry, something went wrong.
No results found
3.0.0 (2019-07-26)
src
BREAKING CHANGES
Active Circuit Iterator
01 Jul 11:08
Compare
Sorry, something went wrong.
No results found
2.3.0 (2019-07-01)
Features
provide an Iterator of all active circuits (#344 ) (13616b0 )
Prometheus Options and Browser Love
24 Jun 11:04
Compare
Sorry, something went wrong.
No results found
2.2.0 (2019-06-24)
Bug Fixes
ensure that including dist/opossum.js works in the browser (#341 ) (873deb5 )
Features
Prometheus improvements
12 Jun 16:29
Compare
Sorry, something went wrong.
No results found
2.1.0 (2019-06-12)
Features
add function to get metrics for all circuits (#328 ) (ff29f2e )
Add original function parameters to the failure and timeout events (#326 ) (f8918c4 ), closes #324
Prometheus integration
05 Jun 18:47
Compare
Sorry, something went wrong.
No results found
2.0.0 (2019-06-05)
Build System
use node 12 on ci/cd in addition to 8 and 10 (93f8008 )
Features
prometheus client integration (282b467 )
Breaking Changes
health-check-failed and semaphore-locked events have been changed to healthCheckFailed and semaphoreLocked respectively