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

Releases: Shopify/shopify-api-js

@shopify/[email protected]

29 Nov 17:24
b3a62d9
Compare
Choose a tag to compare

Patch Changes

  • 6d90688: Fixing an issue in the validations we run before creating the Storefront API client.

@shopify/[email protected]

29 Nov 17:24
b3a62d9
Compare
Choose a tag to compare

Patch Changes

  • 880c9dd: Add isExpired() and isScopeChanged() functions to Session class

@shopify/[email protected]

29 Nov 14:06
e65ccc9
Compare
Choose a tag to compare

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]

29 Nov 14:06
e65ccc9
Compare
Choose a tag to compare

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 to headers in Api Client utils and types for readibility

@shopify/[email protected]

29 Nov 14:06
e65ccc9
Compare
Choose a tag to compare

@shopify/[email protected]

29 Nov 14:06
e65ccc9
Compare
Choose a tag to compare

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

@shopify/[email protected]

03 Nov 13:47
c89c2f4
Compare
Choose a tag to compare

Minor Changes

  • afe74c1: 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.

@shopify/[email protected]

01 Nov 17:27
5bbc781
Compare
Choose a tag to compare

Patch Changes

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

@shopify/[email protected]

31 Oct 22:35
4794199
Compare
Choose a tag to compare

Minor Changes

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

@shopify/[email protected]

30 Oct 19:11
aa307cd
Compare
Choose a tag to compare

Minor Changes

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