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

Commit

Permalink
[ci] release 2022-10 (#77)
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] authored Nov 22, 2022
1 parent 6a3a0b3 commit 996a197
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 36 deletions.
5 changes: 0 additions & 5 deletions .changeset/fifty-carpets-sip.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/quick-maps-report.md

This file was deleted.

25 changes: 0 additions & 25 deletions .changeset/sharp-hornets-cover.md

This file was deleted.

28 changes: 28 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# @shopify/hydrogen-react

## 2022.10.4

### Patch Changes

- 6a3a0b3: Add `CartLinePrice` component
- ad4aca4: Update TypeScript types for `<MediaFile/>` so that `mediaOptions`'s properties are all optional instead of required.
- 669809a: `<ShopifyProvider/>` and `useShop()` updates:

- Added a function `getShopifyDomain()` which will return a fully-qualified domain URL for your Shopify backend. For example:

```ts
const {getShopifyDomain} = useShop();
console.log(getShopifyDomain());
// 'https://test.myshopify.com'
```

This matches the function that was added to `createStorefrontClient()`.

- ShopifyProvider's `storeDomain` prop can now accept the Shopify backend subdomain, matching how `createStorefrontClient()`'s `storeDomain` prop. ShopifyProvider still accepts a full domain, but that will be removed in a future breaking change.

```tsx
// preferred
<ShopifyProvider shopifyConfig={{storeDomain: 'shop'}}></ShopifyProvider>
// still works, but will be removed in the future
<ShopifyProvider shopifyConfig={{storeDomain: 'shop.myshopify.com'}}></ShopifyProvider>
```

## 2022.10.3

### Patch 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": "2022.10.3",
"version": "2022.10.4",
"description": "React components, hooks, and utilities for creating custom Shopify storefronts",
"homepage": "https://github.com/Shopify/hydrogen-ui/tree/main/packages/react",
"license": "MIT",
Expand Down

0 comments on commit 996a197

Please sign in to comment.