Skip to content

feat: graphql, retry, cookie jar (v1.1.0)#20

Merged
tugkanboz merged 1 commit into
mainfrom
feature/graphql-retry-cookies
Jun 3, 2026
Merged

feat: graphql, retry, cookie jar (v1.1.0)#20
tugkanboz merged 1 commit into
mainfrom
feature/graphql-retry-cookies

Conversation

@tugkanboz

Copy link
Copy Markdown
Member

Closes the last lib item.

  • GraphQL: client.graphql(query, variables, { path }) -> chainable builder.
  • Retry: .retry({ attempts=3, delay=0, factor=2, on }) retries on a thrown error or when on(response) is truthy.
  • Cookie jar: go({ cookies: true }) (or a Map) carries Set-Cookie across requests.
  • Types, 4 new unit tests, CHANGELOG. Version bumped to 1.1.0. 640 unit tests green, tsc clean.

- client.graphql(query, variables, { path }) posts a GraphQL query.
- builder .retry({ attempts, delay, factor, on }) retries on error or predicate.
- go({ cookies: true }) captures Set-Cookie and replays Cookie per client.
- Types, unit tests, CHANGELOG; version 1.1.0.
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