@teambit/component-issues 0.0.45 → 0.0.48

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.
@@ -12,6 +12,7 @@ export class ComponentIssue {
12
12
  data: any;
13
13
  isTagBlocker = true; // if true, it stops the tag process and shows the issue
14
14
  isCacheBlocker = true; // if true, it doesn't cache the component in the filesystem
15
+ isLegacyIssue = false;
15
16
  formatDataFunction: FormatIssueFunc = componentIssueToString;
16
17
  get descriptionWithSolution() {
17
18
  const solution = this.solution ? ` (${this.solution})` : '';
@@ -9,6 +9,7 @@ export declare class ComponentIssue {
9
9
  data: any;
10
10
  isTagBlocker: boolean;
11
11
  isCacheBlocker: boolean;
12
+ isLegacyIssue: boolean;
12
13
  formatDataFunction: FormatIssueFunc;
13
14
  get descriptionWithSolution(): string;
14
15
  outputForCLI(): string;
@@ -12,6 +12,7 @@ class ComponentIssue {
12
12
  constructor() {
13
13
  this.isTagBlocker = true; // if true, it stops the tag process and shows the issue
14
14
  this.isCacheBlocker = true; // if true, it doesn't cache the component in the filesystem
15
+ this.isLegacyIssue = false;
15
16
  this.formatDataFunction = componentIssueToString;
16
17
  }
17
18
  get descriptionWithSolution() {
@@ -1 +1 @@
1
- {"version":3,"file":"component-issue.js","sourceRoot":"","sources":["../component-issue.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,0DAA+C;AAIlC,QAAA,wBAAwB,GAAG,EAAE,CAAC;AAC9B,QAAA,kBAAkB,GAAG,GAAG,CAAC,MAAM,CAAC,gCAAwB,CAAC,CAAC;AAEvE,MAAa,cAAc;IAA3B;QAIE,iBAAY,GAAG,IAAI,CAAC,CAAC,wDAAwD;QAC7E,mBAAc,GAAG,IAAI,CAAC,CAAC,4DAA4D;QACnF,uBAAkB,GAAoB,sBAAsB,CAAC;IA6B/D,CAAC;IA5BC,IAAI,uBAAuB;QACzB,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC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AAC,CAAC,CAAC,KAAK,CAAC;AACzD,CAAC;AAFD,wDAEC;AAED,SAAgB,oBAAoB,CAAC,OAAe;IAClD,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;QACrC,IAAI,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,IAAI,qBAAK,CAAC,EAAE,CAAC,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IACH,OAAO,IAAI,CAAC;AACd,CAAC;AAND,oDAMC"}
@@ -8,8 +8,8 @@ import { MissingDists } from './missing-dists';
8
8
  import { MissingLinks } from './missing-links';
9
9
  import { MissingPackagesDependenciesOnFs } from './missing-packages-dependencies-on-fs';
10
10
  import { ParseErrors } from './parse-errors';
11
- import { relativeComponents } from './relative-components';
12
- import { relativeComponentsAuthored } from './relative-components-authored';
11
+ import { RelativeComponents } from './relative-components';
12
+ import { RelativeComponentsAuthored } from './relative-components-authored';
13
13
  import { ResolveErrors } from './resolve-errors';
14
14
  import { UntrackedDependencies } from './untracked-dependencies';
15
15
  import { LegacyInsideHarmony } from './legacy-inside-harmony';
@@ -20,8 +20,8 @@ export declare const IssuesClasses: {
20
20
  MissingComponents: typeof MissingComponents;
21
21
  UntrackedDependencies: typeof UntrackedDependencies;
22
22
  ResolveErrors: typeof ResolveErrors;
23
- relativeComponents: typeof relativeComponents;
24
- relativeComponentsAuthored: typeof relativeComponentsAuthored;
23
+ RelativeComponents: typeof RelativeComponents;
24
+ RelativeComponentsAuthored: typeof RelativeComponentsAuthored;
25
25
  ParseErrors: typeof ParseErrors;
26
26
  MissingLinks: typeof MissingLinks;
27
27
  MissingDists: typeof MissingDists;
@@ -50,6 +50,7 @@ export declare class IssuesList {
50
50
  description: string;
51
51
  data: string;
52
52
  }[];
53
+ getHarmonyIssues(): ComponentIssue[];
53
54
  add(issue: ComponentIssue): void;
54
55
  delete(IssueClass: typeof ComponentIssue): void;
55
56
  getIssue<T extends ComponentIssue>(IssueClass: {
@@ -22,8 +22,8 @@ exports.IssuesClasses = {
22
22
  MissingComponents: missing_components_1.MissingComponents,
23
23
  UntrackedDependencies: untracked_dependencies_1.UntrackedDependencies,
24
24
  ResolveErrors: resolve_errors_1.ResolveErrors,
25
- relativeComponents: relative_components_1.relativeComponents,
26
- relativeComponentsAuthored: relative_components_authored_1.relativeComponentsAuthored,
25
+ RelativeComponents: relative_components_1.RelativeComponents,
26
+ RelativeComponentsAuthored: relative_components_authored_1.RelativeComponentsAuthored,
27
27
  ParseErrors: parse_errors_1.ParseErrors,
28
28
  MissingLinks: missing_links_1.MissingLinks,
29
29
  MissingDists: missing_dists_1.MissingDists,
@@ -54,6 +54,9 @@ class IssuesList {
54
54
  toObjectWithDataAsString() {
55
55
  return this.issues.map((issue) => (Object.assign(Object.assign({}, issue.toObject()), { data: issue.dataToString().trim() })));
56
56
  }
57
+ getHarmonyIssues() {
58
+ return this.issues.filter((issue) => !issue.isLegacyIssue);
59
+ }
57
60
  add(issue) {
58
61
  this.issues.push(issue);
59
62
  }
@@ -1 +1 @@
1
- {"version":3,"file":"issues-list.js","sourceRoot":"","sources":["../issues-list.ts"],"names":[],"mappings":";;;AACA,mFAA6E;AAC7E,mEAA6D;AAC7D,6DAAyD;AACzD,qGAA8F;AAC9F,6EAAuE;AACvE,mDAA+C;AAC/C,mDAA+C;AAC/C,+FAAwF;AACxF,iDAA6C;AAC7C,+DAA2D;AAC3D,iFAA4E;AAC5E,qDAAiD;AACjD,qEAAiE;AACjE,mEAA8D;AAC9D,mDAA+C;AAC/C,iFAAkF;AAErE,QAAA,aAAa,GAAG;IAC3B,+BAA+B,EAA/B,qEAA+B;IAC/B,iBAAiB,EAAjB,sCAAiB;IACjB,qBAAqB,EAArB,8CAAqB;IACrB,aAAa,EA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declare class MissingCustomModuleResolutionLinks extends ComponentIssue {
3
+ isLegacyIssue: boolean;
3
4
  description: string;
4
5
  solution: string;
5
6
  data: StringsPerFilePath;
@@ -5,6 +5,7 @@ const component_issue_1 = require("./component-issue");
5
5
  class MissingCustomModuleResolutionLinks extends component_issue_1.ComponentIssue {
6
6
  constructor() {
7
7
  super(...arguments);
8
+ this.isLegacyIssue = true;
8
9
  this.description = 'missing links';
9
10
  this.solution = 'use "bit link" to build missing component links';
10
11
  this.data = {};
@@ -1 +1 @@
1
- {"version":3,"file":"missing-custom-module-resolution-links.js","sourceRoot":"","sources":["../missing-custom-module-resolution-links.ts"],"names":[],"mappings":";;;AAAA,uDAAuE;AAEvE,MAAa,kCAAmC,SAAQ,gCAAc;IAAtE;;QACE,gBAAW,GAAG,eAAe,CAAC;QAC9B,aAAQ,GAAG,iDAAiD,CAAC;QAC7D,SAAI,GAAuB,EAAE,CAAC;IAChC,CAAC;CAAA;AAJD,gFAIC"}
1
+ {"version":3,"file":"missing-custom-module-resolution-links.js","sourceRoot":"","sources":["../missing-custom-module-resolution-links.ts"],"names":[],"mappings":";;;AAAA,uDAAuE;AAEvE,MAAa,kCAAmC,SAAQ,gCAAc;IAAtE;;QACE,kBAAa,GAAG,IAAI,CAAC;QACrB,gBAAW,GAAG,eAAe,CAAC;QAC9B,aAAQ,GAAG,iDAAiD,CAAC;QAC7D,SAAI,GAAuB,EAAE,CAAC;IAChC,CAAC;CAAA;AALD,gFAKC"}
@@ -6,5 +6,6 @@ export declare class MissingLinks extends ComponentIssue {
6
6
  data: {
7
7
  [filePath: string]: BitId[];
8
8
  };
9
+ isLegacyIssue: boolean;
9
10
  deserialize(data: string): any;
10
11
  }
@@ -8,6 +8,7 @@ class MissingLinks extends component_issue_1.ComponentIssue {
8
8
  this.description = 'missing links between components';
9
9
  this.solution = 'use "bit link" to build missing component links';
10
10
  this.data = {};
11
+ this.isLegacyIssue = true;
11
12
  }
12
13
  deserialize(data) {
13
14
  return (0, component_issue_1.deserializeWithBitId)(data);
@@ -1 +1 @@
1
- {"version":3,"file":"missing-links.js","sourceRoot":"","sources":["../missing-links.ts"],"names":[],"mappings":";;;AACA,uDAAyE;AAEzE,MAAa,YAAa,SAAQ,gCAAc;IAAhD;;QACE,gBAAW,GAAG,kCAAkC,CAAC;QACjD,aAAQ,GAAG,iDAAiD,CAAC;QAC7D,SAAI,GAAoC,EAAE,CAAC;IAI7C,CAAC;IAHC,WAAW,CAAC,IAAY;QACtB,OAAO,IAAA,sCAAoB,EAAC,IAAI,CAAC,CAAC;IACpC,CAAC;CACF;AAPD,oCAOC"}
1
+ {"version":3,"file":"missing-links.js","sourceRoot":"","sources":["../missing-links.ts"],"names":[],"mappings":";;;AACA,uDAAyE;AAEzE,MAAa,YAAa,SAAQ,gCAAc;IAAhD;;QACE,gBAAW,GAAG,kCAAkC,CAAC;QACjD,aAAQ,GAAG,iDAAiD,CAAC;QAC7D,SAAI,GAAoC,EAAE,CAAC;QAC3C,kBAAa,GAAG,IAAI,CAAC;IAIvB,CAAC;IAHC,WAAW,CAAC,IAAY;QACtB,OAAO,IAAA,sCAAoB,EAAC,IAAI,CAAC,CAAC;IACpC,CAAC;CACF;AARD,oCAQC"}
@@ -6,7 +6,8 @@ class MultipleEnvs extends component_issue_1.ComponentIssue {
6
6
  constructor() {
7
7
  super(...arguments);
8
8
  this.description = 'multiple envs';
9
- this.solution = 'remove the old envs by setting them with "-" sign in the variants. see https://harmony-docs.bit.dev/aspects/variants#removing-aspects ';
9
+ // TODO: pass the docs url into here after fetch it from the community aspect
10
+ this.solution = `remove the old envs by setting them with "-" sign in the variants. see https://bit.dev/docs/envs/using-envs#component-must-have-a-single-env`;
10
11
  this.isTagBlocker = true;
11
12
  }
12
13
  dataToString() {
@@ -1 +1 @@
1
- {"version":3,"file":"multiple-envs.js","sourceRoot":"","sources":["../multiple-envs.ts"],"names":[],"mappings":";;;AAAA,uDAAuE;AAEvE,MAAa,YAAa,SAAQ,gCAAc;IAAhD;;QACE,gBAAW,GAAG,eAAe,CAAC;QAC9B,aAAQ,GACN,wIAAwI,CAAC;QAE3I,iBAAY,GAAG,IAAI,CAAC;IAItB,CAAC;IAHC,YAAY;QACV,OAAO,oCAAkB,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;CACF;AATD,oCASC"}
1
+ {"version":3,"file":"multiple-envs.js","sourceRoot":"","sources":["../multiple-envs.ts"],"names":[],"mappings":";;;AAAA,uDAAuE;AAEvE,MAAa,YAAa,SAAQ,gCAAc;IAAhD;;QACE,gBAAW,GAAG,eAAe,CAAC;QAC9B,6EAA6E;QAC7E,aAAQ,GAAG,8IAA8I,CAAC;QAE1J,iBAAY,GAAG,IAAI,CAAC;IAItB,CAAC;IAHC,YAAY;QACV,OAAO,oCAAkB,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;CACF;AATD,oCASC"}
@@ -8,7 +8,7 @@ export declare type RelativeComponentsAuthoredEntry = {
8
8
  importSpecifiers?: any[];
9
9
  };
10
10
  };
11
- export declare class relativeComponentsAuthored extends ComponentIssue {
11
+ export declare class RelativeComponentsAuthored extends ComponentIssue {
12
12
  description: string;
13
13
  solution: string;
14
14
  data: {
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.relativeComponentsAuthored = void 0;
3
+ exports.RelativeComponentsAuthored = void 0;
4
4
  const legacy_bit_id_1 = require("@teambit/legacy-bit-id");
5
5
  const component_issue_1 = require("./component-issue");
6
- class relativeComponentsAuthored extends component_issue_1.ComponentIssue {
6
+ class RelativeComponentsAuthored extends component_issue_1.ComponentIssue {
7
7
  constructor() {
8
8
  super(...arguments);
9
9
  this.description = 'components with relative import statements found';
@@ -24,7 +24,7 @@ class relativeComponentsAuthored extends component_issue_1.ComponentIssue {
24
24
  return data;
25
25
  }
26
26
  }
27
- exports.relativeComponentsAuthored = relativeComponentsAuthored;
27
+ exports.RelativeComponentsAuthored = RelativeComponentsAuthored;
28
28
  function relativeComponentsAuthoredIssuesToString(relativeEntries) {
29
29
  const stringifyEntry = (entry) => `"${entry.importSource}" (${entry.componentId.toString()})`;
30
30
  return relativeEntries.map(stringifyEntry).join(', ');
@@ -1,6 +1,6 @@
1
1
  import { BitId } from '@teambit/legacy-bit-id';
2
2
  import { ComponentIssue } from './component-issue';
3
- export declare class relativeComponents extends ComponentIssue {
3
+ export declare class RelativeComponents extends ComponentIssue {
4
4
  description: string;
5
5
  solution: string;
6
6
  data: {
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.relativeComponents = void 0;
3
+ exports.RelativeComponents = void 0;
4
4
  const component_issue_1 = require("./component-issue");
5
- class relativeComponents extends component_issue_1.ComponentIssue {
5
+ class RelativeComponents extends component_issue_1.ComponentIssue {
6
6
  constructor() {
7
7
  super(...arguments);
8
8
  this.description = 'components with relative import statements found';
@@ -14,5 +14,5 @@ class relativeComponents extends component_issue_1.ComponentIssue {
14
14
  return (0, component_issue_1.deserializeWithBitId)(data);
15
15
  }
16
16
  }
17
- exports.relativeComponents = relativeComponents;
17
+ exports.RelativeComponents = RelativeComponents;
18
18
  //# sourceMappingURL=relative-components.js.map
package/issues-list.ts CHANGED
@@ -8,8 +8,8 @@ import { MissingDists } from './missing-dists';
8
8
  import { MissingLinks } from './missing-links';
9
9
  import { MissingPackagesDependenciesOnFs } from './missing-packages-dependencies-on-fs';
10
10
  import { ParseErrors } from './parse-errors';
11
- import { relativeComponents } from './relative-components';
12
- import { relativeComponentsAuthored } from './relative-components-authored';
11
+ import { RelativeComponents } from './relative-components';
12
+ import { RelativeComponentsAuthored } from './relative-components-authored';
13
13
  import { ResolveErrors } from './resolve-errors';
14
14
  import { UntrackedDependencies } from './untracked-dependencies';
15
15
  import { LegacyInsideHarmony } from './legacy-inside-harmony';
@@ -21,8 +21,8 @@ export const IssuesClasses = {
21
21
  MissingComponents,
22
22
  UntrackedDependencies,
23
23
  ResolveErrors,
24
- relativeComponents,
25
- relativeComponentsAuthored,
24
+ RelativeComponents,
25
+ RelativeComponentsAuthored,
26
26
  ParseErrors,
27
27
  MissingLinks,
28
28
  MissingDists,
@@ -62,6 +62,10 @@ export class IssuesList {
62
62
  }));
63
63
  }
64
64
 
65
+ getHarmonyIssues() {
66
+ return this.issues.filter((issue) => !issue.isLegacyIssue);
67
+ }
68
+
65
69
  add(issue: ComponentIssue) {
66
70
  this.issues.push(issue);
67
71
  }
@@ -1,6 +1,7 @@
1
1
  import { ComponentIssue, StringsPerFilePath } from './component-issue';
2
2
 
3
3
  export class MissingCustomModuleResolutionLinks extends ComponentIssue {
4
+ isLegacyIssue = true;
4
5
  description = 'missing links';
5
6
  solution = 'use "bit link" to build missing component links';
6
7
  data: StringsPerFilePath = {};
package/missing-links.ts CHANGED
@@ -5,6 +5,7 @@ export class MissingLinks extends ComponentIssue {
5
5
  description = 'missing links between components';
6
6
  solution = 'use "bit link" to build missing component links';
7
7
  data: { [filePath: string]: BitId[] } = {};
8
+ isLegacyIssue = true;
8
9
  deserialize(data: string) {
9
10
  return deserializeWithBitId(data);
10
11
  }
package/multiple-envs.ts CHANGED
@@ -2,8 +2,8 @@ import { ComponentIssue, ISSUE_FORMAT_SPACE } from './component-issue';
2
2
 
3
3
  export class MultipleEnvs extends ComponentIssue {
4
4
  description = 'multiple envs';
5
- solution =
6
- 'remove the old envs by setting them with "-" sign in the variants. see https://harmony-docs.bit.dev/aspects/variants#removing-aspects ';
5
+ // TODO: pass the docs url into here after fetch it from the community aspect
6
+ solution = `remove the old envs by setting them with "-" sign in the variants. see https://bit.dev/docs/envs/using-envs#component-must-have-a-single-env`;
7
7
  data: string[]; // env ids
8
8
  isTagBlocker = true;
9
9
  dataToString() {
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@teambit/component-issues",
3
- "version": "0.0.45",
3
+ "version": "0.0.48",
4
4
  "homepage": "https://bit.dev/teambit/component/component-issues",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.component",
8
8
  "name": "component-issues",
9
- "version": "0.0.45"
9
+ "version": "0.0.48"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
13
- "@teambit/legacy-bit-id": "0.0.397"
13
+ "@teambit/legacy-bit-id": "0.0.399"
14
14
  },
15
15
  "devDependencies": {
16
16
  "@babel/runtime": "7.12.18",
@@ -0,0 +1 @@
1
+
@@ -10,7 +10,7 @@ export type RelativeComponentsAuthoredEntry = {
10
10
  };
11
11
  };
12
12
 
13
- export class relativeComponentsAuthored extends ComponentIssue {
13
+ export class RelativeComponentsAuthored extends ComponentIssue {
14
14
  description = 'components with relative import statements found';
15
15
  solution = 'replace to module paths or use "bit link --rewire" to replace';
16
16
  data: { [fileName: string]: RelativeComponentsAuthoredEntry[] } = {};
@@ -1,7 +1,7 @@
1
1
  import { BitId } from '@teambit/legacy-bit-id';
2
2
  import { ComponentIssue, deserializeWithBitId } from './component-issue';
3
3
 
4
- export class relativeComponents extends ComponentIssue {
4
+ export class RelativeComponents extends ComponentIssue {
5
5
  description = 'components with relative import statements found';
6
6
  solution = 'use module paths for imported components';
7
7
  data: { [filePath: string]: BitId[] } = {};