Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 0 additions & 40 deletions .changeset/add-to-cart-parent-line.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/api-version-2025-10.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/article-reference-metafield.md

This file was deleted.

29 changes: 0 additions & 29 deletions .changeset/delivery-address-empty-array-docs.md

This file was deleted.

30 changes: 0 additions & 30 deletions .changeset/delivery-address-replace-mutation.md

This file was deleted.

68 changes: 0 additions & 68 deletions .changeset/gift-card-add-mutation.md

This file was deleted.

15 changes: 0 additions & 15 deletions .changeset/visitor-consent-incontext.md

This file was deleted.

62 changes: 62 additions & 0 deletions packages/hydrogen-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,67 @@
# @shopify/hydrogen-react

## 2025.10.0

### Major Changes

- Update Storefront API and Customer Account API to version 2025-10 ([#3352](https://github.com/Shopify/hydrogen/pull/3352)) by [@fredericoo](https://github.com/fredericoo)

### Minor Changes

- Add `visitorConsent` support to `@inContext` directive for Storefront API parity ([#3408](https://github.com/Shopify/hydrogen/pull/3408)) by [@kdaviduik](https://github.com/kdaviduik)

**Note: Most Hydrogen storefronts do NOT need this feature.**

This API addition provides Storefront API 2025-10 parity for the `visitorConsent` parameter in `@inContext` directives. However, if you're using Hydrogen's analytics provider or Shopify's Customer Privacy API (including third-party consent services integrated with it), consent is already handled automatically and you don't need to use this.

This feature is primarily intended for Checkout Kit and other non-Hydrogen integrations that manage consent outside of Shopify's standard consent flow.

**What it does:**
When explicitly provided, `visitorConsent` encodes buyer consent preferences (analytics, marketing, preferences, saleOfData) into the cart's `checkoutUrl` via the `_cs` parameter.

### Patch Changes

- Add `parent` prop to `AddToCartButton` for nested cart lines ([#3398](https://github.com/Shopify/hydrogen/pull/3398)) by [@fredericoo](https://github.com/fredericoo)

The `AddToCartButton` component now accepts an optional `parent` prop, allowing you to add items as children of an existing cart line. This enables adding warranties, gift wrapping, or other add-ons that should be associated with a parent product.

### Usage

```tsx
import {AddToCartButton} from '@shopify/hydrogen-react';

// Add a warranty as a child of an existing cart line (by line ID)
<AddToCartButton
variantId="gid://shopify/ProductVariant/warranty-123"
parent={{parentLineId: 'gid://shopify/CartLine/parent-456'}}
>
Add Extended Warranty
</AddToCartButton>

// Add a warranty as a child of a cart line (by merchandise ID)
// Useful when you know the product variant but not the cart line ID
<AddToCartButton
variantId="gid://shopify/ProductVariant/warranty-123"
parent={{merchandiseId: 'gid://shopify/ProductVariant/laptop-456'}}
>
Add Extended Warranty
</AddToCartButton>
```

### Type

```ts
interface AddToCartButtonPropsBase {
// ... existing props
/** The parent line item of the item being added to the cart. Used for nested cart lines. */
parent?: CartLineParentInput;
}
```

- Add support for `article_reference` and `list.article_reference` metafield types ([#3407](https://github.com/Shopify/hydrogen/pull/3407)) by [@kdaviduik](https://github.com/kdaviduik)

These new metafield types were introduced in Storefront API 2025-10, allowing merchants to reference blog articles in metafields.

## 2025.7.2

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/hydrogen-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shopify/hydrogen-react",
"version": "2025.7.2",
"version": "2025.10.0",
"description": "React components, hooks, and utilities for creating custom Shopify storefronts",
"homepage": "https://github.com/Shopify/hydrogen/tree/main/packages/hydrogen-react",
"license": "MIT",
Expand Down
Loading