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/cli-hydrogen@9.0.3
Patch Changes
@shopify/create-hydrogen@5.0.12
Patch Changes
@shopify/hydrogen@2024.10.1
Patch Changes
Added namespace support to prevent conflicts when using multiple Pagination components: (#2649) by @scottdixon
namespace
prop for the<Pagination/>
componentnamespace
option forgetPaginationVariables()
utilityproducts_cursor
instead ofcursor
)Introduce
getProductOptions
,getAdjacentAndFirstAvailableVariants
,useSelectedOptionInUrlParam
, andmapSelectedProductOptionToObject
to support combined listing products and products with 2000 variants limit. (#2659) by @wizardlyhelAdd params to override the login and authorize paths: (#2648) by @blittle
Add
selectedVariant
prop to theVariantSelector
to use for the initial state if no URL parameters are set (#2643) by @scottdixonUpdated dependencies [
a57d5267
]:@shopify/hydrogen-react@2024.10.1
Patch Changes
getProductOptions
,getAdjacentAndFirstAvailableVariants
,useSelectedOptionInUrlParam
, andmapSelectedProductOptionToObject
to support combined listing products and products with 2000 variants limit. (#2659) by @wizardlyhelskeleton@2024.10.2
Patch Changes
Remove initial redirect from product display page (#2643) by @scottdixon
Optional updates for the product route and product form to handle combined listing and 2000 variant limit. (#2659) by @wizardlyhel
loadDeferredData
function. We no longer need to load in all the variants. You can also removeVARIANTS_QUERY
variable.loadCriticalData
function and completely removeredirectToFirstVariant
functionProduct
component to use the new data fields.getProductOptions
Await
andSuspense
from theProductForm
. We no longer have any queries that we need to wait for.ProductForm
component.app.css
lib/variants.ts
Make
useVariantUrl
andgetVariantUrl
flexible to supplying a selected option paramroutes/collections.$handle.tsx
We no longer need to query for the variants since product route can efficiently
obtain the first available variants. Update the code to reflect that:
and remove the variant reference
routes/collections.all.tsx
Same reasoning as
collections.$handle.tsx
and remove the variant reference
routes/search.tsx
Instead of using the first variant, use
selectedOrFirstAvailableVariant
components/SearchResults.tsx
components/SearchResultsPredictive.tsx
Update
Aside
to have an accessible close button label (#2639) by @lb-Fix cart route so that it works with no-js (#2665) by @wizardlyhel
Bump Shopify cli version (#2667) by @wizardlyhel
Updated dependencies [
8f64915e
,a57d5267
,91d60fd2
,23a80f3e
]: