Skip to content

Commit

Permalink
Merge branch 'main' into hl-2024-10-product-option-update
Browse files Browse the repository at this point in the history
  • Loading branch information
wizardlyhel authored Oct 21, 2024
2 parents 3402399 + 76cd4f9 commit 27e149e
Show file tree
Hide file tree
Showing 56 changed files with 1,048 additions and 119 deletions.
5 changes: 0 additions & 5 deletions .changeset/spicy-rats-press.md

This file was deleted.

6 changes: 6 additions & 0 deletions .changeset/wet-garlics-trade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@shopify/hydrogen': patch
'@shopify/hydrogen-react': patch
---

Add utility functions `decodeEncodedVariant` and `isOptionValueCombinationInEncodedVariant` for parsing `product.encodedVariantExistence` and `product.encodedVariantAvailability` fields.
7 changes: 7 additions & 0 deletions .changeset/wicked-schools-reflect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@shopify/hydrogen': patch
---

Update all cart mutation methods from `createCartHandler` to return cart warnings.

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
60 changes: 60 additions & 0 deletions docs/changelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,66 @@
"url": "https://github.com/Shopify/hydrogen/pulls?q=is%3Apr+is%3Aclosed+%5Bci%5D+release+in%3Atitle+is%3Amerged",
"version": "1",
"releases": [
{
"title": "Various Analytics.Provider fixes and support local assets for Image component.",
"version": "2024.7.9",
"hash": "1335c41b30026212f5db40abd01378e61960456d",
"pr": "https://github.com/Shopify/hydrogen/pull/2583",
"commit": "https://github.com/Shopify/hydrogen/commit/1335c41b30026212f5db40abd01378e61960456d",
"dependencies": {
"@remix-run/react": "^2.10.1",
"@remix-run/server-runtime": "^2.10.1",
"@shopify/hydrogen": "2024.7.9",
"@shopify/remix-oxygen": "^2.0.8"
},
"devDependencies": {
"@remix-run/dev": "^2.10.1",
"@shopify/cli": "3.68.0",
"@shopify/oxygen-workers-types": "^4.1.2",
"typescript": "^5.2.2",
"@shopify/mini-oxygen": "^3.0.6"
},
"dependenciesMeta": {
"typescript": {
"required": true
},
"@shopify/oxygen-workers-types": {
"required": true
},
"@shopify/cli": {
"required": true
},
"@remix-run/server-runtime": {
"required": true
},
"@shopify/mini-oxygen": {
"required": true
}
},
"fixes": [
{
"title": "Fix provided canTrack function being override by ShopifyAnalytics",
"pr": "https://github.com/Shopify/hydrogen/pull/2596",
"id": "2596"
},
{
"title": "Fix analytics provider breaking after hitting a 404 page",
"pr": "https://github.com/Shopify/hydrogen/pull/2590",
"id": "2590"
},
{
"title": "Image component: support local assets in development",
"pr": "https://github.com/Shopify/hydrogen/pull/2573",
"id": "2573"
},
{
"title": "Use HTML datalist element for query suggestions for autocomplete experience",
"pr": "https://github.com/Shopify/hydrogen/pull/2506",
"id": "2506"
}
],
"features": []
},
{
"title": "Remove unstable exports from remix-oxygen and update customer account buyer authentication exchange",
"version": "2024.7.8",
Expand Down
2 changes: 1 addition & 1 deletion examples/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"devDependencies": {
"@remix-run/dev": "^2.10.1",
"@remix-run/eslint-config": "^2.10.1",
"@shopify/cli": "3.66.1",
"@shopify/cli": "3.68.0",
"@types/compression": "^1.7.2",
"@types/express": "^4.17.17",
"@types/morgan": "^1.9.4",
Expand Down
75 changes: 44 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,6 @@
},
"overrides": {
"@oclif/core": "3.26.5",
"@shopify/cli-kit": "3.66.1"
"@shopify/cli-kit": "3.68.0"
}
}
15 changes: 15 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# @shopify/cli-hydrogen

## 8.4.6

### Patch Changes

- Bump cli packages version ([#2592](https://github.com/Shopify/hydrogen/pull/2592)) by [@wizardlyhel](https://github.com/wizardlyhel)

## 8.4.5

### Patch Changes

- Update starter template with latest Hydrogen version. ([#2580](https://github.com/Shopify/hydrogen/pull/2580)) by [@scottdixon](https://github.com/scottdixon)

- Updated dependencies [[`04b4c7c3`](https://github.com/Shopify/hydrogen/commit/04b4c7c3362aa07fc12ce749bfc5a955aa1254e4)]:
- @shopify/mini-oxygen@3.0.6

## 8.4.4

### 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.4"
"version": "8.4.6"
}
8 changes: 4 additions & 4 deletions 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.4",
"version": "8.4.6",
"license": "MIT",
"type": "module",
"scripts": {
Expand Down Expand Up @@ -34,9 +34,9 @@
"dependencies": {
"@ast-grep/napi": "0.11.0",
"@oclif/core": "3.26.5",
"@shopify/cli-kit": "3.66.1",
"@shopify/cli-kit": "3.68.0",
"@shopify/oxygen-cli": "4.4.9",
"@shopify/plugin-cloudflare": "3.66.1",
"@shopify/plugin-cloudflare": "3.68.0",
"ansi-escapes": "^6.2.0",
"chokidar": "3.5.3",
"cli-truncate": "^4.0.0",
Expand All @@ -56,7 +56,7 @@
"@graphql-codegen/cli": "^5.0.2",
"@remix-run/dev": "^2.1.0",
"@shopify/hydrogen-codegen": "^0.3.1",
"@shopify/mini-oxygen": "^3.0.5",
"@shopify/mini-oxygen": "^3.0.6",
"graphql-config": "^5.0.3",
"vite": "^5.1.0"
},
Expand Down
12 changes: 12 additions & 0 deletions packages/create-hydrogen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @shopify/create-hydrogen

## 5.0.9

### Patch Changes

- Bump cli packages version ([#2592](https://github.com/Shopify/hydrogen/pull/2592)) by [@wizardlyhel](https://github.com/wizardlyhel)

## 5.0.8

### Patch Changes

- Update starter template with latest Hydrogen version. ([#2580](https://github.com/Shopify/hydrogen/pull/2580)) by [@scottdixon](https://github.com/scottdixon)

## 5.0.7

### Patch Changes
Expand Down
Loading

0 comments on commit 27e149e

Please sign in to comment.