@graphcommerce/magento-store 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 -282
  2. package/package.json +10 -10
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
@@ -120,288 +122,6 @@
120
122
 
121
123
  - [#2485](https://github.com/graphcommerce-org/graphcommerce/pull/2485) [`b0ec078`](https://github.com/graphcommerce-org/graphcommerce/commit/b0ec0784a0b3ca977598ded3777d23bc929072b0) - Added a CurrencySymbol component that renders the current currency symbol ([@paales](https://github.com/paales))
122
124
 
123
- ## 10.0.0-canary.72
124
-
125
- ## 10.0.0-canary.71
126
-
127
- ## 10.0.0-canary.70
128
-
129
- ### Major Changes
130
-
131
- - [#2565](https://github.com/graphcommerce-org/graphcommerce/pull/2565) [`c96dfcd`](https://github.com/graphcommerce-org/graphcommerce/commit/c96dfcdca981baca387c270ad9e2b9515cdd00cc) - Updated to Apollo Client 4 ([@paales](https://github.com/paales))
132
-
133
- ## 10.0.0-canary.69
134
-
135
- ## 10.0.0-canary.68
136
-
137
- ## 10.0.0-canary.67
138
-
139
- ## 10.0.0-canary.66
140
-
141
- ## 10.0.0-canary.65
142
-
143
- ## 10.0.0-canary.64
144
-
145
- ## 10.0.0-canary.63
146
-
147
- ## 10.0.0-canary.62
148
-
149
- ## 10.0.0-canary.61
150
-
151
- ## 10.0.0-canary.60
152
-
153
- ## 10.0.0-canary.59
154
-
155
- ## 10.0.0-canary.58
156
-
157
- ## 10.0.0-canary.57
158
-
159
- ## 10.0.0-canary.56
160
-
161
- ### Major Changes
162
-
163
- - [#2546](https://github.com/graphcommerce-org/graphcommerce/pull/2546) [`ed9332a`](https://github.com/graphcommerce-org/graphcommerce/commit/ed9332a7f78966d932041d9a7725641edc92b28d) - ## GraphCommerce 10 - Turbopack Support
164
-
165
- This major release brings full Turbopack compatibility, dramatically improving development speed.
166
-
167
- ### 🚀 Turbopack-Compatible Interceptor System
168
-
169
- The entire plugin/interceptor system has been rewritten to work with Turbopack:
170
-
171
- - **No more Webpack plugins** - Removed `InterceptorPlugin` webpack plugin entirely
172
- - **File-based interception** - Original files are moved to `.original.tsx` and replaced with interceptor content
173
- - **Direct imports** - Interceptors import from `.original` files instead of embedding source
174
- - **New CLI commands**:
175
- - `graphcommerce codegen-interceptors` - Generate interceptor files
176
- - `graphcommerce cleanup-interceptors` - Reset interceptor system, restore original files
177
- - **Stable file hashing** - Deterministic interceptor generation for better caching
178
-
179
- ### ⚙️ Treeshakable Configuration System
180
-
181
- Replaced Webpack `DefinePlugin`-based `import.meta.graphCommerce` with a new generated configuration system:
182
-
183
- - **New `codegen-config-values` command** - Generates TypeScript files with precise typing
184
- - **Schema-driven** - Dynamically introspects Zod schemas to determine all available properties
185
- - **Fully treeshakable** - Unused config values are eliminated from the bundle
186
- - **Type-safe** - Uses `Get<GraphCommerceConfig, 'path'>` for nested property access
187
- - **Separate files for nested objects** - Optimal treeshaking for complex configurations
188
-
189
- ### 🔧 withGraphCommerce Changes
190
-
191
- - **Removed** `InterceptorPlugin` - No longer needed with file-based interception
192
- - **Removed** `DefinePlugin` for `import.meta.graphCommerce` - Replaced with generated config
193
- - **Removed** `@mui/*` alias rewrites - No longer required
194
- - **Added** Turbopack loader rules for `.yaml`, `.yml`, and `.po` files
195
- - **Added** `serverExternalPackages` for all `@whatwg-node/*` packages
196
- - **Added** `optimizePackageImports` for better bundle optimization
197
- - **Added** `images.qualities: [52, 75]` for Next.js image optimization
198
-
199
- ### 📦 Lingui Configuration
200
-
201
- - **Renamed** `lingui.config.js` → `lingui.config.ts` with TypeScript support
202
- - **Updated** `@graphcommerce/lingui-next/config` to TypeScript with proper exports
203
- - **Simplified** formatter options
204
-
205
- ### ⚛️ React 19 & Next.js 16 Compatibility
206
-
207
- - Updated `RefObject<T>` types for React 19 (now includes `null` by default)
208
- - Replaced deprecated `React.VFC` with `React.FC`
209
- - Fixed `useRef` calls to require explicit initial values
210
- - Updated `MutableRefObject` usage in `framer-scroller`
211
-
212
- ### 📋 ESLint 9 Flat Config
213
-
214
- - Migrated from legacy `.eslintrc` to new flat config format (`eslint.config.mjs`)
215
- - Updated `@typescript-eslint/*` packages to v8
216
- - Fixed AST selector for `SxProps` rule (`typeParameters` → `typeArguments`)
217
-
218
- ### 🔄 Apollo Client
219
-
220
- - Fixed deprecated `name` option → `clientAwareness: { name: 'ssr' }`
221
- - Updated error handling types to accept `ApolloError | null | undefined`
222
-
223
- ### ⚠️ Breaking Changes
224
-
225
- - **Node.js 24.x not supported** - Restricted to `>=20 <24.0.0` due to [nodejs/undici#4290](https://github.com/nodejs/undici/issues/4290)
226
- - **Interceptor files changed** - Original components now at `.original.tsx`
227
- - **Config access changed** - Use generated config values instead of `import.meta.graphCommerce`
228
- - **ESLint config format** - Must use flat config (`eslint.config.mjs`)
229
- - **Lingui config** - Rename `lingui.config.js` to `lingui.config.ts`
230
-
231
- ### 🗑️ Removed
232
-
233
- - `InterceptorPlugin` webpack plugin
234
- - `configToImportMeta` utility
235
- - Webpack `DefinePlugin` usage for config
236
- - `@mui/*` modern alias rewrites
237
- - Debug plugins (`CircularDependencyPlugin`, `DuplicatesPlugin`) ([@paales](https://github.com/paales))
238
-
239
- ## 9.1.0-canary.55
240
-
241
- ## 9.1.0-canary.54
242
-
243
- ## 9.1.0-canary.53
244
-
245
- ## 9.1.0-canary.52
246
-
247
- ## 9.1.0-canary.51
248
-
249
- ### Minor Changes
250
-
251
- - [#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.
252
-
253
- 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.
254
-
255
- 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))
256
-
257
- ### Patch Changes
258
-
259
- - [#2537](https://github.com/graphcommerce-org/graphcommerce/pull/2537) [`31397f9`](https://github.com/graphcommerce-org/graphcommerce/commit/31397f9c5b2d85895d6e00732b2e3d7a99ffee53) - Solve issue where a magento store reference was added to the graphql-mesh package. ([@paales](https://github.com/paales))
260
-
261
- ## 9.1.0-canary.50
262
-
263
- ## 9.1.0-canary.49
264
-
265
- ## 9.1.0-canary.48
266
-
267
- ## 9.1.0-canary.47
268
-
269
- ## 9.1.0-canary.46
270
-
271
- ## 9.1.0-canary.45
272
-
273
- ## 9.1.0-canary.44
274
-
275
- ## 9.1.0-canary.43
276
-
277
- ## 9.1.0-canary.42
278
-
279
- ## 9.1.0-canary.41
280
-
281
- ### Patch Changes
282
-
283
- - [#2530](https://github.com/graphcommerce-org/graphcommerce/pull/2530) [`2075f33`](https://github.com/graphcommerce-org/graphcommerce/commit/2075f331eec38e894722d8ba4539d865f2db5507) - Support asNumber for Money component to easily render all prices as number ([@paales](https://github.com/paales))
284
-
285
- ## 9.1.0-canary.40
286
-
287
- ## 9.1.0-canary.39
288
-
289
- ## 9.1.0-canary.38
290
-
291
- ## 9.1.0-canary.37
292
-
293
- ## 9.1.0-canary.36
294
-
295
- ### Patch Changes
296
-
297
- - [`4c92400`](https://github.com/graphcommerce-org/graphcommerce/commit/4c92400733bb3764494298122771d5bd9bacd5a2) - Render prices with a narrowSymbol so users just see $ instead of US$ ([@paales](https://github.com/paales))
298
-
299
- - [`f0d244e`](https://github.com/graphcommerce-org/graphcommerce/commit/f0d244ef8625e9cd2fc08d8518f8afa1edb3d688) - Solve issue where the currency switcher would result in an additional query ([@paales](https://github.com/paales))
300
-
301
- ## 9.1.0-canary.35
302
-
303
- ### Patch Changes
304
-
305
- - [#2528](https://github.com/graphcommerce-org/graphcommerce/pull/2528) [`5a41fff`](https://github.com/graphcommerce-org/graphcommerce/commit/5a41fff74c38ed1f9793e48ec42cba71d1d539d1) - Use the default display currency instead of the base currency in case they differ from one another. ([@paales](https://github.com/paales))
306
-
307
- - [#2528](https://github.com/graphcommerce-org/graphcommerce/pull/2528) [`5a41fff`](https://github.com/graphcommerce-org/graphcommerce/commit/5a41fff74c38ed1f9793e48ec42cba71d1d539d1) - Store switcher now allows switching between currencies without navigating and just switches the @privateContext. ([@paales](https://github.com/paales))
308
-
309
- - [#2528](https://github.com/graphcommerce-org/graphcommerce/pull/2528) [`5a41fff`](https://github.com/graphcommerce-org/graphcommerce/commit/5a41fff74c38ed1f9793e48ec42cba71d1d539d1) - Added store switcher to the header and mobile navigation ([@paales](https://github.com/paales))
310
-
311
- ## 9.1.0-canary.34
312
-
313
- ## 9.1.0-canary.33
314
-
315
- ## 9.1.0-canary.32
316
-
317
- ## 9.1.0-canary.31
318
-
319
- ## 9.1.0-canary.30
320
-
321
- ## 9.1.0-canary.29
322
-
323
- ## 9.1.0-canary.28
324
-
325
- ## 9.1.0-canary.27
326
-
327
- ## 9.1.0-canary.26
328
-
329
- ## 9.1.0-canary.25
330
-
331
- ## 9.1.0-canary.24
332
-
333
- ## 9.1.0-canary.23
334
-
335
- ## 9.1.0-canary.22
336
-
337
- ### Patch Changes
338
-
339
- - [#2510](https://github.com/graphcommerce-org/graphcommerce/pull/2510) [`61a2e16`](https://github.com/graphcommerce-org/graphcommerce/commit/61a2e1641c75a0497406e70f2ab96c8e3f5bdd96) - Allow setting alternate store switcher URL ([@bramvanderholst](https://github.com/bramvanderholst))
340
-
341
- ## 9.1.0-canary.21
342
-
343
- ## 9.1.0-canary.20
344
-
345
- ## 9.1.0-canary.19
346
-
347
- ### Minor Changes
348
-
349
- - [#2499](https://github.com/graphcommerce-org/graphcommerce/pull/2499) [`9f040a4`](https://github.com/graphcommerce-org/graphcommerce/commit/9f040a4c0947f05f2f27e4c5078a684b04e711e1) - Implemented the `query { attributesForm }` to be able to dynamically render forms with useAttributesForm/preloadAttributesForm and AttributesFormAutoLayout, and additional utilities to handle form submissions. ([@paales](https://github.com/paales))
350
-
351
- ### Patch Changes
352
-
353
- - [#2499](https://github.com/graphcommerce-org/graphcommerce/pull/2499) [`798c122`](https://github.com/graphcommerce-org/graphcommerce/commit/798c12271e90cf0e02f021e7ad4aa088b4c7c2a3) - Use the `storeConfig.head_shortcut_icon` when configured, if not configured it will use the favicon.ico and favicon.svg from the public folder. ([@paales](https://github.com/paales))
354
-
355
- - [#2499](https://github.com/graphcommerce-org/graphcommerce/pull/2499) [`6b2b44c`](https://github.com/graphcommerce-org/graphcommerce/commit/6b2b44ca853279144d7768067f3462d4d4bf0af1) - Created a new PriceModifiers component that is implemented on CartItems, allowing different product types to render their options in a consistent manner and allow rendering a base price so that the sum in the cart is correct. ([@paales](https://github.com/paales))
356
-
357
- ## 9.1.0-canary.18
358
-
359
- ## 9.1.0-canary.17
360
-
361
- ### Minor Changes
362
-
363
- - [#2496](https://github.com/graphcommerce-org/graphcommerce/pull/2496) [`4b6a65d`](https://github.com/graphcommerce-org/graphcommerce/commit/4b6a65db089d92492e7fde28a8e32bc41f5b9103) - Added support for multiple display currencies in the frontend. Multiple currencies were already supported, but this introduces Display Currencies for viewing the cart in different currencies. ([@paales](https://github.com/paales))
364
-
365
- - [#2496](https://github.com/graphcommerce-org/graphcommerce/pull/2496) [`4b6a65d`](https://github.com/graphcommerce-org/graphcommerce/commit/4b6a65db089d92492e7fde28a8e32bc41f5b9103) - Refactored the Store Selector to be more of a form and have multiple nested toggles to switch groups, then stores and then currencies. It automatically hides features that aren't used: If only a single group is used with multiple stores only the store selector is shown. If multiple groups are used with each a single store is used, only the group selector is shown. If only a single currency is used, there is no currency selector. If multiple currencies are used, the currency selector is shown. This makes the selector more user-friendly and less cluttered. ([@paales](https://github.com/paales))
366
-
367
- ## 9.1.0-canary.16
368
-
369
- ## 9.1.0-canary.15
370
-
371
- ## 9.0.4-canary.14
372
-
373
- ## 9.0.4-canary.13
374
-
375
- ## 9.0.4-canary.12
376
-
377
- ## 9.0.4-canary.11
378
-
379
- ### Patch Changes
380
-
381
- - [#2485](https://github.com/graphcommerce-org/graphcommerce/pull/2485) [`b0ec078`](https://github.com/graphcommerce-org/graphcommerce/commit/b0ec0784a0b3ca977598ded3777d23bc929072b0) - Added a CurrencySymbol component that renders the current currency symbol ([@paales](https://github.com/paales))
382
-
383
- ## 9.0.4-canary.10
384
-
385
- ## 9.0.4-canary.9
386
-
387
- ## 9.0.4-canary.8
388
-
389
- ## 9.0.4-canary.7
390
-
391
- ## 9.0.4-canary.6
392
-
393
- ## 9.0.4-canary.5
394
-
395
- ## 9.0.4-canary.4
396
-
397
- ## 9.0.4-canary.3
398
-
399
- ## 9.0.4-canary.2
400
-
401
- ## 9.0.4-canary.1
402
-
403
- ## 9.0.4-canary.0
404
-
405
125
  ## 9.0.1
406
126
 
407
127
  ### Patch Changes
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": "10.0.0",
5
+ "version": "10.0.1-canary.0",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -19,15 +19,15 @@
19
19
  "./mesh/resolvers.ts": "./mesh/resolvers.ts"
20
20
  },
21
21
  "peerDependencies": {
22
- "@graphcommerce/ecommerce-ui": "^10.0.0",
23
- "@graphcommerce/eslint-config-pwa": "^10.0.0",
24
- "@graphcommerce/framer-utils": "^10.0.0",
25
- "@graphcommerce/graphql": "^10.0.0",
26
- "@graphcommerce/graphql-mesh": "^10.0.0",
27
- "@graphcommerce/image": "^10.0.0",
28
- "@graphcommerce/next-ui": "^10.0.0",
29
- "@graphcommerce/prettier-config-pwa": "^10.0.0",
30
- "@graphcommerce/typescript-config-pwa": "^10.0.0",
22
+ "@graphcommerce/ecommerce-ui": "^10.0.1-canary.0",
23
+ "@graphcommerce/eslint-config-pwa": "^10.0.1-canary.0",
24
+ "@graphcommerce/framer-utils": "^10.0.1-canary.0",
25
+ "@graphcommerce/graphql": "^10.0.1-canary.0",
26
+ "@graphcommerce/graphql-mesh": "^10.0.1-canary.0",
27
+ "@graphcommerce/image": "^10.0.1-canary.0",
28
+ "@graphcommerce/next-ui": "^10.0.1-canary.0",
29
+ "@graphcommerce/prettier-config-pwa": "^10.0.1-canary.0",
30
+ "@graphcommerce/typescript-config-pwa": "^10.0.1-canary.0",
31
31
  "@lingui/core": "^5",
32
32
  "@lingui/macro": "^5",
33
33
  "@lingui/react": "^5",