@teambit/deprecation 1.0.186 → 1.0.188

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.
@@ -1,1418 +0,0 @@
1
- {
2
- "__schema": "APISchema",
3
- "location": {
4
- "filePath": "index.ts",
5
- "line": 1,
6
- "character": 1
7
- },
8
- "module": {
9
- "__schema": "ModuleSchema",
10
- "location": {
11
- "filePath": "index.ts",
12
- "line": 1,
13
- "character": 1
14
- },
15
- "exports": [
16
- {
17
- "__schema": "ClassSchema",
18
- "location": {
19
- "filePath": "deprecation.main.runtime.ts",
20
- "line": 35,
21
- "character": 1
22
- },
23
- "signature": "class DeprecationMain",
24
- "name": "DeprecationMain",
25
- "members": [
26
- {
27
- "__schema": "ConstructorSchema",
28
- "location": {
29
- "filePath": "deprecation.main.runtime.ts",
30
- "line": 36,
31
- "character": 3
32
- },
33
- "signature": "constructor DeprecationMain(scope: ScopeMain, workspace: Workspace): DeprecationMain",
34
- "name": "constructor",
35
- "params": [
36
- {
37
- "__schema": "ParameterSchema",
38
- "location": {
39
- "filePath": "deprecation.main.runtime.ts",
40
- "line": 36,
41
- "character": 15
42
- },
43
- "name": "scope",
44
- "type": {
45
- "__schema": "TypeRefSchema",
46
- "location": {
47
- "filePath": "deprecation.main.runtime.ts",
48
- "line": 36,
49
- "character": 30
50
- },
51
- "name": "ScopeMain"
52
- },
53
- "isOptional": false,
54
- "isSpread": false
55
- },
56
- {
57
- "__schema": "ParameterSchema",
58
- "location": {
59
- "filePath": "deprecation.main.runtime.ts",
60
- "line": 36,
61
- "character": 41
62
- },
63
- "name": "workspace",
64
- "type": {
65
- "__schema": "TypeRefSchema",
66
- "location": {
67
- "filePath": "deprecation.main.runtime.ts",
68
- "line": 36,
69
- "character": 60
70
- },
71
- "name": "Workspace"
72
- },
73
- "isOptional": false,
74
- "isSpread": false
75
- }
76
- ],
77
- "returnType": {
78
- "__schema": "ThisTypeSchema",
79
- "location": {
80
- "filePath": "deprecation.main.runtime.ts",
81
- "line": 35,
82
- "character": 1
83
- },
84
- "name": "DeprecationMain"
85
- },
86
- "modifiers": []
87
- },
88
- {
89
- "__schema": "VariableLikeSchema",
90
- "location": {
91
- "filePath": "deprecation.main.runtime.ts",
92
- "line": 37,
93
- "character": 3
94
- },
95
- "signature": "(property) DeprecationMain.runtime: RuntimeDefinition",
96
- "name": "runtime",
97
- "type": {
98
- "__schema": "InferenceTypeSchema",
99
- "location": {
100
- "filePath": "deprecation.main.runtime.ts",
101
- "line": 37,
102
- "character": 3
103
- },
104
- "type": "RuntimeDefinition"
105
- },
106
- "isOptional": true,
107
- "defaultValue": "MainRuntime"
108
- },
109
- {
110
- "__schema": "VariableLikeSchema",
111
- "location": {
112
- "filePath": "deprecation.main.runtime.ts",
113
- "line": 38,
114
- "character": 3
115
- },
116
- "signature": "(property) DeprecationMain.dependencies: Aspect[]",
117
- "name": "dependencies",
118
- "type": {
119
- "__schema": "InferenceTypeSchema",
120
- "location": {
121
- "filePath": "deprecation.main.runtime.ts",
122
- "line": 38,
123
- "character": 3
124
- },
125
- "type": "Aspect[]"
126
- },
127
- "isOptional": true,
128
- "defaultValue": "[GraphqlAspect, ScopeAspect, ComponentAspect, WorkspaceAspect, CLIAspect]"
129
- },
130
- {
131
- "__schema": "FunctionLikeSchema",
132
- "location": {
133
- "filePath": "deprecation.main.runtime.ts",
134
- "line": 40,
135
- "character": 3
136
- },
137
- "signature": "(method) DeprecationMain.getDeprecationInfo(component: Component): Promise<DeprecationInfo>",
138
- "name": "getDeprecationInfo",
139
- "params": [
140
- {
141
- "__schema": "ParameterSchema",
142
- "location": {
143
- "filePath": "deprecation.main.runtime.ts",
144
- "line": 40,
145
- "character": 28
146
- },
147
- "name": "component",
148
- "type": {
149
- "__schema": "TypeRefSchema",
150
- "location": {
151
- "filePath": "deprecation.main.runtime.ts",
152
- "line": 40,
153
- "character": 39
154
- },
155
- "name": "Component"
156
- },
157
- "isOptional": false,
158
- "isSpread": false
159
- }
160
- ],
161
- "returnType": {
162
- "__schema": "TypeRefSchema",
163
- "location": {
164
- "filePath": "deprecation.main.runtime.ts",
165
- "line": 40,
166
- "character": 51
167
- },
168
- "name": "Promise",
169
- "typeArgs": [
170
- {
171
- "__schema": "TypeRefSchema",
172
- "location": {
173
- "filePath": "deprecation.main.runtime.ts",
174
- "line": 40,
175
- "character": 59
176
- },
177
- "name": "DeprecationInfo"
178
- }
179
- ]
180
- },
181
- "modifiers": [
182
- "async"
183
- ]
184
- },
185
- {
186
- "__schema": "FunctionLikeSchema",
187
- "location": {
188
- "filePath": "deprecation.main.runtime.ts",
189
- "line": 82,
190
- "character": 3
191
- },
192
- "doc": {
193
- "__schema": "DocSchema",
194
- "location": {
195
- "filePath": "deprecation.main.runtime.ts",
196
- "line": 74,
197
- "character": 3
198
- },
199
- "raw": "/**\n * mark a component as deprecated. after this change, the component will be modified.\n * tag and export the component to have it deprecated on the remote.\n *\n * @param componentId\n * @param newId\n * @returns boolean whether or not the component has been deprecated\n */",
200
- "comment": "mark a component as deprecated. after this change, the component will be modified.\ntag and export the component to have it deprecated on the remote.",
201
- "tags": [
202
- {
203
- "__schema": "PropertyLikeTagSchema",
204
- "location": {
205
- "filePath": "deprecation.main.runtime.ts",
206
- "line": 78,
207
- "character": 6
208
- },
209
- "name": "componentId",
210
- "tagName": "parameter"
211
- },
212
- {
213
- "__schema": "PropertyLikeTagSchema",
214
- "location": {
215
- "filePath": "deprecation.main.runtime.ts",
216
- "line": 79,
217
- "character": 6
218
- },
219
- "name": "newId",
220
- "tagName": "parameter"
221
- },
222
- {
223
- "__schema": "ReturnTagSchema",
224
- "location": {
225
- "filePath": "deprecation.main.runtime.ts",
226
- "line": 80,
227
- "character": 6
228
- },
229
- "tagName": "return",
230
- "comment": "boolean whether or not the component has been deprecated"
231
- }
232
- ]
233
- },
234
- "signature": "(method) DeprecationMain.deprecate(componentId: ComponentID, newId?: ComponentID, range?: string): Promise<boolean>",
235
- "name": "deprecate",
236
- "params": [
237
- {
238
- "__schema": "ParameterSchema",
239
- "location": {
240
- "filePath": "deprecation.main.runtime.ts",
241
- "line": 82,
242
- "character": 19
243
- },
244
- "name": "componentId",
245
- "type": {
246
- "__schema": "TypeRefSchema",
247
- "location": {
248
- "filePath": "deprecation.main.runtime.ts",
249
- "line": 82,
250
- "character": 32
251
- },
252
- "name": "ComponentID"
253
- },
254
- "isOptional": false,
255
- "isSpread": false
256
- },
257
- {
258
- "__schema": "ParameterSchema",
259
- "location": {
260
- "filePath": "deprecation.main.runtime.ts",
261
- "line": 82,
262
- "character": 45
263
- },
264
- "name": "newId",
265
- "type": {
266
- "__schema": "TypeRefSchema",
267
- "location": {
268
- "filePath": "deprecation.main.runtime.ts",
269
- "line": 82,
270
- "character": 53
271
- },
272
- "name": "ComponentID"
273
- },
274
- "isOptional": true,
275
- "isSpread": false
276
- },
277
- {
278
- "__schema": "ParameterSchema",
279
- "location": {
280
- "filePath": "deprecation.main.runtime.ts",
281
- "line": 82,
282
- "character": 66
283
- },
284
- "name": "range",
285
- "type": {
286
- "__schema": "KeywordTypeSchema",
287
- "location": {
288
- "filePath": "deprecation.main.runtime.ts",
289
- "line": 82,
290
- "character": 74
291
- },
292
- "name": "string"
293
- },
294
- "isOptional": true,
295
- "isSpread": false
296
- }
297
- ],
298
- "returnType": {
299
- "__schema": "TypeRefSchema",
300
- "location": {
301
- "filePath": "deprecation.main.runtime.ts",
302
- "line": 82,
303
- "character": 83
304
- },
305
- "name": "Promise",
306
- "typeArgs": [
307
- {
308
- "__schema": "KeywordTypeSchema",
309
- "location": {
310
- "filePath": "deprecation.main.runtime.ts",
311
- "line": 82,
312
- "character": 91
313
- },
314
- "name": "boolean"
315
- }
316
- ]
317
- },
318
- "modifiers": [
319
- "async"
320
- ]
321
- },
322
- {
323
- "__schema": "FunctionLikeSchema",
324
- "location": {
325
- "filePath": "deprecation.main.runtime.ts",
326
- "line": 93,
327
- "character": 3
328
- },
329
- "signature": "(method) DeprecationMain.unDeprecate(componentId: ComponentID): Promise<boolean>",
330
- "name": "unDeprecate",
331
- "params": [
332
- {
333
- "__schema": "ParameterSchema",
334
- "location": {
335
- "filePath": "deprecation.main.runtime.ts",
336
- "line": 93,
337
- "character": 21
338
- },
339
- "name": "componentId",
340
- "type": {
341
- "__schema": "TypeRefSchema",
342
- "location": {
343
- "filePath": "deprecation.main.runtime.ts",
344
- "line": 93,
345
- "character": 34
346
- },
347
- "name": "ComponentID"
348
- },
349
- "isOptional": false,
350
- "isSpread": false
351
- }
352
- ],
353
- "returnType": {
354
- "__schema": "InferenceTypeSchema",
355
- "location": {
356
- "filePath": "deprecation.main.runtime.ts",
357
- "line": 93,
358
- "character": 3
359
- },
360
- "type": "Promise<boolean>"
361
- },
362
- "modifiers": [
363
- "async"
364
- ]
365
- },
366
- {
367
- "__schema": "FunctionLikeSchema",
368
- "location": {
369
- "filePath": "deprecation.main.runtime.ts",
370
- "line": 103,
371
- "character": 3
372
- },
373
- "signature": "(method) DeprecationMain.provider([graphql, scope, componentAspect, workspace, cli]: [\n GraphqlMain,\n ScopeMain,\n ComponentMain,\n Workspace,\n CLIMain\n]): Promise<DeprecationMain>",
374
- "name": "provider",
375
- "params": [
376
- {
377
- "__schema": "ParameterSchema",
378
- "location": {
379
- "filePath": "deprecation.main.runtime.ts",
380
- "line": 103,
381
- "character": 25
382
- },
383
- "name": "[ graphql, scope, componentAspect, workspace, cli ]",
384
- "type": {
385
- "__schema": "TupleTypeSchema",
386
- "location": {
387
- "filePath": "deprecation.main.runtime.ts",
388
- "line": 103,
389
- "character": 76
390
- },
391
- "elements": [
392
- {
393
- "__schema": "TypeRefSchema",
394
- "location": {
395
- "filePath": "deprecation.main.runtime.ts",
396
- "line": 104,
397
- "character": 5
398
- },
399
- "name": "GraphqlMain"
400
- },
401
- {
402
- "__schema": "TypeRefSchema",
403
- "location": {
404
- "filePath": "deprecation.main.runtime.ts",
405
- "line": 105,
406
- "character": 5
407
- },
408
- "name": "ScopeMain"
409
- },
410
- {
411
- "__schema": "TypeRefSchema",
412
- "location": {
413
- "filePath": "deprecation.main.runtime.ts",
414
- "line": 106,
415
- "character": 5
416
- },
417
- "name": "ComponentMain"
418
- },
419
- {
420
- "__schema": "TypeRefSchema",
421
- "location": {
422
- "filePath": "deprecation.main.runtime.ts",
423
- "line": 107,
424
- "character": 5
425
- },
426
- "name": "Workspace"
427
- },
428
- {
429
- "__schema": "TypeRefSchema",
430
- "location": {
431
- "filePath": "deprecation.main.runtime.ts",
432
- "line": 108,
433
- "character": 5
434
- },
435
- "name": "CLIMain"
436
- }
437
- ]
438
- },
439
- "isOptional": false,
440
- "isSpread": false
441
- }
442
- ],
443
- "returnType": {
444
- "__schema": "InferenceTypeSchema",
445
- "location": {
446
- "filePath": "deprecation.main.runtime.ts",
447
- "line": 103,
448
- "character": 3
449
- },
450
- "type": "Promise<DeprecationMain>"
451
- },
452
- "modifiers": [
453
- "static",
454
- "async"
455
- ]
456
- }
457
- ],
458
- "extendsNodes": [],
459
- "implementNodes": []
460
- },
461
- {
462
- "__schema": "TypeSchema",
463
- "location": {
464
- "filePath": "deprecation.main.runtime.ts",
465
- "line": 14,
466
- "character": 1
467
- },
468
- "signature": "type DeprecationInfo = {\n isDeprecate: boolean;\n newId?: string | undefined;\n range?: string | undefined;\n}",
469
- "name": "DeprecationInfo",
470
- "type": {
471
- "__schema": "TypeLiteralSchema",
472
- "location": {
473
- "filePath": "deprecation.main.runtime.ts",
474
- "line": 14,
475
- "character": 31
476
- },
477
- "members": [
478
- {
479
- "__schema": "VariableLikeSchema",
480
- "location": {
481
- "filePath": "deprecation.main.runtime.ts",
482
- "line": 15,
483
- "character": 3
484
- },
485
- "signature": "(property) isDeprecate: boolean",
486
- "name": "isDeprecate",
487
- "type": {
488
- "__schema": "KeywordTypeSchema",
489
- "location": {
490
- "filePath": "deprecation.main.runtime.ts",
491
- "line": 15,
492
- "character": 16
493
- },
494
- "name": "boolean"
495
- },
496
- "isOptional": false
497
- },
498
- {
499
- "__schema": "VariableLikeSchema",
500
- "location": {
501
- "filePath": "deprecation.main.runtime.ts",
502
- "line": 16,
503
- "character": 3
504
- },
505
- "signature": "(property) newId?: string | undefined",
506
- "name": "newId",
507
- "type": {
508
- "__schema": "KeywordTypeSchema",
509
- "location": {
510
- "filePath": "deprecation.main.runtime.ts",
511
- "line": 16,
512
- "character": 11
513
- },
514
- "name": "string"
515
- },
516
- "isOptional": true
517
- },
518
- {
519
- "__schema": "VariableLikeSchema",
520
- "location": {
521
- "filePath": "deprecation.main.runtime.ts",
522
- "line": 17,
523
- "character": 3
524
- },
525
- "signature": "(property) range?: string | undefined",
526
- "name": "range",
527
- "type": {
528
- "__schema": "KeywordTypeSchema",
529
- "location": {
530
- "filePath": "deprecation.main.runtime.ts",
531
- "line": 17,
532
- "character": 11
533
- },
534
- "name": "string"
535
- },
536
- "isOptional": true
537
- }
538
- ]
539
- }
540
- },
541
- {
542
- "__schema": "TypeSchema",
543
- "location": {
544
- "filePath": "deprecation.main.runtime.ts",
545
- "line": 20,
546
- "character": 1
547
- },
548
- "signature": "type DeprecationMetadata = {\n deprecate?: boolean | undefined;\n newId?: ComponentIdObj | undefined;\n range?: string | undefined;\n}",
549
- "name": "DeprecationMetadata",
550
- "type": {
551
- "__schema": "TypeLiteralSchema",
552
- "location": {
553
- "filePath": "deprecation.main.runtime.ts",
554
- "line": 20,
555
- "character": 35
556
- },
557
- "members": [
558
- {
559
- "__schema": "VariableLikeSchema",
560
- "location": {
561
- "filePath": "deprecation.main.runtime.ts",
562
- "line": 24,
563
- "character": 3
564
- },
565
- "doc": {
566
- "__schema": "DocSchema",
567
- "location": {
568
- "filePath": "deprecation.main.runtime.ts",
569
- "line": 21,
570
- "character": 3
571
- },
572
- "raw": "/**\n * whether the head is deprecated\n */",
573
- "comment": "whether the head is deprecated"
574
- },
575
- "signature": "(property) deprecate?: boolean | undefined",
576
- "name": "deprecate",
577
- "type": {
578
- "__schema": "KeywordTypeSchema",
579
- "location": {
580
- "filePath": "deprecation.main.runtime.ts",
581
- "line": 24,
582
- "character": 15
583
- },
584
- "name": "boolean"
585
- },
586
- "isOptional": true
587
- },
588
- {
589
- "__schema": "VariableLikeSchema",
590
- "location": {
591
- "filePath": "deprecation.main.runtime.ts",
592
- "line": 28,
593
- "character": 3
594
- },
595
- "doc": {
596
- "__schema": "DocSchema",
597
- "location": {
598
- "filePath": "deprecation.main.runtime.ts",
599
- "line": 25,
600
- "character": 3
601
- },
602
- "raw": "/**\n * the new id to use instead of the current one\n */",
603
- "comment": "the new id to use instead of the current one"
604
- },
605
- "signature": "(property) newId?: ComponentIdObj | undefined",
606
- "name": "newId",
607
- "type": {
608
- "__schema": "TypeRefSchema",
609
- "location": {
610
- "filePath": "deprecation.main.runtime.ts",
611
- "line": 28,
612
- "character": 11
613
- },
614
- "name": "ComponentIdObj"
615
- },
616
- "isOptional": true
617
- },
618
- {
619
- "__schema": "VariableLikeSchema",
620
- "location": {
621
- "filePath": "deprecation.main.runtime.ts",
622
- "line": 32,
623
- "character": 3
624
- },
625
- "doc": {
626
- "__schema": "DocSchema",
627
- "location": {
628
- "filePath": "deprecation.main.runtime.ts",
629
- "line": 29,
630
- "character": 3
631
- },
632
- "raw": "/**\n * Semver range to deprecate previous versions\n */",
633
- "comment": "Semver range to deprecate previous versions"
634
- },
635
- "signature": "(property) range?: string | undefined",
636
- "name": "range",
637
- "type": {
638
- "__schema": "KeywordTypeSchema",
639
- "location": {
640
- "filePath": "deprecation.main.runtime.ts",
641
- "line": 32,
642
- "character": 11
643
- },
644
- "name": "string"
645
- },
646
- "isOptional": true
647
- }
648
- ]
649
- }
650
- },
651
- {
652
- "__schema": "VariableLikeSchema",
653
- "location": {
654
- "filePath": "deprecation.aspect.ts",
655
- "line": 3,
656
- "character": 14
657
- },
658
- "signature": "const DeprecationAspect: Aspect",
659
- "name": "DeprecationAspect",
660
- "type": {
661
- "__schema": "TypeRefSchema",
662
- "location": {
663
- "filePath": "deprecation.aspect.ts",
664
- "line": 3,
665
- "character": 14
666
- },
667
- "name": "Aspect",
668
- "componentId": {
669
- "scope": "teambit.harmony",
670
- "name": "harmony",
671
- "version": "0.4.6"
672
- }
673
- },
674
- "isOptional": false,
675
- "defaultValue": "Aspect.create({\n id: 'teambit.component/deprecation',\n dependencies: [],\n defaultConfig: {},\n})"
676
- },
677
- {
678
- "__schema": "VariableLikeSchema",
679
- "location": {
680
- "filePath": "deprecation.aspect.ts",
681
- "line": 3,
682
- "character": 14
683
- },
684
- "signature": "const DeprecationAspect: Aspect",
685
- "name": "DeprecationAspect",
686
- "type": {
687
- "__schema": "TypeRefSchema",
688
- "location": {
689
- "filePath": "deprecation.aspect.ts",
690
- "line": 3,
691
- "character": 14
692
- },
693
- "name": "Aspect",
694
- "componentId": {
695
- "scope": "teambit.harmony",
696
- "name": "harmony",
697
- "version": "0.4.6"
698
- }
699
- },
700
- "isOptional": false,
701
- "defaultValue": "Aspect.create({\n id: 'teambit.component/deprecation',\n dependencies: [],\n defaultConfig: {},\n})"
702
- }
703
- ],
704
- "internals": []
705
- },
706
- "internals": [
707
- {
708
- "__schema": "ModuleSchema",
709
- "location": {
710
- "filePath": "deprecation.main.runtime.ts",
711
- "line": 1,
712
- "character": 1
713
- },
714
- "exports": [
715
- {
716
- "__schema": "TypeSchema",
717
- "location": {
718
- "filePath": "deprecation.main.runtime.ts",
719
- "line": 14,
720
- "character": 1
721
- },
722
- "signature": "type DeprecationInfo = {\n isDeprecate: boolean;\n newId?: string | undefined;\n range?: string | undefined;\n}",
723
- "name": "DeprecationInfo",
724
- "type": {
725
- "__schema": "TypeLiteralSchema",
726
- "location": {
727
- "filePath": "deprecation.main.runtime.ts",
728
- "line": 14,
729
- "character": 31
730
- },
731
- "members": [
732
- {
733
- "__schema": "VariableLikeSchema",
734
- "location": {
735
- "filePath": "deprecation.main.runtime.ts",
736
- "line": 15,
737
- "character": 3
738
- },
739
- "signature": "(property) isDeprecate: boolean",
740
- "name": "isDeprecate",
741
- "type": {
742
- "__schema": "KeywordTypeSchema",
743
- "location": {
744
- "filePath": "deprecation.main.runtime.ts",
745
- "line": 15,
746
- "character": 16
747
- },
748
- "name": "boolean"
749
- },
750
- "isOptional": false
751
- },
752
- {
753
- "__schema": "VariableLikeSchema",
754
- "location": {
755
- "filePath": "deprecation.main.runtime.ts",
756
- "line": 16,
757
- "character": 3
758
- },
759
- "signature": "(property) newId?: string | undefined",
760
- "name": "newId",
761
- "type": {
762
- "__schema": "KeywordTypeSchema",
763
- "location": {
764
- "filePath": "deprecation.main.runtime.ts",
765
- "line": 16,
766
- "character": 11
767
- },
768
- "name": "string"
769
- },
770
- "isOptional": true
771
- },
772
- {
773
- "__schema": "VariableLikeSchema",
774
- "location": {
775
- "filePath": "deprecation.main.runtime.ts",
776
- "line": 17,
777
- "character": 3
778
- },
779
- "signature": "(property) range?: string | undefined",
780
- "name": "range",
781
- "type": {
782
- "__schema": "KeywordTypeSchema",
783
- "location": {
784
- "filePath": "deprecation.main.runtime.ts",
785
- "line": 17,
786
- "character": 11
787
- },
788
- "name": "string"
789
- },
790
- "isOptional": true
791
- }
792
- ]
793
- }
794
- },
795
- {
796
- "__schema": "TypeSchema",
797
- "location": {
798
- "filePath": "deprecation.main.runtime.ts",
799
- "line": 20,
800
- "character": 1
801
- },
802
- "signature": "type DeprecationMetadata = {\n deprecate?: boolean | undefined;\n newId?: ComponentIdObj | undefined;\n range?: string | undefined;\n}",
803
- "name": "DeprecationMetadata",
804
- "type": {
805
- "__schema": "TypeLiteralSchema",
806
- "location": {
807
- "filePath": "deprecation.main.runtime.ts",
808
- "line": 20,
809
- "character": 35
810
- },
811
- "members": [
812
- {
813
- "__schema": "VariableLikeSchema",
814
- "location": {
815
- "filePath": "deprecation.main.runtime.ts",
816
- "line": 24,
817
- "character": 3
818
- },
819
- "doc": {
820
- "__schema": "DocSchema",
821
- "location": {
822
- "filePath": "deprecation.main.runtime.ts",
823
- "line": 21,
824
- "character": 3
825
- },
826
- "raw": "/**\n * whether the head is deprecated\n */",
827
- "comment": "whether the head is deprecated"
828
- },
829
- "signature": "(property) deprecate?: boolean | undefined",
830
- "name": "deprecate",
831
- "type": {
832
- "__schema": "KeywordTypeSchema",
833
- "location": {
834
- "filePath": "deprecation.main.runtime.ts",
835
- "line": 24,
836
- "character": 15
837
- },
838
- "name": "boolean"
839
- },
840
- "isOptional": true
841
- },
842
- {
843
- "__schema": "VariableLikeSchema",
844
- "location": {
845
- "filePath": "deprecation.main.runtime.ts",
846
- "line": 28,
847
- "character": 3
848
- },
849
- "doc": {
850
- "__schema": "DocSchema",
851
- "location": {
852
- "filePath": "deprecation.main.runtime.ts",
853
- "line": 25,
854
- "character": 3
855
- },
856
- "raw": "/**\n * the new id to use instead of the current one\n */",
857
- "comment": "the new id to use instead of the current one"
858
- },
859
- "signature": "(property) newId?: ComponentIdObj | undefined",
860
- "name": "newId",
861
- "type": {
862
- "__schema": "TypeRefSchema",
863
- "location": {
864
- "filePath": "deprecation.main.runtime.ts",
865
- "line": 28,
866
- "character": 11
867
- },
868
- "name": "ComponentIdObj"
869
- },
870
- "isOptional": true
871
- },
872
- {
873
- "__schema": "VariableLikeSchema",
874
- "location": {
875
- "filePath": "deprecation.main.runtime.ts",
876
- "line": 32,
877
- "character": 3
878
- },
879
- "doc": {
880
- "__schema": "DocSchema",
881
- "location": {
882
- "filePath": "deprecation.main.runtime.ts",
883
- "line": 29,
884
- "character": 3
885
- },
886
- "raw": "/**\n * Semver range to deprecate previous versions\n */",
887
- "comment": "Semver range to deprecate previous versions"
888
- },
889
- "signature": "(property) range?: string | undefined",
890
- "name": "range",
891
- "type": {
892
- "__schema": "KeywordTypeSchema",
893
- "location": {
894
- "filePath": "deprecation.main.runtime.ts",
895
- "line": 32,
896
- "character": 11
897
- },
898
- "name": "string"
899
- },
900
- "isOptional": true
901
- }
902
- ]
903
- }
904
- },
905
- {
906
- "__schema": "ClassSchema",
907
- "location": {
908
- "filePath": "deprecation.main.runtime.ts",
909
- "line": 35,
910
- "character": 1
911
- },
912
- "signature": "class DeprecationMain",
913
- "name": "DeprecationMain",
914
- "members": [
915
- {
916
- "__schema": "ConstructorSchema",
917
- "location": {
918
- "filePath": "deprecation.main.runtime.ts",
919
- "line": 36,
920
- "character": 3
921
- },
922
- "signature": "constructor DeprecationMain(scope: ScopeMain, workspace: Workspace): DeprecationMain",
923
- "name": "constructor",
924
- "params": [
925
- {
926
- "__schema": "ParameterSchema",
927
- "location": {
928
- "filePath": "deprecation.main.runtime.ts",
929
- "line": 36,
930
- "character": 15
931
- },
932
- "name": "scope",
933
- "type": {
934
- "__schema": "TypeRefSchema",
935
- "location": {
936
- "filePath": "deprecation.main.runtime.ts",
937
- "line": 36,
938
- "character": 30
939
- },
940
- "name": "ScopeMain"
941
- },
942
- "isOptional": false,
943
- "isSpread": false
944
- },
945
- {
946
- "__schema": "ParameterSchema",
947
- "location": {
948
- "filePath": "deprecation.main.runtime.ts",
949
- "line": 36,
950
- "character": 41
951
- },
952
- "name": "workspace",
953
- "type": {
954
- "__schema": "TypeRefSchema",
955
- "location": {
956
- "filePath": "deprecation.main.runtime.ts",
957
- "line": 36,
958
- "character": 60
959
- },
960
- "name": "Workspace"
961
- },
962
- "isOptional": false,
963
- "isSpread": false
964
- }
965
- ],
966
- "returnType": {
967
- "__schema": "ThisTypeSchema",
968
- "location": {
969
- "filePath": "deprecation.main.runtime.ts",
970
- "line": 35,
971
- "character": 1
972
- },
973
- "name": "DeprecationMain"
974
- },
975
- "modifiers": []
976
- },
977
- {
978
- "__schema": "VariableLikeSchema",
979
- "location": {
980
- "filePath": "deprecation.main.runtime.ts",
981
- "line": 37,
982
- "character": 3
983
- },
984
- "signature": "(property) DeprecationMain.runtime: RuntimeDefinition",
985
- "name": "runtime",
986
- "type": {
987
- "__schema": "InferenceTypeSchema",
988
- "location": {
989
- "filePath": "deprecation.main.runtime.ts",
990
- "line": 37,
991
- "character": 3
992
- },
993
- "type": "RuntimeDefinition"
994
- },
995
- "isOptional": true,
996
- "defaultValue": "MainRuntime"
997
- },
998
- {
999
- "__schema": "VariableLikeSchema",
1000
- "location": {
1001
- "filePath": "deprecation.main.runtime.ts",
1002
- "line": 38,
1003
- "character": 3
1004
- },
1005
- "signature": "(property) DeprecationMain.dependencies: Aspect[]",
1006
- "name": "dependencies",
1007
- "type": {
1008
- "__schema": "InferenceTypeSchema",
1009
- "location": {
1010
- "filePath": "deprecation.main.runtime.ts",
1011
- "line": 38,
1012
- "character": 3
1013
- },
1014
- "type": "Aspect[]"
1015
- },
1016
- "isOptional": true,
1017
- "defaultValue": "[GraphqlAspect, ScopeAspect, ComponentAspect, WorkspaceAspect, CLIAspect]"
1018
- },
1019
- {
1020
- "__schema": "FunctionLikeSchema",
1021
- "location": {
1022
- "filePath": "deprecation.main.runtime.ts",
1023
- "line": 40,
1024
- "character": 3
1025
- },
1026
- "signature": "(method) DeprecationMain.getDeprecationInfo(component: Component): Promise<DeprecationInfo>",
1027
- "name": "getDeprecationInfo",
1028
- "params": [
1029
- {
1030
- "__schema": "ParameterSchema",
1031
- "location": {
1032
- "filePath": "deprecation.main.runtime.ts",
1033
- "line": 40,
1034
- "character": 28
1035
- },
1036
- "name": "component",
1037
- "type": {
1038
- "__schema": "TypeRefSchema",
1039
- "location": {
1040
- "filePath": "deprecation.main.runtime.ts",
1041
- "line": 40,
1042
- "character": 39
1043
- },
1044
- "name": "Component"
1045
- },
1046
- "isOptional": false,
1047
- "isSpread": false
1048
- }
1049
- ],
1050
- "returnType": {
1051
- "__schema": "TypeRefSchema",
1052
- "location": {
1053
- "filePath": "deprecation.main.runtime.ts",
1054
- "line": 40,
1055
- "character": 51
1056
- },
1057
- "name": "Promise",
1058
- "typeArgs": [
1059
- {
1060
- "__schema": "TypeRefSchema",
1061
- "location": {
1062
- "filePath": "deprecation.main.runtime.ts",
1063
- "line": 40,
1064
- "character": 59
1065
- },
1066
- "name": "DeprecationInfo"
1067
- }
1068
- ]
1069
- },
1070
- "modifiers": [
1071
- "async"
1072
- ]
1073
- },
1074
- {
1075
- "__schema": "FunctionLikeSchema",
1076
- "location": {
1077
- "filePath": "deprecation.main.runtime.ts",
1078
- "line": 82,
1079
- "character": 3
1080
- },
1081
- "doc": {
1082
- "__schema": "DocSchema",
1083
- "location": {
1084
- "filePath": "deprecation.main.runtime.ts",
1085
- "line": 74,
1086
- "character": 3
1087
- },
1088
- "raw": "/**\n * mark a component as deprecated. after this change, the component will be modified.\n * tag and export the component to have it deprecated on the remote.\n *\n * @param componentId\n * @param newId\n * @returns boolean whether or not the component has been deprecated\n */",
1089
- "comment": "mark a component as deprecated. after this change, the component will be modified.\ntag and export the component to have it deprecated on the remote.",
1090
- "tags": [
1091
- {
1092
- "__schema": "PropertyLikeTagSchema",
1093
- "location": {
1094
- "filePath": "deprecation.main.runtime.ts",
1095
- "line": 78,
1096
- "character": 6
1097
- },
1098
- "name": "componentId",
1099
- "tagName": "parameter"
1100
- },
1101
- {
1102
- "__schema": "PropertyLikeTagSchema",
1103
- "location": {
1104
- "filePath": "deprecation.main.runtime.ts",
1105
- "line": 79,
1106
- "character": 6
1107
- },
1108
- "name": "newId",
1109
- "tagName": "parameter"
1110
- },
1111
- {
1112
- "__schema": "ReturnTagSchema",
1113
- "location": {
1114
- "filePath": "deprecation.main.runtime.ts",
1115
- "line": 80,
1116
- "character": 6
1117
- },
1118
- "tagName": "return",
1119
- "comment": "boolean whether or not the component has been deprecated"
1120
- }
1121
- ]
1122
- },
1123
- "signature": "(method) DeprecationMain.deprecate(componentId: ComponentID, newId?: ComponentID, range?: string): Promise<boolean>",
1124
- "name": "deprecate",
1125
- "params": [
1126
- {
1127
- "__schema": "ParameterSchema",
1128
- "location": {
1129
- "filePath": "deprecation.main.runtime.ts",
1130
- "line": 82,
1131
- "character": 19
1132
- },
1133
- "name": "componentId",
1134
- "type": {
1135
- "__schema": "TypeRefSchema",
1136
- "location": {
1137
- "filePath": "deprecation.main.runtime.ts",
1138
- "line": 82,
1139
- "character": 32
1140
- },
1141
- "name": "ComponentID"
1142
- },
1143
- "isOptional": false,
1144
- "isSpread": false
1145
- },
1146
- {
1147
- "__schema": "ParameterSchema",
1148
- "location": {
1149
- "filePath": "deprecation.main.runtime.ts",
1150
- "line": 82,
1151
- "character": 45
1152
- },
1153
- "name": "newId",
1154
- "type": {
1155
- "__schema": "TypeRefSchema",
1156
- "location": {
1157
- "filePath": "deprecation.main.runtime.ts",
1158
- "line": 82,
1159
- "character": 53
1160
- },
1161
- "name": "ComponentID"
1162
- },
1163
- "isOptional": true,
1164
- "isSpread": false
1165
- },
1166
- {
1167
- "__schema": "ParameterSchema",
1168
- "location": {
1169
- "filePath": "deprecation.main.runtime.ts",
1170
- "line": 82,
1171
- "character": 66
1172
- },
1173
- "name": "range",
1174
- "type": {
1175
- "__schema": "KeywordTypeSchema",
1176
- "location": {
1177
- "filePath": "deprecation.main.runtime.ts",
1178
- "line": 82,
1179
- "character": 74
1180
- },
1181
- "name": "string"
1182
- },
1183
- "isOptional": true,
1184
- "isSpread": false
1185
- }
1186
- ],
1187
- "returnType": {
1188
- "__schema": "TypeRefSchema",
1189
- "location": {
1190
- "filePath": "deprecation.main.runtime.ts",
1191
- "line": 82,
1192
- "character": 83
1193
- },
1194
- "name": "Promise",
1195
- "typeArgs": [
1196
- {
1197
- "__schema": "KeywordTypeSchema",
1198
- "location": {
1199
- "filePath": "deprecation.main.runtime.ts",
1200
- "line": 82,
1201
- "character": 91
1202
- },
1203
- "name": "boolean"
1204
- }
1205
- ]
1206
- },
1207
- "modifiers": [
1208
- "async"
1209
- ]
1210
- },
1211
- {
1212
- "__schema": "FunctionLikeSchema",
1213
- "location": {
1214
- "filePath": "deprecation.main.runtime.ts",
1215
- "line": 93,
1216
- "character": 3
1217
- },
1218
- "signature": "(method) DeprecationMain.unDeprecate(componentId: ComponentID): Promise<boolean>",
1219
- "name": "unDeprecate",
1220
- "params": [
1221
- {
1222
- "__schema": "ParameterSchema",
1223
- "location": {
1224
- "filePath": "deprecation.main.runtime.ts",
1225
- "line": 93,
1226
- "character": 21
1227
- },
1228
- "name": "componentId",
1229
- "type": {
1230
- "__schema": "TypeRefSchema",
1231
- "location": {
1232
- "filePath": "deprecation.main.runtime.ts",
1233
- "line": 93,
1234
- "character": 34
1235
- },
1236
- "name": "ComponentID"
1237
- },
1238
- "isOptional": false,
1239
- "isSpread": false
1240
- }
1241
- ],
1242
- "returnType": {
1243
- "__schema": "InferenceTypeSchema",
1244
- "location": {
1245
- "filePath": "deprecation.main.runtime.ts",
1246
- "line": 93,
1247
- "character": 3
1248
- },
1249
- "type": "Promise<boolean>"
1250
- },
1251
- "modifiers": [
1252
- "async"
1253
- ]
1254
- },
1255
- {
1256
- "__schema": "FunctionLikeSchema",
1257
- "location": {
1258
- "filePath": "deprecation.main.runtime.ts",
1259
- "line": 103,
1260
- "character": 3
1261
- },
1262
- "signature": "(method) DeprecationMain.provider([graphql, scope, componentAspect, workspace, cli]: [\n GraphqlMain,\n ScopeMain,\n ComponentMain,\n Workspace,\n CLIMain\n]): Promise<DeprecationMain>",
1263
- "name": "provider",
1264
- "params": [
1265
- {
1266
- "__schema": "ParameterSchema",
1267
- "location": {
1268
- "filePath": "deprecation.main.runtime.ts",
1269
- "line": 103,
1270
- "character": 25
1271
- },
1272
- "name": "[ graphql, scope, componentAspect, workspace, cli ]",
1273
- "type": {
1274
- "__schema": "TupleTypeSchema",
1275
- "location": {
1276
- "filePath": "deprecation.main.runtime.ts",
1277
- "line": 103,
1278
- "character": 76
1279
- },
1280
- "elements": [
1281
- {
1282
- "__schema": "TypeRefSchema",
1283
- "location": {
1284
- "filePath": "deprecation.main.runtime.ts",
1285
- "line": 104,
1286
- "character": 5
1287
- },
1288
- "name": "GraphqlMain"
1289
- },
1290
- {
1291
- "__schema": "TypeRefSchema",
1292
- "location": {
1293
- "filePath": "deprecation.main.runtime.ts",
1294
- "line": 105,
1295
- "character": 5
1296
- },
1297
- "name": "ScopeMain"
1298
- },
1299
- {
1300
- "__schema": "TypeRefSchema",
1301
- "location": {
1302
- "filePath": "deprecation.main.runtime.ts",
1303
- "line": 106,
1304
- "character": 5
1305
- },
1306
- "name": "ComponentMain"
1307
- },
1308
- {
1309
- "__schema": "TypeRefSchema",
1310
- "location": {
1311
- "filePath": "deprecation.main.runtime.ts",
1312
- "line": 107,
1313
- "character": 5
1314
- },
1315
- "name": "Workspace"
1316
- },
1317
- {
1318
- "__schema": "TypeRefSchema",
1319
- "location": {
1320
- "filePath": "deprecation.main.runtime.ts",
1321
- "line": 108,
1322
- "character": 5
1323
- },
1324
- "name": "CLIMain"
1325
- }
1326
- ]
1327
- },
1328
- "isOptional": false,
1329
- "isSpread": false
1330
- }
1331
- ],
1332
- "returnType": {
1333
- "__schema": "InferenceTypeSchema",
1334
- "location": {
1335
- "filePath": "deprecation.main.runtime.ts",
1336
- "line": 103,
1337
- "character": 3
1338
- },
1339
- "type": "Promise<DeprecationMain>"
1340
- },
1341
- "modifiers": [
1342
- "static",
1343
- "async"
1344
- ]
1345
- }
1346
- ],
1347
- "extendsNodes": [],
1348
- "implementNodes": []
1349
- }
1350
- ],
1351
- "internals": [
1352
- {
1353
- "__schema": "UnImplementedSchema",
1354
- "location": {
1355
- "filePath": "deprecation.main.runtime.ts",
1356
- "line": 119,
1357
- "character": 1
1358
- },
1359
- "name": "DeprecationAspect.addRuntime(DeprecationMain);",
1360
- "type": "ExpressionStatement"
1361
- }
1362
- ]
1363
- },
1364
- {
1365
- "__schema": "ModuleSchema",
1366
- "location": {
1367
- "filePath": "deprecation.aspect.ts",
1368
- "line": 1,
1369
- "character": 1
1370
- },
1371
- "exports": [
1372
- {
1373
- "__schema": "VariableLikeSchema",
1374
- "location": {
1375
- "filePath": "deprecation.aspect.ts",
1376
- "line": 3,
1377
- "character": 14
1378
- },
1379
- "signature": "const DeprecationAspect: Aspect",
1380
- "name": "DeprecationAspect",
1381
- "type": {
1382
- "__schema": "TypeRefSchema",
1383
- "location": {
1384
- "filePath": "deprecation.aspect.ts",
1385
- "line": 3,
1386
- "character": 14
1387
- },
1388
- "name": "Aspect",
1389
- "componentId": {
1390
- "scope": "teambit.harmony",
1391
- "name": "harmony",
1392
- "version": "0.4.6"
1393
- }
1394
- },
1395
- "isOptional": false,
1396
- "defaultValue": "Aspect.create({\n id: 'teambit.component/deprecation',\n dependencies: [],\n defaultConfig: {},\n})"
1397
- },
1398
- {
1399
- "__schema": "UnImplementedSchema",
1400
- "location": {
1401
- "filePath": "deprecation.aspect.ts",
1402
- "line": 9,
1403
- "character": 16
1404
- },
1405
- "name": "DeprecationAspect",
1406
- "type": "Identifier"
1407
- }
1408
- ],
1409
- "internals": []
1410
- }
1411
- ],
1412
- "componentId": {
1413
- "scope": "teambit.component",
1414
- "name": "deprecation",
1415
- "version": "1.0.186"
1416
- },
1417
- "taggedModuleExports": []
1418
- }