Skip to content

Releases

v5.1.1

Choose a tag to compare

@JaSei JaSei released this 04 Nov 15:53
360fd45

What's Changed

  • fix: keep zero full-jitter delay after many attempts by @dailyun in #171
  • fix(delay): clamp full-jitter ceiling to int64 range by @JaSei in #172

New Contributors

Full Changelog: 5.1.0...v5.1.1

v5.1.0

Choose a tag to compare

@JaSei JaSei released this 04 Nov 14:54
2397182

What's Changed

  • 📝 Correct documentation examples by @blacksails in #150
  • ci(workflow): add Go 1.26 and 1.27, fix macOS for pre-1.24 Go by @JaSei in #165
  • options: fix newRetrierCore typo (was newRetrieerCore) by @c-tonneslan in #156
  • Update README for DoWithData method transition by @JaSei in #152
  • Fix backoff shift bounds for large delays by @bensynapse in #161
  • fix: honor attemptsForError and prevent uint underflow when attempts is zero by @AdamMagued in #163
  • ci(workflow): skip codecov upload on dependabot PRs by @JaSei in #166
  • docs: add AGENTS.md with agent guidelines by @JaSei in #167
  • fix: avoid unbounded error slice growth when lastErrorOnly is true by @Yanhu007 in #155
  • build(deps): bump github.com/stretchr/testify from 1.11.1 to 1.12.1 by @JaSei in #168
  • docs: replace godocdown with in-repo stdlib README generator by @JaSei in #169
  • feat(throttle): add retry throttling by @nhancdt2602 in #154

New Contributors

Full Changelog: 5.0.0...v5.1.0

v5.0.1

Choose a tag to compare

@JaSei JaSei released this 02 Nov 15:46
5108779

Patch release — no public API changes.

Bug fixes

  • Backoff delay overflow with very large Delay — the shift cap was computed via math.Log2 on a float64, which underflowed for delays near math.MaxInt64, producing invalid backoff delays. The cap is now derived exactly from the bit length of math.MaxInt64. (#161)
  • AttemptsForError is now honored when Attempts is 0 (UntilSucceeded) — the per-error budget was previously ignored in the retry-until-success loop; this also fixes a uint underflow when a budget of 0 was configured, which caused infinite retries. (#163, fixes #137)
  • Unbounded error accumulation with LastErrorOnly(true) — errors were appended to the internal error log on every attempt even though only the last one is returned, growing memory without bound on long retry runs (e.g. Attempts(math.MaxUint) + context cancellation). Only the last error is retained now; the returned error is unchanged. (#155, fixes #118)

Documentation & tooling

  • Clarified the v5 migration for DoWithData → NewWithData[T] (#152)
  • README is now generated by an in-repo stdlib tool (tools/genreadme) with a CI golden-file check, replacing the unmaintained godocdown — the v5 changelog and doc links now render correctly on both GitHub and pkg.go.dev (#169, resolves #77)
  • CI: Go 1.26/1.27 added to the matrix, pre-1.24 Go excluded from macOS runners, Codecov no longer fails Dependabot PRs (#165, #166)
  • Development dependency: testify 1.11.1 → 1.12.1 (#168)

Thanks to @bensynapse, @AdamMagued, @Yanhu007, @c-tonneslan, @AruneshDwivedi and @team-humaki — whose contributions, including the ones superseded during review, shaped this release. 🙏

v5.0.0

Choose a tag to compare

@JaSei JaSei released this 24 Nov 14:09
91e2a66

What's Changed

  • Use Makefile lint target instead of blocked GitHub Action by @JaSei in #143
  • default type is combination of backoff and random by @JaSei in #144
  • Enhance readme + coverage by @JaSei in #146
  • default branch is main by @JaSei in #147
  • Proposal for v5 API: retry.New(...).Do(func) by @msf in #148
  • upgrade to v5.0.0 with Go 1.20 multiple error wrapping support by @JaSei in #149

New Contributors

  • @msf made their first contribution in #148

Full Changelog: 4.7.0...v5.0.0

v4.7.0

Choose a tag to compare

@JaSei JaSei released this 14 Oct 18:39
375037b

What's Changed

New Contributors

Full Changelog: 4.6.1...v4.7.0

v4.6.1

Choose a tag to compare

@JaSei JaSei released this 24 Feb 09:11
93932f8

What's Changed

  • Update link to docs by @ajeetdsouza in #100
  • fix test for slow windows + add newer golang versions by @JaSei in #126
  • Bump github.com/stretchr/testify from 1.9.0 to 1.10.0 by @dependabot in #123
  • Make sure DelayType function gets consistent values of n by @haaawk in #125

New Contributors

Full Changelog: 4.6.0...v4.6.1

v4.6.0

Choose a tag to compare

@JaSei JaSei released this 18 Apr 07:58
839c8ce

What's Changed

  • Introduce UntilSucceeded option to improve readability by @natenho in #116
  • Fix the inconsistency in the number of times passed in onRetry by @FarmerChillax in #114
  • Bump github.com/stretchr/testify from 1.8.4 to 1.9.0 by @dependabot in #112

New Contributors

Full Changelog: v4.5.1...v4.6.0

v4.5.1

Choose a tag to compare

@JaSei JaSei released this 14 Nov 10:01
d5355cd

What's Changed

New Contributors

Full Changelog: 4.5.0...v4.5.1

v4.5.0

Choose a tag to compare

@JaSei JaSei released this 07 Aug 07:12
ff662bd

What's Changed

  • Allow last error to be returned with context error by @willdot in #96

New Contributors

Full Changelog: 4.4.0...v4.5.0

v4.4.0 (generic support)

Choose a tag to compare

@JaSei JaSei released this 04 Aug 16:56
fdadb7c

What's Changed

New Contributors

Full Changelog: 4.3.4...v4.4.0