# What changed in @shopify/hydrogen

> 198 changes in @shopify/hydrogen 2024 to 2026 from its official release notes, upgrade guides and advisories: 41 breaking, 11 deprecations, 10 security, 61 new APIs and options. Each one cited. Sources checked 2026-11-26. HTML: https://unstale.sh/npm/@shopify/hydrogen/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @shopify/hydrogen 2026

### Breaking changes

- The Shopify, .well-known, and UCP MCP proxies no longer forward client IP and forwarding headers supplied by the incoming request; the Storefront API proxy still sets Shopify-Storefront-Buyer-IP from requestContext.buyerIp. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- Downloads the React Router template from the dist branch instead of dist-preview. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- The Customer Account client fills an omitted variable only when the document declares it as LanguageCode; other types are left to the caller, while a passed value still takes precedence. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- The resolved language, country, and pathPrefix are exposed as requestContext.locale and storefrontClient.locale, typed as ShopifyMatchedLocale. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- Requests to the bare proxy prefix or its trailing-slash form now return 404 instead of proxying the Online Store home page; paths beneath the prefix remain proxied. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- No longer follows redirects; a 3xx response throws StorefrontApiError, and rejected redirects do not contribute Set-Cookie headers. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- Removes destroy because Hydrogen owns the shared analytics bus for the page lifetime; use the destination cleanup function when needed. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Removes the top-level event subscription method; register consumers through analytics.addDestination() and its setup callback instead. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Removed from private Storefront client configuration; provide it through a buyer-bearing request context instead. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Rejects JSON requests combining lines, discountCodes, attributes, or note with invalid_cart_request instead of silently dropping changes. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- The standalone React export is removed; use the typed version from createCartComponents() instead. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- custom-banner now requires an asynchronous setup callback that synchronizes third-party consent through Shopify's customerPrivacy API before resolving; events remain blocked if setup fails. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Private Storefront API buyer IP now comes exclusively from requestContext; buyerIp is removed from private client configuration. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Creates a local self-contained hydrogen-shop-pay-button instead of loading Shopify's hosted shop-js component; styling is limited to width and borderRadius. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Removes the unused type export; use AnalyticsEventMap and PayloadFor to type analytics event payloads. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Treats the variant search parameter as reserved and never returns it as a selected option. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Removes the Shop Pay button attributes helper. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Product URLs with numeric variant query parameters now redirect to canonical option-parameter URLs; unknown or deleted variants are stripped, and variants in combined listings can redirect to their own product page. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Returns null synchronously when no Shopify route matches; matched routes continue to return a Promise<Response>. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Stale-while-revalidate refreshes are no longer cancelled when the request or caller aborts and are bounded by defaultTimeoutInMs. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Removes the hosted shop-js loading API as part of rendering the Shop Pay button locally. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Changes from a bare amount string to the Storefront API MoneyV2 shape, so product_viewed events can obtain currency from currencyCode. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Hydrogen now uses Storefront API version 2026-10; deprecated discount fields have replacements, and lineLevelOnly defaults to true for cart-line discount allocations. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Removes locations, path, and extensions from the error and its toJSON output; GraphQL errors should be read from result.errors. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- The standalone Vue export is removed; use the typed version from createCartComponents() instead. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- When no return_to or redirect search parameter is present, saves the post-sign-in redirect as a normalized path on the storefront origin, falling back to defaultRedirectPath otherwise. (2026.4.8) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.8)
- Developer tooling routes respond only to requests from the machine running the dev server; requests from other devices receive a 404, while storefront routes are unaffected. (2026.4.8) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.8)
- The cookieDomain prop is a deprecated no-op because the Customer Privacy API manages Shopify cookies. (2026.4.6) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.6)
- This option is deprecated and ignored as if it were true; setting it to false logs a warning. (2026.4.6) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.6)
- Server-Timing headers are no longer collected or forwarded for tracking. (2026.4.6) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.6)
- Hydrogen no longer creates this deprecated JavaScript-visible cookie; the Customer Privacy API handles migration and expiration of legacy analytics cookies. (2026.4.6) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.6)
- Hydrogen no longer creates this deprecated JavaScript-visible cookie; the Customer Privacy API handles migration and expiration of legacy consent cookies. (2026.4.6) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.6)
- The session is only cleared when the refresh token is missing or the token endpoint returns invalid_grant; other errors can be retried on a subsequent request. (2026.4.5) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.5)
- The resource timing sampling rate is reduced from 100 to 10, changing how often PerfKit samples resource timings. (2026.4.4) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.4)
- The plugin is no longer needed in the skeleton template because Vite 8 supports `resolve.tsconfigPaths` natively. (2026.4.2) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.2)
- For API version 2026-04 or later, JSON metafield writes are limited to 128KB; apps using them before April 1, 2026 are grandfathered at 2MB. (2026.4.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.0)
- Cart operations return this specific error code when a Cart Transform Function fails at runtime, instead of the generic INVALID code. (2026.4.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.0)
- The createRequestHandler option was removed because the Storefront API proxy is now always enabled. (2026.4.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.0)
- The request handler throws an error if the load context lacks a storefront instance, rather than logging a warning. (2026.4.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.0)
- The mutation now requires the discountCodes argument; custom cart discount code logic must include this field. (2026.1.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.1.0)

### Security

- Checkout redirects now send private, no-store cache headers, preventing shared caches from storing buyer-specific checkout URLs. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- Adds a framework-independent utility for Shopify CSP directives; directive arrays extend defaults, and the development build allows common local HTTP and WebSocket connections. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- Exports hashes for Shopify's static inline bootstraps so applications can authorize them with CSP hashes without per-request hashing or a shared framework nonce. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- Responses Hydrogen makes private now drop Oxygen-Cache-Control and other vendor cache-control headers, preventing Oxygen full-page cache from storing customer data. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- Makes the personalization marker public so apps can mark responses containing customer data Hydrogen cannot see; applying response headers then makes them private and uncacheable. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- No longer caches responses with private or no-store Cache-Control, even when the query specifies a cache strategy; such responses also make the final response private when response headers are applied. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- Sets integrity and other security attributes before inserting the script element into the DOM, preventing the browser from beginning a fetch before those attributes are applied. (2026.4.8) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.8)
- OAuth state values now use cryptographically secure randomness, helping recover customer account login when switching browser contexts or opening multiple login tabs. (2026.4.5) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.5)

### Deprecations

- Remains available as a deprecated alias for defineShopifyRouteTemplates and will be removed in the next major release. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- Renames createShopifyRouteTemplates; the old name remains a deprecated alias and will be removed in the next major release. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- Passing a fixed language, country, and pathPrefix as i18n remains supported but is deprecated; use a defineShopifyI18n definition for URL matching. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- Deprecated in favor of ShopifyLocale for language and country, ShopifyMatchedLocale for resolved locales, and ShopifyI18n for the definition. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- Deprecated in favor of requestContext.locale; it still holds the resolved locale. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- Deprecated in favor of storefrontClient.locale; it still holds the resolved locale. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- `@shopify/hydrogen/vite` exports a deprecated `hydrogen()` that throws an error explaining the installed version, the `~2026.4.0` pin, and the migration guide. (2026.10.2) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.2)
- Hydrogen now uses API version 2026-10; typed address mutations must use countryCode, and several deprecated or removed fields and types are affected. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- The domain option is a deprecated no-op because the Customer Privacy API manages Shopify cookies. (2026.4.6) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.6)
- The hasUserConsent option is a deprecated no-op; standalone integrations that used false to clear cookies should remove it because cookie lifecycle is handled automatically. (2026.4.6) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.6)
- The ignoreDeprecatedCookies option is a deprecated no-op because the Customer Privacy API manages Shopify cookies and expires deprecated ones. (2026.4.6) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.6)

### New APIs and options

- Adds a framework-independent CSP utility that applies response headers and exposes a header for forwarding to a separate renderer. Nonce policies prevent document caching; nonce: false supports cached HTML and prerendered shells. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- Accepts a defineShopifyI18n definition and matches the locale from the request URL or forwarded x-storefront-url header; an explicit locale is validated against the definition. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- Defines serializable module-scope internationalization configuration that resolves the request locale, with pathname or domain routing. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- Returns the segment that identifies a locale in a URL or route parameter, for every locale regardless of routing type. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- Rewrites an href into another locale, producing a path for pathname routing or an absolute URL for domain routing. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- Matches a locale from a Request, URL, URL string, or pathname, and throws for a string that is neither a URL nor a pathname. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- Exports a type for typing usePredictiveSearch state from the same custom fragments as server handlers. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- Validates an explicitly chosen locale or path segment against the definition and throws UnsupportedLocaleError otherwise. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- Exports the options type of getSearchResultUrl. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- Accepts an optional third type parameter for the handler context, defaulting to ShopifyRouteHandlerContext. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- Adds a global identifying the application that rendered the page, with name hydrogen and the Hydrogen release version. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- Enables loading Shopify's customer account web component through getShopifyScriptTags() and the React or Vue ShopifyScripts components. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Proxies caller-authenticated UCP MCP requests to the configured Shopify store. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Builds product-selection search parameters, removes stale option and variant parameters, and can emit shareable variant links. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Exported from @shopify/hydrogen for custom framework bindings; React and Vue continue exporting the same type. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Adds an optional merchandiseId field so cart line updates can swap an existing line to another variant. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Pass cart handlers to createCustomerAccountServerHandlers to synchronize existing carts with customer authorization, refresh, and logout. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Adds pending cart cost state while cost-affecting optimistic mutations settle. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Adds cart state that indicates authoritative cart reconciliation is in progress. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Reconciles the current cart after out-of-band mutations, waits for optimistic mutations, updates custom fragment fields, and loads a cart if the store has none. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Exported from @shopify/hydrogen for custom framework bindings; React and Vue continue exporting the same type. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Configures a HydrogenLogger-compatible logging sink and level for the application. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Custom runners can call run({ background: true }) to use the backgroundSignal cache option for stale-while-revalidate refreshes. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Can be imported from the storefront API types entry point; ProductPayload.price currencyCode uses this union. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Pass to createCartServerHandlers to create new carts with the current customer's buyer identity when the session has a usable access token. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Adds custom-element registration for the local Shop Pay button. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Adds a helper for constructing the Shop Pay checkout URL. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Analytics destinations can read consent-API uniqueToken and visitToken values; reads return empty strings when tracking is unavailable or disallowed. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Adds an overload that composes additional fragments onto an already-declared document while preserving inferred types. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Removes Hydrogen's local HTTPS files and can remove the shared mkcert CA with --remove-ca. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Defines the logging contract for trace, debug, info, warn, error, and fatal messages. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Adds portable local HTTPS development support for Customer Account API flows, including certificate provisioning and Shopify CLI configuration when available. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Can be imported from the storefront API types entry point when typing analytics payloads. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Adds a type for default product attribute values. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Adds a type for product attribute value registration. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Adds registration of line-item attributes through form-based add-to-cart; client and server payload parsing extract attributes.* entries from FormData. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Provides an explicit helper for provisioning local HTTPS certificates, including in CI environments. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Adds a way to render Shop Pay button server HTML. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Adds standard cart, search, policy, and collection-listing templates for consistent matching, resolution, and redirects; predictive search honors the configured search route. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Exports the customer account web-component script URL. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- ShopifyScripts emits the event on initial page loads and SPA navigations and synchronizes the page template with PerfKit. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Registered route redirects can set an explicit status restricted to 301, 302, 303, 307, or 308. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Adds an optional createStorefrontClient option that sends the trusted Shopify-Storefront-Id header on direct and proxied requests. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Adds React and Vue cart actions for reconciling the current cart after out-of-band mutations. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Adds a Vue composable to subscribe the cart store to analytics tracking on mount and unsubscribe on dispose. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Adds generic cart result typing so custom cart fragments can use their generated fragment types. (2026.4.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.3)
- Set to true before the Customer Privacy API script loads, this flag tells the consent library to use server-set cookies instead of the legacy _tracking_consent JavaScript cookie. (2026.4.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.0)
- Hydrogen automatically proxies requests to /api/mcp to Shopify's Storefront MCP server when proxyStandardRoutes is enabled, which is the default. (2026.1.4) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.1.4)
- This option on createCustomerAccountClient and createHydrogenContext makes the development tunnel domain check log a warning instead of throwing when set to true, enabling custom HTTPS setups for Customer Account API OAuth. (2026.1.4) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.1.4)

### Performance

- Long runs of slashes no longer slow standard route matching and URL redirect lookups; trailing slashes are trimmed in linear time. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)

### Behavior and default changes

- The utility applies script attributes before inserting the script into the DOM. (2026.10.2) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.2)
- `handleShopifyRoutes` requires `sessionManager` only when a registered handler's context includes it, so cart-only apps can omit it; custom handlers can opt out by annotating their context. (2026.10.2) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.2)
- The PerfKit script configuration rendered by `ShopifyScripts` is updated in production builds. (2026.10.2) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.2)
- The cart store now applies calls that update or remove several lines at once, projecting and marking each line pending, rolling back on failure, and settling from the response. (2026.10.2) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.2)
- handleShopifyRoutes forwards UCP buy permalinks to the configured Shopify store using a 303 no-store redirect; in-app navigation becomes document navigation. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Serves Shopify's managed UCP business profile from headless storefront origins. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Proxies allowlisted Shopify well-known resources. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Fails when a query selects a deprecated field when --fail-on-warn is used. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Works without a package.json by prompting to scaffold the React Router template or install AI coding skills only. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Returns the standard pathname and both standard and custom route templates. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Vue collection, cart, and product form callbacks now receive a SubmitEvent, so e.submitter can be read without casting. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- The WebMCP CDN script URL is updated to shopifycloud/storefront/webmcp/webmcp.js. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Hydrogen uses visitor tracking values returned in the consentManagement response and enables asynchronous consent initialization so the Customer Privacy API fetches and caches them before analytics starts. (2026.4.6) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.6)
- New Hydrogen projects created with this command default to Vite 8. (2026.4.2) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.2)
- Peer dependencies now use caret ranges (^7.12.0), allowing Hydrogen projects to use newer React Router minor versions without peer dependency conflicts. (2026.4.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.0)
- The skeleton robots.txt defaults no longer include disallow rules specific to Shopify themes, reducing confusion when reviewing or customizing rules in scaffolded projects. (2026.1.2) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.1.2)
- Updated to the 2026-01 API version as part of Shopify's quarterly API release schedule. (2026.1.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.1.0)

### Tooling

- A fresh install ends with a message directing the console user to ask their agent to use the hydrogen-setup skill; runs that only resync skills print no extra message. (2026.10.2) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.2)
- Copies the new migrate-to-hydrogen-2026-10 packaged skill into your project to guide migration from a classic Hydrogen storefront to Hydrogen 2026-10. (2026.10.1) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.1)
- Editor completions for the type discriminant now suggest all client types, and config completions narrow to the selected type. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Installs the local certificate authority and generates certificate files for local HTTPS development. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Checks whether project skills match the installed Hydrogen package and exits non-zero by default when they are missing or out of sync. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Synchronizes packaged agent skills with the installed Hydrogen version, updating unmodified skills and preserving local edits unless --force is passed. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Hydrogen supports Vite 7 and Vite 8 while remaining backwards-compatible with Vite 5+. (2026.4.2) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.2)
- Mini Oxygen's dev server uses the Vite Environment API, improving compatibility with Vite's built-in HMR and module invalidation. (2026.4.2) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.2)

### Fixes and other changes

- Checkout redirects no longer intercept account login, authorize, refresh, or logout routes, allowing apps' own handlers to receive them. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- Re-added destinations resume retained-event delivery where they left off, and pending replay delivers retained events in order without skipping or duplicating the current event. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- A malformed cart cookie is treated as a missing cart instead of failing the request. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- Malformed percent sequences in collection filter keys remain literal instead of failing the request. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- Returns opaque responses, such as browser redirect: manual responses, unchanged instead of failing with a RangeError while serializing their status. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- Registered handlers now match after the request's locale prefix is stripped, so localized handler paths reach the handler instead of falling through to the app. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- Canonical decimal values from serialized URLs and number inputs now parse correctly in shops whose locale uses a dot as the group separator. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- A collection-scoped product match without a collection handle now uses the product's standard path and matches templates.standard. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- register("remove") now returns formNoValidate: true and the new RemoveButtonAttributes type, allowing cart lines to be removed even when quantity input is invalid. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- Resolves for require-based resolvers, including Jest in default CommonJS mode, the same way as the root entry point. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- Marks the Standard Events CDN import with webpackIgnore so webpack and Turbopack leave it to the browser, fixing webpack builds and missing page-view events in Next.js Turbopack apps. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- The Storefront API client again sends User-Agent: Hydrogen <version> on the server; browsers continue to set their own User-Agent. (2026.10.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.3)
- Prevents cart hydration mismatches when asynchronous initial cart data resolves before a `useCart` consumer hydrates. (2026.10.2) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.2)
- A cart change made while a cart load is in flight no longer hides other lines or leaves loading stuck; the store revalidates when the change settles, including after destruction and reconnection. (2026.10.2) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.2)
- The Storefront client injects the request market only for variables declared as `CountryCode` or `LanguageCode`; same-named variables of other types retain the caller's value and declared requiredness in the variables type. (2026.10.2) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.2)
- Built-in cart queries now select Cart.updatedAt so cart analytics deduplication works without a custom CartFragment. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Cart line updates retain merchandiseId, enabling a line to be swapped to another variant. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Preserves the minus sign when formatting negative amounts. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Accepts any Storefront client, including public or tokenless clients, because URL redirect lookup does not require a token. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Finalizes returned responses with Hydrogen storefront headers, including powered-by, so framework integrations can return them directly. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Inbox runtime prop validation is aligned with its boolean API. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Next.js markets guidance now explains how proxy.ts forwards Hydrogen request context to Server Components. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- The Vue ShopifyScripts routes prop is optional at runtime and is included in the exported ShopifyScriptsProps type. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- The Vue ShopifyScripts component now declares and forwards core script options including shopifyAnalytics. (2026.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.10.0)
- Deferred cart, shop, and consent state updates use startTransition to prevent React from abandoning server-rendered HTML while Suspense boundaries are dehydrating. (2026.4.7) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.7)
- publish from useAnalytics() re-checks consent when called, so events published after consent is revoked no longer reach subscribers. (2026.4.7) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.7)
- Media URLs with query strings, such as Shopify CDN URLs ending in ?v=..., no longer incorrectly fall back to image/jpeg. (2026.4.6) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.6)
- Consent and analytics require the same-origin Storefront API proxy included by Hydrogen's createRequestHandler; without it, consent cannot load, analytics stay off, and the privacy banner does not show. (2026.4.6) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.6)
- The callback now waits for consent as well as selected APIs; failed initial consent keeps analytics and PerfKit blocked until a successful consent update. (2026.4.6) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.6)
- Uses the provided cartId before falling back to getCartId(). (2026.4.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.3)
- Fluid images use width descriptors even when source-dimension filtering leaves exactly three srcset entries, so the sizes attribute is respected. (2026.4.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.3)
- Hydrogen packages accept compatible React Router 7.16 patch versions, and new Hydrogen projects default to React Router 7.16.0. (2026.4.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.3)
- Works for client-side navigations using either the .data pathname suffix or the _data query parameter, returning 204 for soft navigation redirect responses. (2026.4.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.3)
- Cart GraphQL operations include the visitorConsent parameter only when explicitly provided, restoring compatibility with stores whose Storefront API schema lacks the VisitorConsent type. (2026.4.1) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.4.1)
- The method is now typed as async (`Promise<void>`), matching runtime behavior. (2026.1.2) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.1.2)
- In development, errors outside a `*.tryhydrogen.dev` tunnel URL now guide you to run `shopify hydrogen dev --customer-account-push` and continue from the tunnel URL. (2026.1.2) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.1.2)
- Updated to the 2026-01 API version as part of Shopify's quarterly API release schedule. (2026.1.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402026.1.0)

## @shopify/hydrogen 2025

### Security

- Hydrogen peerDependencies now accept React ^18.3.1 or non-CVE-containing React 19 versions, allowing projects to upgrade to React 19 while React 18 remains compatible. (2025.7.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.7.3)
- The Storefront API proxy in createRequestHandler obtains http-only cookies from Storefront API and can be disabled with this option. (2024.7.10 … 2025.7.1) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.4.2), [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.1.5), [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402024.10.2), [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402024.7.10), [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.5.1), [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.7.1)

### New APIs and options

- Adds gift card codes to a cart without replacing existing ones; duplicate codes are handled idempotently. (2025.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.10.0)
- Adds a CartForm action for replacing all delivery addresses on a cart in a single operation. (2025.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.10.0)
- Adds a CartForm action for adding gift card codes to a cart without replacing existing ones. (2025.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.10.0)
- Supports the visitorConsent parameter to encode buyer consent preferences into the cart checkoutUrl via the _cs parameter. (2025.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.10.0)
- Adds a cart handler method to replace all delivery addresses on a cart in a single operation. (2025.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.10.0)
- Updated the Storefront API to version 2025-10, which adds new API behavior and mutations used by Hydrogen. (2025.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.10.0)
- Adds an optional locale parameter to set the OAuth authorization URL's locale query parameter. Locale sources now use locale instead of ui_locales, with locale taking priority over uiLocales and configured language. (2025.7.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.7.3)
- Adds an optional loginHintMode parameter. When set to 'submit' with loginHint, it passes login_hint_mode to the OAuth authorization URL and automatically submits the login form with the provided email. (2025.7.3) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.7.3)
- Adds an optional parameter passed as the acr_values query parameter to the OAuth authorization URL, allowing requests for specific authentication methods or identity providers. (2025.7.2) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.7.2)
- Adds an optional parameter passed as the login_hint query parameter to the OAuth authorization URL to pre-populate the login form with an email address. (2025.7.2) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.7.2)
- createRequestHandler can now be used by every Hydrogen app, not only apps deployed to Oxygen, and is exported from @shopify/hydrogen. (2024.7.10 … 2025.7.1) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.4.2), [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.1.5), [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402024.10.2), [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402024.7.10), [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.5.1), [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.7.1)

### Behavior and default changes

- Updated the Customer Account API to version 2025-10. (2025.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.10.0)
- Analytics.Provider now makes an internal request to the proxy to obtain cookies in the storefront domain. (2024.7.10 … 2025.7.1) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.4.2), [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.1.5), [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402024.10.2), [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402024.7.10), [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.5.1), [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.7.1)
- Hydrogen supports Shopify’s new _shopify_analytics and _shopify_marketing http-only cookies while remaining backward compatible with _shopify_y and _shopify_s. (2025.5.1, 2025.7.1) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.5.1), [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.7.1)
- Hydrogen now uses React Router's stabilized v8_middleware future flag instead of its unstable counterpart. (2025.7.1) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.7.1)
- Hydrogen now uses React Router's stabilized v8_splitRouteModules future flag instead of its unstable counterpart. (2025.7.1) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.7.1)
- Hydrogen supports the _shopify_analytics and _shopify_marketing http-only cookies while remaining backward compatible with the deprecated _shopify_y and _shopify_s cookies. (2024.10.2, 2025.1.5, 2025.4.2) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.4.2), [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.1.5), [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402024.10.2)

### Fixes and other changes

- File paths containing spaces no longer cause errors with virtual routes because URL-encoded paths are decoded. (2025.10.1) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.10.1)
- Passing an empty array now clears all delivery addresses from the cart; previously, it was effectively a no-op. (2025.10.0) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.10.0)
- Fixed build failures caused by Node.js-specific imports in the virtual routes module. (2025.7.2) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.7.2)
- Fixes issues causing irregular behavior between the Privacy Banner and Hydrogen analytics events. (2024.7.10 … 2025.7.1) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.4.2), [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.1.5), [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402024.10.2), [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402024.7.10), [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.5.1), [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.7.1)
- useCustomerPrivacy now makes an internal request to the proxy to obtain cookies in the storefront domain. (2024.10.2 … 2025.7.1) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.4.2), [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.1.5), [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402024.10.2), [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.5.1), [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402025.7.1)

## @shopify/hydrogen 2024

### Breaking changes

- useCustomerPrivacy now requests the proxy internally to obtain cookies in the storefront domain. (2024.7.10) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402024.7.10)

### New APIs and options

- This option disables the Storefront API proxy available in createRequestHandler. (2024.7.10) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402024.7.10)

### Behavior and default changes

- Hydrogen now supports this new Shopify http-only cookie while remaining backward compatible with the deprecated cookies. (2024.7.10) — [release notes](https://github.com/Shopify/hydrogen/releases/tag/%40shopify/hydrogen%402024.7.10)
