@graphcommerce/algolia-insights 9.0.4-canary.13 → 9.0.4-canary.14
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 +6 -0
- package/hooks/useSendAlgoliaEvent.ts +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @graphcommerce/algolia-personalization
|
|
2
2
|
|
|
3
|
+
## 9.0.4-canary.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2495](https://github.com/graphcommerce-org/graphcommerce/pull/2495) [`d90f7f5`](https://github.com/graphcommerce-org/graphcommerce/commit/d90f7f5889c58fbd982581a13b398a0978f901a8) - Solve issue where the useSendEventAlgolia hook would sometimes throw an error during purchase ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
8
|
+
|
|
3
9
|
## 9.0.4-canary.13
|
|
4
10
|
|
|
5
11
|
## 9.0.4-canary.12
|
|
@@ -250,7 +250,7 @@ const dataLayerToAlgoliaMap: {
|
|
|
250
250
|
|
|
251
251
|
const objectIDs = eventData.items.map((item) => atob(item.item_uid))
|
|
252
252
|
const relevant = objectIDs.map((objectID) => mapping[objectID])
|
|
253
|
-
const filters = [...new Set(...relevant.map((item) => item
|
|
253
|
+
const filters = [...new Set(...relevant.map((item) => item?.filters ?? []))]
|
|
254
254
|
|
|
255
255
|
if (filters.length > 0) {
|
|
256
256
|
// There is a max of 10 filters per event, if there are more than 10 items
|
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.4-canary.
|
|
5
|
+
"version": "9.0.4-canary.14",
|
|
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.4-canary.
|
|
19
|
-
"@graphcommerce/google-datalayer": "^9.0.4-canary.
|
|
20
|
-
"@graphcommerce/graphql": "^9.0.4-canary.
|
|
21
|
-
"@graphcommerce/graphql-mesh": "^9.0.4-canary.
|
|
22
|
-
"@graphcommerce/magento-customer": "^9.0.4-canary.
|
|
23
|
-
"@graphcommerce/magento-product": "^9.0.4-canary.
|
|
24
|
-
"@graphcommerce/next-config": "^9.0.4-canary.
|
|
25
|
-
"@graphcommerce/next-ui": "^9.0.4-canary.
|
|
26
|
-
"@graphcommerce/react-hook-form": "^9.0.4-canary.
|
|
18
|
+
"@graphcommerce/algolia-products": "^9.0.4-canary.14",
|
|
19
|
+
"@graphcommerce/google-datalayer": "^9.0.4-canary.14",
|
|
20
|
+
"@graphcommerce/graphql": "^9.0.4-canary.14",
|
|
21
|
+
"@graphcommerce/graphql-mesh": "^9.0.4-canary.14",
|
|
22
|
+
"@graphcommerce/magento-customer": "^9.0.4-canary.14",
|
|
23
|
+
"@graphcommerce/magento-product": "^9.0.4-canary.14",
|
|
24
|
+
"@graphcommerce/next-config": "^9.0.4-canary.14",
|
|
25
|
+
"@graphcommerce/next-ui": "^9.0.4-canary.14",
|
|
26
|
+
"@graphcommerce/react-hook-form": "^9.0.4-canary.14",
|
|
27
27
|
"@mui/material": "*",
|
|
28
28
|
"react": "^18.2.0"
|
|
29
29
|
},
|