@teambit/renaming 0.0.494 → 0.0.496

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.
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_renaming@0.0.494/dist/renaming.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_renaming@0.0.494/dist/renaming.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_renaming@0.0.496/dist/renaming.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_renaming@0.0.496/dist/renaming.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
@@ -25,7 +25,7 @@ class RenameCmd {
25
25
  constructor(renaming) {
26
26
  this.renaming = renaming;
27
27
  (0, _defineProperty2().default)(this, "name", 'rename <current-name> <new-name>');
28
- (0, _defineProperty2().default)(this, "description", 'EXPERIMENTAL. rename component. if tagged/exported, create a new component and deprecate the original component');
28
+ (0, _defineProperty2().default)(this, "description", 'rename component. if tagged/exported, create a new component and deprecate the original component');
29
29
  (0, _defineProperty2().default)(this, "helpUrl", 'docs/components/renaming-components');
30
30
  (0, _defineProperty2().default)(this, "arguments", [{
31
31
  name: 'current-name',
@@ -1 +1 @@
1
- {"version":3,"names":["RenameCmd","constructor","renaming","name","description","report","sourceId","targetId","options","results","rename","chalk","green","bold","toString"],"sources":["rename.cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport { RenamingMain } from '.';\n\nexport type RenameOptions = {\n scope?: string;\n path?: string;\n refactor?: boolean;\n preserve?: boolean;\n};\n\nexport class RenameCmd implements Command {\n name = 'rename <current-name> <new-name>';\n description =\n 'EXPERIMENTAL. rename component. if tagged/exported, create a new component and deprecate the original component';\n helpUrl = 'docs/components/renaming-components';\n arguments = [\n {\n name: 'current-name',\n description: 'the current component name (without its scope name)',\n },\n {\n name: 'new-name',\n description: 'the new component name (without its scope name)',\n },\n ];\n group = 'collaborate';\n skipWorkspace = true;\n alias = '';\n options = [\n ['s', 'scope <scope-name>', 'default scope for the newly created component'],\n [\n 'p',\n 'path <relative-path>',\n 'relative path in the workspace. by default the path is `<scope>/<namespace>/<name>`',\n ],\n ['r', 'refactor', 'update the import/require statements in all dependent components (in the same workspace)'],\n ['', 'preserve', 'avoid renaming files and variables/classes according to the new component name'],\n ] as CommandOptions;\n loader = true;\n migration = true;\n remoteOp = true;\n\n constructor(private renaming: RenamingMain) {}\n\n async report([sourceId, targetId]: [string, string], options: RenameOptions): Promise<string> {\n const results = await this.renaming.rename(sourceId, targetId, options);\n return chalk.green(\n `successfully renamed ${chalk.bold(results.sourceId.toString())} to ${chalk.bold(results.targetId.toString())}`\n );\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAWO,MAAMA,SAAS,CAAoB;EAgCxCC,WAAW,CAASC,QAAsB,EAAE;IAAA,KAAxBA,QAAsB,GAAtBA,QAAsB;IAAA,8CA/BnC,kCAAkC;IAAA,qDAEvC,iHAAiH;IAAA,iDACzG,qCAAqC;IAAA,mDACnC,CACV;MACEC,IAAI,EAAE,cAAc;MACpBC,WAAW,EAAE;IACf,CAAC,EACD;MACED,IAAI,EAAE,UAAU;MAChBC,WAAW,EAAE;IACf,CAAC,CACF;IAAA,+CACO,aAAa;IAAA,uDACL,IAAI;IAAA,+CACZ,EAAE;IAAA,iDACA,CACR,CAAC,GAAG,EAAE,oBAAoB,EAAE,+CAA+C,CAAC,EAC5E,CACE,GAAG,EACH,sBAAsB,EACtB,qFAAqF,CACtF,EACD,CAAC,GAAG,EAAE,UAAU,EAAE,0FAA0F,CAAC,EAC7G,CAAC,EAAE,EAAE,UAAU,EAAE,gFAAgF,CAAC,CACnG;IAAA,gDACQ,IAAI;IAAA,mDACD,IAAI;IAAA,kDACL,IAAI;EAE8B;EAE7C,MAAMC,MAAM,CAAC,CAACC,QAAQ,EAAEC,QAAQ,CAAmB,EAAEC,OAAsB,EAAmB;IAC5F,MAAMC,OAAO,GAAG,MAAM,IAAI,CAACP,QAAQ,CAACQ,MAAM,CAACJ,QAAQ,EAAEC,QAAQ,EAAEC,OAAO,CAAC;IACvE,OAAOG,gBAAK,CAACC,KAAK,CACf,wBAAuBD,gBAAK,CAACE,IAAI,CAACJ,OAAO,CAACH,QAAQ,CAACQ,QAAQ,EAAE,CAAE,OAAMH,gBAAK,CAACE,IAAI,CAACJ,OAAO,CAACF,QAAQ,CAACO,QAAQ,EAAE,CAAE,EAAC,CAChH;EACH;AACF;AAAC"}
1
+ {"version":3,"names":["RenameCmd","constructor","renaming","name","description","report","sourceId","targetId","options","results","rename","chalk","green","bold","toString"],"sources":["rename.cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport { RenamingMain } from '.';\n\nexport type RenameOptions = {\n scope?: string;\n path?: string;\n refactor?: boolean;\n preserve?: boolean;\n};\n\nexport class RenameCmd implements Command {\n name = 'rename <current-name> <new-name>';\n description = 'rename component. if tagged/exported, create a new component and deprecate the original component';\n helpUrl = 'docs/components/renaming-components';\n arguments = [\n {\n name: 'current-name',\n description: 'the current component name (without its scope name)',\n },\n {\n name: 'new-name',\n description: 'the new component name (without its scope name)',\n },\n ];\n group = 'collaborate';\n skipWorkspace = true;\n alias = '';\n options = [\n ['s', 'scope <scope-name>', 'default scope for the newly created component'],\n [\n 'p',\n 'path <relative-path>',\n 'relative path in the workspace. by default the path is `<scope>/<namespace>/<name>`',\n ],\n ['r', 'refactor', 'update the import/require statements in all dependent components (in the same workspace)'],\n ['', 'preserve', 'avoid renaming files and variables/classes according to the new component name'],\n ] as CommandOptions;\n loader = true;\n migration = true;\n remoteOp = true;\n\n constructor(private renaming: RenamingMain) {}\n\n async report([sourceId, targetId]: [string, string], options: RenameOptions): Promise<string> {\n const results = await this.renaming.rename(sourceId, targetId, options);\n return chalk.green(\n `successfully renamed ${chalk.bold(results.sourceId.toString())} to ${chalk.bold(results.targetId.toString())}`\n );\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAWO,MAAMA,SAAS,CAAoB;EA+BxCC,WAAW,CAASC,QAAsB,EAAE;IAAA,KAAxBA,QAAsB,GAAtBA,QAAsB;IAAA,8CA9BnC,kCAAkC;IAAA,qDAC3B,mGAAmG;IAAA,iDACvG,qCAAqC;IAAA,mDACnC,CACV;MACEC,IAAI,EAAE,cAAc;MACpBC,WAAW,EAAE;IACf,CAAC,EACD;MACED,IAAI,EAAE,UAAU;MAChBC,WAAW,EAAE;IACf,CAAC,CACF;IAAA,+CACO,aAAa;IAAA,uDACL,IAAI;IAAA,+CACZ,EAAE;IAAA,iDACA,CACR,CAAC,GAAG,EAAE,oBAAoB,EAAE,+CAA+C,CAAC,EAC5E,CACE,GAAG,EACH,sBAAsB,EACtB,qFAAqF,CACtF,EACD,CAAC,GAAG,EAAE,UAAU,EAAE,0FAA0F,CAAC,EAC7G,CAAC,EAAE,EAAE,UAAU,EAAE,gFAAgF,CAAC,CACnG;IAAA,gDACQ,IAAI;IAAA,mDACD,IAAI;IAAA,kDACL,IAAI;EAE8B;EAE7C,MAAMC,MAAM,CAAC,CAACC,QAAQ,EAAEC,QAAQ,CAAmB,EAAEC,OAAsB,EAAmB;IAC5F,MAAMC,OAAO,GAAG,MAAM,IAAI,CAACP,QAAQ,CAACQ,MAAM,CAACJ,QAAQ,EAAEC,QAAQ,EAAEC,OAAO,CAAC;IACvE,OAAOG,gBAAK,CAACC,KAAK,CACf,wBAAuBD,gBAAK,CAACE,IAAI,CAACJ,OAAO,CAACH,QAAQ,CAACQ,QAAQ,EAAE,CAAE,OAAMH,gBAAK,CAACE,IAAI,CAACJ,OAAO,CAACF,QAAQ,CAACO,QAAQ,EAAE,CAAE,EAAC,CAChH;EACH;AACF;AAAC"}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/renaming",
3
- "version": "0.0.494",
3
+ "version": "0.0.496",
4
4
  "homepage": "https://bit.cloud/teambit/component/renaming",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.component",
8
8
  "name": "renaming",
9
- "version": "0.0.494"
9
+ "version": "0.0.496"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -16,19 +16,19 @@
16
16
  "@babel/runtime": "7.20.0",
17
17
  "@teambit/harmony": "0.4.6",
18
18
  "@teambit/legacy-bit-id": "0.0.423",
19
- "@teambit/cli": "0.0.732",
20
- "@teambit/component": "0.0.1090",
21
- "@teambit/graphql": "0.0.1090",
22
- "@teambit/compiler": "0.0.1090",
23
- "@teambit/component-writer": "0.0.126",
24
- "@teambit/config": "0.0.746",
25
- "@teambit/deprecation": "0.0.1090",
26
- "@teambit/install": "0.0.190",
27
- "@teambit/logger": "0.0.825",
28
- "@teambit/new-component-helper": "0.0.494",
29
- "@teambit/refactoring": "0.0.387",
30
- "@teambit/workspace.modules.node-modules-linker": "0.0.76",
31
- "@teambit/workspace": "0.0.1090",
19
+ "@teambit/cli": "0.0.733",
20
+ "@teambit/component": "0.0.1092",
21
+ "@teambit/graphql": "0.0.1092",
22
+ "@teambit/compiler": "0.0.1092",
23
+ "@teambit/component-writer": "0.0.128",
24
+ "@teambit/config": "0.0.747",
25
+ "@teambit/deprecation": "0.0.1092",
26
+ "@teambit/install": "0.0.191",
27
+ "@teambit/logger": "0.0.826",
28
+ "@teambit/new-component-helper": "0.0.496",
29
+ "@teambit/refactoring": "0.0.389",
30
+ "@teambit/workspace.modules.node-modules-linker": "0.0.77",
31
+ "@teambit/workspace": "0.0.1092",
32
32
  "@teambit/bit-error": "0.0.402"
33
33
  },
34
34
  "devDependencies": {
@@ -41,7 +41,7 @@
41
41
  "@types/testing-library__jest-dom": "5.9.5"
42
42
  },
43
43
  "peerDependencies": {
44
- "@teambit/legacy": "1.0.513",
44
+ "@teambit/legacy": "1.0.514",
45
45
  "react": "^16.8.0 || ^17.0.0",
46
46
  "react-dom": "^16.8.0 || ^17.0.0"
47
47
  },