@graphcommerce/magento-store 9.0.1-canary.0 → 9.0.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 CHANGED
@@ -1,90 +1,34 @@
1
1
  # Change Log
2
2
 
3
- ## 9.0.1-canary.0
4
-
5
- ## 9.0.0
6
-
7
- ### Minor Changes
8
-
9
- - [#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))
10
-
11
- - [#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))
12
-
13
- - [#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))
3
+ ## 9.0.1
14
4
 
15
5
  ### Patch Changes
16
6
 
17
- - [#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))
18
-
19
- - [#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))
20
-
21
- - [#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))
22
-
23
- ## 9.0.0-canary.118
24
-
25
- ## 9.0.0-canary.117
26
-
27
- ## 9.0.0-canary.116
28
-
29
- ## 9.0.0-canary.115
30
-
31
- ## 9.0.0-canary.114
32
-
33
- ## 9.0.0-canary.113
34
-
35
- ## 9.0.0-canary.112
36
-
37
- ## 9.0.0-canary.111
38
-
39
- ## 9.0.0-canary.110
40
-
41
- ## 9.0.0-canary.109
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))
42
8
 
43
- ## 9.0.0-canary.108
9
+ ## 9.0.1-canary.1
44
10
 
45
11
  ### Patch Changes
46
12
 
47
- - [#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))
48
-
49
- ## 9.0.0-canary.107
50
-
51
- ## 9.0.0-canary.106
13
+ - [#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))
52
14
 
53
- ## 9.0.0-canary.105
15
+ ## 9.0.0
54
16
 
55
- ## 9.0.0-canary.104
17
+ ### Major Changes
56
18
 
57
- ## 9.0.0-canary.103
19
+ - [#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))
58
20
 
59
- ## 9.0.0-canary.91
21
+ - [#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))
60
22
 
61
23
  ### Patch Changes
62
24
 
63
- - [#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))
64
-
65
- ## 9.0.0-canary.83
66
-
67
- ### Patch Changes
25
+ - [#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))
68
26
 
69
27
  - [#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))
70
28
 
71
- ## 9.0.0-canary.81
72
-
73
- ### Minor Changes
74
-
75
- - [#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))
76
-
77
- ## 9.0.0-canary.61
78
-
79
- ### Minor Changes
80
-
81
- - [#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))
82
-
83
- ## 8.1.0-canary.35
84
-
85
- ### Minor Changes
29
+ - [#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))
86
30
 
87
- - [#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))
31
+ - [#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))
88
32
 
89
33
  ## 8.0.1
90
34
 
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.1-canary.0",
5
+ "version": "9.0.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.1-canary.0",
16
- "@graphcommerce/graphql": "^9.0.1-canary.0",
17
- "@graphcommerce/graphql-mesh": "^9.0.1-canary.0",
18
- "@graphcommerce/image": "^9.0.1-canary.0",
19
- "@graphcommerce/next-ui": "^9.0.1-canary.0",
20
- "@graphcommerce/prettier-config-pwa": "^9.0.1-canary.0",
21
- "@graphcommerce/typescript-config-pwa": "^9.0.1-canary.0",
15
+ "@graphcommerce/eslint-config-pwa": "^9.0.1",
16
+ "@graphcommerce/graphql": "^9.0.1",
17
+ "@graphcommerce/graphql-mesh": "^9.0.1",
18
+ "@graphcommerce/image": "^9.0.1",
19
+ "@graphcommerce/next-ui": "^9.0.1",
20
+ "@graphcommerce/prettier-config-pwa": "^9.0.1",
21
+ "@graphcommerce/typescript-config-pwa": "^9.0.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
+ }