@teambit/deprecation 1.0.256 → 1.0.258

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