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/[email protected]
Patch Changes
Fix an issue with our starter template where duplicate content can exist on URLs that use internationalized handles. For example, if you have a product handle in english of
the-havoc
and translate it todas-chaos
in German, duplicate content exists at both: (#2821) by @blittleWe've changed the starter template to make the second redirect to the first.
Fix faulty truthiness check for cart quantity (#2855) by @frontsideair
Refactor ProductItem into a separate component (#2872) by @juanpprieto
Updated dependencies [
e7db0a54
]:@shopify/[email protected]
Patch Changes
Fix faulty truthiness check for cart quantity (#2855) by @frontsideair
Refactor ProductItem into a separate component (#2872) by @juanpprieto
@shopify/[email protected]
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.@shopify/[email protected]
Patch Changes
[email protected]
Patch Changes
Fix an issue with our starter template where duplicate content can exist on URLs that use internationalized handles. For example, if you have a product handle in english of
the-havoc
and translate it todas-chaos
in German, duplicate content exists at both: (#2821) by @blittleWe've changed the starter template to make the second redirect to the first.
Added the Cursor rule for the subscriptions recipe. (#2874) by @ruggishop
Fix faulty truthiness check for cart quantity (#2855) by @frontsideair
Refactor ProductItem into a separate component (#2872) by @juanpprieto
Updated dependencies [
f80f3bc7
,61ddf924
,642bde4f
]: