@graphcommerce/docs 10.0.0-canary.68 → 10.0.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 +92 -0
- package/framework/config.md +0 -20
- package/getting-started/readme.md +2 -2
- package/package.json +2 -2
- package/upgrading/readme.md +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,97 @@
|
|
|
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))
|
|
82
|
+
|
|
83
|
+
### Patch Changes
|
|
84
|
+
|
|
85
|
+
- [#2523](https://github.com/graphcommerce-org/graphcommerce/pull/2523) [`cc5b602`](https://github.com/graphcommerce-org/graphcommerce/commit/cc5b602694e433ec13688dd3fda60e300461a7d3) - Add correct link to demo project ([@FrankHarland](https://github.com/FrankHarland))
|
|
86
|
+
|
|
87
|
+
## 10.0.0-canary.72
|
|
88
|
+
|
|
89
|
+
## 10.0.0-canary.71
|
|
90
|
+
|
|
91
|
+
## 10.0.0-canary.70
|
|
92
|
+
|
|
93
|
+
## 10.0.0-canary.69
|
|
94
|
+
|
|
3
95
|
## 10.0.0-canary.68
|
|
4
96
|
|
|
5
97
|
## 10.0.0-canary.67
|
package/framework/config.md
CHANGED
|
@@ -94,14 +94,6 @@ Examples:
|
|
|
94
94
|
- https://example.com/en
|
|
95
95
|
- https://example.com/en-US
|
|
96
96
|
|
|
97
|
-
#### hygraphEndpoint: string (required)
|
|
98
|
-
|
|
99
|
-
The Hygraph endpoint.
|
|
100
|
-
|
|
101
|
-
> Read-only endpoint that allows low latency and high read-throughput content delivery.
|
|
102
|
-
|
|
103
|
-
Project settings -> API Access -> High Performance Read-only Content API
|
|
104
|
-
|
|
105
97
|
#### magentoEndpoint: string (required)
|
|
106
98
|
|
|
107
99
|
GraphQL Magento endpoint.
|
|
@@ -205,14 +197,6 @@ Datalayer config
|
|
|
205
197
|
|
|
206
198
|
Debug configuration for GraphCommerce
|
|
207
199
|
|
|
208
|
-
#### demoMode: boolean = `true`
|
|
209
|
-
|
|
210
|
-
Enables some demo specific code that is probably not useful for a project:
|
|
211
|
-
|
|
212
|
-
- Adds the "BY GC" to the product list items.
|
|
213
|
-
- Adds "dominant_color" attribute swatches to the product list items.
|
|
214
|
-
- Creates a big list items in the product list.
|
|
215
|
-
|
|
216
200
|
#### enableGuestCheckoutLogin: boolean
|
|
217
201
|
|
|
218
202
|
Enable Guest Checkout Login:
|
|
@@ -491,10 +475,6 @@ Locale specific google reCAPTCHA key.
|
|
|
491
475
|
|
|
492
476
|
The Google Tagmanager ID to be used per locale.
|
|
493
477
|
|
|
494
|
-
#### hygraphLocales: string[]
|
|
495
|
-
|
|
496
|
-
Add a gcms-locales header to make sure queries return in a certain language, can be an array to define fallbacks.
|
|
497
|
-
|
|
498
478
|
#### linguiLocale: string
|
|
499
479
|
|
|
500
480
|
Custom locale used to load the .po files. Must be a valid locale, also used for Intl functions.
|
|
@@ -61,8 +61,8 @@ https://user-images.githubusercontent.com/1251986/227236765-503ccaac-6499-48df-b
|
|
|
61
61
|
## Page routing
|
|
62
62
|
|
|
63
63
|
GraphCommerce uses Next.js file-based
|
|
64
|
-
[page routing ↗](https://nextjs.org/docs/routing/introduction). The files
|
|
65
|
-
|
|
64
|
+
[page routing ↗](https://nextjs.org/docs/routing/introduction). The files inside
|
|
65
|
+
the `📁 /pages` directory handle routing. Modify these files to meet your
|
|
66
66
|
requirements or [build a custom page](./pages.md).
|
|
67
67
|
|
|
68
68
|
- Product pages: `📄 /p/[...url].tsx`
|
package/package.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"name": "@graphcommerce/docs",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/docs",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce/docs",
|
|
5
|
-
"version": "10.0.0
|
|
5
|
+
"version": "10.0.0",
|
|
6
6
|
"sideEffects": true,
|
|
7
7
|
"peerDependencies": {
|
|
8
|
-
"@graphcommerce/prettier-config-pwa": "^10.0.0
|
|
8
|
+
"@graphcommerce/prettier-config-pwa": "^10.0.0"
|
|
9
9
|
},
|
|
10
10
|
"prettier": "@graphcommerce/prettier-config-pwa"
|
|
11
11
|
}
|
package/upgrading/readme.md
CHANGED
|
@@ -74,6 +74,7 @@ packages:
|
|
|
74
74
|
|
|
75
75
|
- `rm yarn.lock && yarn` Remove lock and install the dependencies
|
|
76
76
|
- `yarn codegen` Converts all .graphql files to typescript files
|
|
77
|
+
- `rm -r .next`
|
|
77
78
|
- `yarn dev` Run the app
|
|
78
79
|
|
|
79
80
|
### Resolving diff issues
|
|
@@ -106,6 +107,8 @@ After resolving the diff issues, manually process upgrade instructions:
|
|
|
106
107
|
|
|
107
108
|
- [Upgrading to GraphCommerce 5 to 6](../upgrading/graphcommerce-5-to-6.md)
|
|
108
109
|
- [Upgrading to GraphCommerce 6 to 7](../upgrading/graphcommerce-6-to-7.md)
|
|
110
|
+
- [Upgrading to GraphCommerce 7 to 8](../upgrading/graphcommerce-7-to-8.md)
|
|
111
|
+
- [Upgrading to GraphCommerce 8 to 9](../upgrading/graphcommerce-8-to-9.md)
|
|
109
112
|
- [Upgrading to GraphCommerce 9 to 10](../upgrading/graphcommerce-9-to-10.md)
|
|
110
113
|
|
|
111
114
|
Run and validate your local environment:
|