Skip to content

Commit bd593ba

Browse files
committed
chore(release): 4.2.0
1 parent 7f488f1 commit bd593ba

File tree

5 files changed

+229
-105
lines changed

5 files changed

+229
-105
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [4.2.0](https://github.com/nodeshift/opossum/compare/v4.1.0...v4.2.0) (2019-10-28)
6+
7+
8+
### Bug Fixes
9+
10+
* clear intervals on shutdown ([#378](https://github.com/nodeshift/opossum/issues/378)) ([91e2dbe](https://github.com/nodeshift/opossum/commit/91e2dbe))
11+
* Clear reset timer on open() ([#383](https://github.com/nodeshift/opossum/issues/383)) ([7f488f1](https://github.com/nodeshift/opossum/commit/7f488f1))
12+
* do not close if preexisting task resolves when state is not OPEN ([#382](https://github.com/nodeshift/opossum/issues/382)) ([7b92602](https://github.com/nodeshift/opossum/commit/7b92602))
13+
* **circuit:** remove unneeded resolve() ([#377](https://github.com/nodeshift/opossum/issues/377)) ([cde55eb](https://github.com/nodeshift/opossum/commit/cde55eb))
14+
15+
16+
### Features
17+
18+
* implement `isOurError()` ([#376](https://github.com/nodeshift/opossum/issues/376)) ([f6a3e3a](https://github.com/nodeshift/opossum/commit/f6a3e3a))
19+
* Implement babel-loader in webpack ([#380](https://github.com/nodeshift/opossum/issues/380)) ([7b97914](https://github.com/nodeshift/opossum/commit/7b97914))
20+
521
## [4.1.0](https://github.com/nodeshift/opossum/compare/v4.0.0...v4.1.0) (2019-10-16)
622

723

docs/index.html

Lines changed: 92 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<meta charset='utf-8'>
5-
<title>opossum 4.1.0 | Documentation</title>
5+
<title>opossum 4.2.0 | Documentation</title>
66
<meta name='description' content='A fail-fast circuit breaker for promises and callbacks'>
77
<meta name='viewport' content='width=device-width,initial-scale=1'>
88
<link href='assets/bass.css' rel='stylesheet'>
@@ -15,7 +15,7 @@
1515
<div id='split-left' class='overflow-auto fs0 height-viewport-100'>
1616
<div class='py1 px2'>
1717
<h3 class='mb0 no-anchor'>opossum</h3>
18-
<div class='mb1'><code>4.1.0</code></div>
18+
<div class='mb1'><code>4.2.0</code></div>
1919
<input
2020
placeholder='Filter'
2121
id='filter-input'
@@ -44,6 +44,17 @@ <h3 class='mb0 no-anchor'>opossum</h3>
4444

4545
<div class='toggle-target display-none'>
4646

47+
<ul class='list-reset py1-ul pl1'>
48+
<li class='h5'><span>Static members</span></li>
49+
50+
<li><a
51+
href='#circuitbreakerisourerror'
52+
class='regular pre-open'>
53+
.isOurError
54+
</a></li>
55+
56+
</ul>
57+
4758

4859
<ul class='list-reset py1-ul pl1'>
4960
<li class='h5'><span>Instance members</span></li>
@@ -896,6 +907,82 @@ <h3 class='fl m0' id='circuitbreaker'>
896907

897908

898909

910+
<div class='py1 quiet mt1 prose-big'>Static Members</div>
911+
<div class="clearfix">
912+
913+
<div class='border-bottom' id='circuitbreakerisourerror'>
914+
<div class="clearfix small pointer toggle-sibling">
915+
<div class="py1 contain">
916+
<a class='icon pin-right py1 dark-link caret-right'></a>
917+
<span class='code strong strong truncate'>isOurError(error)</span>
918+
</div>
919+
</div>
920+
<div class="clearfix display-none toggle-target">
921+
<section class='p2 mb2 clearfix bg-white minishadow'>
922+
923+
924+
925+
<p>Returns true if the provided error was generated here. It will be false
926+
if the error came from the action itself.</p>
927+
928+
<div class='pre p1 fill-light mt0'>isOurError(error: <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error">Error</a>): <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean">Boolean</a></div>
929+
930+
931+
932+
933+
934+
935+
936+
937+
938+
939+
940+
<div class='py1 quiet mt1 prose-big'>Parameters</div>
941+
<div class='prose'>
942+
943+
<div class='space-bottom0'>
944+
<div>
945+
<span class='code bold'>error</span> <code class='quiet'>(<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error">Error</a>)</code>
946+
The Error to check.
947+
948+
</div>
949+
950+
</div>
951+
952+
</div>
953+
954+
955+
956+
957+
958+
959+
<div class='py1 quiet mt1 prose-big'>Returns</div>
960+
<code><a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean">Boolean</a></code>:
961+
true if the error was generated here
962+
963+
964+
965+
966+
967+
968+
969+
970+
971+
972+
973+
974+
975+
976+
977+
978+
</section>
979+
980+
</div>
981+
</div>
982+
983+
</div>
984+
985+
899986

900987

901988
<div class='py1 quiet mt1 prose-big'>Instance Members</div>
@@ -1818,7 +1905,9 @@ <h3 class='fl m0' id='circuitbreaker'>
18181905
<div class='py1 quiet mt1 prose-big'>Returns</div>
18191906
<code><a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a>&#x3C;any></code>:
18201907
promise resolves with the circuit function's return
1821-
value on success or is rejected on failure of the action.
1908+
value on success or is rejected on failure of the action. Use isOurError()
1909+
to determine if a rejection was a result of the circuit breaker or the
1910+
action.
18221911

18231912

18241913

0 commit comments

Comments
 (0)