demo-store@1.0.3
Patch Changes
-
A default
https://protocol is now added automatically tostoreDomainif missing. (#985) by @frandiox -
Start using GraphQL code generation. This allows us to have full-stack type-safety and better developer experience. (#937) by @frandiox
As a result of the above, we've fixed issues where the frontend was accessing data that was not correctly fetched from the Storefront API. For example, missing
product.vendoror accessingtotalPriceinstead oftotalPriceV2.To enable the unstable codegen feature in your project, run your dev command as
shopify hydrogen dev --codegen-unstable. See the changes associated here for examples. -
Update the demostore to not cache the customer query. This is important to update in your app if you copied the logic from the demo store. (#950) by @blittle
-
Remove wrong cache control headers from route. Demo store is setting
cache-controlheader when it is not suppose to. The demo store server renders cart information. Cart information is consider personalized content and should never be cached in any way. (#991) by @wizardlyhelRoute
($locale).api.countries.tsxcan have cache control header because it is an API endpoint that doesn't render the cart. -
Make
storefrontApiVersionparameter optional. By default, it will use the current version of Hydrogen as the Storefront API version. (#984) by @frandiox -
Updated dependencies [
b2195520,4c5cdfd6,7b4afea2,42683d0a,7d6a1a7c,808ceb51,442f602a,be912b2f,8ccf6dbe,428c78dc,93a7c3c6,5124d618]:- @shopify/cli-hydrogen@5.0.0
- @Shopify/hydrogen@2023.4.4
- @shopify/remix-oxygen@1.1.0