@graphcommerce/magento-product 4.4.19 → 4.4.22

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,43 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.4.22
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1587](https://github.com/graphcommerce-org/graphcommerce/pull/1587) [`6ce2cbaf2`](https://github.com/graphcommerce-org/graphcommerce/commit/6ce2cbaf2cf27e21b753f7cb71e7e74826294de6) Thanks [@paales](https://github.com/paales)! - Make sure the jsonLdProduct and jsonLdProductReview have simpler type definitions for better performance
8
+
9
+ - Updated dependencies [[`6ce2cbaf2`](https://github.com/graphcommerce-org/graphcommerce/commit/6ce2cbaf2cf27e21b753f7cb71e7e74826294de6), [`6ce2cbaf2`](https://github.com/graphcommerce-org/graphcommerce/commit/6ce2cbaf2cf27e21b753f7cb71e7e74826294de6)]:
10
+ - @graphcommerce/graphql@3.4.5
11
+ - @graphcommerce/next-ui@4.18.0
12
+ - @graphcommerce/magento-cart@4.6.6
13
+ - @graphcommerce/magento-store@4.2.24
14
+ - @graphcommerce/framer-scroller@2.1.29
15
+
16
+ ## 4.4.21
17
+
18
+ ### Patch Changes
19
+
20
+ - [#1578](https://github.com/graphcommerce-org/graphcommerce/pull/1578) [`bfbcd59d8`](https://github.com/graphcommerce-org/graphcommerce/commit/bfbcd59d8f7652d7a7c028f79cc994216e8dbe3a) Thanks [@paales](https://github.com/paales)! - Make sure the jsonLdProduct and jsonLdProductReview have simpler type definitions for better performance
21
+
22
+ - Updated dependencies [[`49370878a`](https://github.com/graphcommerce-org/graphcommerce/commit/49370878a48b90a4579026a7c56c54f97840cebb), [`b6ce5548c`](https://github.com/graphcommerce-org/graphcommerce/commit/b6ce5548c66a8ca62d3aee29467045f7f07f30c8)]:
23
+ - @graphcommerce/graphql@3.4.4
24
+ - @graphcommerce/next-ui@4.17.0
25
+ - @graphcommerce/magento-cart@4.6.5
26
+ - @graphcommerce/magento-store@4.2.23
27
+ - @graphcommerce/framer-scroller@2.1.28
28
+
29
+ ## 4.4.20
30
+
31
+ ### Patch Changes
32
+
33
+ - [#1573](https://github.com/graphcommerce-org/graphcommerce/pull/1573) [`2014f10e9`](https://github.com/graphcommerce-org/graphcommerce/commit/2014f10e935fd112ac98eca69f030d30982ba18e) Thanks [@paales](https://github.com/paales)! - SchemaDts caused major Typescript performance issues when running in VSCode, types were loosened and react-schemaorg dependency was removed.
34
+
35
+ - Updated dependencies [[`87a188d6f`](https://github.com/graphcommerce-org/graphcommerce/commit/87a188d6f216b7f7b9ec95afbe74f1146cb07ce4), [`1eb131766`](https://github.com/graphcommerce-org/graphcommerce/commit/1eb131766c32db6fcb0a8e83dba2c3d241658595)]:
36
+ - @graphcommerce/framer-scroller@2.1.27
37
+ - @graphcommerce/next-ui@4.16.0
38
+ - @graphcommerce/magento-cart@4.6.4
39
+ - @graphcommerce/magento-store@4.2.22
40
+
3
41
  ## 4.4.19
4
42
 
5
43
  ### Patch Changes
@@ -14,14 +14,14 @@ export function jsonLdProduct(props: JsonLdProductFragment): Product {
14
14
  ? media_gallery?.map((img) => (img as ProductImage)?.url ?? '')
15
15
  : undefined,
16
16
  category: categories?.[0]?.name ?? undefined,
17
- identifier: url_key ?? undefined,
18
17
  description: description?.html
19
18
  ? (description.html ?? '').replace(/(<([^>]+)>)/gi, '')
20
19
  : undefined,
21
20
  }
22
21
  }
23
22
 
24
- export function jsonLdProductOffer(props: JsonLdProductOfferFragment): Partial<Product> {
23
+ /** @see https://developers.google.com/search/docs/advanced/structured-data/product */
24
+ export function jsonLdProductOffer(props: JsonLdProductOfferFragment): Pick<Product, 'offers'> {
25
25
  const { price_range } = props
26
26
 
27
27
  return {
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": "4.4.19",
5
+ "version": "4.4.22",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -19,13 +19,13 @@
19
19
  "type-fest": "^2.12.2"
20
20
  },
21
21
  "dependencies": {
22
- "@graphcommerce/framer-scroller": "2.1.26",
23
- "@graphcommerce/graphql": "3.4.3",
22
+ "@graphcommerce/framer-scroller": "2.1.29",
23
+ "@graphcommerce/graphql": "3.4.5",
24
24
  "@graphcommerce/graphql-mesh": "4.1.6",
25
25
  "@graphcommerce/image": "3.1.7",
26
- "@graphcommerce/magento-cart": "4.6.3",
27
- "@graphcommerce/magento-store": "4.2.21",
28
- "@graphcommerce/next-ui": "4.15.1",
26
+ "@graphcommerce/magento-cart": "4.6.6",
27
+ "@graphcommerce/magento-store": "4.2.24",
28
+ "@graphcommerce/next-ui": "4.18.0",
29
29
  "schema-dts": "^1.1.0"
30
30
  },
31
31
  "peerDependencies": {