@graphcommerce/magento-store 9.0.0 → 9.0.1-canary.1
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 +9 -69
- package/package.json +8 -8
- package/plugins/magentoStoreGraphqlConfig.ts +29 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,88 +1,28 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## 9.0.
|
|
4
|
-
|
|
5
|
-
### Minor Changes
|
|
6
|
-
|
|
7
|
-
- [#2327](https://github.com/graphcommerce-org/graphcommerce/pull/2327) [`be719fc`](https://github.com/graphcommerce-org/graphcommerce/commit/be719fc465c8804ddcb720a93813262e3a292b69) - Implemented the `CancelOrder` mutation and added a cancel order overlay to the account section. ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
8
|
-
|
|
9
|
-
- [#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))
|
|
10
|
-
|
|
11
|
-
- [#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))
|
|
12
|
-
|
|
13
|
-
### Patch Changes
|
|
14
|
-
|
|
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))
|
|
16
|
-
|
|
17
|
-
- [#2438](https://github.com/graphcommerce-org/graphcommerce/pull/2438) [`cb8d2f0`](https://github.com/graphcommerce-org/graphcommerce/commit/cb8d2f0059d64242260e30ce34655868f204ef4c) - Made all component prop types exported ([@bramvanderholst](https://github.com/bramvanderholst))
|
|
18
|
-
|
|
19
|
-
- [#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))
|
|
20
|
-
|
|
21
|
-
## 9.0.0-canary.118
|
|
22
|
-
|
|
23
|
-
## 9.0.0-canary.117
|
|
24
|
-
|
|
25
|
-
## 9.0.0-canary.116
|
|
26
|
-
|
|
27
|
-
## 9.0.0-canary.115
|
|
28
|
-
|
|
29
|
-
## 9.0.0-canary.114
|
|
30
|
-
|
|
31
|
-
## 9.0.0-canary.113
|
|
32
|
-
|
|
33
|
-
## 9.0.0-canary.112
|
|
34
|
-
|
|
35
|
-
## 9.0.0-canary.111
|
|
36
|
-
|
|
37
|
-
## 9.0.0-canary.110
|
|
38
|
-
|
|
39
|
-
## 9.0.0-canary.109
|
|
40
|
-
|
|
41
|
-
## 9.0.0-canary.108
|
|
3
|
+
## 9.0.1-canary.1
|
|
42
4
|
|
|
43
5
|
### Patch Changes
|
|
44
6
|
|
|
45
|
-
- [#
|
|
46
|
-
|
|
47
|
-
## 9.0.0-canary.107
|
|
48
|
-
|
|
49
|
-
## 9.0.0-canary.106
|
|
7
|
+
- [#2458](https://github.com/graphcommerce-org/graphcommerce/pull/2458) [`9b33eac`](https://github.com/graphcommerce-org/graphcommerce/commit/9b33eac3fc8cdd7ac8ba160e598dd878c956e7c3) - Fix Magento store code not getting set in context.headers.store ([@bramvanderholst](https://github.com/bramvanderholst))
|
|
50
8
|
|
|
51
|
-
## 9.0.0
|
|
9
|
+
## 9.0.0
|
|
52
10
|
|
|
53
|
-
|
|
11
|
+
### Major Changes
|
|
54
12
|
|
|
55
|
-
|
|
13
|
+
- [#2327](https://github.com/graphcommerce-org/graphcommerce/pull/2327) [`be719fc`](https://github.com/graphcommerce-org/graphcommerce/commit/be719fc465c8804ddcb720a93813262e3a292b69) - Magento 2.4.7: Implemented `cancelOrder` mutation and added a cancel order overlay to the account section. ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
56
14
|
|
|
57
|
-
|
|
15
|
+
- [#2301](https://github.com/graphcommerce-org/graphcommerce/pull/2301) [`47bb47b`](https://github.com/graphcommerce-org/graphcommerce/commit/47bb47bac4b3689a6859afbc587274d813e0b072) - Magento 2.4.7: implement confirmEmail mutation ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
58
16
|
|
|
59
17
|
### Patch Changes
|
|
60
18
|
|
|
61
|
-
- [#
|
|
62
|
-
|
|
63
|
-
## 9.0.0-canary.83
|
|
64
|
-
|
|
65
|
-
### Patch Changes
|
|
19
|
+
- [#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))
|
|
66
20
|
|
|
67
21
|
- [#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))
|
|
68
22
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
### Minor Changes
|
|
72
|
-
|
|
73
|
-
- [#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))
|
|
74
|
-
|
|
75
|
-
## 9.0.0-canary.61
|
|
76
|
-
|
|
77
|
-
### Minor Changes
|
|
78
|
-
|
|
79
|
-
- [#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))
|
|
80
|
-
|
|
81
|
-
## 8.1.0-canary.35
|
|
82
|
-
|
|
83
|
-
### Minor Changes
|
|
23
|
+
- [#2438](https://github.com/graphcommerce-org/graphcommerce/pull/2438) [`cb8d2f0`](https://github.com/graphcommerce-org/graphcommerce/commit/cb8d2f0059d64242260e30ce34655868f204ef4c) - Made all component prop types exported ([@bramvanderholst](https://github.com/bramvanderholst))
|
|
84
24
|
|
|
85
|
-
- [#
|
|
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))
|
|
86
26
|
|
|
87
27
|
## 8.0.1
|
|
88
28
|
|
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.
|
|
5
|
+
"version": "9.0.1-canary.1",
|
|
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.
|
|
16
|
-
"@graphcommerce/graphql": "^9.0.
|
|
17
|
-
"@graphcommerce/graphql-mesh": "^9.0.
|
|
18
|
-
"@graphcommerce/image": "^9.0.
|
|
19
|
-
"@graphcommerce/next-ui": "^9.0.
|
|
20
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.
|
|
21
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.
|
|
15
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.1-canary.1",
|
|
16
|
+
"@graphcommerce/graphql": "^9.0.1-canary.1",
|
|
17
|
+
"@graphcommerce/graphql-mesh": "^9.0.1-canary.1",
|
|
18
|
+
"@graphcommerce/image": "^9.0.1-canary.1",
|
|
19
|
+
"@graphcommerce/next-ui": "^9.0.1-canary.1",
|
|
20
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.1-canary.1",
|
|
21
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.1-canary.1",
|
|
22
22
|
"@lingui/core": "^4.2.1",
|
|
23
23
|
"@lingui/macro": "^4.2.1",
|
|
24
24
|
"@lingui/react": "^4.2.1",
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { setContext, type graphqlConfig as graphqlConfigType } from '@graphcommerce/graphql'
|
|
2
|
+
import type { FunctionPlugin, PluginConfig } from '@graphcommerce/next-config'
|
|
3
|
+
|
|
4
|
+
export const config: PluginConfig = {
|
|
5
|
+
type: 'function',
|
|
6
|
+
module: '@graphcommerce/graphql',
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const graphqlConfig: FunctionPlugin<typeof graphqlConfigType> = (prev, conf) => {
|
|
10
|
+
const results = prev(conf)
|
|
11
|
+
|
|
12
|
+
return {
|
|
13
|
+
...results,
|
|
14
|
+
links: [
|
|
15
|
+
...results.links,
|
|
16
|
+
setContext((_, context) => {
|
|
17
|
+
if (!context.headers) context.headers = {}
|
|
18
|
+
context.headers.store = conf.storefront.magentoStoreCode
|
|
19
|
+
|
|
20
|
+
if (conf.preview) {
|
|
21
|
+
// To disable caching from the backend, we provide a bogus cache ID.
|
|
22
|
+
context.headers['x-magento-cache-id'] =
|
|
23
|
+
`random-cache-id${Math.random().toString(36).slice(2)}`
|
|
24
|
+
}
|
|
25
|
+
return context
|
|
26
|
+
}),
|
|
27
|
+
],
|
|
28
|
+
}
|
|
29
|
+
}
|