@graphcommerce/magento-cms 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.
- package/CHANGELOG.md +5 -237
- package/graphql/CmsPage.graphql +3 -9
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,128 +1,12 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## 10.0.0
|
|
4
|
-
|
|
5
|
-
### Major Changes
|
|
6
|
-
|
|
7
|
-
- [#2546](https://github.com/graphcommerce-org/graphcommerce/pull/2546) [`ed9332a`](https://github.com/graphcommerce-org/graphcommerce/commit/ed9332a7f78966d932041d9a7725641edc92b28d) - ## GraphCommerce 10 - Turbopack Support
|
|
8
|
-
|
|
9
|
-
This major release brings full Turbopack compatibility, dramatically improving development speed.
|
|
10
|
-
|
|
11
|
-
### 🚀 Turbopack-Compatible Interceptor System
|
|
12
|
-
|
|
13
|
-
The entire plugin/interceptor system has been rewritten to work with Turbopack:
|
|
14
|
-
|
|
15
|
-
- **No more Webpack plugins** - Removed `InterceptorPlugin` webpack plugin entirely
|
|
16
|
-
- **File-based interception** - Original files are moved to `.original.tsx` and replaced with interceptor content
|
|
17
|
-
- **Direct imports** - Interceptors import from `.original` files instead of embedding source
|
|
18
|
-
- **New CLI commands**:
|
|
19
|
-
- `graphcommerce codegen-interceptors` - Generate interceptor files
|
|
20
|
-
- `graphcommerce cleanup-interceptors` - Reset interceptor system, restore original files
|
|
21
|
-
- **Stable file hashing** - Deterministic interceptor generation for better caching
|
|
22
|
-
|
|
23
|
-
### ⚙️ Treeshakable Configuration System
|
|
24
|
-
|
|
25
|
-
Replaced Webpack `DefinePlugin`-based `import.meta.graphCommerce` with a new generated configuration system:
|
|
26
|
-
|
|
27
|
-
- **New `codegen-config-values` command** - Generates TypeScript files with precise typing
|
|
28
|
-
- **Schema-driven** - Dynamically introspects Zod schemas to determine all available properties
|
|
29
|
-
- **Fully treeshakable** - Unused config values are eliminated from the bundle
|
|
30
|
-
- **Type-safe** - Uses `Get<GraphCommerceConfig, 'path'>` for nested property access
|
|
31
|
-
- **Separate files for nested objects** - Optimal treeshaking for complex configurations
|
|
32
|
-
|
|
33
|
-
### 🔧 withGraphCommerce Changes
|
|
34
|
-
|
|
35
|
-
- **Removed** `InterceptorPlugin` - No longer needed with file-based interception
|
|
36
|
-
- **Removed** `DefinePlugin` for `import.meta.graphCommerce` - Replaced with generated config
|
|
37
|
-
- **Removed** `@mui/*` alias rewrites - No longer required
|
|
38
|
-
- **Added** Turbopack loader rules for `.yaml`, `.yml`, and `.po` files
|
|
39
|
-
- **Added** `serverExternalPackages` for all `@whatwg-node/*` packages
|
|
40
|
-
- **Added** `optimizePackageImports` for better bundle optimization
|
|
41
|
-
- **Added** `images.qualities: [52, 75]` for Next.js image optimization
|
|
42
|
-
|
|
43
|
-
### 📦 Lingui Configuration
|
|
44
|
-
|
|
45
|
-
- **Renamed** `lingui.config.js` → `lingui.config.ts` with TypeScript support
|
|
46
|
-
- **Updated** `@graphcommerce/lingui-next/config` to TypeScript with proper exports
|
|
47
|
-
- **Simplified** formatter options
|
|
48
|
-
|
|
49
|
-
### ⚛️ React 19 & Next.js 16 Compatibility
|
|
50
|
-
|
|
51
|
-
- Updated `RefObject<T>` types for React 19 (now includes `null` by default)
|
|
52
|
-
- Replaced deprecated `React.VFC` with `React.FC`
|
|
53
|
-
- Fixed `useRef` calls to require explicit initial values
|
|
54
|
-
- Updated `MutableRefObject` usage in `framer-scroller`
|
|
55
|
-
|
|
56
|
-
### 📋 ESLint 9 Flat Config
|
|
57
|
-
|
|
58
|
-
- Migrated from legacy `.eslintrc` to new flat config format (`eslint.config.mjs`)
|
|
59
|
-
- Updated `@typescript-eslint/*` packages to v8
|
|
60
|
-
- Fixed AST selector for `SxProps` rule (`typeParameters` → `typeArguments`)
|
|
61
|
-
|
|
62
|
-
### 🔄 Apollo Client
|
|
63
|
-
|
|
64
|
-
- Fixed deprecated `name` option → `clientAwareness: { name: 'ssr' }`
|
|
65
|
-
- Updated error handling types to accept `ApolloError | null | undefined`
|
|
66
|
-
|
|
67
|
-
### ⚠️ Breaking Changes
|
|
68
|
-
|
|
69
|
-
- **Node.js 24.x not supported** - Restricted to `>=20 <24.0.0` due to [nodejs/undici#4290](https://github.com/nodejs/undici/issues/4290)
|
|
70
|
-
- **Interceptor files changed** - Original components now at `.original.tsx`
|
|
71
|
-
- **Config access changed** - Use generated config values instead of `import.meta.graphCommerce`
|
|
72
|
-
- **ESLint config format** - Must use flat config (`eslint.config.mjs`)
|
|
73
|
-
- **Lingui config** - Rename `lingui.config.js` to `lingui.config.ts`
|
|
74
|
-
|
|
75
|
-
### 🗑️ Removed
|
|
76
|
-
|
|
77
|
-
- `InterceptorPlugin` webpack plugin
|
|
78
|
-
- `configToImportMeta` utility
|
|
79
|
-
- Webpack `DefinePlugin` usage for config
|
|
80
|
-
- `@mui/*` modern alias rewrites
|
|
81
|
-
- Debug plugins (`CircularDependencyPlugin`, `DuplicatesPlugin`) ([@paales](https://github.com/paales))
|
|
3
|
+
## 10.0.1-canary.0
|
|
82
4
|
|
|
83
5
|
### Patch Changes
|
|
84
6
|
|
|
85
|
-
- [#
|
|
86
|
-
|
|
87
|
-
- [#2478](https://github.com/graphcommerce-org/graphcommerce/pull/2478) [`d09c98b`](https://github.com/graphcommerce-org/graphcommerce/commit/d09c98bba2ee83fb51b17494354a42b6c38446ab) - Added support for loading CMS Pages from Magento ([@paales](https://github.com/paales))
|
|
88
|
-
|
|
89
|
-
- [#2485](https://github.com/graphcommerce-org/graphcommerce/pull/2485) [`2e52ea3`](https://github.com/graphcommerce-org/graphcommerce/commit/2e52ea39823a15fc4ffe3ca47780f7e64ace3110) - Added cmsBlocks query and `<CmsBlock />` component. ([@paales](https://github.com/paales))
|
|
7
|
+
- [#2568](https://github.com/graphcommerce-org/graphcommerce/pull/2568) [`0188c30`](https://github.com/graphcommerce-org/graphcommerce/commit/0188c307e44a641f31c9cbe1c2d75a04e2ad5174) - Moved the CmsPage query from the route query to the cmsPage query ([@paales](https://github.com/paales))
|
|
90
8
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
## 10.0.0-canary.72
|
|
94
|
-
|
|
95
|
-
## 10.0.0-canary.71
|
|
96
|
-
|
|
97
|
-
## 10.0.0-canary.70
|
|
98
|
-
|
|
99
|
-
## 10.0.0-canary.69
|
|
100
|
-
|
|
101
|
-
## 10.0.0-canary.68
|
|
102
|
-
|
|
103
|
-
## 10.0.0-canary.67
|
|
104
|
-
|
|
105
|
-
## 10.0.0-canary.66
|
|
106
|
-
|
|
107
|
-
## 10.0.0-canary.65
|
|
108
|
-
|
|
109
|
-
## 10.0.0-canary.64
|
|
110
|
-
|
|
111
|
-
## 10.0.0-canary.63
|
|
112
|
-
|
|
113
|
-
## 10.0.0-canary.62
|
|
114
|
-
|
|
115
|
-
## 10.0.0-canary.61
|
|
116
|
-
|
|
117
|
-
## 10.0.0-canary.60
|
|
118
|
-
|
|
119
|
-
## 10.0.0-canary.59
|
|
120
|
-
|
|
121
|
-
## 10.0.0-canary.58
|
|
122
|
-
|
|
123
|
-
## 10.0.0-canary.57
|
|
124
|
-
|
|
125
|
-
## 10.0.0-canary.56
|
|
9
|
+
## 10.0.0
|
|
126
10
|
|
|
127
11
|
### Major Changes
|
|
128
12
|
|
|
@@ -202,131 +86,15 @@
|
|
|
202
86
|
- `@mui/*` modern alias rewrites
|
|
203
87
|
- Debug plugins (`CircularDependencyPlugin`, `DuplicatesPlugin`) ([@paales](https://github.com/paales))
|
|
204
88
|
|
|
205
|
-
## 9.1.0-canary.55
|
|
206
|
-
|
|
207
|
-
## 9.1.0-canary.54
|
|
208
|
-
|
|
209
|
-
## 9.1.0-canary.53
|
|
210
|
-
|
|
211
|
-
## 9.1.0-canary.52
|
|
212
|
-
|
|
213
|
-
## 9.1.0-canary.51
|
|
214
|
-
|
|
215
|
-
## 9.1.0-canary.50
|
|
216
|
-
|
|
217
|
-
## 9.1.0-canary.49
|
|
218
|
-
|
|
219
|
-
## 9.1.0-canary.48
|
|
220
|
-
|
|
221
|
-
## 9.1.0-canary.47
|
|
222
|
-
|
|
223
|
-
## 9.1.0-canary.46
|
|
224
|
-
|
|
225
|
-
## 9.1.0-canary.45
|
|
226
|
-
|
|
227
|
-
## 9.1.0-canary.44
|
|
228
|
-
|
|
229
|
-
## 9.1.0-canary.43
|
|
230
|
-
|
|
231
|
-
## 9.1.0-canary.42
|
|
232
|
-
|
|
233
|
-
## 9.1.0-canary.41
|
|
234
|
-
|
|
235
|
-
## 9.1.0-canary.40
|
|
236
|
-
|
|
237
|
-
## 9.1.0-canary.39
|
|
238
|
-
|
|
239
|
-
## 9.1.0-canary.38
|
|
240
|
-
|
|
241
|
-
## 9.1.0-canary.37
|
|
242
|
-
|
|
243
|
-
## 9.1.0-canary.36
|
|
244
|
-
|
|
245
|
-
## 9.1.0-canary.35
|
|
246
|
-
|
|
247
|
-
## 9.1.0-canary.34
|
|
248
|
-
|
|
249
|
-
## 9.1.0-canary.33
|
|
250
|
-
|
|
251
|
-
## 9.1.0-canary.32
|
|
252
|
-
|
|
253
|
-
## 9.1.0-canary.31
|
|
254
|
-
|
|
255
|
-
## 9.1.0-canary.30
|
|
256
|
-
|
|
257
|
-
## 9.1.0-canary.29
|
|
258
|
-
|
|
259
|
-
## 9.1.0-canary.28
|
|
260
|
-
|
|
261
|
-
## 9.1.0-canary.27
|
|
262
|
-
|
|
263
|
-
## 9.1.0-canary.26
|
|
264
|
-
|
|
265
|
-
## 9.1.0-canary.25
|
|
266
|
-
|
|
267
|
-
## 9.1.0-canary.24
|
|
268
|
-
|
|
269
|
-
## 9.1.0-canary.23
|
|
270
|
-
|
|
271
|
-
## 9.1.0-canary.22
|
|
272
|
-
|
|
273
|
-
## 9.1.0-canary.21
|
|
274
|
-
|
|
275
|
-
## 9.1.0-canary.20
|
|
276
|
-
|
|
277
|
-
## 9.1.0-canary.19
|
|
278
|
-
|
|
279
|
-
### Patch Changes
|
|
280
|
-
|
|
281
|
-
- [#2499](https://github.com/graphcommerce-org/graphcommerce/pull/2499) [`eb973e7`](https://github.com/graphcommerce-org/graphcommerce/commit/eb973e7dec375178e4348e74069fc0d132a091c7) - Render the no-route page (or whatever is configured) on the 404 page when running with only Magento. ([@paales](https://github.com/paales))
|
|
282
|
-
|
|
283
|
-
## 9.1.0-canary.18
|
|
284
|
-
|
|
285
|
-
## 9.1.0-canary.17
|
|
286
|
-
|
|
287
|
-
## 9.1.0-canary.16
|
|
288
|
-
|
|
289
|
-
## 9.1.0-canary.15
|
|
290
|
-
|
|
291
|
-
## 9.0.4-canary.14
|
|
292
|
-
|
|
293
|
-
## 9.0.4-canary.13
|
|
294
|
-
|
|
295
|
-
## 9.0.4-canary.12
|
|
296
|
-
|
|
297
|
-
## 9.0.4-canary.11
|
|
298
|
-
|
|
299
|
-
### Patch Changes
|
|
300
|
-
|
|
301
|
-
- [#2485](https://github.com/graphcommerce-org/graphcommerce/pull/2485) [`2e52ea3`](https://github.com/graphcommerce-org/graphcommerce/commit/2e52ea39823a15fc4ffe3ca47780f7e64ace3110) - Added cmsBlocks query and `<CmsBlock />` component. ([@paales](https://github.com/paales))
|
|
302
|
-
|
|
303
|
-
## 9.0.4-canary.10
|
|
304
|
-
|
|
305
|
-
## 9.0.4-canary.9
|
|
306
|
-
|
|
307
|
-
## 9.0.4-canary.8
|
|
308
|
-
|
|
309
|
-
## 9.0.4-canary.7
|
|
310
|
-
|
|
311
|
-
## 9.0.4-canary.6
|
|
312
|
-
|
|
313
89
|
### Patch Changes
|
|
314
90
|
|
|
315
91
|
- [#2478](https://github.com/graphcommerce-org/graphcommerce/pull/2478) [`a317221`](https://github.com/graphcommerce-org/graphcommerce/commit/a317221a6ef88dc037985398bf87926a73f7fa48) - Convert home to render the home CmsPage and add page/[…url] route for additional pages. ([@paales](https://github.com/paales))
|
|
316
92
|
|
|
317
93
|
- [#2478](https://github.com/graphcommerce-org/graphcommerce/pull/2478) [`d09c98b`](https://github.com/graphcommerce-org/graphcommerce/commit/d09c98bba2ee83fb51b17494354a42b6c38446ab) - Added support for loading CMS Pages from Magento ([@paales](https://github.com/paales))
|
|
318
94
|
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
## 9.0.4-canary.4
|
|
322
|
-
|
|
323
|
-
## 9.0.4-canary.3
|
|
324
|
-
|
|
325
|
-
## 9.0.4-canary.2
|
|
326
|
-
|
|
327
|
-
## 9.0.4-canary.1
|
|
95
|
+
- [#2485](https://github.com/graphcommerce-org/graphcommerce/pull/2485) [`2e52ea3`](https://github.com/graphcommerce-org/graphcommerce/commit/2e52ea39823a15fc4ffe3ca47780f7e64ace3110) - Added cmsBlocks query and `<CmsBlock />` component. ([@paales](https://github.com/paales))
|
|
328
96
|
|
|
329
|
-
|
|
97
|
+
- [#2499](https://github.com/graphcommerce-org/graphcommerce/pull/2499) [`eb973e7`](https://github.com/graphcommerce-org/graphcommerce/commit/eb973e7dec375178e4348e74069fc0d132a091c7) - Render the no-route page (or whatever is configured) on the 404 page when running with only Magento. ([@paales](https://github.com/paales))
|
|
330
98
|
|
|
331
99
|
## 5.1.0
|
|
332
100
|
|
package/graphql/CmsPage.graphql
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
query CmsPage($
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
relative_url
|
|
5
|
-
redirect_code
|
|
6
|
-
type
|
|
7
|
-
... on CmsPage {
|
|
8
|
-
...CmsPageFragment
|
|
9
|
-
}
|
|
1
|
+
query CmsPage($identifier: String!) {
|
|
2
|
+
cmsPage(identifier: $identifier) {
|
|
3
|
+
...CmsPageFragment
|
|
10
4
|
}
|
|
11
5
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-cms",
|
|
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": {
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
".": "./index.ts"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"@graphcommerce/eslint-config-pwa": "^10.0.0",
|
|
19
|
-
"@graphcommerce/graphql": "^10.0.0",
|
|
20
|
-
"@graphcommerce/magento-store": "^10.0.0",
|
|
21
|
-
"@graphcommerce/prettier-config-pwa": "^10.0.0",
|
|
22
|
-
"@graphcommerce/typescript-config-pwa": "^10.0.0",
|
|
18
|
+
"@graphcommerce/eslint-config-pwa": "^10.0.1-canary.0",
|
|
19
|
+
"@graphcommerce/graphql": "^10.0.1-canary.0",
|
|
20
|
+
"@graphcommerce/magento-store": "^10.0.1-canary.0",
|
|
21
|
+
"@graphcommerce/prettier-config-pwa": "^10.0.1-canary.0",
|
|
22
|
+
"@graphcommerce/typescript-config-pwa": "^10.0.1-canary.0",
|
|
23
23
|
"@lingui/core": "^5",
|
|
24
24
|
"@lingui/macro": "^5",
|
|
25
25
|
"@lingui/react": "^5",
|