Skip to content

Version Packages - #22

Merged
TDanks2000 merged 1 commit into
mainfrom
changeset-release/main
Sep 14, 2026
Merged

TDanks2000 merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@api-wrappers/api-core@1.1.1

Patch Changes

  • bedf643: Fix request-lifecycle edge cases and share GraphQL envelope handling:

    • buildUrl now inserts query parameters before a URL fragment instead of after it.
    • Multipart, URL-encoded, and binary request bodies no longer receive a default content-type: application/json, so fetch can set the correct value (including the multipart boundary).
    • GraphQL envelope validation is shared by client.graphql() and graphqlWithResponse(); a non-array errors field now throws ApiError instead of silently succeeding, while errors: null is treated as a successful response.
    • graphqlWithResponse() reports GraphQL application errors and malformed envelopes to plugin onError hooks via the new BaseHttpClient.notifyError(), matching client.graphql().
    • Retry-After parsing is centralized so the retry loop and the header rate-limit plugin agree on delay-seconds and HTTP-date formats.
    • Caller aborts are no longer retried; retry backoff waits are cancellable.
    • A per-request timeoutMs takes precedence over the timeout plugin and ClientConfig.timeoutMs; createTimeoutPlugin rejects non-positive timeouts.
    • Response parse failures now notify plugins through onError.
    • Cache keys vary on the request body and cacheable-method matching is case-insensitive.
    • ApiError (and subclasses) expose response headers and final url details.
    • mergeHeaders skips null/undefined values instead of stringifying them.

@TDanks2000
TDanks2000 merged commit 3f71b7a into main Sep 14, 2026
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