@graphcommerce/hygraph-cli 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 CHANGED
@@ -1,274 +1,10 @@
1
1
  # @graphcommerce/hygraph-cli
2
2
 
3
- ## 9.0.0-canary.100
3
+ ## 9.0.0-canary.103
4
4
 
5
- ## 9.0.0-canary.99
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
152
-
153
- ## 8.1.0-canary.25
154
-
155
- ## 8.1.0-canary.24
156
-
157
- ## 8.1.0-canary.23
158
-
159
- ## 8.1.0-canary.22
160
-
161
- ## 8.1.0-canary.21
162
-
163
- ## 8.1.0-canary.20
164
-
165
- ## 8.1.0-canary.19
166
-
167
- ## 8.1.0-canary.18
168
-
169
- ## 8.1.0-canary.17
170
-
171
- ## 8.1.0-canary.16
172
-
173
- ## 8.1.0-canary.15
174
-
175
- ## 8.1.0-canary.14
176
-
177
- ## 8.1.0-canary.13
178
-
179
- ## 8.1.0-canary.12
180
-
181
- ## 8.1.0-canary.11
182
-
183
- ## 8.1.0-canary.10
184
-
185
- ## 8.1.0-canary.9
186
-
187
- ## 8.1.0-canary.8
188
-
189
- ## 8.1.0-canary.7
190
-
191
- ## 8.1.0-canary.6
192
-
193
- ## 8.1.0-canary.5
194
-
195
- ## 8.0.6-canary.4
196
-
197
- ## 8.0.6-canary.3
198
-
199
- ## 8.0.6-canary.2
200
-
201
- ## 8.0.6-canary.1
202
-
203
- ## 8.0.6-canary.0
204
-
205
- ## 8.0.5
206
-
207
- ## 8.0.5-canary.10
208
-
209
- ## 8.0.5-canary.9
210
-
211
- ## 8.0.5-canary.8
212
-
213
- ## 8.0.5-canary.7
214
-
215
- ## 8.0.5-canary.6
216
-
217
- ## 8.0.5-canary.5
218
-
219
- ## 8.0.5-canary.4
220
-
221
- ## 8.0.5-canary.3
222
-
223
- ## 8.0.5-canary.2
224
-
225
- ## 8.0.5-canary.1
226
-
227
- ## 8.0.5-canary.0
228
-
229
- ## 8.0.4
230
-
231
- ## 8.0.4-canary.1
232
-
233
- ## 8.0.4-canary.0
234
-
235
- ## 8.0.3
236
-
237
- ## 8.0.3-canary.6
238
-
239
- ## 8.0.3-canary.5
240
-
241
- ## 8.0.3-canary.4
242
-
243
- ## 8.0.3-canary.3
244
-
245
- ## 8.0.3-canary.2
246
-
247
- ## 8.0.3-canary.1
248
-
249
- ## 8.0.3-canary.0
250
-
251
- ## 8.0.2
252
-
253
- ## 8.0.2-canary.3
254
-
255
- ## 8.0.2-canary.2
256
-
257
- ## 8.0.2-canary.1
258
-
259
- ## 8.0.2-canary.0
260
-
261
- ## 8.0.1
262
-
263
- ## 8.0.1-canary.4
264
-
265
- ## 8.0.1-canary.3
266
-
267
- ## 8.0.1-canary.2
268
-
269
- ## 8.0.1-canary.1
5
+ ### Patch Changes
270
6
 
271
- ## 8.0.1-canary.0
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))
272
8
 
273
9
  ## 8.0.0
274
10
 
@@ -278,236 +14,12 @@
278
14
 
279
15
  - [#2169](https://github.com/graphcommerce-org/graphcommerce/pull/2169) [`eab3f0b`](https://github.com/graphcommerce-org/graphcommerce/commit/eab3f0b0b459f5b6cc4e50d787ac1e8ae545b708) - Solve issue where a Hygraph DynamicRow conditions were missing fields in the OrCondition ([@Jessevdpoel](https://github.com/Jessevdpoel))
280
16
 
281
- ## 8.0.0-canary.100
282
-
283
- ## 8.0.0-canary.99
284
-
285
- ## 8.0.0-canary.98
286
-
287
- ## 8.0.0-canary.97
288
-
289
- ## 8.0.0-canary.96
290
-
291
- ## 8.0.0-canary.95
292
-
293
- ## 8.0.0-canary.94
294
-
295
- ### Patch Changes
296
-
297
- - [#2169](https://github.com/graphcommerce-org/graphcommerce/pull/2169) [`eab3f0b`](https://github.com/graphcommerce-org/graphcommerce/commit/eab3f0b0b459f5b6cc4e50d787ac1e8ae545b708) - Solve issue where a Hygraph DynamicRow conditions were missing fields in the OrCondition ([@Jessevdpoel](https://github.com/Jessevdpoel))
298
-
299
- ## 8.0.0-canary.93
300
-
301
- ## 8.0.0-canary.92
302
-
303
- ## 8.0.0-canary.91
304
-
305
- ## 8.0.0-canary.90
306
-
307
- ## 8.0.0-canary.89
308
-
309
- ## 8.0.0-canary.88
310
-
311
- ## 8.0.0-canary.87
312
-
313
- ## 8.0.0-canary.86
314
-
315
- ## 8.0.0-canary.85
316
-
317
- ## 8.0.0-canary.84
318
-
319
- ## 8.0.0-canary.83
320
-
321
- ## 8.0.0-canary.82
322
-
323
- ## 8.0.0-canary.81
324
-
325
- ## 8.0.0-canary.80
326
-
327
- ## 8.0.0-canary.79
328
-
329
- ## 8.0.0-canary.78
330
-
331
- ## 8.0.0-canary.77
332
-
333
- ## 8.0.0-canary.76
334
-
335
- ## 8.0.0-canary.75
336
-
337
- ## 8.0.0-canary.74
338
-
339
- ## 8.0.0-canary.73
340
-
341
- ## 8.0.0-canary.72
342
-
343
- ## 8.0.0-canary.71
344
-
345
- ## 8.0.0-canary.70
346
-
347
- ## 8.0.0-canary.69
348
-
349
- ## 7.1.0-canary.68
350
-
351
- ## 7.1.0-canary.67
352
-
353
- ## 7.1.0-canary.66
354
-
355
- ## 7.1.0-canary.65
356
-
357
- ## 7.1.0-canary.64
358
-
359
- ## 7.1.0-canary.63
360
-
361
- ## 7.1.0-canary.62
362
-
363
- ## 7.1.0-canary.61
364
-
365
- ## 7.1.0-canary.60
366
-
367
- ## 7.1.0-canary.59
368
-
369
- ## 7.1.0-canary.58
370
-
371
- ## 7.1.0-canary.57
372
-
373
- ## 7.1.0-canary.56
374
-
375
- ## 7.1.0-canary.55
376
-
377
- ## 7.1.0-canary.54
378
-
379
- ## 7.1.0-canary.53
380
-
381
- ## 7.1.0-canary.52
382
-
383
- ## 7.1.0-canary.51
384
-
385
- ## 7.1.0-canary.50
386
-
387
- ## 7.1.0-canary.49
388
-
389
- ## 7.1.0-canary.48
390
-
391
- ## 7.1.0-canary.47
392
-
393
- ## 7.1.0-canary.46
394
-
395
- ## 7.1.0-canary.45
396
-
397
- ## 7.1.0-canary.38
398
-
399
- ## 7.1.0-canary.37
400
-
401
- ## 7.1.0-canary.36
402
-
403
- ## 7.1.0-canary.35
404
-
405
- ## 7.1.0-canary.34
406
-
407
- ## 7.1.0-canary.33
408
-
409
- ## 7.1.0-canary.32
410
-
411
- ## 7.1.0-canary.31
412
-
413
- ## 7.1.0-canary.30
414
-
415
- ## 7.1.0-canary.29
416
-
417
- ## 7.1.0-canary.28
418
-
419
- ## 7.1.0-canary.27
420
-
421
- ## 7.1.0-canary.26
422
-
423
- ## 7.1.0-canary.25
424
-
425
- ## 7.1.0-canary.24
426
-
427
- ## 7.1.0-canary.23
428
-
429
- ## 7.1.0-canary.22
430
-
431
- ## 7.1.0-canary.21
432
-
433
- ## 7.1.0-canary.20
434
-
435
- ### Patch Changes
436
-
437
- - [#2095](https://github.com/graphcommerce-org/graphcommerce/pull/2095) [`519531eb4`](https://github.com/graphcommerce-org/graphcommerce/commit/519531eb48bf6c5b68703509d2bd64c8dfe5b92c) - Fix Hygraph CLI (Management SDK) | Add support for updating and deleting enumerations ([@JoshuaS98](https://github.com/JoshuaS98))
438
-
439
- ## 7.1.0-canary.19
440
-
441
- ## 7.1.0-canary.18
442
-
443
- ## 7.1.0-canary.17
444
-
445
- ## 7.1.0-canary.16
446
-
447
- ## 7.1.0-canary.15
448
-
449
- ## 7.1.0-canary.14
450
-
451
- ## 7.1.0-canary.13
452
-
453
- ## 7.1.0-canary.12
454
-
455
- ## 7.1.0-canary.11
456
-
457
- ## 7.1.0-canary.10
458
-
459
- ## 7.1.0-canary.9
460
-
461
- ## 7.1.0-canary.8
462
-
463
- ## 7.0.2-canary.7
464
-
465
- ## 7.0.2-canary.6
466
-
467
- ## 7.0.2-canary.5
468
-
469
17
  ## 7.0.1
470
18
 
471
19
  ### Patch Changes
472
20
 
473
21
  - [#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))
474
22
 
475
- ## 7.0.1-canary.15
476
-
477
- ## 7.0.1-canary.14
478
-
479
- ## 7.0.1-canary.13
480
-
481
- ## 7.0.1-canary.12
482
-
483
- ## 7.0.1-canary.11
484
-
485
- ## 7.0.1-canary.10
486
-
487
- ## 7.0.1-canary.9
488
-
489
- ## 7.0.1-canary.8
490
-
491
- ## 7.0.1-canary.7
492
-
493
- ## 7.0.1-canary.6
494
-
495
- ## 7.0.1-canary.5
496
-
497
- ## 7.0.1-canary.4
498
-
499
- ## 7.0.1-canary.3
500
-
501
- ## 7.0.1-canary.2
502
-
503
- ## 7.0.1-canary.1
504
-
505
- ## 7.0.1-canary.0
506
-
507
- ### Patch Changes
508
-
509
- - [#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))
510
-
511
23
  ## 7.0.0
512
24
 
513
25
  ### Major Changes
@@ -525,205 +37,3 @@
525
37
  - [#1924](https://github.com/graphcommerce-org/graphcommerce/pull/1924) [`04581f619`](https://github.com/graphcommerce-org/graphcommerce/commit/04581f619c609f2f6ca5268ee5effb6a1db3f0eb) - Use the latest branch from graphql-mesh so that all versions are in sync ([@paales](https://github.com/paales))
526
38
 
527
39
  - [#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))
528
-
529
- ## 6.2.0-canary.98
530
-
531
- ## 6.2.0-canary.97
532
-
533
- ## 6.2.0-canary.96
534
-
535
- ## 6.2.0-canary.95
536
-
537
- ## 6.2.0-canary.94
538
-
539
- ## 6.2.0-canary.93
540
-
541
- ## 6.2.0-canary.92
542
-
543
- ## 6.2.0-canary.91
544
-
545
- ## 6.2.0-canary.90
546
-
547
- ## 6.2.0-canary.89
548
-
549
- ## 6.2.0-canary.88
550
-
551
- ## 6.2.0-canary.87
552
-
553
- ## 6.2.0-canary.86
554
-
555
- ## 6.2.0-canary.85
556
-
557
- ## 6.2.0-canary.84
558
-
559
- ## 6.2.0-canary.83
560
-
561
- ### Minor Changes
562
-
563
- - [#1938](https://github.com/graphcommerce-org/graphcommerce/pull/1938) [`5aa6558a4`](https://github.com/graphcommerce-org/graphcommerce/commit/5aa6558a4e48d8d670284802fed65a934429b0ea) - Introduce hygraph-cli for schema migrations ([@JoshuaS98](https://github.com/JoshuaS98))
564
-
565
- ## 6.2.0-canary.82
566
-
567
- ## 6.2.0-canary.81
568
-
569
- ## 6.2.0-canary.80
570
-
571
- ## 6.2.0-canary.79
572
-
573
- ## 6.2.0-canary.78
574
-
575
- ## 6.2.0-canary.77
576
-
577
- ## 6.2.0-canary.76
578
-
579
- ## 6.2.0-canary.75
580
-
581
- ## 6.2.0-canary.74
582
-
583
- ## 6.2.0-canary.73
584
-
585
- ## 6.2.0-canary.72
586
-
587
- ## 6.2.0-canary.71
588
-
589
- ## 6.2.0-canary.70
590
-
591
- ## 6.2.0-canary.69
592
-
593
- ### Patch Changes
594
-
595
- - [#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))
596
-
597
- ## 6.2.0-canary.68
598
-
599
- ## 6.2.0-canary.67
600
-
601
- ## 6.2.0-canary.66
602
-
603
- ## 6.2.0-canary.65
604
-
605
- ## 6.2.0-canary.64
606
-
607
- ## 6.2.0-canary.63
608
-
609
- ## 6.2.0-canary.62
610
-
611
- ## 6.2.0-canary.61
612
-
613
- ## 6.2.0-canary.60
614
-
615
- ## 6.2.0-canary.59
616
-
617
- ## 6.2.0-canary.58
618
-
619
- ## 6.2.0-canary.57
620
-
621
- ## 6.2.0-canary.56
622
-
623
- ## 6.2.0-canary.55
624
-
625
- ## 6.2.0-canary.54
626
-
627
- ## 6.2.0-canary.53
628
-
629
- ## 6.2.0-canary.52
630
-
631
- ## 6.2.0-canary.51
632
-
633
- ## 6.2.0-canary.50
634
-
635
- ## 6.2.0-canary.49
636
-
637
- ## 6.2.0-canary.48
638
-
639
- ## 6.2.0-canary.47
640
-
641
- ## 6.2.0-canary.46
642
-
643
- ## 6.2.0-canary.45
644
-
645
- ## 6.2.0-canary.44
646
-
647
- ## 6.2.0-canary.43
648
-
649
- ## 6.2.0-canary.42
650
-
651
- ## 6.2.0-canary.41
652
-
653
- ### Patch Changes
654
-
655
- - [#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))
656
-
657
- ## 6.2.0-canary.40
658
-
659
- ## 6.2.0-canary.39
660
-
661
- ## 6.2.0-canary.38
662
-
663
- ## 6.2.0-canary.37
664
-
665
- ## 6.2.0-canary.36
666
-
667
- ## 6.2.0-canary.35
668
-
669
- ## 6.2.0-canary.34
670
-
671
- ## 6.2.0-canary.33
672
-
673
- ## 6.2.0-canary.32
674
-
675
- ## 6.2.0-canary.31
676
-
677
- ## 6.2.0-canary.30
678
-
679
- ## 6.2.0-canary.29
680
-
681
- ## 6.2.0-canary.28
682
-
683
- ## 6.2.0-canary.27
684
-
685
- ## 6.2.0-canary.26
686
-
687
- ## 6.2.0-canary.25
688
-
689
- ## 6.2.0-canary.24
690
-
691
- ## 6.2.0-canary.23
692
-
693
- ## 6.2.0-canary.22
694
-
695
- ## 6.2.0-canary.21
696
-
697
- ## 6.2.0-canary.20
698
-
699
- ## 6.2.0-canary.19
700
-
701
- ## 6.2.0-canary.18
702
-
703
- ## 6.2.0-canary.17
704
-
705
- ## 6.2.0-canary.16
706
-
707
- ## 6.2.0-canary.15
708
-
709
- ## 6.2.0-canary.14
710
-
711
- ## 6.2.0-canary.13
712
-
713
- ### Patch Changes
714
-
715
- - [#1924](https://github.com/graphcommerce-org/graphcommerce/pull/1924) [`04581f619`](https://github.com/graphcommerce-org/graphcommerce/commit/04581f619c609f2f6ca5268ee5effb6a1db3f0eb) - Use the latest branch from graphql-mesh so that all versions are in sync ([@paales](https://github.com/paales))
716
-
717
- ## 6.2.0-canary.12
718
-
719
- ## 6.2.0-canary.11
720
-
721
- ## 6.2.0-canary.10
722
-
723
- ## 6.2.0-canary.9
724
-
725
- ## 6.2.0-canary.8
726
-
727
- ### Minor Changes
728
-
729
- - [#1912](https://github.com/graphcommerce-org/graphcommerce/pull/1912) [`a43d389e9`](https://github.com/graphcommerce-org/graphcommerce/commit/a43d389e956fe69b73238b12c98c781b7044e4bb) - Added dynamic rows feature and better performance for Hygraph ([@JoshuaS98](https://github.com/JoshuaS98))
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/hygraph-cli",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.0.0-canary.100",
5
+ "version": "9.0.0-canary.103",
6
6
  "scripts": {
7
7
  "dev": "tsc --preserveWatchOutput --watch",
8
8
  "build": "tsc",
@@ -12,23 +12,23 @@
12
12
  "main": "dist/index.js",
13
13
  "types": "src/index.ts",
14
14
  "dependencies": {
15
- "@hygraph/management-sdk": "1.2.4",
16
- "@whatwg-node/fetch": "^0.9.18",
15
+ "@hygraph/management-sdk": "1.2.5",
16
+ "@whatwg-node/fetch": "^0.9.21",
17
+ "graphql": "^16.7.1",
17
18
  "graphql-tag": "^2.12.6",
18
19
  "prompts": "^2.4.2"
19
20
  },
20
21
  "peerDependencies": {
21
22
  "@apollo/client": "^3",
22
- "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.100",
23
- "@graphcommerce/next-config": "^9.0.0-canary.100",
24
- "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.100",
25
- "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.100",
26
- "dotenv": "^16.1.4",
27
- "graphql": "^16.7.1"
23
+ "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.103",
24
+ "@graphcommerce/next-config": "^9.0.0-canary.103",
25
+ "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.103",
26
+ "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.103",
27
+ "dotenv": "^16.1.4"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/prompts": "^2.4.9",
31
- "typescript": "5.5.3"
31
+ "typescript": "5.6.2"
32
32
  },
33
33
  "sideEffects": false,
34
34
  "prettier": "@graphcommerce/prettier-config-pwa",
@@ -1,4 +1,4 @@
1
- import {
1
+ import type {
2
2
  BatchMigrationCreateComponentFieldInput,
3
3
  BatchMigrationCreateComponentInput,
4
4
  BatchMigrationCreateComponentUnionFieldInput,
@@ -10,9 +10,9 @@ import {
10
10
  BatchMigrationCreateSimpleFieldInput,
11
11
  BatchMigrationCreateStageInput,
12
12
  BatchMigrationCreateUnionFieldInput,
13
- Client,
14
13
  } from '@hygraph/management-sdk'
15
- import { Schema } from './types'
14
+ import { Client } from '@hygraph/management-sdk'
15
+ import type { Schema } from './types'
16
16
 
17
17
  interface MigrationParams {
18
18
  name?: string
@@ -1,11 +1,12 @@
1
1
  import fs from 'fs'
2
2
  import { loadConfig } from '@graphcommerce/next-config'
3
3
  import dotenv from 'dotenv'
4
- import prompts, { PromptObject } from 'prompts'
4
+ import type { PromptObject } from 'prompts'
5
+ import prompts from 'prompts'
5
6
  import { UpsertClient } from './UpsertClient'
6
7
  import * as availableMigrations from './migrations'
7
8
  import { readSchema } from './readSchema'
8
- import { MigrationFunction, Schema } from './types'
9
+ import type { MigrationFunction, Schema } from './types'
9
10
  import { getConfig } from './utils/getConfig'
10
11
  import { getEnvironment } from './utils/getEndpointUrl'
11
12
  import { getManagementClient } from './utils/getManagementClient'
@@ -1,5 +1,4 @@
1
- import { loadConfig } from '@graphcommerce/next-config'
2
- import {
1
+ import type {
3
2
  BatchMigrationCreateModelInput,
4
3
  BatchMigrationCreateComponentInput,
5
4
  BatchMigrationCreateEnumerationInput,
@@ -25,7 +24,7 @@ import {
25
24
  Client,
26
25
  } from '@hygraph/management-sdk'
27
26
  import dotenv from 'dotenv'
28
- import { Schema } from './types'
27
+ import type { Schema } from './types'
29
28
  import { graphcommerceLog, capitalize } from './utils/graphCommerceLog'
30
29
 
31
30
  dotenv.config()
@@ -1,6 +1,6 @@
1
1
  import { RelationalFieldType, SimpleFieldType, VisibilityTypes } from '@hygraph/management-sdk'
2
2
  import { migrationActionFactory } from '../migrationActionFactory'
3
- import { MigrationFunction } from '../types'
3
+ import type { MigrationFunction } from '../types'
4
4
 
5
5
  export const graphcommerce5to6: MigrationFunction = async (schema, client) => {
6
6
  const { migrationAction } = migrationActionFactory(schema, client)
@@ -1,6 +1,6 @@
1
1
  import { SimpleFieldType, VisibilityTypes } from '@hygraph/management-sdk'
2
2
  import { migrationActionFactory } from '../migrationActionFactory'
3
- import { MigrationFunction } from '../types'
3
+ import type { MigrationFunction } from '../types'
4
4
 
5
5
  export const graphcommerce6to7: MigrationFunction = async (schema, client) => {
6
6
  const { migrationAction } = migrationActionFactory(schema, client)
@@ -1,6 +1,6 @@
1
1
  import { VisibilityTypes } from '@hygraph/management-sdk'
2
2
  import { migrationActionFactory } from '../migrationActionFactory'
3
- import { MigrationFunction } from '../types'
3
+ import type { MigrationFunction } from '../types'
4
4
 
5
5
  export const graphcommerce7to8: MigrationFunction = async (schema, client) => {
6
6
  const { migrationAction } = migrationActionFactory(schema, client)
@@ -1,13 +1,12 @@
1
- import {
1
+ import type {
2
2
  BatchMigrationCreateEnumerableFieldInput,
3
3
  BatchMigrationCreateEnumerationInput,
4
4
  BatchMigrationCreateModelInput,
5
5
  BatchMigrationCreateSimpleFieldInput,
6
- SimpleFieldType,
7
- VisibilityTypes,
8
6
  } from '@hygraph/management-sdk'
7
+ import { SimpleFieldType, VisibilityTypes } from '@hygraph/management-sdk'
9
8
  import { migrationActionFactory } from '../migrationActionFactory'
10
- import { MigrationFunction } from '../types'
9
+ import type { MigrationFunction } from '../types'
11
10
 
12
11
  export const graphcommerce8to9: MigrationFunction = async (schema, client) => {
13
12
  const { migrationAction } = migrationActionFactory(schema, client)
package/src/readSchema.ts CHANGED
@@ -1,5 +1,6 @@
1
- import { ApolloClient, gql, NormalizedCacheObject } from '@apollo/client'
2
- import { Schema } from './types'
1
+ import type { ApolloClient, NormalizedCacheObject } from '@apollo/client'
2
+ import { gql } from '@apollo/client'
3
+ import type { Schema } from './types'
3
4
 
4
5
  export const readSchema = async (
5
6
  managementClient: ApolloClient<NormalizedCacheObject>,
package/src/types.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  // eslint-disable-next-line import/no-extraneous-dependencies
2
- import type { Model, Component, Enumeration, Client, Locale, Stage } from '@hygraph/management-sdk'
2
+ import type { Model, Component, Enumeration, Locale, Stage } from '@hygraph/management-sdk'
3
3
  import type { MigrationInfo } from '@hygraph/management-sdk/dist/src/ManagementAPIClient'
4
4
  import type { UpsertClient } from './UpsertClient'
5
5
 
@@ -1,4 +1,4 @@
1
- import { GraphCommerceConfig } from '@graphcommerce/next-config'
1
+ import type { GraphCommerceConfig } from '@graphcommerce/next-config'
2
2
 
3
3
  export type HygraphConfig = {
4
4
  projectId: string
@@ -1,6 +1,6 @@
1
- import { ApolloClient, NormalizedCacheObject } from '@apollo/client'
1
+ import type { ApolloClient, NormalizedCacheObject } from '@apollo/client'
2
2
  import gql from 'graphql-tag'
3
- import { HygraphConfig } from './getConfig'
3
+ import type { HygraphConfig } from './getConfig'
4
4
 
5
5
  export async function getEnvironment(
6
6
  client: ApolloClient<NormalizedCacheObject>,
@@ -1,5 +1,5 @@
1
1
  import { ApolloClient, HttpLink, InMemoryCache } from '@apollo/client'
2
- import { HygraphConfig } from './getConfig'
2
+ import type { HygraphConfig } from './getConfig'
3
3
 
4
4
  export function getManagementClient(config: HygraphConfig) {
5
5
  const { authToken: accessToken, uri } = config