Skip to content

demo-store@1.0.3

Choose a tag to compare

@shopify-github-actions-access shopify-github-actions-access released this 12 Jun 19:32
· 1383 commits to main since this release
2273c83

Patch Changes

  • A default https:// protocol is now added automatically to storeDomain if 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.vendor or accessing totalPrice instead of totalPriceV2.

    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-control header 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 @wizardlyhel

    Route ($locale).api.countries.tsx can have cache control header because it is an API endpoint that doesn't render the cart.

  • Make storefrontApiVersion parameter 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]: