@graphcommerce/magento-graphql 10.0.0 → 10.0.1-canary.0

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +2 -248
  2. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Change Log
2
2
 
3
+ ## 10.0.1-canary.0
4
+
3
5
  ## 10.0.0
4
6
 
5
7
  ### Major Changes
@@ -98,254 +100,6 @@
98
100
 
99
101
  - [#2499](https://github.com/graphcommerce-org/graphcommerce/pull/2499) [`2794efe`](https://github.com/graphcommerce-org/graphcommerce/commit/2794efe3251934b9621371b94481eee11b4fb40c) - Magento <= 2.4.6: Solve issue where GraphCommerce's schema compatibility layer would define fields to be always return a value while they would never causing runtime errors which are hard to catch. ([@paales](https://github.com/paales))
100
102
 
101
- ## 10.0.0-canary.72
102
-
103
- ## 10.0.0-canary.71
104
-
105
- ## 10.0.0-canary.70
106
-
107
- ## 10.0.0-canary.69
108
-
109
- ## 10.0.0-canary.68
110
-
111
- ## 10.0.0-canary.67
112
-
113
- ## 10.0.0-canary.66
114
-
115
- ## 10.0.0-canary.65
116
-
117
- ## 10.0.0-canary.64
118
-
119
- ## 10.0.0-canary.63
120
-
121
- ## 10.0.0-canary.62
122
-
123
- ## 10.0.0-canary.61
124
-
125
- ## 10.0.0-canary.60
126
-
127
- ## 10.0.0-canary.59
128
-
129
- ## 10.0.0-canary.58
130
-
131
- ## 10.0.0-canary.57
132
-
133
- ## 10.0.0-canary.56
134
-
135
- ### Major Changes
136
-
137
- - [#2546](https://github.com/graphcommerce-org/graphcommerce/pull/2546) [`ed9332a`](https://github.com/graphcommerce-org/graphcommerce/commit/ed9332a7f78966d932041d9a7725641edc92b28d) - ## GraphCommerce 10 - Turbopack Support
138
-
139
- This major release brings full Turbopack compatibility, dramatically improving development speed.
140
-
141
- ### 🚀 Turbopack-Compatible Interceptor System
142
-
143
- The entire plugin/interceptor system has been rewritten to work with Turbopack:
144
-
145
- - **No more Webpack plugins** - Removed `InterceptorPlugin` webpack plugin entirely
146
- - **File-based interception** - Original files are moved to `.original.tsx` and replaced with interceptor content
147
- - **Direct imports** - Interceptors import from `.original` files instead of embedding source
148
- - **New CLI commands**:
149
- - `graphcommerce codegen-interceptors` - Generate interceptor files
150
- - `graphcommerce cleanup-interceptors` - Reset interceptor system, restore original files
151
- - **Stable file hashing** - Deterministic interceptor generation for better caching
152
-
153
- ### ⚙️ Treeshakable Configuration System
154
-
155
- Replaced Webpack `DefinePlugin`-based `import.meta.graphCommerce` with a new generated configuration system:
156
-
157
- - **New `codegen-config-values` command** - Generates TypeScript files with precise typing
158
- - **Schema-driven** - Dynamically introspects Zod schemas to determine all available properties
159
- - **Fully treeshakable** - Unused config values are eliminated from the bundle
160
- - **Type-safe** - Uses `Get<GraphCommerceConfig, 'path'>` for nested property access
161
- - **Separate files for nested objects** - Optimal treeshaking for complex configurations
162
-
163
- ### 🔧 withGraphCommerce Changes
164
-
165
- - **Removed** `InterceptorPlugin` - No longer needed with file-based interception
166
- - **Removed** `DefinePlugin` for `import.meta.graphCommerce` - Replaced with generated config
167
- - **Removed** `@mui/*` alias rewrites - No longer required
168
- - **Added** Turbopack loader rules for `.yaml`, `.yml`, and `.po` files
169
- - **Added** `serverExternalPackages` for all `@whatwg-node/*` packages
170
- - **Added** `optimizePackageImports` for better bundle optimization
171
- - **Added** `images.qualities: [52, 75]` for Next.js image optimization
172
-
173
- ### 📦 Lingui Configuration
174
-
175
- - **Renamed** `lingui.config.js` → `lingui.config.ts` with TypeScript support
176
- - **Updated** `@graphcommerce/lingui-next/config` to TypeScript with proper exports
177
- - **Simplified** formatter options
178
-
179
- ### ⚛️ React 19 & Next.js 16 Compatibility
180
-
181
- - Updated `RefObject<T>` types for React 19 (now includes `null` by default)
182
- - Replaced deprecated `React.VFC` with `React.FC`
183
- - Fixed `useRef` calls to require explicit initial values
184
- - Updated `MutableRefObject` usage in `framer-scroller`
185
-
186
- ### 📋 ESLint 9 Flat Config
187
-
188
- - Migrated from legacy `.eslintrc` to new flat config format (`eslint.config.mjs`)
189
- - Updated `@typescript-eslint/*` packages to v8
190
- - Fixed AST selector for `SxProps` rule (`typeParameters` → `typeArguments`)
191
-
192
- ### 🔄 Apollo Client
193
-
194
- - Fixed deprecated `name` option → `clientAwareness: { name: 'ssr' }`
195
- - Updated error handling types to accept `ApolloError | null | undefined`
196
-
197
- ### ⚠️ Breaking Changes
198
-
199
- - **Node.js 24.x not supported** - Restricted to `>=20 <24.0.0` due to [nodejs/undici#4290](https://github.com/nodejs/undici/issues/4290)
200
- - **Interceptor files changed** - Original components now at `.original.tsx`
201
- - **Config access changed** - Use generated config values instead of `import.meta.graphCommerce`
202
- - **ESLint config format** - Must use flat config (`eslint.config.mjs`)
203
- - **Lingui config** - Rename `lingui.config.js` to `lingui.config.ts`
204
-
205
- ### 🗑️ Removed
206
-
207
- - `InterceptorPlugin` webpack plugin
208
- - `configToImportMeta` utility
209
- - Webpack `DefinePlugin` usage for config
210
- - `@mui/*` modern alias rewrites
211
- - Debug plugins (`CircularDependencyPlugin`, `DuplicatesPlugin`) ([@paales](https://github.com/paales))
212
-
213
- ## 9.1.0-canary.55
214
-
215
- ## 9.1.0-canary.54
216
-
217
- ## 9.1.0-canary.53
218
-
219
- ## 9.1.0-canary.52
220
-
221
- ## 9.1.0-canary.51
222
-
223
- ### Minor Changes
224
-
225
- - [#2537](https://github.com/graphcommerce-org/graphcommerce/pull/2537) [`958dcb6`](https://github.com/graphcommerce-org/graphcommerce/commit/958dcb62d5abb3427a38e2a4583897f3e2043cc4) - Intoduce a new Product-`uid` to solve an issue where cache normalization was not working properly on the frontend when viewing products with a differen curreny, etc.
226
-
227
- Products now have a more detailed `uid` which will include the scope the product is retrieved from. For example: `NDg5MDM=?store=nl_NL&currencyCode=EUR`. This results in a better cache normalization in Apollo Client and allows for switching between scopes (store/currency/price views/accounts) without creating a broken cache state.
228
-
229
- We have implemented this with a new resolver that rewrites the `uid` passed from Magento to the Mesh Resolver, and additing additonal data to the `uid` based on the headers passed from the client. This also requires each package to implement the `getPrivateQueryContextMesh` method to retrieve the current PrivateQuery context from the GraphQL request headers. ([@paales](https://github.com/paales))
230
-
231
- ### Patch Changes
232
-
233
- - [#2537](https://github.com/graphcommerce-org/graphcommerce/pull/2537) [`3ebd5bb`](https://github.com/graphcommerce-org/graphcommerce/commit/3ebd5bbb9a63a9ee07c748173ed9f4a06ad9b04f) - Add flushMeasurePerf for product page ([@paales](https://github.com/paales))
234
-
235
- ## 9.1.0-canary.50
236
-
237
- ## 9.1.0-canary.49
238
-
239
- ## 9.1.0-canary.48
240
-
241
- ## 9.1.0-canary.47
242
-
243
- ## 9.1.0-canary.46
244
-
245
- ## 9.1.0-canary.45
246
-
247
- ## 9.1.0-canary.44
248
-
249
- ## 9.1.0-canary.43
250
-
251
- ## 9.1.0-canary.42
252
-
253
- ## 9.1.0-canary.41
254
-
255
- ## 9.1.0-canary.40
256
-
257
- ## 9.1.0-canary.39
258
-
259
- ## 9.1.0-canary.38
260
-
261
- ## 9.1.0-canary.37
262
-
263
- ## 9.1.0-canary.36
264
-
265
- ## 9.1.0-canary.35
266
-
267
- ### Patch Changes
268
-
269
- - [#2528](https://github.com/graphcommerce-org/graphcommerce/pull/2528) [`529d7a8`](https://github.com/graphcommerce-org/graphcommerce/commit/529d7a88a4e010cb3e50c1358e2ac43e80e0bf38) - Solve issue where the ApolloClient cache wasn't scoped properly causing the wrong currency to be shown when switching currency. ([@paales](https://github.com/paales))
270
-
271
- ## 9.1.0-canary.34
272
-
273
- ## 9.1.0-canary.33
274
-
275
- ## 9.1.0-canary.32
276
-
277
- ## 9.1.0-canary.31
278
-
279
- ## 9.1.0-canary.30
280
-
281
- ## 9.1.0-canary.29
282
-
283
- ## 9.1.0-canary.28
284
-
285
- ## 9.1.0-canary.27
286
-
287
- ## 9.1.0-canary.26
288
-
289
- ## 9.1.0-canary.25
290
-
291
- ## 9.1.0-canary.24
292
-
293
- ## 9.1.0-canary.23
294
-
295
- ## 9.1.0-canary.22
296
-
297
- ## 9.1.0-canary.21
298
-
299
- ## 9.1.0-canary.20
300
-
301
- ## 9.1.0-canary.19
302
-
303
- ### Patch Changes
304
-
305
- - [#2499](https://github.com/graphcommerce-org/graphcommerce/pull/2499) [`2794efe`](https://github.com/graphcommerce-org/graphcommerce/commit/2794efe3251934b9621371b94481eee11b4fb40c) - Magento <= 2.4.6: Solve issue where GraphCommerce's schema compatibility layer would define fields to be always return a value while they would never causing runtime errors which are hard to catch. ([@paales](https://github.com/paales))
306
-
307
- ## 9.1.0-canary.18
308
-
309
- ## 9.1.0-canary.17
310
-
311
- ## 9.1.0-canary.16
312
-
313
- ## 9.1.0-canary.15
314
-
315
- ### Patch Changes
316
-
317
- - [#2493](https://github.com/graphcommerce-org/graphcommerce/pull/2493) [`db56933`](https://github.com/graphcommerce-org/graphcommerce/commit/db569336dddd3e955ff0b5b00cafa25079f1adee) - Implemented order sorting for account overview and account list and implement custom resolver for Magento 2.4.5 (which is slow but works). ([@paales](https://github.com/paales))
318
-
319
- ## 9.0.4-canary.14
320
-
321
- ## 9.0.4-canary.13
322
-
323
- ## 9.0.4-canary.12
324
-
325
- ## 9.0.4-canary.11
326
-
327
- ## 9.0.4-canary.10
328
-
329
- ## 9.0.4-canary.9
330
-
331
- ## 9.0.4-canary.8
332
-
333
- ## 9.0.4-canary.7
334
-
335
- ## 9.0.4-canary.6
336
-
337
- ## 9.0.4-canary.5
338
-
339
- ## 9.0.4-canary.4
340
-
341
- ## 9.0.4-canary.3
342
-
343
- ## 9.0.4-canary.2
344
-
345
- ## 9.0.4-canary.1
346
-
347
- ## 9.0.4-canary.0
348
-
349
103
  ## 9.0.3
350
104
 
351
105
  ### Patch Changes
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-graphql",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "10.0.0",
5
+ "version": "10.0.1-canary.0",
6
6
  "sideEffects": false,
7
7
  "main": "index.ts",
8
8
  "prettier": "@graphcommerce/prettier-config-pwa",
@@ -25,10 +25,10 @@
25
25
  "./mesh/magentoOrderItemResolvers.ts": "./mesh/magentoOrderItemResolvers.ts"
26
26
  },
27
27
  "peerDependencies": {
28
- "@graphcommerce/eslint-config-pwa": "^10.0.0",
29
- "@graphcommerce/graphql": "^10.0.0",
30
- "@graphcommerce/prettier-config-pwa": "^10.0.0",
31
- "@graphcommerce/typescript-config-pwa": "^10.0.0",
28
+ "@graphcommerce/eslint-config-pwa": "^10.0.1-canary.0",
29
+ "@graphcommerce/graphql": "^10.0.1-canary.0",
30
+ "@graphcommerce/prettier-config-pwa": "^10.0.1-canary.0",
31
+ "@graphcommerce/typescript-config-pwa": "^10.0.1-canary.0",
32
32
  "graphql": "^16.0.0",
33
33
  "next": "*",
34
34
  "react": "^19.2.0",