Skip to content

@shopify/hydrogen@2026.4.1

Latest

Choose a tag to compare

@shopify-github-actions-access shopify-github-actions-access released this 17 Apr 13:23
· 3 commits to main since this release
4365ba5

Patch Changes

  • Fix cart operations failing on stores without VisitorConsent type (#3720) by @itsjustriley

    Cart operations (like cart.setMetafields()) were unconditionally including the visitorConsent parameter in GraphQL operations, even when not being used. This caused failures on stores whose Storefront API schema doesn't include the VisitorConsent type (older API versions or certain store configurations).

    The visitorConsent parameter is now only included in cart GraphQL operations when explicitly provided. This restores compatibility with stores that don't support the VisitorConsent type while preserving the feature for users who need it.

  • Updated dependencies [f84ab400c62d89827574d0fa65ba310a2e75f36f]:

    • @shopify/hydrogen-react@2026.4.1