@teambit/deprecation 1.0.750 → 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.
- package/dist/deprecate-cmd.d.ts +1 -0
- package/dist/deprecate-cmd.js +4 -1
- package/dist/deprecate-cmd.js.map +1 -1
- package/dist/{preview-1757437404844.js → preview-1757523924602.js} +2 -2
- package/dist/undeprecate-cmd.d.ts +1 -0
- package/dist/undeprecate-cmd.js +2 -1
- package/dist/undeprecate-cmd.js.map +1 -1
- package/package.json +12 -12
package/dist/deprecate-cmd.d.ts
CHANGED
package/dist/deprecate-cmd.js
CHANGED
|
@@ -23,7 +23,10 @@ class DeprecateCmd {
|
|
|
23
23
|
name: 'component-name',
|
|
24
24
|
description: 'component name or component id'
|
|
25
25
|
}]);
|
|
26
|
-
_defineProperty(this, "description", '
|
|
26
|
+
_defineProperty(this, "description", 'mark a component as deprecated to discourage its use');
|
|
27
|
+
_defineProperty(this, "extendedDescription", `marks a component as deprecated locally, then after snap/tag and export it becomes deprecated in the remote scope.
|
|
28
|
+
optionally specify a replacement component or deprecate only specific version ranges.
|
|
29
|
+
deprecated components remain available but display warnings when installed or imported.`);
|
|
27
30
|
_defineProperty(this, "group", 'collaborate');
|
|
28
31
|
_defineProperty(this, "skipWorkspace", true);
|
|
29
32
|
_defineProperty(this, "alias", 'd');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","DeprecateCmd","constructor","deprecation","name","description","report","id","newId","range","result","deprecate","chalk","green","bold","deprecateByCLIValues","exports"],"sources":["deprecate-cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { Command, CommandOptions } from '@teambit/cli';\nimport type { 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 = '
|
|
1
|
+
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","DeprecateCmd","constructor","deprecation","name","description","report","id","newId","range","result","deprecate","chalk","green","bold","deprecateByCLIValues","exports"],"sources":["deprecate-cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { Command, CommandOptions } from '@teambit/cli';\nimport type { 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 = 'mark a component as deprecated to discourage its use';\n extendedDescription = `marks a component as deprecated locally, then after snap/tag and export it becomes deprecated in the remote scope.\noptionally specify a replacement component or deprecate only specific version ranges.\ndeprecated components remain available but display warnings when installed or imported.`;\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 --deprecate\" to do this automatically',\n ],\n [\n '',\n 'range <string>',\n 'enter a Semver range to deprecate specific versions. see https://www.npmjs.com/package/semver#ranges for the range syntax',\n ],\n ] as CommandOptions;\n loader = true;\n remoteOp = true;\n helpUrl = 'reference/components/removing-components';\n\n constructor(private deprecation: DeprecationMain) {}\n\n async report([id]: [string], { newId, range }: { newId?: string; range?: string }): Promise<string> {\n const result = await this.deprecate(id, newId, range);\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, range?: string): Promise<boolean> {\n return this.deprecation.deprecateByCLIValues(id, newId, range);\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,O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wBACL,IAAI;IAAAA,eAAA,gBACZ,GAAG;IAAAA,eAAA,kBACD,CACR,CACE,EAAE,EACF,iBAAiB,EACjB,mIAAmI,CACpI,EACD,CACE,EAAE,EACF,gBAAgB,EAChB,2HAA2H,CAC5H,CACF;IAAAA,eAAA,iBACQ,IAAI;IAAAA,eAAA,mBACF,IAAI;IAAAA,eAAA,kBACL,0CAA0C;EAED;EAEnD,MAAMuB,MAAMA,CAAC,CAACC,EAAE,CAAW,EAAE;IAAEC,KAAK;IAAEC;EAA0C,CAAC,EAAmB;IAClG,MAAMC,MAAM,GAAG,MAAM,IAAI,CAACC,SAAS,CAACJ,EAAE,EAAEC,KAAK,EAAEC,KAAK,CAAC;IACrD,IAAIC,MAAM,EAAE;MACV,OAAOE,gBAAK,CAACC,KAAK,CAAC,kBAAkBN,EAAE,oCAAoC,CAAC;IAC9E;IACA,OAAOK,gBAAK,CAACE,IAAI,CAAC,kBAAkBP,EAAE,oDAAoD,CAAC;EAC7F;EAEA,MAAcI,SAASA,CAACJ,EAAU,EAAEC,KAAc,EAAEC,KAAc,EAAoB;IACpF,OAAO,IAAI,CAACN,WAAW,CAACY,oBAAoB,CAACR,EAAE,EAAEC,KAAK,EAAEC,KAAK,CAAC;EAChE;AACF;AAACO,OAAA,CAAAf,YAAA,GAAAA,YAAA","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_deprecation@1.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_deprecation@1.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_deprecation@1.0.751/dist/deprecation.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_deprecation@1.0.751/dist/deprecation.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
package/dist/undeprecate-cmd.js
CHANGED
|
@@ -20,7 +20,8 @@ class UndeprecateCmd {
|
|
|
20
20
|
this.deprecation = deprecation;
|
|
21
21
|
_defineProperty(this, "name", 'undeprecate <id>');
|
|
22
22
|
_defineProperty(this, "group", 'collaborate');
|
|
23
|
-
_defineProperty(this, "description", '
|
|
23
|
+
_defineProperty(this, "description", 'remove the deprecation status from a component');
|
|
24
|
+
_defineProperty(this, "extendedDescription", 'reverses the deprecation of a component, removing warnings and allowing normal use again.');
|
|
24
25
|
_defineProperty(this, "alias", '');
|
|
25
26
|
_defineProperty(this, "options", []);
|
|
26
27
|
_defineProperty(this, "loader", true);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","UndeprecateCmd","constructor","deprecation","report","id","result","unDeprecateByCLIValues","chalk","green","bold","exports"],"sources":["undeprecate-cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { Command, CommandOptions } from '@teambit/cli';\nimport type { DeprecationMain } from './deprecation.main.runtime';\n\nexport class UndeprecateCmd implements Command {\n name = 'undeprecate <id>';\n group = 'collaborate';\n description = '
|
|
1
|
+
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","UndeprecateCmd","constructor","deprecation","report","id","result","unDeprecateByCLIValues","chalk","green","bold","exports"],"sources":["undeprecate-cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { Command, CommandOptions } from '@teambit/cli';\nimport type { DeprecationMain } from './deprecation.main.runtime';\n\nexport class UndeprecateCmd implements Command {\n name = 'undeprecate <id>';\n group = 'collaborate';\n description = 'remove the deprecation status from a component';\n extendedDescription = 'reverses the deprecation of a component, removing warnings and allowing normal use again.';\n alias = '';\n options = [] as CommandOptions;\n loader = true;\n skipWorkspace = true;\n remoteOp = true;\n\n constructor(private deprecation: DeprecationMain) {}\n\n async report([id]: [string]): Promise<string> {\n const result = await this.deprecation.unDeprecateByCLIValues(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"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA0B,SAAAC,uBAAAE,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,YAAA,CAAAT,CAAA,uCAAAQ,CAAA,GAAAA,CAAA,GAAAA,CAAA;AAAA,SAAAC,aAAAT,CAAA,EAAAD,CAAA,2BAAAC,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAL,CAAA,GAAAK,CAAA,CAAAU,MAAA,CAAAC,WAAA,kBAAAhB,CAAA,QAAAa,CAAA,GAAAb,CAAA,CAAAiB,IAAA,CAAAZ,CAAA,EAAAD,CAAA,uCAAAS,CAAA,SAAAA,CAAA,YAAAK,SAAA,yEAAAd,CAAA,GAAAe,MAAA,GAAAC,MAAA,EAAAf,CAAA;AAInB,MAAMgB,cAAc,CAAoB;EAW7CC,WAAWA,CAASC,WAA4B,EAAE;IAAA,KAA9BA,WAA4B,GAA5BA,WAA4B;IAAApB,eAAA,eAVzC,kBAAkB;IAAAA,eAAA,gBACjB,aAAa;IAAAA,eAAA,sBACP,gDAAgD;IAAAA,eAAA,8BACxC,2FAA2F;IAAAA,eAAA,gBACzG,EAAE;IAAAA,eAAA,kBACA,EAAE;IAAAA,eAAA,iBACH,IAAI;IAAAA,eAAA,wBACG,IAAI;IAAAA,eAAA,mBACT,IAAI;EAEoC;EAEnD,MAAMqB,MAAMA,CAAC,CAACC,EAAE,CAAW,EAAmB;IAC5C,MAAMC,MAAM,GAAG,MAAM,IAAI,CAACH,WAAW,CAACI,sBAAsB,CAACF,EAAE,CAAC;IAChE,IAAIC,MAAM,EAAE;MACV,OAAOE,gBAAK,CAACC,KAAK,CAAC,kBAAkBJ,EAAE,sCAAsC,CAAC;IAChF;IACA,OAAOG,gBAAK,CAACE,IAAI,CAAC,kBAAkBL,EAAE,0DAA0D,CAAC;EACnG;AACF;AAACM,OAAA,CAAAV,cAAA,GAAAA,cAAA","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/deprecation",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.751",
|
|
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.
|
|
9
|
+
"version": "1.0.751"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "4.1.2",
|
|
@@ -14,19 +14,19 @@
|
|
|
14
14
|
"lodash": "4.17.21",
|
|
15
15
|
"p-map-series": "2.1.0",
|
|
16
16
|
"semver": "7.7.1",
|
|
17
|
-
"@teambit/cli": "0.0.1272",
|
|
18
17
|
"@teambit/harmony": "0.4.7",
|
|
19
18
|
"@teambit/component-id": "1.2.4",
|
|
20
|
-
"@teambit/component-issues": "0.0.163",
|
|
21
19
|
"@teambit/component.ui.component-deprecated": "0.0.41",
|
|
22
|
-
"@teambit/
|
|
23
|
-
"@teambit/
|
|
24
|
-
"@teambit/
|
|
25
|
-
"@teambit/issues": "
|
|
26
|
-
"@teambit/
|
|
27
|
-
"@teambit/
|
|
28
|
-
"@teambit/
|
|
29
|
-
"@teambit/
|
|
20
|
+
"@teambit/cli": "0.0.1273",
|
|
21
|
+
"@teambit/component": "1.0.751",
|
|
22
|
+
"@teambit/graphql": "1.0.751",
|
|
23
|
+
"@teambit/component-issues": "0.0.164",
|
|
24
|
+
"@teambit/dependency-resolver": "1.0.751",
|
|
25
|
+
"@teambit/issues": "1.0.751",
|
|
26
|
+
"@teambit/scope": "1.0.751",
|
|
27
|
+
"@teambit/workspace": "1.0.751",
|
|
28
|
+
"@teambit/docs": "1.0.751",
|
|
29
|
+
"@teambit/ui": "1.0.751"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/lodash": "4.14.165",
|