Repository navigation
feat(client): configurable retryAttempts and opt-out retryWrites (3.6.0) - #24
Merged
Merged
Conversation
…rite conversion policy
* chore: publish package via GitHub Packages Add repository, publishConfig and author to package.json, add MIT LICENSE file and switch release workflow to GitHub Packages with GITHUB_TOKEN. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * chore: bump version to 3.5.1 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ions BREAKING BEHAVIOR (non-API): add, update and delete are no longer retried automatically because they are not idempotent. find keeps retrying, now bounded by the configurable retryAttempts (default 3). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…them Default stays true so existing users see no behavior change. retryWrites: false sends add/update/delete exactly once, since mutations are not idempotent. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This was referenced Oct 10, 2026
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 configurable:
retryAttemptsandretryWrites(3.6.0)Behavior
ConnectionDefinition.retryAttempts(optional, default 3, integer >= 1) is now evaluated byAppSheetClient. It was hardcoded to 3 before;AppSheetConfig.retryAttemptswas never evaluated and is documented as such.ConnectionDefinition.retryWrites(optional boolean, defaulttrue). Withfalse,add,updateanddeleteare never retried automatically: exactly one request, errors are thrown immediately.findkeeps retrying withretryAttempts.retryWritesnot a boolean, including the string'false'from an env file;retryAttemptsnot an integer >= 1) throw aValidationErrorin the constructor.Compatibility
No behavior change for existing users: without the new options the retry path is identical to 3.5.1 (3 attempts, backoff 1 s / 2 s, same error types). Minor version 3.6.0, CHANGELOG and README section "Retries" updated. Note: callers that spread an invalid
retryAttemptsvalue into the connection definition (it was ignored before) now get aValidationError. In YAML/JSON schemas literal values must be used, not${ENV}placeholders (documented).Verification
509 tests green (17 suites), lint without errors, build ok. A throwaway script against
dist/with an always-500 adapter confirmed default,retryWrites:false,retryAttempts1/3/5 and the validation (21 checks).Branch notes
developandorigin/main(3.5.1 publish configuration, 3aa00f0) was merged in, becausedevelopis behindmain. The diff of this PR therefore also contains the publish configuration of chore: publish package via GitHub Packages #23 (release workflow, LICENSE, package metadata).🤖 Generated with Claude Code