@graphcommerce/algolia-products 10.0.0-canary.72 → 10.0.1-canary.0
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 +16 -168
- package/link/customerGroupIdLink.ts +9 -10
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,42 +1,12 @@
|
|
|
1
1
|
# @graphcommerce/algolia-products
|
|
2
2
|
|
|
3
|
-
## 10.0.
|
|
3
|
+
## 10.0.1-canary.0
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
## 10.0.0-canary.70
|
|
8
|
-
|
|
9
|
-
## 10.0.0-canary.69
|
|
10
|
-
|
|
11
|
-
## 10.0.0-canary.68
|
|
12
|
-
|
|
13
|
-
## 10.0.0-canary.67
|
|
14
|
-
|
|
15
|
-
## 10.0.0-canary.66
|
|
16
|
-
|
|
17
|
-
## 10.0.0-canary.65
|
|
18
|
-
|
|
19
|
-
## 10.0.0-canary.64
|
|
20
|
-
|
|
21
|
-
## 10.0.0-canary.63
|
|
22
|
-
|
|
23
|
-
### Major Changes
|
|
24
|
-
|
|
25
|
-
- [#2550](https://github.com/graphcommerce-org/graphcommerce/pull/2550) [`5d94c13`](https://github.com/graphcommerce-org/graphcommerce/commit/5d94c13c313546f00ee96c7b3db46e29bbe5185d) - Fix stock status mapping: use in_stock instead of is_stock in Algolia hit to Magento product conversion ([@davido-priority](https://github.com/davido-priority))
|
|
26
|
-
|
|
27
|
-
## 10.0.0-canary.62
|
|
28
|
-
|
|
29
|
-
## 10.0.0-canary.61
|
|
30
|
-
|
|
31
|
-
## 10.0.0-canary.60
|
|
32
|
-
|
|
33
|
-
## 10.0.0-canary.59
|
|
34
|
-
|
|
35
|
-
## 10.0.0-canary.58
|
|
5
|
+
### Patch Changes
|
|
36
6
|
|
|
37
|
-
|
|
7
|
+
- [#2568](https://github.com/graphcommerce-org/graphcommerce/pull/2568) [`f1b60ac`](https://github.com/graphcommerce-org/graphcommerce/commit/f1b60accf5e8fdbcba15b7567dce7ff68f37db88) - Solve issue where the cache wasn't available from the context anymore in @apollo/client@4 now uses the operation.client.cache ([@paales](https://github.com/paales))
|
|
38
8
|
|
|
39
|
-
## 10.0.0
|
|
9
|
+
## 10.0.0
|
|
40
10
|
|
|
41
11
|
### Major Changes
|
|
42
12
|
|
|
@@ -116,79 +86,7 @@
|
|
|
116
86
|
- `@mui/*` modern alias rewrites
|
|
117
87
|
- Debug plugins (`CircularDependencyPlugin`, `DuplicatesPlugin`) ([@paales](https://github.com/paales))
|
|
118
88
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
## 9.1.0-canary.54
|
|
122
|
-
|
|
123
|
-
## 9.1.0-canary.53
|
|
124
|
-
|
|
125
|
-
## 9.1.0-canary.52
|
|
126
|
-
|
|
127
|
-
## 9.1.0-canary.51
|
|
128
|
-
|
|
129
|
-
## 9.1.0-canary.50
|
|
130
|
-
|
|
131
|
-
## 9.1.0-canary.49
|
|
132
|
-
|
|
133
|
-
## 9.1.0-canary.48
|
|
134
|
-
|
|
135
|
-
## 9.1.0-canary.47
|
|
136
|
-
|
|
137
|
-
### Patch Changes
|
|
138
|
-
|
|
139
|
-
- [`499b30c`](https://github.com/graphcommerce-org/graphcommerce/commit/499b30c275571a675b176e0c0397104b608ad0a0) - Updated used spec for API and expose the multi search endpoint. ([@paales](https://github.com/paales))
|
|
140
|
-
|
|
141
|
-
## 9.1.0-canary.46
|
|
142
|
-
|
|
143
|
-
## 9.1.0-canary.45
|
|
144
|
-
|
|
145
|
-
## 9.1.0-canary.44
|
|
146
|
-
|
|
147
|
-
## 9.1.0-canary.43
|
|
148
|
-
|
|
149
|
-
## 9.1.0-canary.42
|
|
150
|
-
|
|
151
|
-
## 9.1.0-canary.41
|
|
152
|
-
|
|
153
|
-
## 9.1.0-canary.40
|
|
154
|
-
|
|
155
|
-
## 9.1.0-canary.39
|
|
156
|
-
|
|
157
|
-
## 9.1.0-canary.38
|
|
158
|
-
|
|
159
|
-
### Patch Changes
|
|
160
|
-
|
|
161
|
-
- [`a4de6ba`](https://github.com/graphcommerce-org/graphcommerce/commit/a4de6ba35d639fd6a7653463c2e26089d47842d0) - Solve issue where recommendations couldn't be retrieved ([@paales](https://github.com/paales))
|
|
162
|
-
|
|
163
|
-
## 9.1.0-canary.37
|
|
164
|
-
|
|
165
|
-
## 9.1.0-canary.36
|
|
166
|
-
|
|
167
|
-
### Patch Changes
|
|
168
|
-
|
|
169
|
-
- [`90e8850`](https://github.com/graphcommerce-org/graphcommerce/commit/90e885059b0203a8802e5ab753ac061b079ebcd6) - Support multiple currency displays from algolia ([@paales](https://github.com/paales))
|
|
170
|
-
|
|
171
|
-
## 9.1.0-canary.35
|
|
172
|
-
|
|
173
|
-
## 9.1.0-canary.34
|
|
174
|
-
|
|
175
|
-
### Patch Changes
|
|
176
|
-
|
|
177
|
-
- [`08f9883`](https://github.com/graphcommerce-org/graphcommerce/commit/08f98833019e726759194a3c1492052f2df052fa) - Correctly detect numeric values from the backend. ([@paales](https://github.com/paales))
|
|
178
|
-
|
|
179
|
-
## 9.1.0-canary.33
|
|
180
|
-
|
|
181
|
-
## 9.1.0-canary.32
|
|
182
|
-
|
|
183
|
-
### Patch Changes
|
|
184
|
-
|
|
185
|
-
- [#2516](https://github.com/graphcommerce-org/graphcommerce/pull/2516) [`edd9be6`](https://github.com/graphcommerce-org/graphcommerce/commit/edd9be6cbb37e7da99cc2e74ac269f0b7ddfaaaa) - feat(GCOM-1585): normalize input values from Algolia to schema compliant values ([@FrankHarland](https://github.com/FrankHarland))
|
|
186
|
-
|
|
187
|
-
## 9.1.0-canary.31
|
|
188
|
-
|
|
189
|
-
## 9.1.0-canary.30
|
|
190
|
-
|
|
191
|
-
## 9.1.0-canary.29
|
|
89
|
+
- [#2550](https://github.com/graphcommerce-org/graphcommerce/pull/2550) [`5d94c13`](https://github.com/graphcommerce-org/graphcommerce/commit/5d94c13c313546f00ee96c7b3db46e29bbe5185d) - Fix stock status mapping: use in_stock instead of is_stock in Algolia hit to Magento product conversion ([@davido-priority](https://github.com/davido-priority))
|
|
192
90
|
|
|
193
91
|
### Minor Changes
|
|
194
92
|
|
|
@@ -198,6 +96,10 @@
|
|
|
198
96
|
|
|
199
97
|
- [#2525](https://github.com/graphcommerce-org/graphcommerce/pull/2525) [`4f9ddb8`](https://github.com/graphcommerce-org/graphcommerce/commit/4f9ddb820494a89a6ae37df6e2befa59910330b4) - Updated Algolia to the latest version of the spec. ([@paales](https://github.com/paales))
|
|
200
98
|
|
|
99
|
+
- [#2494](https://github.com/graphcommerce-org/graphcommerce/pull/2494) [`fd824d4`](https://github.com/graphcommerce-org/graphcommerce/commit/fd824d41674d92a42bb7f354214d2b367a7beac2) - Solve issue when creating an account the group_id would be requested but there wansn't a token available to retrieve the group_id. ([@Renzovh](https://github.com/Renzovh))
|
|
100
|
+
|
|
101
|
+
- [#2516](https://github.com/graphcommerce-org/graphcommerce/pull/2516) [`edd9be6`](https://github.com/graphcommerce-org/graphcommerce/commit/edd9be6cbb37e7da99cc2e74ac269f0b7ddfaaaa) - feat(GCOM-1585): normalize input values from Algolia to schema compliant values ([@FrankHarland](https://github.com/FrankHarland))
|
|
102
|
+
|
|
201
103
|
- [#2525](https://github.com/graphcommerce-org/graphcommerce/pull/2525) [`75431c2`](https://github.com/graphcommerce-org/graphcommerce/commit/75431c22792bf7e4c95cd4c7c80aae5d0e77ee10) - Updated Algolia docs for search suggestions and used a different naming scheme where baseIndex+suggestionsSuffix is used (default that algolia suggests). ([@paales](https://github.com/paales))
|
|
202
104
|
|
|
203
105
|
- [#2525](https://github.com/graphcommerce-org/graphcommerce/pull/2525) [`4f9ddb8`](https://github.com/graphcommerce-org/graphcommerce/commit/4f9ddb820494a89a6ae37df6e2befa59910330b4) - Fixed issue where if a value contains a `/` or a `,` the URL parsing would break. Those values are now replaced with `_AND_` and `_OR_` in the URL. ([@paales](https://github.com/paales))
|
|
@@ -208,6 +110,8 @@
|
|
|
208
110
|
|
|
209
111
|
- [#2525](https://github.com/graphcommerce-org/graphcommerce/pull/2525) [`c9ac114`](https://github.com/graphcommerce-org/graphcommerce/commit/c9ac1142cb92394eb32dc4a6d3944a1707b1b4e2) - Allow returning the algolia index name that is being searched ([@paales](https://github.com/paales))
|
|
210
112
|
|
|
113
|
+
- [`90e8850`](https://github.com/graphcommerce-org/graphcommerce/commit/90e885059b0203a8802e5ab753ac061b079ebcd6) - Support multiple currency displays from algolia ([@paales](https://github.com/paales))
|
|
114
|
+
|
|
211
115
|
- [#2525](https://github.com/graphcommerce-org/graphcommerce/pull/2525) [`a026714`](https://github.com/graphcommerce-org/graphcommerce/commit/a026714ac0373b666de2cee43c3c5dba58cd81e4) - Solve issue where used configurations might not be scoped to the correct store. Move caching to the mesh cache and scope per store. ([@paales](https://github.com/paales))
|
|
212
116
|
|
|
213
117
|
- [#2525](https://github.com/graphcommerce-org/graphcommerce/pull/2525) [`2933775`](https://github.com/graphcommerce-org/graphcommerce/commit/29337755dd75321e69fe96822b51da12d06fda3a) - Solve issue where algolia would return a full product URL instead of only the pathname of the given URL from Magento ([@paales](https://github.com/paales))
|
|
@@ -216,71 +120,15 @@
|
|
|
216
120
|
|
|
217
121
|
- [#2525](https://github.com/graphcommerce-org/graphcommerce/pull/2525) [`4f9ddb8`](https://github.com/graphcommerce-org/graphcommerce/commit/4f9ddb820494a89a6ae37df6e2befa59910330b4) - Solve issue where some values wouldn’t be correctly flattened. ([@paales](https://github.com/paales))
|
|
218
122
|
|
|
219
|
-
- [
|
|
220
|
-
|
|
221
|
-
- [#2525](https://github.com/graphcommerce-org/graphcommerce/pull/2525) [`b266ec9`](https://github.com/graphcommerce-org/graphcommerce/commit/b266ec99e09a669a8e39478f8e4412cf1275e196) - Make sure the short_description and description can be properly returned when retrieved via an Algolia query ([@paales](https://github.com/paales))
|
|
222
|
-
|
|
223
|
-
## 9.1.0-canary.28
|
|
224
|
-
|
|
225
|
-
## 9.1.0-canary.27
|
|
226
|
-
|
|
227
|
-
## 9.1.0-canary.26
|
|
228
|
-
|
|
229
|
-
## 9.1.0-canary.25
|
|
230
|
-
|
|
231
|
-
## 9.1.0-canary.24
|
|
232
|
-
|
|
233
|
-
## 9.1.0-canary.23
|
|
234
|
-
|
|
235
|
-
## 9.1.0-canary.22
|
|
236
|
-
|
|
237
|
-
## 9.1.0-canary.21
|
|
238
|
-
|
|
239
|
-
## 9.1.0-canary.20
|
|
240
|
-
|
|
241
|
-
## 9.1.0-canary.19
|
|
242
|
-
|
|
243
|
-
## 9.1.0-canary.18
|
|
244
|
-
|
|
245
|
-
## 9.1.0-canary.17
|
|
246
|
-
|
|
247
|
-
## 9.1.0-canary.16
|
|
248
|
-
|
|
249
|
-
### Patch Changes
|
|
250
|
-
|
|
251
|
-
- [#2494](https://github.com/graphcommerce-org/graphcommerce/pull/2494) [`fd824d4`](https://github.com/graphcommerce-org/graphcommerce/commit/fd824d41674d92a42bb7f354214d2b367a7beac2) - Solve issue when creating an account the group_id would be requested but there wansn't a token available to retrieve the group_id. ([@Renzovh](https://github.com/Renzovh))
|
|
252
|
-
|
|
253
|
-
## 9.1.0-canary.15
|
|
254
|
-
|
|
255
|
-
## 9.0.4-canary.14
|
|
256
|
-
|
|
257
|
-
## 9.0.4-canary.13
|
|
258
|
-
|
|
259
|
-
## 9.0.4-canary.12
|
|
260
|
-
|
|
261
|
-
## 9.0.4-canary.11
|
|
262
|
-
|
|
263
|
-
## 9.0.4-canary.10
|
|
264
|
-
|
|
265
|
-
## 9.0.4-canary.9
|
|
266
|
-
|
|
267
|
-
## 9.0.4-canary.8
|
|
268
|
-
|
|
269
|
-
## 9.0.4-canary.7
|
|
270
|
-
|
|
271
|
-
## 9.0.4-canary.6
|
|
272
|
-
|
|
273
|
-
## 9.0.4-canary.5
|
|
274
|
-
|
|
275
|
-
## 9.0.4-canary.4
|
|
123
|
+
- [`a4de6ba`](https://github.com/graphcommerce-org/graphcommerce/commit/a4de6ba35d639fd6a7653463c2e26089d47842d0) - Solve issue where recommendations couldn't be retrieved ([@paales](https://github.com/paales))
|
|
276
124
|
|
|
277
|
-
|
|
125
|
+
- [#2525](https://github.com/graphcommerce-org/graphcommerce/pull/2525) [`4981ada`](https://github.com/graphcommerce-org/graphcommerce/commit/4981ada47eae866a003d511f80296f79c9c8b343) - Solve issue where Algolia didn't properly handle visibility as the attribute wasn't filterable, it automatically detects when there is a visibility attribute and uses that for filtering. ([@paales](https://github.com/paales))
|
|
278
126
|
|
|
279
|
-
|
|
127
|
+
- [`499b30c`](https://github.com/graphcommerce-org/graphcommerce/commit/499b30c275571a675b176e0c0397104b608ad0a0) - Updated used spec for API and expose the multi search endpoint. ([@paales](https://github.com/paales))
|
|
280
128
|
|
|
281
|
-
|
|
129
|
+
- [#2525](https://github.com/graphcommerce-org/graphcommerce/pull/2525) [`b266ec9`](https://github.com/graphcommerce-org/graphcommerce/commit/b266ec99e09a669a8e39478f8e4412cf1275e196) - Make sure the short_description and description can be properly returned when retrieved via an Algolia query ([@paales](https://github.com/paales))
|
|
282
130
|
|
|
283
|
-
|
|
131
|
+
- [`08f9883`](https://github.com/graphcommerce-org/graphcommerce/commit/08f98833019e726759194a3c1492052f2df052fa) - Correctly detect numeric values from the backend. ([@paales](https://github.com/paales))
|
|
284
132
|
|
|
285
133
|
## 9.0.0
|
|
286
134
|
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { setContext } from '@graphcommerce/graphql'
|
|
1
|
+
import { SetContextLink } from '@graphcommerce/graphql'
|
|
3
2
|
import { CustomerDocument } from '@graphcommerce/magento-customer'
|
|
4
3
|
|
|
5
4
|
declare module '@apollo/client' {
|
|
6
5
|
interface DefaultContext {
|
|
7
|
-
cache?: ApolloCache<unknown>
|
|
8
6
|
headers?: Record<string, string>
|
|
9
7
|
}
|
|
10
8
|
}
|
|
11
9
|
|
|
12
|
-
export const customerGroupIdLink =
|
|
13
|
-
|
|
10
|
+
export const customerGroupIdLink = new SetContextLink((prevContext, operation) => {
|
|
11
|
+
const headers: Record<string, string> = { ...prevContext.headers }
|
|
14
12
|
try {
|
|
15
|
-
const group_id =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
const group_id = operation.client.cache.readQuery({ query: CustomerDocument })?.customer
|
|
14
|
+
?.group_id
|
|
15
|
+
if (group_id) headers['x-magento-group-id'] = `${group_id}`
|
|
16
|
+
return { headers }
|
|
17
|
+
} catch {
|
|
18
|
+
return { headers }
|
|
20
19
|
}
|
|
21
20
|
})
|
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": "10.0.
|
|
5
|
+
"version": "10.0.1-canary.0",
|
|
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": "^10.0.
|
|
19
|
-
"@graphcommerce/graphql": "^10.0.
|
|
20
|
-
"@graphcommerce/graphql-mesh": "^10.0.
|
|
21
|
-
"@graphcommerce/magento-customer": "^10.0.
|
|
22
|
-
"@graphcommerce/magento-product": "^10.0.
|
|
23
|
-
"@graphcommerce/magento-search": "^10.0.
|
|
24
|
-
"@graphcommerce/next-config": "^10.0.
|
|
25
|
-
"@graphcommerce/next-ui": "^10.0.
|
|
18
|
+
"@graphcommerce/google-datalayer": "^10.0.1-canary.0",
|
|
19
|
+
"@graphcommerce/graphql": "^10.0.1-canary.0",
|
|
20
|
+
"@graphcommerce/graphql-mesh": "^10.0.1-canary.0",
|
|
21
|
+
"@graphcommerce/magento-customer": "^10.0.1-canary.0",
|
|
22
|
+
"@graphcommerce/magento-product": "^10.0.1-canary.0",
|
|
23
|
+
"@graphcommerce/magento-search": "^10.0.1-canary.0",
|
|
24
|
+
"@graphcommerce/next-config": "^10.0.1-canary.0",
|
|
25
|
+
"@graphcommerce/next-ui": "^10.0.1-canary.0",
|
|
26
26
|
"react": "^19.2.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|