This repository has been archived by the owner on Mar 3, 2023. It is now read-only.
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 2023-01, this PR will be updated.
Releases
@shopify/storefront-kit-react@2023.1.1
Patch Changes
9bff83c: Updated to Storefront API version
2023-01
Storefront API Changes
The Storefront API changelog can be viewed here. There are not any breaking changes in the Storefront API itself.
Storefront Kit changes
Breaking Changes
The default Cart query no longer uses
compareAtPriceV2
andpriceV2
; usecompareAtPrice
andprice
instead. TheV2
fields will be removed in an upcoming version of the Storefront API.The storefront client and ShopifyProvider now provide the
storeDomain
exactly as it is received; it's recommended that you pass the domain with the protocol and the fully-qualified domain name for your Storefront. For example:https://hydrogen-test.myshopify.com
parseMetafield
's implementation has been updated and vastly improved so that it is correctly parsing all the metafield types.The parsed metafield will now be found on the
parsedValue
property. For example:Additionally, a new TypeScript type called
ParsedMetafields
is provided to help theparseMetafield
function return the correct TypeScript types, by passing the type of metafield into theParsedMetafield
type. For example:The
<Metafield/>
component has been removed; useparseMetafield().parsedValue
to have control over what you want to renderOther Changes
flattenConnection()
should now be friendlier: if you are using aPartialDeep
object, you'll still get aPartialDeep
object in return; if you're NOT using aPartialDeep
object, then the returned type will not be wrapped inPartialDeep
.