chore(deps): update dependency @shopify/hydrogen to v2025 #517
+2
−2
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 contains the following updates:
^2024.7.4
->^2025.0.0
Release Notes
Shopify/hydrogen (@shopify/hydrogen)
v2025.7.0
Compare Source
Major Changes
Update Storefront API and Customer Account API to version 2025-07 (#3082) by @juanpprieto
This update includes:
Breaking changes may occur due to API schema changes between versions.
Add React Router 7.9.2 support infrastructure with full compatibility for both context access patterns. (#3142) by @juanpprieto
v2025.5.0
Compare Source
Patch Changes
Migrating to React Router 7 (#2866) by @balazsbajorics
Major version bumping libraries that now depend on react-router@7 (#2866) by @balazsbajorics
v2025.4.1
Compare Source
Patch Changes
Add a
buyerIdentity
parameter tocreateHydrogenContext
andcreateCartHandler
. This buyer identity will be used as the default buyer identity for all new cart creations: (#2927) by @blittlev2025.4.0
Compare Source
Patch Changes
Update SFAPI and CAAPI versions to 2025.04 (#2886) by @juanpprieto
Switch to an evergreen URL for Perfkit. Users will no longer need to update Hydrogen to get the newest features and bugfixes. (#2895) by @krzksz
Updated dependencies [
af23e710
]:v2025.1.4
Compare Source
Patch Changes
Fix the customer account implementation to clear all session data on logout. Previously we would only clear customer account credentials on logout. This change also clears any custom data in the session as well. You can opt out and keep custom data in the session by passing the
keepSession
option to logout: (#2843) by @blittleAdd support for cartDeliveryAddressesAdd, cartDeliveryAddressesRemove and cartDeliveryAddressesUpdate mutations (#2850) by @juanpprieto
Deprecation Notice: VariantSelector (#2837) by @juanpprieto
VariantSelector
is deprecated because it does not supports 2k variants or combined listing products. UsegetProductOptions
for a streamlined migration to a modern scalable product form.encodedVariantExistence
andencodedVariantAvailability
. This will allow the product form to determine which variants are available for selection.VARIANTS_QUERY
and related logic fromloadDeferredData
, as querying all variants is no longer necessary. Simplifies the function to return an empty object.Product
component to usegetAdjacentAndFirstAvailableVariants
for determining the selected variant, improving handling of adjacent and available variants.getProductOptions
, enabling efficient handling of product variants and their associated options.Await
andSuspense
fromProductForm
as there are no longer any asynchronous queries to wait for, simplifying the component structure.ProductForm
to handle combined listing products and variants efficiently. It uses links for different product URLs and buttons for variant updates, improving SEO and user experience.useVariantUrl
andgetVariantUrl
functions more flexible by allowingselectedOptions
to be optional. This ensures compatibility with cases where no options are provided.routes/collections.$handle.tsx
, simplifying the code by relying on the product route to fetch the first available variant.and remove the variant reference
ProductItem
component by removing variant-specific queries and logic. TheuseVariantUrl
function now generates URLs without relying on variant options, reducing complexity.and remove the variant reference
variants(first: 1)
withselectedOrFirstAvailableVariant
in GraphQL fragments to directly fetch the most relevant variant, improving query efficiency and clarity.SearchResultsProducts
to useselectedOrFirstAvailableVariant
for fetching product price and image, simplifying the logic and improving performance.SearchResultsPredictive
to useselectedOrFirstAvailableVariant
for fetching product price and image, ensuring accurate and efficient data retrieval.v2025.1.3
Compare Source
Patch Changes
Bump Remix to 2.16.1 and vite to 6.2.0 (#2784) by @wizardlyhel
Support for the Remix future flag
v3_routeConfig
. (#2722) by @seanparsonsPlease refer to the Remix documentation for more details on
v3_routeConfig
future flag: https://remix.run/docs/en/main/start/future-flags#v3_routeconfigAdd the following npm package dev dependencies:
If you have
export function Layout
in yourroot.tsx
, move this export into its own file. For example:Create a
routes.ts
file.Update your
vite.config.ts
.Updated dependencies [
0425e50d
]:v2025.1.2
Compare Source
Patch Changes
Update cli dependencies (#2766) by @juanpprieto
Updated dependencies [
128dfcd6
]:v2025.1.1
Compare Source
Patch Changes
Update
getProductOptions
to handle divergent product options. (#2747) by @wizardlyhelAdded the ability to optionally provide
language
data tocreateCustomerAccountClient
, and automatically pass it down to it fromcreateHydrogenContext
. (#2746) by @ruggishopIf present, the provided
language
will be used to set theuilocales
property in the Customer Account API request.Calls to
login()
will use the providedlanguage
without having to pass it explicitly viauiLocales
; however, if thelogin()
method isalready using its
uilocales
property, thelanguage
parameter coming from the context/constructor will be ignored. If nothing is explicitly passed,login()
will default tocontext.i18n.language
.Upgrade eslint to version 9 and unify eslint config across all packages (with the exception of the skeleton, which still keeps its own config) (#2716) by @liady
Bump remix version (#2740) by @wizardlyhel
Turn on Remix
v3_singleFetch
future flag (#2708) by @wizardlyhelB2B methods and props are now stable. Warnings are in place for unstable usages and will be removed completely in the next major version. (#2736) by @dustinfirman
Search for anywhere using
UNSTABLE_getBuyer
andUNSTABLE_setBuyer
is update accordingly.Update
createHydrogenContext
to remove theunstableB2b
optionUpdated dependencies [
3af2e453
,cd65685c
]:v2025.1.0
Compare Source
Patch Changes
Bump vite, Remix versions and tailwind v4 alpha to beta (#2696) by @wizardlyhel
Remove deprecated
customerAccountUrl
(#2730) by @wizardlyhelFix
getProductOptions
crashing when one of variants returns a nullfirstSelectableVariant
. (#2704) by @wizardlyhelBump SFAPI to 2025-01 (#2715) by @rbshop
Updated dependencies [
fdab06f5
,650d57b3
,064de138
,08b7fa5b
]:Configuration
📅 Schedule: Branch creation - Between 12:00 AM and 03:59 AM, only on Monday ( * 0-3 * * 1 ) (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.