Comparing version 2.0.0 to 2.0.1
# Changelog | ||
## 2.0.1 | ||
- **fix:** remove incorrect deprecated marker on `RetryPolicy.onGiveUp` | ||
- **fix:** incorrect typings in `retry().backoff()` ([#34](https://github.com/connor4312/cockatiel/issues/34)) | ||
## 2.0.0 - 2020-09-24 | ||
@@ -4,0 +9,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { IBackoff, IBackoffFactory, IExponentialBackoffOptions } from './backoff/Backoff'; | ||
import { IBackoffFactory, IExponentialBackoffOptions } from './backoff/Backoff'; | ||
import { DelegateBackoffFn } from './backoff/DelegateBackoff'; | ||
@@ -60,3 +60,3 @@ import { CancellationToken } from './CancellationToken'; | ||
/** | ||
* @deprecated use `onFailure` instead | ||
* Emitter that fires when we're no longer retrying a call and are giving up. | ||
*/ | ||
@@ -86,3 +86,3 @@ readonly onGiveUp: import("./common/Event").Event<FailureReason<unknown>>; | ||
*/ | ||
backoff(backoff: IBackoff<IRetryBackoffContext<unknown>>): RetryPolicy; | ||
backoff(backoff: IBackoffFactory<IRetryBackoffContext<unknown>>): RetryPolicy; | ||
/** | ||
@@ -89,0 +89,0 @@ * When retrying, a referenced timer is created. This means the Node.js event |
@@ -37,3 +37,3 @@ import { ExponentialBackoff, } from './backoff/Backoff'; | ||
/** | ||
* @deprecated use `onFailure` instead | ||
* Emitter that fires when we're no longer retrying a call and are giving up. | ||
*/ | ||
@@ -40,0 +40,0 @@ // tslint:disable-next-line: member-ordering |
@@ -1,2 +0,2 @@ | ||
import { IBackoff, IBackoffFactory, IExponentialBackoffOptions } from './backoff/Backoff'; | ||
import { IBackoffFactory, IExponentialBackoffOptions } from './backoff/Backoff'; | ||
import { DelegateBackoffFn } from './backoff/DelegateBackoff'; | ||
@@ -60,3 +60,3 @@ import { CancellationToken } from './CancellationToken'; | ||
/** | ||
* @deprecated use `onFailure` instead | ||
* Emitter that fires when we're no longer retrying a call and are giving up. | ||
*/ | ||
@@ -86,3 +86,3 @@ readonly onGiveUp: import("./common/Event").Event<FailureReason<unknown>>; | ||
*/ | ||
backoff(backoff: IBackoff<IRetryBackoffContext<unknown>>): RetryPolicy; | ||
backoff(backoff: IBackoffFactory<IRetryBackoffContext<unknown>>): RetryPolicy; | ||
/** | ||
@@ -89,0 +89,0 @@ * When retrying, a referenced timer is created. This means the Node.js event |
@@ -39,3 +39,3 @@ "use strict"; | ||
/** | ||
* @deprecated use `onFailure` instead | ||
* Emitter that fires when we're no longer retrying a call and are giving up. | ||
*/ | ||
@@ -42,0 +42,0 @@ // tslint:disable-next-line: member-ordering |
{ | ||
"name": "cockatiel", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "A resilience and transient-fault-handling library that allows developers to express policies such as Backoff, Retry, Circuit Breaker, Timeout, Bulkhead Isolation, and Fallback in a fluent and thread-safe manner. Inspired by .NET Polly.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
520652