Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Latest commit

 

History

History
120 lines (65 loc) · 4.02 KB

CHANGELOG.md

File metadata and controls

120 lines (65 loc) · 4.02 KB

@shopify/graphql-client

0.10.3

Patch Changes

  • e9652b7: Remove Partial around the ClientStreamResponse.data type

0.10.2

Patch Changes

  • 2f862e3: Update requestStream() to always process response iterator chunks as Uint8Array values
  • b2f29ae: Add default SDK headers to all API requests when none are provided

0.10.1

Patch Changes

  • 56d2fcd: Update requestStream() to support Uint8Array streamed encoded format in node environments

0.10.0

Minor Changes

  • 9df4bacf: Add new requestStream() function to support streamed responses from Storefront API

0.9.4

Patch Changes

  • 295859d6: Fix GraphQL client validations for store hosts starting with http

0.9.3

Patch Changes

  • 0f0ffb8a: Updated global fetch types to more closely match reality

0.9.2

Patch Changes

  • b2414c2f: Remove Partial around the ClientResponse.data type for easier consumption of the client's returned typed data

0.9.1

Patch Changes

  • a23cd941: Rename fetchApi parameter to customFetchApi for clarity

0.9.0

Minor Changes

  • 0286e7fe: Export a REST API client from admin-api-client, with an API that is similar to the GraphQL client.
  • 18781092: Updated shopify-api GraphQL clients' APIs to be closer to the underlying clients
  • 2b9e06f6: Add the raw network response object to ResponseErrors
  • 194ddcf2: Update api version validation error, generic error messages and client types
  • c9622cd7: Update UNSUPPORTED_API_VERSION log type to Unsupported_Api_Version for consistent log type format

Patch Changes

  • 218f4521: Use the new GraphQL API clients in shopify-api to use all of the latest features, including automatic types for query / mutation return object and variables.

    For more information and examples, see the migration guide to v9.

  • 49952d66: Fix ResponseWithType to correctly type the json return value

  • 82ee942e: Update ResponseWithType type to extend from the Response type

0.8.0

Minor Changes

  • ca89ef06: Added the ability to automatically type GraphQL queries to the Storefront API when the files created by @shopify/api-codegen-preset are loaded for the app.
  • ef053fa5: Added the ability to automatically type GraphQL queries when the files created by @shopify/api-codegen-preset are loaded for the app.
  • 49d5966e: Rename customHeaders to headers in Api Client utils and types for readibility

0.7.0

Minor Changes

  • b830e575: Add API client utility factories for generating the getHeaders() and getGQLClientParams() functions

0.6.0

Minor Changes

  • afe74c1d: Updated types, functions and parameter names to consistently use Api and renamed the ResponseErrors.error field to ResponseErrors.errors. Also updated the client's request() to return both the errors and data if the API response returns partial data and error info.

0.5.1

Patch Changes

  • e28c2663: Fixed "validateDomainAndGetStoreUrl()" to always return a secure (i.e. "https") store URL

0.5.0

Minor Changes

  • 326520ce: Consolidated and standardized the common API client domain and validation utility functions.

0.4.0

Minor Changes

  • a491295a: Add common API client specific utilities and types to the package.

0.3.0

Minor Changes

  • bb634937: Added a new logging functionality to the client. This feature enables client consumers to log request/response and retry attempt info if a logger function is provided at initialization. Also, the retry error messages were updated for clarity.

0.2.0

Minor Changes

  • efc66ead: Added a new retries feature to the graphql-client. This feature allows client consumers to set the number of HTTP request retries when the API request is abandoned or the API server returns a 429 or 503 response.
  • 77be46bb: Added a new graphql-client package. This client is a generic GQL client that provides basic functionalities to interact with Shopify's GraphQL APIs.