@shopify/shopify-api@9.0.0
Major Changes
-
[!NOTE]
This change only affects apps that are using custom runtime adapters.
If you're using a default adapter from this package, you don't need to make this change.Changed
setAbstractFetchFuncto accept afetchAPI instead of one based onNormalizedRequestandNormalizedResponse.With this change, we can return a
Responseobject for requests with the upcoming clients, which can help make the interface for requests more familiar to users.For more information and examples, see the migration guide to v9.
-
7bd4be0: Rephrased
gdprTopicstoprivacyTopicsto account for other privacy regulations with data subject requests.This changes the name of the exported object.
You can fix this by changing yourimportstatements:Before:
import { gdprTopics } from "@shopify/shopify-api";
After:
import { privacyTopics } from "@shopify/shopify-api";
Minor Changes
-
83b1590: Allow access tokens to be marked as expired before actual expiry.
-
218f452: 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.
-
1878109: Updated shopify-api GraphQL clients' APIs to be closer to the underlying clients
-
4dd7612: Underpinned the new REST client from
admin-api-clientintoshopify-api, so apps can access it as a standalone client as well. -
5e85e15: Added support for the 2024-01 API version.
-
64cda80: Add helpers to convert between shop admin URLs and legacy URLs.
sanitizeShoputility method can now support shop admin URLs.