@graphcommerce/docs 9.0.0-canary.55 → 9.0.0-canary.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 9.0.0-canary.57
|
|
4
|
+
|
|
5
|
+
## 9.0.0-canary.56
|
|
6
|
+
|
|
7
|
+
### Patch Changes
|
|
8
|
+
|
|
9
|
+
- [#2329](https://github.com/graphcommerce-org/graphcommerce/pull/2329) [`6301fe3`](https://github.com/graphcommerce-org/graphcommerce/commit/6301fe33e73be1a151d0f8290e83418b4b87a738) - Document patch custom_attributesV2 for null attribute values issue ([@SimonPrins](https://github.com/SimonPrins))
|
|
10
|
+
|
|
3
11
|
## 9.0.0-canary.55
|
|
4
12
|
|
|
5
13
|
## 9.0.0-canary.54
|
|
@@ -32,9 +40,7 @@
|
|
|
32
40
|
|
|
33
41
|
### Patch Changes
|
|
34
42
|
|
|
35
|
-
- [#2242](https://github.com/graphcommerce-org/graphcommerce/pull/2242) [`a4cce76`](https://github.com/graphcommerce-org/graphcommerce/commit/a4cce76ca37af2bec604e953ada4bb11bd91f55d) - Add option to show an extended version of the pagination component. Configurable via the "productListPaginationVariant" key in your graphcommerce.config.js
|
|
36
|
-
COMPACT means: "< Page X of Y >"
|
|
37
|
-
EXTENDED means: "< 1 2 ... [5] ... 10 11 >" ([@FrankHarland](https://github.com/FrankHarland))
|
|
43
|
+
- [#2242](https://github.com/graphcommerce-org/graphcommerce/pull/2242) [`a4cce76`](https://github.com/graphcommerce-org/graphcommerce/commit/a4cce76ca37af2bec604e953ada4bb11bd91f55d) - Add option to show an extended version of the pagination component. Configurable via the "productListPaginationVariant" key in your graphcommerce.config.js COMPACT means: "< Page X of Y >" EXTENDED means: "< 1 2 ... [5] ... 10 11 >" ([@FrankHarland](https://github.com/FrankHarland))
|
|
38
44
|
|
|
39
45
|
## 8.1.0-canary.40
|
|
40
46
|
|
|
@@ -102,15 +108,13 @@
|
|
|
102
108
|
|
|
103
109
|
### Patch Changes
|
|
104
110
|
|
|
105
|
-
- [#2223](https://github.com/graphcommerce-org/graphcommerce/pull/2223) [`7652234`](https://github.com/graphcommerce-org/graphcommerce/commit/7652234e222c3f4d8de3817fe907b5b6925a5493) - Replaced next-sitemap with page router based robots.txt & sitemaps
|
|
106
|
-
([@bramvanderholst](https://github.com/bramvanderholst))
|
|
111
|
+
- [#2223](https://github.com/graphcommerce-org/graphcommerce/pull/2223) [`7652234`](https://github.com/graphcommerce-org/graphcommerce/commit/7652234e222c3f4d8de3817fe907b5b6925a5493) - Replaced next-sitemap with page router based robots.txt & sitemaps ([@bramvanderholst](https://github.com/bramvanderholst))
|
|
107
112
|
|
|
108
113
|
## 8.1.0-canary.8
|
|
109
114
|
|
|
110
115
|
### Patch Changes
|
|
111
116
|
|
|
112
|
-
- [#2247](https://github.com/graphcommerce-org/graphcommerce/pull/2247) [`444e446`](https://github.com/graphcommerce-org/graphcommerce/commit/444e446a218cc9da3defb940a6d5cce0229ff845) - Added clear upgrade instructions for linguiLocale
|
|
113
|
-
([@paales](https://github.com/paales))
|
|
117
|
+
- [#2247](https://github.com/graphcommerce-org/graphcommerce/pull/2247) [`444e446`](https://github.com/graphcommerce-org/graphcommerce/commit/444e446a218cc9da3defb940a6d5cce0229ff845) - Added clear upgrade instructions for linguiLocale ([@paales](https://github.com/paales))
|
|
114
118
|
|
|
115
119
|
## 8.1.0-canary.7
|
|
116
120
|
|
|
@@ -118,8 +122,7 @@
|
|
|
118
122
|
|
|
119
123
|
### Patch Changes
|
|
120
124
|
|
|
121
|
-
- [#1984](https://github.com/graphcommerce-org/graphcommerce/pull/1984) [`e05534f`](https://github.com/graphcommerce-org/graphcommerce/commit/e05534fff4990fd584fe401b55b6d9a33934e048) - Added docs about caching
|
|
122
|
-
([@paales](https://github.com/paales))
|
|
125
|
+
- [#1984](https://github.com/graphcommerce-org/graphcommerce/pull/1984) [`e05534f`](https://github.com/graphcommerce-org/graphcommerce/commit/e05534fff4990fd584fe401b55b6d9a33934e048) - Added docs about caching ([@paales](https://github.com/paales))
|
|
123
126
|
|
|
124
127
|
## 8.1.0-canary.5
|
|
125
128
|
|
|
@@ -135,8 +138,7 @@
|
|
|
135
138
|
|
|
136
139
|
### Patch Changes
|
|
137
140
|
|
|
138
|
-
- [#2196](https://github.com/graphcommerce-org/graphcommerce/pull/2196) [`84c50e4`](https://github.com/graphcommerce-org/graphcommerce/commit/84c50e49a1a7f154d4a8f4045c37e773e20283ad) - Allow Lingui to use linguiLocale with country identifiers like `en-us`, it would always load `en` in this case. Introced a new `useLocale` hook to use the correct locale string to use in Intl methods.
|
|
139
|
-
([@paales](https://github.com/paales))
|
|
141
|
+
- [#2196](https://github.com/graphcommerce-org/graphcommerce/pull/2196) [`84c50e4`](https://github.com/graphcommerce-org/graphcommerce/commit/84c50e49a1a7f154d4a8f4045c37e773e20283ad) - Allow Lingui to use linguiLocale with country identifiers like `en-us`, it would always load `en` in this case. Introced a new `useLocale` hook to use the correct locale string to use in Intl methods. ([@paales](https://github.com/paales))
|
|
140
142
|
|
|
141
143
|
## 8.0.5
|
|
142
144
|
|
|
@@ -188,11 +190,9 @@
|
|
|
188
190
|
|
|
189
191
|
### Patch Changes
|
|
190
192
|
|
|
191
|
-
- [#2195](https://github.com/graphcommerce-org/graphcommerce/pull/2195) [`207cd41`](https://github.com/graphcommerce-org/graphcommerce/commit/207cd4147621e53353b0b354c80d575df78089f0) - Documentation on multistore setup added
|
|
192
|
-
([@paales](https://github.com/paales))
|
|
193
|
+
- [#2195](https://github.com/graphcommerce-org/graphcommerce/pull/2195) [`207cd41`](https://github.com/graphcommerce-org/graphcommerce/commit/207cd4147621e53353b0b354c80d575df78089f0) - Documentation on multistore setup added ([@paales](https://github.com/paales))
|
|
193
194
|
|
|
194
|
-
- [#2193](https://github.com/graphcommerce-org/graphcommerce/pull/2193) [`317250a`](https://github.com/graphcommerce-org/graphcommerce/commit/317250a580b9f0b5175d9df93ba2cf62193ea383) - Updated docs to reflect featurelist more accurately
|
|
195
|
-
([@paales](https://github.com/paales))
|
|
195
|
+
- [#2193](https://github.com/graphcommerce-org/graphcommerce/pull/2193) [`317250a`](https://github.com/graphcommerce-org/graphcommerce/commit/317250a580b9f0b5175d9df93ba2cf62193ea383) - Updated docs to reflect featurelist more accurately ([@paales](https://github.com/paales))
|
|
196
196
|
|
|
197
197
|
## 8.0.2-canary.3
|
|
198
198
|
|
|
@@ -202,25 +202,21 @@
|
|
|
202
202
|
|
|
203
203
|
### Patch Changes
|
|
204
204
|
|
|
205
|
-
- [#2193](https://github.com/graphcommerce-org/graphcommerce/pull/2193) [`317250a`](https://github.com/graphcommerce-org/graphcommerce/commit/317250a580b9f0b5175d9df93ba2cf62193ea383) - Updated docs to reflect featurelist more accurately
|
|
206
|
-
([@paales](https://github.com/paales))
|
|
205
|
+
- [#2193](https://github.com/graphcommerce-org/graphcommerce/pull/2193) [`317250a`](https://github.com/graphcommerce-org/graphcommerce/commit/317250a580b9f0b5175d9df93ba2cf62193ea383) - Updated docs to reflect featurelist more accurately ([@paales](https://github.com/paales))
|
|
207
206
|
|
|
208
207
|
## 8.0.2-canary.0
|
|
209
208
|
|
|
210
209
|
### Patch Changes
|
|
211
210
|
|
|
212
|
-
- [#2195](https://github.com/graphcommerce-org/graphcommerce/pull/2195) [`207cd41`](https://github.com/graphcommerce-org/graphcommerce/commit/207cd4147621e53353b0b354c80d575df78089f0) - Documentation on multistore setup added
|
|
213
|
-
([@paales](https://github.com/paales))
|
|
211
|
+
- [#2195](https://github.com/graphcommerce-org/graphcommerce/pull/2195) [`207cd41`](https://github.com/graphcommerce-org/graphcommerce/commit/207cd4147621e53353b0b354c80d575df78089f0) - Documentation on multistore setup added ([@paales](https://github.com/paales))
|
|
214
212
|
|
|
215
213
|
## 8.0.1
|
|
216
214
|
|
|
217
215
|
### Patch Changes
|
|
218
216
|
|
|
219
|
-
- [#2186](https://github.com/graphcommerce-org/graphcommerce/pull/2186) [`09eb25c`](https://github.com/graphcommerce-org/graphcommerce/commit/09eb25c9892bf4cf57519024e31c2ae4cf2f7a0b) - Update Magento known issues
|
|
220
|
-
([@hnsr](https://github.com/hnsr))
|
|
217
|
+
- [#2186](https://github.com/graphcommerce-org/graphcommerce/pull/2186) [`09eb25c`](https://github.com/graphcommerce-org/graphcommerce/commit/09eb25c9892bf4cf57519024e31c2ae4cf2f7a0b) - Update Magento known issues ([@hnsr](https://github.com/hnsr))
|
|
221
218
|
|
|
222
|
-
- [#2187](https://github.com/graphcommerce-org/graphcommerce/pull/2187) [`6c4cee8`](https://github.com/graphcommerce-org/graphcommerce/commit/6c4cee8469ee4934281bda53ac96aeb5af2f9479) - Make sure the config page can be properly rendered in the docs
|
|
223
|
-
([@paales](https://github.com/paales))
|
|
219
|
+
- [#2187](https://github.com/graphcommerce-org/graphcommerce/pull/2187) [`6c4cee8`](https://github.com/graphcommerce-org/graphcommerce/commit/6c4cee8469ee4934281bda53ac96aeb5af2f9479) - Make sure the config page can be properly rendered in the docs ([@paales](https://github.com/paales))
|
|
224
220
|
|
|
225
221
|
## 8.0.1-canary.4
|
|
226
222
|
|
|
@@ -232,39 +228,31 @@
|
|
|
232
228
|
|
|
233
229
|
### Patch Changes
|
|
234
230
|
|
|
235
|
-
- [#2186](https://github.com/graphcommerce-org/graphcommerce/pull/2186) [`09eb25c`](https://github.com/graphcommerce-org/graphcommerce/commit/09eb25c9892bf4cf57519024e31c2ae4cf2f7a0b) - Update Magento known issues
|
|
236
|
-
([@hnsr](https://github.com/hnsr))
|
|
231
|
+
- [#2186](https://github.com/graphcommerce-org/graphcommerce/pull/2186) [`09eb25c`](https://github.com/graphcommerce-org/graphcommerce/commit/09eb25c9892bf4cf57519024e31c2ae4cf2f7a0b) - Update Magento known issues ([@hnsr](https://github.com/hnsr))
|
|
237
232
|
|
|
238
233
|
## 8.0.1-canary.0
|
|
239
234
|
|
|
240
235
|
### Patch Changes
|
|
241
236
|
|
|
242
|
-
- [#2187](https://github.com/graphcommerce-org/graphcommerce/pull/2187) [`6c4cee8`](https://github.com/graphcommerce-org/graphcommerce/commit/6c4cee8469ee4934281bda53ac96aeb5af2f9479) - Make sure the config page can be properly rendered in the docs
|
|
243
|
-
([@paales](https://github.com/paales))
|
|
237
|
+
- [#2187](https://github.com/graphcommerce-org/graphcommerce/pull/2187) [`6c4cee8`](https://github.com/graphcommerce-org/graphcommerce/commit/6c4cee8469ee4934281bda53ac96aeb5af2f9479) - Make sure the config page can be properly rendered in the docs ([@paales](https://github.com/paales))
|
|
244
238
|
|
|
245
239
|
## 8.0.0
|
|
246
240
|
|
|
247
241
|
### Minor Changes
|
|
248
242
|
|
|
249
|
-
- [#2106](https://github.com/graphcommerce-org/graphcommerce/pull/2106) [`9f8c3ca`](https://github.com/graphcommerce-org/graphcommerce/commit/9f8c3cac214006315055f37cf8d4a783eb99a7ec) - Split off Magento known issues to separate page
|
|
250
|
-
([@hnsr](https://github.com/hnsr))
|
|
243
|
+
- [#2106](https://github.com/graphcommerce-org/graphcommerce/pull/2106) [`9f8c3ca`](https://github.com/graphcommerce-org/graphcommerce/commit/9f8c3cac214006315055f37cf8d4a783eb99a7ec) - Split off Magento known issues to separate page ([@hnsr](https://github.com/hnsr))
|
|
251
244
|
|
|
252
245
|
### Patch Changes
|
|
253
246
|
|
|
254
|
-
- [#2112](https://github.com/graphcommerce-org/graphcommerce/pull/2112) [`15a2037`](https://github.com/graphcommerce-org/graphcommerce/commit/15a2037372cd615602d3e2f3deedba9766fc172c) - Make the "Search" string translatable and fix typo.
|
|
255
|
-
([@carlocarels90](https://github.com/carlocarels90))
|
|
247
|
+
- [#2112](https://github.com/graphcommerce-org/graphcommerce/pull/2112) [`15a2037`](https://github.com/graphcommerce-org/graphcommerce/commit/15a2037372cd615602d3e2f3deedba9766fc172c) - Make the "Search" string translatable and fix typo. ([@carlocarels90](https://github.com/carlocarels90))
|
|
256
248
|
|
|
257
|
-
- [`b850ab0`](https://github.com/graphcommerce-org/graphcommerce/commit/b850ab06e3fff1cd274651d8082557ed2c308f55) - Updated roadmap and feature-list
|
|
258
|
-
([@paales](https://github.com/paales))
|
|
249
|
+
- [`b850ab0`](https://github.com/graphcommerce-org/graphcommerce/commit/b850ab06e3fff1cd274651d8082557ed2c308f55) - Updated roadmap and feature-list ([@paales](https://github.com/paales))
|
|
259
250
|
|
|
260
|
-
- [#2172](https://github.com/graphcommerce-org/graphcommerce/pull/2172) [`279599e`](https://github.com/graphcommerce-org/graphcommerce/commit/279599e7a86bd96ea9e36065af3c367df9e02a63) - Updated examples in the documentation to reflect the changes made in GraphCommerce.
|
|
261
|
-
([@paales](https://github.com/paales))
|
|
251
|
+
- [#2172](https://github.com/graphcommerce-org/graphcommerce/pull/2172) [`279599e`](https://github.com/graphcommerce-org/graphcommerce/commit/279599e7a86bd96ea9e36065af3c367df9e02a63) - Updated examples in the documentation to reflect the changes made in GraphCommerce. ([@paales](https://github.com/paales))
|
|
262
252
|
|
|
263
|
-
- [#2119](https://github.com/graphcommerce-org/graphcommerce/pull/2119) [`6adb2e7`](https://github.com/graphcommerce-org/graphcommerce/commit/6adb2e72ece8210757ced178779dfba11b1bcf55) - Clarify texts by adding formatting and correcting spelling.
|
|
264
|
-
([@carlocarels90](https://github.com/carlocarels90))
|
|
253
|
+
- [#2119](https://github.com/graphcommerce-org/graphcommerce/pull/2119) [`6adb2e7`](https://github.com/graphcommerce-org/graphcommerce/commit/6adb2e72ece8210757ced178779dfba11b1bcf55) - Clarify texts by adding formatting and correcting spelling. ([@carlocarels90](https://github.com/carlocarels90))
|
|
265
254
|
|
|
266
|
-
- [#2104](https://github.com/graphcommerce-org/graphcommerce/pull/2104) [`d0f1f5a`](https://github.com/graphcommerce-org/graphcommerce/commit/d0f1f5a2d1380d1c3931e23218924d5e8b1fc60d) - Document workaround/patch for broken cart error handling with Magento 2.4.6.
|
|
267
|
-
([@hnsr](https://github.com/hnsr))
|
|
255
|
+
- [#2104](https://github.com/graphcommerce-org/graphcommerce/pull/2104) [`d0f1f5a`](https://github.com/graphcommerce-org/graphcommerce/commit/d0f1f5a2d1380d1c3931e23218924d5e8b1fc60d) - Document workaround/patch for broken cart error handling with Magento 2.4.6. ([@hnsr](https://github.com/hnsr))
|
|
268
256
|
|
|
269
257
|
## 8.0.0-canary.100
|
|
270
258
|
|
|
@@ -288,8 +276,7 @@
|
|
|
288
276
|
|
|
289
277
|
### Patch Changes
|
|
290
278
|
|
|
291
|
-
- [#2172](https://github.com/graphcommerce-org/graphcommerce/pull/2172) [`279599e`](https://github.com/graphcommerce-org/graphcommerce/commit/279599e7a86bd96ea9e36065af3c367df9e02a63) - Updated documentation to reflect recent code changes
|
|
292
|
-
([@paales](https://github.com/paales))
|
|
279
|
+
- [#2172](https://github.com/graphcommerce-org/graphcommerce/pull/2172) [`279599e`](https://github.com/graphcommerce-org/graphcommerce/commit/279599e7a86bd96ea9e36065af3c367df9e02a63) - Updated documentation to reflect recent code changes ([@paales](https://github.com/paales))
|
|
293
280
|
|
|
294
281
|
## 8.0.0-canary.90
|
|
295
282
|
|
|
@@ -297,8 +284,7 @@
|
|
|
297
284
|
|
|
298
285
|
### Patch Changes
|
|
299
286
|
|
|
300
|
-
- [`b850ab0`](https://github.com/graphcommerce-org/graphcommerce/commit/b850ab06e3fff1cd274651d8082557ed2c308f55) - Updated roadmap and feature-list
|
|
301
|
-
([@paales](https://github.com/paales))
|
|
287
|
+
- [`b850ab0`](https://github.com/graphcommerce-org/graphcommerce/commit/b850ab06e3fff1cd274651d8082557ed2c308f55) - Updated roadmap and feature-list ([@paales](https://github.com/paales))
|
|
302
288
|
|
|
303
289
|
## 8.0.0-canary.88
|
|
304
290
|
|
|
@@ -1287,31 +1273,31 @@
|
|
|
1287
1273
|
All occurences of `<Trans>` and `t` need to be replaced:
|
|
1288
1274
|
|
|
1289
1275
|
```tsx
|
|
1290
|
-
import { Trans, t } from
|
|
1276
|
+
import { Trans, t } from '@lingui/macro'
|
|
1291
1277
|
|
|
1292
1278
|
function MyComponent() {
|
|
1293
|
-
const foo =
|
|
1279
|
+
const foo = 'bar'
|
|
1294
1280
|
return (
|
|
1295
1281
|
<div aria-label={t`Account ${foo}`}>
|
|
1296
1282
|
<Trans>My Translation {foo}</Trans>
|
|
1297
1283
|
</div>
|
|
1298
|
-
)
|
|
1284
|
+
)
|
|
1299
1285
|
}
|
|
1300
1286
|
```
|
|
1301
1287
|
|
|
1302
1288
|
Needs to be replaced with:
|
|
1303
1289
|
|
|
1304
1290
|
```tsx
|
|
1305
|
-
import { Trans } from
|
|
1306
|
-
import { i18n } from
|
|
1291
|
+
import { Trans } from '@lingui/react'
|
|
1292
|
+
import { i18n } from '@lingui/core'
|
|
1307
1293
|
|
|
1308
1294
|
function MyComponent() {
|
|
1309
|
-
const foo =
|
|
1295
|
+
const foo = 'bar'
|
|
1310
1296
|
return (
|
|
1311
1297
|
<div aria-label={i18n._(/* i18n */ `Account {foo}`, { foo })}>
|
|
1312
|
-
<Trans key=
|
|
1298
|
+
<Trans key='My Translation {foo}' values={{ foo }}></Trans>
|
|
1313
1299
|
</div>
|
|
1314
|
-
)
|
|
1300
|
+
)
|
|
1315
1301
|
}
|
|
1316
1302
|
```
|
|
1317
1303
|
|
package/magento/known-issues.md
CHANGED
|
@@ -90,6 +90,19 @@ As a workaround you can apply the following patches:
|
|
|
90
90
|
|
|
91
91
|
See also https://github.com/magento/magento2/issues/37774
|
|
92
92
|
|
|
93
|
+
## Custom attributes return an error when they have a null value
|
|
94
|
+
|
|
95
|
+
Affected Magento versions:
|
|
96
|
+
- `2.4.7`: all versions
|
|
97
|
+
|
|
98
|
+
In magento version 2.4.7 the custom_attributesV2 field was added to load custom attribute values for a product.
|
|
99
|
+
If a requested attribute value is null then Magento will return an error, since the value is required.
|
|
100
|
+
|
|
101
|
+
You can apply the following patch, which ensures that the attribute is filtered and no error is thrown.
|
|
102
|
+
[fix-error-returning-null-attribute-values.patch](./patches/fix-error-returning-null-attribute-values.patch)
|
|
103
|
+
|
|
104
|
+
See also: https://github.com/magento/magento2/issues/38884
|
|
105
|
+
|
|
93
106
|
## Next steps
|
|
94
107
|
|
|
95
108
|
- [Overview](./readme)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Fix issue where custom attributes with a null value cause an error when they are returned in the GraphQL API.
|
|
2
|
+
See: https://github.com/magento/magento2/issues/38884
|
|
3
|
+
|
|
4
|
+
@package magento/module-catalog-graph-ql
|
|
5
|
+
|
|
6
|
+
===================================================================
|
|
7
|
+
diff --git a/Model/Resolver/Product/ProductCustomAttributes.php b/Model/Resolver/Product/ProductCustomAttributes.php
|
|
8
|
+
--- a/Model/Resolver/Product/ProductCustomAttributes.php
|
|
9
|
+
+++ b/Model/Resolver/Product/ProductCustomAttributes.php (date 1721216924752)
|
|
10
|
+
@@ -110,6 +110,9 @@
|
|
11
|
+
if (is_array($attributeValue)) {
|
|
12
|
+
$attributeValue = implode(',', $attributeValue);
|
|
13
|
+
}
|
|
14
|
+
+ if (!$attributeValue) {
|
|
15
|
+
+ continue;
|
|
16
|
+
+ }
|
|
17
|
+
$customAttributes[] = [
|
|
18
|
+
'attribute_code' => $attributeCode,
|
|
19
|
+
'value' => $attributeValue
|
package/package.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"name": "@graphcommerce/docs",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/docs",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce/docs",
|
|
5
|
-
"version": "9.0.0-canary.
|
|
5
|
+
"version": "9.0.0-canary.57",
|
|
6
6
|
"sideEffects": true,
|
|
7
7
|
"peerDependencies": {
|
|
8
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.
|
|
8
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.57"
|
|
9
9
|
},
|
|
10
10
|
"prettier": "@graphcommerce/prettier-config-pwa"
|
|
11
11
|
}
|