@graphcommerce/graphql-codegen-near-operation-file 9.0.0-canary.100 → 9.0.0-canary.103
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 +3 -932
- package/dist/directive/injectable.js +0 -10
- package/dist/fragment-resolver.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +5 -5
- package/src/directive/env.ts +1 -1
- package/src/directive/injectable.ts +3 -12
- package/src/fragment-resolver.ts +12 -9
- package/src/index.ts +7 -5
- package/src/resolve-document-imports.ts +10 -6
- package/src/utils.ts +3 -2
package/CHANGELOG.md
CHANGED
@@ -1,156 +1,10 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
-
## 9.0.0-canary.
|
3
|
+
## 9.0.0-canary.103
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
## 9.0.0-canary.98
|
8
|
-
|
9
|
-
## 9.0.0-canary.97
|
10
|
-
|
11
|
-
## 9.0.0-canary.96
|
12
|
-
|
13
|
-
## 9.0.0-canary.95
|
14
|
-
|
15
|
-
## 9.0.0-canary.94
|
16
|
-
|
17
|
-
## 9.0.0-canary.93
|
18
|
-
|
19
|
-
## 9.0.0-canary.92
|
20
|
-
|
21
|
-
## 9.0.0-canary.91
|
22
|
-
|
23
|
-
## 9.0.0-canary.90
|
24
|
-
|
25
|
-
## 9.0.0-canary.89
|
26
|
-
|
27
|
-
## 9.0.0-canary.88
|
28
|
-
|
29
|
-
## 9.0.0-canary.87
|
30
|
-
|
31
|
-
## 9.0.0-canary.86
|
32
|
-
|
33
|
-
## 9.0.0-canary.85
|
34
|
-
|
35
|
-
## 9.0.0-canary.84
|
36
|
-
|
37
|
-
## 9.0.0-canary.83
|
38
|
-
|
39
|
-
## 9.0.0-canary.82
|
40
|
-
|
41
|
-
## 9.0.0-canary.81
|
42
|
-
|
43
|
-
## 9.0.0-canary.80
|
44
|
-
|
45
|
-
## 9.0.0-canary.79
|
46
|
-
|
47
|
-
## 9.0.0-canary.78
|
48
|
-
|
49
|
-
## 9.0.0-canary.77
|
50
|
-
|
51
|
-
## 9.0.0-canary.76
|
52
|
-
|
53
|
-
## 9.0.0-canary.75
|
54
|
-
|
55
|
-
## 9.0.0-canary.74
|
56
|
-
|
57
|
-
## 9.0.0-canary.73
|
58
|
-
|
59
|
-
## 9.0.0-canary.72
|
60
|
-
|
61
|
-
## 9.0.0-canary.71
|
62
|
-
|
63
|
-
## 9.0.0-canary.70
|
64
|
-
|
65
|
-
## 9.0.0-canary.69
|
66
|
-
|
67
|
-
## 9.0.0-canary.68
|
68
|
-
|
69
|
-
## 9.0.0-canary.67
|
70
|
-
|
71
|
-
## 9.0.0-canary.66
|
72
|
-
|
73
|
-
## 9.0.0-canary.65
|
74
|
-
|
75
|
-
## 9.0.0-canary.64
|
76
|
-
|
77
|
-
## 9.0.0-canary.63
|
78
|
-
|
79
|
-
## 9.0.0-canary.62
|
80
|
-
|
81
|
-
## 9.0.0-canary.61
|
82
|
-
|
83
|
-
## 9.0.0-canary.60
|
84
|
-
|
85
|
-
## 9.0.0-canary.59
|
86
|
-
|
87
|
-
## 9.0.0-canary.58
|
88
|
-
|
89
|
-
## 9.0.0-canary.57
|
90
|
-
|
91
|
-
## 9.0.0-canary.56
|
92
|
-
|
93
|
-
## 9.0.0-canary.55
|
94
|
-
|
95
|
-
## 9.0.0-canary.54
|
96
|
-
|
97
|
-
## 8.1.0-canary.53
|
98
|
-
|
99
|
-
## 8.1.0-canary.52
|
100
|
-
|
101
|
-
## 8.1.0-canary.51
|
102
|
-
|
103
|
-
## 8.1.0-canary.50
|
104
|
-
|
105
|
-
## 8.1.0-canary.49
|
106
|
-
|
107
|
-
## 8.1.0-canary.48
|
108
|
-
|
109
|
-
## 8.1.0-canary.47
|
110
|
-
|
111
|
-
## 8.1.0-canary.46
|
112
|
-
|
113
|
-
## 8.1.0-canary.45
|
114
|
-
|
115
|
-
## 8.1.0-canary.44
|
116
|
-
|
117
|
-
## 8.1.0-canary.43
|
118
|
-
|
119
|
-
## 8.1.0-canary.42
|
120
|
-
|
121
|
-
## 8.1.0-canary.41
|
122
|
-
|
123
|
-
## 8.1.0-canary.40
|
124
|
-
|
125
|
-
## 8.1.0-canary.39
|
126
|
-
|
127
|
-
## 8.1.0-canary.38
|
128
|
-
|
129
|
-
## 8.1.0-canary.37
|
130
|
-
|
131
|
-
## 8.1.0-canary.36
|
132
|
-
|
133
|
-
## 8.1.0-canary.35
|
134
|
-
|
135
|
-
## 8.1.0-canary.34
|
136
|
-
|
137
|
-
## 8.1.0-canary.33
|
138
|
-
|
139
|
-
## 8.1.0-canary.32
|
140
|
-
|
141
|
-
## 8.1.0-canary.31
|
142
|
-
|
143
|
-
## 8.1.0-canary.30
|
144
|
-
|
145
|
-
## 8.1.0-canary.29
|
146
|
-
|
147
|
-
## 8.1.0-canary.28
|
148
|
-
|
149
|
-
## 8.1.0-canary.27
|
150
|
-
|
151
|
-
## 8.1.0-canary.26
|
5
|
+
### Patch Changes
|
152
6
|
|
153
|
-
|
7
|
+
- [#2421](https://github.com/graphcommerce-org/graphcommerce/pull/2421) [`d500643`](https://github.com/graphcommerce-org/graphcommerce/commit/d500643138799b6db1610cb10a1d065d6219d8ea) - Resolve peer dependency issues so we get a clean install ([@paales](https://github.com/paales))
|
154
8
|
|
155
9
|
## 8.1.0-canary.24
|
156
10
|
|
@@ -158,346 +12,12 @@
|
|
158
12
|
|
159
13
|
- [#2289](https://github.com/graphcommerce-org/graphcommerce/pull/2289) [`d2a6f58`](https://github.com/graphcommerce-org/graphcommerce/commit/d2a6f58276abadb132473d4da2d7d25e0b996106) - Do not require fragments to be marked @injectable but always accept @inject directives. ([@paales](https://github.com/paales))
|
160
14
|
|
161
|
-
## 8.1.0-canary.23
|
162
|
-
|
163
|
-
## 8.1.0-canary.22
|
164
|
-
|
165
|
-
## 8.1.0-canary.21
|
166
|
-
|
167
|
-
## 8.1.0-canary.20
|
168
|
-
|
169
|
-
## 8.1.0-canary.19
|
170
|
-
|
171
|
-
## 8.1.0-canary.18
|
172
|
-
|
173
|
-
## 8.1.0-canary.17
|
174
|
-
|
175
|
-
## 8.1.0-canary.16
|
176
|
-
|
177
|
-
## 8.1.0-canary.15
|
178
|
-
|
179
|
-
## 8.1.0-canary.14
|
180
|
-
|
181
|
-
## 8.1.0-canary.13
|
182
|
-
|
183
|
-
## 8.1.0-canary.12
|
184
|
-
|
185
|
-
## 8.1.0-canary.11
|
186
|
-
|
187
|
-
## 8.1.0-canary.10
|
188
|
-
|
189
|
-
## 8.1.0-canary.9
|
190
|
-
|
191
|
-
## 8.1.0-canary.8
|
192
|
-
|
193
|
-
## 8.1.0-canary.7
|
194
|
-
|
195
|
-
## 8.1.0-canary.6
|
196
|
-
|
197
|
-
## 8.1.0-canary.5
|
198
|
-
|
199
|
-
## 8.0.6-canary.4
|
200
|
-
|
201
|
-
## 8.0.6-canary.3
|
202
|
-
|
203
|
-
## 8.0.6-canary.2
|
204
|
-
|
205
|
-
## 8.0.6-canary.1
|
206
|
-
|
207
|
-
## 8.0.6-canary.0
|
208
|
-
|
209
|
-
## 8.0.5
|
210
|
-
|
211
|
-
## 8.0.5-canary.10
|
212
|
-
|
213
|
-
## 8.0.5-canary.9
|
214
|
-
|
215
|
-
## 8.0.5-canary.8
|
216
|
-
|
217
|
-
## 8.0.5-canary.7
|
218
|
-
|
219
|
-
## 8.0.5-canary.6
|
220
|
-
|
221
|
-
## 8.0.5-canary.5
|
222
|
-
|
223
|
-
## 8.0.5-canary.4
|
224
|
-
|
225
|
-
## 8.0.5-canary.3
|
226
|
-
|
227
|
-
## 8.0.5-canary.2
|
228
|
-
|
229
|
-
## 8.0.5-canary.1
|
230
|
-
|
231
|
-
## 8.0.5-canary.0
|
232
|
-
|
233
|
-
## 8.0.4
|
234
|
-
|
235
|
-
## 8.0.4-canary.1
|
236
|
-
|
237
|
-
## 8.0.4-canary.0
|
238
|
-
|
239
|
-
## 8.0.3
|
240
|
-
|
241
|
-
## 8.0.3-canary.6
|
242
|
-
|
243
|
-
## 8.0.3-canary.5
|
244
|
-
|
245
|
-
## 8.0.3-canary.4
|
246
|
-
|
247
|
-
## 8.0.3-canary.3
|
248
|
-
|
249
|
-
## 8.0.3-canary.2
|
250
|
-
|
251
|
-
## 8.0.3-canary.1
|
252
|
-
|
253
|
-
## 8.0.3-canary.0
|
254
|
-
|
255
|
-
## 8.0.2
|
256
|
-
|
257
|
-
## 8.0.2-canary.3
|
258
|
-
|
259
|
-
## 8.0.2-canary.2
|
260
|
-
|
261
|
-
## 8.0.2-canary.1
|
262
|
-
|
263
|
-
## 8.0.2-canary.0
|
264
|
-
|
265
|
-
## 8.0.1
|
266
|
-
|
267
|
-
## 8.0.1-canary.4
|
268
|
-
|
269
|
-
## 8.0.1-canary.3
|
270
|
-
|
271
|
-
## 8.0.1-canary.2
|
272
|
-
|
273
|
-
## 8.0.1-canary.1
|
274
|
-
|
275
|
-
## 8.0.1-canary.0
|
276
|
-
|
277
|
-
## 8.0.0
|
278
|
-
|
279
|
-
## 8.0.0-canary.100
|
280
|
-
|
281
|
-
## 8.0.0-canary.99
|
282
|
-
|
283
|
-
## 8.0.0-canary.98
|
284
|
-
|
285
|
-
## 8.0.0-canary.97
|
286
|
-
|
287
|
-
## 8.0.0-canary.96
|
288
|
-
|
289
|
-
## 8.0.0-canary.95
|
290
|
-
|
291
|
-
## 8.0.0-canary.94
|
292
|
-
|
293
|
-
## 8.0.0-canary.93
|
294
|
-
|
295
|
-
## 8.0.0-canary.92
|
296
|
-
|
297
|
-
## 8.0.0-canary.91
|
298
|
-
|
299
|
-
## 8.0.0-canary.90
|
300
|
-
|
301
|
-
## 8.0.0-canary.89
|
302
|
-
|
303
|
-
## 8.0.0-canary.88
|
304
|
-
|
305
|
-
## 8.0.0-canary.87
|
306
|
-
|
307
|
-
## 8.0.0-canary.86
|
308
|
-
|
309
|
-
## 8.0.0-canary.85
|
310
|
-
|
311
|
-
## 8.0.0-canary.84
|
312
|
-
|
313
|
-
## 8.0.0-canary.83
|
314
|
-
|
315
|
-
## 8.0.0-canary.82
|
316
|
-
|
317
|
-
## 8.0.0-canary.81
|
318
|
-
|
319
|
-
## 8.0.0-canary.80
|
320
|
-
|
321
|
-
## 8.0.0-canary.79
|
322
|
-
|
323
|
-
## 8.0.0-canary.78
|
324
|
-
|
325
|
-
## 8.0.0-canary.77
|
326
|
-
|
327
|
-
## 8.0.0-canary.76
|
328
|
-
|
329
|
-
## 8.0.0-canary.75
|
330
|
-
|
331
|
-
## 8.0.0-canary.74
|
332
|
-
|
333
|
-
## 8.0.0-canary.73
|
334
|
-
|
335
|
-
## 8.0.0-canary.72
|
336
|
-
|
337
|
-
## 8.0.0-canary.71
|
338
|
-
|
339
|
-
## 8.0.0-canary.70
|
340
|
-
|
341
|
-
## 8.0.0-canary.69
|
342
|
-
|
343
|
-
## 7.1.0-canary.68
|
344
|
-
|
345
|
-
## 7.1.0-canary.67
|
346
|
-
|
347
|
-
## 7.1.0-canary.66
|
348
|
-
|
349
|
-
## 7.1.0-canary.65
|
350
|
-
|
351
|
-
## 7.1.0-canary.64
|
352
|
-
|
353
|
-
## 7.1.0-canary.63
|
354
|
-
|
355
|
-
## 7.1.0-canary.62
|
356
|
-
|
357
|
-
## 7.1.0-canary.61
|
358
|
-
|
359
|
-
## 7.1.0-canary.60
|
360
|
-
|
361
|
-
## 7.1.0-canary.59
|
362
|
-
|
363
|
-
## 7.1.0-canary.58
|
364
|
-
|
365
|
-
## 7.1.0-canary.57
|
366
|
-
|
367
|
-
## 7.1.0-canary.56
|
368
|
-
|
369
|
-
## 7.1.0-canary.55
|
370
|
-
|
371
|
-
## 7.1.0-canary.54
|
372
|
-
|
373
|
-
## 7.1.0-canary.53
|
374
|
-
|
375
|
-
## 7.1.0-canary.52
|
376
|
-
|
377
|
-
## 7.1.0-canary.51
|
378
|
-
|
379
|
-
## 7.1.0-canary.50
|
380
|
-
|
381
|
-
## 7.1.0-canary.49
|
382
|
-
|
383
|
-
## 7.1.0-canary.48
|
384
|
-
|
385
|
-
## 7.1.0-canary.47
|
386
|
-
|
387
|
-
## 7.1.0-canary.46
|
388
|
-
|
389
|
-
## 7.1.0-canary.45
|
390
|
-
|
391
|
-
## 7.1.0-canary.38
|
392
|
-
|
393
|
-
## 7.1.0-canary.37
|
394
|
-
|
395
|
-
## 7.1.0-canary.36
|
396
|
-
|
397
|
-
## 7.1.0-canary.35
|
398
|
-
|
399
|
-
## 7.1.0-canary.34
|
400
|
-
|
401
|
-
## 7.1.0-canary.33
|
402
|
-
|
403
|
-
## 7.1.0-canary.32
|
404
|
-
|
405
|
-
## 7.1.0-canary.31
|
406
|
-
|
407
|
-
## 7.1.0-canary.30
|
408
|
-
|
409
|
-
## 7.1.0-canary.29
|
410
|
-
|
411
|
-
## 7.1.0-canary.28
|
412
|
-
|
413
|
-
## 7.1.0-canary.27
|
414
|
-
|
415
|
-
## 7.1.0-canary.26
|
416
|
-
|
417
|
-
## 7.1.0-canary.25
|
418
|
-
|
419
|
-
## 7.1.0-canary.24
|
420
|
-
|
421
|
-
## 7.1.0-canary.23
|
422
|
-
|
423
|
-
## 7.1.0-canary.22
|
424
|
-
|
425
|
-
## 7.1.0-canary.21
|
426
|
-
|
427
|
-
## 7.1.0-canary.20
|
428
|
-
|
429
|
-
## 7.1.0-canary.19
|
430
|
-
|
431
|
-
## 7.1.0-canary.18
|
432
|
-
|
433
|
-
## 7.1.0-canary.17
|
434
|
-
|
435
|
-
## 7.1.0-canary.16
|
436
|
-
|
437
|
-
## 7.1.0-canary.15
|
438
|
-
|
439
|
-
## 7.1.0-canary.14
|
440
|
-
|
441
|
-
## 7.1.0-canary.13
|
442
|
-
|
443
|
-
## 7.1.0-canary.12
|
444
|
-
|
445
|
-
## 7.1.0-canary.11
|
446
|
-
|
447
|
-
## 7.1.0-canary.10
|
448
|
-
|
449
|
-
## 7.1.0-canary.9
|
450
|
-
|
451
|
-
## 7.1.0-canary.8
|
452
|
-
|
453
|
-
## 7.0.2-canary.7
|
454
|
-
|
455
|
-
## 7.0.2-canary.6
|
456
|
-
|
457
|
-
## 7.0.2-canary.5
|
458
|
-
|
459
15
|
## 7.0.1
|
460
16
|
|
461
17
|
### Patch Changes
|
462
18
|
|
463
19
|
- [#2047](https://github.com/graphcommerce-org/graphcommerce/pull/2047) [`136580b39`](https://github.com/graphcommerce-org/graphcommerce/commit/136580b39e3cffdd07e3fa087e049bd532c3e8f1) - Updated all dependencies to the latest version where possible. ([@paales](https://github.com/paales))
|
464
20
|
|
465
|
-
## 7.0.1-canary.15
|
466
|
-
|
467
|
-
## 7.0.1-canary.14
|
468
|
-
|
469
|
-
## 7.0.1-canary.13
|
470
|
-
|
471
|
-
## 7.0.1-canary.12
|
472
|
-
|
473
|
-
## 7.0.1-canary.11
|
474
|
-
|
475
|
-
## 7.0.1-canary.10
|
476
|
-
|
477
|
-
## 7.0.1-canary.9
|
478
|
-
|
479
|
-
## 7.0.1-canary.8
|
480
|
-
|
481
|
-
## 7.0.1-canary.7
|
482
|
-
|
483
|
-
## 7.0.1-canary.6
|
484
|
-
|
485
|
-
## 7.0.1-canary.5
|
486
|
-
|
487
|
-
## 7.0.1-canary.4
|
488
|
-
|
489
|
-
## 7.0.1-canary.3
|
490
|
-
|
491
|
-
## 7.0.1-canary.2
|
492
|
-
|
493
|
-
## 7.0.1-canary.1
|
494
|
-
|
495
|
-
## 7.0.1-canary.0
|
496
|
-
|
497
|
-
### Patch Changes
|
498
|
-
|
499
|
-
- [#2047](https://github.com/graphcommerce-org/graphcommerce/pull/2047) [`136580b39`](https://github.com/graphcommerce-org/graphcommerce/commit/136580b39e3cffdd07e3fa087e049bd532c3e8f1) - Updated all dependencies to the latest version where possible. ([@paales](https://github.com/paales))
|
500
|
-
|
501
21
|
## 7.0.0
|
502
22
|
|
503
23
|
### Patch Changes
|
@@ -508,408 +28,12 @@
|
|
508
28
|
|
509
29
|
- [#1982](https://github.com/graphcommerce-org/graphcommerce/pull/1982) [`e1fab2f6d`](https://github.com/graphcommerce-org/graphcommerce/commit/e1fab2f6d8f57d0488d8a915596d5c19cb7718e6) - Better detection what the package roots are when a custom node_modules directory is used ([@paales](https://github.com/paales))
|
510
30
|
|
511
|
-
## 6.2.0-canary.98
|
512
|
-
|
513
|
-
## 6.2.0-canary.97
|
514
|
-
|
515
|
-
## 6.2.0-canary.96
|
516
|
-
|
517
|
-
## 6.2.0-canary.95
|
518
|
-
|
519
|
-
## 6.2.0-canary.94
|
520
|
-
|
521
|
-
## 6.2.0-canary.93
|
522
|
-
|
523
|
-
## 6.2.0-canary.92
|
524
|
-
|
525
|
-
## 6.2.0-canary.91
|
526
|
-
|
527
|
-
## 6.2.0-canary.90
|
528
|
-
|
529
|
-
## 6.2.0-canary.89
|
530
|
-
|
531
|
-
## 6.2.0-canary.88
|
532
|
-
|
533
|
-
## 6.2.0-canary.87
|
534
|
-
|
535
|
-
## 6.2.0-canary.86
|
536
|
-
|
537
|
-
## 6.2.0-canary.85
|
538
|
-
|
539
|
-
## 6.2.0-canary.84
|
540
|
-
|
541
|
-
## 6.2.0-canary.83
|
542
|
-
|
543
|
-
## 6.2.0-canary.82
|
544
|
-
|
545
|
-
## 6.2.0-canary.81
|
546
|
-
|
547
|
-
## 6.2.0-canary.80
|
548
|
-
|
549
|
-
## 6.2.0-canary.79
|
550
|
-
|
551
|
-
## 6.2.0-canary.78
|
552
|
-
|
553
|
-
## 6.2.0-canary.77
|
554
|
-
|
555
|
-
## 6.2.0-canary.76
|
556
|
-
|
557
|
-
## 6.2.0-canary.75
|
558
|
-
|
559
|
-
## 6.2.0-canary.74
|
560
|
-
|
561
|
-
## 6.2.0-canary.73
|
562
|
-
|
563
|
-
## 6.2.0-canary.72
|
564
|
-
|
565
|
-
## 6.2.0-canary.71
|
566
|
-
|
567
|
-
## 6.2.0-canary.70
|
568
|
-
|
569
|
-
## 6.2.0-canary.69
|
570
|
-
|
571
|
-
### Patch Changes
|
572
|
-
|
573
|
-
- [#2012](https://github.com/graphcommerce-org/graphcommerce/pull/2012) [`1dbb3ae13`](https://github.com/graphcommerce-org/graphcommerce/commit/1dbb3ae13553992ee1ed77f375375560f28c418c) - Upgrade graphql to 16.7.1, add graphql as peer dependency ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
574
|
-
|
575
|
-
## 6.2.0-canary.68
|
576
|
-
|
577
|
-
## 6.2.0-canary.67
|
578
|
-
|
579
|
-
## 6.2.0-canary.66
|
580
|
-
|
581
|
-
## 6.2.0-canary.65
|
582
|
-
|
583
|
-
## 6.2.0-canary.64
|
584
|
-
|
585
|
-
## 6.2.0-canary.63
|
586
|
-
|
587
|
-
## 6.2.0-canary.62
|
588
|
-
|
589
|
-
## 6.2.0-canary.61
|
590
|
-
|
591
|
-
## 6.2.0-canary.60
|
592
|
-
|
593
|
-
## 6.2.0-canary.59
|
594
|
-
|
595
|
-
## 6.2.0-canary.58
|
596
|
-
|
597
|
-
## 6.2.0-canary.57
|
598
|
-
|
599
|
-
### Patch Changes
|
600
|
-
|
601
|
-
- [#1982](https://github.com/graphcommerce-org/graphcommerce/pull/1982) [`e1fab2f6d`](https://github.com/graphcommerce-org/graphcommerce/commit/e1fab2f6d8f57d0488d8a915596d5c19cb7718e6) - Better detection what the package roots are when a custom node_modules directory is used ([@paales](https://github.com/paales))
|
602
|
-
|
603
|
-
## 6.2.0-canary.56
|
604
|
-
|
605
|
-
## 6.2.0-canary.55
|
606
|
-
|
607
|
-
## 6.2.0-canary.54
|
608
|
-
|
609
|
-
## 6.2.0-canary.53
|
610
|
-
|
611
|
-
## 6.2.0-canary.52
|
612
|
-
|
613
|
-
## 6.2.0-canary.51
|
614
|
-
|
615
|
-
## 6.2.0-canary.50
|
616
|
-
|
617
|
-
## 6.2.0-canary.49
|
618
|
-
|
619
|
-
## 6.2.0-canary.48
|
620
|
-
|
621
|
-
## 6.2.0-canary.47
|
622
|
-
|
623
|
-
## 6.2.0-canary.46
|
624
|
-
|
625
|
-
## 6.2.0-canary.45
|
626
|
-
|
627
|
-
## 6.2.0-canary.44
|
628
|
-
|
629
|
-
## 6.2.0-canary.43
|
630
|
-
|
631
|
-
## 6.2.0-canary.42
|
632
|
-
|
633
|
-
## 6.2.0-canary.41
|
634
|
-
|
635
|
-
### Patch Changes
|
636
|
-
|
637
|
-
- [#1960](https://github.com/graphcommerce-org/graphcommerce/pull/1960) [`86e14569b`](https://github.com/graphcommerce-org/graphcommerce/commit/86e14569b1f68f73be7f93b614e36b382c5debff) - Updated to the latest release of GraphQL codegen and solve compatibility issues with our own generator ([@paales](https://github.com/paales))
|
638
|
-
|
639
|
-
## 6.2.0-canary.40
|
640
|
-
|
641
|
-
## 6.2.0-canary.39
|
642
|
-
|
643
|
-
## 6.2.0-canary.38
|
644
|
-
|
645
|
-
## 6.2.0-canary.37
|
646
|
-
|
647
|
-
## 6.2.0-canary.36
|
648
|
-
|
649
|
-
## 6.2.0-canary.35
|
650
|
-
|
651
|
-
## 6.2.0-canary.34
|
652
|
-
|
653
|
-
## 6.2.0-canary.33
|
654
|
-
|
655
|
-
## 6.2.0-canary.32
|
656
|
-
|
657
|
-
## 6.2.0-canary.31
|
658
|
-
|
659
|
-
## 6.2.0-canary.30
|
660
|
-
|
661
|
-
## 6.2.0-canary.29
|
662
|
-
|
663
|
-
## 6.2.0-canary.28
|
664
|
-
|
665
|
-
## 6.2.0-canary.27
|
666
|
-
|
667
|
-
## 6.2.0-canary.26
|
668
|
-
|
669
|
-
## 6.2.0-canary.25
|
670
|
-
|
671
|
-
## 6.2.0-canary.24
|
672
|
-
|
673
|
-
## 6.2.0-canary.23
|
674
|
-
|
675
|
-
## 6.2.0-canary.22
|
676
|
-
|
677
|
-
## 6.2.0-canary.21
|
678
|
-
|
679
|
-
## 6.2.0-canary.20
|
680
|
-
|
681
|
-
## 6.2.0-canary.19
|
682
|
-
|
683
|
-
## 6.2.0-canary.18
|
684
|
-
|
685
|
-
## 6.2.0-canary.17
|
686
|
-
|
687
|
-
## 6.2.0-canary.16
|
688
|
-
|
689
|
-
## 6.2.0-canary.15
|
690
|
-
|
691
|
-
## 6.2.0-canary.14
|
692
|
-
|
693
|
-
## 6.2.0-canary.13
|
694
|
-
|
695
|
-
## 6.2.0-canary.12
|
696
|
-
|
697
|
-
## 6.2.0-canary.11
|
698
|
-
|
699
|
-
## 6.2.0-canary.10
|
700
|
-
|
701
|
-
## 6.2.0-canary.9
|
702
|
-
|
703
|
-
## 6.2.0-canary.8
|
704
|
-
|
705
|
-
## 6.2.0-canary.7
|
706
|
-
|
707
|
-
## 6.2.0-canary.6
|
708
|
-
|
709
|
-
## 6.1.1-canary.5
|
710
|
-
|
711
|
-
## 6.1.1-canary.4
|
712
|
-
|
713
|
-
## 6.1.1-canary.3
|
714
|
-
|
715
|
-
## 6.1.1-canary.2
|
716
|
-
|
717
|
-
## 6.1.1-canary.1
|
718
|
-
|
719
|
-
## 6.1.1-canary.0
|
720
|
-
|
721
|
-
## 6.1.0
|
722
|
-
|
723
|
-
## 6.0.2-canary.22
|
724
|
-
|
725
|
-
## 6.0.2-canary.21
|
726
|
-
|
727
|
-
## 6.0.2-canary.20
|
728
|
-
|
729
|
-
## 6.0.2-canary.19
|
730
|
-
|
731
|
-
## 6.0.2-canary.18
|
732
|
-
|
733
|
-
## 6.0.2-canary.17
|
734
|
-
|
735
|
-
## 6.0.2-canary.16
|
736
|
-
|
737
|
-
## 6.0.2-canary.15
|
738
|
-
|
739
|
-
## 6.0.2-canary.14
|
740
|
-
|
741
|
-
## 6.0.2-canary.13
|
742
|
-
|
743
|
-
## 6.0.2-canary.12
|
744
|
-
|
745
|
-
## 6.0.2-canary.11
|
746
|
-
|
747
|
-
## 6.0.2-canary.10
|
748
|
-
|
749
|
-
## 6.0.2-canary.9
|
750
|
-
|
751
|
-
## 6.0.2-canary.8
|
752
|
-
|
753
|
-
## 6.0.2-canary.7
|
754
|
-
|
755
|
-
## 6.0.2-canary.6
|
756
|
-
|
757
|
-
## 6.0.2-canary.5
|
758
|
-
|
759
|
-
## 6.0.2-canary.4
|
760
|
-
|
761
|
-
## 6.0.2-canary.3
|
762
|
-
|
763
|
-
## 6.0.2-canary.2
|
764
|
-
|
765
|
-
## 6.0.2-canary.1
|
766
|
-
|
767
|
-
## 6.0.2-canary.0
|
768
|
-
|
769
31
|
## 6.0.1
|
770
32
|
|
771
33
|
### Patch Changes
|
772
34
|
|
773
35
|
- [#1854](https://github.com/graphcommerce-org/graphcommerce/pull/1854) [`30e51025b`](https://github.com/graphcommerce-org/graphcommerce/commit/30e51025b64b8ace49b54979c18c6fa5b6ff0a10) - GraphQL Codegen would throw a very unhelpful error message because of skipDocumentsValidation, will now throw a more helpful error message. ([@paales](https://github.com/paales))
|
774
36
|
|
775
|
-
## 6.0.1-canary.7
|
776
|
-
|
777
|
-
## 6.0.1-canary.6
|
778
|
-
|
779
|
-
## 6.0.1-canary.5
|
780
|
-
|
781
|
-
## 6.0.1-canary.4
|
782
|
-
|
783
|
-
## 6.0.1-canary.3
|
784
|
-
|
785
|
-
## 6.0.1-canary.2
|
786
|
-
|
787
|
-
## 6.0.1-canary.1
|
788
|
-
|
789
|
-
## 6.0.1-canary.0
|
790
|
-
|
791
|
-
### Patch Changes
|
792
|
-
|
793
|
-
- [#1854](https://github.com/graphcommerce-org/graphcommerce/pull/1854) [`30e51025b`](https://github.com/graphcommerce-org/graphcommerce/commit/30e51025b64b8ace49b54979c18c6fa5b6ff0a10) - GraphQL Codegen would throw a very unhelpful error message because of skipDocumentsValidation, will now throw a more helpful error message. ([@paales](https://github.com/paales))
|
794
|
-
|
795
|
-
## 6.0.0
|
796
|
-
|
797
|
-
## 6.0.0-canary.54
|
798
|
-
|
799
|
-
## 6.0.0-canary.53
|
800
|
-
|
801
|
-
## 6.0.0-canary.52
|
802
|
-
|
803
|
-
## 6.0.0-canary.51
|
804
|
-
|
805
|
-
## 6.0.0-canary.50
|
806
|
-
|
807
|
-
## 6.0.0-canary.49
|
808
|
-
|
809
|
-
## 6.0.0-canary.48
|
810
|
-
|
811
|
-
## 6.0.0-canary.47
|
812
|
-
|
813
|
-
## 6.0.0-canary.46
|
814
|
-
|
815
|
-
## 6.0.0-canary.45
|
816
|
-
|
817
|
-
## 6.0.0-canary.44
|
818
|
-
|
819
|
-
## 6.0.0-canary.43
|
820
|
-
|
821
|
-
## 6.0.0-canary.42
|
822
|
-
|
823
|
-
## 6.0.0-canary.41
|
824
|
-
|
825
|
-
## 6.0.0-canary.40
|
826
|
-
|
827
|
-
## 6.0.0-canary.39
|
828
|
-
|
829
|
-
## 6.0.0-canary.38
|
830
|
-
|
831
|
-
## 6.0.0-canary.37
|
832
|
-
|
833
|
-
## 6.0.0-canary.36
|
834
|
-
|
835
|
-
## 6.0.0-canary.35
|
836
|
-
|
837
|
-
## 6.0.0-canary.34
|
838
|
-
|
839
|
-
## 6.0.0-canary.33
|
840
|
-
|
841
|
-
## 6.0.0-canary.32
|
842
|
-
|
843
|
-
## 6.0.0-canary.31
|
844
|
-
|
845
|
-
## 6.0.0-canary.30
|
846
|
-
|
847
|
-
## 6.0.0-canary.29
|
848
|
-
|
849
|
-
## 6.0.0-canary.28
|
850
|
-
|
851
|
-
## 6.0.0-canary.27
|
852
|
-
|
853
|
-
## 6.0.0-canary.26
|
854
|
-
|
855
|
-
## 6.0.0-canary.25
|
856
|
-
|
857
|
-
## 6.0.0-canary.24
|
858
|
-
|
859
|
-
## 6.0.0-canary.23
|
860
|
-
|
861
|
-
## 6.0.0-canary.22
|
862
|
-
|
863
|
-
## 6.0.0-canary.21
|
864
|
-
|
865
|
-
## 6.0.0-canary.20
|
866
|
-
|
867
|
-
## 5.2.0-canary.19
|
868
|
-
|
869
|
-
## 5.2.0-canary.18
|
870
|
-
|
871
|
-
## 5.2.0-canary.17
|
872
|
-
|
873
|
-
## 5.2.0-canary.16
|
874
|
-
|
875
|
-
## 5.2.0-canary.15
|
876
|
-
|
877
|
-
## 5.2.0-canary.14
|
878
|
-
|
879
|
-
## 5.2.0-canary.13
|
880
|
-
|
881
|
-
## 5.2.0-canary.12
|
882
|
-
|
883
|
-
## 5.2.0-canary.11
|
884
|
-
|
885
|
-
## 5.2.0-canary.10
|
886
|
-
|
887
|
-
## 5.2.0-canary.9
|
888
|
-
|
889
|
-
## 5.2.0-canary.8
|
890
|
-
|
891
|
-
## 5.2.0-canary.7
|
892
|
-
|
893
|
-
## 5.2.0-canary.6
|
894
|
-
|
895
|
-
## 5.2.0-canary.5
|
896
|
-
|
897
|
-
## 5.2.0-canary.4
|
898
|
-
|
899
|
-
## 5.2.0-canary.3
|
900
|
-
|
901
|
-
## 5.2.0-canary.2
|
902
|
-
|
903
|
-
## 5.2.0-canary.1
|
904
|
-
|
905
|
-
## 5.2.0-canary.0
|
906
|
-
|
907
|
-
## 5.1.1
|
908
|
-
|
909
|
-
## 5.1.1-canary.1
|
910
|
-
|
911
|
-
## 5.1.1-canary.0
|
912
|
-
|
913
37
|
## 5.1.0
|
914
38
|
|
915
39
|
### Patch Changes
|
@@ -921,39 +45,6 @@
|
|
921
45
|
- Upgraded dependencies including type-fest and graphql-mesh
|
922
46
|
- Solved peer dependency issues ([@paales](https://github.com/paales))
|
923
47
|
|
924
|
-
## 5.1.0-canary.11
|
925
|
-
|
926
|
-
## 5.1.0-canary.10
|
927
|
-
|
928
|
-
## 5.1.0-canary.9
|
929
|
-
|
930
|
-
## 5.1.0-canary.8
|
931
|
-
|
932
|
-
## 5.1.0-canary.7
|
933
|
-
|
934
|
-
## 5.1.0-canary.6
|
935
|
-
|
936
|
-
## 5.1.0-canary.5
|
937
|
-
|
938
|
-
## 5.1.0-canary.4
|
939
|
-
|
940
|
-
## 5.1.0-canary.3
|
941
|
-
|
942
|
-
### Patch Changes
|
943
|
-
|
944
|
-
- [#1752](https://github.com/graphcommerce-org/graphcommerce/pull/1752) [`2a6a4d9ec`](https://github.com/graphcommerce-org/graphcommerce/commit/2a6a4d9ecfa1b58a66ba9b9d00016d6feda9aa95) - Updated dependencies to latest versions, except for nextjs; Solve tons of peer dependency issues.
|
945
|
-
|
946
|
-
- Updated the @mui/material package
|
947
|
-
- Removed dependencies on react-hook-form-mui and @playwright/test
|
948
|
-
- Upgraded dependencies including type-fest and graphql-mesh
|
949
|
-
- Solved peer dependency issues ([@paales](https://github.com/paales))
|
950
|
-
|
951
|
-
## 5.1.0-canary.2
|
952
|
-
|
953
|
-
## 5.1.0-canary.1
|
954
|
-
|
955
|
-
## 5.1.0-canary.0
|
956
|
-
|
957
48
|
## 5.0.0
|
958
49
|
|
959
50
|
### Major Changes
|
@@ -964,32 +55,12 @@
|
|
964
55
|
|
965
56
|
- [#1738](https://github.com/graphcommerce-org/graphcommerce/pull/1738) [`bd3a30438`](https://github.com/graphcommerce-org/graphcommerce/commit/bd3a30438cf6b69cd37a191406c8190a20e572cc) - Created directive @env(if: String!) on FRAGMENT_DEFINITION to conditionally include a fragment ([@paales](https://github.com/paales))
|
966
57
|
|
967
|
-
## 5.0.0-canary.14
|
968
|
-
|
969
|
-
## 4.0.0-canary.1
|
970
|
-
|
971
|
-
### Major Changes
|
972
|
-
|
973
|
-
- [`e4c7fe17e`](https://github.com/graphcommerce-org/graphcommerce/commit/e4c7fe17e413e37362ceae92e67f1b3a5f62d398) - Bump major version of all packages ([@paales](https://github.com/paales))
|
974
|
-
|
975
|
-
## 3.1.0-canary.0
|
976
|
-
|
977
|
-
### Minor Changes
|
978
|
-
|
979
|
-
- [#1738](https://github.com/graphcommerce-org/graphcommerce/pull/1738) [`bd3a30438`](https://github.com/graphcommerce-org/graphcommerce/commit/bd3a30438cf6b69cd37a191406c8190a20e572cc) - Created directive @env(if: String!) on FRAGMENT_DEFINITION to conditionally include a fragment ([@paales](https://github.com/paales))
|
980
|
-
|
981
58
|
## 3.0.19
|
982
59
|
|
983
60
|
### Patch Changes
|
984
61
|
|
985
62
|
- [#1702](https://github.com/graphcommerce-org/graphcommerce/pull/1702) [`abb15ef4a`](https://github.com/graphcommerce-org/graphcommerce/commit/abb15ef4a79b12eddb32cc006e5d1d31dd06ac2d) Thanks [@paales](https://github.com/paales)! - Added canary releases to GraphCommerce
|
986
63
|
|
987
|
-
## 3.0.19-canary.0
|
988
|
-
|
989
|
-
### Patch Changes
|
990
|
-
|
991
|
-
- [`abb15ef4a`](https://github.com/graphcommerce-org/graphcommerce/commit/abb15ef4a79b12eddb32cc006e5d1d31dd06ac2d) Thanks [@paales](https://github.com/paales)! - Added canary releases to GraphCommerce
|
992
|
-
|
993
64
|
## 3.0.18
|
994
65
|
|
995
66
|
### Patch Changes
|
@@ -11,16 +11,6 @@ function isFragment(document) {
|
|
11
11
|
});
|
12
12
|
return is;
|
13
13
|
}
|
14
|
-
function hasInjectableDirective(document) {
|
15
|
-
let is = false;
|
16
|
-
(0, graphql_1.visit)(document, {
|
17
|
-
Directive: (node) => {
|
18
|
-
if (!is && node.name.value === 'injectable')
|
19
|
-
is = true;
|
20
|
-
},
|
21
|
-
});
|
22
|
-
return is && isFragment;
|
23
|
-
}
|
24
14
|
function hasInjectDirective(document) {
|
25
15
|
let is = false;
|
26
16
|
(0, graphql_1.visit)(document, {
|
@@ -59,7 +59,7 @@ function buildFragmentRegistry({ generateFilePath }, { documents, config }, sche
|
|
59
59
|
const imports = getFragmentImports(possibleTypes.map((t) => t.name), fragment.name.value);
|
60
60
|
if (prev[fragment.name.value] &&
|
61
61
|
(0, graphql_1.print)(fragment) !== (0, graphql_1.print)(prev[fragment.name.value].node)) {
|
62
|
-
duplicateFragmentNames.push(`${prev[fragment.name.value]} ${prev[fragment.name.value].filePath}`);
|
62
|
+
duplicateFragmentNames.push(`${prev[fragment.name.value].node.name.value} ${prev[fragment.name.value].filePath}`);
|
63
63
|
duplicateFragmentNames.push(`${fragment.name.value} ${fragment.loc?.source.name}`);
|
64
64
|
}
|
65
65
|
prev[fragment.name.value] = {
|
package/dist/index.js
CHANGED
@@ -40,7 +40,7 @@ exports.preset = {
|
|
40
40
|
const { importAllFragmentsFrom } = options.presetConfig;
|
41
41
|
const { baseTypesPath } = options.presetConfig;
|
42
42
|
if (!baseTypesPath) {
|
43
|
-
throw new Error(
|
43
|
+
throw new Error('Preset "near-operation-file" requires you to specify "baseTypesPath" configuration and point it to your base types file (generated by "typescript" plugin)!');
|
44
44
|
}
|
45
45
|
const shouldAbsolute = !baseTypesPath.startsWith('~');
|
46
46
|
const pluginMap = {
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@graphcommerce/graphql-codegen-near-operation-file",
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
5
|
-
"version": "9.0.0-canary.
|
5
|
+
"version": "9.0.0-canary.103",
|
6
6
|
"sideEffects": false,
|
7
7
|
"type": "commonjs",
|
8
8
|
"main": "dist/index.js",
|
@@ -25,12 +25,12 @@
|
|
25
25
|
"@graphql-codegen/visitor-plugin-common": "5.3.1",
|
26
26
|
"@graphql-tools/utils": "^10.3.2",
|
27
27
|
"@types/parse-filepath": "^1.0.2",
|
28
|
+
"graphql": "^16.7.1",
|
28
29
|
"parse-filepath": "^1.0.2"
|
29
30
|
},
|
30
31
|
"peerDependencies": {
|
31
|
-
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.
|
32
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.
|
33
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.
|
34
|
-
"graphql": "^16.7.1"
|
32
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.103",
|
33
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.103",
|
34
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.103"
|
35
35
|
}
|
36
36
|
}
|
package/src/directive/env.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
/* eslint-disable react/destructuring-assignment */
|
2
|
-
import { Types } from '@graphql-codegen/plugin-helpers'
|
3
|
-
import {
|
2
|
+
import type { Types } from '@graphql-codegen/plugin-helpers'
|
3
|
+
import type { DocumentNode, FragmentSpreadNode, FragmentDefinitionNode } from 'graphql'
|
4
|
+
import { visit, Kind } from 'graphql'
|
4
5
|
|
5
6
|
function isFragment(document: DocumentNode) {
|
6
7
|
let is = false
|
@@ -12,16 +13,6 @@ function isFragment(document: DocumentNode) {
|
|
12
13
|
return is
|
13
14
|
}
|
14
15
|
|
15
|
-
function hasInjectableDirective(document: DocumentNode) {
|
16
|
-
let is = false
|
17
|
-
visit(document, {
|
18
|
-
Directive: (node) => {
|
19
|
-
if (!is && node.name.value === 'injectable') is = true
|
20
|
-
},
|
21
|
-
})
|
22
|
-
return is && isFragment
|
23
|
-
}
|
24
|
-
|
25
16
|
function hasInjectDirective(document: DocumentNode) {
|
26
17
|
let is = false
|
27
18
|
visit(document, {
|
package/src/fragment-resolver.ts
CHANGED
@@ -1,18 +1,21 @@
|
|
1
1
|
/* eslint-disable import/no-cycle */
|
2
|
-
import { Types } from '@graphql-codegen/plugin-helpers'
|
3
|
-
import {
|
4
|
-
BaseVisitor,
|
2
|
+
import type { Types } from '@graphql-codegen/plugin-helpers'
|
3
|
+
import type {
|
5
4
|
FragmentImport,
|
6
|
-
getConfigValue,
|
7
|
-
getPossibleTypes,
|
8
5
|
LoadedFragment,
|
9
6
|
ParsedConfig,
|
10
7
|
RawConfig,
|
11
8
|
ImportDeclaration,
|
9
|
+
} from '@graphql-codegen/visitor-plugin-common'
|
10
|
+
import {
|
11
|
+
BaseVisitor,
|
12
|
+
getConfigValue,
|
13
|
+
getPossibleTypes,
|
12
14
|
buildScalarsFromConfig,
|
13
15
|
} from '@graphql-codegen/visitor-plugin-common'
|
14
|
-
import { DocumentNode, FragmentDefinitionNode, GraphQLSchema
|
15
|
-
import {
|
16
|
+
import type { DocumentNode, FragmentDefinitionNode, GraphQLSchema } from 'graphql'
|
17
|
+
import { Kind, print } from 'graphql'
|
18
|
+
import type { DocumentImportResolverOptions } from './resolve-document-imports'
|
16
19
|
import { extractExternalFragmentsInUse } from './utils'
|
17
20
|
|
18
21
|
export interface NearOperationFileParsedConfig extends ParsedConfig {
|
@@ -83,7 +86,7 @@ export function buildFragmentRegistry<T>(
|
|
83
86
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
84
87
|
const fragments: FragmentDefinitionNode[] = documentRecord.document!.definitions.filter(
|
85
88
|
(d) => d.kind === Kind.FRAGMENT_DEFINITION,
|
86
|
-
)
|
89
|
+
)
|
87
90
|
|
88
91
|
if (fragments.length > 0) {
|
89
92
|
for (const fragment of fragments) {
|
@@ -108,7 +111,7 @@ export function buildFragmentRegistry<T>(
|
|
108
111
|
print(fragment) !== print(prev[fragment.name.value].node)
|
109
112
|
) {
|
110
113
|
duplicateFragmentNames.push(
|
111
|
-
`${prev[fragment.name.value]} ${prev[fragment.name.value].filePath}`,
|
114
|
+
`${prev[fragment.name.value].node.name.value} ${prev[fragment.name.value].filePath}`,
|
112
115
|
)
|
113
116
|
duplicateFragmentNames.push(`${fragment.name.value} ${fragment.loc?.source.name}`)
|
114
117
|
}
|
package/src/index.ts
CHANGED
@@ -1,15 +1,17 @@
|
|
1
1
|
import { join } from 'path'
|
2
2
|
import addPlugin from '@graphql-codegen/add'
|
3
|
-
import { Types, CodegenPlugin } from '@graphql-codegen/plugin-helpers'
|
4
|
-
import {
|
3
|
+
import type { Types, CodegenPlugin } from '@graphql-codegen/plugin-helpers'
|
4
|
+
import type {
|
5
5
|
FragmentImport,
|
6
6
|
ImportDeclaration,
|
7
7
|
ImportSource,
|
8
8
|
} from '@graphql-codegen/visitor-plugin-common'
|
9
|
-
import { FragmentDefinitionNode
|
9
|
+
import type { FragmentDefinitionNode } from 'graphql'
|
10
|
+
import { buildASTSchema, visit } from 'graphql'
|
10
11
|
import { envDirective } from './directive/env'
|
11
12
|
import { injectableDirective } from './directive/injectable'
|
12
|
-
import {
|
13
|
+
import type { DocumentImportResolverOptions } from './resolve-document-imports'
|
14
|
+
import { resolveDocumentImports } from './resolve-document-imports'
|
13
15
|
import { appendExtensionToFilePath, defineFilepathSubfolder } from './utils'
|
14
16
|
|
15
17
|
export { resolveDocumentImports }
|
@@ -182,7 +184,7 @@ export const preset: Types.OutputPreset<NearOperationFileConfig> = {
|
|
182
184
|
|
183
185
|
if (!baseTypesPath) {
|
184
186
|
throw new Error(
|
185
|
-
|
187
|
+
'Preset "near-operation-file" requires you to specify "baseTypesPath" configuration and point it to your base types file (generated by "typescript" plugin)!',
|
186
188
|
)
|
187
189
|
}
|
188
190
|
|
@@ -1,17 +1,21 @@
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
2
2
|
/* eslint-disable import/no-cycle */
|
3
3
|
import { resolve } from 'path'
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
|
4
|
+
import type { Types } from '@graphql-codegen/plugin-helpers'
|
5
|
+
import { isUsingTypes } from '@graphql-codegen/plugin-helpers'
|
6
|
+
import type {
|
7
7
|
ImportSource,
|
8
|
-
resolveImportSource,
|
9
8
|
FragmentImport,
|
10
9
|
ImportDeclaration,
|
11
10
|
LoadedFragment,
|
12
11
|
} from '@graphql-codegen/visitor-plugin-common'
|
13
|
-
import {
|
14
|
-
|
12
|
+
import {
|
13
|
+
generateImportStatement,
|
14
|
+
resolveImportSource,
|
15
|
+
} from '@graphql-codegen/visitor-plugin-common'
|
16
|
+
import type { Source } from '@graphql-tools/utils'
|
17
|
+
import type { DocumentNode, FragmentDefinitionNode, GraphQLSchema } from 'graphql'
|
18
|
+
import { visit } from 'graphql'
|
15
19
|
import buildFragmentResolver, { buildFragmentRegistry } from './fragment-resolver'
|
16
20
|
import { extractExternalFragmentsInUse } from './utils'
|
17
21
|
|
package/src/utils.ts
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
/* eslint-disable import/no-cycle */
|
2
2
|
import { join } from 'path'
|
3
|
-
import { DocumentNode,
|
3
|
+
import type { DocumentNode, FragmentSpreadNode, FragmentDefinitionNode } from 'graphql'
|
4
|
+
import { visit } from 'graphql'
|
4
5
|
import parsePath from 'parse-filepath'
|
5
|
-
import { FragmentRegistry } from './fragment-resolver'
|
6
|
+
import type { FragmentRegistry } from './fragment-resolver'
|
6
7
|
|
7
8
|
export function defineFilepathSubfolder(baseFilePath: string, folder: string) {
|
8
9
|
const parsedPath = parsePath(baseFilePath)
|