Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.
Compare
Choose a tag to compare
@github-actions github-actions released this 22 Nov 21:25
· 89 commits to 2023-01 since this release
996a197

Patch Changes

  • 6a3a0b3: Add CartLinePrice component

  • ad4aca4: Update TypeScript types for <MediaFile/> so that mediaOptions's properties are all optional instead of required.

  • 669809a: <ShopifyProvider/> and useShop() updates:

    • Added a function getShopifyDomain() which will return a fully-qualified domain URL for your Shopify backend. For example:

      const {getShopifyDomain} = useShop();
      console.log(getShopifyDomain());
      // 'https://test.myshopify.com'

      This matches the function that was added to createStorefrontClient().

    • ShopifyProvider's storeDomain prop can now accept the Shopify backend subdomain, matching how createStorefrontClient()'s storeDomain prop. ShopifyProvider still accepts a full domain, but that will be removed in a future breaking change.

    // preferred
    <ShopifyProvider shopifyConfig={{storeDomain: 'shop'}}></ShopifyProvider>
    
    // still works, but will be removed in the future
    <ShopifyProvider shopifyConfig={{storeDomain: 'shop.myshopify.com'}}></ShopifyProvider>