@teambit/deprecation 0.0.1132 → 0.0.1134

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.
@@ -34,7 +34,7 @@ class DeprecateCmd {
34
34
  (0, _defineProperty2().default)(this, "group", 'collaborate');
35
35
  (0, _defineProperty2().default)(this, "skipWorkspace", true);
36
36
  (0, _defineProperty2().default)(this, "alias", 'd');
37
- (0, _defineProperty2().default)(this, "options", [['', 'new-id <string>', 'if replaced by another component, enter the new component id']]);
37
+ (0, _defineProperty2().default)(this, "options", [['', 'new-id <string>', 'if replaced by another component, enter the new component id. alternatively use "bit rename" to do this automatically']]);
38
38
  (0, _defineProperty2().default)(this, "loader", true);
39
39
  (0, _defineProperty2().default)(this, "migration", true);
40
40
  (0, _defineProperty2().default)(this, "remoteOp", true);
@@ -1 +1 @@
1
- {"version":3,"names":["_chalk","data","_interopRequireDefault","require","DeprecateCmd","constructor","deprecation","workspace","_defineProperty2","default","name","description","report","id","newId","result","deprecate","chalk","green","bold","componentId","resolveComponentId","newComponentId","undefined","exports"],"sources":["deprecate-cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport { Workspace } from '@teambit/workspace';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport { DeprecationMain } from './deprecation.main.runtime';\n\nexport class DeprecateCmd implements Command {\n name = 'deprecate <component-name>';\n arguments = [{ name: 'component-name', description: 'component name or component id' }];\n description = 'deprecate a component';\n group = 'collaborate';\n skipWorkspace = true;\n alias = 'd';\n options = [['', 'new-id <string>', 'if replaced by another component, enter the new component id']] as CommandOptions;\n loader = true;\n migration = true;\n remoteOp = true;\n helpUrl = 'docs/components/removing-components';\n\n constructor(private deprecation: DeprecationMain, private workspace: Workspace) {}\n\n async report([id]: [string], { newId }: { newId?: string }): Promise<string> {\n const result = await this.deprecate(id, newId);\n if (result) {\n return chalk.green(`the component \"${id}\" has been deprecated successfully`);\n }\n return chalk.bold(`the component \"${id}\" is already deprecated. no changes have been made`);\n }\n\n private async deprecate(id: string, newId?: string): Promise<boolean> {\n const componentId = await this.workspace.resolveComponentId(id);\n const newComponentId = newId ? await this.workspace.resolveComponentId(newId) : undefined;\n return this.deprecation.deprecate(componentId, newComponentId);\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;AAKO,MAAMG,YAAY,CAAoB;EAa3CC,WAAWA,CAASC,WAA4B,EAAUC,SAAoB,EAAE;IAAA,KAA5DD,WAA4B,GAA5BA,WAA4B;IAAA,KAAUC,SAAoB,GAApBA,SAAoB;IAAA,IAAAC,gBAAA,GAAAC,OAAA,gBAZvE,4BAA4B;IAAA,IAAAD,gBAAA,GAAAC,OAAA,qBACvB,CAAC;MAAEC,IAAI,EAAE,gBAAgB;MAAEC,WAAW,EAAE;IAAiC,CAAC,CAAC;IAAA,IAAAH,gBAAA,GAAAC,OAAA,uBACzE,uBAAuB;IAAA,IAAAD,gBAAA,GAAAC,OAAA,iBAC7B,aAAa;IAAA,IAAAD,gBAAA,GAAAC,OAAA,yBACL,IAAI;IAAA,IAAAD,gBAAA,GAAAC,OAAA,iBACZ,GAAG;IAAA,IAAAD,gBAAA,GAAAC,OAAA,mBACD,CAAC,CAAC,EAAE,EAAE,iBAAiB,EAAE,8DAA8D,CAAC,CAAC;IAAA,IAAAD,gBAAA,GAAAC,OAAA,kBAC1F,IAAI;IAAA,IAAAD,gBAAA,GAAAC,OAAA,qBACD,IAAI;IAAA,IAAAD,gBAAA,GAAAC,OAAA,oBACL,IAAI;IAAA,IAAAD,gBAAA,GAAAC,OAAA,mBACL,qCAAqC;EAEkC;EAEjF,MAAMG,MAAMA,CAAC,CAACC,EAAE,CAAW,EAAE;IAAEC;EAA0B,CAAC,EAAmB;IAC3E,MAAMC,MAAM,GAAG,MAAM,IAAI,CAACC,SAAS,CAACH,EAAE,EAAEC,KAAK,CAAC;IAC9C,IAAIC,MAAM,EAAE;MACV,OAAOE,gBAAK,CAACC,KAAK,CAAE,kBAAiBL,EAAG,oCAAmC,CAAC;IAC9E;IACA,OAAOI,gBAAK,CAACE,IAAI,CAAE,kBAAiBN,EAAG,oDAAmD,CAAC;EAC7F;EAEA,MAAcG,SAASA,CAACH,EAAU,EAAEC,KAAc,EAAoB;IACpE,MAAMM,WAAW,GAAG,MAAM,IAAI,CAACb,SAAS,CAACc,kBAAkB,CAACR,EAAE,CAAC;IAC/D,MAAMS,cAAc,GAAGR,KAAK,GAAG,MAAM,IAAI,CAACP,SAAS,CAACc,kBAAkB,CAACP,KAAK,CAAC,GAAGS,SAAS;IACzF,OAAO,IAAI,CAACjB,WAAW,CAACU,SAAS,CAACI,WAAW,EAAEE,cAAc,CAAC;EAChE;AACF;AAACE,OAAA,CAAApB,YAAA,GAAAA,YAAA"}
1
+ {"version":3,"names":["_chalk","data","_interopRequireDefault","require","DeprecateCmd","constructor","deprecation","workspace","_defineProperty2","default","name","description","report","id","newId","result","deprecate","chalk","green","bold","componentId","resolveComponentId","newComponentId","undefined","exports"],"sources":["deprecate-cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport { Workspace } from '@teambit/workspace';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport { DeprecationMain } from './deprecation.main.runtime';\n\nexport class DeprecateCmd implements Command {\n name = 'deprecate <component-name>';\n arguments = [{ name: 'component-name', description: 'component name or component id' }];\n description = 'deprecate a component';\n group = 'collaborate';\n skipWorkspace = true;\n alias = 'd';\n options = [\n [\n '',\n 'new-id <string>',\n 'if replaced by another component, enter the new component id. alternatively use \"bit rename\" to do this automatically',\n ],\n ] as CommandOptions;\n loader = true;\n migration = true;\n remoteOp = true;\n helpUrl = 'docs/components/removing-components';\n\n constructor(private deprecation: DeprecationMain, private workspace: Workspace) {}\n\n async report([id]: [string], { newId }: { newId?: string }): Promise<string> {\n const result = await this.deprecate(id, newId);\n if (result) {\n return chalk.green(`the component \"${id}\" has been deprecated successfully`);\n }\n return chalk.bold(`the component \"${id}\" is already deprecated. no changes have been made`);\n }\n\n private async deprecate(id: string, newId?: string): Promise<boolean> {\n const componentId = await this.workspace.resolveComponentId(id);\n const newComponentId = newId ? await this.workspace.resolveComponentId(newId) : undefined;\n return this.deprecation.deprecate(componentId, newComponentId);\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;AAKO,MAAMG,YAAY,CAAoB;EAmB3CC,WAAWA,CAASC,WAA4B,EAAUC,SAAoB,EAAE;IAAA,KAA5DD,WAA4B,GAA5BA,WAA4B;IAAA,KAAUC,SAAoB,GAApBA,SAAoB;IAAA,IAAAC,gBAAA,GAAAC,OAAA,gBAlBvE,4BAA4B;IAAA,IAAAD,gBAAA,GAAAC,OAAA,qBACvB,CAAC;MAAEC,IAAI,EAAE,gBAAgB;MAAEC,WAAW,EAAE;IAAiC,CAAC,CAAC;IAAA,IAAAH,gBAAA,GAAAC,OAAA,uBACzE,uBAAuB;IAAA,IAAAD,gBAAA,GAAAC,OAAA,iBAC7B,aAAa;IAAA,IAAAD,gBAAA,GAAAC,OAAA,yBACL,IAAI;IAAA,IAAAD,gBAAA,GAAAC,OAAA,iBACZ,GAAG;IAAA,IAAAD,gBAAA,GAAAC,OAAA,mBACD,CACR,CACE,EAAE,EACF,iBAAiB,EACjB,uHAAuH,CACxH,CACF;IAAA,IAAAD,gBAAA,GAAAC,OAAA,kBACQ,IAAI;IAAA,IAAAD,gBAAA,GAAAC,OAAA,qBACD,IAAI;IAAA,IAAAD,gBAAA,GAAAC,OAAA,oBACL,IAAI;IAAA,IAAAD,gBAAA,GAAAC,OAAA,mBACL,qCAAqC;EAEkC;EAEjF,MAAMG,MAAMA,CAAC,CAACC,EAAE,CAAW,EAAE;IAAEC;EAA0B,CAAC,EAAmB;IAC3E,MAAMC,MAAM,GAAG,MAAM,IAAI,CAACC,SAAS,CAACH,EAAE,EAAEC,KAAK,CAAC;IAC9C,IAAIC,MAAM,EAAE;MACV,OAAOE,gBAAK,CAACC,KAAK,CAAE,kBAAiBL,EAAG,oCAAmC,CAAC;IAC9E;IACA,OAAOI,gBAAK,CAACE,IAAI,CAAE,kBAAiBN,EAAG,oDAAmD,CAAC;EAC7F;EAEA,MAAcG,SAASA,CAACH,EAAU,EAAEC,KAAc,EAAoB;IACpE,MAAMM,WAAW,GAAG,MAAM,IAAI,CAACb,SAAS,CAACc,kBAAkB,CAACR,EAAE,CAAC;IAC/D,MAAMS,cAAc,GAAGR,KAAK,GAAG,MAAM,IAAI,CAACP,SAAS,CAACc,kBAAkB,CAACP,KAAK,CAAC,GAAGS,SAAS;IACzF,OAAO,IAAI,CAACjB,WAAW,CAACU,SAAS,CAACI,WAAW,EAAEE,cAAc,CAAC;EAChE;AACF;AAACE,OAAA,CAAApB,YAAA,GAAAA,YAAA"}
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_deprecation@0.0.1132/dist/deprecation.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_deprecation@0.0.1132/dist/deprecation.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_deprecation@0.0.1134/dist/deprecation.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_deprecation@0.0.1134/dist/deprecation.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
@@ -40,7 +40,7 @@ class UndeprecateCmd {
40
40
  if (result) {
41
41
  return _chalk().default.green(`the component "${id}" has been undeprecated successfully`);
42
42
  }
43
- return _chalk().default.bold(`the component "${id}" is already undeprecated. no changes have been made`);
43
+ return _chalk().default.bold(`the component "${id}" is not currently deprecated. no changes have been made`);
44
44
  }
45
45
  async undeprecate(id) {
46
46
  const componentId = await this.workspace.resolveComponentId(id);
@@ -1 +1 @@
1
- {"version":3,"names":["_chalk","data","_interopRequireDefault","require","UndeprecateCmd","constructor","deprecation","workspace","_defineProperty2","default","report","id","result","undeprecate","chalk","green","bold","componentId","resolveComponentId","unDeprecate","exports"],"sources":["undeprecate-cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport { Workspace } from '@teambit/workspace';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport { DeprecationMain } from './deprecation.main.runtime';\n\nexport class UndeprecateCmd implements Command {\n name = 'undeprecate <id>';\n group = 'collaborate';\n description = 'undeprecate a deprecated component (local/remote)';\n alias = '';\n options = [] as CommandOptions;\n loader = true;\n migration = true;\n skipWorkspace = true;\n remoteOp = true;\n\n constructor(private deprecation: DeprecationMain, private workspace: Workspace) {}\n\n async report([id]: [string]): Promise<string> {\n const result = await this.undeprecate(id);\n if (result) {\n return chalk.green(`the component \"${id}\" has been undeprecated successfully`);\n }\n return chalk.bold(`the component \"${id}\" is already undeprecated. no changes have been made`);\n }\n\n private async undeprecate(id: string) {\n const componentId = await this.workspace.resolveComponentId(id);\n return this.deprecation.unDeprecate(componentId);\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;AAKO,MAAMG,cAAc,CAAoB;EAW7CC,WAAWA,CAASC,WAA4B,EAAUC,SAAoB,EAAE;IAAA,KAA5DD,WAA4B,GAA5BA,WAA4B;IAAA,KAAUC,SAAoB,GAApBA,SAAoB;IAAA,IAAAC,gBAAA,GAAAC,OAAA,gBAVvE,kBAAkB;IAAA,IAAAD,gBAAA,GAAAC,OAAA,iBACjB,aAAa;IAAA,IAAAD,gBAAA,GAAAC,OAAA,uBACP,mDAAmD;IAAA,IAAAD,gBAAA,GAAAC,OAAA,iBACzD,EAAE;IAAA,IAAAD,gBAAA,GAAAC,OAAA,mBACA,EAAE;IAAA,IAAAD,gBAAA,GAAAC,OAAA,kBACH,IAAI;IAAA,IAAAD,gBAAA,GAAAC,OAAA,qBACD,IAAI;IAAA,IAAAD,gBAAA,GAAAC,OAAA,yBACA,IAAI;IAAA,IAAAD,gBAAA,GAAAC,OAAA,oBACT,IAAI;EAEkE;EAEjF,MAAMC,MAAMA,CAAC,CAACC,EAAE,CAAW,EAAmB;IAC5C,MAAMC,MAAM,GAAG,MAAM,IAAI,CAACC,WAAW,CAACF,EAAE,CAAC;IACzC,IAAIC,MAAM,EAAE;MACV,OAAOE,gBAAK,CAACC,KAAK,CAAE,kBAAiBJ,EAAG,sCAAqC,CAAC;IAChF;IACA,OAAOG,gBAAK,CAACE,IAAI,CAAE,kBAAiBL,EAAG,sDAAqD,CAAC;EAC/F;EAEA,MAAcE,WAAWA,CAACF,EAAU,EAAE;IACpC,MAAMM,WAAW,GAAG,MAAM,IAAI,CAACV,SAAS,CAACW,kBAAkB,CAACP,EAAE,CAAC;IAC/D,OAAO,IAAI,CAACL,WAAW,CAACa,WAAW,CAACF,WAAW,CAAC;EAClD;AACF;AAACG,OAAA,CAAAhB,cAAA,GAAAA,cAAA"}
1
+ {"version":3,"names":["_chalk","data","_interopRequireDefault","require","UndeprecateCmd","constructor","deprecation","workspace","_defineProperty2","default","report","id","result","undeprecate","chalk","green","bold","componentId","resolveComponentId","unDeprecate","exports"],"sources":["undeprecate-cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport { Workspace } from '@teambit/workspace';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport { DeprecationMain } from './deprecation.main.runtime';\n\nexport class UndeprecateCmd implements Command {\n name = 'undeprecate <id>';\n group = 'collaborate';\n description = 'undeprecate a deprecated component (local/remote)';\n alias = '';\n options = [] as CommandOptions;\n loader = true;\n migration = true;\n skipWorkspace = true;\n remoteOp = true;\n\n constructor(private deprecation: DeprecationMain, private workspace: Workspace) {}\n\n async report([id]: [string]): Promise<string> {\n const result = await this.undeprecate(id);\n if (result) {\n return chalk.green(`the component \"${id}\" has been undeprecated successfully`);\n }\n return chalk.bold(`the component \"${id}\" is not currently deprecated. no changes have been made`);\n }\n\n private async undeprecate(id: string) {\n const componentId = await this.workspace.resolveComponentId(id);\n return this.deprecation.unDeprecate(componentId);\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;AAKO,MAAMG,cAAc,CAAoB;EAW7CC,WAAWA,CAASC,WAA4B,EAAUC,SAAoB,EAAE;IAAA,KAA5DD,WAA4B,GAA5BA,WAA4B;IAAA,KAAUC,SAAoB,GAApBA,SAAoB;IAAA,IAAAC,gBAAA,GAAAC,OAAA,gBAVvE,kBAAkB;IAAA,IAAAD,gBAAA,GAAAC,OAAA,iBACjB,aAAa;IAAA,IAAAD,gBAAA,GAAAC,OAAA,uBACP,mDAAmD;IAAA,IAAAD,gBAAA,GAAAC,OAAA,iBACzD,EAAE;IAAA,IAAAD,gBAAA,GAAAC,OAAA,mBACA,EAAE;IAAA,IAAAD,gBAAA,GAAAC,OAAA,kBACH,IAAI;IAAA,IAAAD,gBAAA,GAAAC,OAAA,qBACD,IAAI;IAAA,IAAAD,gBAAA,GAAAC,OAAA,yBACA,IAAI;IAAA,IAAAD,gBAAA,GAAAC,OAAA,oBACT,IAAI;EAEkE;EAEjF,MAAMC,MAAMA,CAAC,CAACC,EAAE,CAAW,EAAmB;IAC5C,MAAMC,MAAM,GAAG,MAAM,IAAI,CAACC,WAAW,CAACF,EAAE,CAAC;IACzC,IAAIC,MAAM,EAAE;MACV,OAAOE,gBAAK,CAACC,KAAK,CAAE,kBAAiBJ,EAAG,sCAAqC,CAAC;IAChF;IACA,OAAOG,gBAAK,CAACE,IAAI,CAAE,kBAAiBL,EAAG,0DAAyD,CAAC;EACnG;EAEA,MAAcE,WAAWA,CAACF,EAAU,EAAE;IACpC,MAAMM,WAAW,GAAG,MAAM,IAAI,CAACV,SAAS,CAACW,kBAAkB,CAACP,EAAE,CAAC;IAC/D,OAAO,IAAI,CAACL,WAAW,CAACa,WAAW,CAACF,WAAW,CAAC;EAClD;AACF;AAACG,OAAA,CAAAhB,cAAA,GAAAA,cAAA"}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/deprecation",
3
- "version": "0.0.1132",
3
+ "version": "0.0.1134",
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": "0.0.1132"
9
+ "version": "0.0.1134"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -15,14 +15,14 @@
15
15
  "@babel/runtime": "7.20.0",
16
16
  "@teambit/harmony": "0.4.6",
17
17
  "@teambit/component-id": "0.0.427",
18
- "@teambit/cli": "0.0.758",
19
- "@teambit/workspace": "0.0.1132",
20
- "@teambit/component": "0.0.1132",
21
- "@teambit/graphql": "0.0.1132",
22
- "@teambit/scope": "0.0.1132",
18
+ "@teambit/cli": "0.0.760",
19
+ "@teambit/workspace": "0.0.1134",
20
+ "@teambit/component": "0.0.1134",
21
+ "@teambit/graphql": "0.0.1134",
22
+ "@teambit/scope": "0.0.1134",
23
23
  "@teambit/component.ui.component-deprecated": "0.0.34",
24
- "@teambit/docs": "0.0.1132",
25
- "@teambit/ui": "0.0.1132"
24
+ "@teambit/docs": "0.0.1134",
25
+ "@teambit/ui": "0.0.1134"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/react": "^17.0.8",
@@ -33,7 +33,7 @@
33
33
  "@types/testing-library__jest-dom": "5.9.5"
34
34
  },
35
35
  "peerDependencies": {
36
- "@teambit/legacy": "1.0.541",
36
+ "@teambit/legacy": "1.0.544",
37
37
  "react": "^16.8.0 || ^17.0.0",
38
38
  "react-dom": "^16.8.0 || ^17.0.0"
39
39
  },