Skip to content

@shopify/hydrogen@2023.7.0

Compare
Choose a tag to compare
@shopify-github-actions-access shopify-github-actions-access released this 25 Jul 21:25
· 5 commits to 2023-04 since this release
a01e586

What’s new

⭐️ Check out our blog post with all the latest updates on Hydrogen, and what’s coming on the roadmap.

The latest version of Hydrogen comes with new and updated components and utilities that can help you speed up your build:

  • An updated server-side Cart component with built-in abstractions to handle most common cart operations, including adding, updating, or deleting line items, applying discounts, and more.
  • A drop-in <Pagination/> component to make it easier to handle large product collections.
  • A new <VariantSelector/> component that makes it faster to build progressively enhanced product forms.
  • Improved support for predictive search and local pickup options through Storefront API version 2023-07.

Breaking Changes

  • createWithCache is now stable. All imports need to be updated: (#1151) by @blittle

    - import {createWithCache_unstable} from '@shopify/hydrogen';
    + import {createWithCache} from '@shopify/hydrogen';
  • Pagination and getPaginationVariables are now stable. (#1129) by @blittle

    All imports to each should be updated:

    - import {Pagiatinon__unstable, getPaginationVariables__unstable} from '@shopify/hydrogen';
    + import {Pagiatinon, getPaginationVariables} from '@shopify/hydrogen';

Patch Changes

Add a <VariantSelector> component to make building product forms easier. Also added the getSelectedProductOptions helper function. See the guide on using the VariantSelector. (#1027) by @blittle