Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@shopify/hydrogen@2025.10.0
Major Changes
Minor Changes
Add
cartDeliveryAddressesReplaceDefaultto handle the newcartDeliveryAddressesReplaceStorefront API mutation (2025-10) (#3406) by @kdaviduikThis new mutation replaces all delivery addresses on a cart in a single operation.
Usage via cart handler:
Usage via CartForm:
Add
cartGiftCardCodesAddmutation (#3401) by @kdaviduikNew Feature: cartGiftCardCodesAdd
Adds gift card codes without replacing existing ones.
Before (2025-07):
After (2025-10):
Verified API Behavior
Note: The API handles duplicate gift card codes gracefully - submitting an already-applied code results in silent success (idempotent behavior), not an error. No
DUPLICATE_GIFT_CARDerror code exists.Note on whitespace: The API does NOT trim whitespace from codes. Ensure codes are trimmed before submission if accepting user input.
API Reference
New method:
cart.addGiftCardCodes(codes)- Appends codes to cartCartForm.ACTIONS.GiftCardCodesAdd- Form actionSkeleton Template Changes
The skeleton template has been updated to use the new
cartGiftCardCodesAddmutation:UpdateGiftCardFormcomponent fromCartSummary.tsxAddGiftCardFormcomponent usingCartForm.ACTIONS.GiftCardCodesAddIf you customized the gift card form in your project, you may want to migrate to the new
Addaction for simpler code.Usage
Or with createCartHandler:
Add
visitorConsentsupport to@inContextdirective for Storefront API parity (#3408) by @kdaviduikNote: Most Hydrogen storefronts do NOT need this feature.
This API addition provides Storefront API 2025-10 parity for the
visitorConsentparameter in@inContextdirectives. 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,
visitorConsentencodes buyer consent preferences (analytics, marketing, preferences, saleOfData) into the cart'scheckoutUrlvia the_csparameter.Patch Changes
cart.updateDeliveryAddressesmutation now clears all delivery addresses when passed an empty array (#3393) by @fredericooBreaking Behavior Change in Storefront API 2025-10
The
cartDeliveryAddressesUpdatemutation now clears all delivery addresses when passed an empty array. This behavior was undefined in previous API versions.What Changed
Before (API ≤ 2025-07):
Passing an empty array did not update any addresses, essentially a no-op.
After (API ≥ 2025-10):
Passing an empty array explicitly clears all delivery addresses from the cart.
Usage
Migration
If you are relying on
cart.updateDeliveryAddresses([])in your codebase, verify if the new behavior is compatible with your expectations.Otherwise, no migration is required.
Updated dependencies [
0e61522871fd7500b9cbfa5d15db685deab4c802,cd653456fbd1e7e1ab1f6fecff04c89a74b6cad9,b79b6fc39cdd28e3c73240c4f5e53339feb49561,38f8a79625838a9cd4520b20c0db2e5d331f7d26]:@shopify/hydrogen-react@2025.10.0
Major Changes
Minor Changes
Add
visitorConsentsupport to@inContextdirective for Storefront API parity (#3408) by @kdaviduikNote: Most Hydrogen storefronts do NOT need this feature.
This API addition provides Storefront API 2025-10 parity for the
visitorConsentparameter in@inContextdirectives. 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,
visitorConsentencodes buyer consent preferences (analytics, marketing, preferences, saleOfData) into the cart'scheckoutUrlvia the_csparameter.Patch Changes
Add
parentprop toAddToCartButtonfor nested cart lines (#3398) by @fredericooThe
AddToCartButtoncomponent now accepts an optionalparentprop, 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
Type
Add support for
article_referenceandlist.article_referencemetafield types (#3407) by @kdaviduikThese new metafield types were introduced in Storefront API 2025-10, allowing merchants to reference blog articles in metafields.
@shopify/cli-hydrogen@11.1.8
Patch Changes
Update Storefront API and Customer Account API to version 2025-10 (#3352) by @fredericoo
Add support for Bun's text-based lockfile (
bun.lock) introduced in Bun 1.2, and npm's shrinkwrap lockfile (npm-shrinkwrap.json), as alternatives to their respective primary lockfiles (bun.lockbandpackage-lock.json). (#3405) by @thomasKnAdd
cartGiftCardCodesAddmutation (#3401) by @kdaviduikNew Feature: cartGiftCardCodesAdd
Adds gift card codes without replacing existing ones.
Before (2025-07):
After (2025-10):
Verified API Behavior
Note: The API handles duplicate gift card codes gracefully - submitting an already-applied code results in silent success (idempotent behavior), not an error. No
DUPLICATE_GIFT_CARDerror code exists.Note on whitespace: The API does NOT trim whitespace from codes. Ensure codes are trimmed before submission if accepting user input.
API Reference
New method:
cart.addGiftCardCodes(codes)- Appends codes to cartCartForm.ACTIONS.GiftCardCodesAdd- Form actionSkeleton Template Changes
The skeleton template has been updated to use the new
cartGiftCardCodesAddmutation:UpdateGiftCardFormcomponent fromCartSummary.tsxAddGiftCardFormcomponent usingCartForm.ACTIONS.GiftCardCodesAddIf you customized the gift card form in your project, you may want to migrate to the new
Addaction for simpler code.Usage
Or with createCartHandler:
Add support for nested cart line items (warranties, gift wrapping, etc.) (#3398) by @fredericoo
Storefront API 2025-10 introduces
parentRelationshipon cart line items, enabling parent-child relationships for add-ons. This update displays nested line items in the cart.Changes
parentRelationshipandlineComponentsfieldsCartMainandCartLineItemto render child line items with visual hierarchyNote
This update focuses on displaying nested line items. To add both a product and its child (e.g., warranty) in a single action:
@shopify/create-hydrogen@5.0.28
Patch Changes
Add
cartGiftCardCodesAddmutation (#3401) by @kdaviduikNew Feature: cartGiftCardCodesAdd
Adds gift card codes without replacing existing ones.
Before (2025-07):
After (2025-10):
Verified API Behavior
Note: The API handles duplicate gift card codes gracefully - submitting an already-applied code results in silent success (idempotent behavior), not an error. No
DUPLICATE_GIFT_CARDerror code exists.Note on whitespace: The API does NOT trim whitespace from codes. Ensure codes are trimmed before submission if accepting user input.
API Reference
New method:
cart.addGiftCardCodes(codes)- Appends codes to cartCartForm.ACTIONS.GiftCardCodesAdd- Form actionSkeleton Template Changes
The skeleton template has been updated to use the new
cartGiftCardCodesAddmutation:UpdateGiftCardFormcomponent fromCartSummary.tsxAddGiftCardFormcomponent usingCartForm.ACTIONS.GiftCardCodesAddIf you customized the gift card form in your project, you may want to migrate to the new
Addaction for simpler code.Usage
Or with createCartHandler:
skeleton@2025.10.0
Major Changes
Patch Changes
Add support for nested cart line items (warranties, gift wrapping, etc.) (#3398) by @fredericoo
Storefront API 2025-10 introduces
parentRelationshipon cart line items, enabling parent-child relationships for add-ons. This update displays nested line items in the cart.Changes
parentRelationshipandlineComponentsfieldsCartMainandCartLineItemto render child line items with visual hierarchyNote
This update focuses on displaying nested line items. To add both a product and its child (e.g., warranty) in a single action:
Updated dependencies [
cd653456fbd1e7e1ab1f6fecff04c89a74b6cad9,24d26ad94e90ab0a859c274838f7f31e75a7808c,13a6f8987ea20d33a30a9c0329d7c11528b892ea,403c1f5b6e266c3dfad30f7cfed229e3304570b0,38f8a79625838a9cd4520b20c0db2e5d331f7d26]: