@teambit/deprecation 0.0.1138 → 0.0.1140

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.
@@ -38,7 +38,7 @@ class DeprecateCmd {
38
38
  (0, _defineProperty2().default)(this, "loader", true);
39
39
  (0, _defineProperty2().default)(this, "migration", true);
40
40
  (0, _defineProperty2().default)(this, "remoteOp", true);
41
- (0, _defineProperty2().default)(this, "helpUrl", 'docs/components/removing-components');
41
+ (0, _defineProperty2().default)(this, "helpUrl", 'reference/components/removing-components');
42
42
  }
43
43
  async report([id], {
44
44
  newId
@@ -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 = [\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.res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,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 = 'reference/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,0CAA0C;EAE6B;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.1138/dist/deprecation.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_deprecation@0.0.1138/dist/deprecation.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_deprecation@0.0.1140/dist/deprecation.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_deprecation@0.0.1140/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": "0.0.1138",
3
+ "version": "0.0.1140",
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.1138"
9
+ "version": "0.0.1140"
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.762",
19
- "@teambit/workspace": "0.0.1138",
20
- "@teambit/component": "0.0.1138",
21
- "@teambit/graphql": "0.0.1138",
22
- "@teambit/scope": "0.0.1138",
18
+ "@teambit/cli": "0.0.764",
19
+ "@teambit/workspace": "0.0.1140",
20
+ "@teambit/component": "0.0.1140",
21
+ "@teambit/graphql": "0.0.1140",
22
+ "@teambit/scope": "0.0.1140",
23
23
  "@teambit/component.ui.component-deprecated": "0.0.34",
24
- "@teambit/docs": "0.0.1138",
25
- "@teambit/ui": "0.0.1138"
24
+ "@teambit/docs": "0.0.1140",
25
+ "@teambit/ui": "0.0.1140"
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.546",
36
+ "@teambit/legacy": "1.0.548",
37
37
  "react": "^16.8.0 || ^17.0.0",
38
38
  "react-dom": "^16.8.0 || ^17.0.0"
39
39
  },