·
88 commits
to main
since this release
Minor Changes
-
89d803e: # Adds signal as request option
This adds the
signal
option to therequest
method of the GraphQL client, for the shopify-api and shopify-app-remix packages to pass in an AbortSignal to abort requests, and set a timeout.If a request is aborted, an
HttpRequestError
will be thrown.This will allow you to set your own custom timeout, and abort requests.
// Abort the request after 3 seconds await admin.graphql('{ shop { name } }', { signal: AbortSignal.timeout(3000), });
// Abort the request after 3 seconds, and retry the request up to 2 times await admin.graphql('{ shop { name } }', { signal: AbortSignal.timeout(3000), tries: 2, });
Patch Changes
- 54eb408: Updated
isbot
dependencies - a573a6c: Updated
isbot
dependencies - 409597b: Updated
uuid
dependencies - Updated dependencies [d3531c5]
- @shopify/[email protected]
- @shopify/[email protected]
- @shopify/[email protected]