Skip to content

Commit

Permalink
[ci] release 2024-07
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 21, 2024
1 parent 547367c commit 7ec9be6
Show file tree
Hide file tree
Showing 19 changed files with 208 additions and 94 deletions.
6 changes: 0 additions & 6 deletions .changeset/modern-suits-shop.md

This file was deleted.

21 changes: 0 additions & 21 deletions .changeset/olive-fishes-reflect.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/quick-hotels-tell.md

This file was deleted.

35 changes: 0 additions & 35 deletions .changeset/strange-zebras-travel.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/wet-garlics-trade.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/wicked-schools-reflect.md

This file was deleted.

2 changes: 1 addition & 1 deletion examples/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@remix-run/node": "^2.10.1",
"@remix-run/react": "^2.10.1",
"@remix-run/server-runtime": "^2.10.1",
"@shopify/hydrogen": "2024.10.0",
"@shopify/hydrogen": "2024.10.1",
"compression": "^1.7.4",
"cross-env": "^7.0.3",
"express": "^4.19.2",
Expand Down
35 changes: 35 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,40 @@
# @shopify/cli-hydrogen

## 8.4.7

### Patch Changes

- Update to 2024-10 SFAPI ([#2570](https://github.com/Shopify/hydrogen/pull/2570)) by [@wizardlyhel](https://github.com/wizardlyhel)

- SFAPI update - Deprecate usages of `product.options.values` and use `product.options.optionValues` instead. ([#2585](https://github.com/Shopify/hydrogen/pull/2585)) by [@wizardlyhel](https://github.com/wizardlyhel)

1. Update your product graphql query to use the new `optionValues` field.

```diff
const PRODUCT_FRAGMENT = `#graphql
fragment Product on Product {
id
title
options {
name
- values
+ optionValues {
+ name
+ }
}
```

2. Update your `<VariantSelector>` to use the new `optionValues` field.

```diff
<VariantSelector
handle={product.handle}
- options={product.options.filter((option) => option.values.length > 1)}
+ options={product.options.filter((option) => option.optionValues.length > 1)}
variants={variants}
>
```

## 8.4.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/oclif.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -1758,5 +1758,5 @@
]
}
},
"version": "8.4.6"
"version": "8.4.7"
}
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"access": "public",
"@shopify:registry": "https://registry.npmjs.org"
},
"version": "8.4.6",
"version": "8.4.7",
"license": "MIT",
"type": "module",
"scripts": {
Expand Down
35 changes: 35 additions & 0 deletions packages/create-hydrogen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,40 @@
# @shopify/create-hydrogen

## 5.0.10

### Patch Changes

- Update to 2024-10 SFAPI ([#2570](https://github.com/Shopify/hydrogen/pull/2570)) by [@wizardlyhel](https://github.com/wizardlyhel)

- SFAPI update - Deprecate usages of `product.options.values` and use `product.options.optionValues` instead. ([#2585](https://github.com/Shopify/hydrogen/pull/2585)) by [@wizardlyhel](https://github.com/wizardlyhel)

1. Update your product graphql query to use the new `optionValues` field.

```diff
const PRODUCT_FRAGMENT = `#graphql
fragment Product on Product {
id
title
options {
name
- values
+ optionValues {
+ name
+ }
}
```

2. Update your `<VariantSelector>` to use the new `optionValues` field.

```diff
<VariantSelector
handle={product.handle}
- options={product.options.filter((option) => option.values.length > 1)}
+ options={product.options.filter((option) => option.optionValues.length > 1)}
variants={variants}
>
```

## 5.0.9

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/create-hydrogen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"@shopify:registry": "https://registry.npmjs.org"
},
"license": "MIT",
"version": "5.0.9",
"version": "5.0.10",
"type": "module",
"scripts": {
"build": "tsup --clean",
Expand Down
10 changes: 10 additions & 0 deletions packages/hydrogen-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @shopify/hydrogen-react

## 2024.10.1

### Patch Changes

- Update `<ProductPrice>` to remove deprecated code usage for `priceV2` and `compareAtPriceV2`. Remove export for `getCustomerPrivacy`. ([#2601](https://github.com/Shopify/hydrogen/pull/2601)) by [@wizardlyhel](https://github.com/wizardlyhel)

- Update to 2024-10 SFAPI ([#2570](https://github.com/Shopify/hydrogen/pull/2570)) by [@wizardlyhel](https://github.com/wizardlyhel)

- Add utility functions `decodeEncodedVariant` and `isOptionValueCombinationInEncodedVariant` for parsing `product.encodedVariantExistence` and `product.encodedVariantAvailability` fields. ([#2425](https://github.com/Shopify/hydrogen/pull/2425)) by [@lhoffbeck](https://github.com/lhoffbeck)

## 2024.7.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/hydrogen-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shopify/hydrogen-react",
"version": "2024.10.0",
"version": "2024.10.1",
"description": "React components, hooks, and utilities for creating custom Shopify storefronts",
"homepage": "https://github.com/Shopify/hydrogen/tree/main/packages/hydrogen-react",
"license": "MIT",
Expand Down
63 changes: 63 additions & 0 deletions packages/hydrogen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,68 @@
# @shopify/hydrogen

## 2024.10.1

### Patch Changes

- Update `<ProductPrice>` to remove deprecated code usage for `priceV2` and `compareAtPriceV2`. Remove export for `getCustomerPrivacy`. ([#2601](https://github.com/Shopify/hydrogen/pull/2601)) by [@wizardlyhel](https://github.com/wizardlyhel)

- Change `<Analytics.Provider>` to set up Customer Privacy without the Shopify's cookie banner by default. ([#2588](https://github.com/Shopify/hydrogen/pull/2588)) by [@wizardlyhel](https://github.com/wizardlyhel)

# Breaking Change

If you are using `<Analytics.Provider>` in your app, you need to add `withPrivacyBanner={true}` to the `<AnalyticsProvider>` component if you are using the Shopify's cookie banner. Without this props, the Shopify cookie banner will not appear.

```diff
<Analytics.Provider
cart={data.cart}
shop={data.shop}
consent={data.consent}
+ withPrivacyBanner={true}
>
...
</Analytics.Provider>
```

- Update to 2024-10 SFAPI ([#2570](https://github.com/Shopify/hydrogen/pull/2570)) by [@wizardlyhel](https://github.com/wizardlyhel)

- SFAPI update - Deprecate usages of `product.options.values` and use `product.options.optionValues` instead. ([#2585](https://github.com/Shopify/hydrogen/pull/2585)) by [@wizardlyhel](https://github.com/wizardlyhel)

1. Update your product graphql query to use the new `optionValues` field.

```diff
const PRODUCT_FRAGMENT = `#graphql
fragment Product on Product {
id
title
options {
name
- values
+ optionValues {
+ name
+ }
}
```

2. Update your `<VariantSelector>` to use the new `optionValues` field.

```diff
<VariantSelector
handle={product.handle}
- options={product.options.filter((option) => option.values.length > 1)}
+ options={product.options.filter((option) => option.optionValues.length > 1)}
variants={variants}
>
```

- Add utility functions `decodeEncodedVariant` and `isOptionValueCombinationInEncodedVariant` for parsing `product.encodedVariantExistence` and `product.encodedVariantAvailability` fields. ([#2425](https://github.com/Shopify/hydrogen/pull/2425)) by [@lhoffbeck](https://github.com/lhoffbeck)

- Update all cart mutation methods from `createCartHandler` to return cart warnings. ([#2572](https://github.com/Shopify/hydrogen/pull/2572)) by [@wizardlyhel](https://github.com/wizardlyhel)

As of API version 2024-10, inventory errors about stock levels will no longer be included in the `userErrors` of cart mutations. Inventory errors will now be available in a new return field `warnings` and will contain explicit code values of ` MERCHANDISE_NOT_ENOUGH_STOCK`` or MERCHANDISE_OUT_OF_STOCK `. Reference: https://shopify.dev/changelog/cart-warnings-in-storefront-api-cart

- Updated dependencies [[`8c89f298`](https://github.com/Shopify/hydrogen/commit/8c89f298a8d9084ee510fb4d0d17766ec43c249c), [`84a66b1e`](https://github.com/Shopify/hydrogen/commit/84a66b1e9d07bd6d6a10e5379ad3350b6bbecde9), [`76cd4f9b`](https://github.com/Shopify/hydrogen/commit/76cd4f9ba3dd8eff4433d72f4422c06a7d567537)]:
- @shopify/hydrogen-react@2024.10.1

## 2024.7.9

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/hydrogen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"@shopify:registry": "https://registry.npmjs.org"
},
"type": "module",
"version": "2024.10.0",
"version": "2024.10.1",
"license": "MIT",
"main": "dist/index.cjs",
"module": "dist/production/index.js",
Expand Down Expand Up @@ -63,7 +63,7 @@
"dist"
],
"dependencies": {
"@shopify/hydrogen-react": "2024.10.0",
"@shopify/hydrogen-react": "2024.10.1",
"content-security-policy-builder": "^2.2.0",
"source-map-support": "^0.5.21",
"type-fest": "^4.5.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/hydrogen/src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const LIB_VERSION = '2024.10.0';
export const LIB_VERSION = '2024.10.1';
55 changes: 55 additions & 0 deletions templates/skeleton/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,60 @@
# skeleton

## 2024.7.11

### Patch Changes

- Change `<Analytics.Provider>` to set up Customer Privacy without the Shopify's cookie banner by default. ([#2588](https://github.com/Shopify/hydrogen/pull/2588)) by [@wizardlyhel](https://github.com/wizardlyhel)

# Breaking Change

If you are using `<Analytics.Provider>` in your app, you need to add `withPrivacyBanner={true}` to the `<AnalyticsProvider>` component if you are using the Shopify's cookie banner. Without this props, the Shopify cookie banner will not appear.

```diff
<Analytics.Provider
cart={data.cart}
shop={data.shop}
consent={data.consent}
+ withPrivacyBanner={true}
>
...
</Analytics.Provider>
```

- Update to 2024-10 SFAPI ([#2570](https://github.com/Shopify/hydrogen/pull/2570)) by [@wizardlyhel](https://github.com/wizardlyhel)

- SFAPI update - Deprecate usages of `product.options.values` and use `product.options.optionValues` instead. ([#2585](https://github.com/Shopify/hydrogen/pull/2585)) by [@wizardlyhel](https://github.com/wizardlyhel)

1. Update your product graphql query to use the new `optionValues` field.

```diff
const PRODUCT_FRAGMENT = `#graphql
fragment Product on Product {
id
title
options {
name
- values
+ optionValues {
+ name
+ }
}
```

2. Update your `<VariantSelector>` to use the new `optionValues` field.

```diff
<VariantSelector
handle={product.handle}
- options={product.options.filter((option) => option.values.length > 1)}
+ options={product.options.filter((option) => option.optionValues.length > 1)}
variants={variants}
>
```

- Updated dependencies [[`8c89f298`](https://github.com/Shopify/hydrogen/commit/8c89f298a8d9084ee510fb4d0d17766ec43c249c), [`a253ef97`](https://github.com/Shopify/hydrogen/commit/a253ef971acb08f2ee3a2743ca5c901c2922acc0), [`84a66b1e`](https://github.com/Shopify/hydrogen/commit/84a66b1e9d07bd6d6a10e5379ad3350b6bbecde9), [`c7c9f2eb`](https://github.com/Shopify/hydrogen/commit/c7c9f2ebd869a9d361504a10566c268e88b6096a), [`76cd4f9b`](https://github.com/Shopify/hydrogen/commit/76cd4f9ba3dd8eff4433d72f4422c06a7d567537), [`8337e534`](https://github.com/Shopify/hydrogen/commit/8337e5342ecca563fab557c3e833485466456cd5)]:
- @shopify/hydrogen@2024.10.1

## 2024.7.10

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions templates/skeleton/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "skeleton",
"private": true,
"sideEffects": false,
"version": "2024.7.10",
"version": "2024.7.11",
"type": "module",
"scripts": {
"build": "shopify hydrogen build --codegen",
Expand All @@ -16,7 +16,7 @@
"dependencies": {
"@remix-run/react": "^2.10.1",
"@remix-run/server-runtime": "^2.10.1",
"@shopify/hydrogen": "2024.10.0",
"@shopify/hydrogen": "2024.10.1",
"@shopify/remix-oxygen": "^2.0.8",
"graphql": "^16.6.0",
"graphql-tag": "^2.12.6",
Expand Down

0 comments on commit 7ec9be6

Please sign in to comment.