@graphcommerce/docs 6.2.0-canary.48 → 6.2.0-canary.50
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 +8 -0
- package/framework/config.md +8 -2
- package/package.json +2 -2
- package/roadmap.md +5 -3
- package/upgrading/graphcommerce-6-1-to-6-2.md +89 -0
- package/upgrading/readme.md +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 6.2.0-canary.50
|
|
4
|
+
|
|
5
|
+
## 6.2.0-canary.49
|
|
6
|
+
|
|
7
|
+
### Patch Changes
|
|
8
|
+
|
|
9
|
+
- [#1959](https://github.com/graphcommerce-org/graphcommerce/pull/1959) [`d0809b132`](https://github.com/graphcommerce-org/graphcommerce/commit/d0809b132a0e4cbdfeb86164f6c16a89ebecd987) - Added support for default values in the Config.graphqls files for the documentation ([@JoshuaS98](https://github.com/JoshuaS98))
|
|
10
|
+
|
|
3
11
|
## 6.2.0-canary.48
|
|
4
12
|
|
|
5
13
|
## 6.2.0-canary.47
|
package/framework/config.md
CHANGED
|
@@ -115,7 +115,7 @@ When Magento's StoreConfig adds this value, this can be replaced.
|
|
|
115
115
|
|
|
116
116
|
Use compare functionality
|
|
117
117
|
|
|
118
|
-
#### `compareVariant: [CompareVariant](#CompareVariant)`
|
|
118
|
+
#### `compareVariant: [CompareVariant](#CompareVariant) (default: ICON)`
|
|
119
119
|
|
|
120
120
|
By default the compare feature is denoted with a 'compare ICON' (2 arrows facing one another).
|
|
121
121
|
This may be fine for experienced users, but for more clarity it's also possible to present the compare feature as a CHECKBOX accompanied by the 'Compare' label
|
|
@@ -132,7 +132,7 @@ This value should match Magento 2's configuration value for
|
|
|
132
132
|
|
|
133
133
|
Debug configuration for GraphCommerce
|
|
134
134
|
|
|
135
|
-
#### `demoMode: Boolean`
|
|
135
|
+
#### `demoMode: Boolean (default: true)`
|
|
136
136
|
|
|
137
137
|
Enables some demo specific code that is probably not useful for a project:
|
|
138
138
|
|
|
@@ -214,6 +214,12 @@ Limit the static generation of SSG when building
|
|
|
214
214
|
|
|
215
215
|
To enable next.js' preview mode, configure the secret you'd like to use.
|
|
216
216
|
|
|
217
|
+
#### `productFiltersLayout: [ProductFiltersLayout](#ProductFiltersLayout) (default: DEFAULT)`
|
|
218
|
+
|
|
219
|
+
Layout how the filters are rendered.
|
|
220
|
+
DEFAULT: Will be rendered as horzontal chips on desktop and mobile
|
|
221
|
+
SIDEBAR: Will be rendered as a sidebar on desktop and horizontal chips on mobile
|
|
222
|
+
|
|
217
223
|
#### `productFiltersPro: Boolean`
|
|
218
224
|
|
|
219
225
|
Product filters with better UI for mobile and desktop.
|
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": "6.2.0-canary.
|
|
5
|
+
"version": "6.2.0-canary.50",
|
|
6
6
|
"sideEffects": true,
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"@graphcommerce/prettier-config-pwa": "6.2.0-canary.
|
|
8
|
+
"@graphcommerce/prettier-config-pwa": "6.2.0-canary.50"
|
|
9
9
|
},
|
|
10
10
|
"prettier": "@graphcommerce/prettier-config-pwa"
|
|
11
11
|
}
|
package/roadmap.md
CHANGED
|
@@ -15,9 +15,8 @@ The following overview contains the status of items on the GraphCommerce roadmap
|
|
|
15
15
|
|
|
16
16
|
## In progress
|
|
17
17
|
|
|
18
|
-
- [ ]
|
|
19
|
-
- [ ]
|
|
20
|
-
- [ ] Product compare functionality
|
|
18
|
+
- [ ] Better authorization handling
|
|
19
|
+
- [ ] Hygraph schema migrations
|
|
21
20
|
- [ ] Edge runtime for GraphQL Mesh and Streaming SSR rendering
|
|
22
21
|
- [ ] Global store messages
|
|
23
22
|
|
|
@@ -25,6 +24,9 @@ The following overview contains the status of items on the GraphCommerce roadmap
|
|
|
25
24
|
|
|
26
25
|
[See all releases](https://github.com/graphcommerce-org/graphcommerce/releases?q=prerelease%3Afalse+&expanded=true)
|
|
27
26
|
|
|
27
|
+
- [x] [Algolia Search (beta)](https://github.com/graphcommerce-org/graphcommerce/tree/main/packages/algolia-search)
|
|
28
|
+
- [x] [Dynamic Rows (beta)](https://github.com/graphcommerce-org/graphcommerce/tree/main/packages/hygraph-dynamic-rows)
|
|
29
|
+
- [x] [Product compare](https://github.com/graphcommerce-org/graphcommerce/blob/main/packages/magento-compare/Config.graphqls)
|
|
28
30
|
- [x] Google Tagmanager 4 datalayer implementation
|
|
29
31
|
[docs ↗](https://github.com/graphcommerce-org/graphcommerce/tree/main/packages/googleanalytics)
|
|
30
32
|
- [x] Paypal Express payment service
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# Upgrading from GraphCommerce 6.1 to 6.2
|
|
2
|
+
|
|
3
|
+
Upgrading from GraphCommerce 6.1 to 6.2 is minor update. Depending on the
|
|
4
|
+
amounts of customisations you've made, there are some manual steps. Please
|
|
5
|
+
follow the regular [upgrade steps first](./readme.md).
|
|
6
|
+
|
|
7
|
+
1. [Add `fetchPolicy: cache-first` to LayoutDocument](#add-cache-first-fetchpolicy-to-layoutdocument)
|
|
8
|
+
2. [Translation file updates](#translation-file-updates)
|
|
9
|
+
|
|
10
|
+
## Add `fetchPolicy: cache-first` to LayoutDocument queries
|
|
11
|
+
|
|
12
|
+
🟠 Only required if you've added custom pages
|
|
13
|
+
|
|
14
|
+
All occurences of LayoutDocument should get a `fetchPolicy: 'cache-first'`
|
|
15
|
+
option.
|
|
16
|
+
|
|
17
|
+
```tsx
|
|
18
|
+
// Find all occurences of
|
|
19
|
+
staticClient.query({ query: LayoutDocument })
|
|
20
|
+
|
|
21
|
+
// Replace with
|
|
22
|
+
staticClient.query({ query: LayoutDocument, fetchPolicy: 'cache-first' })
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Use thew new `hygraphPageContent` function instead of DefaultPageQuery
|
|
26
|
+
|
|
27
|
+
🟠 Only required if you've added custom pages
|
|
28
|
+
|
|
29
|
+
The `DefaultPageDocument` is removed in favor of the new `hygraphPageContent`
|
|
30
|
+
query. This function handles caching better and allows for (currently in beta)
|
|
31
|
+
DynamicRows feature.
|
|
32
|
+
|
|
33
|
+
```tsx
|
|
34
|
+
// DefaultPageDocument
|
|
35
|
+
const page = staticClient.query({
|
|
36
|
+
query: DefaultPageDocument,
|
|
37
|
+
variables: { url: `blog/${urlKey}` },
|
|
38
|
+
})
|
|
39
|
+
|
|
40
|
+
// Becomes hygraphPageContent
|
|
41
|
+
const page = hygraphPageContent(staticClient, `blog/${urlKey}`)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Translation file updates
|
|
45
|
+
|
|
46
|
+
🟠 Only required if you've added custom translations
|
|
47
|
+
|
|
48
|
+
All locales files now require a `msgid` comment. All translations need to have a
|
|
49
|
+
`#. js-lingui-explicit-id` comment added. This could be done with a
|
|
50
|
+
find-and-replace:
|
|
51
|
+
|
|
52
|
+
Find (including the empty line)
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
msgid
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Replace with (including the empty line)
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
#. js-lingui-explicit-id
|
|
64
|
+
msgid
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
To validate your translations run `yarn lingui` to extract everything.
|
|
68
|
+
|
|
69
|
+
## All @graphql-mesh/\* should be set to latest.
|
|
70
|
+
|
|
71
|
+
🟠 Only required if you've added custom @graphql-mesh/\* packages
|
|
72
|
+
|
|
73
|
+
All @graphql-mesh packages are using a 0.x.x versioning schema. This means that
|
|
74
|
+
each minor change is considered a major change by yarn. This causes lots of
|
|
75
|
+
issues with version mismatches. Since `@graphql-mesh` isn't making any major
|
|
76
|
+
breaking before releasing 1.x this is the safest course of action for now. Once
|
|
77
|
+
1.x is released we'll switch to "^1.0.0" as a version constraint.
|
|
78
|
+
|
|
79
|
+
In your package.json
|
|
80
|
+
|
|
81
|
+
```json
|
|
82
|
+
// Replace
|
|
83
|
+
"@graphql-mesh/json-schema": "^0.37.6",
|
|
84
|
+
"@graphql-mesh/transform-filter-schema": "^0.15.8",
|
|
85
|
+
|
|
86
|
+
// With
|
|
87
|
+
"@graphql-mesh/json-schema": "latest",
|
|
88
|
+
"@graphql-mesh/transform-filter-schema": "latest",
|
|
89
|
+
```
|
package/upgrading/readme.md
CHANGED
|
@@ -107,6 +107,7 @@ find . -type f -name '*.rej' -delete
|
|
|
107
107
|
After resolving the diff issues, manually process upgrade instructions:
|
|
108
108
|
|
|
109
109
|
- [Upgrading to GraphCommerce 5 to 6](../upgrading/graphcommerce-5-to-6.md)
|
|
110
|
+
- [Upgrading to GraphCommerce 6.1 to 6.2](../upgrading/graphcommerce-6-1-to-6-2.md)
|
|
110
111
|
|
|
111
112
|
Run and validate your local environment:
|
|
112
113
|
|