Skip to content

@shopify/hydrogen@2024.10.1

Compare
Choose a tag to compare
@shopify-github-actions-access shopify-github-actions-access released this 11 Dec 17:13
· 36 commits to main since this release
c915b67

Patch Changes

  • Added namespace support to prevent conflicts when using multiple Pagination components: (#2649) by @scottdixon

    • New optional namespace prop for the <Pagination/> component
    • New optional namespace option for getPaginationVariables() utility
    • When specified, pagination URL parameters are prefixed with the namespace (e.g., products_cursor instead of cursor)
    • Maintains backwards compatibility when no namespace is provided
  • Introduce getProductOptions, getAdjacentAndFirstAvailableVariants, useSelectedOptionInUrlParam, and mapSelectedProductOptionToObject to support combined listing products and products with 2000 variants limit. (#2659) by @wizardlyhel

  • Add params to override the login and authorize paths: (#2648) by @blittle

    const hydrogenContext = createHydrogenContext({
      // ...
      customerAccount: {
        loginPath = '/account/login',
        authorizePath = '/account/authorize',
        defaultRedirectPath = '/account',
      },
    });
  • Add selectedVariant prop to the VariantSelector to use for the initial state if no URL parameters are set (#2643) by @scottdixon

  • Updated dependencies [a57d5267]:

    • @shopify/hydrogen-react@2024.10.1