@graphcommerce/algolia-products 9.0.0-canary.115 → 9.0.0-canary.117

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,9 @@
1
1
  # @graphcommerce/algolia-products
2
2
 
3
+ ## 9.0.0-canary.117
4
+
5
+ ## 9.0.0-canary.116
6
+
3
7
  ## 9.0.0-canary.115
4
8
 
5
9
  ## 9.0.0-canary.114
@@ -41,6 +41,7 @@ function compare(a, b) {
41
41
  return 0
42
42
  }
43
43
 
44
+ /** @public */
44
45
  export function algoliaPricesToPricesAggregations(pricesList: {
45
46
  [key: string]: number
46
47
  }): AggregationOption[] {
@@ -117,7 +118,8 @@ function assertAlgoliaFacets(facets: any): facets is AlgoliaFacets {
117
118
  /**
118
119
  * Map algolia facets to aggregations format
119
120
  *
120
- * TODO: Make sure the aggregations are sorted correctly: https://magento-247-git-canary-graphcommerce.vercel.app/men/photography, through position
121
+ * TODO: Make sure the aggregations are sorted correctly:
122
+ * https://magento-247-git-canary-graphcommerce.vercel.app/men/photography, through position
121
123
  */
122
124
  export function algoliaFacetsToAggregations(
123
125
  algoliaFacets: AlgoliasearchResponse['facets'],
@@ -13,7 +13,7 @@ import type {
13
13
  } from '@graphcommerce/graphql-mesh'
14
14
  import type { GetStoreConfigReturn } from './getStoreConfig'
15
15
 
16
- export function assertAdditional(
16
+ function assertAdditional(
17
17
  additional: unknown,
18
18
  ): additional is AlgoliaProductHitAdditionalProperties {
19
19
  return true
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.0-canary.115",
5
+ "version": "9.0.0-canary.117",
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.0-canary.115",
19
- "@graphcommerce/graphql": "^9.0.0-canary.115",
20
- "@graphcommerce/graphql-mesh": "^9.0.0-canary.115",
21
- "@graphcommerce/magento-customer": "^9.0.0-canary.115",
22
- "@graphcommerce/magento-product": "^9.0.0-canary.115",
23
- "@graphcommerce/magento-search": "^9.0.0-canary.115",
24
- "@graphcommerce/next-config": "^9.0.0-canary.115",
25
- "@graphcommerce/next-ui": "^9.0.0-canary.115",
18
+ "@graphcommerce/google-datalayer": "^9.0.0-canary.117",
19
+ "@graphcommerce/graphql": "^9.0.0-canary.117",
20
+ "@graphcommerce/graphql-mesh": "^9.0.0-canary.117",
21
+ "@graphcommerce/magento-customer": "^9.0.0-canary.117",
22
+ "@graphcommerce/magento-product": "^9.0.0-canary.117",
23
+ "@graphcommerce/magento-search": "^9.0.0-canary.117",
24
+ "@graphcommerce/next-config": "^9.0.0-canary.117",
25
+ "@graphcommerce/next-ui": "^9.0.0-canary.117",
26
26
  "react": "^18.2.0"
27
27
  },
28
28
  "devDependencies": {
@@ -1,11 +0,0 @@
1
- import type { ProductListQueryVariables } from '@graphcommerce/magento-product'
2
-
3
- export function applyEngineVariables(variables: ProductListQueryVariables | undefined) {
4
- return {
5
- ...variables,
6
- filters: {
7
- ...variables?.filters,
8
- engine: { eq: 'algolia' },
9
- },
10
- }
11
- }