Releases: Shopify/hydrogen
@shopify/hydrogen@2023.4.6
Patch Changes
- Updated dependencies [
b8f41ad7
]:- @shopify/hydrogen-react@2023.4.5
@shopify/hydrogen-react@2023.4.5
Patch Changes
- Add JSDoc examples to and useMoney (#1021) by @juanpprieto
@shopify/cli-hydrogen@5.0.2
Patch Changes
-
Add more context on MiniOxygen local dev server startup (#1005) by @gfscott
-
Fix
--sourcemap
flag for build command. (#1032) by @frandiox -
Fix
dev --codegen-unstable
flag, which was removed by mistake in the previous release. (#1018) by @frandiox -
Updated dependencies [
b8f41ad7
]:- @shopify/hydrogen-react@2023.4.5
demo-store@1.0.4
Patch Changes
-
Update Remix to the latest version (
1.17.1
). (#852) by @frandioxWhen updating your app, remember to also update your Remix dependencies to
1.17.1
in yourpackage.json
file:-"@remix-run/react": "1.15.0", +"@remix-run/react": "1.17.1", -"@remix-run/dev": "1.15.0", -"@remix-run/eslint-config": "1.15.0", +"@remix-run/dev": "1.17.1", +"@remix-run/eslint-config": "1.17.1",
-
Updated dependencies [
f29e178a
]:- @shopify/remix-oxygen@1.1.1
- @Shopify/hydrogen@2023.4.5
- @shopify/cli-hydrogen@5.0.1
@shopify/remix-oxygen@1.1.1
Patch Changes
-
Update Remix to the latest version (
1.17.1
). (#852) by @frandioxWhen updating your app, remember to also update your Remix dependencies to
1.17.1
in yourpackage.json
file:-"@remix-run/react": "1.15.0", +"@remix-run/react": "1.17.1", -"@remix-run/dev": "1.15.0", -"@remix-run/eslint-config": "1.15.0", +"@remix-run/dev": "1.17.1", +"@remix-run/eslint-config": "1.17.1",
@shopify/hydrogen@2023.4.5
Patch Changes
-
Update Remix to the latest version (
1.17.1
). (#852) by @frandioxWhen updating your app, remember to also update your Remix dependencies to
1.17.1
in yourpackage.json
file:-"@remix-run/react": "1.15.0", +"@remix-run/react": "1.17.1", -"@remix-run/dev": "1.15.0", -"@remix-run/eslint-config": "1.15.0", +"@remix-run/dev": "1.17.1", +"@remix-run/eslint-config": "1.17.1",
@shopify/cli-hydrogen@5.0.1
Patch Changes
-
Update Remix to the latest version (
1.17.1
). (#852) by @frandioxWhen updating your app, remember to also update your Remix dependencies to
1.17.1
in yourpackage.json
file:-"@remix-run/react": "1.15.0", +"@remix-run/react": "1.17.1", -"@remix-run/dev": "1.15.0", -"@remix-run/eslint-config": "1.15.0", +"@remix-run/dev": "1.17.1", +"@remix-run/eslint-config": "1.17.1",
-
Updated dependencies [
f29e178a
]:- @shopify/remix-oxygen@1.1.1
demo-store@1.0.3
Patch Changes
-
A default
https://
protocol is now added automatically tostoreDomain
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 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 @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
@shopify/remix-oxygen@1.1.0
Minor Changes
- Updates default
powered-by
header toShopify, Hydrogen
(#961) by @benjaminsehl
@shopify/hydrogen@2023.4.4
Patch Changes
-
A default
https://
protocol is now added automatically tostoreDomain
if missing. (#985) by @frandiox -
Fix
flattenConnection()
's TypeScript types when working withedges.node
(#945) by @frehner -
Make
storefrontApiVersion
parameter optional. By default, it will use the current version of Hydrogen as the Storefront API version. (#984) by @frandiox -
Skip reading and writing cache in sub-requests when the strategy is CacheNone. (#964) by @frandiox
-
Fix
<ModelViewer>
to properly set className (#966) by @blittle -
Add a
/admin
route that redirects to the Shopify admin. This redirect can be disabled by passingnoAdminRedirect: true
tostorefrontRedirect
: (#989) by @blittlestorefrontRedirect({ redirect, response, storefront, noAdminRedirect: true, });
-
Updated dependencies [
7b4afea2
,32515232
,7d6a1a7c
,442f602a
,b9ab8eb7
,93a7c3c6
]:- @shopify/hydrogen-react@2023.4.4