Skip to content

Comments

feat(retry-strategies): add functional API#13

Merged
vabatta merged 2 commits intomainfrom
feat/retry-strategies-functional-api
Nov 30, 2025
Merged

feat(retry-strategies): add functional API#13
vabatta merged 2 commits intomainfrom
feat/retry-strategies-functional-api

Conversation

@vabatta
Copy link
Contributor

@vabatta vabatta commented Nov 30, 2025

Add functional factory functions for all backoff strategies:

  • exponential(), linear(), fibonacci()
  • fullJitter(), equalJitter(), decorrelatedJitter()
  • constant(), zero(), stop()
  • upto() for limiting retry attempts

All factories create instances of their respective classes (e.g., exponential()ExponentialBackoff).

@vabatta vabatta self-assigned this Nov 30, 2025
@vabatta vabatta marked this pull request as ready for review November 30, 2025 10:13
@claude

This comment was marked as resolved.

@vabatta vabatta merged commit 102345e into main Nov 30, 2025
5 checks passed
@vabatta vabatta deleted the feat/retry-strategies-functional-api branch November 30, 2025 10:16
vabatta pushed a commit that referenced this pull request Nov 30, 2025
🤖 I have created a release *beep* *boop*
---


##
[0.1.2](https://github.com/proventuslabs/js/compare/retry-strategies@v0.1.1...retry-strategies@v0.1.2)
(2025-11-30)


### Features

* **retry-strategies:** add functional API
([#13](#13))
([102345e](102345e))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant