Skip to content

Commit

Permalink
chore(release): 4.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lholmquist committed Oct 28, 2019
1 parent 7f488f1 commit bd593ba
Show file tree
Hide file tree
Showing 5 changed files with 229 additions and 105 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@

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.

## [4.2.0](https://github.com/nodeshift/opossum/compare/v4.1.0...v4.2.0) (2019-10-28)


### Bug Fixes

* clear intervals on shutdown ([#378](https://github.com/nodeshift/opossum/issues/378)) ([91e2dbe](https://github.com/nodeshift/opossum/commit/91e2dbe))
* Clear reset timer on open() ([#383](https://github.com/nodeshift/opossum/issues/383)) ([7f488f1](https://github.com/nodeshift/opossum/commit/7f488f1))
* 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))
* **circuit:** remove unneeded resolve() ([#377](https://github.com/nodeshift/opossum/issues/377)) ([cde55eb](https://github.com/nodeshift/opossum/commit/cde55eb))


### Features

* implement `isOurError()` ([#376](https://github.com/nodeshift/opossum/issues/376)) ([f6a3e3a](https://github.com/nodeshift/opossum/commit/f6a3e3a))
* Implement babel-loader in webpack ([#380](https://github.com/nodeshift/opossum/issues/380)) ([7b97914](https://github.com/nodeshift/opossum/commit/7b97914))

## [4.1.0](https://github.com/nodeshift/opossum/compare/v4.0.0...v4.1.0) (2019-10-16)


Expand Down
95 changes: 92 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<meta charset='utf-8'>
<title>opossum 4.1.0 | Documentation</title>
<title>opossum 4.2.0 | Documentation</title>
<meta name='description' content='A fail-fast circuit breaker for promises and callbacks'>
<meta name='viewport' content='width=device-width,initial-scale=1'>
<link href='assets/bass.css' rel='stylesheet'>
Expand All @@ -15,7 +15,7 @@
<div id='split-left' class='overflow-auto fs0 height-viewport-100'>
<div class='py1 px2'>
<h3 class='mb0 no-anchor'>opossum</h3>
<div class='mb1'><code>4.1.0</code></div>
<div class='mb1'><code>4.2.0</code></div>
<input
placeholder='Filter'
id='filter-input'
Expand Down Expand Up @@ -44,6 +44,17 @@ <h3 class='mb0 no-anchor'>opossum</h3>

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

<ul class='list-reset py1-ul pl1'>
<li class='h5'><span>Static members</span></li>

<li><a
href='#circuitbreakerisourerror'
class='regular pre-open'>
.isOurError
</a></li>

</ul>


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



<div class='py1 quiet mt1 prose-big'>Static Members</div>
<div class="clearfix">

<div class='border-bottom' id='circuitbreakerisourerror'>
<div class="clearfix small pointer toggle-sibling">
<div class="py1 contain">
<a class='icon pin-right py1 dark-link caret-right'></a>
<span class='code strong strong truncate'>isOurError(error)</span>
</div>
</div>
<div class="clearfix display-none toggle-target">
<section class='p2 mb2 clearfix bg-white minishadow'>



<p>Returns true if the provided error was generated here. It will be false
if the error came from the action itself.</p>

<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>











<div class='py1 quiet mt1 prose-big'>Parameters</div>
<div class='prose'>

<div class='space-bottom0'>
<div>
<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>
The Error to check.

</div>

</div>

</div>






<div class='py1 quiet mt1 prose-big'>Returns</div>
<code><a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean">Boolean</a></code>:
true if the error was generated here
















</section>

</div>
</div>

</div>




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



Expand Down
Loading

0 comments on commit bd593ba

Please sign in to comment.