Skip to content

fix: honor disabled retries after transport failures - #21

Open
peterolkhov wants to merge 1 commit into
upstash:mainfrom
peterolkhov:codex/fix-disabled-retries
Open

peterolkhov wants to merge 1 commit into
upstash:mainfrom
peterolkhov:codex/fix-disabled-retries

Conversation

@peterolkhov

Copy link
Copy Markdown

retry: false still 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.

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