@graphcommerce/algolia-insights 9.0.0 → 9.0.1-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,35 +1,7 @@
1
1
  # @graphcommerce/algolia-personalization
2
2
 
3
- ## 9.0.0
3
+ ## 9.0.1-canary.1
4
4
 
5
- ## 9.0.0-canary.118
5
+ ### Patch Changes
6
6
 
7
- ## 9.0.0-canary.117
8
-
9
- ## 9.0.0-canary.116
10
-
11
- ## 9.0.0-canary.115
12
-
13
- ## 9.0.0-canary.114
14
-
15
- ## 9.0.0-canary.113
16
-
17
- ## 9.0.0-canary.112
18
-
19
- ## 9.0.0-canary.111
20
-
21
- ## 9.0.0-canary.110
22
-
23
- ## 9.0.0-canary.109
24
-
25
- ## 9.0.0-canary.108
26
-
27
- ## 9.0.0-canary.107
28
-
29
- ## 9.0.0-canary.106
30
-
31
- ## 9.0.0-canary.105
32
-
33
- ## 9.0.0-canary.104
34
-
35
- ## 9.0.0-canary.103
7
+ - [#2461](https://github.com/graphcommerce-org/graphcommerce/pull/2461) [`aac4864`](https://github.com/graphcommerce-org/graphcommerce/commit/aac4864c191f3a0490373abdd52b5f1c460b56a3) - Solve issue where the item.filters would sometimes be invalid ([@paales](https://github.com/paales))
@@ -183,7 +183,7 @@ const dataLayerToAlgoliaMap: {
183
183
  const mapping = getObjectIDToQuery()
184
184
  const objectIDs = eventData.items.map((item) => atob(item.item_uid))
185
185
 
186
- const relevant = objectIDs.map((objectID) => mapping[objectID])
186
+ const relevant = objectIDs.map((objectID) => mapping[objectID]).filter(Boolean)
187
187
  const queryID = relevant?.[0]?.queryID
188
188
  const filters = [...new Set(...relevant.map((item) => item.filters))]
189
189
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/algolia-insights",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.0.0",
5
+ "version": "9.0.1-canary.1",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -15,15 +15,15 @@
15
15
  "generate": "tsx scripts/generate-insights-spec.mts"
16
16
  },
17
17
  "peerDependencies": {
18
- "@graphcommerce/algolia-products": "^9.0.0",
19
- "@graphcommerce/google-datalayer": "^9.0.0",
20
- "@graphcommerce/graphql": "^9.0.0",
21
- "@graphcommerce/graphql-mesh": "^9.0.0",
22
- "@graphcommerce/magento-customer": "^9.0.0",
23
- "@graphcommerce/magento-product": "^9.0.0",
24
- "@graphcommerce/next-config": "^9.0.0",
25
- "@graphcommerce/next-ui": "^9.0.0",
26
- "@graphcommerce/react-hook-form": "^9.0.0",
18
+ "@graphcommerce/algolia-products": "^9.0.1-canary.1",
19
+ "@graphcommerce/google-datalayer": "^9.0.1-canary.1",
20
+ "@graphcommerce/graphql": "^9.0.1-canary.1",
21
+ "@graphcommerce/graphql-mesh": "^9.0.1-canary.1",
22
+ "@graphcommerce/magento-customer": "^9.0.1-canary.1",
23
+ "@graphcommerce/magento-product": "^9.0.1-canary.1",
24
+ "@graphcommerce/next-config": "^9.0.1-canary.1",
25
+ "@graphcommerce/next-ui": "^9.0.1-canary.1",
26
+ "@graphcommerce/react-hook-form": "^9.0.1-canary.1",
27
27
  "@mui/material": "*",
28
28
  "react": "^18.2.0"
29
29
  },