- e9652b7: Remove
Partial
around theClientStreamResponse.data
type
- 2f862e3: Update
requestStream()
to always process response iterator chunks asUint8Array
values - b2f29ae: Add default SDK headers to all API requests when none are provided
- 56d2fcd: Update
requestStream()
to supportUint8Array
streamed encoded format innode
environments
- 9df4bacf: Add new
requestStream()
function to support streamed responses from Storefront API
- 295859d6: Fix GraphQL client validations for store hosts starting with http
- 0f0ffb8a: Updated global fetch types to more closely match reality
- b2414c2f: Remove
Partial
around theClientResponse.data
type for easier consumption of the client's returned typed data
- a23cd941: Rename
fetchApi
parameter tocustomFetchApi
for clarity
- 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 toUnsupported_Api_Version
for consistent log type format
-
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 thejson
return value -
82ee942e: Update
ResponseWithType
type to extend from theResponse
type
- 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
toheaders
in Api Client utils and types for readibility
- b830e575: Add API client utility factories for generating the
getHeaders()
andgetGQLClientParams()
functions
- afe74c1d: Updated types, functions and parameter names to consistently use
Api
and renamed theResponseErrors.error
field toResponseErrors.errors
. Also updated the client'srequest()
to return both theerrors
anddata
if the API response returns partial data and error info.
- e28c2663: Fixed "validateDomainAndGetStoreUrl()" to always return a secure (i.e. "https") store URL
- 326520ce: Consolidated and standardized the common API client domain and validation utility functions.
- a491295a: Add common API client specific utilities and types to the package.
- bb634937: Added a new
logging
functionality to the client. This feature enables client consumers to logrequest/response
andretry attempt
info if a logger function is provided at initialization. Also, theretry
error messages were updated for clarity.
- efc66ead: Added a new
retries
feature to thegraphql-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 a429
or503
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.