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-04, this PR will be updated.
Releases
@shopify/[email protected]
Minor Changes
powered-by
header toShopify, Hydrogen
(#961) by @benjaminsehl@shopify/[email protected]
Patch Changes
Remove
--codegen-unstable
flag from scripts when transpiling projects from TypeScript to JavaScript. (#937) by @frandioxAllow disabling sourcemaps with
shopify hydrogen build --no-sourcemap
(#975) by @blittleAllow the CLI route generate to work in non-oxygen deploys (#976) by @blittle
Hidden flag removed from new CLI commands (#995) by @graygilmore
You can now link your local Hydrogen storefront to a storefront you have created in the Shopify admin. This allows you to pull your environment variables into your local environment or have them be automatically injected into your runtime when you run
dev
.Updated dependencies [
7b4afea2
,32515232
,7d6a1a7c
,442f602a
,be912b2f
,b9ab8eb7
,d3817b9c
,93a7c3c6
,6b8537ba
]:@shopify/[email protected]
Patch Changes
b2195520
,42683d0a
,808ceb51
,428c78dc
]:@shopify/[email protected]
Patch Changes
Fix redirects to respond with a 301 (#946) by @blittle
A default
https://
protocol is now added automatically tostoreDomain
if missing. (#985) by @frandioxFix
flattenConnection()
's TypeScript types when working withedges.node
(#945) by @frehnerMake
storefrontApiVersion
parameter optional. By default, it will use the current version of Hydrogen as the Storefront API version. (#984) by @frandioxSkip reading and writing cache in sub-requests when the strategy is CacheNone. (#964) by @frandiox
Fix
<ModelViewer>
to properly set className (#966) by @blittleAdd a
/admin
route that redirects to the Shopify admin. This redirect can be disabled by passingnoAdminRedirect: true
tostorefrontRedirect
: (#989) by @blittleUpdated dependencies [
7b4afea2
,32515232
,7d6a1a7c
,442f602a
,b9ab8eb7
,93a7c3c6
]:@shopify/[email protected]
Patch Changes
Merge equal fragment interfaces in one to avoid adding
| {}
to the Metaobject types. (#978) by @frandioxThe preset now accepts options to modify the default behavior. (#970) by @frandiox
@shopify/[email protected]
Patch Changes
A default
https://
protocol is now added automatically tostoreDomain
if missing. (#985) by @frandioxAdd support for
mock.shop
as astoreDomain
. (#986) by @frandioxFix
flattenConnection()
's TypeScript types when working withedges.node
(#945) by @frehnerMake
storefrontApiVersion
parameter optional. By default, it will use the current version of Hydrogen as the Storefront API version. (#984) by @frandioxFix the
<CartProvider>
to by default pull localization from<ShopifyProvider>
. You can still override the countryCode by passing a prop directly to<CartProvider>
. Resovles [BUG] Cart doesn't use default Hydrogen localisation #622 (#980) by @blittleFix
<ModelViewer>
to properly set className (#966) by @blittle[email protected]
Patch Changes
A default
https://
protocol is now added automatically tostoreDomain
if missing. (#985) by @frandioxStart 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 accessingtotalPrice
instead 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-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 @wizardlyhelRoute
($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 @frandioxUpdated dependencies [
b2195520
,4c5cdfd6
,7b4afea2
,42683d0a
,7d6a1a7c
,808ceb51
,442f602a
,be912b2f
,8ccf6dbe
,428c78dc
,93a7c3c6
,5124d618
]: