| 1 |
# Changelog |
| 2 |
|
| 3 |
*Note: I will occasionally bump the minimum required Golang version without |
| 4 |
bumping the major version of this package, which violates the official Golang |
| 5 |
packaging convention around breaking changes. Typically the versions being |
| 6 |
dropped are multiple years old and long unsupported.* |
| 7 |
|
| 8 |
#### Version 1.7.0 (2024-07-19) |
| 9 |
|
| 10 |
- Adds `Retrier.WithSurfaceWorkErrors()` to ask the Retrier to always return |
| 11 |
the work function's error even if a context deadline is hit (thanks to |
| 12 |
Elizabeth Cox). |
| 13 |
|
| 14 |
#### Version 1.6.0 (2024-02-19) |
| 15 |
|
| 16 |
- Adds `Breaker.GetState()` to check the breaker state directly (e.g. for |
| 17 |
monitoring metrics). |
| 18 |
- Fix a race condition in the Batcher that could have lead to a panic if |
| 19 |
multiple batches ended up executing at once (thanks to Tiago Peczenyj for the |
| 20 |
discovery and very clear bug report). |
| 21 |
- Fix `Batcher.Shutdown()` to behave correctly when multiple batches end up |
| 22 |
executing at once. |
| 23 |
- A variety of small refactors, simplifications, and test suite improvements. |
| 24 |
|
| 25 |
#### Version 1.5.0 (2023-12-14) |
| 26 |
|
| 27 |
- Adds `Retrier.WithInfiniteRetry()` and `Retrier.RunFn()` to handle more |
| 28 |
complex cases (thanks to Maxime Beckman). |
| 29 |
|
| 30 |
#### Version 1.4.0 (2023-08-14) |
| 31 |
|
| 32 |
- Adds `Batcher.Shutdown()` to flush any pending work without waiting for the |
| 33 |
timer, e.g. on application shutdown (thanks to Ivan Stankov). |
| 34 |
- Fix possible memory leaks of Timer objects in Deadline, Retrier, and |
| 35 |
Semaphore (thanks to Dmytro Nozdrin). |
| 36 |
|
| 37 |
#### Version 1.3.0 (2022-06-27) |
| 38 |
|
| 39 |
- Increased minimum Golang version to 1.13. |
| 40 |
- Fix a goroutine leak in `Deadline.Run()` on `ErrTimeOut`. |
| 41 |
- Add a `go.mod` file to conform to more recent Golang version standards. |
| 42 |
- Use `errors.Is` when classifying errors for the `Retrier` (thanks to Taufik |
| 43 |
Rama). |
| 44 |
- Add implementation of `LimitedExponentialBackoff` for the `Retrier` (thanks |
| 45 |
to tukeJonny). |
| 46 |
|
| 47 |
#### Version 1.2.0 (2019-06-14) |
| 48 |
|
| 49 |
- Increased minimum Golang version to 1.7. |
| 50 |
- Add `RunCtx` method on `Retrier` to support running with a context. |
| 51 |
- Ensure the `Retrier`'s use of random numbers is concurrency-safe. |
| 52 |
- Bump CI to ensure we support newer Golang versions. |
| 53 |
|
| 54 |
#### Version 1.1.0 (2018-03-26) |
| 55 |
|
| 56 |
- Improve documentation and fix some typos. |
| 57 |
- Bump CI to ensure we support newer Golang versions. |
| 58 |
- Add `IsEmpty()` method on `Semaphore`. |
| 59 |
|
| 60 |
#### Version 1.0.0 (2015-02-13) |
| 61 |
|
| 62 |
Initial release. |