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 (#124)
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 Jan 18, 2023
1 parent 16b6b81 commit 79126b4
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 31 deletions.
30 changes: 0 additions & 30 deletions .changeset/plenty-moles-listen.md

This file was deleted.

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

## 2023.1.2

### Patch Changes

- 16b6b81: Shopify Analytics

Methods:

- `useShopifyCookies(hasUserConsent = true, domain = ''): void` - sets and refreshes Shopify cookies
- `getShopifyCookie(cookieString: string): ShopifyCookie` - returns Shopify cookies
- `sendShopifyAnalytics({eventName: AnalyticsEventName, payload: ShopifyAnalytics}, domain?): Promise<void>` - sends Shopify analytics
- `getClientBrowserParameters(): ClientBrowserParameters` - returns commonly tracked client browser values

Constants:

- `AnalyticsEventName` - list of Shopify accepted analytics events
- `AnalyticsPageType` - list of Shopify accepted page type names
- `ShopifyAppSource` - list of Shopify accepted application source

Types:

- `ShopifyCookies`
- `ClientBrowserParameters`
- `ShopifyAnalytics` - generic type for `ShopifyPageView` and `ShopifyAddToCart`
- `ShopifyAnalyticsPayload` - generic type for `ShopifyPageViewPayload` and `ShopifyAddToCartPayload`
- `ShopifyPageView`
- `ShopifyPageViewPayload`
- `ShopifyAddToCart`
- `ShopifyAddToCartPayload`
- `ShopifyAnalyticsProduct`

## 2023.1.1

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

0 comments on commit 79126b4

Please sign in to comment.