This repository has been archived by the owner on Apr 11, 2024. It is now read-only.
Releases: Shopify/shopify-api-js
Releases · Shopify/shopify-api-js
@shopify/[email protected]
Patch Changes
- 6d90688: Fixing an issue in the validations we run before creating the Storefront API client.
@shopify/[email protected]
Patch Changes
- 880c9dd: Add isExpired() and isScopeChanged() functions to Session class
@shopify/[email protected]
Minor Changes
-
bf0664b: Line Item Billing
Now with the future flag
unstable_lineItemBilling
you can specify multiple line items in a single billing request. This will allow you to create a single billing request for a subscription with both recurring and usage based app billing.You will define the new billingConfig as follows.
const shopify = shopifyApp({ billing: { MultipleLineItems: { replacementBehavior: BillingReplacementBehavior.ApplyImmediately, trialDays: 7, lineItems: [ { interval: BillingInterval.Usage, amount: 30, currencyCode: "USD", terms: "per 1000 emails", }, { interval: BillingInterval.Every30Days, amount: 30, currencyCode: "USD", discount: { durationLimitInIntervals: 3, value: { amount: 10, }, }, }, ], }, }, futures: { unstable_lineItemBilling: true, }, });
-
eae5a4a: Introduce token exchange API for fetching access tokens. This feature is currently unstable and is hidden behind the
unstable_tokenExchange
future flag.
@shopify/[email protected]
Minor Changes
- ca89ef0: 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.
- ef053fa: Added the ability to automatically type GraphQL queries when the files created by @shopify/api-codegen-preset are loaded for the app.
- 49d5966: Rename
customHeaders
toheaders
in Api Client utils and types for readibility
@shopify/[email protected]
Changelog
@shopify/[email protected]
Minor Changes
- ca89ef0: 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.
- ef053fa: Added the ability to automatically type GraphQL queries when the files created by @shopify/api-codegen-preset are loaded for the app.
Patch Changes
- Updated dependencies [ca89ef0]
- Updated dependencies [ef053fa]
- Updated dependencies [49d5966]
- @shopify/[email protected]
@shopify/[email protected]
Minor Changes
- afe74c1: 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.
@shopify/[email protected]
Patch Changes
- e28c266: Fixed "validateDomainAndGetStoreUrl()" to always return a secure (i.e. "https") store URL
@shopify/[email protected]
Minor Changes
- 326520c: Consolidated and standardized the common API client domain and validation utility functions.
@shopify/[email protected]
Minor Changes
- a491295: Add common API client specific utilities and types to the package.