Skip to content

v0.6.0

Choose a tag to compare

@sethvargo sethvargo released this 23 Nov 17:11
· 1 commit to main since this release
Immutable release. Only release title and notes can be modified.
6eb0a2c

Breaking changes

  • Requires Go 1.26 or newer. (sethvargo/go-retry#56)
  • NewFibonacci returns 1, 1, 2, 3, 5, as documented. It previously returned 1, 2, 3, 5, 8, so the second retry waited two bases instead of one. (sethvargo/go-retry#55)
  • When the context ends during retries, Do and DoValue return the context error joined with the last error from the retried function. Comparisons like err == context.DeadlineExceeded no longer match; use errors.Is instead. (sethvargo/go-retry#60)
  • All built-in middleware clamps a negative wait from the inner backoff to 0. Do already waited 0 for a negative value, so only direct calls to Next see a difference. (sethvargo/go-retry#59, sethvargo/go-retry#62)
  • WithJitterPercent uses a continuous random factor. The factor previously moved in whole-percent steps, so j=5 produced only 10 distinct values between 0.96x and 1.05x. The range is now 0.95x to 1.05x. (sethvargo/go-retry#59)

What's Changed

Full Changelog: v0.5.0...v0.6.0