Conversation
|
Oxygen deployed a preview of your
Learn more about Hydrogen's GitHub integration. |
d4709b0 to
985c227
Compare
985c227 to
4dfc1b2
Compare
kdaviduik
left a comment
There was a problem hiding this comment.
Note: the mock shop doesn't currently support 2025-10+. We are going to update that, but it will take 1-2+ days before that's ready. We don't want to delay this Hydrogen release for that since some merchants are actively waiting on the features (like nested cart line items) in 2025-10.
It's fine that this new version of the skeleton is being released. It doesn't go to npm, and it isn't actually used except with create-hydrogen and cli-hydrogen, which aren't being bumped. Therefore when merchants scaffold a brand new Hydrogen project, it will still be using 2025.7.3 which works with the mock shop.
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.
skeleton@2025.10.0
Patch Changes
cd653456fbd1e7e1ab1f6fecff04c89a74b6cad9,24d26ad94e90ab0a859c274838f7f31e75a7808c,13a6f8987ea20d33a30a9c0329d7c11528b892ea,403c1f5b6e266c3dfad30f7cfed229e3304570b0,38f8a79625838a9cd4520b20c0db2e5d331f7d26]: