diff --git a/.changeset/big-spoons-grin.md b/.changeset/big-spoons-grin.md deleted file mode 100644 index 2b290e764b..0000000000 --- a/.changeset/big-spoons-grin.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@shopify/hydrogen': patch ---- - -Reduce CPU consumption when rendering React Server Components. diff --git a/.changeset/cyan-windows-guess.md b/.changeset/cyan-windows-guess.md deleted file mode 100644 index 38ba544c63..0000000000 --- a/.changeset/cyan-windows-guess.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@shopify/hydrogen': patch ---- - -Update `setSelectedVariant` types to allow `null` to be passed. diff --git a/.changeset/dry-carrots-nail.md b/.changeset/dry-carrots-nail.md deleted file mode 100644 index 3f0715bb5d..0000000000 --- a/.changeset/dry-carrots-nail.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@shopify/hydrogen': patch ---- - -Fix ClientAnalytics losing subscriber object when passed as a param diff --git a/.changeset/lazy-gifts-notice.md b/.changeset/lazy-gifts-notice.md deleted file mode 100644 index 461b5469ef..0000000000 --- a/.changeset/lazy-gifts-notice.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@shopify/hydrogen': patch ---- - -Fix `` so it can be rendered without being nested in a `` diff --git a/.changeset/metal-paws-shout.md b/.changeset/metal-paws-shout.md deleted file mode 100644 index 320fd338fa..0000000000 --- a/.changeset/metal-paws-shout.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@shopify/hydrogen': minor ---- - -In an effort to be performant by default, the [preloaded queries](https://shopify.dev/custom-storefronts/hydrogen/framework/preloaded-queries) are turned on by default when caching is also enabled. By default, each query has caching enabled too, so `preload` will on universally by default. diff --git a/.changeset/nasty-guests-accept.md b/.changeset/nasty-guests-accept.md deleted file mode 100644 index 2463c7f2ef..0000000000 --- a/.changeset/nasty-guests-accept.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@shopify/hydrogen': patch ---- - -Fix path resolution when using aliases in server components. diff --git a/.changeset/warm-tips-refuse.md b/.changeset/warm-tips-refuse.md deleted file mode 100644 index f83be78083..0000000000 --- a/.changeset/warm-tips-refuse.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@shopify/hydrogen': patch ---- - -Added an experimental hook `useRequestContext` that provides server-only context for third party integrations. diff --git a/.changeset/wet-dingos-kick.md b/.changeset/wet-dingos-kick.md deleted file mode 100644 index 3d93bf24e7..0000000000 --- a/.changeset/wet-dingos-kick.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@shopify/hydrogen': minor ---- - -Updated Cart queries in two ways, one of which requires you to be using Storefront API `2022-07`: - -1. [`CartLine`](https://shopify.dev/api/storefront/2022-04/objects/CartLine#fields) now uses [`CartLineEstimatedCost`'s `totalAmount`](https://shopify.dev/api/storefront/2022-04/objects/CartLineEstimatedCost) field for calculating the Line's total, instead of doing it manually. -2. Cart now uses [`totalQuantity`](https://shopify.dev/api/storefront/2022-07/objects/Cart#field-cart-totalquantity) for calculating how many items are in the cart, instead of doing this manually. **Note that this feature is only available in Storefront API `2022-07` and newer.** diff --git a/.changeset/wild-fans-sing.md b/.changeset/wild-fans-sing.md deleted file mode 100644 index e392d30e02..0000000000 --- a/.changeset/wild-fans-sing.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@shopify/hydrogen': patch ---- - -Fix ``'s `setSelectedOptions()` function to update the `selectedVariant` as well diff --git a/packages/create-hydrogen-app/CHANGELOG.md b/packages/create-hydrogen-app/CHANGELOG.md index b9fcc9e154..d9db6254db 100644 --- a/packages/create-hydrogen-app/CHANGELOG.md +++ b/packages/create-hydrogen-app/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog +## 0.24.0 + ## 0.23.0 ### Patch Changes diff --git a/packages/create-hydrogen-app/package.json b/packages/create-hydrogen-app/package.json index 7f7f9a1a91..a5a9116ca0 100644 --- a/packages/create-hydrogen-app/package.json +++ b/packages/create-hydrogen-app/package.json @@ -4,7 +4,7 @@ "access": "public", "@shopify:registry": "https://registry.npmjs.org" }, - "version": "0.23.0", + "version": "0.24.0", "main": "index.js", "license": "MIT", "bin": { diff --git a/packages/hydrogen/CHANGELOG.md b/packages/hydrogen/CHANGELOG.md index 15911e45d1..e6403d75fd 100644 --- a/packages/hydrogen/CHANGELOG.md +++ b/packages/hydrogen/CHANGELOG.md @@ -1,5 +1,32 @@ # Changelog +## 0.24.0 + +### Minor Changes + +- [#1489](https://github.com/Shopify/hydrogen/pull/1489) [`e2ee2d45`](https://github.com/Shopify/hydrogen/commit/e2ee2d4575613ae34727de9c1a6280904bb2e3ff) Thanks [@blittle](https://github.com/blittle)! - In an effort to be performant by default, the [preloaded queries](https://shopify.dev/custom-storefronts/hydrogen/framework/preloaded-queries) are turned on by default when caching is also enabled. By default, each query has caching enabled too, so `preload` will on universally by default. + +* [#1237](https://github.com/Shopify/hydrogen/pull/1237) [`356e75f3`](https://github.com/Shopify/hydrogen/commit/356e75f351c04ff393e996c34632005331ec0872) Thanks [@frehner](https://github.com/frehner)! - Updated Cart queries in two ways, one of which requires you to be using Storefront API `2022-07`: + + 1. [`CartLine`](https://shopify.dev/api/storefront/2022-04/objects/CartLine#fields) now uses [`CartLineEstimatedCost`'s `totalAmount`](https://shopify.dev/api/storefront/2022-04/objects/CartLineEstimatedCost) field for calculating the Line's total, instead of doing it manually. + 2. Cart now uses [`totalQuantity`](https://shopify.dev/api/storefront/2022-07/objects/Cart#field-cart-totalquantity) for calculating how many items are in the cart, instead of doing this manually. **Note that this feature is only available in Storefront API `2022-07` and newer.** + +### Patch Changes + +- [#1473](https://github.com/Shopify/hydrogen/pull/1473) [`a7f3b4bf`](https://github.com/Shopify/hydrogen/commit/a7f3b4bfe0d66fb0440dff3d641a181372de313a) Thanks [@frandiox](https://github.com/frandiox)! - Reduce CPU consumption when rendering React Server Components. + +* [#1453](https://github.com/Shopify/hydrogen/pull/1453) [`84b9e6d3`](https://github.com/Shopify/hydrogen/commit/84b9e6d3516a74f94fab691d6ff7605623351f1e) Thanks [@jplhomer](https://github.com/jplhomer)! - Update `setSelectedVariant` types to allow `null` to be passed. + +- [#1484](https://github.com/Shopify/hydrogen/pull/1484) [`990bfd8b`](https://github.com/Shopify/hydrogen/commit/990bfd8b928425f2685901c1a02b686354d18d4d) Thanks [@wizardlyhel](https://github.com/wizardlyhel)! - Fix ClientAnalytics losing subscriber object when passed as a param + +* [#1509](https://github.com/Shopify/hydrogen/pull/1509) [`05081b01`](https://github.com/Shopify/hydrogen/commit/05081b01283c023e9c751c04ed496003daf47091) Thanks [@jplhomer](https://github.com/jplhomer)! - Fix `` so it can be rendered without being nested in a `` + +- [#1469](https://github.com/Shopify/hydrogen/pull/1469) [`07d45290`](https://github.com/Shopify/hydrogen/commit/07d452905492bfa1bd58c681b8d56407fdc4716b) Thanks [@frandiox](https://github.com/frandiox)! - Fix path resolution when using aliases in server components. + +* [#1471](https://github.com/Shopify/hydrogen/pull/1471) [`5b4e08df`](https://github.com/Shopify/hydrogen/commit/5b4e08df97dd2343452b0d1f7ff59ac5bbf98d32) Thanks [@frandiox](https://github.com/frandiox)! - Added an experimental hook `useRequestContext` that provides server-only context for third party integrations. + +- [#1486](https://github.com/Shopify/hydrogen/pull/1486) [`a31e007d`](https://github.com/Shopify/hydrogen/commit/a31e007dbc2a1a6ce12e39ffc3f63f45e90abfa7) Thanks [@frehner](https://github.com/frehner)! - Fix ``'s `setSelectedOptions()` function to update the `selectedVariant` as well + ## 0.23.0 ### Minor Changes diff --git a/packages/hydrogen/package.json b/packages/hydrogen/package.json index 05da67b933..ffc78a2500 100644 --- a/packages/hydrogen/package.json +++ b/packages/hydrogen/package.json @@ -7,7 +7,7 @@ "engines": { "node": ">=14" }, - "version": "0.23.0", + "version": "0.24.0", "description": "Modern custom Shopify storefronts", "license": "MIT", "main": "dist/esnext/index.js", diff --git a/packages/hydrogen/src/version.ts b/packages/hydrogen/src/version.ts index 3b702c1251..6d5332ad1b 100644 --- a/packages/hydrogen/src/version.ts +++ b/packages/hydrogen/src/version.ts @@ -1 +1 @@ -export const LIB_VERSION = '0.23.0'; +export const LIB_VERSION = '0.24.0'; diff --git a/packages/playground/async-config/package.json b/packages/playground/async-config/package.json index a510b6c6c4..b1c4585fc5 100644 --- a/packages/playground/async-config/package.json +++ b/packages/playground/async-config/package.json @@ -17,7 +17,7 @@ }, "dependencies": { "@cloudflare/kv-asset-handler": "*", - "@shopify/hydrogen": "^0.23.0", + "@shopify/hydrogen": "^0.24.0", "miniflare": "^1.3.3", "react": "^18.1.0", "react-dom": "^18.1.0" diff --git a/packages/playground/server-components/package.json b/packages/playground/server-components/package.json index 9fca3733b1..a62f4aa4a7 100644 --- a/packages/playground/server-components/package.json +++ b/packages/playground/server-components/package.json @@ -17,7 +17,7 @@ }, "dependencies": { "@cloudflare/kv-asset-handler": "*", - "@shopify/hydrogen": "^0.23.0", + "@shopify/hydrogen": "^0.24.0", "miniflare": "^1.3.3", "react": "^18.1.0", "react-dom": "^18.1.0" diff --git a/templates/demo-store-neue/package.json b/templates/demo-store-neue/package.json index e5a5b965be..7b484c9214 100644 --- a/templates/demo-store-neue/package.json +++ b/templates/demo-store-neue/package.json @@ -29,7 +29,7 @@ "dependencies": { "@headlessui/react": "^1.6.3", "@heroicons/react": "^1.0.6", - "@shopify/hydrogen": "^0.23.0", + "@shopify/hydrogen": "^0.24.0", "clsx": "^1.1.1", "eslint-plugin-react": "^7.29.3", "eslint-plugin-react-hooks": "^4.2.0", diff --git a/templates/demo-store/package.json b/templates/demo-store/package.json index 269a05ca25..544d3794c5 100644 --- a/templates/demo-store/package.json +++ b/templates/demo-store/package.json @@ -31,7 +31,7 @@ }, "dependencies": { "@headlessui/react": "^1.5.0", - "@shopify/hydrogen": "^0.23.0", + "@shopify/hydrogen": "^0.24.0", "body-parser": "^1.20.0", "compression": "^1.7.4", "react": "^18.1.0", diff --git a/templates/hello-world/package.json b/templates/hello-world/package.json index 5386d07ae4..2e6278cbce 100644 --- a/templates/hello-world/package.json +++ b/templates/hello-world/package.json @@ -15,7 +15,7 @@ "vite": "^2.9.0" }, "dependencies": { - "@shopify/hydrogen": "^0.23.0", + "@shopify/hydrogen": "^0.24.0", "react": "^18.1.0", "react-dom": "^18.1.0" }