Skip to content

Releases: nodeshift/opossum

v5.1.3

26 Jan 21:45
3cb7de9
Compare
Choose a tag to compare

Bug Fixes

  • package.json & package-lock.json to reduce vulnerabilities (#533) (deaa258)
  • upgrade standard-version from 9.0.0 to 9.1.0 (#535) (3665bb0)
  • upgrade tape from 5.0.1 to 5.1.0 (#534) (be93012)
  • upgrade tape from 5.1.0 to 5.1.1 (#537) (78db7ba)
  • upgrade webpack from 5.10.3 to 5.11.0 (#529) (039fb48)
  • upgrade webpack from 5.11.0 to 5.11.1 (#532) (67d850e)
  • upgrade webpack-cli from 4.2.0 to 4.3.0 (#531) (9625ff7)
  • upgrade webpack-cli from 4.3.0 to 4.3.1 (#536) (afcc950)

opossum v5.1.2

07 Jan 15:41
4120f8b
Compare
Choose a tag to compare

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

07 Dec 16:14
2084957
Compare
Choose a tag to compare

Bug Fixes

  • catch exceptions in fallback functions (#510) (34f75a2)
  • upgrade webpack from 5.3.2 to 5.4.0 (#507) (05a8876)
  • upgrade webpack-cli from 4.1.0 to 4.2.0 (#506) (ba91b77)

Release 5.1.0

02 Dec 15:29
7510312
Compare
Choose a tag to compare

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

  • Revert "build: use pull_request_target in actions workflow (#476)" (3fa32b9), closes #476

Release 5.0.2

15 Oct 23:07
7f4dc03
Compare
Choose a tag to compare

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

20 Feb 15:13
Compare
Choose a tag to compare

5.0.0 (2020-02-20)

Breaking Changes:

  • Targeting Node 10+

Version 4.2.4

22 Jan 15:16
Compare
Choose a tag to compare

4.2.4 (2020-01-22)

Bug Fixes

v4.2.1 Release

08 Nov 15:34
Compare
Choose a tag to compare

4.2.1 (2019-11-08)

Bug Fixes

Release 4.2.0

28 Oct 22:15
Compare
Choose a tag to compare

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
v4.1.0
57df828
Compare
Choose a tag to compare

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'
      });
  });