Skip to content

Latest commit

 

History

History
735 lines (403 loc) · 49.6 KB

CHANGELOG.md

File metadata and controls

735 lines (403 loc) · 49.6 KB

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

7.1.0 (2023-01-19)

Features

  • enter halfOpen state on reinitialization if required (#720) (f20c63c)
  • upgrade babel-loader from 8.2.5 to 9.1.0 (#714) (2226eb4)
  • upgrade webpack-cli from 4.10.0 to 5.0.1 (#715) (47fd10e)

Bug Fixes

  • package.json & package-lock.json to reduce vulnerabilities (#707) (7376408)
  • upgrade @babel/core from 7.19.3 to 7.19.6 (#695) (3c55164)
  • upgrade @babel/core from 7.19.6 to 7.20.5 (#713) (46e4d63)
  • upgrade @babel/core from 7.20.5 to 7.20.7 (#717) (fe2a93a)
  • upgrade eslint from 8.25.0 to 8.29.0 (#711) (3a59b42)
  • upgrade eslint from 8.29.0 to 8.30.0 (#716) (acd4cd3)
  • upgrade eslint-plugin-n from 15.3.0 to 15.6.0 (#710) (f5297b8)
  • upgrade serve from 14.0.1 to 14.1.2 (#712) (0667152)
  • upgrade webpack from 5.74.0 to 5.75.0 (#705) (99c6b0d)

7.0.1 (2022-11-28)

Bug Fixes

  • upgrade @babel/preset-env from 7.19.3 to 7.19.4 (#691) (26c3ce7)
  • upgrade eslint from 8.14.0 to 8.24.0 (#686) (c030d9c)
  • upgrade eslint from 8.24.0 to 8.25.0 (#690) (8c37e10)
  • upgrade eslint-plugin-n from 15.2.0 to 15.3.0 (#687) (e9f540e)
  • upgrade eslint-plugin-promise from 6.0.1 to 6.1.0 (#692) (fd03739)
  • upgrade multiple dependencies with Snyk (#688) (4c634a4)
  • upgrade util from 0.12.4 to 0.12.5 (#693) (dec7c75)

7.0.0 (2022-10-13)

⚠ BREAKING CHANGES

  • drop Node.js 12 (#664)

Features

  • adds AbortController support (#674) (4b5f9f6)
  • upgrade eslint-config-semistandard from 16.0.0 to 17.0.0 (#667) (dab109b)
  • upgrade husky from 7.0.4 to 8.0.0 (#654) (5807884)
  • upgrade serve from 13.0.4 to 14.0.1 (#677) (3af0318)

Bug Fixes

  • package.json & package-lock.json to reduce vulnerabilities (#672) (00c6b08)
  • upgrade eslint-plugin-promise from 6.0.0 to 6.0.1 (#678) (27e3446)
  • upgrade husky from 8.0.0 to 8.0.1 (#679) (2b24410)
  • upgrade serve from 13.0.2 to 13.0.4 (#666) (9bcbc19)
  • upgrade tape from 5.5.3 to 5.6.0 (#676) (54fc8d0)
  • upgrade tape from 5.6.0 to 5.6.1 (#683) (626038f)

Miscellaneous Chores

6.4.0 (2022-06-13)

Features

  • upgrade eslint-config-semistandard from 15.0.1 to 16.0.0 (#632) (6d96a26)
  • upgrade husky from 6.0.0 to 7.0.4 (#630) (fbaa492)
  • upgrade serve from 11.3.2 to 13.0.2 (#631) (5bbb4a8)

Bug Fixes

  • upgrade @babel/core from 7.17.4 to 7.17.5 (#644) (8a31e72)
  • upgrade @babel/core from 7.17.5 to 7.17.7 (#646) (2eb0e25)
  • upgrade @babel/preset-env from 7.16.10 to 7.16.11 (#637) (20e9379)
  • upgrade babel-loader from 8.2.3 to 8.2.4 (#647) (caf22ee)
  • upgrade eslint-plugin-import from 2.25.4 to 2.26.0 (#649) (60d5f21)
  • upgrade multiple dependencies with Snyk (#636) (3561571)
  • upgrade tape from 5.3.2 to 5.4.0 (#626) (308ff6a)
  • upgrade tape from 5.4.1 to 5.5.0 (#642) (e657ab1)
  • upgrade webpack-cli from 4.9.1 to 4.9.2 (#639) (3d28b3d)

6.3.0 (2022-01-10)

Features

  • using semistandard and fixed some typos (#617) (7506923)

Bug Fixes

  • breaker should emit a shutdown event when it is shutdown (#625) (ea4d058), closes #620
  • upgrade @babel/core from 7.15.4 to 7.15.5 (#604) (709530d)
  • upgrade @babel/core from 7.16.0 to 7.16.5 (#622) (43edde6)
  • upgrade @babel/preset-env from 7.15.4 to 7.15.6 (#605) (eb1d279)
  • upgrade @babel/preset-env from 7.16.0 to 7.16.5 (#623) (b875a23)
  • upgrade babel-loader from 8.2.2 to 8.2.3 (#611) (dc31373)
  • upgrade eslint-plugin-import from 2.24.1 to 2.24.2 (#602) (940d3f6)
  • upgrade eslint-plugin-import from 2.24.2 to 2.25.1 (#608) (f827090)
  • upgrade eslint-plugin-import from 2.25.1 to 2.25.2 (#609) (c589ad0)
  • upgrade eslint-plugin-import from 2.25.2 to 2.25.3 (#614) (2084fcc)
  • upgrade eslint-plugin-promise from 5.1.0 to 5.1.1 (#619) (0139be6)
  • upgrade eslint-plugin-promise from 5.1.1 to 5.2.0 (#621) (a2d11b8)
  • upgrade multiple dependencies with Snyk (#603) (ed3fe4f)
  • upgrade multiple dependencies with Snyk (#606) (0385cbd)
  • upgrade multiple dependencies with Snyk (#612) (78982f8)
  • upgrade tape from 5.2.2 to 5.3.1 (#599) (54b2a64)
  • upgrade tape from 5.3.1 to 5.3.2 (#616) (42f21ed)
  • upgrade webpack-cli from 4.7.2 to 4.8.0 (#600) (09744be)
  • upgrade webpack-cli from 4.8.0 to 4.9.0 (#607) (ebadc43)
  • upgrade webpack-cli from 4.9.0 to 4.9.1 (#610) (b390eb1)

6.2.1 (2021-08-23)

Bug Fixes

  • @babel/core, @babel/preset-env (#582) (b5291ac)
  • upgrade coveralls from 3.1.0 to 3.1.1 (#590) (211dffa)
  • upgrade documentation from 13.1.1 to 13.2.5 (#583) (b9d7bc2)
  • upgrade eslint from 7.24.0 to 7.29.0 (#585) (c4570f8)
  • upgrade eslint from 7.29.0 to 7.30.0 (#592) (2747b82)
  • upgrade eslint from 7.30.0 to 7.31.0 (#594) (536b312)
  • upgrade eslint from 7.31.0 to 7.32.0 (#597) (1e7ca08)
  • upgrade eslint-config-standard from 16.0.2 to 16.0.3 (#589) (ec1c3de)
  • upgrade eslint-plugin-import from 2.22.1 to 2.23.4 (#584) (15a0b18)
  • upgrade tape from 5.2.0 to 5.2.2 (#588) (4139fd7)
  • upgrade webpack-cli from 4.5.0 to 4.7.2 (#586) (d588890)

6.2.0 (2021-07-07)

Features

  • initialize the state of a breaker on creation (#574) (b3dd431)

6.1.0 (2021-05-06)

Features

  • Add the ability to prime a breaker with previous stats (#568) (be26d74)

6.0.1 (2021-04-15)

Bug Fixes

  • return errors from invocation filtered errors (#567) (737e1b1), closes #556
  • docs: Fix documentation for default value of rollingPercentilesEnabled (#563) (93d5969)

6.0.0 (2021-03-18)

⚠ BREAKING CHANGES

A succesful erroFilter should not trigger the fallback function.

Previously, if an errorFilter function passed it would emit success but still call the fallback function. This corrects this behavior. even a passing errorFilter is a success

Bug Fixes

  • upgrade multiple dependencies with Snyk (#545) (9191afb)

  • upgrade multiple dependencies with Snyk (#548) (8db0e9e)

  • upgrade multiple dependencies with Snyk (#552) (7efcf91)

  • upgrade standard-version from 9.1.0 to 9.1.1 (#551) (16341bb)

  • upgrade tape from 5.1.1 to 5.2.0 (#553) (fa69c06)

  • upgrade webpack from 5.11.1 to 5.12.1 (#538) (34b6d61)

  • upgrade webpack from 5.12.1 to 5.20.1 (#543) (38b3e61)

  • upgrade webpack from 5.20.1 to 5.20.2 (#546) (d7952d5)

  • upgrade webpack from 5.20.2 to 5.22.0 (#549) (41efe20)

  • upgrade webpack-cli from 4.3.1 to 4.4.0 (#539) (b089f0b)

  • upgrade webpack-cli from 4.4.0 to 4.5.0 (#544) (83110a4)

  • fix!: A succesful erroFilter should not trigger the fallback function. (8a4fb7c), closes #540

5.1.3 (2021-01-25)

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)

5.1.2 (2021-01-07)

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)

5.1.1 (2020-12-07)

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)

5.1.0 (2020-12-02)

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

5.0.2 (2020-10-14)

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)

5.0.1 (2020-08-21)

Bug Fixes

  • [Snyk] Upgrade documentation from 12.1.4 to 12.2.0 (#411) (4ed0b30)
  • package.json to reduce vulnerabilities (#405) (186b464)
  • upgrade @babel/core from 7.10.4 to 7.10.5 (#449) (a18d669)
  • upgrade coveralls from 3.0.3 to 3.0.9 (#408) (d3bf2b4)
  • upgrade documentation from 12.0.0 to 12.1.4 (#407) (f2a2a67)
  • upgrade multiple dependencies with Snyk (#406) (c485c2d)
  • upgrade multiple dependencies with Snyk (#455) (1fb7791)
  • upgrade serve from 11.0.0 to 11.3.0 (#409) (8f35473)
  • upgrade standard-version from 8.0.1 to 8.0.2 (#448) (dcba522)
  • upgrade tape from 4.13.0 to 4.13.2 (#410) (b6bbf55)
  • upgrade webpack from 4.43.0 to 4.44.0 (#451) (ff127d5)
  • upgrade webpack from 4.44.0 to 4.44.1 (#456) (544fcd9)
  • test: Avoiding an UnhandledPromiseRejection (196457f)

5.0.0 (2020-02-20)

4.2.4 (2020-01-22)

Bug Fixes

4.2.3 (2020-01-03)

4.2.2 (2020-01-02)

4.2.1 (2019-11-08)

Bug Fixes

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

4.1.0 (2019-10-16)

Features

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

Features

  • refactor Prometheus and Hystrix metrics (#350) (3adbb90)

3.0.0 (2019-07-26)

src

BREAKING CHANGES

  • Remove the Promisify function from the CircuitBreaker factory

  • Node has its own built-in promisify function that can be used instead.

2.3.0 (2019-07-01)

Features

  • provide an Iterator of all active circuits (#344) (13616b0)

2.2.0 (2019-06-24)

Bug Fixes

Features

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

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

1.11.1 (2019-05-22)

Build System

  • don't fail coverage from untrusted forks (194e18d)
  • remove travis-ci now that circleci is good (9756bf5)
  • rename the workflow to test_node_versions in circleci (c7cc277)
  • set circleci to ignore gh-pages branch (23e1384)
  • set up coveralls (again); remove Makefile (d099b45)
  • switch to standardx for linting (4967736)
  • try circleci for continuous integration (1a77f3a)
  • try workflows for multiple version builds (5e9e6c8)
  • use codacy for coverage instead of coveralls (e359ab9)

Tests

  • generate browser/headless test suite (2d24b35)
  • improve circuit.shutdown() test (6841abc)
  • switch to serve instead of http-server for browser tests (50ccab7)

1.11.0 (2019-03-14)

Features

  • add errorFilter option to bypass incrementing failure stats (8018012)

1.10.1 (2019-02-25)

Bug Fixes

  • eliminates a bug where the circuit could remain halfOpen forever (0039ee1)

1.10.0 (2019-01-28)

Features

  • add circuit.shutdown() to shut a circuit down (e14796c)

1.9.0 (2018-10-27)

Features

  • add options.volumeThreshold (f9a720e)

1.8.0 (2018-10-02)

Bug Fixes

  • changed currentTime to number as specified in the docs (e816f43)

Features

  • add options.allowWarmUp as a creation option (#218) (ff42d1b)
  • change default capacity from 10 to MAX_SAFE_INTEGER (4a8b98b)

1.7.1 (2018-07-18)

1.7.0 (2018-06-06)

Bug Fixes

Features

1.6.0 (2018-05-24)

Features

  • pass error as parameter to fallback function (#197) (ae6c1cc)

1.5.0 (2018-04-25)

Bug Fixes

  • add full support for webpack and angular (#185) (a8cdad6)
  • address sec vuln in marked coming from jsdoc (224c6ef)
  • security issue related to electron version (#138) (4739c62)

Features

  • add enable/disable for a circuit (#160) (016eba5)
  • allow multiple circuits to aggregate stats (#140) (ba71840)

1.4.0 (2018-03-26)

Bug Fixes

  • address sec vuln in marked coming from jsdoc (224c6ef)
  • security issue related to electron version (#138) (4739c62)

Features

  • add enable/disable for a circuit (#160) (016eba5)
  • allow multiple circuits to aggregate stats (#140) (ba71840)

1.3.1 (2017-12-14)

Bug Fixes

  • build on windows10 due browserify limitations (#112) (dee4a9a)
  • halfOpen state does not reject and doesn't trigger a later re-try. (#120 (04df6f7)

1.3.0 (2017-10-16)

Bug Fixes

  • ensure breaker.fire() returns rejected promise when fallback fails (fbedb07)
  • ensure fallback event always fires (27c3f8b)
  • JSDoc now available for semaphore-locked event (6f6c9bd)

Features

  • Add health check function to a circuit breaker (#76) (0e39faa)

1.2.1 (2017-06-20)

1.2.0 (2017-06-20)

Features

1.1.0 (2017-06-06)

Bug Fixes

  • don't let circuits get stuck half open (5e1171c)
  • fix logic around pendingClose (4d89ae4)

Features

  • add ETIMEDOUT error code for timeout error (#64) (5df9f65)
  • addition of rolling percentile latency's. GH-ISSUE #38 (ce7b50d)
  • remove fidelity promises. (3f5827a)

1.0.0 (2017-04-06)

Bug Fixes

  • do not fire failure event on short circuit (ab87350)
  • make Status an EventEmitter (8aad11a)
  • remove default maxFailures option (be65d3b)

Features

  • add a group option. GH-Issue #43 (3052f23)
  • Add an example on how to use the Hystrix Metrics (fd8246a)
  • Addition of Hystrix Mertrics Stream. GH-ISSUE #39 (2d44df6)
  • circuit status now contains a rolling window (#34) (05c0a2f)
  • prefer an error percentage threshold (245d47b)

0.6.0 (2017-03-30)

Bug Fixes

  • circuit should emit failure event on fallback (f2594d8)
  • include the error when emitting the 'fallback event' (40eb2eb)
  • promise should reject when action throws (58dab98)
  • typo copy past duplicated property (54a27b9)

Features

  • add basic rolling stats to a circuit (8fb9561)
  • Add caching capability to circuits (6c3144f)
  • Add caching capability to circuits (0b717f6)
  • Applying code review (6a0f7ff)
  • Applying code review (8445a24)
  • circuits now have a name based on the action (f08d46e)

0.5.1 (2017-03-02)

0.5.0 (2016-12-22)

Bug Fixes

  • ensure fallback event emits after function call (df40ea7)
  • ensure pending close flag is reset (5a1b70b)
  • ensure that promise is rejected on fallback (d4496d8)
  • fix (again) browser load of circuitBreaker (58a80fb)
  • fix export of module in browser environment (5a0594c)

Features

  • allow for a CircuitBreaker as a fallback (85cbc34)
  • Full featured browser capabilities (2cc08f0)

0.4.0 (2016-12-20)

Features

  • Full featured browser capabilities (427c155)

0.3.0 (2016-12-16)

Features

  • create a browser distribution (cc8036c)

0.2.0 (2016-12-13)

Features

  • return 'this' from CircuitBreaker.fallback (159c006)

0.1.1 (2016-11-03)

Bug Fixes

  • Don't use Status for managing breaker state (8c4c659)
  • events: Include timeout in stats (abbdb61)

0.1.0 (2016-11-01)

Bug Fixes

  • Add 'use strict'; everywhere! (87ea863)
  • Add status for fallback calls. (fe1eeee)
  • Reset after resetTimeout when using fallbacks (47de312), closes #1

Features

  • events: Make CircuitBreaker an EventEmitter (dea7c53)
  • add methods to open and close the circuit manually (9c78ecf)
  • Handling for node-like callback functions (77f3d6b)
  • Make actions flexible (2672c34)