@teambit/component-compare 1.0.749 → 1.0.751

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.
@@ -18,7 +18,7 @@ export declare function componentCompareSchema(componentCompareMain: ComponentCo
18
18
  compareContent: string;
19
19
  filePath: string;
20
20
  diffOutput: string;
21
- status: import("@teambit/legacy.component-diff/dist/components-diff").DiffStatus;
21
+ status: import("@teambit/legacy.component-diff/components-diff").DiffStatus;
22
22
  fromContent: string;
23
23
  toContent: string;
24
24
  }[];
@@ -30,7 +30,7 @@ export declare function componentCompareSchema(componentCompareMain: ComponentCo
30
30
  compareContent: string;
31
31
  filePath: string;
32
32
  diffOutput: string;
33
- status: import("@teambit/legacy.component-diff/dist/components-diff").DiffStatus;
33
+ status: import("@teambit/legacy.component-diff/components-diff").DiffStatus;
34
34
  fromContent: string;
35
35
  toContent: string;
36
36
  }[];
@@ -5,6 +5,7 @@ export declare class DiffCmd implements Command {
5
5
  name: string;
6
6
  group: string;
7
7
  description: string;
8
+ extendedDescription: string;
8
9
  helpUrl: string;
9
10
  arguments: {
10
11
  name: string;
package/dist/diff-cmd.js CHANGED
@@ -34,7 +34,10 @@ class DiffCmd {
34
34
  this.componentCompareMain = componentCompareMain;
35
35
  _defineProperty(this, "name", 'diff [component-pattern] [version] [to-version]');
36
36
  _defineProperty(this, "group", 'info-analysis');
37
- _defineProperty(this, "description", "show the diff between the components' current source files and config, and their latest snapshot or tag");
37
+ _defineProperty(this, "description", 'compare component changes between versions or against the current workspace');
38
+ _defineProperty(this, "extendedDescription", `shows a detailed diff of component files, dependencies, and configuration changes.
39
+ by default, compares workspace changes against the latest version. specify versions to compare historical changes.
40
+ supports pattern matching to filter components and various output formats for better readability.`);
38
41
  _defineProperty(this, "helpUrl", 'docs/components/merging-changes#compare-component-snaps');
39
42
  _defineProperty(this, "arguments", [{
40
43
  name: 'component-pattern',
@@ -1 +1 @@
1
- {"version":3,"names":["_chalk","data","_interopRequireDefault","require","_legacy","_legacy2","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","DiffCmd","constructor","componentCompareMain","name","description","COMPONENT_PATTERN_HELP","cmd","report","pattern","version","toVersion","verbose","table","parent","diffResults","diffByCLIValues","length","chalk","yellow","outputDiffResults","exports"],"sources":["diff-cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { Command, CommandOptions } from '@teambit/cli';\nimport { COMPONENT_PATTERN_HELP } from '@teambit/legacy.constants';\nimport type { DiffResults } from '@teambit/legacy.component-diff';\nimport { outputDiffResults } from '@teambit/legacy.component-diff';\nimport type { ComponentCompareMain } from './component-compare.main.runtime';\n\nexport class DiffCmd implements Command {\n name = 'diff [component-pattern] [version] [to-version]';\n group = 'info-analysis';\n description =\n \"show the diff between the components' current source files and config, and their latest snapshot or tag\";\n helpUrl = 'docs/components/merging-changes#compare-component-snaps';\n arguments = [\n {\n name: 'component-pattern',\n description: COMPONENT_PATTERN_HELP,\n },\n {\n name: 'version',\n description: `the base version to compare from. if omitted, compares the workspace's current files to the component's latest version.`,\n },\n {\n name: 'to-version',\n description: `the target version to compare against \"version\".\nif both \"version\" and \"to-version\" are provided, compare those two versions directly (ignoring the workspace).`,\n },\n ];\n alias = '';\n options = [\n ['p', 'parent', 'compare the specified \"version\" to its immediate parent instead of comparing to the current one'],\n ['v', 'verbose', 'show a more verbose output where possible'],\n ['t', 'table', 'show tables instead of plain text for dependencies diff'],\n ] as CommandOptions;\n examples = [\n { cmd: 'diff', description: 'show diff for all modified components' },\n { cmd: 'diff foo', description: 'show diff for a component \"foo\"' },\n { cmd: 'diff foo 0.0.1', description: 'show diff for a component \"foo\" from the current state to version 0.0.1' },\n { cmd: 'diff foo 0.0.1 0.0.2', description: 'show diff for a component \"foo\" from version 0.0.1 to version 0.0.2' },\n {\n cmd: \"diff '$codeModified' \",\n description: 'show diff only for components with modified files. ignore config changes',\n },\n {\n cmd: 'diff foo 0.0.2 --parent',\n description: 'compare \"foo@0.0.2\" to its parent version. showing what changed in 0.0.2',\n },\n ];\n loader = true;\n\n constructor(private componentCompareMain: ComponentCompareMain) {}\n\n async report(\n [pattern, version, toVersion]: [string, string, string],\n { verbose = false, table = false, parent }: { verbose?: boolean; table: boolean; parent?: boolean }\n ) {\n const diffResults: DiffResults[] = await this.componentCompareMain.diffByCLIValues(pattern, version, toVersion, {\n verbose,\n table,\n parent,\n });\n if (!diffResults.length) {\n return chalk.yellow('there are no modified components to diff');\n }\n return outputDiffResults(diffResults);\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAG,QAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,OAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAI,SAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,QAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAmE,SAAAC,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,gBAAAH,CAAA,EAAAI,CAAA,EAAAC,CAAA,YAAAD,CAAA,GAAAE,cAAA,CAAAF,CAAA,MAAAJ,CAAA,GAAAO,MAAA,CAAAC,cAAA,CAAAR,CAAA,EAAAI,CAAA,IAAAK,KAAA,EAAAJ,CAAA,EAAAK,UAAA,MAAAC,YAAA,MAAAC,QAAA,UAAAZ,CAAA,CAAAI,CAAA,IAAAC,CAAA,EAAAL,CAAA;AAAA,SAAAM,eAAAD,CAAA,QAAAQ,CAAA,GAAAC,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AEE,GAAG,EAAE,sBAAsB;MAAEF,WAAW,EAAE;IAAsE,CAAC,EACnH;MACEE,GAAG,EAAE,uBAAuB;MAC5BF,WAAW,EAAE;IACf,CAAC,EACD;MACEE,GAAG,EAAE,yBAAyB;MAC9BF,WAAW,EAAE;IACf,CAAC,CACF;IAAAtB,eAAA,iBACQ,IAAI;EAEoD;EAEjE,MAAMyB,MAAMA,CACV,CAACC,OAAO,EAAEC,OAAO,EAAEC,SAAS,CAA2B,EACvD;IAAEC,OAAO,GAAG,KAAK;IAAEC,KAAK,GAAG,KAAK;IAAEC;EAAgE,CAAC,EACnG;IACA,MAAMC,WAA0B,GAAG,MAAM,IAAI,CAACZ,oBAAoB,CAACa,eAAe,CAACP,OAAO,EAAEC,OAAO,EAAEC,SAAS,EAAE;MAC9GC,OAAO;MACPC,KAAK;MACLC;IACF,CAAC,CAAC;IACF,IAAI,CAACC,WAAW,CAACE,MAAM,EAAE;MACvB,OAAOC,gBAAK,CAACC,MAAM,CAAC,0CAA0C,CAAC;IACjE;IACA,OAAO,IAAAC,4BAAiB,EAACL,WAAW,CAAC;EACvC;AACF;AAACM,OAAA,CAAApB,OAAA,GAAAA,OAAA","ignoreList":[]}
1
+ {"version":3,"names":["_chalk","data","_interopRequireDefault","require","_legacy","_legacy2","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","DiffCmd","constructor","componentCompareMain","name","description","COMPONENT_PATTERN_HELP","cmd","report","pattern","version","toVersion","verbose","table","parent","diffResults","diffByCLIValues","length","chalk","yellow","outputDiffResults","exports"],"sources":["diff-cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { Command, CommandOptions } from '@teambit/cli';\nimport { COMPONENT_PATTERN_HELP } from '@teambit/legacy.constants';\nimport type { DiffResults } from '@teambit/legacy.component-diff';\nimport { outputDiffResults } from '@teambit/legacy.component-diff';\nimport type { ComponentCompareMain } from './component-compare.main.runtime';\n\nexport class DiffCmd implements Command {\n name = 'diff [component-pattern] [version] [to-version]';\n group = 'info-analysis';\n description = 'compare component changes between versions or against the current workspace';\n extendedDescription = `shows a detailed diff of component files, dependencies, and configuration changes. \nby default, compares workspace changes against the latest version. specify versions to compare historical changes.\nsupports pattern matching to filter components and various output formats for better readability.`;\n helpUrl = 'docs/components/merging-changes#compare-component-snaps';\n arguments = [\n {\n name: 'component-pattern',\n description: COMPONENT_PATTERN_HELP,\n },\n {\n name: 'version',\n description: `the base version to compare from. if omitted, compares the workspace's current files to the component's latest version.`,\n },\n {\n name: 'to-version',\n description: `the target version to compare against \"version\".\nif both \"version\" and \"to-version\" are provided, compare those two versions directly (ignoring the workspace).`,\n },\n ];\n alias = '';\n options = [\n ['p', 'parent', 'compare the specified \"version\" to its immediate parent instead of comparing to the current one'],\n ['v', 'verbose', 'show a more verbose output where possible'],\n ['t', 'table', 'show tables instead of plain text for dependencies diff'],\n ] as CommandOptions;\n examples = [\n { cmd: 'diff', description: 'show diff for all modified components' },\n { cmd: 'diff foo', description: 'show diff for a component \"foo\"' },\n { cmd: 'diff foo 0.0.1', description: 'show diff for a component \"foo\" from the current state to version 0.0.1' },\n { cmd: 'diff foo 0.0.1 0.0.2', description: 'show diff for a component \"foo\" from version 0.0.1 to version 0.0.2' },\n {\n cmd: \"diff '$codeModified' \",\n description: 'show diff only for components with modified files. ignore config changes',\n },\n {\n cmd: 'diff foo 0.0.2 --parent',\n description: 'compare \"foo@0.0.2\" to its parent version. showing what changed in 0.0.2',\n },\n ];\n loader = true;\n\n constructor(private componentCompareMain: ComponentCompareMain) {}\n\n async report(\n [pattern, version, toVersion]: [string, string, string],\n { verbose = false, table = false, parent }: { verbose?: boolean; table: boolean; parent?: boolean }\n ) {\n const diffResults: DiffResults[] = await this.componentCompareMain.diffByCLIValues(pattern, version, toVersion, {\n verbose,\n table,\n parent,\n });\n if (!diffResults.length) {\n return chalk.yellow('there are no modified components to diff');\n }\n return outputDiffResults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AG,KAAK;IAAEC,KAAK,GAAG,KAAK;IAAEC;EAAgE,CAAC,EACnG;IACA,MAAMC,WAA0B,GAAG,MAAM,IAAI,CAACZ,oBAAoB,CAACa,eAAe,CAACP,OAAO,EAAEC,OAAO,EAAEC,SAAS,EAAE;MAC9GC,OAAO;MACPC,KAAK;MACLC;IACF,CAAC,CAAC;IACF,IAAI,CAACC,WAAW,CAACE,MAAM,EAAE;MACvB,OAAOC,gBAAK,CAACC,MAAM,CAAC,0CAA0C,CAAC;IACjE;IACA,OAAO,IAAAC,4BAAiB,EAACL,WAAW,CAAC;EACvC;AACF;AAACM,OAAA,CAAApB,OAAA,GAAAA,OAAA","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_component-compare@1.0.749/dist/component-compare.compositions.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_component-compare@1.0.749/dist/component-compare.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_component-compare@1.0.751/dist/component-compare.compositions.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_component-compare@1.0.751/dist/component-compare.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/component-compare",
3
- "version": "1.0.749",
3
+ "version": "1.0.751",
4
4
  "homepage": "https://bit.cloud/teambit/component/component-compare",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.component",
8
8
  "name": "component-compare",
9
- "version": "1.0.749"
9
+ "version": "1.0.751"
10
10
  },
11
11
  "dependencies": {
12
12
  "graphql-tag": "2.12.1",
@@ -18,26 +18,26 @@
18
18
  "@teambit/ui-foundation.ui.menu-widget-icon": "0.0.502",
19
19
  "@teambit/harmony": "0.4.7",
20
20
  "@teambit/bit-error": "0.0.404",
21
- "@teambit/cli": "0.0.1272",
22
21
  "@teambit/component-id": "1.2.4",
23
- "@teambit/legacy.component-diff": "0.0.127",
24
- "@teambit/legacy.consumer-component": "0.0.74",
25
- "@teambit/logger": "0.0.1365",
26
- "@teambit/component.ui.component-compare.changelog": "0.0.224",
27
22
  "@teambit/component.ui.component-compare.compare-aspects.compare-aspects": "0.0.152",
28
- "@teambit/component.ui.component-compare.component-compare": "0.0.242",
29
23
  "@teambit/ui-foundation.ui.react-router.slot-router": "0.0.518",
30
- "@teambit/legacy.constants": "0.0.17",
31
- "@teambit/component": "1.0.749",
32
- "@teambit/builder": "1.0.749",
33
- "@teambit/dependency-resolver": "1.0.749",
34
- "@teambit/graphql": "1.0.749",
35
- "@teambit/importer": "1.0.749",
36
- "@teambit/objects": "0.0.256",
37
- "@teambit/scope": "1.0.749",
38
- "@teambit/tester": "1.0.749",
39
- "@teambit/workspace": "1.0.749",
40
- "@teambit/ui": "1.0.749"
24
+ "@teambit/component": "1.0.751",
25
+ "@teambit/builder": "1.0.751",
26
+ "@teambit/cli": "0.0.1273",
27
+ "@teambit/dependency-resolver": "1.0.751",
28
+ "@teambit/graphql": "1.0.751",
29
+ "@teambit/importer": "1.0.751",
30
+ "@teambit/legacy.component-diff": "0.0.128",
31
+ "@teambit/legacy.consumer-component": "0.0.75",
32
+ "@teambit/logger": "0.0.1366",
33
+ "@teambit/objects": "0.0.258",
34
+ "@teambit/scope": "1.0.751",
35
+ "@teambit/tester": "1.0.751",
36
+ "@teambit/workspace": "1.0.751",
37
+ "@teambit/component.ui.component-compare.changelog": "0.0.225",
38
+ "@teambit/component.ui.component-compare.component-compare": "0.0.244",
39
+ "@teambit/ui": "1.0.751",
40
+ "@teambit/legacy.constants": "0.0.18"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/lodash": "4.14.165",