@graphcommerce/magento-store 9.0.0-canary.101 → 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 -1055
- 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,845 +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.99
|
|
8
|
-
|
|
9
|
-
## 9.0.0-canary.98
|
|
10
|
-
|
|
11
|
-
## 9.0.0-canary.97
|
|
12
|
-
|
|
13
|
-
## 9.0.0-canary.96
|
|
14
|
-
|
|
15
|
-
## 9.0.0-canary.95
|
|
16
|
-
|
|
17
|
-
## 9.0.0-canary.94
|
|
18
|
-
|
|
19
|
-
## 9.0.0-canary.93
|
|
20
|
-
|
|
21
|
-
## 9.0.0-canary.92
|
|
22
|
-
|
|
23
|
-
## 9.0.0-canary.91
|
|
24
|
-
|
|
25
|
-
### Patch Changes
|
|
26
|
-
|
|
27
|
-
- [#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))
|
|
28
|
-
|
|
29
|
-
## 9.0.0-canary.90
|
|
30
|
-
|
|
31
|
-
## 9.0.0-canary.89
|
|
32
|
-
|
|
33
|
-
## 9.0.0-canary.88
|
|
34
|
-
|
|
35
|
-
## 9.0.0-canary.87
|
|
36
|
-
|
|
37
|
-
## 9.0.0-canary.86
|
|
38
|
-
|
|
39
|
-
## 9.0.0-canary.85
|
|
40
|
-
|
|
41
|
-
## 9.0.0-canary.84
|
|
42
|
-
|
|
43
|
-
## 9.0.0-canary.83
|
|
44
|
-
|
|
45
|
-
### Patch Changes
|
|
46
|
-
|
|
47
|
-
- [#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))
|
|
48
|
-
|
|
49
|
-
## 9.0.0-canary.82
|
|
50
|
-
|
|
51
|
-
## 9.0.0-canary.81
|
|
52
|
-
|
|
53
|
-
### Minor Changes
|
|
54
|
-
|
|
55
|
-
- [#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))
|
|
56
|
-
|
|
57
|
-
## 9.0.0-canary.80
|
|
58
|
-
|
|
59
|
-
## 9.0.0-canary.79
|
|
60
|
-
|
|
61
|
-
## 9.0.0-canary.78
|
|
62
|
-
|
|
63
|
-
## 9.0.0-canary.77
|
|
64
|
-
|
|
65
|
-
## 9.0.0-canary.76
|
|
66
|
-
|
|
67
|
-
## 9.0.0-canary.75
|
|
68
|
-
|
|
69
|
-
## 9.0.0-canary.74
|
|
70
|
-
|
|
71
|
-
## 9.0.0-canary.73
|
|
72
|
-
|
|
73
|
-
## 9.0.0-canary.72
|
|
74
|
-
|
|
75
|
-
## 9.0.0-canary.71
|
|
76
|
-
|
|
77
|
-
## 9.0.0-canary.70
|
|
78
|
-
|
|
79
|
-
## 9.0.0-canary.69
|
|
80
|
-
|
|
81
|
-
## 9.0.0-canary.68
|
|
82
|
-
|
|
83
|
-
## 9.0.0-canary.67
|
|
84
|
-
|
|
85
|
-
## 9.0.0-canary.66
|
|
86
|
-
|
|
87
|
-
## 9.0.0-canary.65
|
|
88
|
-
|
|
89
|
-
## 9.0.0-canary.64
|
|
90
|
-
|
|
91
|
-
## 9.0.0-canary.63
|
|
92
|
-
|
|
93
|
-
## 9.0.0-canary.62
|
|
94
|
-
|
|
95
|
-
## 9.0.0-canary.61
|
|
96
|
-
|
|
97
|
-
### Minor Changes
|
|
98
|
-
|
|
99
|
-
- [#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))
|
|
100
|
-
|
|
101
|
-
## 9.0.0-canary.60
|
|
102
|
-
|
|
103
|
-
## 9.0.0-canary.59
|
|
104
|
-
|
|
105
|
-
## 9.0.0-canary.58
|
|
106
|
-
|
|
107
|
-
## 9.0.0-canary.57
|
|
108
|
-
|
|
109
|
-
## 9.0.0-canary.56
|
|
110
|
-
|
|
111
|
-
## 9.0.0-canary.55
|
|
112
|
-
|
|
113
|
-
## 9.0.0-canary.54
|
|
114
|
-
|
|
115
|
-
## 8.1.0-canary.53
|
|
116
|
-
|
|
117
|
-
## 8.1.0-canary.52
|
|
118
|
-
|
|
119
|
-
## 8.1.0-canary.51
|
|
120
|
-
|
|
121
|
-
## 8.1.0-canary.50
|
|
122
|
-
|
|
123
|
-
## 8.1.0-canary.49
|
|
124
|
-
|
|
125
|
-
## 8.1.0-canary.48
|
|
126
|
-
|
|
127
|
-
## 8.1.0-canary.47
|
|
128
|
-
|
|
129
|
-
## 8.1.0-canary.46
|
|
130
|
-
|
|
131
|
-
## 8.1.0-canary.45
|
|
132
|
-
|
|
133
|
-
## 8.1.0-canary.44
|
|
134
|
-
|
|
135
|
-
## 8.1.0-canary.43
|
|
136
|
-
|
|
137
|
-
## 8.1.0-canary.42
|
|
138
|
-
|
|
139
|
-
## 8.1.0-canary.41
|
|
140
|
-
|
|
141
|
-
## 8.1.0-canary.40
|
|
142
|
-
|
|
143
|
-
## 8.1.0-canary.39
|
|
144
|
-
|
|
145
|
-
## 8.1.0-canary.38
|
|
146
|
-
|
|
147
|
-
## 8.1.0-canary.37
|
|
148
|
-
|
|
149
|
-
## 8.1.0-canary.36
|
|
150
|
-
|
|
151
|
-
## 8.1.0-canary.35
|
|
152
|
-
|
|
153
|
-
### Minor Changes
|
|
154
|
-
|
|
155
|
-
- [#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))
|
|
156
|
-
|
|
157
|
-
## 8.1.0-canary.34
|
|
158
|
-
|
|
159
|
-
## 8.1.0-canary.33
|
|
160
|
-
|
|
161
|
-
## 8.1.0-canary.32
|
|
162
|
-
|
|
163
|
-
## 8.1.0-canary.31
|
|
164
|
-
|
|
165
|
-
## 8.1.0-canary.30
|
|
166
|
-
|
|
167
|
-
## 8.1.0-canary.29
|
|
168
|
-
|
|
169
|
-
## 8.1.0-canary.28
|
|
170
|
-
|
|
171
|
-
## 8.1.0-canary.27
|
|
172
|
-
|
|
173
|
-
## 8.1.0-canary.26
|
|
174
|
-
|
|
175
|
-
## 8.1.0-canary.25
|
|
176
|
-
|
|
177
|
-
## 8.1.0-canary.24
|
|
178
|
-
|
|
179
|
-
## 8.1.0-canary.23
|
|
180
|
-
|
|
181
|
-
## 8.1.0-canary.22
|
|
182
|
-
|
|
183
|
-
## 8.1.0-canary.21
|
|
184
|
-
|
|
185
|
-
## 8.1.0-canary.20
|
|
186
|
-
|
|
187
|
-
## 8.1.0-canary.19
|
|
188
|
-
|
|
189
|
-
## 8.1.0-canary.18
|
|
190
|
-
|
|
191
|
-
## 8.1.0-canary.17
|
|
192
|
-
|
|
193
|
-
## 8.1.0-canary.16
|
|
194
|
-
|
|
195
|
-
## 8.1.0-canary.15
|
|
196
|
-
|
|
197
|
-
## 8.1.0-canary.14
|
|
198
|
-
|
|
199
|
-
## 8.1.0-canary.13
|
|
200
|
-
|
|
201
|
-
## 8.1.0-canary.12
|
|
202
|
-
|
|
203
|
-
## 8.1.0-canary.11
|
|
204
|
-
|
|
205
|
-
## 8.1.0-canary.10
|
|
206
|
-
|
|
207
|
-
## 8.1.0-canary.9
|
|
208
|
-
|
|
209
|
-
## 8.1.0-canary.8
|
|
210
|
-
|
|
211
|
-
## 8.1.0-canary.7
|
|
212
|
-
|
|
213
|
-
## 8.1.0-canary.6
|
|
214
|
-
|
|
215
|
-
## 8.1.0-canary.5
|
|
216
|
-
|
|
217
|
-
## 8.0.6-canary.4
|
|
218
|
-
|
|
219
|
-
## 8.0.6-canary.3
|
|
220
|
-
|
|
221
|
-
## 8.0.6-canary.2
|
|
222
|
-
|
|
223
|
-
## 8.0.6-canary.1
|
|
224
|
-
|
|
225
|
-
## 8.0.6-canary.0
|
|
226
|
-
|
|
227
|
-
## 8.0.5
|
|
228
|
-
|
|
229
|
-
## 8.0.5-canary.10
|
|
230
|
-
|
|
231
|
-
## 8.0.5-canary.9
|
|
232
|
-
|
|
233
|
-
## 8.0.5-canary.8
|
|
234
|
-
|
|
235
|
-
## 8.0.5-canary.7
|
|
236
|
-
|
|
237
|
-
## 8.0.5-canary.6
|
|
238
|
-
|
|
239
|
-
## 8.0.5-canary.5
|
|
240
|
-
|
|
241
|
-
## 8.0.5-canary.4
|
|
242
|
-
|
|
243
|
-
## 8.0.5-canary.3
|
|
244
|
-
|
|
245
|
-
## 8.0.5-canary.2
|
|
246
|
-
|
|
247
|
-
## 8.0.5-canary.1
|
|
248
|
-
|
|
249
|
-
## 8.0.5-canary.0
|
|
250
|
-
|
|
251
|
-
## 8.0.4
|
|
252
|
-
|
|
253
|
-
## 8.0.4-canary.1
|
|
254
|
-
|
|
255
|
-
## 8.0.4-canary.0
|
|
256
|
-
|
|
257
|
-
## 8.0.3
|
|
258
|
-
|
|
259
|
-
## 8.0.3-canary.6
|
|
260
|
-
|
|
261
|
-
## 8.0.3-canary.5
|
|
262
|
-
|
|
263
|
-
## 8.0.3-canary.4
|
|
264
|
-
|
|
265
|
-
## 8.0.3-canary.3
|
|
266
|
-
|
|
267
|
-
## 8.0.3-canary.2
|
|
268
|
-
|
|
269
|
-
## 8.0.3-canary.1
|
|
270
|
-
|
|
271
|
-
## 8.0.3-canary.0
|
|
272
|
-
|
|
273
|
-
## 8.0.2
|
|
274
|
-
|
|
275
|
-
## 8.0.2-canary.3
|
|
276
|
-
|
|
277
|
-
## 8.0.2-canary.2
|
|
278
|
-
|
|
279
|
-
## 8.0.2-canary.1
|
|
280
|
-
|
|
281
|
-
## 8.0.2-canary.0
|
|
282
|
-
|
|
283
|
-
## 8.0.1
|
|
284
|
-
|
|
285
|
-
### Patch Changes
|
|
286
|
-
|
|
287
|
-
- [#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))
|
|
288
|
-
|
|
289
|
-
## 8.0.1-canary.4
|
|
290
|
-
|
|
291
|
-
## 8.0.1-canary.3
|
|
292
|
-
|
|
293
|
-
## 8.0.1-canary.2
|
|
294
|
-
|
|
295
|
-
## 8.0.1-canary.1
|
|
296
|
-
|
|
297
|
-
## 8.0.1-canary.0
|
|
298
|
-
|
|
299
|
-
### Patch Changes
|
|
300
|
-
|
|
301
|
-
- [#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))
|
|
302
|
-
|
|
303
|
-
## 8.0.0
|
|
304
|
-
|
|
305
|
-
### Patch Changes
|
|
306
|
-
|
|
307
|
-
- [#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))
|
|
308
|
-
|
|
309
|
-
- [#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))
|
|
310
|
-
|
|
311
|
-
## 8.0.0-canary.100
|
|
312
|
-
|
|
313
|
-
## 8.0.0-canary.99
|
|
314
|
-
|
|
315
|
-
## 8.0.0-canary.98
|
|
316
|
-
|
|
317
|
-
## 8.0.0-canary.97
|
|
318
|
-
|
|
319
|
-
## 8.0.0-canary.96
|
|
320
|
-
|
|
321
|
-
## 8.0.0-canary.95
|
|
322
|
-
|
|
323
|
-
## 8.0.0-canary.94
|
|
324
|
-
|
|
325
|
-
## 8.0.0-canary.93
|
|
326
|
-
|
|
327
|
-
## 8.0.0-canary.92
|
|
328
|
-
|
|
329
|
-
## 8.0.0-canary.91
|
|
330
|
-
|
|
331
|
-
## 8.0.0-canary.90
|
|
332
|
-
|
|
333
|
-
## 8.0.0-canary.89
|
|
334
|
-
|
|
335
|
-
## 8.0.0-canary.88
|
|
336
|
-
|
|
337
|
-
## 8.0.0-canary.87
|
|
338
|
-
|
|
339
|
-
## 8.0.0-canary.86
|
|
340
|
-
|
|
341
|
-
## 8.0.0-canary.85
|
|
342
|
-
|
|
343
|
-
## 8.0.0-canary.84
|
|
344
|
-
|
|
345
|
-
## 8.0.0-canary.83
|
|
346
|
-
|
|
347
|
-
## 8.0.0-canary.82
|
|
348
|
-
|
|
349
|
-
## 8.0.0-canary.81
|
|
350
|
-
|
|
351
|
-
### Patch Changes
|
|
352
|
-
|
|
353
|
-
- [#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))
|
|
354
|
-
|
|
355
|
-
## 8.0.0-canary.80
|
|
356
|
-
|
|
357
|
-
## 8.0.0-canary.79
|
|
358
|
-
|
|
359
|
-
## 8.0.0-canary.78
|
|
360
|
-
|
|
361
|
-
## 8.0.0-canary.77
|
|
362
|
-
|
|
363
|
-
## 8.0.0-canary.76
|
|
364
|
-
|
|
365
|
-
## 8.0.0-canary.75
|
|
366
|
-
|
|
367
|
-
## 8.0.0-canary.74
|
|
368
|
-
|
|
369
|
-
## 8.0.0-canary.73
|
|
370
|
-
|
|
371
|
-
## 8.0.0-canary.72
|
|
372
|
-
|
|
373
|
-
## 8.0.0-canary.71
|
|
374
|
-
|
|
375
|
-
## 8.0.0-canary.70
|
|
376
|
-
|
|
377
|
-
## 8.0.0-canary.69
|
|
378
|
-
|
|
379
|
-
## 7.1.0-canary.68
|
|
380
|
-
|
|
381
|
-
## 7.1.0-canary.67
|
|
382
|
-
|
|
383
|
-
## 7.1.0-canary.66
|
|
384
|
-
|
|
385
|
-
## 7.1.0-canary.65
|
|
386
|
-
|
|
387
|
-
## 7.1.0-canary.64
|
|
388
|
-
|
|
389
|
-
## 7.1.0-canary.63
|
|
390
|
-
|
|
391
|
-
## 7.1.0-canary.62
|
|
392
|
-
|
|
393
|
-
## 7.1.0-canary.61
|
|
394
|
-
|
|
395
|
-
## 7.1.0-canary.60
|
|
396
|
-
|
|
397
|
-
## 7.1.0-canary.59
|
|
398
|
-
|
|
399
|
-
## 7.1.0-canary.58
|
|
400
|
-
|
|
401
|
-
## 7.1.0-canary.57
|
|
402
|
-
|
|
403
|
-
## 7.1.0-canary.56
|
|
404
|
-
|
|
405
|
-
## 7.1.0-canary.55
|
|
406
|
-
|
|
407
|
-
## 7.1.0-canary.54
|
|
408
|
-
|
|
409
|
-
## 7.1.0-canary.53
|
|
410
|
-
|
|
411
|
-
## 7.1.0-canary.52
|
|
412
|
-
|
|
413
|
-
## 7.1.0-canary.51
|
|
414
|
-
|
|
415
|
-
## 7.1.0-canary.50
|
|
416
|
-
|
|
417
|
-
## 7.1.0-canary.49
|
|
418
|
-
|
|
419
|
-
## 7.1.0-canary.48
|
|
420
|
-
|
|
421
|
-
## 7.1.0-canary.47
|
|
422
|
-
|
|
423
|
-
## 7.1.0-canary.46
|
|
424
|
-
|
|
425
|
-
## 7.1.0-canary.45
|
|
426
|
-
|
|
427
|
-
## 7.1.0-canary.38
|
|
428
|
-
|
|
429
|
-
## 7.1.0-canary.37
|
|
430
|
-
|
|
431
|
-
## 7.1.0-canary.36
|
|
432
|
-
|
|
433
|
-
## 7.1.0-canary.35
|
|
434
|
-
|
|
435
|
-
## 7.1.0-canary.34
|
|
436
|
-
|
|
437
|
-
## 7.1.0-canary.33
|
|
438
|
-
|
|
439
|
-
## 7.1.0-canary.32
|
|
440
|
-
|
|
441
|
-
## 7.1.0-canary.31
|
|
442
|
-
|
|
443
|
-
## 7.1.0-canary.30
|
|
444
|
-
|
|
445
|
-
## 7.1.0-canary.29
|
|
446
|
-
|
|
447
|
-
## 7.1.0-canary.28
|
|
448
|
-
|
|
449
|
-
## 7.1.0-canary.27
|
|
450
|
-
|
|
451
|
-
## 7.1.0-canary.26
|
|
452
|
-
|
|
453
|
-
## 7.1.0-canary.25
|
|
454
|
-
|
|
455
|
-
## 7.1.0-canary.24
|
|
456
|
-
|
|
457
|
-
## 7.1.0-canary.23
|
|
458
|
-
|
|
459
|
-
## 7.1.0-canary.22
|
|
460
|
-
|
|
461
|
-
## 7.1.0-canary.21
|
|
462
|
-
|
|
463
|
-
## 7.1.0-canary.20
|
|
464
|
-
|
|
465
|
-
## 7.1.0-canary.19
|
|
466
|
-
|
|
467
|
-
## 7.1.0-canary.18
|
|
468
|
-
|
|
469
|
-
## 7.1.0-canary.17
|
|
470
|
-
|
|
471
|
-
## 7.1.0-canary.16
|
|
472
|
-
|
|
473
|
-
## 7.1.0-canary.15
|
|
474
|
-
|
|
475
|
-
## 7.1.0-canary.14
|
|
476
|
-
|
|
477
|
-
## 7.1.0-canary.13
|
|
478
|
-
|
|
479
|
-
## 7.1.0-canary.12
|
|
480
|
-
|
|
481
|
-
## 7.1.0-canary.11
|
|
482
|
-
|
|
483
|
-
## 7.1.0-canary.10
|
|
484
|
-
|
|
485
|
-
## 7.1.0-canary.9
|
|
486
|
-
|
|
487
|
-
## 7.1.0-canary.8
|
|
488
|
-
|
|
489
|
-
## 7.0.2-canary.7
|
|
490
|
-
|
|
491
|
-
## 7.0.2-canary.6
|
|
492
|
-
|
|
493
|
-
### Patch Changes
|
|
494
|
-
|
|
495
|
-
- [#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))
|
|
496
|
-
|
|
497
|
-
## 7.0.2-canary.5
|
|
498
|
-
|
|
499
|
-
## 7.0.1
|
|
500
|
-
|
|
501
|
-
## 7.0.1-canary.15
|
|
502
|
-
|
|
503
|
-
## 7.0.1-canary.14
|
|
504
|
-
|
|
505
|
-
## 7.0.1-canary.13
|
|
506
|
-
|
|
507
|
-
## 7.0.1-canary.12
|
|
508
|
-
|
|
509
|
-
## 7.0.1-canary.11
|
|
510
|
-
|
|
511
|
-
## 7.0.1-canary.10
|
|
512
|
-
|
|
513
|
-
## 7.0.1-canary.9
|
|
514
|
-
|
|
515
|
-
## 7.0.1-canary.8
|
|
516
|
-
|
|
517
|
-
## 7.0.1-canary.7
|
|
518
|
-
|
|
519
|
-
## 7.0.1-canary.6
|
|
520
|
-
|
|
521
|
-
## 7.0.1-canary.5
|
|
522
|
-
|
|
523
|
-
## 7.0.1-canary.4
|
|
524
|
-
|
|
525
|
-
## 7.0.1-canary.3
|
|
526
|
-
|
|
527
|
-
## 7.0.1-canary.2
|
|
528
|
-
|
|
529
|
-
## 7.0.1-canary.1
|
|
530
|
-
|
|
531
|
-
## 7.0.1-canary.0
|
|
532
|
-
|
|
533
|
-
## 7.0.0
|
|
534
|
-
|
|
535
|
-
### Major Changes
|
|
536
|
-
|
|
537
|
-
- [`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))
|
|
538
|
-
|
|
539
|
-
### Minor Changes
|
|
540
|
-
|
|
541
|
-
- [#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))
|
|
542
|
-
|
|
543
|
-
### Patch Changes
|
|
544
|
-
|
|
545
|
-
- [#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))
|
|
546
|
-
|
|
547
|
-
- [#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))
|
|
548
|
-
|
|
549
|
-
- [#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))
|
|
550
|
-
|
|
551
|
-
## 6.2.0-canary.98
|
|
552
|
-
|
|
553
|
-
## 6.2.0-canary.97
|
|
554
|
-
|
|
555
|
-
## 6.2.0-canary.96
|
|
556
|
-
|
|
557
|
-
## 6.2.0-canary.95
|
|
558
|
-
|
|
559
|
-
## 6.2.0-canary.94
|
|
560
|
-
|
|
561
|
-
## 6.2.0-canary.93
|
|
562
|
-
|
|
563
|
-
## 6.2.0-canary.92
|
|
564
|
-
|
|
565
|
-
## 6.2.0-canary.91
|
|
566
|
-
|
|
567
|
-
## 6.2.0-canary.90
|
|
568
|
-
|
|
569
|
-
## 6.2.0-canary.89
|
|
570
|
-
|
|
571
|
-
## 6.2.0-canary.88
|
|
572
|
-
|
|
573
|
-
## 6.2.0-canary.87
|
|
574
|
-
|
|
575
|
-
## 6.2.0-canary.86
|
|
576
|
-
|
|
577
|
-
## 6.2.0-canary.85
|
|
578
|
-
|
|
579
|
-
## 6.2.0-canary.84
|
|
580
|
-
|
|
581
|
-
## 6.2.0-canary.83
|
|
582
|
-
|
|
583
|
-
## 6.2.0-canary.82
|
|
584
|
-
|
|
585
|
-
## 6.2.0-canary.81
|
|
586
|
-
|
|
587
|
-
## 6.2.0-canary.80
|
|
588
|
-
|
|
589
|
-
## 6.2.0-canary.79
|
|
590
|
-
|
|
591
|
-
## 6.2.0-canary.78
|
|
592
|
-
|
|
593
|
-
## 6.2.0-canary.77
|
|
594
|
-
|
|
595
|
-
## 6.2.0-canary.76
|
|
596
|
-
|
|
597
|
-
## 6.2.0-canary.75
|
|
598
|
-
|
|
599
|
-
## 6.2.0-canary.74
|
|
600
|
-
|
|
601
|
-
## 6.2.0-canary.73
|
|
602
|
-
|
|
603
|
-
## 6.2.0-canary.72
|
|
604
|
-
|
|
605
|
-
## 6.2.0-canary.71
|
|
606
|
-
|
|
607
|
-
## 6.2.0-canary.70
|
|
608
|
-
|
|
609
|
-
## 6.2.0-canary.69
|
|
610
|
-
|
|
611
|
-
## 6.2.0-canary.68
|
|
612
|
-
|
|
613
|
-
## 6.2.0-canary.67
|
|
614
|
-
|
|
615
|
-
## 6.2.0-canary.66
|
|
616
|
-
|
|
617
|
-
## 6.2.0-canary.65
|
|
618
|
-
|
|
619
|
-
## 6.2.0-canary.64
|
|
620
|
-
|
|
621
|
-
## 6.2.0-canary.63
|
|
622
|
-
|
|
623
|
-
## 6.2.0-canary.62
|
|
624
|
-
|
|
625
|
-
## 6.2.0-canary.61
|
|
626
|
-
|
|
627
|
-
## 6.2.0-canary.60
|
|
628
|
-
|
|
629
|
-
## 6.2.0-canary.59
|
|
630
|
-
|
|
631
|
-
## 6.2.0-canary.58
|
|
632
|
-
|
|
633
|
-
## 6.2.0-canary.57
|
|
634
|
-
|
|
635
|
-
## 6.2.0-canary.56
|
|
636
|
-
|
|
637
|
-
## 6.2.0-canary.55
|
|
638
|
-
|
|
639
|
-
### Patch Changes
|
|
640
|
-
|
|
641
|
-
- [#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))
|
|
642
|
-
|
|
643
|
-
## 6.2.0-canary.54
|
|
644
|
-
|
|
645
|
-
## 6.2.0-canary.53
|
|
646
|
-
|
|
647
|
-
## 6.2.0-canary.52
|
|
5
|
+
## 9.0.0-canary.91
|
|
648
6
|
|
|
649
|
-
|
|
7
|
+
### Patch Changes
|
|
650
8
|
|
|
651
|
-
|
|
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))
|
|
652
10
|
|
|
653
|
-
|
|
11
|
+
## 9.0.0-canary.83
|
|
654
12
|
|
|
655
|
-
|
|
13
|
+
### Patch Changes
|
|
656
14
|
|
|
657
|
-
|
|
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))
|
|
658
16
|
|
|
659
|
-
##
|
|
17
|
+
## 9.0.0-canary.81
|
|
660
18
|
|
|
661
19
|
### Minor Changes
|
|
662
20
|
|
|
663
|
-
- [#
|
|
664
|
-
|
|
665
|
-
## 6.2.0-canary.47
|
|
666
|
-
|
|
667
|
-
## 6.2.0-canary.46
|
|
668
|
-
|
|
669
|
-
## 6.2.0-canary.45
|
|
670
|
-
|
|
671
|
-
## 6.2.0-canary.44
|
|
672
|
-
|
|
673
|
-
## 6.2.0-canary.43
|
|
674
|
-
|
|
675
|
-
## 6.2.0-canary.42
|
|
676
|
-
|
|
677
|
-
## 6.2.0-canary.41
|
|
678
|
-
|
|
679
|
-
## 6.2.0-canary.40
|
|
680
|
-
|
|
681
|
-
## 6.2.0-canary.39
|
|
682
|
-
|
|
683
|
-
## 6.2.0-canary.38
|
|
684
|
-
|
|
685
|
-
## 6.2.0-canary.37
|
|
686
|
-
|
|
687
|
-
## 6.2.0-canary.36
|
|
688
|
-
|
|
689
|
-
## 6.2.0-canary.35
|
|
690
|
-
|
|
691
|
-
## 6.2.0-canary.34
|
|
692
|
-
|
|
693
|
-
## 6.2.0-canary.33
|
|
694
|
-
|
|
695
|
-
## 6.2.0-canary.32
|
|
696
|
-
|
|
697
|
-
## 6.2.0-canary.31
|
|
698
|
-
|
|
699
|
-
## 6.2.0-canary.30
|
|
700
|
-
|
|
701
|
-
## 6.2.0-canary.29
|
|
702
|
-
|
|
703
|
-
## 6.2.0-canary.28
|
|
704
|
-
|
|
705
|
-
## 6.2.0-canary.27
|
|
706
|
-
|
|
707
|
-
## 6.2.0-canary.26
|
|
708
|
-
|
|
709
|
-
## 6.2.0-canary.25
|
|
710
|
-
|
|
711
|
-
## 6.2.0-canary.24
|
|
712
|
-
|
|
713
|
-
## 6.2.0-canary.23
|
|
714
|
-
|
|
715
|
-
## 6.2.0-canary.22
|
|
716
|
-
|
|
717
|
-
## 6.2.0-canary.21
|
|
718
|
-
|
|
719
|
-
## 6.2.0-canary.20
|
|
720
|
-
|
|
721
|
-
## 6.2.0-canary.19
|
|
722
|
-
|
|
723
|
-
## 6.2.0-canary.18
|
|
724
|
-
|
|
725
|
-
## 6.2.0-canary.17
|
|
726
|
-
|
|
727
|
-
## 6.2.0-canary.16
|
|
728
|
-
|
|
729
|
-
## 6.2.0-canary.15
|
|
730
|
-
|
|
731
|
-
## 6.2.0-canary.14
|
|
732
|
-
|
|
733
|
-
## 6.2.0-canary.13
|
|
734
|
-
|
|
735
|
-
## 6.2.0-canary.12
|
|
736
|
-
|
|
737
|
-
## 6.2.0-canary.11
|
|
738
|
-
|
|
739
|
-
## 6.2.0-canary.10
|
|
740
|
-
|
|
741
|
-
## 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))
|
|
742
22
|
|
|
743
|
-
##
|
|
23
|
+
## 9.0.0-canary.61
|
|
744
24
|
|
|
745
|
-
|
|
25
|
+
### Minor Changes
|
|
746
26
|
|
|
747
|
-
|
|
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))
|
|
748
28
|
|
|
749
|
-
|
|
29
|
+
## 8.1.0-canary.35
|
|
750
30
|
|
|
751
|
-
|
|
31
|
+
### Minor Changes
|
|
752
32
|
|
|
753
|
-
|
|
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))
|
|
754
34
|
|
|
755
|
-
##
|
|
35
|
+
## 8.0.1
|
|
756
36
|
|
|
757
37
|
### Patch Changes
|
|
758
38
|
|
|
759
|
-
- [#
|
|
760
|
-
|
|
761
|
-
## 6.1.1-canary.3
|
|
762
|
-
|
|
763
|
-
## 6.1.1-canary.2
|
|
764
|
-
|
|
765
|
-
## 6.1.1-canary.1
|
|
766
|
-
|
|
767
|
-
## 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))
|
|
768
40
|
|
|
769
|
-
##
|
|
41
|
+
## 8.0.0
|
|
770
42
|
|
|
771
43
|
### Patch Changes
|
|
772
44
|
|
|
773
|
-
- [#
|
|
774
|
-
|
|
775
|
-
## 6.0.2-canary.22
|
|
776
|
-
|
|
777
|
-
## 6.0.2-canary.21
|
|
778
|
-
|
|
779
|
-
## 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))
|
|
780
46
|
|
|
781
|
-
|
|
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))
|
|
782
48
|
|
|
783
|
-
##
|
|
49
|
+
## 7.0.0
|
|
784
50
|
|
|
785
|
-
|
|
51
|
+
### Major Changes
|
|
786
52
|
|
|
787
|
-
|
|
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))
|
|
788
54
|
|
|
789
|
-
|
|
55
|
+
### Minor Changes
|
|
790
56
|
|
|
791
|
-
|
|
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))
|
|
792
58
|
|
|
793
|
-
|
|
59
|
+
### Patch Changes
|
|
794
60
|
|
|
795
|
-
|
|
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))
|
|
796
62
|
|
|
797
|
-
|
|
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))
|
|
798
64
|
|
|
799
|
-
|
|
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))
|
|
800
66
|
|
|
801
|
-
## 6.0
|
|
67
|
+
## 6.1.0
|
|
802
68
|
|
|
803
69
|
### Patch Changes
|
|
804
70
|
|
|
805
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))
|
|
806
72
|
|
|
807
|
-
## 6.0.2-canary.8
|
|
808
|
-
|
|
809
|
-
## 6.0.2-canary.7
|
|
810
|
-
|
|
811
|
-
## 6.0.2-canary.6
|
|
812
|
-
|
|
813
|
-
## 6.0.2-canary.5
|
|
814
|
-
|
|
815
|
-
## 6.0.2-canary.4
|
|
816
|
-
|
|
817
|
-
## 6.0.2-canary.3
|
|
818
|
-
|
|
819
|
-
## 6.0.2-canary.2
|
|
820
|
-
|
|
821
|
-
## 6.0.2-canary.1
|
|
822
|
-
|
|
823
|
-
## 6.0.2-canary.0
|
|
824
|
-
|
|
825
|
-
## 6.0.1
|
|
826
|
-
|
|
827
|
-
## 6.0.1-canary.7
|
|
828
|
-
|
|
829
|
-
## 6.0.1-canary.6
|
|
830
|
-
|
|
831
|
-
## 6.0.1-canary.5
|
|
832
|
-
|
|
833
|
-
## 6.0.1-canary.4
|
|
834
|
-
|
|
835
|
-
## 6.0.1-canary.3
|
|
836
|
-
|
|
837
|
-
## 6.0.1-canary.2
|
|
838
|
-
|
|
839
|
-
## 6.0.1-canary.1
|
|
840
|
-
|
|
841
|
-
## 6.0.1-canary.0
|
|
842
|
-
|
|
843
73
|
## 6.0.0
|
|
844
74
|
|
|
845
75
|
### Minor Changes
|
|
@@ -864,136 +94,6 @@
|
|
|
864
94
|
|
|
865
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))
|
|
866
96
|
|
|
867
|
-
## 6.0.0-canary.54
|
|
868
|
-
|
|
869
|
-
## 6.0.0-canary.53
|
|
870
|
-
|
|
871
|
-
## 6.0.0-canary.52
|
|
872
|
-
|
|
873
|
-
## 6.0.0-canary.51
|
|
874
|
-
|
|
875
|
-
## 6.0.0-canary.50
|
|
876
|
-
|
|
877
|
-
## 6.0.0-canary.49
|
|
878
|
-
|
|
879
|
-
## 6.0.0-canary.48
|
|
880
|
-
|
|
881
|
-
## 6.0.0-canary.47
|
|
882
|
-
|
|
883
|
-
## 6.0.0-canary.46
|
|
884
|
-
|
|
885
|
-
## 6.0.0-canary.45
|
|
886
|
-
|
|
887
|
-
## 6.0.0-canary.44
|
|
888
|
-
|
|
889
|
-
### Patch Changes
|
|
890
|
-
|
|
891
|
-
- [#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))
|
|
892
|
-
|
|
893
|
-
## 6.0.0-canary.43
|
|
894
|
-
|
|
895
|
-
## 6.0.0-canary.42
|
|
896
|
-
|
|
897
|
-
## 6.0.0-canary.41
|
|
898
|
-
|
|
899
|
-
## 6.0.0-canary.40
|
|
900
|
-
|
|
901
|
-
## 6.0.0-canary.39
|
|
902
|
-
|
|
903
|
-
## 6.0.0-canary.38
|
|
904
|
-
|
|
905
|
-
## 6.0.0-canary.37
|
|
906
|
-
|
|
907
|
-
## 6.0.0-canary.36
|
|
908
|
-
|
|
909
|
-
## 6.0.0-canary.35
|
|
910
|
-
|
|
911
|
-
### Minor Changes
|
|
912
|
-
|
|
913
|
-
- [#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))
|
|
914
|
-
|
|
915
|
-
## 6.0.0-canary.34
|
|
916
|
-
|
|
917
|
-
## 6.0.0-canary.33
|
|
918
|
-
|
|
919
|
-
## 6.0.0-canary.32
|
|
920
|
-
|
|
921
|
-
## 6.0.0-canary.31
|
|
922
|
-
|
|
923
|
-
## 6.0.0-canary.30
|
|
924
|
-
|
|
925
|
-
## 6.0.0-canary.29
|
|
926
|
-
|
|
927
|
-
### Minor Changes
|
|
928
|
-
|
|
929
|
-
- [#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))
|
|
930
|
-
|
|
931
|
-
## 6.0.0-canary.28
|
|
932
|
-
|
|
933
|
-
## 6.0.0-canary.27
|
|
934
|
-
|
|
935
|
-
## 6.0.0-canary.26
|
|
936
|
-
|
|
937
|
-
## 6.0.0-canary.25
|
|
938
|
-
|
|
939
|
-
## 6.0.0-canary.24
|
|
940
|
-
|
|
941
|
-
## 6.0.0-canary.23
|
|
942
|
-
|
|
943
|
-
## 6.0.0-canary.22
|
|
944
|
-
|
|
945
|
-
## 6.0.0-canary.21
|
|
946
|
-
|
|
947
|
-
## 6.0.0-canary.20
|
|
948
|
-
|
|
949
|
-
## 5.2.0-canary.19
|
|
950
|
-
|
|
951
|
-
## 5.2.0-canary.18
|
|
952
|
-
|
|
953
|
-
### Patch Changes
|
|
954
|
-
|
|
955
|
-
- [#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))
|
|
956
|
-
|
|
957
|
-
## 5.2.0-canary.17
|
|
958
|
-
|
|
959
|
-
## 5.2.0-canary.16
|
|
960
|
-
|
|
961
|
-
## 5.2.0-canary.15
|
|
962
|
-
|
|
963
|
-
## 5.2.0-canary.14
|
|
964
|
-
|
|
965
|
-
## 5.2.0-canary.13
|
|
966
|
-
|
|
967
|
-
## 5.2.0-canary.12
|
|
968
|
-
|
|
969
|
-
## 5.2.0-canary.11
|
|
970
|
-
|
|
971
|
-
## 5.2.0-canary.10
|
|
972
|
-
|
|
973
|
-
## 5.2.0-canary.9
|
|
974
|
-
|
|
975
|
-
## 5.2.0-canary.8
|
|
976
|
-
|
|
977
|
-
## 5.2.0-canary.7
|
|
978
|
-
|
|
979
|
-
### Patch Changes
|
|
980
|
-
|
|
981
|
-
- [#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))
|
|
982
|
-
|
|
983
|
-
## 5.2.0-canary.6
|
|
984
|
-
|
|
985
|
-
## 5.2.0-canary.5
|
|
986
|
-
|
|
987
|
-
## 5.2.0-canary.4
|
|
988
|
-
|
|
989
|
-
## 5.2.0-canary.3
|
|
990
|
-
|
|
991
|
-
## 5.2.0-canary.2
|
|
992
|
-
|
|
993
|
-
## 5.2.0-canary.1
|
|
994
|
-
|
|
995
|
-
## 5.2.0-canary.0
|
|
996
|
-
|
|
997
97
|
## 5.1.1
|
|
998
98
|
|
|
999
99
|
### Patch Changes
|
|
@@ -1002,16 +102,6 @@
|
|
|
1002
102
|
|
|
1003
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))
|
|
1004
104
|
|
|
1005
|
-
## 5.1.1-canary.1
|
|
1006
|
-
|
|
1007
|
-
## 5.1.1-canary.0
|
|
1008
|
-
|
|
1009
|
-
### Patch Changes
|
|
1010
|
-
|
|
1011
|
-
- [#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))
|
|
1012
|
-
|
|
1013
|
-
- [#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))
|
|
1014
|
-
|
|
1015
105
|
## 5.1.0
|
|
1016
106
|
|
|
1017
107
|
### Minor Changes
|
|
@@ -1033,53 +123,6 @@
|
|
|
1033
123
|
|
|
1034
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))
|
|
1035
125
|
|
|
1036
|
-
## 5.1.0-canary.11
|
|
1037
|
-
|
|
1038
|
-
## 5.1.0-canary.10
|
|
1039
|
-
|
|
1040
|
-
## 5.1.0-canary.9
|
|
1041
|
-
|
|
1042
|
-
## 5.1.0-canary.8
|
|
1043
|
-
|
|
1044
|
-
### Patch Changes
|
|
1045
|
-
|
|
1046
|
-
- [#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))
|
|
1047
|
-
|
|
1048
|
-
## 5.1.0-canary.7
|
|
1049
|
-
|
|
1050
|
-
## 5.1.0-canary.6
|
|
1051
|
-
|
|
1052
|
-
## 5.1.0-canary.5
|
|
1053
|
-
|
|
1054
|
-
## 5.1.0-canary.4
|
|
1055
|
-
|
|
1056
|
-
### Minor Changes
|
|
1057
|
-
|
|
1058
|
-
- [#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))
|
|
1059
|
-
|
|
1060
|
-
- [#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))
|
|
1061
|
-
|
|
1062
|
-
### Patch Changes
|
|
1063
|
-
|
|
1064
|
-
- [#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))
|
|
1065
|
-
|
|
1066
|
-
## 5.1.0-canary.3
|
|
1067
|
-
|
|
1068
|
-
### Patch Changes
|
|
1069
|
-
|
|
1070
|
-
- [#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.
|
|
1071
|
-
|
|
1072
|
-
- Updated the @mui/material package
|
|
1073
|
-
- Removed dependencies on react-hook-form-mui and @playwright/test
|
|
1074
|
-
- Upgraded dependencies including type-fest and graphql-mesh
|
|
1075
|
-
- Solved peer dependency issues ([@paales](https://github.com/paales))
|
|
1076
|
-
|
|
1077
|
-
## 5.1.0-canary.2
|
|
1078
|
-
|
|
1079
|
-
## 5.1.0-canary.1
|
|
1080
|
-
|
|
1081
|
-
## 5.1.0-canary.0
|
|
1082
|
-
|
|
1083
126
|
## 5.0.0
|
|
1084
127
|
|
|
1085
128
|
### Major Changes
|
|
@@ -1098,80 +141,12 @@
|
|
|
1098
141
|
|
|
1099
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))
|
|
1100
143
|
|
|
1101
|
-
## 5.0.0-canary.14
|
|
1102
|
-
|
|
1103
|
-
## 5.0.0-canary.13
|
|
1104
|
-
|
|
1105
|
-
### Major Changes
|
|
1106
|
-
|
|
1107
|
-
- [`e4c7fe17e`](https://github.com/graphcommerce-org/graphcommerce/commit/e4c7fe17e413e37362ceae92e67f1b3a5f62d398) - Bump major version of all packages ([@paales](https://github.com/paales))
|
|
1108
|
-
|
|
1109
|
-
## 4.14.0-canary.12
|
|
1110
|
-
|
|
1111
|
-
## 4.14.0-canary.11
|
|
1112
|
-
|
|
1113
|
-
## 4.14.0-canary.10
|
|
1114
|
-
|
|
1115
|
-
## 4.14.0-canary.9
|
|
1116
|
-
|
|
1117
|
-
## 4.14.0-canary.8
|
|
1118
|
-
|
|
1119
|
-
### Patch Changes
|
|
1120
|
-
|
|
1121
|
-
- [`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))
|
|
1122
|
-
|
|
1123
|
-
## 4.14.0-canary.7
|
|
1124
|
-
|
|
1125
|
-
### Patch Changes
|
|
1126
|
-
|
|
1127
|
-
- [#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))
|
|
1128
|
-
|
|
1129
|
-
## 4.14.0-canary.6
|
|
1130
|
-
|
|
1131
|
-
## 4.14.0-canary.5
|
|
1132
|
-
|
|
1133
|
-
## 4.14.0-canary.4
|
|
1134
|
-
|
|
1135
|
-
### Minor Changes
|
|
1136
|
-
|
|
1137
|
-
- [#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.
|
|
1138
|
-
|
|
1139
|
-
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))
|
|
1140
|
-
|
|
1141
|
-
## 4.14.0-canary.3
|
|
1142
|
-
|
|
1143
|
-
## 4.14.0-canary.2
|
|
1144
|
-
|
|
1145
|
-
## 4.13.2-canary.1
|
|
1146
|
-
|
|
1147
|
-
## 4.13.2-canary.0
|
|
1148
|
-
|
|
1149
|
-
## 4.13.3
|
|
1150
|
-
|
|
1151
|
-
## 4.13.2
|
|
1152
|
-
|
|
1153
|
-
## 4.13.1
|
|
1154
|
-
|
|
1155
|
-
## 4.13.1-canary.2
|
|
1156
|
-
|
|
1157
|
-
## 4.13.1-canary.1
|
|
1158
|
-
|
|
1159
|
-
## 4.13.1-canary.0
|
|
1160
|
-
|
|
1161
144
|
## 4.13.0
|
|
1162
145
|
|
|
1163
146
|
### Patch Changes
|
|
1164
147
|
|
|
1165
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
|
|
1166
149
|
|
|
1167
|
-
## 4.13.0-canary.1
|
|
1168
|
-
|
|
1169
|
-
### Patch Changes
|
|
1170
|
-
|
|
1171
|
-
- [`abb15ef4a`](https://github.com/graphcommerce-org/graphcommerce/commit/abb15ef4a79b12eddb32cc006e5d1d31dd06ac2d) Thanks [@paales](https://github.com/paales)! - Added canary releases to GraphCommerce
|
|
1172
|
-
|
|
1173
|
-
## 4.13.0-canary.0
|
|
1174
|
-
|
|
1175
150
|
## 4.3.6
|
|
1176
151
|
|
|
1177
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
|
}
|