Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
[ci] release 2023-01 (#160)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] committed Feb 14, 2023
1 parent 2bb8c81 commit 8a75ef6
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 43 deletions.
5 changes: 0 additions & 5 deletions .changeset/gold-carrots-relax.md

This file was deleted.

19 changes: 0 additions & 19 deletions .changeset/selfish-turtles-grab.md

This file was deleted.

13 changes: 0 additions & 13 deletions .changeset/sharp-walls-perform.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/twenty-months-swim.md

This file was deleted.

33 changes: 33 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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 `<CartLinePrice/>`:

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
<CartLinePrice data={cartLine} priceType="regular" />
// after
<Money data={cartLine.cost.totalAmount} />
```

- 2bb8c81: Adding `<CartLineQuantity />` and `<CartLineQuantityAdjustButton />`

The `<CartLineQuantity />` and `<CartLineQuantityAdjustButton />` components have been added / migrated over from Hydrogen v1.

Additionally, fixed a bug when using `<CartLineQuantityAdjustButton />` 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<CartLine>`, 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
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 8a75ef6

Please sign in to comment.