@graphcommerce/algolia-products 9.0.3 → 9.0.4-canary.1

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,16 +1,8 @@
1
1
  # @graphcommerce/algolia-products
2
2
 
3
- ## 9.0.3
3
+ ## 9.0.4-canary.1
4
4
 
5
- ## 9.0.3-canary.0
6
-
7
- ## 9.0.2
8
-
9
- ## 9.0.2-canary.0
10
-
11
- ## 9.0.1
12
-
13
- ## 9.0.1-canary.1
5
+ ## 9.0.4-canary.0
14
6
 
15
7
  ## 9.0.0
16
8
 
@@ -1,7 +1,7 @@
1
1
  import type {
2
+ Algoliahit,
2
3
  AlgoliaPrice,
3
4
  AlgoliaProductHitAdditionalProperties,
4
- Algoliahit,
5
5
  CurrencyEnum,
6
6
  MeshContext,
7
7
  PriceRange,
@@ -87,8 +87,10 @@ export function algoliaUrlToUrlKey(url?: string | null, base?: string | null): s
87
87
  }
88
88
 
89
89
  /**
90
- * For the URL https://configurator.reachdigital.dev/media/catalog/product/cache/d911de87cf9e562637815cc5a14b1b05/1/0/1087_1_3.jpg
90
+ * For the URL
91
+ * https://configurator.reachdigital.dev/media/catalog/product/cache/d911de87cf9e562637815cc5a14b1b05/1/0/1087_1_3.jpg
91
92
  * Remove /cache/HASH from the URL but only if the url contains media/catalog/product
93
+ *
92
94
  * @param url
93
95
  */
94
96
  function getOriginalImage(url?: string | undefined | null) {
@@ -114,7 +116,8 @@ export type ProductsItemsItem = NonNullable<
114
116
  /**
115
117
  * Mapping function to map Algolia hit to Magento product.
116
118
  *
117
- * You can create a FunctionPlugin to modify the behavior of this function or implement brand specific code.
119
+ * You can create a FunctionPlugin to modify the behavior of this function or implement brand
120
+ * specific code.
118
121
  */
119
122
  export function algoliaHitToMagentoProduct(
120
123
  hit: Algoliahit,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/algolia-products",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.0.3",
5
+ "version": "9.0.4-canary.1",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -15,14 +15,14 @@
15
15
  "generate": "tsx scripts/generate-spec.mts"
16
16
  },
17
17
  "peerDependencies": {
18
- "@graphcommerce/google-datalayer": "^9.0.3",
19
- "@graphcommerce/graphql": "^9.0.3",
20
- "@graphcommerce/graphql-mesh": "^9.0.3",
21
- "@graphcommerce/magento-customer": "^9.0.3",
22
- "@graphcommerce/magento-product": "^9.0.3",
23
- "@graphcommerce/magento-search": "^9.0.3",
24
- "@graphcommerce/next-config": "^9.0.3",
25
- "@graphcommerce/next-ui": "^9.0.3",
18
+ "@graphcommerce/google-datalayer": "^9.0.4-canary.1",
19
+ "@graphcommerce/graphql": "^9.0.4-canary.1",
20
+ "@graphcommerce/graphql-mesh": "^9.0.4-canary.1",
21
+ "@graphcommerce/magento-customer": "^9.0.4-canary.1",
22
+ "@graphcommerce/magento-product": "^9.0.4-canary.1",
23
+ "@graphcommerce/magento-search": "^9.0.4-canary.1",
24
+ "@graphcommerce/next-config": "^9.0.4-canary.1",
25
+ "@graphcommerce/next-ui": "^9.0.4-canary.1",
26
26
  "react": "^18.2.0"
27
27
  },
28
28
  "devDependencies": {