@graphcommerce/magento-store 9.0.0-canary.100 → 9.0.0-canary.103
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 +30 -1053
- package/Money.tsx +3 -2
- package/PageMeta.tsx +2 -4
- package/components/GlobalHead/GlobalHead.tsx +2 -4
- package/components/StoreSwitcherButton/StoreSwitcherButton.tsx +3 -2
- package/components/StoreSwitcherList/StoreSwitcherList.tsx +4 -11
- package/hooks/useFindCountry.ts +2 -1
- package/hooks/useFindRegion.ts +1 -1
- package/package.json +8 -8
- package/test/apolloClientStore.fixture.ts +2 -1
- package/utils/redirectOrNotFound.ts +15 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,843 +1,75 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## 9.0.0-canary.
|
|
3
|
+
## 9.0.0-canary.103
|
|
4
4
|
|
|
5
|
-
## 9.0.0-canary.
|
|
6
|
-
|
|
7
|
-
## 9.0.0-canary.98
|
|
8
|
-
|
|
9
|
-
## 9.0.0-canary.97
|
|
10
|
-
|
|
11
|
-
## 9.0.0-canary.96
|
|
12
|
-
|
|
13
|
-
## 9.0.0-canary.95
|
|
14
|
-
|
|
15
|
-
## 9.0.0-canary.94
|
|
16
|
-
|
|
17
|
-
## 9.0.0-canary.93
|
|
18
|
-
|
|
19
|
-
## 9.0.0-canary.92
|
|
20
|
-
|
|
21
|
-
## 9.0.0-canary.91
|
|
22
|
-
|
|
23
|
-
### Patch Changes
|
|
24
|
-
|
|
25
|
-
- [#2367](https://github.com/graphcommerce-org/graphcommerce/pull/2367) [`71d412d`](https://github.com/graphcommerce-org/graphcommerce/commit/71d412d202bc94a0e676745547de5d809a7a850b) - When a user access a category page which is beyond the available total_pages, the user will be redirected to the last available page. ([@paales](https://github.com/paales))
|
|
26
|
-
|
|
27
|
-
## 9.0.0-canary.90
|
|
28
|
-
|
|
29
|
-
## 9.0.0-canary.89
|
|
30
|
-
|
|
31
|
-
## 9.0.0-canary.88
|
|
32
|
-
|
|
33
|
-
## 9.0.0-canary.87
|
|
34
|
-
|
|
35
|
-
## 9.0.0-canary.86
|
|
36
|
-
|
|
37
|
-
## 9.0.0-canary.85
|
|
38
|
-
|
|
39
|
-
## 9.0.0-canary.84
|
|
40
|
-
|
|
41
|
-
## 9.0.0-canary.83
|
|
42
|
-
|
|
43
|
-
### Patch Changes
|
|
44
|
-
|
|
45
|
-
- [#2374](https://github.com/graphcommerce-org/graphcommerce/pull/2374) [`e61e1f4`](https://github.com/graphcommerce-org/graphcommerce/commit/e61e1f4fb1086f7a6341b42502135abf1839e43d) - Default to permanent redirects unless specified ([@hnsr](https://github.com/hnsr))
|
|
46
|
-
|
|
47
|
-
## 9.0.0-canary.82
|
|
48
|
-
|
|
49
|
-
## 9.0.0-canary.81
|
|
50
|
-
|
|
51
|
-
### Minor Changes
|
|
52
|
-
|
|
53
|
-
- [#2373](https://github.com/graphcommerce-org/graphcommerce/pull/2373) [`53ffc91`](https://github.com/graphcommerce-org/graphcommerce/commit/53ffc91f9bfbe1183c002c62b1fe0c3f415d7b94) - Handle the case where one switches from using the default .html URL suffix, to not using one ([@hnsr](https://github.com/hnsr))
|
|
54
|
-
|
|
55
|
-
## 9.0.0-canary.80
|
|
56
|
-
|
|
57
|
-
## 9.0.0-canary.79
|
|
58
|
-
|
|
59
|
-
## 9.0.0-canary.78
|
|
60
|
-
|
|
61
|
-
## 9.0.0-canary.77
|
|
62
|
-
|
|
63
|
-
## 9.0.0-canary.76
|
|
64
|
-
|
|
65
|
-
## 9.0.0-canary.75
|
|
66
|
-
|
|
67
|
-
## 9.0.0-canary.74
|
|
68
|
-
|
|
69
|
-
## 9.0.0-canary.73
|
|
70
|
-
|
|
71
|
-
## 9.0.0-canary.72
|
|
72
|
-
|
|
73
|
-
## 9.0.0-canary.71
|
|
74
|
-
|
|
75
|
-
## 9.0.0-canary.70
|
|
76
|
-
|
|
77
|
-
## 9.0.0-canary.69
|
|
78
|
-
|
|
79
|
-
## 9.0.0-canary.68
|
|
80
|
-
|
|
81
|
-
## 9.0.0-canary.67
|
|
82
|
-
|
|
83
|
-
## 9.0.0-canary.66
|
|
84
|
-
|
|
85
|
-
## 9.0.0-canary.65
|
|
86
|
-
|
|
87
|
-
## 9.0.0-canary.64
|
|
88
|
-
|
|
89
|
-
## 9.0.0-canary.63
|
|
90
|
-
|
|
91
|
-
## 9.0.0-canary.62
|
|
92
|
-
|
|
93
|
-
## 9.0.0-canary.61
|
|
94
|
-
|
|
95
|
-
### Minor Changes
|
|
96
|
-
|
|
97
|
-
- [#2327](https://github.com/graphcommerce-org/graphcommerce/pull/2327) [`be719fc`](https://github.com/graphcommerce-org/graphcommerce/commit/be719fc465c8804ddcb720a93813262e3a292b69) - Implement CancelOrder mutation, add cancel order overlay to account section ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
98
|
-
|
|
99
|
-
## 9.0.0-canary.60
|
|
100
|
-
|
|
101
|
-
## 9.0.0-canary.59
|
|
102
|
-
|
|
103
|
-
## 9.0.0-canary.58
|
|
104
|
-
|
|
105
|
-
## 9.0.0-canary.57
|
|
106
|
-
|
|
107
|
-
## 9.0.0-canary.56
|
|
108
|
-
|
|
109
|
-
## 9.0.0-canary.55
|
|
110
|
-
|
|
111
|
-
## 9.0.0-canary.54
|
|
112
|
-
|
|
113
|
-
## 8.1.0-canary.53
|
|
114
|
-
|
|
115
|
-
## 8.1.0-canary.52
|
|
116
|
-
|
|
117
|
-
## 8.1.0-canary.51
|
|
118
|
-
|
|
119
|
-
## 8.1.0-canary.50
|
|
120
|
-
|
|
121
|
-
## 8.1.0-canary.49
|
|
122
|
-
|
|
123
|
-
## 8.1.0-canary.48
|
|
124
|
-
|
|
125
|
-
## 8.1.0-canary.47
|
|
126
|
-
|
|
127
|
-
## 8.1.0-canary.46
|
|
128
|
-
|
|
129
|
-
## 8.1.0-canary.45
|
|
130
|
-
|
|
131
|
-
## 8.1.0-canary.44
|
|
132
|
-
|
|
133
|
-
## 8.1.0-canary.43
|
|
134
|
-
|
|
135
|
-
## 8.1.0-canary.42
|
|
136
|
-
|
|
137
|
-
## 8.1.0-canary.41
|
|
138
|
-
|
|
139
|
-
## 8.1.0-canary.40
|
|
140
|
-
|
|
141
|
-
## 8.1.0-canary.39
|
|
142
|
-
|
|
143
|
-
## 8.1.0-canary.38
|
|
144
|
-
|
|
145
|
-
## 8.1.0-canary.37
|
|
146
|
-
|
|
147
|
-
## 8.1.0-canary.36
|
|
148
|
-
|
|
149
|
-
## 8.1.0-canary.35
|
|
150
|
-
|
|
151
|
-
### Minor Changes
|
|
152
|
-
|
|
153
|
-
- [#2301](https://github.com/graphcommerce-org/graphcommerce/pull/2301) [`47bb47b`](https://github.com/graphcommerce-org/graphcommerce/commit/47bb47bac4b3689a6859afbc587274d813e0b072) - Implement confirm email functionality ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
154
|
-
|
|
155
|
-
## 8.1.0-canary.34
|
|
156
|
-
|
|
157
|
-
## 8.1.0-canary.33
|
|
158
|
-
|
|
159
|
-
## 8.1.0-canary.32
|
|
160
|
-
|
|
161
|
-
## 8.1.0-canary.31
|
|
162
|
-
|
|
163
|
-
## 8.1.0-canary.30
|
|
164
|
-
|
|
165
|
-
## 8.1.0-canary.29
|
|
166
|
-
|
|
167
|
-
## 8.1.0-canary.28
|
|
168
|
-
|
|
169
|
-
## 8.1.0-canary.27
|
|
170
|
-
|
|
171
|
-
## 8.1.0-canary.26
|
|
172
|
-
|
|
173
|
-
## 8.1.0-canary.25
|
|
174
|
-
|
|
175
|
-
## 8.1.0-canary.24
|
|
176
|
-
|
|
177
|
-
## 8.1.0-canary.23
|
|
178
|
-
|
|
179
|
-
## 8.1.0-canary.22
|
|
180
|
-
|
|
181
|
-
## 8.1.0-canary.21
|
|
182
|
-
|
|
183
|
-
## 8.1.0-canary.20
|
|
184
|
-
|
|
185
|
-
## 8.1.0-canary.19
|
|
186
|
-
|
|
187
|
-
## 8.1.0-canary.18
|
|
188
|
-
|
|
189
|
-
## 8.1.0-canary.17
|
|
190
|
-
|
|
191
|
-
## 8.1.0-canary.16
|
|
192
|
-
|
|
193
|
-
## 8.1.0-canary.15
|
|
194
|
-
|
|
195
|
-
## 8.1.0-canary.14
|
|
196
|
-
|
|
197
|
-
## 8.1.0-canary.13
|
|
198
|
-
|
|
199
|
-
## 8.1.0-canary.12
|
|
200
|
-
|
|
201
|
-
## 8.1.0-canary.11
|
|
202
|
-
|
|
203
|
-
## 8.1.0-canary.10
|
|
204
|
-
|
|
205
|
-
## 8.1.0-canary.9
|
|
206
|
-
|
|
207
|
-
## 8.1.0-canary.8
|
|
208
|
-
|
|
209
|
-
## 8.1.0-canary.7
|
|
210
|
-
|
|
211
|
-
## 8.1.0-canary.6
|
|
212
|
-
|
|
213
|
-
## 8.1.0-canary.5
|
|
214
|
-
|
|
215
|
-
## 8.0.6-canary.4
|
|
216
|
-
|
|
217
|
-
## 8.0.6-canary.3
|
|
218
|
-
|
|
219
|
-
## 8.0.6-canary.2
|
|
220
|
-
|
|
221
|
-
## 8.0.6-canary.1
|
|
222
|
-
|
|
223
|
-
## 8.0.6-canary.0
|
|
224
|
-
|
|
225
|
-
## 8.0.5
|
|
226
|
-
|
|
227
|
-
## 8.0.5-canary.10
|
|
228
|
-
|
|
229
|
-
## 8.0.5-canary.9
|
|
230
|
-
|
|
231
|
-
## 8.0.5-canary.8
|
|
232
|
-
|
|
233
|
-
## 8.0.5-canary.7
|
|
234
|
-
|
|
235
|
-
## 8.0.5-canary.6
|
|
236
|
-
|
|
237
|
-
## 8.0.5-canary.5
|
|
238
|
-
|
|
239
|
-
## 8.0.5-canary.4
|
|
240
|
-
|
|
241
|
-
## 8.0.5-canary.3
|
|
242
|
-
|
|
243
|
-
## 8.0.5-canary.2
|
|
244
|
-
|
|
245
|
-
## 8.0.5-canary.1
|
|
246
|
-
|
|
247
|
-
## 8.0.5-canary.0
|
|
248
|
-
|
|
249
|
-
## 8.0.4
|
|
250
|
-
|
|
251
|
-
## 8.0.4-canary.1
|
|
252
|
-
|
|
253
|
-
## 8.0.4-canary.0
|
|
254
|
-
|
|
255
|
-
## 8.0.3
|
|
256
|
-
|
|
257
|
-
## 8.0.3-canary.6
|
|
258
|
-
|
|
259
|
-
## 8.0.3-canary.5
|
|
260
|
-
|
|
261
|
-
## 8.0.3-canary.4
|
|
262
|
-
|
|
263
|
-
## 8.0.3-canary.3
|
|
264
|
-
|
|
265
|
-
## 8.0.3-canary.2
|
|
266
|
-
|
|
267
|
-
## 8.0.3-canary.1
|
|
268
|
-
|
|
269
|
-
## 8.0.3-canary.0
|
|
270
|
-
|
|
271
|
-
## 8.0.2
|
|
272
|
-
|
|
273
|
-
## 8.0.2-canary.3
|
|
274
|
-
|
|
275
|
-
## 8.0.2-canary.2
|
|
276
|
-
|
|
277
|
-
## 8.0.2-canary.1
|
|
278
|
-
|
|
279
|
-
## 8.0.2-canary.0
|
|
280
|
-
|
|
281
|
-
## 8.0.1
|
|
282
|
-
|
|
283
|
-
### Patch Changes
|
|
284
|
-
|
|
285
|
-
- [#2187](https://github.com/graphcommerce-org/graphcommerce/pull/2187) [`61f90af`](https://github.com/graphcommerce-org/graphcommerce/commit/61f90afc8bc229b2cd4793f724509783af138deb) - redirectOrNotFound would log the incorrect request URL ([@paales](https://github.com/paales))
|
|
286
|
-
|
|
287
|
-
## 8.0.1-canary.4
|
|
288
|
-
|
|
289
|
-
## 8.0.1-canary.3
|
|
290
|
-
|
|
291
|
-
## 8.0.1-canary.2
|
|
292
|
-
|
|
293
|
-
## 8.0.1-canary.1
|
|
294
|
-
|
|
295
|
-
## 8.0.1-canary.0
|
|
296
|
-
|
|
297
|
-
### Patch Changes
|
|
298
|
-
|
|
299
|
-
- [#2187](https://github.com/graphcommerce-org/graphcommerce/pull/2187) [`61f90af`](https://github.com/graphcommerce-org/graphcommerce/commit/61f90afc8bc229b2cd4793f724509783af138deb) - redirectOrNotFound would log the incorrect request URL ([@paales](https://github.com/paales))
|
|
300
|
-
|
|
301
|
-
## 8.0.0
|
|
302
|
-
|
|
303
|
-
### Patch Changes
|
|
304
|
-
|
|
305
|
-
- [#2067](https://github.com/graphcommerce-org/graphcommerce/pull/2067) [`3406794`](https://github.com/graphcommerce-org/graphcommerce/commit/340679434e0ff1033c8158ef03a091e06e20e6a9) - Prevent HandleRedirect errors by filtering out empty URL values from the candidates array. ([@carlocarels90](https://github.com/carlocarels90))
|
|
306
|
-
|
|
307
|
-
- [#2140](https://github.com/graphcommerce-org/graphcommerce/pull/2140) [`b34d85c`](https://github.com/graphcommerce-org/graphcommerce/commit/b34d85c8c5403c6f49b506b714ee314b8344fd99) - Solve incorrect redirect when locale has own domain ([@hnsr](https://github.com/hnsr))
|
|
308
|
-
|
|
309
|
-
## 8.0.0-canary.100
|
|
310
|
-
|
|
311
|
-
## 8.0.0-canary.99
|
|
312
|
-
|
|
313
|
-
## 8.0.0-canary.98
|
|
314
|
-
|
|
315
|
-
## 8.0.0-canary.97
|
|
316
|
-
|
|
317
|
-
## 8.0.0-canary.96
|
|
318
|
-
|
|
319
|
-
## 8.0.0-canary.95
|
|
320
|
-
|
|
321
|
-
## 8.0.0-canary.94
|
|
322
|
-
|
|
323
|
-
## 8.0.0-canary.93
|
|
324
|
-
|
|
325
|
-
## 8.0.0-canary.92
|
|
326
|
-
|
|
327
|
-
## 8.0.0-canary.91
|
|
328
|
-
|
|
329
|
-
## 8.0.0-canary.90
|
|
330
|
-
|
|
331
|
-
## 8.0.0-canary.89
|
|
332
|
-
|
|
333
|
-
## 8.0.0-canary.88
|
|
334
|
-
|
|
335
|
-
## 8.0.0-canary.87
|
|
336
|
-
|
|
337
|
-
## 8.0.0-canary.86
|
|
338
|
-
|
|
339
|
-
## 8.0.0-canary.85
|
|
340
|
-
|
|
341
|
-
## 8.0.0-canary.84
|
|
342
|
-
|
|
343
|
-
## 8.0.0-canary.83
|
|
344
|
-
|
|
345
|
-
## 8.0.0-canary.82
|
|
346
|
-
|
|
347
|
-
## 8.0.0-canary.81
|
|
348
|
-
|
|
349
|
-
### Patch Changes
|
|
350
|
-
|
|
351
|
-
- [#2140](https://github.com/graphcommerce-org/graphcommerce/pull/2140) [`b34d85c`](https://github.com/graphcommerce-org/graphcommerce/commit/b34d85c8c5403c6f49b506b714ee314b8344fd99) - Fix incorrect redirect when locale has own domain ([@hnsr](https://github.com/hnsr))
|
|
352
|
-
|
|
353
|
-
## 8.0.0-canary.80
|
|
354
|
-
|
|
355
|
-
## 8.0.0-canary.79
|
|
356
|
-
|
|
357
|
-
## 8.0.0-canary.78
|
|
358
|
-
|
|
359
|
-
## 8.0.0-canary.77
|
|
360
|
-
|
|
361
|
-
## 8.0.0-canary.76
|
|
362
|
-
|
|
363
|
-
## 8.0.0-canary.75
|
|
364
|
-
|
|
365
|
-
## 8.0.0-canary.74
|
|
366
|
-
|
|
367
|
-
## 8.0.0-canary.73
|
|
368
|
-
|
|
369
|
-
## 8.0.0-canary.72
|
|
370
|
-
|
|
371
|
-
## 8.0.0-canary.71
|
|
372
|
-
|
|
373
|
-
## 8.0.0-canary.70
|
|
374
|
-
|
|
375
|
-
## 8.0.0-canary.69
|
|
376
|
-
|
|
377
|
-
## 7.1.0-canary.68
|
|
378
|
-
|
|
379
|
-
## 7.1.0-canary.67
|
|
380
|
-
|
|
381
|
-
## 7.1.0-canary.66
|
|
382
|
-
|
|
383
|
-
## 7.1.0-canary.65
|
|
384
|
-
|
|
385
|
-
## 7.1.0-canary.64
|
|
386
|
-
|
|
387
|
-
## 7.1.0-canary.63
|
|
388
|
-
|
|
389
|
-
## 7.1.0-canary.62
|
|
390
|
-
|
|
391
|
-
## 7.1.0-canary.61
|
|
392
|
-
|
|
393
|
-
## 7.1.0-canary.60
|
|
394
|
-
|
|
395
|
-
## 7.1.0-canary.59
|
|
396
|
-
|
|
397
|
-
## 7.1.0-canary.58
|
|
398
|
-
|
|
399
|
-
## 7.1.0-canary.57
|
|
400
|
-
|
|
401
|
-
## 7.1.0-canary.56
|
|
402
|
-
|
|
403
|
-
## 7.1.0-canary.55
|
|
404
|
-
|
|
405
|
-
## 7.1.0-canary.54
|
|
406
|
-
|
|
407
|
-
## 7.1.0-canary.53
|
|
408
|
-
|
|
409
|
-
## 7.1.0-canary.52
|
|
410
|
-
|
|
411
|
-
## 7.1.0-canary.51
|
|
412
|
-
|
|
413
|
-
## 7.1.0-canary.50
|
|
414
|
-
|
|
415
|
-
## 7.1.0-canary.49
|
|
416
|
-
|
|
417
|
-
## 7.1.0-canary.48
|
|
418
|
-
|
|
419
|
-
## 7.1.0-canary.47
|
|
420
|
-
|
|
421
|
-
## 7.1.0-canary.46
|
|
422
|
-
|
|
423
|
-
## 7.1.0-canary.45
|
|
424
|
-
|
|
425
|
-
## 7.1.0-canary.38
|
|
426
|
-
|
|
427
|
-
## 7.1.0-canary.37
|
|
428
|
-
|
|
429
|
-
## 7.1.0-canary.36
|
|
430
|
-
|
|
431
|
-
## 7.1.0-canary.35
|
|
432
|
-
|
|
433
|
-
## 7.1.0-canary.34
|
|
434
|
-
|
|
435
|
-
## 7.1.0-canary.33
|
|
436
|
-
|
|
437
|
-
## 7.1.0-canary.32
|
|
438
|
-
|
|
439
|
-
## 7.1.0-canary.31
|
|
440
|
-
|
|
441
|
-
## 7.1.0-canary.30
|
|
442
|
-
|
|
443
|
-
## 7.1.0-canary.29
|
|
444
|
-
|
|
445
|
-
## 7.1.0-canary.28
|
|
446
|
-
|
|
447
|
-
## 7.1.0-canary.27
|
|
448
|
-
|
|
449
|
-
## 7.1.0-canary.26
|
|
450
|
-
|
|
451
|
-
## 7.1.0-canary.25
|
|
452
|
-
|
|
453
|
-
## 7.1.0-canary.24
|
|
454
|
-
|
|
455
|
-
## 7.1.0-canary.23
|
|
456
|
-
|
|
457
|
-
## 7.1.0-canary.22
|
|
458
|
-
|
|
459
|
-
## 7.1.0-canary.21
|
|
460
|
-
|
|
461
|
-
## 7.1.0-canary.20
|
|
462
|
-
|
|
463
|
-
## 7.1.0-canary.19
|
|
464
|
-
|
|
465
|
-
## 7.1.0-canary.18
|
|
466
|
-
|
|
467
|
-
## 7.1.0-canary.17
|
|
468
|
-
|
|
469
|
-
## 7.1.0-canary.16
|
|
470
|
-
|
|
471
|
-
## 7.1.0-canary.15
|
|
472
|
-
|
|
473
|
-
## 7.1.0-canary.14
|
|
474
|
-
|
|
475
|
-
## 7.1.0-canary.13
|
|
476
|
-
|
|
477
|
-
## 7.1.0-canary.12
|
|
478
|
-
|
|
479
|
-
## 7.1.0-canary.11
|
|
480
|
-
|
|
481
|
-
## 7.1.0-canary.10
|
|
482
|
-
|
|
483
|
-
## 7.1.0-canary.9
|
|
484
|
-
|
|
485
|
-
## 7.1.0-canary.8
|
|
486
|
-
|
|
487
|
-
## 7.0.2-canary.7
|
|
488
|
-
|
|
489
|
-
## 7.0.2-canary.6
|
|
490
|
-
|
|
491
|
-
### Patch Changes
|
|
492
|
-
|
|
493
|
-
- [#2067](https://github.com/graphcommerce-org/graphcommerce/pull/2067) [`340679434`](https://github.com/graphcommerce-org/graphcommerce/commit/340679434e0ff1033c8158ef03a091e06e20e6a9) - Prevent HandleRedirect errors by filtering out empty URL values from the candidates array. ([@carlocarels90](https://github.com/carlocarels90))
|
|
494
|
-
|
|
495
|
-
## 7.0.2-canary.5
|
|
496
|
-
|
|
497
|
-
## 7.0.1
|
|
498
|
-
|
|
499
|
-
## 7.0.1-canary.15
|
|
500
|
-
|
|
501
|
-
## 7.0.1-canary.14
|
|
502
|
-
|
|
503
|
-
## 7.0.1-canary.13
|
|
504
|
-
|
|
505
|
-
## 7.0.1-canary.12
|
|
506
|
-
|
|
507
|
-
## 7.0.1-canary.11
|
|
508
|
-
|
|
509
|
-
## 7.0.1-canary.10
|
|
510
|
-
|
|
511
|
-
## 7.0.1-canary.9
|
|
512
|
-
|
|
513
|
-
## 7.0.1-canary.8
|
|
514
|
-
|
|
515
|
-
## 7.0.1-canary.7
|
|
516
|
-
|
|
517
|
-
## 7.0.1-canary.6
|
|
518
|
-
|
|
519
|
-
## 7.0.1-canary.5
|
|
520
|
-
|
|
521
|
-
## 7.0.1-canary.4
|
|
522
|
-
|
|
523
|
-
## 7.0.1-canary.3
|
|
524
|
-
|
|
525
|
-
## 7.0.1-canary.2
|
|
526
|
-
|
|
527
|
-
## 7.0.1-canary.1
|
|
528
|
-
|
|
529
|
-
## 7.0.1-canary.0
|
|
530
|
-
|
|
531
|
-
## 7.0.0
|
|
532
|
-
|
|
533
|
-
### Major Changes
|
|
534
|
-
|
|
535
|
-
- [`e55d8c390`](https://github.com/graphcommerce-org/graphcommerce/commit/e55d8c390d90b4bb7bab11c6a99027ac72bd7e3e) - Created a new sidebar layout system, can be configured with productFiltersLayout in the graphcommerce.config.js ([@paales](https://github.com/paales))
|
|
536
|
-
|
|
537
|
-
### Minor Changes
|
|
538
|
-
|
|
539
|
-
- [#1961](https://github.com/graphcommerce-org/graphcommerce/pull/1961) [`4a759c662`](https://github.com/graphcommerce-org/graphcommerce/commit/4a759c66215eaa69edc342b898e05e8f92c3ba9a) - Add Open Graph meta tags to all pages ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
540
|
-
|
|
541
|
-
### Patch Changes
|
|
542
|
-
|
|
543
|
-
- [#1914](https://github.com/graphcommerce-org/graphcommerce/pull/1914) [`c237f2f2c`](https://github.com/graphcommerce-org/graphcommerce/commit/c237f2f2c87d9e3c8aefc536a13b5b9203556f27) - Category pages now have the ability to select the displayed pageSize of a page if the backend provides multiple options. A non-default pageSize and a non-default sort option will now receive noindex meta tags when viewed. ([@paales](https://github.com/paales))
|
|
544
|
-
|
|
545
|
-
- [#1967](https://github.com/graphcommerce-org/graphcommerce/pull/1967) [`888fe88e6`](https://github.com/graphcommerce-org/graphcommerce/commit/888fe88e644d94621d54a268dbaafc7ff5467c93) - Fix bug where product urls ending with a suffix would not be redirected ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
546
|
-
|
|
547
|
-
- [#1915](https://github.com/graphcommerce-org/graphcommerce/pull/1915) [`f4a8c3881`](https://github.com/graphcommerce-org/graphcommerce/commit/f4a8c388183e17c52e7f66536c5448749f494d7f) - Moved the injection of the links to plugins ([@paales](https://github.com/paales))
|
|
548
|
-
|
|
549
|
-
## 6.2.0-canary.98
|
|
550
|
-
|
|
551
|
-
## 6.2.0-canary.97
|
|
552
|
-
|
|
553
|
-
## 6.2.0-canary.96
|
|
554
|
-
|
|
555
|
-
## 6.2.0-canary.95
|
|
556
|
-
|
|
557
|
-
## 6.2.0-canary.94
|
|
558
|
-
|
|
559
|
-
## 6.2.0-canary.93
|
|
560
|
-
|
|
561
|
-
## 6.2.0-canary.92
|
|
562
|
-
|
|
563
|
-
## 6.2.0-canary.91
|
|
564
|
-
|
|
565
|
-
## 6.2.0-canary.90
|
|
566
|
-
|
|
567
|
-
## 6.2.0-canary.89
|
|
568
|
-
|
|
569
|
-
## 6.2.0-canary.88
|
|
570
|
-
|
|
571
|
-
## 6.2.0-canary.87
|
|
572
|
-
|
|
573
|
-
## 6.2.0-canary.86
|
|
574
|
-
|
|
575
|
-
## 6.2.0-canary.85
|
|
576
|
-
|
|
577
|
-
## 6.2.0-canary.84
|
|
578
|
-
|
|
579
|
-
## 6.2.0-canary.83
|
|
580
|
-
|
|
581
|
-
## 6.2.0-canary.82
|
|
582
|
-
|
|
583
|
-
## 6.2.0-canary.81
|
|
584
|
-
|
|
585
|
-
## 6.2.0-canary.80
|
|
586
|
-
|
|
587
|
-
## 6.2.0-canary.79
|
|
588
|
-
|
|
589
|
-
## 6.2.0-canary.78
|
|
590
|
-
|
|
591
|
-
## 6.2.0-canary.77
|
|
592
|
-
|
|
593
|
-
## 6.2.0-canary.76
|
|
594
|
-
|
|
595
|
-
## 6.2.0-canary.75
|
|
596
|
-
|
|
597
|
-
## 6.2.0-canary.74
|
|
598
|
-
|
|
599
|
-
## 6.2.0-canary.73
|
|
600
|
-
|
|
601
|
-
## 6.2.0-canary.72
|
|
602
|
-
|
|
603
|
-
## 6.2.0-canary.71
|
|
604
|
-
|
|
605
|
-
## 6.2.0-canary.70
|
|
606
|
-
|
|
607
|
-
## 6.2.0-canary.69
|
|
608
|
-
|
|
609
|
-
## 6.2.0-canary.68
|
|
610
|
-
|
|
611
|
-
## 6.2.0-canary.67
|
|
612
|
-
|
|
613
|
-
## 6.2.0-canary.66
|
|
614
|
-
|
|
615
|
-
## 6.2.0-canary.65
|
|
616
|
-
|
|
617
|
-
## 6.2.0-canary.64
|
|
618
|
-
|
|
619
|
-
## 6.2.0-canary.63
|
|
620
|
-
|
|
621
|
-
## 6.2.0-canary.62
|
|
622
|
-
|
|
623
|
-
## 6.2.0-canary.61
|
|
624
|
-
|
|
625
|
-
## 6.2.0-canary.60
|
|
626
|
-
|
|
627
|
-
## 6.2.0-canary.59
|
|
628
|
-
|
|
629
|
-
## 6.2.0-canary.58
|
|
630
|
-
|
|
631
|
-
## 6.2.0-canary.57
|
|
632
|
-
|
|
633
|
-
## 6.2.0-canary.56
|
|
634
|
-
|
|
635
|
-
## 6.2.0-canary.55
|
|
636
|
-
|
|
637
|
-
### Patch Changes
|
|
638
|
-
|
|
639
|
-
- [#1967](https://github.com/graphcommerce-org/graphcommerce/pull/1967) [`888fe88e6`](https://github.com/graphcommerce-org/graphcommerce/commit/888fe88e644d94621d54a268dbaafc7ff5467c93) - Fix bug where product urls ending with a suffix would not be redirected ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
640
|
-
|
|
641
|
-
## 6.2.0-canary.54
|
|
642
|
-
|
|
643
|
-
## 6.2.0-canary.53
|
|
644
|
-
|
|
645
|
-
## 6.2.0-canary.52
|
|
5
|
+
## 9.0.0-canary.91
|
|
646
6
|
|
|
647
|
-
|
|
7
|
+
### Patch Changes
|
|
648
8
|
|
|
649
|
-
|
|
9
|
+
- [#2367](https://github.com/graphcommerce-org/graphcommerce/pull/2367) [`71d412d`](https://github.com/graphcommerce-org/graphcommerce/commit/71d412d202bc94a0e676745547de5d809a7a850b) - When a user access a category page which is beyond the available total_pages, the user will be redirected to the last available page. ([@paales](https://github.com/paales))
|
|
650
10
|
|
|
651
|
-
|
|
11
|
+
## 9.0.0-canary.83
|
|
652
12
|
|
|
653
|
-
|
|
13
|
+
### Patch Changes
|
|
654
14
|
|
|
655
|
-
|
|
15
|
+
- [#2374](https://github.com/graphcommerce-org/graphcommerce/pull/2374) [`e61e1f4`](https://github.com/graphcommerce-org/graphcommerce/commit/e61e1f4fb1086f7a6341b42502135abf1839e43d) - Default to permanent redirects unless specified ([@hnsr](https://github.com/hnsr))
|
|
656
16
|
|
|
657
|
-
##
|
|
17
|
+
## 9.0.0-canary.81
|
|
658
18
|
|
|
659
19
|
### Minor Changes
|
|
660
20
|
|
|
661
|
-
- [#
|
|
662
|
-
|
|
663
|
-
## 6.2.0-canary.47
|
|
664
|
-
|
|
665
|
-
## 6.2.0-canary.46
|
|
666
|
-
|
|
667
|
-
## 6.2.0-canary.45
|
|
668
|
-
|
|
669
|
-
## 6.2.0-canary.44
|
|
670
|
-
|
|
671
|
-
## 6.2.0-canary.43
|
|
672
|
-
|
|
673
|
-
## 6.2.0-canary.42
|
|
674
|
-
|
|
675
|
-
## 6.2.0-canary.41
|
|
676
|
-
|
|
677
|
-
## 6.2.0-canary.40
|
|
678
|
-
|
|
679
|
-
## 6.2.0-canary.39
|
|
680
|
-
|
|
681
|
-
## 6.2.0-canary.38
|
|
682
|
-
|
|
683
|
-
## 6.2.0-canary.37
|
|
684
|
-
|
|
685
|
-
## 6.2.0-canary.36
|
|
686
|
-
|
|
687
|
-
## 6.2.0-canary.35
|
|
688
|
-
|
|
689
|
-
## 6.2.0-canary.34
|
|
690
|
-
|
|
691
|
-
## 6.2.0-canary.33
|
|
692
|
-
|
|
693
|
-
## 6.2.0-canary.32
|
|
694
|
-
|
|
695
|
-
## 6.2.0-canary.31
|
|
696
|
-
|
|
697
|
-
## 6.2.0-canary.30
|
|
698
|
-
|
|
699
|
-
## 6.2.0-canary.29
|
|
700
|
-
|
|
701
|
-
## 6.2.0-canary.28
|
|
702
|
-
|
|
703
|
-
## 6.2.0-canary.27
|
|
704
|
-
|
|
705
|
-
## 6.2.0-canary.26
|
|
706
|
-
|
|
707
|
-
## 6.2.0-canary.25
|
|
708
|
-
|
|
709
|
-
## 6.2.0-canary.24
|
|
710
|
-
|
|
711
|
-
## 6.2.0-canary.23
|
|
712
|
-
|
|
713
|
-
## 6.2.0-canary.22
|
|
714
|
-
|
|
715
|
-
## 6.2.0-canary.21
|
|
716
|
-
|
|
717
|
-
## 6.2.0-canary.20
|
|
718
|
-
|
|
719
|
-
## 6.2.0-canary.19
|
|
720
|
-
|
|
721
|
-
## 6.2.0-canary.18
|
|
722
|
-
|
|
723
|
-
## 6.2.0-canary.17
|
|
724
|
-
|
|
725
|
-
## 6.2.0-canary.16
|
|
726
|
-
|
|
727
|
-
## 6.2.0-canary.15
|
|
728
|
-
|
|
729
|
-
## 6.2.0-canary.14
|
|
730
|
-
|
|
731
|
-
## 6.2.0-canary.13
|
|
732
|
-
|
|
733
|
-
## 6.2.0-canary.12
|
|
734
|
-
|
|
735
|
-
## 6.2.0-canary.11
|
|
736
|
-
|
|
737
|
-
## 6.2.0-canary.10
|
|
738
|
-
|
|
739
|
-
## 6.2.0-canary.9
|
|
21
|
+
- [#2373](https://github.com/graphcommerce-org/graphcommerce/pull/2373) [`53ffc91`](https://github.com/graphcommerce-org/graphcommerce/commit/53ffc91f9bfbe1183c002c62b1fe0c3f415d7b94) - Handle the case where one switches from using the default .html URL suffix, to not using one ([@hnsr](https://github.com/hnsr))
|
|
740
22
|
|
|
741
|
-
##
|
|
23
|
+
## 9.0.0-canary.61
|
|
742
24
|
|
|
743
|
-
|
|
25
|
+
### Minor Changes
|
|
744
26
|
|
|
745
|
-
|
|
27
|
+
- [#2327](https://github.com/graphcommerce-org/graphcommerce/pull/2327) [`be719fc`](https://github.com/graphcommerce-org/graphcommerce/commit/be719fc465c8804ddcb720a93813262e3a292b69) - Implement CancelOrder mutation, add cancel order overlay to account section ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
746
28
|
|
|
747
|
-
|
|
29
|
+
## 8.1.0-canary.35
|
|
748
30
|
|
|
749
|
-
|
|
31
|
+
### Minor Changes
|
|
750
32
|
|
|
751
|
-
|
|
33
|
+
- [#2301](https://github.com/graphcommerce-org/graphcommerce/pull/2301) [`47bb47b`](https://github.com/graphcommerce-org/graphcommerce/commit/47bb47bac4b3689a6859afbc587274d813e0b072) - Implement confirm email functionality ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
752
34
|
|
|
753
|
-
##
|
|
35
|
+
## 8.0.1
|
|
754
36
|
|
|
755
37
|
### Patch Changes
|
|
756
38
|
|
|
757
|
-
- [#
|
|
758
|
-
|
|
759
|
-
## 6.1.1-canary.3
|
|
760
|
-
|
|
761
|
-
## 6.1.1-canary.2
|
|
762
|
-
|
|
763
|
-
## 6.1.1-canary.1
|
|
764
|
-
|
|
765
|
-
## 6.1.1-canary.0
|
|
39
|
+
- [#2187](https://github.com/graphcommerce-org/graphcommerce/pull/2187) [`61f90af`](https://github.com/graphcommerce-org/graphcommerce/commit/61f90afc8bc229b2cd4793f724509783af138deb) - redirectOrNotFound would log the incorrect request URL ([@paales](https://github.com/paales))
|
|
766
40
|
|
|
767
|
-
##
|
|
41
|
+
## 8.0.0
|
|
768
42
|
|
|
769
43
|
### Patch Changes
|
|
770
44
|
|
|
771
|
-
- [#
|
|
772
|
-
|
|
773
|
-
## 6.0.2-canary.22
|
|
774
|
-
|
|
775
|
-
## 6.0.2-canary.21
|
|
776
|
-
|
|
777
|
-
## 6.0.2-canary.20
|
|
45
|
+
- [#2067](https://github.com/graphcommerce-org/graphcommerce/pull/2067) [`3406794`](https://github.com/graphcommerce-org/graphcommerce/commit/340679434e0ff1033c8158ef03a091e06e20e6a9) - Prevent HandleRedirect errors by filtering out empty URL values from the candidates array. ([@carlocarels90](https://github.com/carlocarels90))
|
|
778
46
|
|
|
779
|
-
|
|
47
|
+
- [#2140](https://github.com/graphcommerce-org/graphcommerce/pull/2140) [`b34d85c`](https://github.com/graphcommerce-org/graphcommerce/commit/b34d85c8c5403c6f49b506b714ee314b8344fd99) - Solve incorrect redirect when locale has own domain ([@hnsr](https://github.com/hnsr))
|
|
780
48
|
|
|
781
|
-
##
|
|
49
|
+
## 7.0.0
|
|
782
50
|
|
|
783
|
-
|
|
51
|
+
### Major Changes
|
|
784
52
|
|
|
785
|
-
|
|
53
|
+
- [`e55d8c390`](https://github.com/graphcommerce-org/graphcommerce/commit/e55d8c390d90b4bb7bab11c6a99027ac72bd7e3e) - Created a new sidebar layout system, can be configured with productFiltersLayout in the graphcommerce.config.js ([@paales](https://github.com/paales))
|
|
786
54
|
|
|
787
|
-
|
|
55
|
+
### Minor Changes
|
|
788
56
|
|
|
789
|
-
|
|
57
|
+
- [#1961](https://github.com/graphcommerce-org/graphcommerce/pull/1961) [`4a759c662`](https://github.com/graphcommerce-org/graphcommerce/commit/4a759c66215eaa69edc342b898e05e8f92c3ba9a) - Add Open Graph meta tags to all pages ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
790
58
|
|
|
791
|
-
|
|
59
|
+
### Patch Changes
|
|
792
60
|
|
|
793
|
-
|
|
61
|
+
- [#1914](https://github.com/graphcommerce-org/graphcommerce/pull/1914) [`c237f2f2c`](https://github.com/graphcommerce-org/graphcommerce/commit/c237f2f2c87d9e3c8aefc536a13b5b9203556f27) - Category pages now have the ability to select the displayed pageSize of a page if the backend provides multiple options. A non-default pageSize and a non-default sort option will now receive noindex meta tags when viewed. ([@paales](https://github.com/paales))
|
|
794
62
|
|
|
795
|
-
|
|
63
|
+
- [#1967](https://github.com/graphcommerce-org/graphcommerce/pull/1967) [`888fe88e6`](https://github.com/graphcommerce-org/graphcommerce/commit/888fe88e644d94621d54a268dbaafc7ff5467c93) - Fix bug where product urls ending with a suffix would not be redirected ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
796
64
|
|
|
797
|
-
|
|
65
|
+
- [#1915](https://github.com/graphcommerce-org/graphcommerce/pull/1915) [`f4a8c3881`](https://github.com/graphcommerce-org/graphcommerce/commit/f4a8c388183e17c52e7f66536c5448749f494d7f) - Moved the injection of the links to plugins ([@paales](https://github.com/paales))
|
|
798
66
|
|
|
799
|
-
## 6.0
|
|
67
|
+
## 6.1.0
|
|
800
68
|
|
|
801
69
|
### Patch Changes
|
|
802
70
|
|
|
803
71
|
- [#1875](https://github.com/graphcommerce-org/graphcommerce/pull/1875) [`4325f6556`](https://github.com/graphcommerce-org/graphcommerce/commit/4325f6556308fe96e262e03935f37dc252f72c2e) - When trying to redirect it would do another call to fetch the config while that was already done previously ([@paales](https://github.com/paales))
|
|
804
72
|
|
|
805
|
-
## 6.0.2-canary.8
|
|
806
|
-
|
|
807
|
-
## 6.0.2-canary.7
|
|
808
|
-
|
|
809
|
-
## 6.0.2-canary.6
|
|
810
|
-
|
|
811
|
-
## 6.0.2-canary.5
|
|
812
|
-
|
|
813
|
-
## 6.0.2-canary.4
|
|
814
|
-
|
|
815
|
-
## 6.0.2-canary.3
|
|
816
|
-
|
|
817
|
-
## 6.0.2-canary.2
|
|
818
|
-
|
|
819
|
-
## 6.0.2-canary.1
|
|
820
|
-
|
|
821
|
-
## 6.0.2-canary.0
|
|
822
|
-
|
|
823
|
-
## 6.0.1
|
|
824
|
-
|
|
825
|
-
## 6.0.1-canary.7
|
|
826
|
-
|
|
827
|
-
## 6.0.1-canary.6
|
|
828
|
-
|
|
829
|
-
## 6.0.1-canary.5
|
|
830
|
-
|
|
831
|
-
## 6.0.1-canary.4
|
|
832
|
-
|
|
833
|
-
## 6.0.1-canary.3
|
|
834
|
-
|
|
835
|
-
## 6.0.1-canary.2
|
|
836
|
-
|
|
837
|
-
## 6.0.1-canary.1
|
|
838
|
-
|
|
839
|
-
## 6.0.1-canary.0
|
|
840
|
-
|
|
841
73
|
## 6.0.0
|
|
842
74
|
|
|
843
75
|
### Minor Changes
|
|
@@ -862,136 +94,6 @@
|
|
|
862
94
|
|
|
863
95
|
- [#1790](https://github.com/graphcommerce-org/graphcommerce/pull/1790) [`875a595da`](https://github.com/graphcommerce-org/graphcommerce/commit/875a595da5f52b77bc2535cf4a660267b0046a1e) - ApolloClient cache size would balloon with all redirects and make sure redirects work ([@LaurensFranken](https://github.com/LaurensFranken))
|
|
864
96
|
|
|
865
|
-
## 6.0.0-canary.54
|
|
866
|
-
|
|
867
|
-
## 6.0.0-canary.53
|
|
868
|
-
|
|
869
|
-
## 6.0.0-canary.52
|
|
870
|
-
|
|
871
|
-
## 6.0.0-canary.51
|
|
872
|
-
|
|
873
|
-
## 6.0.0-canary.50
|
|
874
|
-
|
|
875
|
-
## 6.0.0-canary.49
|
|
876
|
-
|
|
877
|
-
## 6.0.0-canary.48
|
|
878
|
-
|
|
879
|
-
## 6.0.0-canary.47
|
|
880
|
-
|
|
881
|
-
## 6.0.0-canary.46
|
|
882
|
-
|
|
883
|
-
## 6.0.0-canary.45
|
|
884
|
-
|
|
885
|
-
## 6.0.0-canary.44
|
|
886
|
-
|
|
887
|
-
### Patch Changes
|
|
888
|
-
|
|
889
|
-
- [#1842](https://github.com/graphcommerce-org/graphcommerce/pull/1842) [`7b67d84bd`](https://github.com/graphcommerce-org/graphcommerce/commit/7b67d84bd269c3fc91afbd69f6683c5d12808d36) - Renamed i18n to storefront in configuration ([@paales](https://github.com/paales))
|
|
890
|
-
|
|
891
|
-
## 6.0.0-canary.43
|
|
892
|
-
|
|
893
|
-
## 6.0.0-canary.42
|
|
894
|
-
|
|
895
|
-
## 6.0.0-canary.41
|
|
896
|
-
|
|
897
|
-
## 6.0.0-canary.40
|
|
898
|
-
|
|
899
|
-
## 6.0.0-canary.39
|
|
900
|
-
|
|
901
|
-
## 6.0.0-canary.38
|
|
902
|
-
|
|
903
|
-
## 6.0.0-canary.37
|
|
904
|
-
|
|
905
|
-
## 6.0.0-canary.36
|
|
906
|
-
|
|
907
|
-
## 6.0.0-canary.35
|
|
908
|
-
|
|
909
|
-
### Minor Changes
|
|
910
|
-
|
|
911
|
-
- [#1822](https://github.com/graphcommerce-org/graphcommerce/pull/1822) [`cc02c46e3`](https://github.com/graphcommerce-org/graphcommerce/commit/cc02c46e32c9a44a90789591f43d91ae234dac84) - Added basic meta og:tags to the product page. ([@KMalkowski](https://github.com/KMalkowski))
|
|
912
|
-
|
|
913
|
-
## 6.0.0-canary.34
|
|
914
|
-
|
|
915
|
-
## 6.0.0-canary.33
|
|
916
|
-
|
|
917
|
-
## 6.0.0-canary.32
|
|
918
|
-
|
|
919
|
-
## 6.0.0-canary.31
|
|
920
|
-
|
|
921
|
-
## 6.0.0-canary.30
|
|
922
|
-
|
|
923
|
-
## 6.0.0-canary.29
|
|
924
|
-
|
|
925
|
-
### Minor Changes
|
|
926
|
-
|
|
927
|
-
- [#1828](https://github.com/graphcommerce-org/graphcommerce/pull/1828) [`3df85faf1`](https://github.com/graphcommerce-org/graphcommerce/commit/3df85faf189b95e2c7d9c3fc756474fcafb1c8b4) - Added new `productRoute` configuration to create freedom in the actual product route used (default: /p/). Simplified redirects from legacy product routes to new routes by creating redirects. ([@paales](https://github.com/paales))
|
|
928
|
-
|
|
929
|
-
## 6.0.0-canary.28
|
|
930
|
-
|
|
931
|
-
## 6.0.0-canary.27
|
|
932
|
-
|
|
933
|
-
## 6.0.0-canary.26
|
|
934
|
-
|
|
935
|
-
## 6.0.0-canary.25
|
|
936
|
-
|
|
937
|
-
## 6.0.0-canary.24
|
|
938
|
-
|
|
939
|
-
## 6.0.0-canary.23
|
|
940
|
-
|
|
941
|
-
## 6.0.0-canary.22
|
|
942
|
-
|
|
943
|
-
## 6.0.0-canary.21
|
|
944
|
-
|
|
945
|
-
## 6.0.0-canary.20
|
|
946
|
-
|
|
947
|
-
## 5.2.0-canary.19
|
|
948
|
-
|
|
949
|
-
## 5.2.0-canary.18
|
|
950
|
-
|
|
951
|
-
### Patch Changes
|
|
952
|
-
|
|
953
|
-
- [#1790](https://github.com/graphcommerce-org/graphcommerce/pull/1790) [`875a595da`](https://github.com/graphcommerce-org/graphcommerce/commit/875a595da5f52b77bc2535cf4a660267b0046a1e) - ApolloClient cache would balloon with all redirects and make sure redirects work ([@LaurensFranken](https://github.com/LaurensFranken))
|
|
954
|
-
|
|
955
|
-
## 5.2.0-canary.17
|
|
956
|
-
|
|
957
|
-
## 5.2.0-canary.16
|
|
958
|
-
|
|
959
|
-
## 5.2.0-canary.15
|
|
960
|
-
|
|
961
|
-
## 5.2.0-canary.14
|
|
962
|
-
|
|
963
|
-
## 5.2.0-canary.13
|
|
964
|
-
|
|
965
|
-
## 5.2.0-canary.12
|
|
966
|
-
|
|
967
|
-
## 5.2.0-canary.11
|
|
968
|
-
|
|
969
|
-
## 5.2.0-canary.10
|
|
970
|
-
|
|
971
|
-
## 5.2.0-canary.9
|
|
972
|
-
|
|
973
|
-
## 5.2.0-canary.8
|
|
974
|
-
|
|
975
|
-
## 5.2.0-canary.7
|
|
976
|
-
|
|
977
|
-
### Patch Changes
|
|
978
|
-
|
|
979
|
-
- [#1749](https://github.com/graphcommerce-org/graphcommerce/pull/1749) [`16e91da42`](https://github.com/graphcommerce-org/graphcommerce/commit/16e91da42dcb454ea4761d1780b9338c88ef1463) - Fix spelling error incomming to incoming ([@paales](https://github.com/paales))
|
|
980
|
-
|
|
981
|
-
## 5.2.0-canary.6
|
|
982
|
-
|
|
983
|
-
## 5.2.0-canary.5
|
|
984
|
-
|
|
985
|
-
## 5.2.0-canary.4
|
|
986
|
-
|
|
987
|
-
## 5.2.0-canary.3
|
|
988
|
-
|
|
989
|
-
## 5.2.0-canary.2
|
|
990
|
-
|
|
991
|
-
## 5.2.0-canary.1
|
|
992
|
-
|
|
993
|
-
## 5.2.0-canary.0
|
|
994
|
-
|
|
995
97
|
## 5.1.1
|
|
996
98
|
|
|
997
99
|
### Patch Changes
|
|
@@ -1000,16 +102,6 @@
|
|
|
1000
102
|
|
|
1001
103
|
- [#1762](https://github.com/graphcommerce-org/graphcommerce/pull/1762) [`1d03b8b1e`](https://github.com/graphcommerce-org/graphcommerce/commit/1d03b8b1effbe45215e16add45e82f4632584bc9) - Addtional implementations of the RoutableInterface caused redirects to fail ([@paales](https://github.com/paales))
|
|
1002
104
|
|
|
1003
|
-
## 5.1.1-canary.1
|
|
1004
|
-
|
|
1005
|
-
## 5.1.1-canary.0
|
|
1006
|
-
|
|
1007
|
-
### Patch Changes
|
|
1008
|
-
|
|
1009
|
-
- [#1762](https://github.com/graphcommerce-org/graphcommerce/pull/1762) [`0dcbc432a`](https://github.com/graphcommerce-org/graphcommerce/commit/0dcbc432a4595d8758b58e9f5871eb0614ec3d7e) - Requested URLs to product pages incorrectly return a notFound error ([@paales](https://github.com/paales))
|
|
1010
|
-
|
|
1011
|
-
- [#1762](https://github.com/graphcommerce-org/graphcommerce/pull/1762) [`1d03b8b1e`](https://github.com/graphcommerce-org/graphcommerce/commit/1d03b8b1effbe45215e16add45e82f4632584bc9) - Addtional implementations of the RoutableInterface caused redirects to fail ([@paales](https://github.com/paales))
|
|
1012
|
-
|
|
1013
105
|
## 5.1.0
|
|
1014
106
|
|
|
1015
107
|
### Minor Changes
|
|
@@ -1031,53 +123,6 @@
|
|
|
1031
123
|
|
|
1032
124
|
- [#1755](https://github.com/graphcommerce-org/graphcommerce/pull/1755) [`dbe103963`](https://github.com/graphcommerce-org/graphcommerce/commit/dbe10396363313908858de5d681d4e38db94d132) - Redirect URL suffixes to their non suffix counterpart and vice versa ([@paales](https://github.com/paales))
|
|
1033
125
|
|
|
1034
|
-
## 5.1.0-canary.11
|
|
1035
|
-
|
|
1036
|
-
## 5.1.0-canary.10
|
|
1037
|
-
|
|
1038
|
-
## 5.1.0-canary.9
|
|
1039
|
-
|
|
1040
|
-
## 5.1.0-canary.8
|
|
1041
|
-
|
|
1042
|
-
### Patch Changes
|
|
1043
|
-
|
|
1044
|
-
- [#1757](https://github.com/graphcommerce-org/graphcommerce/pull/1757) [`430863c4a`](https://github.com/graphcommerce-org/graphcommerce/commit/430863c4addfb7f6417d7c808ccd5f75319aa2ff) - When a product is disabled it got in a redirect loop because of a Magento bug ([@paales](https://github.com/paales))
|
|
1045
|
-
|
|
1046
|
-
## 5.1.0-canary.7
|
|
1047
|
-
|
|
1048
|
-
## 5.1.0-canary.6
|
|
1049
|
-
|
|
1050
|
-
## 5.1.0-canary.5
|
|
1051
|
-
|
|
1052
|
-
## 5.1.0-canary.4
|
|
1053
|
-
|
|
1054
|
-
### Minor Changes
|
|
1055
|
-
|
|
1056
|
-
- [#1755](https://github.com/graphcommerce-org/graphcommerce/pull/1755) [`472486194`](https://github.com/graphcommerce-org/graphcommerce/commit/472486194f4a085e8a4dc0251b862024fb62ec86) - Magento URL Rewrites support to GraphCommerce compatible URL's. ([@paales](https://github.com/paales))
|
|
1057
|
-
|
|
1058
|
-
- [#1755](https://github.com/graphcommerce-org/graphcommerce/pull/1755) [`472486194`](https://github.com/graphcommerce-org/graphcommerce/commit/472486194f4a085e8a4dc0251b862024fb62ec86) - Magento URL Rewrites redirect 301 and 302 support ([@paales](https://github.com/paales))
|
|
1059
|
-
|
|
1060
|
-
### Patch Changes
|
|
1061
|
-
|
|
1062
|
-
- [#1755](https://github.com/graphcommerce-org/graphcommerce/pull/1755) [`dbe103963`](https://github.com/graphcommerce-org/graphcommerce/commit/dbe10396363313908858de5d681d4e38db94d132) - Redirect URL suffixes to their non suffix counterpart and vice versa ([@paales](https://github.com/paales))
|
|
1063
|
-
|
|
1064
|
-
## 5.1.0-canary.3
|
|
1065
|
-
|
|
1066
|
-
### Patch Changes
|
|
1067
|
-
|
|
1068
|
-
- [#1752](https://github.com/graphcommerce-org/graphcommerce/pull/1752) [`2a6a4d9ec`](https://github.com/graphcommerce-org/graphcommerce/commit/2a6a4d9ecfa1b58a66ba9b9d00016d6feda9aa95) - Updated dependencies to latest versions, except for nextjs; Solve tons of peer dependency issues.
|
|
1069
|
-
|
|
1070
|
-
- Updated the @mui/material package
|
|
1071
|
-
- Removed dependencies on react-hook-form-mui and @playwright/test
|
|
1072
|
-
- Upgraded dependencies including type-fest and graphql-mesh
|
|
1073
|
-
- Solved peer dependency issues ([@paales](https://github.com/paales))
|
|
1074
|
-
|
|
1075
|
-
## 5.1.0-canary.2
|
|
1076
|
-
|
|
1077
|
-
## 5.1.0-canary.1
|
|
1078
|
-
|
|
1079
|
-
## 5.1.0-canary.0
|
|
1080
|
-
|
|
1081
126
|
## 5.0.0
|
|
1082
127
|
|
|
1083
128
|
### Major Changes
|
|
@@ -1096,80 +141,12 @@
|
|
|
1096
141
|
|
|
1097
142
|
- [#1738](https://github.com/graphcommerce-org/graphcommerce/pull/1738) [`52882a63e`](https://github.com/graphcommerce-org/graphcommerce/commit/52882a63e96c0d3ba9641c3714d288fa4f420c82) - Do not forward the Prev prop in plugins ([@paales](https://github.com/paales))
|
|
1098
143
|
|
|
1099
|
-
## 5.0.0-canary.14
|
|
1100
|
-
|
|
1101
|
-
## 5.0.0-canary.13
|
|
1102
|
-
|
|
1103
|
-
### Major Changes
|
|
1104
|
-
|
|
1105
|
-
- [`e4c7fe17e`](https://github.com/graphcommerce-org/graphcommerce/commit/e4c7fe17e413e37362ceae92e67f1b3a5f62d398) - Bump major version of all packages ([@paales](https://github.com/paales))
|
|
1106
|
-
|
|
1107
|
-
## 4.14.0-canary.12
|
|
1108
|
-
|
|
1109
|
-
## 4.14.0-canary.11
|
|
1110
|
-
|
|
1111
|
-
## 4.14.0-canary.10
|
|
1112
|
-
|
|
1113
|
-
## 4.14.0-canary.9
|
|
1114
|
-
|
|
1115
|
-
## 4.14.0-canary.8
|
|
1116
|
-
|
|
1117
|
-
### Patch Changes
|
|
1118
|
-
|
|
1119
|
-
- [`e2683dbfc`](https://github.com/graphcommerce-org/graphcommerce/commit/e2683dbfce440b8e1f745228d8ca4747156c87e6) - GraphQL HttpLink wasn't created, not allow to generate new pages on Vercel. ([@paales](https://github.com/paales))
|
|
1120
|
-
|
|
1121
|
-
## 4.14.0-canary.7
|
|
1122
|
-
|
|
1123
|
-
### Patch Changes
|
|
1124
|
-
|
|
1125
|
-
- [#1738](https://github.com/graphcommerce-org/graphcommerce/pull/1738) [`52882a63e`](https://github.com/graphcommerce-org/graphcommerce/commit/52882a63e96c0d3ba9641c3714d288fa4f420c82) - Do not forward the Prev prop in plugins ([@paales](https://github.com/paales))
|
|
1126
|
-
|
|
1127
|
-
## 4.14.0-canary.6
|
|
1128
|
-
|
|
1129
|
-
## 4.14.0-canary.5
|
|
1130
|
-
|
|
1131
|
-
## 4.14.0-canary.4
|
|
1132
|
-
|
|
1133
|
-
### Minor Changes
|
|
1134
|
-
|
|
1135
|
-
- [#1733](https://github.com/graphcommerce-org/graphcommerce/pull/1733) [`761bd2832`](https://github.com/graphcommerce-org/graphcommerce/commit/761bd2832f115afc8b95bedbf479266309dd5acc) - ApolloLinks, typePolicies and migration scripts are now handled with plugins on the new library component `<GraphQLProvider/>`. Hygraph's, Magento Cart, Customer, Store, Wishlist and Magento GraphQL are all migrated to be using plugins.
|
|
1136
|
-
|
|
1137
|
-
If you are using custom `links` / `policies` / `migrations` you can pass them as props to the `<GraphQLProvider/>` or create your own local plugin. ([@paales](https://github.com/paales))
|
|
1138
|
-
|
|
1139
|
-
## 4.14.0-canary.3
|
|
1140
|
-
|
|
1141
|
-
## 4.14.0-canary.2
|
|
1142
|
-
|
|
1143
|
-
## 4.13.2-canary.1
|
|
1144
|
-
|
|
1145
|
-
## 4.13.2-canary.0
|
|
1146
|
-
|
|
1147
|
-
## 4.13.3
|
|
1148
|
-
|
|
1149
|
-
## 4.13.2
|
|
1150
|
-
|
|
1151
|
-
## 4.13.1
|
|
1152
|
-
|
|
1153
|
-
## 4.13.1-canary.2
|
|
1154
|
-
|
|
1155
|
-
## 4.13.1-canary.1
|
|
1156
|
-
|
|
1157
|
-
## 4.13.1-canary.0
|
|
1158
|
-
|
|
1159
144
|
## 4.13.0
|
|
1160
145
|
|
|
1161
146
|
### Patch Changes
|
|
1162
147
|
|
|
1163
148
|
- [#1702](https://github.com/graphcommerce-org/graphcommerce/pull/1702) [`abb15ef4a`](https://github.com/graphcommerce-org/graphcommerce/commit/abb15ef4a79b12eddb32cc006e5d1d31dd06ac2d) Thanks [@paales](https://github.com/paales)! - Added canary releases to GraphCommerce
|
|
1164
149
|
|
|
1165
|
-
## 4.13.0-canary.1
|
|
1166
|
-
|
|
1167
|
-
### Patch Changes
|
|
1168
|
-
|
|
1169
|
-
- [`abb15ef4a`](https://github.com/graphcommerce-org/graphcommerce/commit/abb15ef4a79b12eddb32cc006e5d1d31dd06ac2d) Thanks [@paales](https://github.com/paales)! - Added canary releases to GraphCommerce
|
|
1170
|
-
|
|
1171
|
-
## 4.13.0-canary.0
|
|
1172
|
-
|
|
1173
150
|
## 4.3.6
|
|
1174
151
|
|
|
1175
152
|
### Patch Changes
|
package/Money.tsx
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useQuery } from '@graphcommerce/graphql'
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { CurrencyFormatProps } from '@graphcommerce/next-ui'
|
|
3
|
+
import { CurrencyFormat } from '@graphcommerce/next-ui'
|
|
4
|
+
import type { MoneyFragment } from './Money.gql'
|
|
4
5
|
import { StoreConfigDocument } from './StoreConfig.gql'
|
|
5
6
|
|
|
6
7
|
type OverridableProps = {
|
package/PageMeta.tsx
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { useQuery } from '@graphcommerce/graphql'
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
PageMetaProps as NextPageMetaProps,
|
|
5
|
-
} from '@graphcommerce/next-ui'
|
|
2
|
+
import type { PageMetaProps as NextPageMetaProps } from '@graphcommerce/next-ui'
|
|
3
|
+
import { PageMeta as NextPageMeta } from '@graphcommerce/next-ui'
|
|
6
4
|
import { StoreConfigDocument } from './StoreConfig.gql'
|
|
7
5
|
|
|
8
6
|
type PageMetaProps = Omit<NextPageMetaProps, 'canonical'> & {
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { useQuery } from '@graphcommerce/graphql'
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
GlobalHeadProps as GlobalHeadPropsBase,
|
|
5
|
-
} from '@graphcommerce/next-ui'
|
|
2
|
+
import type { GlobalHeadProps as GlobalHeadPropsBase } from '@graphcommerce/next-ui'
|
|
3
|
+
import { GlobalHead as GlobalHeadBase } from '@graphcommerce/next-ui'
|
|
6
4
|
import { StoreConfigDocument } from '../../StoreConfig.gql'
|
|
7
5
|
|
|
8
6
|
export type GlobalHeadProps = Omit<GlobalHeadPropsBase, 'name'>
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { useQuery } from '@graphcommerce/graphql'
|
|
2
2
|
import { FlagAvatar, extendableComponent } from '@graphcommerce/next-ui'
|
|
3
|
-
import {
|
|
3
|
+
import type { SxProps, Theme } from '@mui/material'
|
|
4
|
+
import { Button } from '@mui/material'
|
|
4
5
|
import { useRouter } from 'next/router'
|
|
5
6
|
import { StoreConfigDocument } from '../../StoreConfig.gql'
|
|
6
7
|
|
|
7
8
|
export type StoreSwitcherButtonProps = { sx?: SxProps<Theme> }
|
|
8
9
|
|
|
9
|
-
const name = 'StoreSwitcherButton'
|
|
10
|
+
const name = 'StoreSwitcherButton'
|
|
10
11
|
const parts = ['root', 'avatar'] as const
|
|
11
12
|
const { classes } = extendableComponent(name, parts)
|
|
12
13
|
|
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
/* eslint-disable spaced-comment */
|
|
2
2
|
import { extendableComponent, FlagAvatar, NextLink } from '@graphcommerce/next-ui'
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
ListItemText,
|
|
6
|
-
Collapse,
|
|
7
|
-
ListItemAvatar,
|
|
8
|
-
SxProps,
|
|
9
|
-
Theme,
|
|
10
|
-
ListItemButton,
|
|
11
|
-
} from '@mui/material'
|
|
3
|
+
import type { SxProps, Theme } from '@mui/material'
|
|
4
|
+
import { List, ListItemText, Collapse, ListItemAvatar, ListItemButton } from '@mui/material'
|
|
12
5
|
import React from 'react'
|
|
13
6
|
import { localeToStore, storeToLocale } from '../../localeToStore'
|
|
14
|
-
import { StoreSwitcherListQuery } from './StoreSwitcherList.gql'
|
|
7
|
+
import type { StoreSwitcherListQuery } from './StoreSwitcherList.gql'
|
|
15
8
|
|
|
16
9
|
type Store = NonNullable<NonNullable<StoreSwitcherListQuery['availableStores']>[0]>
|
|
17
10
|
|
|
@@ -20,7 +13,7 @@ export type StoreSwitcherListProps = {
|
|
|
20
13
|
sx?: SxProps<Theme>
|
|
21
14
|
} & StoreSwitcherListQuery
|
|
22
15
|
|
|
23
|
-
const name = 'StoreSwitcherList'
|
|
16
|
+
const name = 'StoreSwitcherList'
|
|
24
17
|
const parts = ['list', 'listItem', 'listItemIndented', 'avatar'] as const
|
|
25
18
|
const { classes } = extendableComponent(name, parts)
|
|
26
19
|
|
package/hooks/useFindCountry.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useQuery } from '@graphcommerce/graphql'
|
|
2
|
-
import {
|
|
2
|
+
import type { CountryRegionsQuery } from '../queries/CountryRegions.gql'
|
|
3
|
+
import { CountryRegionsDocument } from '../queries/CountryRegions.gql'
|
|
3
4
|
|
|
4
5
|
export function useFindCountry(
|
|
5
6
|
countryCode?: string | null,
|
package/hooks/useFindRegion.ts
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-store",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "9.0.0-canary.
|
|
5
|
+
"version": "9.0.0-canary.103",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.
|
|
16
|
-
"@graphcommerce/graphql": "^9.0.0-canary.
|
|
17
|
-
"@graphcommerce/graphql-mesh": "^9.0.0-canary.
|
|
18
|
-
"@graphcommerce/image": "^9.0.0-canary.
|
|
19
|
-
"@graphcommerce/next-ui": "^9.0.0-canary.
|
|
20
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.
|
|
21
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.
|
|
15
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.103",
|
|
16
|
+
"@graphcommerce/graphql": "^9.0.0-canary.103",
|
|
17
|
+
"@graphcommerce/graphql-mesh": "^9.0.0-canary.103",
|
|
18
|
+
"@graphcommerce/image": "^9.0.0-canary.103",
|
|
19
|
+
"@graphcommerce/next-ui": "^9.0.0-canary.103",
|
|
20
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.103",
|
|
21
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.103",
|
|
22
22
|
"@lingui/core": "^4.2.1",
|
|
23
23
|
"@lingui/macro": "^4.2.1",
|
|
24
24
|
"@lingui/react": "^4.2.1",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
2
2
|
/* eslint-disable no-empty-pattern */
|
|
3
|
-
import {
|
|
3
|
+
import type { NormalizedCacheObject } from '@graphcommerce/graphql'
|
|
4
|
+
import { ApolloClient, InMemoryCache } from '@graphcommerce/graphql'
|
|
4
5
|
import { test as base } from '@playwright/test'
|
|
5
6
|
import { localeToStore } from '../localeToStore'
|
|
6
7
|
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import { ParsedUrlQuery } from 'querystring'
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
ApolloQueryResult,
|
|
5
|
-
flushMeasurePerf,
|
|
6
|
-
NormalizedCacheObject,
|
|
7
|
-
} from '@graphcommerce/graphql'
|
|
1
|
+
import type { ParsedUrlQuery } from 'querystring'
|
|
2
|
+
import type { ApolloClient, ApolloQueryResult, NormalizedCacheObject } from '@graphcommerce/graphql'
|
|
3
|
+
import { flushMeasurePerf } from '@graphcommerce/graphql'
|
|
8
4
|
import { nonNullable, isTypename, storefrontConfig } from '@graphcommerce/next-ui'
|
|
9
|
-
import { Redirect } from 'next'
|
|
10
|
-
import { StoreConfigQuery } from '../StoreConfig.gql'
|
|
5
|
+
import type { Redirect } from 'next'
|
|
6
|
+
import type { StoreConfigQuery } from '../StoreConfig.gql'
|
|
11
7
|
import { defaultLocale } from '../localeToStore'
|
|
12
|
-
import {
|
|
8
|
+
import type { HandleRedirectQuery } from './HandleRedirect.gql'
|
|
9
|
+
import { HandleRedirectDocument } from './HandleRedirect.gql'
|
|
13
10
|
|
|
14
11
|
export type RedirectOr404Return = Promise<
|
|
15
12
|
| { redirect: Redirect; revalidate?: number | boolean }
|
|
@@ -18,8 +15,7 @@ export type RedirectOr404Return = Promise<
|
|
|
18
15
|
|
|
19
16
|
const notFound = (from: string, reason: string) => {
|
|
20
17
|
flushMeasurePerf()
|
|
21
|
-
|
|
22
|
-
console.log(`[redirectOrNotFound: /${from}] ${reason}`)
|
|
18
|
+
console.info(`[redirectOrNotFound: /${from}] ${reason}`)
|
|
23
19
|
return { notFound: true, revalidate: 60 * 20 } as const
|
|
24
20
|
}
|
|
25
21
|
|
|
@@ -33,7 +29,7 @@ export const redirectTo = (
|
|
|
33
29
|
permanent: boolean,
|
|
34
30
|
locale?: string,
|
|
35
31
|
): { redirect: Redirect; revalidate?: number | boolean } => {
|
|
36
|
-
console.
|
|
32
|
+
console.info(
|
|
37
33
|
`[redirectTo]: ${permanent ? 'Permanent' : 'Temporary'} redirect to ${urlPrefix(locale)}${to}`,
|
|
38
34
|
)
|
|
39
35
|
return {
|
|
@@ -49,8 +45,7 @@ const redirect = (from: string, to: string, permanent: boolean, locale?: string)
|
|
|
49
45
|
|
|
50
46
|
flushMeasurePerf()
|
|
51
47
|
|
|
52
|
-
|
|
53
|
-
console.log(
|
|
48
|
+
console.info(
|
|
54
49
|
`[redirectOrNotFound: ${prefix ? `/${prefix}` : ''}/${from}] ${
|
|
55
50
|
permanent ? 'Permanent' : 'Temporary'
|
|
56
51
|
} redirect to ${destination}`,
|
|
@@ -89,7 +84,7 @@ export async function redirectOrNotFound(
|
|
|
89
84
|
|
|
90
85
|
// Handle the case where we transition from using the default .html suffix, to not using one
|
|
91
86
|
if (from.endsWith('.html')) {
|
|
92
|
-
candidates.add(from.slice(0, -
|
|
87
|
+
candidates.add(from.slice(0, -'.html'.length))
|
|
93
88
|
}
|
|
94
89
|
|
|
95
90
|
const routePromises = [...candidates].filter(Boolean).map(
|
|
@@ -143,20 +138,19 @@ export async function redirectOrNotFound(
|
|
|
143
138
|
|
|
144
139
|
const url_key = routeData.route?.url_key
|
|
145
140
|
if (!routeData.products?.items?.find((i) => i?.url_key === url_key))
|
|
146
|
-
return notFound(from,
|
|
141
|
+
return notFound(from, "Route found, but product isn't returned from products query")
|
|
147
142
|
|
|
148
143
|
return redirect(from, `${productRoute}${url_key}`, true, locale)
|
|
149
144
|
}
|
|
150
145
|
|
|
151
146
|
if (redirectUrl) return redirect(from, `/${redirectUrl}`, permanent, locale)
|
|
152
147
|
|
|
153
|
-
return notFound(from,
|
|
148
|
+
return notFound(from, 'Route found, but no redirect URL')
|
|
154
149
|
} catch (e) {
|
|
155
150
|
if (e instanceof Error) {
|
|
156
151
|
return notFound(from, `Error while redirecting: ${e.message}`)
|
|
157
152
|
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
return notFound(from, `Error while redirecting`)
|
|
153
|
+
console.info(e)
|
|
154
|
+
return notFound(from, 'Error while redirecting')
|
|
161
155
|
}
|
|
162
156
|
}
|