@teambit/deprecation 1.0.425 → 1.0.426

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,4 +1,4 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <testsuites tests="0" failures="0" errors="0" skipped="0">
3
- <testsuite name="teambit.component/deprecation@1.0.425" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.component/deprecation@1.0.426" tests="0" failures="0" errors="0" skipped="0"/>
4
4
  </testsuites>
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.component/deprecation-preview"]=t():e["teambit.component/deprecation-preview"]=t()}(self,(()=>(()=>{"use strict";var e={81619:(e,t,o)=>{var n={id:"teambit.component/deprecation@1.0.425",homepage:"https://bit.cloud/teambit/component/deprecation",exported:!0};function r(){const e=i(o(41594));return r=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,r.__bit_component=n,i.__bit_component=n;const c=()=>r().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},r().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/deprecation.svg"}));c.__bit_component=n,t.Logo=c},41594:e=>{e.exports=React}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};o.r(n),o.d(n,{compositions:()=>f,compositions_metadata:()=>v,overview:()=>m});var r={};o.r(r),o.d(r,{default:()=>l});var i=o(81619);o(41594);const c=MdxJsReact,a=TeambitMdxUiMdxScopeContext;var p=["components"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},s.apply(null,arguments)}var d={},u="wrapper";function l(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;o[n]=e[n]}return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,p);return(0,c.mdx)(u,s({},d,o,{components:t,mdxType:"MDXLayout"}),(0,c.mdx)(a.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}l.isMDXComponent=!0;const f=[i],m=[r],v={compositions:[{displayName:"Logo",identifier:"Logo"}]};return n})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.component/deprecation-preview"]=t():e["teambit.component/deprecation-preview"]=t()}(self,(()=>(()=>{"use strict";var e={25816:(e,t,o)=>{var n={id:"teambit.component/deprecation@1.0.426",homepage:"https://bit.cloud/teambit/component/deprecation",exported:!0};function r(){const e=i(o(41594));return r=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,r.__bit_component=n,i.__bit_component=n;const c=()=>r().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},r().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/deprecation.svg"}));c.__bit_component=n,t.Logo=c},41594:e=>{e.exports=React}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};o.r(n),o.d(n,{compositions:()=>f,compositions_metadata:()=>v,overview:()=>m});var r={};o.r(r),o.d(r,{default:()=>l});var i=o(25816);o(41594);const c=MdxJsReact,a=TeambitMdxUiMdxScopeContext;var p=["components"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},s.apply(null,arguments)}var d={},u="wrapper";function l(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;o[n]=e[n]}return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,p);return(0,c.mdx)(u,s({},d,o,{components:t,mdxType:"MDXLayout"}),(0,c.mdx)(a.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}l.isMDXComponent=!0;const f=[i],m=[r],v={compositions:[{displayName:"Logo",identifier:"Logo"}]};return n})()));
@@ -46,16 +46,16 @@
46
46
  "__schema": "ParameterSchema",
47
47
  "location": {
48
48
  "filePath": "deprecation.main.runtime.ts",
49
- "line": 41,
50
- "character": 15
49
+ "line": 42,
50
+ "character": 5
51
51
  },
52
52
  "name": "scope",
53
53
  "type": {
54
54
  "__schema": "TypeRefSchema",
55
55
  "location": {
56
56
  "filePath": "deprecation.main.runtime.ts",
57
- "line": 41,
58
- "character": 30
57
+ "line": 42,
58
+ "character": 20
59
59
  },
60
60
  "name": "ScopeMain",
61
61
  "componentId": {
@@ -70,16 +70,16 @@
70
70
  "__schema": "ParameterSchema",
71
71
  "location": {
72
72
  "filePath": "deprecation.main.runtime.ts",
73
- "line": 41,
74
- "character": 41
73
+ "line": 43,
74
+ "character": 5
75
75
  },
76
76
  "name": "workspace",
77
77
  "type": {
78
78
  "__schema": "TypeRefSchema",
79
79
  "location": {
80
80
  "filePath": "deprecation.main.runtime.ts",
81
- "line": 41,
82
- "character": 60
81
+ "line": 43,
82
+ "character": 24
83
83
  },
84
84
  "name": "Workspace",
85
85
  "componentId": {
@@ -94,16 +94,16 @@
94
94
  "__schema": "ParameterSchema",
95
95
  "location": {
96
96
  "filePath": "deprecation.main.runtime.ts",
97
- "line": 41,
98
- "character": 71
97
+ "line": 44,
98
+ "character": 5
99
99
  },
100
100
  "name": "depsResolver",
101
101
  "type": {
102
102
  "__schema": "TypeRefSchema",
103
103
  "location": {
104
104
  "filePath": "deprecation.main.runtime.ts",
105
- "line": 41,
106
- "character": 93
105
+ "line": 44,
106
+ "character": 27
107
107
  },
108
108
  "name": "DependencyResolverMain",
109
109
  "componentId": {
@@ -130,7 +130,7 @@
130
130
  "__schema": "FunctionLikeSchema",
131
131
  "location": {
132
132
  "filePath": "deprecation.main.runtime.ts",
133
- "line": 43,
133
+ "line": 47,
134
134
  "character": 3
135
135
  },
136
136
  "signature": "(method) DeprecationMain.getDeprecationInfo(component: Component): Promise<DeprecationInfo>",
@@ -140,7 +140,7 @@
140
140
  "__schema": "ParameterSchema",
141
141
  "location": {
142
142
  "filePath": "deprecation.main.runtime.ts",
143
- "line": 43,
143
+ "line": 47,
144
144
  "character": 28
145
145
  },
146
146
  "name": "component",
@@ -148,7 +148,7 @@
148
148
  "__schema": "TypeRefSchema",
149
149
  "location": {
150
150
  "filePath": "deprecation.main.runtime.ts",
151
- "line": 43,
151
+ "line": 47,
152
152
  "character": 39
153
153
  },
154
154
  "name": "Component",
@@ -165,7 +165,7 @@
165
165
  "__schema": "TypeRefSchema",
166
166
  "location": {
167
167
  "filePath": "deprecation.main.runtime.ts",
168
- "line": 43,
168
+ "line": 47,
169
169
  "character": 51
170
170
  },
171
171
  "name": "Promise",
@@ -174,7 +174,7 @@
174
174
  "__schema": "TypeRefSchema",
175
175
  "location": {
176
176
  "filePath": "deprecation.main.runtime.ts",
177
- "line": 43,
177
+ "line": 47,
178
178
  "character": 59
179
179
  },
180
180
  "name": "DeprecationInfo"
@@ -189,14 +189,14 @@
189
189
  "__schema": "FunctionLikeSchema",
190
190
  "location": {
191
191
  "filePath": "deprecation.main.runtime.ts",
192
- "line": 85,
192
+ "line": 89,
193
193
  "character": 3
194
194
  },
195
195
  "doc": {
196
196
  "__schema": "DocSchema",
197
197
  "location": {
198
198
  "filePath": "deprecation.main.runtime.ts",
199
- "line": 77,
199
+ "line": 81,
200
200
  "character": 3
201
201
  },
202
202
  "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 */",
@@ -206,7 +206,7 @@
206
206
  "__schema": "PropertyLikeTagSchema",
207
207
  "location": {
208
208
  "filePath": "deprecation.main.runtime.ts",
209
- "line": 81,
209
+ "line": 85,
210
210
  "character": 6
211
211
  },
212
212
  "name": "componentId",
@@ -216,7 +216,7 @@
216
216
  "__schema": "PropertyLikeTagSchema",
217
217
  "location": {
218
218
  "filePath": "deprecation.main.runtime.ts",
219
- "line": 82,
219
+ "line": 86,
220
220
  "character": 6
221
221
  },
222
222
  "name": "newId",
@@ -226,7 +226,7 @@
226
226
  "__schema": "ReturnTagSchema",
227
227
  "location": {
228
228
  "filePath": "deprecation.main.runtime.ts",
229
- "line": 83,
229
+ "line": 87,
230
230
  "character": 6
231
231
  },
232
232
  "tagName": "return",
@@ -241,7 +241,7 @@
241
241
  "__schema": "ParameterSchema",
242
242
  "location": {
243
243
  "filePath": "deprecation.main.runtime.ts",
244
- "line": 85,
244
+ "line": 89,
245
245
  "character": 19
246
246
  },
247
247
  "name": "componentId",
@@ -249,7 +249,7 @@
249
249
  "__schema": "TypeRefSchema",
250
250
  "location": {
251
251
  "filePath": "deprecation.main.runtime.ts",
252
- "line": 85,
252
+ "line": 89,
253
253
  "character": 32
254
254
  },
255
255
  "name": "ComponentID",
@@ -265,7 +265,7 @@
265
265
  "__schema": "ParameterSchema",
266
266
  "location": {
267
267
  "filePath": "deprecation.main.runtime.ts",
268
- "line": 85,
268
+ "line": 89,
269
269
  "character": 45
270
270
  },
271
271
  "name": "newId",
@@ -273,7 +273,7 @@
273
273
  "__schema": "TypeRefSchema",
274
274
  "location": {
275
275
  "filePath": "deprecation.main.runtime.ts",
276
- "line": 85,
276
+ "line": 89,
277
277
  "character": 53
278
278
  },
279
279
  "name": "ComponentID",
@@ -289,7 +289,7 @@
289
289
  "__schema": "ParameterSchema",
290
290
  "location": {
291
291
  "filePath": "deprecation.main.runtime.ts",
292
- "line": 85,
292
+ "line": 89,
293
293
  "character": 66
294
294
  },
295
295
  "name": "range",
@@ -297,7 +297,7 @@
297
297
  "__schema": "KeywordTypeSchema",
298
298
  "location": {
299
299
  "filePath": "deprecation.main.runtime.ts",
300
- "line": 85,
300
+ "line": 89,
301
301
  "character": 74
302
302
  },
303
303
  "name": "string"
@@ -310,7 +310,7 @@
310
310
  "__schema": "TypeRefSchema",
311
311
  "location": {
312
312
  "filePath": "deprecation.main.runtime.ts",
313
- "line": 85,
313
+ "line": 89,
314
314
  "character": 83
315
315
  },
316
316
  "name": "Promise",
@@ -319,7 +319,7 @@
319
319
  "__schema": "KeywordTypeSchema",
320
320
  "location": {
321
321
  "filePath": "deprecation.main.runtime.ts",
322
- "line": 85,
322
+ "line": 89,
323
323
  "character": 91
324
324
  },
325
325
  "name": "boolean"
@@ -334,7 +334,7 @@
334
334
  "__schema": "FunctionLikeSchema",
335
335
  "location": {
336
336
  "filePath": "deprecation.main.runtime.ts",
337
- "line": 96,
337
+ "line": 100,
338
338
  "character": 3
339
339
  },
340
340
  "signature": "(method) DeprecationMain.deprecateByCLIValues(id: string, newId?: string, range?: string): Promise<boolean>",
@@ -344,7 +344,7 @@
344
344
  "__schema": "ParameterSchema",
345
345
  "location": {
346
346
  "filePath": "deprecation.main.runtime.ts",
347
- "line": 96,
347
+ "line": 100,
348
348
  "character": 30
349
349
  },
350
350
  "name": "id",
@@ -352,7 +352,7 @@
352
352
  "__schema": "KeywordTypeSchema",
353
353
  "location": {
354
354
  "filePath": "deprecation.main.runtime.ts",
355
- "line": 96,
355
+ "line": 100,
356
356
  "character": 34
357
357
  },
358
358
  "name": "string"
@@ -364,7 +364,7 @@
364
364
  "__schema": "ParameterSchema",
365
365
  "location": {
366
366
  "filePath": "deprecation.main.runtime.ts",
367
- "line": 96,
367
+ "line": 100,
368
368
  "character": 42
369
369
  },
370
370
  "name": "newId",
@@ -372,7 +372,7 @@
372
372
  "__schema": "KeywordTypeSchema",
373
373
  "location": {
374
374
  "filePath": "deprecation.main.runtime.ts",
375
- "line": 96,
375
+ "line": 100,
376
376
  "character": 50
377
377
  },
378
378
  "name": "string"
@@ -384,7 +384,7 @@
384
384
  "__schema": "ParameterSchema",
385
385
  "location": {
386
386
  "filePath": "deprecation.main.runtime.ts",
387
- "line": 96,
387
+ "line": 100,
388
388
  "character": 58
389
389
  },
390
390
  "name": "range",
@@ -392,7 +392,7 @@
392
392
  "__schema": "KeywordTypeSchema",
393
393
  "location": {
394
394
  "filePath": "deprecation.main.runtime.ts",
395
- "line": 96,
395
+ "line": 100,
396
396
  "character": 66
397
397
  },
398
398
  "name": "string"
@@ -405,7 +405,7 @@
405
405
  "__schema": "TypeRefSchema",
406
406
  "location": {
407
407
  "filePath": "deprecation.main.runtime.ts",
408
- "line": 96,
408
+ "line": 100,
409
409
  "character": 75
410
410
  },
411
411
  "name": "Promise",
@@ -414,7 +414,7 @@
414
414
  "__schema": "KeywordTypeSchema",
415
415
  "location": {
416
416
  "filePath": "deprecation.main.runtime.ts",
417
- "line": 96,
417
+ "line": 100,
418
418
  "character": 83
419
419
  },
420
420
  "name": "boolean"
@@ -429,7 +429,7 @@
429
429
  "__schema": "FunctionLikeSchema",
430
430
  "location": {
431
431
  "filePath": "deprecation.main.runtime.ts",
432
- "line": 102,
432
+ "line": 106,
433
433
  "character": 3
434
434
  },
435
435
  "signature": "(method) DeprecationMain.unDeprecateByCLIValues(id: string): Promise<boolean>",
@@ -439,7 +439,7 @@
439
439
  "__schema": "ParameterSchema",
440
440
  "location": {
441
441
  "filePath": "deprecation.main.runtime.ts",
442
- "line": 102,
442
+ "line": 106,
443
443
  "character": 32
444
444
  },
445
445
  "name": "id",
@@ -447,7 +447,7 @@
447
447
  "__schema": "KeywordTypeSchema",
448
448
  "location": {
449
449
  "filePath": "deprecation.main.runtime.ts",
450
- "line": 102,
450
+ "line": 106,
451
451
  "character": 36
452
452
  },
453
453
  "name": "string"
@@ -460,7 +460,7 @@
460
460
  "__schema": "TypeRefSchema",
461
461
  "location": {
462
462
  "filePath": "deprecation.main.runtime.ts",
463
- "line": 102,
463
+ "line": 106,
464
464
  "character": 45
465
465
  },
466
466
  "name": "Promise",
@@ -469,7 +469,7 @@
469
469
  "__schema": "KeywordTypeSchema",
470
470
  "location": {
471
471
  "filePath": "deprecation.main.runtime.ts",
472
- "line": 102,
472
+ "line": 106,
473
473
  "character": 53
474
474
  },
475
475
  "name": "boolean"
@@ -484,7 +484,7 @@
484
484
  "__schema": "FunctionLikeSchema",
485
485
  "location": {
486
486
  "filePath": "deprecation.main.runtime.ts",
487
- "line": 107,
487
+ "line": 111,
488
488
  "character": 3
489
489
  },
490
490
  "signature": "(method) DeprecationMain.unDeprecate(componentId: ComponentID): Promise<boolean>",
@@ -494,7 +494,7 @@
494
494
  "__schema": "ParameterSchema",
495
495
  "location": {
496
496
  "filePath": "deprecation.main.runtime.ts",
497
- "line": 107,
497
+ "line": 111,
498
498
  "character": 21
499
499
  },
500
500
  "name": "componentId",
@@ -502,7 +502,7 @@
502
502
  "__schema": "TypeRefSchema",
503
503
  "location": {
504
504
  "filePath": "deprecation.main.runtime.ts",
505
- "line": 107,
505
+ "line": 111,
506
506
  "character": 34
507
507
  },
508
508
  "name": "ComponentID",
@@ -519,7 +519,7 @@
519
519
  "__schema": "InferenceTypeSchema",
520
520
  "location": {
521
521
  "filePath": "deprecation.main.runtime.ts",
522
- "line": 107,
522
+ "line": 111,
523
523
  "character": 3
524
524
  },
525
525
  "type": "Promise<boolean>"
@@ -532,7 +532,7 @@
532
532
  "__schema": "FunctionLikeSchema",
533
533
  "location": {
534
534
  "filePath": "deprecation.main.runtime.ts",
535
- "line": 117,
535
+ "line": 121,
536
536
  "character": 3
537
537
  },
538
538
  "signature": "(method) DeprecationMain.addDeprecatedDependenciesIssues(components: Component[]): Promise<void>",
@@ -542,7 +542,7 @@
542
542
  "__schema": "ParameterSchema",
543
543
  "location": {
544
544
  "filePath": "deprecation.main.runtime.ts",
545
- "line": 117,
545
+ "line": 121,
546
546
  "character": 41
547
547
  },
548
548
  "name": "components",
@@ -550,14 +550,14 @@
550
550
  "__schema": "TypeArraySchema",
551
551
  "location": {
552
552
  "filePath": "deprecation.main.runtime.ts",
553
- "line": 117,
553
+ "line": 121,
554
554
  "character": 53
555
555
  },
556
556
  "type": {
557
557
  "__schema": "TypeRefSchema",
558
558
  "location": {
559
559
  "filePath": "deprecation.main.runtime.ts",
560
- "line": 117,
560
+ "line": 121,
561
561
  "character": 53
562
562
  },
563
563
  "name": "Component",
@@ -575,7 +575,7 @@
575
575
  "__schema": "InferenceTypeSchema",
576
576
  "location": {
577
577
  "filePath": "deprecation.main.runtime.ts",
578
- "line": 117,
578
+ "line": 121,
579
579
  "character": 3
580
580
  },
581
581
  "type": "Promise<void>"
@@ -588,7 +588,7 @@
588
588
  "__schema": "VariableLikeSchema",
589
589
  "location": {
590
590
  "filePath": "deprecation.main.runtime.ts",
591
- "line": 155,
591
+ "line": 159,
592
592
  "character": 3
593
593
  },
594
594
  "signature": "(property) DeprecationMain.runtime: RuntimeDefinition",
@@ -597,7 +597,7 @@
597
597
  "__schema": "InferenceTypeSchema",
598
598
  "location": {
599
599
  "filePath": "deprecation.main.runtime.ts",
600
- "line": 155,
600
+ "line": 159,
601
601
  "character": 3
602
602
  },
603
603
  "type": "RuntimeDefinition"
@@ -609,7 +609,7 @@
609
609
  "__schema": "VariableLikeSchema",
610
610
  "location": {
611
611
  "filePath": "deprecation.main.runtime.ts",
612
- "line": 156,
612
+ "line": 160,
613
613
  "character": 3
614
614
  },
615
615
  "signature": "(property) DeprecationMain.dependencies: Aspect[]",
@@ -618,7 +618,7 @@
618
618
  "__schema": "InferenceTypeSchema",
619
619
  "location": {
620
620
  "filePath": "deprecation.main.runtime.ts",
621
- "line": 156,
621
+ "line": 160,
622
622
  "character": 3
623
623
  },
624
624
  "type": "Aspect[]"
@@ -630,7 +630,7 @@
630
630
  "__schema": "FunctionLikeSchema",
631
631
  "location": {
632
632
  "filePath": "deprecation.main.runtime.ts",
633
- "line": 165,
633
+ "line": 169,
634
634
  "character": 3
635
635
  },
636
636
  "signature": "(method) DeprecationMain.provider([graphql, scope, componentAspect, workspace, cli, depsResolver, issues]: [\n GraphqlMain,\n ScopeMain,\n ComponentMain,\n Workspace,\n CLIMain,\n DependencyResolverMain,\n IssuesMain\n]): Promise<DeprecationMain>",
@@ -640,7 +640,7 @@
640
640
  "__schema": "ParameterSchema",
641
641
  "location": {
642
642
  "filePath": "deprecation.main.runtime.ts",
643
- "line": 165,
643
+ "line": 169,
644
644
  "character": 25
645
645
  },
646
646
  "name": "[ graphql, scope, componentAspect, workspace, cli, depsResolver, issues ]",
@@ -648,7 +648,7 @@
648
648
  "__schema": "TupleTypeSchema",
649
649
  "location": {
650
650
  "filePath": "deprecation.main.runtime.ts",
651
- "line": 165,
651
+ "line": 169,
652
652
  "character": 98
653
653
  },
654
654
  "elements": [
@@ -656,7 +656,7 @@
656
656
  "__schema": "TypeRefSchema",
657
657
  "location": {
658
658
  "filePath": "deprecation.main.runtime.ts",
659
- "line": 166,
659
+ "line": 170,
660
660
  "character": 5
661
661
  },
662
662
  "name": "GraphqlMain",
@@ -669,7 +669,7 @@
669
669
  "__schema": "TypeRefSchema",
670
670
  "location": {
671
671
  "filePath": "deprecation.main.runtime.ts",
672
- "line": 167,
672
+ "line": 171,
673
673
  "character": 5
674
674
  },
675
675
  "name": "ScopeMain",
@@ -682,7 +682,7 @@
682
682
  "__schema": "TypeRefSchema",
683
683
  "location": {
684
684
  "filePath": "deprecation.main.runtime.ts",
685
- "line": 168,
685
+ "line": 172,
686
686
  "character": 5
687
687
  },
688
688
  "name": "ComponentMain",
@@ -695,7 +695,7 @@
695
695
  "__schema": "TypeRefSchema",
696
696
  "location": {
697
697
  "filePath": "deprecation.main.runtime.ts",
698
- "line": 169,
698
+ "line": 173,
699
699
  "character": 5
700
700
  },
701
701
  "name": "Workspace",
@@ -708,7 +708,7 @@
708
708
  "__schema": "TypeRefSchema",
709
709
  "location": {
710
710
  "filePath": "deprecation.main.runtime.ts",
711
- "line": 170,
711
+ "line": 174,
712
712
  "character": 5
713
713
  },
714
714
  "name": "CLIMain",
@@ -721,7 +721,7 @@
721
721
  "__schema": "TypeRefSchema",
722
722
  "location": {
723
723
  "filePath": "deprecation.main.runtime.ts",
724
- "line": 171,
724
+ "line": 175,
725
725
  "character": 5
726
726
  },
727
727
  "name": "DependencyResolverMain",
@@ -734,7 +734,7 @@
734
734
  "__schema": "TypeRefSchema",
735
735
  "location": {
736
736
  "filePath": "deprecation.main.runtime.ts",
737
- "line": 172,
737
+ "line": 176,
738
738
  "character": 5
739
739
  },
740
740
  "name": "IssuesMain",
@@ -753,7 +753,7 @@
753
753
  "__schema": "InferenceTypeSchema",
754
754
  "location": {
755
755
  "filePath": "deprecation.main.runtime.ts",
756
- "line": 165,
756
+ "line": 169,
757
757
  "character": 3
758
758
  },
759
759
  "type": "Promise<DeprecationMain>"
@@ -1293,16 +1293,16 @@
1293
1293
  "__schema": "ParameterSchema",
1294
1294
  "location": {
1295
1295
  "filePath": "deprecation.main.runtime.ts",
1296
- "line": 41,
1297
- "character": 15
1296
+ "line": 42,
1297
+ "character": 5
1298
1298
  },
1299
1299
  "name": "scope",
1300
1300
  "type": {
1301
1301
  "__schema": "TypeRefSchema",
1302
1302
  "location": {
1303
1303
  "filePath": "deprecation.main.runtime.ts",
1304
- "line": 41,
1305
- "character": 30
1304
+ "line": 42,
1305
+ "character": 20
1306
1306
  },
1307
1307
  "name": "ScopeMain",
1308
1308
  "componentId": {
@@ -1317,16 +1317,16 @@
1317
1317
  "__schema": "ParameterSchema",
1318
1318
  "location": {
1319
1319
  "filePath": "deprecation.main.runtime.ts",
1320
- "line": 41,
1321
- "character": 41
1320
+ "line": 43,
1321
+ "character": 5
1322
1322
  },
1323
1323
  "name": "workspace",
1324
1324
  "type": {
1325
1325
  "__schema": "TypeRefSchema",
1326
1326
  "location": {
1327
1327
  "filePath": "deprecation.main.runtime.ts",
1328
- "line": 41,
1329
- "character": 60
1328
+ "line": 43,
1329
+ "character": 24
1330
1330
  },
1331
1331
  "name": "Workspace",
1332
1332
  "componentId": {
@@ -1341,16 +1341,16 @@
1341
1341
  "__schema": "ParameterSchema",
1342
1342
  "location": {
1343
1343
  "filePath": "deprecation.main.runtime.ts",
1344
- "line": 41,
1345
- "character": 71
1344
+ "line": 44,
1345
+ "character": 5
1346
1346
  },
1347
1347
  "name": "depsResolver",
1348
1348
  "type": {
1349
1349
  "__schema": "TypeRefSchema",
1350
1350
  "location": {
1351
1351
  "filePath": "deprecation.main.runtime.ts",
1352
- "line": 41,
1353
- "character": 93
1352
+ "line": 44,
1353
+ "character": 27
1354
1354
  },
1355
1355
  "name": "DependencyResolverMain",
1356
1356
  "componentId": {
@@ -1377,7 +1377,7 @@
1377
1377
  "__schema": "FunctionLikeSchema",
1378
1378
  "location": {
1379
1379
  "filePath": "deprecation.main.runtime.ts",
1380
- "line": 43,
1380
+ "line": 47,
1381
1381
  "character": 3
1382
1382
  },
1383
1383
  "signature": "(method) DeprecationMain.getDeprecationInfo(component: Component): Promise<DeprecationInfo>",
@@ -1387,7 +1387,7 @@
1387
1387
  "__schema": "ParameterSchema",
1388
1388
  "location": {
1389
1389
  "filePath": "deprecation.main.runtime.ts",
1390
- "line": 43,
1390
+ "line": 47,
1391
1391
  "character": 28
1392
1392
  },
1393
1393
  "name": "component",
@@ -1395,7 +1395,7 @@
1395
1395
  "__schema": "TypeRefSchema",
1396
1396
  "location": {
1397
1397
  "filePath": "deprecation.main.runtime.ts",
1398
- "line": 43,
1398
+ "line": 47,
1399
1399
  "character": 39
1400
1400
  },
1401
1401
  "name": "Component",
@@ -1412,7 +1412,7 @@
1412
1412
  "__schema": "TypeRefSchema",
1413
1413
  "location": {
1414
1414
  "filePath": "deprecation.main.runtime.ts",
1415
- "line": 43,
1415
+ "line": 47,
1416
1416
  "character": 51
1417
1417
  },
1418
1418
  "name": "Promise",
@@ -1421,7 +1421,7 @@
1421
1421
  "__schema": "TypeRefSchema",
1422
1422
  "location": {
1423
1423
  "filePath": "deprecation.main.runtime.ts",
1424
- "line": 43,
1424
+ "line": 47,
1425
1425
  "character": 59
1426
1426
  },
1427
1427
  "name": "DeprecationInfo"
@@ -1436,14 +1436,14 @@
1436
1436
  "__schema": "FunctionLikeSchema",
1437
1437
  "location": {
1438
1438
  "filePath": "deprecation.main.runtime.ts",
1439
- "line": 85,
1439
+ "line": 89,
1440
1440
  "character": 3
1441
1441
  },
1442
1442
  "doc": {
1443
1443
  "__schema": "DocSchema",
1444
1444
  "location": {
1445
1445
  "filePath": "deprecation.main.runtime.ts",
1446
- "line": 77,
1446
+ "line": 81,
1447
1447
  "character": 3
1448
1448
  },
1449
1449
  "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 */",
@@ -1453,7 +1453,7 @@
1453
1453
  "__schema": "PropertyLikeTagSchema",
1454
1454
  "location": {
1455
1455
  "filePath": "deprecation.main.runtime.ts",
1456
- "line": 81,
1456
+ "line": 85,
1457
1457
  "character": 6
1458
1458
  },
1459
1459
  "name": "componentId",
@@ -1463,7 +1463,7 @@
1463
1463
  "__schema": "PropertyLikeTagSchema",
1464
1464
  "location": {
1465
1465
  "filePath": "deprecation.main.runtime.ts",
1466
- "line": 82,
1466
+ "line": 86,
1467
1467
  "character": 6
1468
1468
  },
1469
1469
  "name": "newId",
@@ -1473,7 +1473,7 @@
1473
1473
  "__schema": "ReturnTagSchema",
1474
1474
  "location": {
1475
1475
  "filePath": "deprecation.main.runtime.ts",
1476
- "line": 83,
1476
+ "line": 87,
1477
1477
  "character": 6
1478
1478
  },
1479
1479
  "tagName": "return",
@@ -1488,7 +1488,7 @@
1488
1488
  "__schema": "ParameterSchema",
1489
1489
  "location": {
1490
1490
  "filePath": "deprecation.main.runtime.ts",
1491
- "line": 85,
1491
+ "line": 89,
1492
1492
  "character": 19
1493
1493
  },
1494
1494
  "name": "componentId",
@@ -1496,7 +1496,7 @@
1496
1496
  "__schema": "TypeRefSchema",
1497
1497
  "location": {
1498
1498
  "filePath": "deprecation.main.runtime.ts",
1499
- "line": 85,
1499
+ "line": 89,
1500
1500
  "character": 32
1501
1501
  },
1502
1502
  "name": "ComponentID",
@@ -1512,7 +1512,7 @@
1512
1512
  "__schema": "ParameterSchema",
1513
1513
  "location": {
1514
1514
  "filePath": "deprecation.main.runtime.ts",
1515
- "line": 85,
1515
+ "line": 89,
1516
1516
  "character": 45
1517
1517
  },
1518
1518
  "name": "newId",
@@ -1520,7 +1520,7 @@
1520
1520
  "__schema": "TypeRefSchema",
1521
1521
  "location": {
1522
1522
  "filePath": "deprecation.main.runtime.ts",
1523
- "line": 85,
1523
+ "line": 89,
1524
1524
  "character": 53
1525
1525
  },
1526
1526
  "name": "ComponentID",
@@ -1536,7 +1536,7 @@
1536
1536
  "__schema": "ParameterSchema",
1537
1537
  "location": {
1538
1538
  "filePath": "deprecation.main.runtime.ts",
1539
- "line": 85,
1539
+ "line": 89,
1540
1540
  "character": 66
1541
1541
  },
1542
1542
  "name": "range",
@@ -1544,7 +1544,7 @@
1544
1544
  "__schema": "KeywordTypeSchema",
1545
1545
  "location": {
1546
1546
  "filePath": "deprecation.main.runtime.ts",
1547
- "line": 85,
1547
+ "line": 89,
1548
1548
  "character": 74
1549
1549
  },
1550
1550
  "name": "string"
@@ -1557,7 +1557,7 @@
1557
1557
  "__schema": "TypeRefSchema",
1558
1558
  "location": {
1559
1559
  "filePath": "deprecation.main.runtime.ts",
1560
- "line": 85,
1560
+ "line": 89,
1561
1561
  "character": 83
1562
1562
  },
1563
1563
  "name": "Promise",
@@ -1566,7 +1566,7 @@
1566
1566
  "__schema": "KeywordTypeSchema",
1567
1567
  "location": {
1568
1568
  "filePath": "deprecation.main.runtime.ts",
1569
- "line": 85,
1569
+ "line": 89,
1570
1570
  "character": 91
1571
1571
  },
1572
1572
  "name": "boolean"
@@ -1581,7 +1581,7 @@
1581
1581
  "__schema": "FunctionLikeSchema",
1582
1582
  "location": {
1583
1583
  "filePath": "deprecation.main.runtime.ts",
1584
- "line": 96,
1584
+ "line": 100,
1585
1585
  "character": 3
1586
1586
  },
1587
1587
  "signature": "(method) DeprecationMain.deprecateByCLIValues(id: string, newId?: string, range?: string): Promise<boolean>",
@@ -1591,7 +1591,7 @@
1591
1591
  "__schema": "ParameterSchema",
1592
1592
  "location": {
1593
1593
  "filePath": "deprecation.main.runtime.ts",
1594
- "line": 96,
1594
+ "line": 100,
1595
1595
  "character": 30
1596
1596
  },
1597
1597
  "name": "id",
@@ -1599,7 +1599,7 @@
1599
1599
  "__schema": "KeywordTypeSchema",
1600
1600
  "location": {
1601
1601
  "filePath": "deprecation.main.runtime.ts",
1602
- "line": 96,
1602
+ "line": 100,
1603
1603
  "character": 34
1604
1604
  },
1605
1605
  "name": "string"
@@ -1611,7 +1611,7 @@
1611
1611
  "__schema": "ParameterSchema",
1612
1612
  "location": {
1613
1613
  "filePath": "deprecation.main.runtime.ts",
1614
- "line": 96,
1614
+ "line": 100,
1615
1615
  "character": 42
1616
1616
  },
1617
1617
  "name": "newId",
@@ -1619,7 +1619,7 @@
1619
1619
  "__schema": "KeywordTypeSchema",
1620
1620
  "location": {
1621
1621
  "filePath": "deprecation.main.runtime.ts",
1622
- "line": 96,
1622
+ "line": 100,
1623
1623
  "character": 50
1624
1624
  },
1625
1625
  "name": "string"
@@ -1631,7 +1631,7 @@
1631
1631
  "__schema": "ParameterSchema",
1632
1632
  "location": {
1633
1633
  "filePath": "deprecation.main.runtime.ts",
1634
- "line": 96,
1634
+ "line": 100,
1635
1635
  "character": 58
1636
1636
  },
1637
1637
  "name": "range",
@@ -1639,7 +1639,7 @@
1639
1639
  "__schema": "KeywordTypeSchema",
1640
1640
  "location": {
1641
1641
  "filePath": "deprecation.main.runtime.ts",
1642
- "line": 96,
1642
+ "line": 100,
1643
1643
  "character": 66
1644
1644
  },
1645
1645
  "name": "string"
@@ -1652,7 +1652,7 @@
1652
1652
  "__schema": "TypeRefSchema",
1653
1653
  "location": {
1654
1654
  "filePath": "deprecation.main.runtime.ts",
1655
- "line": 96,
1655
+ "line": 100,
1656
1656
  "character": 75
1657
1657
  },
1658
1658
  "name": "Promise",
@@ -1661,7 +1661,7 @@
1661
1661
  "__schema": "KeywordTypeSchema",
1662
1662
  "location": {
1663
1663
  "filePath": "deprecation.main.runtime.ts",
1664
- "line": 96,
1664
+ "line": 100,
1665
1665
  "character": 83
1666
1666
  },
1667
1667
  "name": "boolean"
@@ -1676,7 +1676,7 @@
1676
1676
  "__schema": "FunctionLikeSchema",
1677
1677
  "location": {
1678
1678
  "filePath": "deprecation.main.runtime.ts",
1679
- "line": 102,
1679
+ "line": 106,
1680
1680
  "character": 3
1681
1681
  },
1682
1682
  "signature": "(method) DeprecationMain.unDeprecateByCLIValues(id: string): Promise<boolean>",
@@ -1686,7 +1686,7 @@
1686
1686
  "__schema": "ParameterSchema",
1687
1687
  "location": {
1688
1688
  "filePath": "deprecation.main.runtime.ts",
1689
- "line": 102,
1689
+ "line": 106,
1690
1690
  "character": 32
1691
1691
  },
1692
1692
  "name": "id",
@@ -1694,7 +1694,7 @@
1694
1694
  "__schema": "KeywordTypeSchema",
1695
1695
  "location": {
1696
1696
  "filePath": "deprecation.main.runtime.ts",
1697
- "line": 102,
1697
+ "line": 106,
1698
1698
  "character": 36
1699
1699
  },
1700
1700
  "name": "string"
@@ -1707,7 +1707,7 @@
1707
1707
  "__schema": "TypeRefSchema",
1708
1708
  "location": {
1709
1709
  "filePath": "deprecation.main.runtime.ts",
1710
- "line": 102,
1710
+ "line": 106,
1711
1711
  "character": 45
1712
1712
  },
1713
1713
  "name": "Promise",
@@ -1716,7 +1716,7 @@
1716
1716
  "__schema": "KeywordTypeSchema",
1717
1717
  "location": {
1718
1718
  "filePath": "deprecation.main.runtime.ts",
1719
- "line": 102,
1719
+ "line": 106,
1720
1720
  "character": 53
1721
1721
  },
1722
1722
  "name": "boolean"
@@ -1731,7 +1731,7 @@
1731
1731
  "__schema": "FunctionLikeSchema",
1732
1732
  "location": {
1733
1733
  "filePath": "deprecation.main.runtime.ts",
1734
- "line": 107,
1734
+ "line": 111,
1735
1735
  "character": 3
1736
1736
  },
1737
1737
  "signature": "(method) DeprecationMain.unDeprecate(componentId: ComponentID): Promise<boolean>",
@@ -1741,7 +1741,7 @@
1741
1741
  "__schema": "ParameterSchema",
1742
1742
  "location": {
1743
1743
  "filePath": "deprecation.main.runtime.ts",
1744
- "line": 107,
1744
+ "line": 111,
1745
1745
  "character": 21
1746
1746
  },
1747
1747
  "name": "componentId",
@@ -1749,7 +1749,7 @@
1749
1749
  "__schema": "TypeRefSchema",
1750
1750
  "location": {
1751
1751
  "filePath": "deprecation.main.runtime.ts",
1752
- "line": 107,
1752
+ "line": 111,
1753
1753
  "character": 34
1754
1754
  },
1755
1755
  "name": "ComponentID",
@@ -1766,7 +1766,7 @@
1766
1766
  "__schema": "InferenceTypeSchema",
1767
1767
  "location": {
1768
1768
  "filePath": "deprecation.main.runtime.ts",
1769
- "line": 107,
1769
+ "line": 111,
1770
1770
  "character": 3
1771
1771
  },
1772
1772
  "type": "Promise<boolean>"
@@ -1779,7 +1779,7 @@
1779
1779
  "__schema": "FunctionLikeSchema",
1780
1780
  "location": {
1781
1781
  "filePath": "deprecation.main.runtime.ts",
1782
- "line": 117,
1782
+ "line": 121,
1783
1783
  "character": 3
1784
1784
  },
1785
1785
  "signature": "(method) DeprecationMain.addDeprecatedDependenciesIssues(components: Component[]): Promise<void>",
@@ -1789,7 +1789,7 @@
1789
1789
  "__schema": "ParameterSchema",
1790
1790
  "location": {
1791
1791
  "filePath": "deprecation.main.runtime.ts",
1792
- "line": 117,
1792
+ "line": 121,
1793
1793
  "character": 41
1794
1794
  },
1795
1795
  "name": "components",
@@ -1797,14 +1797,14 @@
1797
1797
  "__schema": "TypeArraySchema",
1798
1798
  "location": {
1799
1799
  "filePath": "deprecation.main.runtime.ts",
1800
- "line": 117,
1800
+ "line": 121,
1801
1801
  "character": 53
1802
1802
  },
1803
1803
  "type": {
1804
1804
  "__schema": "TypeRefSchema",
1805
1805
  "location": {
1806
1806
  "filePath": "deprecation.main.runtime.ts",
1807
- "line": 117,
1807
+ "line": 121,
1808
1808
  "character": 53
1809
1809
  },
1810
1810
  "name": "Component",
@@ -1822,7 +1822,7 @@
1822
1822
  "__schema": "InferenceTypeSchema",
1823
1823
  "location": {
1824
1824
  "filePath": "deprecation.main.runtime.ts",
1825
- "line": 117,
1825
+ "line": 121,
1826
1826
  "character": 3
1827
1827
  },
1828
1828
  "type": "Promise<void>"
@@ -1835,7 +1835,7 @@
1835
1835
  "__schema": "VariableLikeSchema",
1836
1836
  "location": {
1837
1837
  "filePath": "deprecation.main.runtime.ts",
1838
- "line": 155,
1838
+ "line": 159,
1839
1839
  "character": 3
1840
1840
  },
1841
1841
  "signature": "(property) DeprecationMain.runtime: RuntimeDefinition",
@@ -1844,7 +1844,7 @@
1844
1844
  "__schema": "InferenceTypeSchema",
1845
1845
  "location": {
1846
1846
  "filePath": "deprecation.main.runtime.ts",
1847
- "line": 155,
1847
+ "line": 159,
1848
1848
  "character": 3
1849
1849
  },
1850
1850
  "type": "RuntimeDefinition"
@@ -1856,7 +1856,7 @@
1856
1856
  "__schema": "VariableLikeSchema",
1857
1857
  "location": {
1858
1858
  "filePath": "deprecation.main.runtime.ts",
1859
- "line": 156,
1859
+ "line": 160,
1860
1860
  "character": 3
1861
1861
  },
1862
1862
  "signature": "(property) DeprecationMain.dependencies: Aspect[]",
@@ -1865,7 +1865,7 @@
1865
1865
  "__schema": "InferenceTypeSchema",
1866
1866
  "location": {
1867
1867
  "filePath": "deprecation.main.runtime.ts",
1868
- "line": 156,
1868
+ "line": 160,
1869
1869
  "character": 3
1870
1870
  },
1871
1871
  "type": "Aspect[]"
@@ -1877,7 +1877,7 @@
1877
1877
  "__schema": "FunctionLikeSchema",
1878
1878
  "location": {
1879
1879
  "filePath": "deprecation.main.runtime.ts",
1880
- "line": 165,
1880
+ "line": 169,
1881
1881
  "character": 3
1882
1882
  },
1883
1883
  "signature": "(method) DeprecationMain.provider([graphql, scope, componentAspect, workspace, cli, depsResolver, issues]: [\n GraphqlMain,\n ScopeMain,\n ComponentMain,\n Workspace,\n CLIMain,\n DependencyResolverMain,\n IssuesMain\n]): Promise<DeprecationMain>",
@@ -1887,7 +1887,7 @@
1887
1887
  "__schema": "ParameterSchema",
1888
1888
  "location": {
1889
1889
  "filePath": "deprecation.main.runtime.ts",
1890
- "line": 165,
1890
+ "line": 169,
1891
1891
  "character": 25
1892
1892
  },
1893
1893
  "name": "[ graphql, scope, componentAspect, workspace, cli, depsResolver, issues ]",
@@ -1895,7 +1895,7 @@
1895
1895
  "__schema": "TupleTypeSchema",
1896
1896
  "location": {
1897
1897
  "filePath": "deprecation.main.runtime.ts",
1898
- "line": 165,
1898
+ "line": 169,
1899
1899
  "character": 98
1900
1900
  },
1901
1901
  "elements": [
@@ -1903,7 +1903,7 @@
1903
1903
  "__schema": "TypeRefSchema",
1904
1904
  "location": {
1905
1905
  "filePath": "deprecation.main.runtime.ts",
1906
- "line": 166,
1906
+ "line": 170,
1907
1907
  "character": 5
1908
1908
  },
1909
1909
  "name": "GraphqlMain",
@@ -1916,7 +1916,7 @@
1916
1916
  "__schema": "TypeRefSchema",
1917
1917
  "location": {
1918
1918
  "filePath": "deprecation.main.runtime.ts",
1919
- "line": 167,
1919
+ "line": 171,
1920
1920
  "character": 5
1921
1921
  },
1922
1922
  "name": "ScopeMain",
@@ -1929,7 +1929,7 @@
1929
1929
  "__schema": "TypeRefSchema",
1930
1930
  "location": {
1931
1931
  "filePath": "deprecation.main.runtime.ts",
1932
- "line": 168,
1932
+ "line": 172,
1933
1933
  "character": 5
1934
1934
  },
1935
1935
  "name": "ComponentMain",
@@ -1942,7 +1942,7 @@
1942
1942
  "__schema": "TypeRefSchema",
1943
1943
  "location": {
1944
1944
  "filePath": "deprecation.main.runtime.ts",
1945
- "line": 169,
1945
+ "line": 173,
1946
1946
  "character": 5
1947
1947
  },
1948
1948
  "name": "Workspace",
@@ -1955,7 +1955,7 @@
1955
1955
  "__schema": "TypeRefSchema",
1956
1956
  "location": {
1957
1957
  "filePath": "deprecation.main.runtime.ts",
1958
- "line": 170,
1958
+ "line": 174,
1959
1959
  "character": 5
1960
1960
  },
1961
1961
  "name": "CLIMain",
@@ -1968,7 +1968,7 @@
1968
1968
  "__schema": "TypeRefSchema",
1969
1969
  "location": {
1970
1970
  "filePath": "deprecation.main.runtime.ts",
1971
- "line": 171,
1971
+ "line": 175,
1972
1972
  "character": 5
1973
1973
  },
1974
1974
  "name": "DependencyResolverMain",
@@ -1981,7 +1981,7 @@
1981
1981
  "__schema": "TypeRefSchema",
1982
1982
  "location": {
1983
1983
  "filePath": "deprecation.main.runtime.ts",
1984
- "line": 172,
1984
+ "line": 176,
1985
1985
  "character": 5
1986
1986
  },
1987
1987
  "name": "IssuesMain",
@@ -2000,7 +2000,7 @@
2000
2000
  "__schema": "InferenceTypeSchema",
2001
2001
  "location": {
2002
2002
  "filePath": "deprecation.main.runtime.ts",
2003
- "line": 165,
2003
+ "line": 169,
2004
2004
  "character": 3
2005
2005
  },
2006
2006
  "type": "Promise<DeprecationMain>"
@@ -2020,7 +2020,7 @@
2020
2020
  "__schema": "UnImplementedSchema",
2021
2021
  "location": {
2022
2022
  "filePath": "deprecation.main.runtime.ts",
2023
- "line": 184,
2023
+ "line": 188,
2024
2024
  "character": 1
2025
2025
  },
2026
2026
  "name": "DeprecationAspect.addRuntime(DeprecationMain);",
@@ -2079,7 +2079,7 @@
2079
2079
  "componentId": {
2080
2080
  "scope": "teambit.component",
2081
2081
  "name": "deprecation",
2082
- "version": "1.0.425"
2082
+ "version": "1.0.426"
2083
2083
  },
2084
2084
  "taggedModuleExports": []
2085
2085
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_cli","data","require","_semver","_interopRequireDefault","_component","_scope","_workspace","_graphql","_deprecation","_deprecation2","_deprecation3","_deprecateCmd","_undeprecateCmd","_issues","_pMapSeries","_dependencyResolver","_lodash","_componentIssues","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","DeprecationMain","constructor","scope","workspace","depsResolver","getDeprecationInfo","component","headComponent","getHeadComponent","config","extensions","findExtension","DeprecationAspect","id","deprecatedBackwardCompatibility","state","_consumer","deprecated","isDeprecate","Boolean","deprecate","currentTag","getTag","isDeprecateByRange","range","semver","satisfies","version","newId","ComponentID","fromObject","toString","undefined","head","hash","headTag","headComp","get","changeVersion","Error","componentId","results","bitMap","addComponentConfig","toObject","write","deprecateByCLIValues","resolveComponentId","newComponentId","unDeprecateByCLIValues","unDeprecate","addDeprecatedDependenciesIssues","components","pMapSeries","addDeprecatedDepIssue","dependencies","getComponentDependencies","removedWithUndefined","Promise","all","map","dep","isRemoved","isDeprecatedByIdWithoutLoadingComponent","removed","compact","length","issues","getOrCreate","IssuesClasses","DeprecatedDependencies","hasVersion","bitmapEntry","getBitmapEntryIfExist","isDeprecated","isUndeprecated","modelComp","getBitObjectModelComponent","legacyScope","objects","provider","graphql","componentAspect","cli","deprecation","registerAddComponentsIssues","bind","register","DeprecateCmd","UndeprecateCmd","registerShowFragments","DeprecationFragment","deprecationSchema","exports","MainRuntime","GraphqlAspect","ScopeAspect","ComponentAspect","WorkspaceAspect","CLIAspect","DependencyResolverAspect","IssuesAspect","addRuntime"],"sources":["deprecation.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport semver from 'semver';\nimport { ComponentMain, ComponentAspect, Component, ComponentID } from '@teambit/component';\nimport { ScopeMain, ScopeAspect } from '@teambit/scope';\nimport { WorkspaceAspect, Workspace } from '@teambit/workspace';\nimport { GraphqlAspect, GraphqlMain } from '@teambit/graphql';\nimport { ComponentIdObj } from '@teambit/component-id';\nimport { DeprecationAspect } from './deprecation.aspect';\nimport { deprecationSchema } from './deprecation.graphql';\nimport { DeprecationFragment } from './deprecation.fragment';\nimport { DeprecateCmd } from './deprecate-cmd';\nimport { UndeprecateCmd } from './undeprecate-cmd';\nimport { IssuesAspect, IssuesMain } from '@teambit/issues';\nimport pMapSeries from 'p-map-series';\nimport { DependencyResolverAspect, DependencyResolverMain } from '@teambit/dependency-resolver';\nimport { compact } from 'lodash';\nimport { IssuesClasses } from '@teambit/component-issues';\n\nexport type DeprecationInfo = {\n isDeprecate: boolean;\n newId?: string;\n range?: string;\n};\n\nexport type DeprecationMetadata = {\n /**\n * whether the head is deprecated\n */\n deprecate?: boolean;\n /**\n * the new id to use instead of the current one\n */\n newId?: ComponentIdObj;\n /**\n * Semver range to deprecate previous versions\n */\n range?: string;\n};\n\nexport class DeprecationMain {\n constructor(private scope: ScopeMain, private workspace: Workspace, private depsResolver: DependencyResolverMain) {}\n\n async getDeprecationInfo(component: Component): Promise<DeprecationInfo> {\n const headComponent = await this.getHeadComponent(component);\n\n const data = headComponent.config.extensions.findExtension(DeprecationAspect.id)?.config as\n | DeprecationMetadata\n | undefined;\n const deprecatedBackwardCompatibility = component.state._consumer.deprecated;\n const isDeprecate = Boolean(data?.deprecate || deprecatedBackwardCompatibility);\n const currentTag = component.getTag();\n const isDeprecateByRange = Boolean(data?.range && currentTag && semver.satisfies(currentTag.version, data.range));\n const newId = data?.newId ? ComponentID.fromObject(data?.newId).toString() : undefined;\n return {\n isDeprecate: isDeprecate || isDeprecateByRange,\n newId,\n range: data?.range,\n };\n }\n\n private async getHeadComponent(component: Component): Promise<Component> {\n if (\n component.id.version &&\n component.head &&\n component.id.version !== component.head?.hash &&\n component.id.version !== component.headTag?.version.version\n ) {\n const headComp = this.workspace // if workspace exits, prefer using the workspace as it may be modified\n ? await this.workspace.get(component.id.changeVersion(undefined))\n : await this.scope.get(component.id.changeVersion(component.head.hash));\n if (!headComp) throw new Error(`unable to get the head of ${component.id.toString()}`);\n return headComp;\n }\n return component;\n }\n\n /**\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 */\n async deprecate(componentId: ComponentID, newId?: ComponentID, range?: string): Promise<boolean> {\n const results = this.workspace.bitMap.addComponentConfig(componentId, DeprecationAspect.id, {\n deprecate: !range,\n newId: newId?.toObject(),\n range,\n });\n await this.workspace.bitMap.write(`deprecate ${componentId.toString()}`);\n\n return results;\n }\n\n async deprecateByCLIValues(id: string, newId?: string, range?: string): Promise<boolean> {\n const componentId = await this.workspace.resolveComponentId(id);\n const newComponentId = newId ? await this.workspace.resolveComponentId(newId) : undefined;\n return this.deprecate(componentId, newComponentId, range);\n }\n\n async unDeprecateByCLIValues(id: string): Promise<boolean> {\n const componentId = await this.workspace.resolveComponentId(id);\n return this.unDeprecate(componentId);\n }\n\n async unDeprecate(componentId: ComponentID) {\n const results = this.workspace.bitMap.addComponentConfig(componentId, DeprecationAspect.id, {\n deprecate: false,\n newId: '',\n });\n await this.workspace.bitMap.write(`undeprecate ${componentId.toString()}`);\n\n return results;\n }\n\n async addDeprecatedDependenciesIssues(components: Component[]) {\n await pMapSeries(components, async (component) => {\n await this.addDeprecatedDepIssue(component);\n });\n }\n\n private async addDeprecatedDepIssue(component: Component) {\n const dependencies = this.depsResolver.getComponentDependencies(component);\n const removedWithUndefined = await Promise.all(\n dependencies.map(async (dep) => {\n const isRemoved = await this.isDeprecatedByIdWithoutLoadingComponent(dep.componentId);\n if (isRemoved) return dep.componentId;\n return undefined;\n })\n );\n const removed = compact(removedWithUndefined).map((id) => id.toString());\n if (removed.length) {\n component.state.issues.getOrCreate(IssuesClasses.DeprecatedDependencies).data = removed;\n }\n }\n\n /**\n * performant version of isDeprecated() in case the component object is not available and loading it is expensive.\n */\n private async isDeprecatedByIdWithoutLoadingComponent(componentId: ComponentID): Promise<boolean> {\n if (!componentId.hasVersion()) return false;\n const bitmapEntry = this.workspace.bitMap.getBitmapEntryIfExist(componentId);\n if (bitmapEntry && bitmapEntry.isDeprecated()) return true;\n if (bitmapEntry && bitmapEntry.isUndeprecated()) return false;\n const modelComp = await this.workspace.scope.getBitObjectModelComponent(componentId);\n if (!modelComp) return false;\n const isDeprecated = await modelComp.isDeprecated(\n this.workspace.scope.legacyScope.objects,\n componentId.version as string\n );\n return Boolean(isDeprecated);\n }\n\n static runtime = MainRuntime;\n static dependencies = [\n GraphqlAspect,\n ScopeAspect,\n ComponentAspect,\n WorkspaceAspect,\n CLIAspect,\n DependencyResolverAspect,\n IssuesAspect,\n ];\n static async provider([graphql, scope, componentAspect, workspace, cli, depsResolver, issues]: [\n GraphqlMain,\n ScopeMain,\n ComponentMain,\n Workspace,\n CLIMain,\n DependencyResolverMain,\n IssuesMain\n ]) {\n const deprecation = new DeprecationMain(scope, workspace, depsResolver);\n issues.registerAddComponentsIssues(deprecation.addDeprecatedDependenciesIssues.bind(deprecation));\n cli.register(new DeprecateCmd(deprecation), new UndeprecateCmd(deprecation));\n componentAspect.registerShowFragments([new DeprecationFragment(deprecation)]);\n graphql.register(deprecationSchema(deprecation));\n\n return deprecation;\n }\n}\n\nDeprecationAspect.addRuntime(DeprecationMain);\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,QAAA;EAAA,MAAAF,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAC,OAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,WAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,UAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,OAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,MAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,WAAA;EAAA,MAAAN,IAAA,GAAAC,OAAA;EAAAK,UAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAO,SAAA;EAAA,MAAAP,IAAA,GAAAC,OAAA;EAAAM,QAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAQ,aAAA;EAAA,MAAAR,IAAA,GAAAC,OAAA;EAAAO,YAAA,YAAAA,CAAA;IAAA,OAAAR,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAS,cAAA;EAAA,MAAAT,IAAA,GAAAC,OAAA;EAAAQ,aAAA,YAAAA,CAAA;IAAA,OAAAT,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAU,cAAA;EAAA,MAAAV,IAAA,GAAAC,OAAA;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A,CAnHjBkB,eAAe,kBAoHJ,CACpB+F,wBAAa,EACbC,oBAAW,EACXC,4BAAe,EACfC,4BAAe,EACfC,gBAAS,EACTC,8CAAwB,EACxBC,sBAAY,CACb;AAoBHzF,gCAAiB,CAAC0F,UAAU,CAACtG,eAAe,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_cli","data","require","_semver","_interopRequireDefault","_component","_scope","_workspace","_graphql","_deprecation","_deprecation2","_deprecation3","_deprecateCmd","_undeprecateCmd","_issues","_pMapSeries","_dependencyResolver","_lodash","_componentIssues","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","DeprecationMain","constructor","scope","workspace","depsResolver","getDeprecationInfo","component","headComponent","getHeadComponent","config","extensions","findExtension","DeprecationAspect","id","deprecatedBackwardCompatibility","state","_consumer","deprecated","isDeprecate","Boolean","deprecate","currentTag","getTag","isDeprecateByRange","range","semver","satisfies","version","newId","ComponentID","fromObject","toString","undefined","head","hash","headTag","headComp","get","changeVersion","Error","componentId","results","bitMap","addComponentConfig","toObject","write","deprecateByCLIValues","resolveComponentId","newComponentId","unDeprecateByCLIValues","unDeprecate","addDeprecatedDependenciesIssues","components","pMapSeries","addDeprecatedDepIssue","dependencies","getComponentDependencies","removedWithUndefined","Promise","all","map","dep","isRemoved","isDeprecatedByIdWithoutLoadingComponent","removed","compact","length","issues","getOrCreate","IssuesClasses","DeprecatedDependencies","hasVersion","bitmapEntry","getBitmapEntryIfExist","isDeprecated","isUndeprecated","modelComp","getBitObjectModelComponent","legacyScope","objects","provider","graphql","componentAspect","cli","deprecation","registerAddComponentsIssues","bind","register","DeprecateCmd","UndeprecateCmd","registerShowFragments","DeprecationFragment","deprecationSchema","exports","MainRuntime","GraphqlAspect","ScopeAspect","ComponentAspect","WorkspaceAspect","CLIAspect","DependencyResolverAspect","IssuesAspect","addRuntime"],"sources":["deprecation.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport semver from 'semver';\nimport { ComponentMain, ComponentAspect, Component, ComponentID } from '@teambit/component';\nimport { ScopeMain, ScopeAspect } from '@teambit/scope';\nimport { WorkspaceAspect, Workspace } from '@teambit/workspace';\nimport { GraphqlAspect, GraphqlMain } from '@teambit/graphql';\nimport { ComponentIdObj } from '@teambit/component-id';\nimport { DeprecationAspect } from './deprecation.aspect';\nimport { deprecationSchema } from './deprecation.graphql';\nimport { DeprecationFragment } from './deprecation.fragment';\nimport { DeprecateCmd } from './deprecate-cmd';\nimport { UndeprecateCmd } from './undeprecate-cmd';\nimport { IssuesAspect, IssuesMain } from '@teambit/issues';\nimport pMapSeries from 'p-map-series';\nimport { DependencyResolverAspect, DependencyResolverMain } from '@teambit/dependency-resolver';\nimport { compact } from 'lodash';\nimport { IssuesClasses } from '@teambit/component-issues';\n\nexport type DeprecationInfo = {\n isDeprecate: boolean;\n newId?: string;\n range?: string;\n};\n\nexport type DeprecationMetadata = {\n /**\n * whether the head is deprecated\n */\n deprecate?: boolean;\n /**\n * the new id to use instead of the current one\n */\n newId?: ComponentIdObj;\n /**\n * Semver range to deprecate previous versions\n */\n range?: string;\n};\n\nexport class DeprecationMain {\n constructor(\n private scope: ScopeMain,\n private workspace: Workspace,\n private depsResolver: DependencyResolverMain\n ) {}\n\n async getDeprecationInfo(component: Component): Promise<DeprecationInfo> {\n const headComponent = await this.getHeadComponent(component);\n\n const data = headComponent.config.extensions.findExtension(DeprecationAspect.id)?.config as\n | DeprecationMetadata\n | undefined;\n const deprecatedBackwardCompatibility = component.state._consumer.deprecated;\n const isDeprecate = Boolean(data?.deprecate || deprecatedBackwardCompatibility);\n const currentTag = component.getTag();\n const isDeprecateByRange = Boolean(data?.range && currentTag && semver.satisfies(currentTag.version, data.range));\n const newId = data?.newId ? ComponentID.fromObject(data?.newId).toString() : undefined;\n return {\n isDeprecate: isDeprecate || isDeprecateByRange,\n newId,\n range: data?.range,\n };\n }\n\n private async getHeadComponent(component: Component): Promise<Component> {\n if (\n component.id.version &&\n component.head &&\n component.id.version !== component.head?.hash &&\n component.id.version !== component.headTag?.version.version\n ) {\n const headComp = this.workspace // if workspace exits, prefer using the workspace as it may be modified\n ? await this.workspace.get(component.id.changeVersion(undefined))\n : await this.scope.get(component.id.changeVersion(component.head.hash));\n if (!headComp) throw new Error(`unable to get the head of ${component.id.toString()}`);\n return headComp;\n }\n return component;\n }\n\n /**\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 */\n async deprecate(componentId: ComponentID, newId?: ComponentID, range?: string): Promise<boolean> {\n const results = this.workspace.bitMap.addComponentConfig(componentId, DeprecationAspect.id, {\n deprecate: !range,\n newId: newId?.toObject(),\n range,\n });\n await this.workspace.bitMap.write(`deprecate ${componentId.toString()}`);\n\n return results;\n }\n\n async deprecateByCLIValues(id: string, newId?: string, range?: string): Promise<boolean> {\n const componentId = await this.workspace.resolveComponentId(id);\n const newComponentId = newId ? await this.workspace.resolveComponentId(newId) : undefined;\n return this.deprecate(componentId, newComponentId, range);\n }\n\n async unDeprecateByCLIValues(id: string): Promise<boolean> {\n const componentId = await this.workspace.resolveComponentId(id);\n return this.unDeprecate(componentId);\n }\n\n async unDeprecate(componentId: ComponentID) {\n const results = this.workspace.bitMap.addComponentConfig(componentId, DeprecationAspect.id, {\n deprecate: false,\n newId: '',\n });\n await this.workspace.bitMap.write(`undeprecate ${componentId.toString()}`);\n\n return results;\n }\n\n async addDeprecatedDependenciesIssues(components: Component[]) {\n await pMapSeries(components, async (component) => {\n await this.addDeprecatedDepIssue(component);\n });\n }\n\n private async addDeprecatedDepIssue(component: Component) {\n const dependencies = this.depsResolver.getComponentDependencies(component);\n const removedWithUndefined = await Promise.all(\n dependencies.map(async (dep) => {\n const isRemoved = await this.isDeprecatedByIdWithoutLoadingComponent(dep.componentId);\n if (isRemoved) return dep.componentId;\n return undefined;\n })\n );\n const removed = compact(removedWithUndefined).map((id) => id.toString());\n if (removed.length) {\n component.state.issues.getOrCreate(IssuesClasses.DeprecatedDependencies).data = removed;\n }\n }\n\n /**\n * performant version of isDeprecated() in case the component object is not available and loading it is expensive.\n */\n private async isDeprecatedByIdWithoutLoadingComponent(componentId: ComponentID): Promise<boolean> {\n if (!componentId.hasVersion()) return false;\n const bitmapEntry = this.workspace.bitMap.getBitmapEntryIfExist(componentId);\n if (bitmapEntry && bitmapEntry.isDeprecated()) return true;\n if (bitmapEntry && bitmapEntry.isUndeprecated()) return false;\n const modelComp = await this.workspace.scope.getBitObjectModelComponent(componentId);\n if (!modelComp) return false;\n const isDeprecated = await modelComp.isDeprecated(\n this.workspace.scope.legacyScope.objects,\n componentId.version as string\n );\n return Boolean(isDeprecated);\n }\n\n static runtime = MainRuntime;\n static dependencies = [\n GraphqlAspect,\n ScopeAspect,\n ComponentAspect,\n WorkspaceAspect,\n CLIAspect,\n DependencyResolverAspect,\n IssuesAspect,\n ];\n static async provider([graphql, scope, componentAspect, workspace, cli, depsResolver, issues]: [\n GraphqlMain,\n ScopeMain,\n ComponentMain,\n Workspace,\n CLIMain,\n DependencyResolverMain,\n IssuesMain,\n ]) {\n const deprecation = new DeprecationMain(scope, workspace, depsResolver);\n issues.registerAddComponentsIssues(deprecation.addDeprecatedDependenciesIssues.bind(deprecation));\n cli.register(new DeprecateCmd(deprecation), new UndeprecateCmd(deprecation));\n componentAspect.registerShowFragments([new DeprecationFragment(deprecation)]);\n graphql.register(deprecationSchema(deprecation));\n\n return deprecation;\n }\n}\n\nDeprecationAspect.addRuntime(DeprecationMain);\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,QAAA;EAAA,MAAAF,IAAA,GAAAG,sBAAA,CAAAF,OAA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MF,YAAY,GAAG,MAAME,SAAS,CAACF,YAAY,CAC/C,IAAI,CAACvE,SAAS,CAACD,KAAK,CAAC4E,WAAW,CAACC,OAAO,EACxCvC,WAAW,CAACb,OACd,CAAC;IACD,OAAOR,OAAO,CAACuD,YAAY,CAAC;EAC9B;EAYA,aAAaM,QAAQA,CAAC,CAACC,OAAO,EAAE/E,KAAK,EAAEgF,eAAe,EAAE/E,SAAS,EAAEgF,GAAG,EAAE/E,YAAY,EAAE+D,MAAM,CAQ3F,EAAE;IACD,MAAMiB,WAAW,GAAG,IAAIpF,eAAe,CAACE,KAAK,EAAEC,SAAS,EAAEC,YAAY,CAAC;IACvE+D,MAAM,CAACkB,2BAA2B,CAACD,WAAW,CAACjC,+BAA+B,CAACmC,IAAI,CAACF,WAAW,CAAC,CAAC;IACjGD,GAAG,CAACI,QAAQ,CAAC,KAAIC,4BAAY,EAACJ,WAAW,CAAC,EAAE,KAAIK,gCAAc,EAACL,WAAW,CAAC,CAAC;IAC5EF,eAAe,CAACQ,qBAAqB,CAAC,CAAC,KAAIC,mCAAmB,EAACP,WAAW,CAAC,CAAC,CAAC;IAC7EH,OAAO,CAACM,QAAQ,CAAC,IAAAK,iCAAiB,EAACR,WAAW,CAAC,CAAC;IAEhD,OAAOA,WAAW;EACpB;AACF;AAACS,OAAA,CAAA7F,eAAA,GAAAA,eAAA;AAAAlB,eAAA,CAlJYkB,eAAe,aAuHT8F,kBAAW;AAAAhH,eAAA,CAvHjBkB,eAAe,kBAwHJ,CACpB+F,wBAAa,EACbC,oBAAW,EACXC,4BAAe,EACfC,4BAAe,EACfC,gBAAS,EACTC,8CAAwB,EACxBC,sBAAY,CACb;AAoBHzF,gCAAiB,CAAC0F,UAAU,CAACtG,eAAe,CAAC","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_deprecation@1.0.425/dist/deprecation.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_deprecation@1.0.425/dist/deprecation.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_deprecation@1.0.426/dist/deprecation.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_deprecation@1.0.426/dist/deprecation.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/deprecation",
3
- "version": "1.0.425",
3
+ "version": "1.0.426",
4
4
  "homepage": "https://bit.cloud/teambit/component/deprecation",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.component",
8
8
  "name": "deprecation",
9
- "version": "1.0.425"
9
+ "version": "1.0.426"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -17,16 +17,16 @@
17
17
  "@teambit/harmony": "0.4.6",
18
18
  "@teambit/component-id": "1.2.2",
19
19
  "@teambit/component.ui.component-deprecated": "0.0.39",
20
- "@teambit/cli": "0.0.1002",
21
- "@teambit/component": "1.0.425",
22
- "@teambit/graphql": "1.0.425",
20
+ "@teambit/cli": "0.0.1003",
21
+ "@teambit/component": "1.0.426",
22
+ "@teambit/graphql": "1.0.426",
23
23
  "@teambit/component-issues": "0.0.151",
24
- "@teambit/dependency-resolver": "1.0.425",
25
- "@teambit/issues": "1.0.425",
26
- "@teambit/scope": "1.0.425",
27
- "@teambit/workspace": "1.0.425",
28
- "@teambit/docs": "1.0.425",
29
- "@teambit/ui": "1.0.425"
24
+ "@teambit/dependency-resolver": "1.0.426",
25
+ "@teambit/issues": "1.0.426",
26
+ "@teambit/scope": "1.0.426",
27
+ "@teambit/workspace": "1.0.426",
28
+ "@teambit/docs": "1.0.426",
29
+ "@teambit/ui": "1.0.426"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/lodash": "4.14.165",