@graphcommerce/algolia-insights 10.0.0-canary.68 → 10.0.0-canary.72

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,13 @@
1
1
  # @graphcommerce/algolia-personalization
2
2
 
3
+ ## 10.0.0-canary.72
4
+
5
+ ## 10.0.0-canary.71
6
+
7
+ ## 10.0.0-canary.70
8
+
9
+ ## 10.0.0-canary.69
10
+
3
11
  ## 10.0.0-canary.68
4
12
 
5
13
  ## 10.0.0-canary.67
@@ -327,10 +327,12 @@ export function useSendAlgoliaEvent() {
327
327
  mutation: AlgoliaSendEventDocument,
328
328
  variables: { events },
329
329
  })
330
- .then(({ data, errors }) => {
331
- const errorMessage = (errors ?? []).map((e) => e.message)
332
- if (errorMessage.length > 0) {
333
- console.log('There was a problem sending the Algolia event to the server', errorMessage)
330
+ .then(({ data, error }) => {
331
+ if (error) {
332
+ console.log(
333
+ 'There was a problem sending the Algolia event to the server',
334
+ error.message,
335
+ )
334
336
  }
335
337
 
336
338
  const response = data?.algolia_pushEvents
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": "10.0.0-canary.68",
5
+ "version": "10.0.0-canary.72",
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": "^10.0.0-canary.68",
19
- "@graphcommerce/google-datalayer": "^10.0.0-canary.68",
20
- "@graphcommerce/graphql": "^10.0.0-canary.68",
21
- "@graphcommerce/graphql-mesh": "^10.0.0-canary.68",
22
- "@graphcommerce/magento-customer": "^10.0.0-canary.68",
23
- "@graphcommerce/magento-product": "^10.0.0-canary.68",
24
- "@graphcommerce/next-config": "^10.0.0-canary.68",
25
- "@graphcommerce/next-ui": "^10.0.0-canary.68",
26
- "@graphcommerce/react-hook-form": "^10.0.0-canary.68",
18
+ "@graphcommerce/algolia-products": "^10.0.0-canary.72",
19
+ "@graphcommerce/google-datalayer": "^10.0.0-canary.72",
20
+ "@graphcommerce/graphql": "^10.0.0-canary.72",
21
+ "@graphcommerce/graphql-mesh": "^10.0.0-canary.72",
22
+ "@graphcommerce/magento-customer": "^10.0.0-canary.72",
23
+ "@graphcommerce/magento-product": "^10.0.0-canary.72",
24
+ "@graphcommerce/next-config": "^10.0.0-canary.72",
25
+ "@graphcommerce/next-ui": "^10.0.0-canary.72",
26
+ "@graphcommerce/react-hook-form": "^10.0.0-canary.72",
27
27
  "@mui/material": "*",
28
28
  "react": "^19.2.0"
29
29
  },