From 8a75ef654c567aec892c1c93d5468a428f66311b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 14 Feb 2023 16:35:41 -0700 Subject: [PATCH] [ci] release 2023-01 (#160) Co-authored-by: github-actions[bot] --- .changeset/gold-carrots-relax.md | 5 ----- .changeset/selfish-turtles-grab.md | 19 ----------------- .changeset/sharp-walls-perform.md | 13 ------------ .changeset/twenty-months-swim.md | 5 ----- packages/react/CHANGELOG.md | 33 ++++++++++++++++++++++++++++++ packages/react/package.json | 2 +- 6 files changed, 34 insertions(+), 43 deletions(-) delete mode 100644 .changeset/gold-carrots-relax.md delete mode 100644 .changeset/selfish-turtles-grab.md delete mode 100644 .changeset/sharp-walls-perform.md delete mode 100644 .changeset/twenty-months-swim.md diff --git a/.changeset/gold-carrots-relax.md b/.changeset/gold-carrots-relax.md deleted file mode 100644 index a06e383a..00000000 --- a/.changeset/gold-carrots-relax.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@shopify/hydrogen-react': patch ---- - -Fix the UMD global variable name from `storefrontkitreact` to `hydrogenreact`. diff --git a/.changeset/selfish-turtles-grab.md b/.changeset/selfish-turtles-grab.md deleted file mode 100644 index ee02d89b..00000000 --- a/.changeset/selfish-turtles-grab.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@shopify/hydrogen-react': patch ---- - -Add a deprecation notice to ``: - -Use `Money` instead. To migrate, use the `priceType` prop that matches the corresponding property on the `CartLine` object: - -- `regular`: `cartLine.cost.totalAmount` -- `compareAt`: `cartLine.cost.compareAtAmountPerQuantity` - -For example: - -```jsx -// before - -// after - -``` diff --git a/.changeset/sharp-walls-perform.md b/.changeset/sharp-walls-perform.md deleted file mode 100644 index 6c754017..00000000 --- a/.changeset/sharp-walls-perform.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@shopify/hydrogen-react': patch ---- - -Adding `` and `` - -The `` and `` components have been added / migrated over from Hydrogen v1. - -Additionally, fixed a bug when using `` that caused CartLine Attributes to be erased. CartLine Attributes should now be persisted when using that component. - -## `useCartLine()` TypeScript types update - -`useCartLine()`'s TypeScript type originally returned a `CartLine`. It has now been updated to be `PartialDeep`, which makes all the properties optional instead of required. This matches with the rest of hydrogen-react in that we can't know or guarnatee what properties exist on certain objects so we reflect that state in the TypeScript types. diff --git a/.changeset/twenty-months-swim.md b/.changeset/twenty-months-swim.md deleted file mode 100644 index ed224a5d..00000000 --- a/.changeset/twenty-months-swim.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@shopify/hydrogen-react': patch ---- - -Update docs diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index afd321b0..7428fb6b 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,38 @@ # @shopify/hydrogen-react +## 2023.1.5 + +### Patch Changes + +- b8757bd: Fix the UMD global variable name from `storefrontkitreact` to `hydrogenreact`. +- 6225d33: Add a deprecation notice to ``: + + Use `Money` instead. To migrate, use the `priceType` prop that matches the corresponding property on the `CartLine` object: + + - `regular`: `cartLine.cost.totalAmount` + - `compareAt`: `cartLine.cost.compareAtAmountPerQuantity` + + For example: + + ```jsx + // before + + // after + + ``` + +- 2bb8c81: Adding `` and `` + + The `` and `` components have been added / migrated over from Hydrogen v1. + + Additionally, fixed a bug when using `` that caused CartLine Attributes to be erased. CartLine Attributes should now be persisted when using that component. + + ## `useCartLine()` TypeScript types update + + `useCartLine()`'s TypeScript type originally returned a `CartLine`. It has now been updated to be `PartialDeep`, which makes all the properties optional instead of required. This matches with the rest of hydrogen-react in that we can't know or guarnatee what properties exist on certain objects so we reflect that state in the TypeScript types. + +- eb1656f: Update docs + ## 2023.1.4 ### Major Changes diff --git a/packages/react/package.json b/packages/react/package.json index 230bff74..602707f8 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@shopify/hydrogen-react", - "version": "2023.1.4", + "version": "2023.1.5", "description": "React components, hooks, and utilities for creating custom Shopify storefronts", "homepage": "https://github.com/Shopify/hydrogen-react/tree/main/packages/react", "license": "MIT",