Debian Codegraph @

CHANGELOG.md

raw
1 # Changelog
2
3 All notable changes to this project will be documented in this file.
4
5 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
8 ## [5.0.0] - 2024-12-19
9
10 ### Added
11
12 - RetryAfterError can be returned from an operation to indicate how long to wait before the next retry.
13
14 ### Changed
15
16 - Retry function now accepts additional options for specifying max number of tries and max elapsed time.
17 - Retry function now accepts a context.Context.
18 - Operation function signature changed to return result (any type) and error.
19
20 ### Removed
21
22 - RetryNotify* and RetryWithData functions. Only single Retry function remains.
23 - Optional arguments from ExponentialBackoff constructor.
24 - Clock and Timer interfaces.
25
26 ### Fixed
27
28 - The original error is returned from Retry if there's a PermanentError. (#144)
29 - The Retry function respects the wrapped PermanentError. (#140)