Repository navigation
fix: honor disabled retries after transport failures - #21
Open
peterolkhov wants to merge 1 commit into
Open
peterolkhov wants to merge 1 commit into
peterolkhov wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
retry: falsestill sends a second request if the first fetch fails. If that second request succeeds, callers never see the original failure. The false branch sets one retry, while the loop already includes the initial attempt. Use zero so a disabled retry really makes one attempt.Added offline public-client tests for Node and Cloudflare, including error identity, first-attempt success and numeric retry limits. All 14 regressions/controls pass; the original code fails four. Built CJS/ESM exports pass the same scenarios.
Configured builds and declarations, focused types, changed-file lint and formatting pass. Full root TypeScript still reports the same 410 existing example errors; full source ESLint passes.
Tests use injected fetch; credentialed integration suites were not run. Development tools were compatible rather than a frozen-lock installation.