@graphcommerce/next-config 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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 10.0.1-canary.0
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2568](https://github.com/graphcommerce-org/graphcommerce/pull/2568) [`64d843e`](https://github.com/graphcommerce-org/graphcommerce/commit/64d843e4b98edbc2779ae75930d657dd7c7fdda2) - "No graphcommerce.config.js found in the project, using demo config" should have referenced 'graphcommerce.config.ts' ([@paales](https://github.com/paales))
8
+
3
9
  ## 10.0.0
4
10
 
5
11
  ### Major Changes
@@ -110,274 +116,6 @@
110
116
 
111
117
  - [#2487](https://github.com/graphcommerce-org/graphcommerce/pull/2487) [`5ffa0ee`](https://github.com/graphcommerce-org/graphcommerce/commit/5ffa0ee1d620f4f1c38bc5df36cbd527bcc43cf9) - Migrated `@graphcommerce/next-config` package to `"type": "module"` ([@paales](https://github.com/paales))
112
118
 
113
- ## 10.0.0-canary.72
114
-
115
- ## 10.0.0-canary.71
116
-
117
- ## 10.0.0-canary.70
118
-
119
- ### Major Changes
120
-
121
- - [#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))
122
-
123
- ### Minor Changes
124
-
125
- - [#2565](https://github.com/graphcommerce-org/graphcommerce/pull/2565) [`ea75841`](https://github.com/graphcommerce-org/graphcommerce/commit/ea758413b1ee8b8f2584e8f4135cb582fb87445f) - Migrated to vitest ([@paales](https://github.com/paales))
126
-
127
- ## 10.0.0-canary.69
128
-
129
- ## 10.0.0-canary.68
130
-
131
- ## 10.0.0-canary.67
132
-
133
- ## 10.0.0-canary.66
134
-
135
- ## 10.0.0-canary.65
136
-
137
- ## 10.0.0-canary.64
138
-
139
- ## 10.0.0-canary.63
140
-
141
- ## 10.0.0-canary.62
142
-
143
- ## 10.0.0-canary.61
144
-
145
- ## 10.0.0-canary.60
146
-
147
- ## 10.0.0-canary.59
148
-
149
- ## 10.0.0-canary.58
150
-
151
- ## 10.0.0-canary.57
152
-
153
- ## 10.0.0-canary.56
154
-
155
- ### Major Changes
156
-
157
- - [#2546](https://github.com/graphcommerce-org/graphcommerce/pull/2546) [`ed9332a`](https://github.com/graphcommerce-org/graphcommerce/commit/ed9332a7f78966d932041d9a7725641edc92b28d) - ## GraphCommerce 10 - Turbopack Support
158
-
159
- This major release brings full Turbopack compatibility, dramatically improving development speed.
160
-
161
- ### πŸš€ Turbopack-Compatible Interceptor System
162
-
163
- The entire plugin/interceptor system has been rewritten to work with Turbopack:
164
-
165
- - **No more Webpack plugins** - Removed `InterceptorPlugin` webpack plugin entirely
166
- - **File-based interception** - Original files are moved to `.original.tsx` and replaced with interceptor content
167
- - **Direct imports** - Interceptors import from `.original` files instead of embedding source
168
- - **New CLI commands**:
169
- - `graphcommerce codegen-interceptors` - Generate interceptor files
170
- - `graphcommerce cleanup-interceptors` - Reset interceptor system, restore original files
171
- - **Stable file hashing** - Deterministic interceptor generation for better caching
172
-
173
- ### βš™οΈ Treeshakable Configuration System
174
-
175
- Replaced Webpack `DefinePlugin`-based `import.meta.graphCommerce` with a new generated configuration system:
176
-
177
- - **New `codegen-config-values` command** - Generates TypeScript files with precise typing
178
- - **Schema-driven** - Dynamically introspects Zod schemas to determine all available properties
179
- - **Fully treeshakable** - Unused config values are eliminated from the bundle
180
- - **Type-safe** - Uses `Get<GraphCommerceConfig, 'path'>` for nested property access
181
- - **Separate files for nested objects** - Optimal treeshaking for complex configurations
182
-
183
- ### πŸ”§ withGraphCommerce Changes
184
-
185
- - **Removed** `InterceptorPlugin` - No longer needed with file-based interception
186
- - **Removed** `DefinePlugin` for `import.meta.graphCommerce` - Replaced with generated config
187
- - **Removed** `@mui/*` alias rewrites - No longer required
188
- - **Added** Turbopack loader rules for `.yaml`, `.yml`, and `.po` files
189
- - **Added** `serverExternalPackages` for all `@whatwg-node/*` packages
190
- - **Added** `optimizePackageImports` for better bundle optimization
191
- - **Added** `images.qualities: [52, 75]` for Next.js image optimization
192
-
193
- ### πŸ“¦ Lingui Configuration
194
-
195
- - **Renamed** `lingui.config.js` β†’ `lingui.config.ts` with TypeScript support
196
- - **Updated** `@graphcommerce/lingui-next/config` to TypeScript with proper exports
197
- - **Simplified** formatter options
198
-
199
- ### βš›οΈ React 19 & Next.js 16 Compatibility
200
-
201
- - Updated `RefObject<T>` types for React 19 (now includes `null` by default)
202
- - Replaced deprecated `React.VFC` with `React.FC`
203
- - Fixed `useRef` calls to require explicit initial values
204
- - Updated `MutableRefObject` usage in `framer-scroller`
205
-
206
- ### πŸ“‹ ESLint 9 Flat Config
207
-
208
- - Migrated from legacy `.eslintrc` to new flat config format (`eslint.config.mjs`)
209
- - Updated `@typescript-eslint/*` packages to v8
210
- - Fixed AST selector for `SxProps` rule (`typeParameters` β†’ `typeArguments`)
211
-
212
- ### πŸ”„ Apollo Client
213
-
214
- - Fixed deprecated `name` option β†’ `clientAwareness: { name: 'ssr' }`
215
- - Updated error handling types to accept `ApolloError | null | undefined`
216
-
217
- ### ⚠️ Breaking Changes
218
-
219
- - **Node.js 24.x not supported** - Restricted to `>=20 <24.0.0` due to [nodejs/undici#4290](https://github.com/nodejs/undici/issues/4290)
220
- - **Interceptor files changed** - Original components now at `.original.tsx`
221
- - **Config access changed** - Use generated config values instead of `import.meta.graphCommerce`
222
- - **ESLint config format** - Must use flat config (`eslint.config.mjs`)
223
- - **Lingui config** - Rename `lingui.config.js` to `lingui.config.ts`
224
-
225
- ### πŸ—‘οΈ Removed
226
-
227
- - `InterceptorPlugin` webpack plugin
228
- - `configToImportMeta` utility
229
- - Webpack `DefinePlugin` usage for config
230
- - `@mui/*` modern alias rewrites
231
- - Debug plugins (`CircularDependencyPlugin`, `DuplicatesPlugin`) ([@paales](https://github.com/paales))
232
-
233
- ## 9.1.0-canary.55
234
-
235
- ## 9.1.0-canary.54
236
-
237
- ## 9.1.0-canary.53
238
-
239
- ## 9.1.0-canary.52
240
-
241
- ## 9.1.0-canary.51
242
-
243
- ### Patch Changes
244
-
245
- - [#2537](https://github.com/graphcommerce-org/graphcommerce/pull/2537) [`6492d81`](https://github.com/graphcommerce-org/graphcommerce/commit/6492d819a858ffdc01a97e6914053e9cc14c8fc5) - Reduce exported scope of config so we dont introduce a hidden dependency on Magento ([@paales](https://github.com/paales))
246
-
247
- ## 9.1.0-canary.50
248
-
249
- ## 9.1.0-canary.49
250
-
251
- ## 9.1.0-canary.48
252
-
253
- ## 9.1.0-canary.47
254
-
255
- ## 9.1.0-canary.46
256
-
257
- ### Patch Changes
258
-
259
- - [`f6b9c0d`](https://github.com/graphcommerce-org/graphcommerce/commit/f6b9c0d2bc5f678fc6cde279f1590b30ef631f8a) - Temporarily pin prettier to 3.5.3 to fix the GraphCommerce build: https://github.com/hosseinmd/prettier-plugin-jsdoc/pull/246/files ([@paales](https://github.com/paales))
260
-
261
- ## 9.1.0-canary.45
262
-
263
- ### Patch Changes
264
-
265
- - [`f508396`](https://github.com/graphcommerce-org/graphcommerce/commit/f50839619c75c8f7b1782c079f1c25998cb9217b) - Solve issue where optional chaining for import.meta.graphCommmerce configuration paths didn't work. ([@paales](https://github.com/paales))
266
-
267
- ## 9.1.0-canary.44
268
-
269
- ## 9.1.0-canary.43
270
-
271
- ## 9.1.0-canary.42
272
-
273
- ## 9.1.0-canary.41
274
-
275
- ## 9.1.0-canary.40
276
-
277
- ## 9.1.0-canary.39
278
-
279
- ## 9.1.0-canary.38
280
-
281
- ## 9.1.0-canary.37
282
-
283
- ## 9.1.0-canary.36
284
-
285
- ## 9.1.0-canary.35
286
-
287
- ## 9.1.0-canary.34
288
-
289
- ## 9.1.0-canary.33
290
-
291
- ## 9.1.0-canary.32
292
-
293
- ## 9.1.0-canary.31
294
-
295
- ## 9.1.0-canary.30
296
-
297
- ## 9.1.0-canary.29
298
-
299
- ## 9.1.0-canary.28
300
-
301
- ## 9.1.0-canary.27
302
-
303
- ## 9.1.0-canary.26
304
-
305
- ## 9.1.0-canary.25
306
-
307
- ## 9.1.0-canary.24
308
-
309
- ## 9.1.0-canary.23
310
-
311
- ## 9.1.0-canary.22
312
-
313
- ## 9.1.0-canary.21
314
-
315
- ## 9.1.0-canary.20
316
-
317
- ## 9.1.0-canary.19
318
-
319
- ### Patch Changes
320
-
321
- - [#2499](https://github.com/graphcommerce-org/graphcommerce/pull/2499) [`9cf0450`](https://github.com/graphcommerce-org/graphcommerce/commit/9cf0450a41c4c74292b96f5795c7428f9d6a930c) - Remove the 'ignored' string when loading the graphcommerce config env variable loading, as that isn't always correct ([@paales](https://github.com/paales))
322
-
323
- ## 9.1.0-canary.18
324
-
325
- ### Patch Changes
326
-
327
- - [`62b71d5`](https://github.com/graphcommerce-org/graphcommerce/commit/62b71d5ed1d482fdb5b76dc19ac4d55fc41fb191) - Solve issue: TypeError: InMemoryLRUCache is not a constructor ([@paales](https://github.com/paales))
328
-
329
- ## 9.1.0-canary.17
330
-
331
- ## 9.1.0-canary.16
332
-
333
- ## 9.1.0-canary.15
334
-
335
- ## 9.0.4-canary.14
336
-
337
- ## 9.0.4-canary.13
338
-
339
- ## 9.0.4-canary.12
340
-
341
- ## 9.0.4-canary.11
342
-
343
- ## 9.0.4-canary.10
344
-
345
- ### Patch Changes
346
-
347
- - [#2487](https://github.com/graphcommerce-org/graphcommerce/pull/2487) [`8b25322`](https://github.com/graphcommerce-org/graphcommerce/commit/8b253224997b59ac74d72813214dfc224f526c0a) - When a dependency is optional or has peerDependenciesMeta set to optional, make sure it doesn't crash when it is not found when calling resolveDependenciesSync ([@paales](https://github.com/paales))
348
-
349
- - [#2487](https://github.com/graphcommerce-org/graphcommerce/pull/2487) [`2c79a4c`](https://github.com/graphcommerce-org/graphcommerce/commit/2c79a4cba2779bc367104ebb13e6c0d6feb6574f) - Remove redirects for `/product/$type/[url]` routes, those haven't been used for years anymore. ([@paales](https://github.com/paales))
350
-
351
- - [#2487](https://github.com/graphcommerce-org/graphcommerce/pull/2487) [`30b7356`](https://github.com/graphcommerce-org/graphcommerce/commit/30b7356790efbac0f0017ef61cb1619b920100ab) - Solve issue where withGraphCommerce had a hard dependency on Magento specific configurations ([@paales](https://github.com/paales))
352
-
353
- - [#2487](https://github.com/graphcommerce-org/graphcommerce/pull/2487) [`9825f59`](https://github.com/graphcommerce-org/graphcommerce/commit/9825f59b8626c315e6092950faceeab4311a5424) - Remove rewriteLegacyEnv as that hasn't been used for years ([@paales](https://github.com/paales))
354
-
355
- - [#2487](https://github.com/graphcommerce-org/graphcommerce/pull/2487) [`5ffa0ee`](https://github.com/graphcommerce-org/graphcommerce/commit/5ffa0ee1d620f4f1c38bc5df36cbd527bcc43cf9) - Migrated `@graphcommerce/next-config` package to `"type": "module"` ([@paales](https://github.com/paales))
356
-
357
- ## 9.0.4-canary.9
358
-
359
- ## 9.0.4-canary.8
360
-
361
- ## 9.0.4-canary.7
362
-
363
- ## 9.0.4-canary.6
364
-
365
- ## 9.0.4-canary.5
366
-
367
- ## 9.0.4-canary.4
368
-
369
- ## 9.0.4-canary.3
370
-
371
- ## 9.0.4-canary.2
372
-
373
- ## 9.0.4-canary.1
374
-
375
- ## 9.0.4-canary.0
376
-
377
- ### Patch Changes
378
-
379
- - [#2472](https://github.com/graphcommerce-org/graphcommerce/pull/2472) [`905157b`](https://github.com/graphcommerce-org/graphcommerce/commit/905157bec2c9e1dcf51b6e6f7b6913aa9be7b609) - Solve issue with chalk compilation because we’re not migrated to esm modules. ([@paales](https://github.com/paales))
380
-
381
119
  ## 9.0.0
382
120
 
383
121
  ### Major Changes
@@ -1,6 +1,6 @@
1
1
  import 'cosmiconfig';
2
2
  import '../generated/config.js';
3
- export { l as loadConfig, r as replaceConfigInString } from '../loadConfig-CZYUe1jE.js';
3
+ export { l as loadConfig, r as replaceConfigInString } from '../loadConfig-DFvwanrZ.js';
4
4
  import 'zod';
5
5
  import '@apollo/client/utilities/internal';
6
6
  import 'chalk';
package/dist/index.js CHANGED
@@ -4,8 +4,8 @@ import path from 'path';
4
4
  import { glob, sync } from 'glob';
5
5
  import { findParentPath } from './utils/findParentPath.js';
6
6
  import { spawn } from 'child_process';
7
- import { l as loadConfig, t as toEnvStr } from './loadConfig-CZYUe1jE.js';
8
- export { r as replaceConfigInString } from './loadConfig-CZYUe1jE.js';
7
+ import { l as loadConfig, t as toEnvStr } from './loadConfig-DFvwanrZ.js';
8
+ export { r as replaceConfigInString } from './loadConfig-DFvwanrZ.js';
9
9
  import { parseFileSync, parseSync as parseSync$1, transformFileSync } from '@swc/core';
10
10
  import fs$1, { writeFileSync, readFileSync, existsSync, rmSync, mkdirSync } from 'fs';
11
11
  import { resolve as resolve$2 } from 'import-meta-resolve';
@@ -284,7 +284,7 @@ function loadConfig(cwd) {
284
284
  let confFile = result?.config;
285
285
  if (!confFile) {
286
286
  if (isMainProcess)
287
- console.warn("No graphcommerce.config.js found in the project, using demo config");
287
+ console.warn("No graphcommerce.config.ts found in the project, using demo config");
288
288
  confFile = demoConfig;
289
289
  }
290
290
  confFile ||= {};
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": "10.0.0",
5
+ "version": "10.0.1-canary.0",
6
6
  "type": "module",
7
7
  "exports": {
8
8
  ".": {
@@ -63,7 +63,7 @@
63
63
  },
64
64
  "peerDependencies": {
65
65
  "@apollo/client": "*",
66
- "@graphcommerce/prettier-config-pwa": "^10.0.0",
66
+ "@graphcommerce/prettier-config-pwa": "^10.0.1-canary.0",
67
67
  "@lingui/loader": "*",
68
68
  "@lingui/macro": "*",
69
69
  "@lingui/react": "*",
@@ -19,7 +19,7 @@ export function loadConfig(cwd: string): GraphCommerceConfig {
19
19
  let confFile = result?.config
20
20
  if (!confFile) {
21
21
  if (isMainProcess)
22
- console.warn('No graphcommerce.config.js found in the project, using demo config')
22
+ console.warn('No graphcommerce.config.ts found in the project, using demo config')
23
23
  confFile = demoConfig
24
24
  }
25
25
  confFile ||= {}