You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Storefront API changelog can be viewed [here](https://shopify.dev/api/release-notes/2023-01#graphql-storefront-api-changes). There are not any breaking changes in the Storefront API itself.
10
+
11
+
## Storefront Kit changes
12
+
13
+
### Breaking Changes
14
+
15
+
- The default Cart query no longer uses `compareAtPriceV2` and `priceV2`; use `compareAtPrice` and `price` instead. The `V2` fields will be removed in an upcoming version of the Storefront API.
16
+
- 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`
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,7 @@ Processes that need to happen:
49
49
50
50
- Create a new branch for the version, e.g. `2022-10`.
51
51
- Comment out the "Create release pull request or publish" job in `releases.yml` so that it won't auto-publish a new version of the branch until you're ready
52
+
- Create a new changeset. Use this changeset to add notes and guides to important things that are changed as part of this update.
52
53
- Do a find & replace in the code to replace nearly all instances of the old version with the new version.
53
54
- However, don't replace documentation unless it makes sense.
54
55
- Also be careful that some versions of the Storefront API don't exactly match code here: for example, SFAPI `2022-07` could be both `2022-07` and `2022-7` in this codebase.
// @deprecated remove the ability to pass in '.myshopify.com' strings in the future
54
-
if(storeDomain.includes('.myshopify.com')){
55
-
if(__HYDROGEN_DEV__){
56
-
console.warn(
57
-
`<ShopifyProvider/>: passing a 'storeDomain' prop that includes '.myshopify.com' will be unsupported in the future. Passing only the subdomain (for example, if the URL is 'test.myshopify.com', passing in 'test') will be the supported way going forward.`
/** The globally-unique identifier for the Shop */
121
106
storefrontId?: string;
122
-
/** The subdomain of your Shopify storefront URL (eg: `{subdomain}.myshopify.com`). */
107
+
/** The full domain of your Shopify storefront URL (eg: the complete string of `{subdomain}.myshopify.com`). */
123
108
storeDomain: string;
124
109
/** The Storefront API public access token. Refer to the [authentication](https://shopify.dev/api/storefront#authentication) documentation for more details. */
0 commit comments