@graphcommerce/magento-product 10.1.0-canary.30 → 10.1.0-canary.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Change Log
2
2
 
3
+ ## 10.1.0-canary.32
4
+
5
+ ## 10.1.0-canary.31
6
+
7
+ ### Patch Changes
8
+
9
+ - [#2641](https://github.com/graphcommerce-org/graphcommerce/pull/2641) [`e1bcd16`](https://github.com/graphcommerce-org/graphcommerce/commit/e1bcd1636a21ed7e5f737993d4373cee074b3d07) - Fix the add-to-cart success message counting 0 when the added cart item has no `customizable_options` to match the requested entered/selected options against. `findAddedItems` now falls back to the SKU (+ configurable variant) match instead of dropping the item. ([@paales](https://github.com/paales))
10
+
3
11
  ## 10.1.0-canary.30
4
12
 
5
13
  ## 10.1.0-canary.29
@@ -48,6 +48,8 @@ export function findAddedItems(
48
48
  }
49
49
 
50
50
  const { customizable_options } = cartItem
51
+ // No customizable_options to match against — trust the SKU candidacy rather than drop the item.
52
+ if (customizable_options.length === 0) return true
51
53
  const matchEntered = filterNonNullableKeys(itemVariable.entered_options).every(
52
54
  (requestOption) =>
53
55
  customizable_options.find(
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-product",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "10.1.0-canary.30",
5
+ "version": "10.1.0-canary.32",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -18,18 +18,18 @@
18
18
  "typescript": "5.9.3"
19
19
  },
20
20
  "peerDependencies": {
21
- "@graphcommerce/ecommerce-ui": "^10.1.0-canary.30",
22
- "@graphcommerce/eslint-config-pwa": "^10.1.0-canary.30",
23
- "@graphcommerce/framer-next-pages": "^10.1.0-canary.30",
24
- "@graphcommerce/framer-scroller": "^10.1.0-canary.30",
25
- "@graphcommerce/graphql": "^10.1.0-canary.30",
26
- "@graphcommerce/graphql-mesh": "^10.1.0-canary.30",
27
- "@graphcommerce/image": "^10.1.0-canary.30",
28
- "@graphcommerce/magento-cart": "^10.1.0-canary.30",
29
- "@graphcommerce/magento-store": "^10.1.0-canary.30",
30
- "@graphcommerce/next-ui": "^10.1.0-canary.30",
31
- "@graphcommerce/prettier-config-pwa": "^10.1.0-canary.30",
32
- "@graphcommerce/typescript-config-pwa": "^10.1.0-canary.30",
21
+ "@graphcommerce/ecommerce-ui": "^10.1.0-canary.32",
22
+ "@graphcommerce/eslint-config-pwa": "^10.1.0-canary.32",
23
+ "@graphcommerce/framer-next-pages": "^10.1.0-canary.32",
24
+ "@graphcommerce/framer-scroller": "^10.1.0-canary.32",
25
+ "@graphcommerce/graphql": "^10.1.0-canary.32",
26
+ "@graphcommerce/graphql-mesh": "^10.1.0-canary.32",
27
+ "@graphcommerce/image": "^10.1.0-canary.32",
28
+ "@graphcommerce/magento-cart": "^10.1.0-canary.32",
29
+ "@graphcommerce/magento-store": "^10.1.0-canary.32",
30
+ "@graphcommerce/next-ui": "^10.1.0-canary.32",
31
+ "@graphcommerce/prettier-config-pwa": "^10.1.0-canary.32",
32
+ "@graphcommerce/typescript-config-pwa": "^10.1.0-canary.32",
33
33
  "@lingui/core": "^5",
34
34
  "@lingui/macro": "^5",
35
35
  "@lingui/react": "^5",