@graphcommerce/next-config 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 +25 -263
- package/__tests__/interceptors/findPlugins.ts +14 -7
- package/dist/withGraphCommerce.js +1 -1
- package/package.json +1 -1
- package/src/withGraphCommerce.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,23 +1,14 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## 9.0.
|
|
4
|
-
|
|
5
|
-
### Minor Changes
|
|
6
|
-
|
|
7
|
-
- [#2330](https://github.com/graphcommerce-org/graphcommerce/pull/2330) [`5701e71`](https://github.com/graphcommerce-org/graphcommerce/commit/5701e71454ffb52880cd15c3341826d9502284d0) - Added support for boolean `ifConfig: ['customerXMagentoCacheIdDisable', true]` values in plugin configurations ([@paales](https://github.com/paales))
|
|
8
|
-
|
|
9
|
-
- [#2380](https://github.com/graphcommerce-org/graphcommerce/pull/2380) [`3710d8b`](https://github.com/graphcommerce-org/graphcommerce/commit/3710d8bf1cceb5a991e5cfdfc15d42e462704c6d) - Solves the issue `TypeError: url?.startsWith is not a function`. The generated `.mesh/index.ts` would be generated as a requirejs module while next.js expects an esm module. In the end we properly generated the mesh correctly and now there is an `import.meta.url` instead of using `require('node:url')`. To solve this we needed to solve a chain of issues:
|
|
10
|
-
|
|
11
|
-
1. The generation of the mesh is based on the version of the mesh that is imported (esm or commonjs). See [source](https://github.com/ardatan/graphql-mesh/blob/bf588d372c0078378aaa24beea2da794af7949e6/scripts/replace-import-meta-url-in-cjs.ts#L9-L10) for the lines that need to be different. This meant that we needed to change the @graphcommerce/cli package to be of type:module instead of a commonjs module.
|
|
3
|
+
## 9.0.1-canary.1
|
|
12
4
|
|
|
13
|
-
|
|
14
|
-
3) To load possible mesh plugins we require additional .ts files to be loaded with [tsx](https://tsx.is/). To get the tsx loader to work properly in combination with esm modules, we need at least [node 18.19.0](https://nodejs.org/en/blog/release/v18.19.0#new-nodemodule-api-register-for-module-customization-hooks-new-initialize-hook). Minimal Node version upped to 18.19.0 and add support for node 22. ([@paales](https://github.com/paales))
|
|
5
|
+
## 9.0.0
|
|
15
6
|
|
|
16
|
-
|
|
7
|
+
### Major Changes
|
|
17
8
|
|
|
18
|
-
- [#
|
|
9
|
+
- [#2306](https://github.com/graphcommerce-org/graphcommerce/pull/2306) [`5e188e8`](https://github.com/graphcommerce-org/graphcommerce/commit/5e188e830dca4730c73830858f59a94e9d41ed12) - Magento 2.4.7: Imlemented `deleteCustomer` mutation to the account section. Disabled by default and can be enabled through the config. ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
19
10
|
|
|
20
|
-
- [#2452](https://github.com/graphcommerce-org/graphcommerce/pull/2452) [`aab290f`](https://github.com/graphcommerce-org/graphcommerce/commit/aab290f9c905be06e742cd8ad50d7d415930828a) - Migrated to next.config.ts ([@paales](https://github.com/paales))
|
|
11
|
+
- [#2452](https://github.com/graphcommerce-org/graphcommerce/pull/2452) [`aab290f`](https://github.com/graphcommerce-org/graphcommerce/commit/aab290f9c905be06e742cd8ad50d7d415930828a) - Migrated to `next.config.ts` ([@paales](https://github.com/paales))
|
|
21
12
|
|
|
22
13
|
- [#2305](https://github.com/graphcommerce-org/graphcommerce/pull/2305) [`77e8297`](https://github.com/graphcommerce-org/graphcommerce/commit/77e82976816994336c616208a651cb18ce9ea270) - Added `<CompanyFields/>` with `<CompanyName />` and `<CompanyVAT />` to shipping and billing forms. ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
23
14
|
|
|
@@ -69,133 +60,28 @@
|
|
|
69
60
|
|
|
70
61
|
This allows you to support multiple builds with different plugins applied. For example one build with `GC_THEME=my-theme` and another with `GC_THEME=my-other-theme`. ([@paales](https://github.com/paales))
|
|
71
62
|
|
|
72
|
-
- [#
|
|
73
|
-
|
|
74
|
-
- [#2223](https://github.com/graphcommerce-org/graphcommerce/pull/2223) [`4543c8d`](https://github.com/graphcommerce-org/graphcommerce/commit/4543c8d3af455b709a4cb3cad2e9d5d70cffb969) - Added separate sitemap for categories ([@bramvanderholst](https://github.com/bramvanderholst))
|
|
75
|
-
|
|
76
|
-
- [#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`.
|
|
77
|
-
|
|
78
|
-
- `COMPACT` means: `< Page X of Y >`
|
|
79
|
-
- `EXTENDED` means: `< 1 2 ... [5] ... 10 11 >` ([@FrankHarland](https://github.com/FrankHarland))
|
|
80
|
-
|
|
81
|
-
- [#2385](https://github.com/graphcommerce-org/graphcommerce/pull/2385) [`3434ede`](https://github.com/graphcommerce-org/graphcommerce/commit/3434ede37855c36949711d05d13eb01906b29ad0) - Added a functionality to copy directories from packages to the project and keep them managed with GraphCommerce ([@paales](https://github.com/paales))
|
|
63
|
+
- [#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 >` and `EXTENDED` means: `< 1 2 ... [5] ... 10 11 >` ([@FrankHarland](https://github.com/FrankHarland))
|
|
82
64
|
|
|
83
65
|
- [#2313](https://github.com/graphcommerce-org/graphcommerce/pull/2313) [`511e75c`](https://github.com/graphcommerce-org/graphcommerce/commit/511e75c3f8c077e617ed17e5042796e2411f312f) - Add the `customerNote` field to the shipping and customer address forms. Added configuration `customerAddressNoteEnable` to enable or disable the field. ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
84
66
|
|
|
85
|
-
### Patch Changes
|
|
86
|
-
|
|
87
|
-
- [#2247](https://github.com/graphcommerce-org/graphcommerce/pull/2247) [`5153904`](https://github.com/graphcommerce-org/graphcommerce/commit/51539045cb3e14424141a65a1fd89216d3ee6fc2) - Added `PRIVATE_ADDITIONAL_DEPENDENCIES` env variable support to enable packages that we do not want to have in the examples directory but we do want to be able to demo. ([@paales](https://github.com/paales))
|
|
88
|
-
|
|
89
|
-
- [#2213](https://github.com/graphcommerce-org/graphcommerce/pull/2213) [`9b8349f`](https://github.com/graphcommerce-org/graphcommerce/commit/9b8349f0001a786f9b1666f050ae226316bd16f3) - Removed the `ProductPage.graphql` query from the examples directory as it isn't used anymore. ([@paales](https://github.com/paales))
|
|
90
|
-
|
|
91
|
-
- [#2234](https://github.com/graphcommerce-org/graphcommerce/pull/2234) [`0767bc4`](https://github.com/graphcommerce-org/graphcommerce/commit/0767bc40f7b596209f24ca4e745ff0441f3275c9) - Upgrade input components to no longer use `muiRegister`, which improves INP scores. ([@FrankHarland](https://github.com/FrankHarland))
|
|
92
|
-
|
|
93
|
-
- [#2450](https://github.com/graphcommerce-org/graphcommerce/pull/2450) [`c37d1ec`](https://github.com/graphcommerce-org/graphcommerce/commit/c37d1ec016bc26c2a59296b0c76c14b513d94306) - Make sure categories and products create the correct URL's in sitemaps ([@paales](https://github.com/paales))
|
|
94
|
-
|
|
95
|
-
- [#2423](https://github.com/graphcommerce-org/graphcommerce/pull/2423) [`dbf233b`](https://github.com/graphcommerce-org/graphcommerce/commit/dbf233bb6d11432a8effc38fd4672aaa0856e1aa) - Added graphql.config.ts to projects ([@paales](https://github.com/paales))
|
|
96
|
-
|
|
97
|
-
- [#2223](https://github.com/graphcommerce-org/graphcommerce/pull/2223) [`4f7fe02`](https://github.com/graphcommerce-org/graphcommerce/commit/4f7fe02c6f0f017d7a52559df1972551eb0cba47) - Added robotsAllow to storefront config ([@bramvanderholst](https://github.com/bramvanderholst))
|
|
98
|
-
|
|
99
|
-
- [#2379](https://github.com/graphcommerce-org/graphcommerce/pull/2379) [`9828754`](https://github.com/graphcommerce-org/graphcommerce/commit/9828754192348b966fb9736d7b0e1c78c4a909fa) - All automatically generated interceptor files are now read-only in vscode to prevent accidental changes. ([@paales](https://github.com/paales))
|
|
100
|
-
|
|
101
|
-
- [#2247](https://github.com/graphcommerce-org/graphcommerce/pull/2247) [`6831040`](https://github.com/graphcommerce-org/graphcommerce/commit/68310401448b7b42b53757db4a84de4a01e35aa2) - Reduce bundlesize of `@apollo/client`. ([@paales](https://github.com/paales))
|
|
102
|
-
|
|
103
|
-
- [#2247](https://github.com/graphcommerce-org/graphcommerce/pull/2247) [`81c6c81`](https://github.com/graphcommerce-org/graphcommerce/commit/81c6c81e1b4a31df3c400a3ee4311bdf2b46a2b5) - Solved an issue where the plugins would be generated with the wrong path ([@paales](https://github.com/paales))
|
|
104
|
-
|
|
105
|
-
- [#2421](https://github.com/graphcommerce-org/graphcommerce/pull/2421) [`d500643`](https://github.com/graphcommerce-org/graphcommerce/commit/d500643138799b6db1610cb10a1d065d6219d8ea) - Resolve peer dependency issues so we get a clean install ([@paales](https://github.com/paales))
|
|
106
|
-
|
|
107
|
-
- [#2299](https://github.com/graphcommerce-org/graphcommerce/pull/2299) [`85d258a`](https://github.com/graphcommerce-org/graphcommerce/commit/85d258a0d1a48bb1b502cccba30a9844f2257814) - Solve an issue where an env variable wouldn't be coerced to a Number if a `Config.graphqls` value is defined as an `Int`/`Float`. ([@paales](https://github.com/paales))
|
|
108
|
-
|
|
109
|
-
- [#2314](https://github.com/graphcommerce-org/graphcommerce/pull/2314) [`ccd218c`](https://github.com/graphcommerce-org/graphcommerce/commit/ccd218c827d8ba7e632fa40ed75ad63a38620275) - Solve an issue where interceptors were immediately deleted after generating ([@paales](https://github.com/paales))
|
|
110
|
-
|
|
111
|
-
- [#2292](https://github.com/graphcommerce-org/graphcommerce/pull/2292) [`6258adb`](https://github.com/graphcommerce-org/graphcommerce/commit/6258adbe294590ba52d3aaf65712cdc561f32c4c) - Be able to handle plugin runtime values values when parsing the source. Also, make sure parsed plugin sources do not return duplicate plugins. ([@paales](https://github.com/paales))
|
|
112
|
-
|
|
113
|
-
- [#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. Introduced a new `useLocale` hook to use the correct locale string to use in Intl methods. ([@paales](https://github.com/paales))
|
|
114
|
-
|
|
115
|
-
- [#2247](https://github.com/graphcommerce-org/graphcommerce/pull/2247) [`6831040`](https://github.com/graphcommerce-org/graphcommerce/commit/68310401448b7b42b53757db4a84de4a01e35aa2) - Suppress warning where a dependency is an expression, Added uglify-es and long as the dependencies couldn’t be found ([@paales](https://github.com/paales))
|
|
116
|
-
|
|
117
|
-
- [`a04fae0`](https://github.com/graphcommerce-org/graphcommerce/commit/a04fae00ce294c8cdf4da85a96b98b8deb3e2fb9) - Configure the maxBatchSize for the release when getting information from github ([@paales](https://github.com/paales))
|
|
118
|
-
|
|
119
|
-
- [#2418](https://github.com/graphcommerce-org/graphcommerce/pull/2418) [`22a0ef2`](https://github.com/graphcommerce-org/graphcommerce/commit/22a0ef2ffd2841d050a413a885ff54331e1e7ebf) - Solve peer dependency issues for webpack and framer-motion ([@paales](https://github.com/paales))
|
|
120
|
-
|
|
121
|
-
- [#2247](https://github.com/graphcommerce-org/graphcommerce/pull/2247) [`cfc0f4e`](https://github.com/graphcommerce-org/graphcommerce/commit/cfc0f4e015f3b3a7348b882eb7440222b3e26a07) - Make sure the interceptors are generated before the typecheck is ran. ([@paales](https://github.com/paales))
|
|
122
|
-
|
|
123
|
-
- [#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))
|
|
124
|
-
|
|
125
67
|
- [#2227](https://github.com/graphcommerce-org/graphcommerce/pull/2227) [`d597719`](https://github.com/graphcommerce-org/graphcommerce/commit/d597719baaabbe079660ac063fd021d871831511) - Added option to change sort order (ASC / DESC) for sort options (Name, price, position etc) on catalog and search pages. ([@FrankHarland](https://github.com/FrankHarland))
|
|
126
68
|
|
|
127
|
-
- [#2247](https://github.com/graphcommerce-org/graphcommerce/pull/2247) [`3f9d8f5`](https://github.com/graphcommerce-org/graphcommerce/commit/3f9d8f5ee9437fa90589ebd8ba8d1e790006b6ae) - Added better interceptor comments and link to original files ([@paales](https://github.com/paales))
|
|
128
|
-
|
|
129
|
-
## 9.0.0-canary.118
|
|
130
|
-
|
|
131
|
-
### Patch Changes
|
|
132
|
-
|
|
133
|
-
- [`a04fae0`](https://github.com/graphcommerce-org/graphcommerce/commit/a04fae00ce294c8cdf4da85a96b98b8deb3e2fb9) - Configure the maxBatchSize for the release when getting information from github ([@paales](https://github.com/paales))
|
|
134
|
-
|
|
135
|
-
## 9.0.0-canary.117
|
|
136
|
-
|
|
137
|
-
## 9.0.0-canary.116
|
|
138
|
-
|
|
139
69
|
### Minor Changes
|
|
140
70
|
|
|
141
|
-
- [#
|
|
142
|
-
|
|
143
|
-
## 9.0.0-canary.115
|
|
144
|
-
|
|
145
|
-
## 9.0.0-canary.114
|
|
146
|
-
|
|
147
|
-
### Patch Changes
|
|
148
|
-
|
|
149
|
-
- [#2450](https://github.com/graphcommerce-org/graphcommerce/pull/2450) [`c37d1ec`](https://github.com/graphcommerce-org/graphcommerce/commit/c37d1ec016bc26c2a59296b0c76c14b513d94306) - Make sure categories and products create the correct URL's in sitemaps ([@paales](https://github.com/paales))
|
|
150
|
-
|
|
151
|
-
## 9.0.0-canary.113
|
|
152
|
-
|
|
153
|
-
## 9.0.0-canary.112
|
|
154
|
-
|
|
155
|
-
## 9.0.0-canary.111
|
|
156
|
-
|
|
157
|
-
## 9.0.0-canary.110
|
|
158
|
-
|
|
159
|
-
## 9.0.0-canary.109
|
|
160
|
-
|
|
161
|
-
## 9.0.0-canary.108
|
|
162
|
-
|
|
163
|
-
## 9.0.0-canary.107
|
|
164
|
-
|
|
165
|
-
## 9.0.0-canary.106
|
|
166
|
-
|
|
167
|
-
### Minor Changes
|
|
168
|
-
|
|
169
|
-
- [#2385](https://github.com/graphcommerce-org/graphcommerce/pull/2385) [`3434ede`](https://github.com/graphcommerce-org/graphcommerce/commit/3434ede37855c36949711d05d13eb01906b29ad0) - Added a functionality to copy directories from packages to the project and keep them managed with GraphCommerce ([@paales](https://github.com/paales))
|
|
170
|
-
|
|
171
|
-
## 9.0.0-canary.105
|
|
172
|
-
|
|
173
|
-
## 9.0.0-canary.104
|
|
71
|
+
- [#2385](https://github.com/graphcommerce-org/graphcommerce/pull/2385) [`3434ede`](https://github.com/graphcommerce-org/graphcommerce/commit/3434ede37855c36949711d05d13eb01906b29ad0) - Added a functionality to copy directories from packages to the project and keep them managed by the package. This allows for injecting additional routes etc. ([@paales](https://github.com/paales))
|
|
174
72
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
- [#2423](https://github.com/graphcommerce-org/graphcommerce/pull/2423) [`dbf233b`](https://github.com/graphcommerce-org/graphcommerce/commit/dbf233bb6d11432a8effc38fd4672aaa0856e1aa) - Added graphql.config.ts to projects ([@paales](https://github.com/paales))
|
|
178
|
-
|
|
179
|
-
## 9.0.0-canary.103
|
|
180
|
-
|
|
181
|
-
### Patch Changes
|
|
73
|
+
- [#2247](https://github.com/graphcommerce-org/graphcommerce/pull/2247) [`5153904`](https://github.com/graphcommerce-org/graphcommerce/commit/51539045cb3e14424141a65a1fd89216d3ee6fc2) - Added `PRIVATE_ADDITIONAL_DEPENDENCIES` env variable support to enable packages that we do not want to have in the examples directory but we do want to be able to demo. ([@paales](https://github.com/paales))
|
|
182
74
|
|
|
183
|
-
- [#
|
|
75
|
+
- [#2418](https://github.com/graphcommerce-org/graphcommerce/pull/2418) [`e0a5b98`](https://github.com/graphcommerce-org/graphcommerce/commit/e0a5b9858a3b675ce749609ffa122d293c6e2a62) - Added `PRIVATE_PACKAGE_NAMESPACES` env variable to have additional namespaces to be considered to be a graphcommerce package. ([@paales](https://github.com/paales))
|
|
184
76
|
|
|
185
|
-
|
|
77
|
+
- [#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. Introduced a new `useLocale` hook to use the correct locale string to use in Intl methods. ([@paales](https://github.com/paales))
|
|
186
78
|
|
|
187
|
-
|
|
79
|
+
- [#2223](https://github.com/graphcommerce-org/graphcommerce/pull/2223) [`4543c8d`](https://github.com/graphcommerce-org/graphcommerce/commit/4543c8d3af455b709a4cb3cad2e9d5d70cffb969) - Created dedicated sitemap route for categories so it isn't dependend on static generation. ([@bramvanderholst](https://github.com/bramvanderholst))
|
|
188
80
|
|
|
189
|
-
- [#
|
|
81
|
+
- [#2223](https://github.com/graphcommerce-org/graphcommerce/pull/2223) [`4ef6765`](https://github.com/graphcommerce-org/graphcommerce/commit/4ef6765d52fa56cfbe12b7e4e81aa183cc590a87) - Created dedicated sitemap route for products so it isn't dependend on static generation. ([@bramvanderholst](https://github.com/bramvanderholst))
|
|
190
82
|
|
|
191
83
|
### Patch Changes
|
|
192
84
|
|
|
193
|
-
- [#2418](https://github.com/graphcommerce-org/graphcommerce/pull/2418) [`22a0ef2`](https://github.com/graphcommerce-org/graphcommerce/commit/22a0ef2ffd2841d050a413a885ff54331e1e7ebf) - Solve peer dependency issues for webpack and framer-motion ([@paales](https://github.com/paales))
|
|
194
|
-
|
|
195
|
-
## 9.0.0-canary.101
|
|
196
|
-
|
|
197
|
-
### Minor Changes
|
|
198
|
-
|
|
199
85
|
- [#2380](https://github.com/graphcommerce-org/graphcommerce/pull/2380) [`3710d8b`](https://github.com/graphcommerce-org/graphcommerce/commit/3710d8bf1cceb5a991e5cfdfc15d42e462704c6d) - Solves the issue `TypeError: url?.startsWith is not a function`. The generated `.mesh/index.ts` would be generated as a requirejs module while next.js expects an esm module. In the end we properly generated the mesh correctly and now there is an `import.meta.url` instead of using `require('node:url')`. To solve this we needed to solve a chain of issues:
|
|
200
86
|
|
|
201
87
|
1. The generation of the mesh is based on the version of the mesh that is imported (esm or commonjs). See [source](https://github.com/ardatan/graphql-mesh/blob/bf588d372c0078378aaa24beea2da794af7949e6/scripts/replace-import-meta-url-in-cjs.ts#L9-L10) for the lines that need to be different. This meant that we needed to change the @graphcommerce/cli package to be of type:module instead of a commonjs module.
|
|
@@ -203,164 +89,40 @@
|
|
|
203
89
|
2) To properly convert the module to an esm module we've migrated the build of the cli package to use 'pkgroll' instead of tsc, because tsc is limited in what it outputs and can't really convert classic imports to esm.
|
|
204
90
|
3) To load possible mesh plugins we require additional .ts files to be loaded with [tsx](https://tsx.is/). To get the tsx loader to work properly in combination with esm modules, we need at least [node 18.19.0](https://nodejs.org/en/blog/release/v18.19.0#new-nodemodule-api-register-for-module-customization-hooks-new-initialize-hook). Minimal Node version upped to 18.19.0 and add support for node 22. ([@paales](https://github.com/paales))
|
|
205
91
|
|
|
206
|
-
|
|
92
|
+
- [#2213](https://github.com/graphcommerce-org/graphcommerce/pull/2213) [`9b8349f`](https://github.com/graphcommerce-org/graphcommerce/commit/9b8349f0001a786f9b1666f050ae226316bd16f3) - Removed the `ProductPage.graphql` query from the examples directory as it isn't used anymore. ([@paales](https://github.com/paales))
|
|
207
93
|
|
|
208
|
-
|
|
94
|
+
- [#2234](https://github.com/graphcommerce-org/graphcommerce/pull/2234) [`0767bc4`](https://github.com/graphcommerce-org/graphcommerce/commit/0767bc40f7b596209f24ca4e745ff0441f3275c9) - Upgrade input components to no longer use `muiRegister`, which improves INP scores. ([@FrankHarland](https://github.com/FrankHarland))
|
|
209
95
|
|
|
210
|
-
- [#
|
|
96
|
+
- [#2450](https://github.com/graphcommerce-org/graphcommerce/pull/2450) [`c37d1ec`](https://github.com/graphcommerce-org/graphcommerce/commit/c37d1ec016bc26c2a59296b0c76c14b513d94306) - Make sure categories and products create the correct URL's in sitemaps ([@paales](https://github.com/paales))
|
|
211
97
|
|
|
212
|
-
|
|
98
|
+
- [#2423](https://github.com/graphcommerce-org/graphcommerce/pull/2423) [`dbf233b`](https://github.com/graphcommerce-org/graphcommerce/commit/dbf233bb6d11432a8effc38fd4672aaa0856e1aa) - Added graphql.config.ts to projects ([@paales](https://github.com/paales))
|
|
213
99
|
|
|
214
|
-
|
|
100
|
+
- [#2223](https://github.com/graphcommerce-org/graphcommerce/pull/2223) [`4f7fe02`](https://github.com/graphcommerce-org/graphcommerce/commit/4f7fe02c6f0f017d7a52559df1972551eb0cba47) - Added robotsAllow to storefront config ([@bramvanderholst](https://github.com/bramvanderholst))
|
|
215
101
|
|
|
216
|
-
- [#
|
|
102
|
+
- [#2379](https://github.com/graphcommerce-org/graphcommerce/pull/2379) [`9828754`](https://github.com/graphcommerce-org/graphcommerce/commit/9828754192348b966fb9736d7b0e1c78c4a909fa) - All automatically generated interceptor files are now read-only in vscode to prevent accidental changes. ([@paales](https://github.com/paales))
|
|
217
103
|
|
|
218
|
-
|
|
104
|
+
- [#2247](https://github.com/graphcommerce-org/graphcommerce/pull/2247) [`6831040`](https://github.com/graphcommerce-org/graphcommerce/commit/68310401448b7b42b53757db4a84de4a01e35aa2) - Reduce bundlesize of `@apollo/client`. ([@paales](https://github.com/paales))
|
|
219
105
|
|
|
220
|
-
|
|
106
|
+
- [#2247](https://github.com/graphcommerce-org/graphcommerce/pull/2247) [`81c6c81`](https://github.com/graphcommerce-org/graphcommerce/commit/81c6c81e1b4a31df3c400a3ee4311bdf2b46a2b5) - Solved an issue where the plugins would be generated with the wrong path ([@paales](https://github.com/paales))
|
|
221
107
|
|
|
222
|
-
- [#
|
|
108
|
+
- [#2421](https://github.com/graphcommerce-org/graphcommerce/pull/2421) [`d500643`](https://github.com/graphcommerce-org/graphcommerce/commit/d500643138799b6db1610cb10a1d065d6219d8ea) - Resolve peer dependency issues so we get a clean install ([@paales](https://github.com/paales))
|
|
223
109
|
|
|
224
|
-
|
|
110
|
+
- [#2299](https://github.com/graphcommerce-org/graphcommerce/pull/2299) [`85d258a`](https://github.com/graphcommerce-org/graphcommerce/commit/85d258a0d1a48bb1b502cccba30a9844f2257814) - Solve an issue where an env variable wouldn't be coerced to a Number if a `Config.graphqls` value is defined as an `Int`/`Float`. ([@paales](https://github.com/paales))
|
|
225
111
|
|
|
226
112
|
- [#2314](https://github.com/graphcommerce-org/graphcommerce/pull/2314) [`ccd218c`](https://github.com/graphcommerce-org/graphcommerce/commit/ccd218c827d8ba7e632fa40ed75ad63a38620275) - Solve an issue where interceptors were immediately deleted after generating ([@paales](https://github.com/paales))
|
|
227
113
|
|
|
228
|
-
## 8.1.0-canary.41
|
|
229
|
-
|
|
230
|
-
### Patch Changes
|
|
231
|
-
|
|
232
|
-
- [#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))
|
|
233
|
-
|
|
234
|
-
## 8.1.0-canary.40
|
|
235
|
-
|
|
236
|
-
### Minor Changes
|
|
237
|
-
|
|
238
|
-
- [#2306](https://github.com/graphcommerce-org/graphcommerce/pull/2306) [`5e188e8`](https://github.com/graphcommerce-org/graphcommerce/commit/5e188e830dca4730c73830858f59a94e9d41ed12) - Add delete account functionality to the account section. Disabled by default and can be enabled through the config. ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
239
|
-
|
|
240
|
-
## 8.1.0-canary.38
|
|
241
|
-
|
|
242
|
-
### Minor Changes
|
|
243
|
-
|
|
244
|
-
- [#2305](https://github.com/graphcommerce-org/graphcommerce/pull/2305) [`77e8297`](https://github.com/graphcommerce-org/graphcommerce/commit/77e82976816994336c616208a651cb18ce9ea270) - Add company and vat fields to shipping and billing forms ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
245
|
-
|
|
246
|
-
## 8.1.0-canary.32
|
|
247
|
-
|
|
248
|
-
### Patch Changes
|
|
249
|
-
|
|
250
|
-
- [#2299](https://github.com/graphcommerce-org/graphcommerce/pull/2299) [`85d258a`](https://github.com/graphcommerce-org/graphcommerce/commit/85d258a0d1a48bb1b502cccba30a9844f2257814) - Solve an issue where an env variable wouldn't be coerced to a Number if a Config.graphqls value is defined as an Int/Float ([@paales](https://github.com/paales))
|
|
251
|
-
|
|
252
|
-
## 8.1.0-canary.28
|
|
253
|
-
|
|
254
|
-
### Patch Changes
|
|
255
|
-
|
|
256
114
|
- [#2292](https://github.com/graphcommerce-org/graphcommerce/pull/2292) [`6258adb`](https://github.com/graphcommerce-org/graphcommerce/commit/6258adbe294590ba52d3aaf65712cdc561f32c4c) - Be able to handle plugin runtime values values when parsing the source. Also, make sure parsed plugin sources do not return duplicate plugins. ([@paales](https://github.com/paales))
|
|
257
115
|
|
|
258
|
-
## 8.1.0-canary.10
|
|
259
|
-
|
|
260
|
-
### Patch Changes
|
|
261
|
-
|
|
262
|
-
- [#2251](https://github.com/graphcommerce-org/graphcommerce/pull/2251) [`bc6a9b4`](https://github.com/graphcommerce-org/graphcommerce/commit/bc6a9b4a7e9769977e98449a418bb239f92ec544) - When creating a release PR, make sure it is created against the main branch so it can be directly merged. ([@paales](https://github.com/paales))
|
|
263
|
-
|
|
264
|
-
## 8.1.0-canary.9
|
|
265
|
-
|
|
266
|
-
### Patch Changes
|
|
267
|
-
|
|
268
|
-
- [#2223](https://github.com/graphcommerce-org/graphcommerce/pull/2223) [`4f7fe02`](https://github.com/graphcommerce-org/graphcommerce/commit/4f7fe02c6f0f017d7a52559df1972551eb0cba47) - Added robotsAllow to storefront config ([@bramvanderholst](https://github.com/bramvanderholst))
|
|
269
|
-
|
|
270
|
-
## 8.1.0-canary.8
|
|
271
|
-
|
|
272
|
-
### Patch Changes
|
|
273
|
-
|
|
274
|
-
- [#2247](https://github.com/graphcommerce-org/graphcommerce/pull/2247) [`5153904`](https://github.com/graphcommerce-org/graphcommerce/commit/51539045cb3e14424141a65a1fd89216d3ee6fc2) - Added PRIVATE_ADDITIONAL_DEPENDENCIES to enable packages that we do not want to have in the examples directory but we do want to be able to demo. ([@paales](https://github.com/paales))
|
|
275
|
-
|
|
276
|
-
- [#2247](https://github.com/graphcommerce-org/graphcommerce/pull/2247) [`6831040`](https://github.com/graphcommerce-org/graphcommerce/commit/68310401448b7b42b53757db4a84de4a01e35aa2) - reduce bundlesize of @apollo/client ([@paales](https://github.com/paales))
|
|
277
|
-
|
|
278
|
-
- [#2247](https://github.com/graphcommerce-org/graphcommerce/pull/2247) [`81c6c81`](https://github.com/graphcommerce-org/graphcommerce/commit/81c6c81e1b4a31df3c400a3ee4311bdf2b46a2b5) - Solved an issue where the plugins would be generated with the wrong path ([@paales](https://github.com/paales))
|
|
279
|
-
|
|
280
116
|
- [#2247](https://github.com/graphcommerce-org/graphcommerce/pull/2247) [`6831040`](https://github.com/graphcommerce-org/graphcommerce/commit/68310401448b7b42b53757db4a84de4a01e35aa2) - Suppress warning where a dependency is an expression, Added uglify-es and long as the dependencies couldn’t be found ([@paales](https://github.com/paales))
|
|
281
117
|
|
|
118
|
+
- [#2418](https://github.com/graphcommerce-org/graphcommerce/pull/2418) [`22a0ef2`](https://github.com/graphcommerce-org/graphcommerce/commit/22a0ef2ffd2841d050a413a885ff54331e1e7ebf) - Solve peer dependency issues for webpack and framer-motion ([@paales](https://github.com/paales))
|
|
119
|
+
|
|
282
120
|
- [#2247](https://github.com/graphcommerce-org/graphcommerce/pull/2247) [`cfc0f4e`](https://github.com/graphcommerce-org/graphcommerce/commit/cfc0f4e015f3b3a7348b882eb7440222b3e26a07) - Make sure the interceptors are generated before the typecheck is ran. ([@paales](https://github.com/paales))
|
|
283
121
|
|
|
284
|
-
- [#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))
|
|
122
|
+
- [#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))
|
|
285
123
|
|
|
286
124
|
- [#2247](https://github.com/graphcommerce-org/graphcommerce/pull/2247) [`3f9d8f5`](https://github.com/graphcommerce-org/graphcommerce/commit/3f9d8f5ee9437fa90589ebd8ba8d1e790006b6ae) - Added better interceptor comments and link to original files ([@paales](https://github.com/paales))
|
|
287
125
|
|
|
288
|
-
## 8.1.0-canary.5
|
|
289
|
-
|
|
290
|
-
### Minor Changes
|
|
291
|
-
|
|
292
|
-
- [#2226](https://github.com/graphcommerce-org/graphcommerce/pull/2226) [`8939df2`](https://github.com/graphcommerce-org/graphcommerce/commit/8939df22eda57e681f83076707e856700f8b2e21) - Big improvements to the plugin system: Typescript validated, deeper resolution, new configuration object, replace plugins, and more ifConfig options.
|
|
293
|
-
|
|
294
|
-
1. Plugins now use TypeScript's `"moduleSuffixes": [".interceptor", ""]` [functionality](https://www.typescriptlang.org/tsconfig#moduleSuffixes) which means that plugins now correctly resolve via TypeScript. So if you _go to reference_ in VSCode (or any other editor), you go to the interceptor directly and see which plugins are applied there. This also means that plugins are automatically checked during build (and will fail if there are errors).
|
|
295
|
-
2. The exported type of an _intercepted component_ now has the types of all plugins applied. This means that plugins can modify the props of components (and is still validated with TypeScript). To make this work a plugin must always forward props to the `<Prev>` to ensure that values are correctly passed on.
|
|
296
|
-
3. Plugins will now always be applied to deepest resolved path. This means that a plugin automatically applies to internal usages as well. This thus means that plugins do not need to be written with an internal path, but can keep the parent path. Istead of writing `@graphcommerce/magento-cart-items/components/RemoveItemFromCart/RemoveItemFromCartFab` you can now write `@graphcommerce/magento-cart-items`.
|
|
297
|
-
4. A new configuration object for plugins is created instead of separate exports (the legacy format is still supported though):
|
|
298
|
-
|
|
299
|
-
```tsx
|
|
300
|
-
export const config: PluginConfig = {
|
|
301
|
-
type: 'component'
|
|
302
|
-
module: '@graphcommerce/magento-product',
|
|
303
|
-
ifConfig: 'demoMode',
|
|
304
|
-
}
|
|
305
|
-
```
|
|
306
|
-
|
|
307
|
-
This also means that the _name of the export_ dictates the name of the component/function the plugin is applied.
|
|
308
|
-
|
|
309
|
-
5. We now support replace plugins (`type: 'replace'`), which allow you to replace the original component/function/const completely (and type checked of course).
|
|
310
|
-
|
|
311
|
-
```tsx
|
|
312
|
-
import { ProductPageNameProps } from '@graphcommerce/magento-product'
|
|
313
|
-
import { PluginConfig } from '@graphcommerce/next-config'
|
|
314
|
-
|
|
315
|
-
export const config: PluginConfig = {
|
|
316
|
-
type: 'replace',
|
|
317
|
-
module: '@graphcommerce/magento-product',
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
export function ProductPageName(props: ProductPageNameProps) {
|
|
321
|
-
const { product } = props
|
|
322
|
-
return <div>REPLACEMENT {product.url_key}</div>
|
|
323
|
-
}
|
|
324
|
-
```
|
|
325
|
-
|
|
326
|
-
Plugin files can now have multiple exports for the same configuration. So next to the `ProductPageName` you can also have a `ProductPagePrice` export for example in the same file.
|
|
327
|
-
|
|
328
|
-
6. We now support `ifConfig` tuple which allows you to apply a plugin only if a certain configuration is set.
|
|
329
|
-
|
|
330
|
-
```tsx
|
|
331
|
-
export const config: PluginConfig = {
|
|
332
|
-
type: 'replace',
|
|
333
|
-
module: '@graphcommerce/magento-product',
|
|
334
|
-
ifConfig: ['theme', 'my-theme'],
|
|
335
|
-
}
|
|
336
|
-
```
|
|
337
|
-
|
|
338
|
-
This allows you to support multiple builds with different plugins applied. For example one build with `GC_THEME=my-theme` and another with `GC_THEME=my-other-theme`. ([@paales](https://github.com/paales))
|
|
339
|
-
|
|
340
|
-
## 8.0.6-canary.4
|
|
341
|
-
|
|
342
|
-
### Patch Changes
|
|
343
|
-
|
|
344
|
-
- [#2227](https://github.com/graphcommerce-org/graphcommerce/pull/2227) [`d597719`](https://github.com/graphcommerce-org/graphcommerce/commit/d597719baaabbe079660ac063fd021d871831511) - Added option to change sort order (ASC / DESC) for sort options (Name, price, position etc) on catalog and search pages. ([@FrankHarland](https://github.com/FrankHarland))
|
|
345
|
-
|
|
346
|
-
## 8.0.6-canary.2
|
|
347
|
-
|
|
348
|
-
### Patch Changes
|
|
349
|
-
|
|
350
|
-
- [#2234](https://github.com/graphcommerce-org/graphcommerce/pull/2234) [`0767bc4`](https://github.com/graphcommerce-org/graphcommerce/commit/0767bc40f7b596209f24ca4e745ff0441f3275c9) - Upgrade input components to no longer use muiRegister, which improves INP scores ([@FrankHarland](https://github.com/FrankHarland))
|
|
351
|
-
|
|
352
|
-
## 8.0.6-canary.1
|
|
353
|
-
|
|
354
|
-
### Patch Changes
|
|
355
|
-
|
|
356
|
-
- [#2213](https://github.com/graphcommerce-org/graphcommerce/pull/2213) [`9b8349f`](https://github.com/graphcommerce-org/graphcommerce/commit/9b8349f0001a786f9b1666f050ae226316bd16f3) - Removed the ProductPage query from the examples directory as it isn't used anymore ([@paales](https://github.com/paales))
|
|
357
|
-
|
|
358
|
-
## 8.0.6-canary.0
|
|
359
|
-
|
|
360
|
-
### Patch Changes
|
|
361
|
-
|
|
362
|
-
- [#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))
|
|
363
|
-
|
|
364
126
|
## 8.0.5
|
|
365
127
|
|
|
366
128
|
### Patch Changes
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { GraphCommerceConfig } from '../../src/generated/config'
|
|
2
2
|
import { findPlugins } from '../../src/interceptors/findPlugins'
|
|
3
|
-
|
|
4
3
|
const projectRoot = `${process.cwd()}/examples/magento-graphcms`
|
|
5
4
|
it('finds plugins', () => {
|
|
6
5
|
const fakeconfig = {
|
|
@@ -13,8 +12,7 @@ it('finds plugins', () => {
|
|
|
13
12
|
const disabled = plugins.filter((p) => !p.enabled)
|
|
14
13
|
const enabled = plugins.filter((p) => p.enabled)
|
|
15
14
|
expect(errors).toMatchInlineSnapshot('[]')
|
|
16
|
-
expect(enabled).toMatchInlineSnapshot(
|
|
17
|
-
`
|
|
15
|
+
expect(enabled).toMatchInlineSnapshot(`
|
|
18
16
|
[
|
|
19
17
|
{
|
|
20
18
|
"enabled": true,
|
|
@@ -518,6 +516,14 @@ it('finds plugins', () => {
|
|
|
518
516
|
"targetModule": "@graphcommerce/graphql",
|
|
519
517
|
"type": "component",
|
|
520
518
|
},
|
|
519
|
+
{
|
|
520
|
+
"enabled": true,
|
|
521
|
+
"sourceExport": "graphqlConfig",
|
|
522
|
+
"sourceModule": "@graphcommerce/magento-store/plugins/magentoStoreGraphqlConfig",
|
|
523
|
+
"targetExport": "graphqlConfig",
|
|
524
|
+
"targetModule": "@graphcommerce/graphql",
|
|
525
|
+
"type": "function",
|
|
526
|
+
},
|
|
521
527
|
{
|
|
522
528
|
"enabled": true,
|
|
523
529
|
"sourceExport": "meshConfig",
|
|
@@ -543,9 +549,9 @@ it('finds plugins', () => {
|
|
|
543
549
|
"type": "function",
|
|
544
550
|
},
|
|
545
551
|
]
|
|
546
|
-
|
|
547
|
-
)
|
|
548
|
-
|
|
552
|
+
`)
|
|
553
|
+
expect(disabled).toMatchInlineSnapshot(
|
|
554
|
+
`
|
|
549
555
|
[
|
|
550
556
|
{
|
|
551
557
|
"enabled": false,
|
|
@@ -746,5 +752,6 @@ it('finds plugins', () => {
|
|
|
746
752
|
"type": "component",
|
|
747
753
|
},
|
|
748
754
|
]
|
|
749
|
-
|
|
755
|
+
`,
|
|
756
|
+
)
|
|
750
757
|
})
|
|
@@ -57,7 +57,7 @@ function withGraphCommerce(nextConfig, cwd = process.cwd()) {
|
|
|
57
57
|
...nextConfig.images,
|
|
58
58
|
remotePatterns: [
|
|
59
59
|
{ hostname: new URL(graphcommerceConfig.magentoEndpoint).hostname },
|
|
60
|
-
{ hostname: '
|
|
60
|
+
{ hostname: '**.graphassets.com' },
|
|
61
61
|
{ hostname: '*.graphcommerce.org' },
|
|
62
62
|
...(nextConfig.images?.remotePatterns ?? []),
|
|
63
63
|
],
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/next-config",
|
|
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
|
"type": "commonjs",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"types": "src/index.ts",
|
package/src/withGraphCommerce.ts
CHANGED
|
@@ -71,7 +71,7 @@ export function withGraphCommerce(nextConfig: NextConfig, cwd: string = process.
|
|
|
71
71
|
...nextConfig.images,
|
|
72
72
|
remotePatterns: [
|
|
73
73
|
{ hostname: new URL(graphcommerceConfig.magentoEndpoint).hostname },
|
|
74
|
-
{ hostname: '
|
|
74
|
+
{ hostname: '**.graphassets.com' },
|
|
75
75
|
{ hostname: '*.graphcommerce.org' },
|
|
76
76
|
...(nextConfig.images?.remotePatterns ?? []),
|
|
77
77
|
],
|