@atlaskit/codemod-cli 0.12.1 → 0.12.3

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.
Files changed (38) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/cli/package.json +2 -2
  3. package/dist/cjs/version.json +1 -1
  4. package/dist/es2019/version.json +1 -1
  5. package/dist/esm/main.js +1 -1
  6. package/dist/esm/version.json +1 -1
  7. package/dist/types/main.d.ts +1 -1
  8. package/dist/types/presets/theme-to-design-tokens/utils/fuzzy-search.d.ts +1 -1
  9. package/dist/types/transforms.d.ts +1 -1
  10. package/dist/types/types.d.ts +6 -6
  11. package/dist/{types-ts4.0 → types-ts4.5}/main.d.ts +1 -1
  12. package/dist/{types-ts4.0 → types-ts4.5}/presets/theme-to-design-tokens/utils/fuzzy-search.d.ts +1 -1
  13. package/dist/{types-ts4.0 → types-ts4.5}/transforms.d.ts +1 -1
  14. package/dist/{types-ts4.0 → types-ts4.5}/types.d.ts +6 -6
  15. package/filepath/package.json +2 -2
  16. package/main/package.json +2 -2
  17. package/package.json +11 -3
  18. package/sinceRef/package.json +2 -2
  19. package/transforms/package.json +2 -2
  20. package/types/package.json +2 -2
  21. package/utils/package.json +2 -2
  22. /package/dist/{types-ts4.0 → types-ts4.5}/cli.d.ts +0 -0
  23. /package/dist/{types-ts4.0 → types-ts4.5}/filepath.d.ts +0 -0
  24. /package/dist/{types-ts4.0 → types-ts4.5}/index.d.ts +0 -0
  25. /package/dist/{types-ts4.0 → types-ts4.5}/presets/css-to-design-tokens/css-to-design-tokens.d.ts +0 -0
  26. /package/dist/{types-ts4.0 → types-ts4.5}/presets/css-to-design-tokens/utils/legacy-colors.d.ts +0 -0
  27. /package/dist/{types-ts4.0 → types-ts4.5}/presets/css-to-design-tokens/utils/meta.d.ts +0 -0
  28. /package/dist/{types-ts4.0 → types-ts4.5}/presets/index.d.ts +0 -0
  29. /package/dist/{types-ts4.0 → types-ts4.5}/presets/styled-to-emotion/styled-to-emotion.d.ts +0 -0
  30. /package/dist/{types-ts4.0 → types-ts4.5}/presets/theme-to-design-tokens/theme-to-design-tokens.d.ts +0 -0
  31. /package/dist/{types-ts4.0 → types-ts4.5}/presets/theme-to-design-tokens/utils/ast-meta.d.ts +0 -0
  32. /package/dist/{types-ts4.0 → types-ts4.5}/presets/theme-to-design-tokens/utils/ast.d.ts +0 -0
  33. /package/dist/{types-ts4.0 → types-ts4.5}/presets/theme-to-design-tokens/utils/color.d.ts +0 -0
  34. /package/dist/{types-ts4.0 → types-ts4.5}/presets/theme-to-design-tokens/utils/legacy-colors.d.ts +0 -0
  35. /package/dist/{types-ts4.0 → types-ts4.5}/presets/theme-to-design-tokens/utils/named-colors.d.ts +0 -0
  36. /package/dist/{types-ts4.0 → types-ts4.5}/presets/theme-to-design-tokens/utils/tokens.d.ts +0 -0
  37. /package/dist/{types-ts4.0 → types-ts4.5}/sinceRef.d.ts +0 -0
  38. /package/dist/{types-ts4.0 → types-ts4.5}/utils.d.ts +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/codemod-cli
2
2
 
3
+ ## 0.12.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
8
+
9
+ ## 0.12.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
14
+
3
15
  ## 0.12.1
4
16
 
5
17
  ### Patch Changes
package/cli/package.json CHANGED
@@ -5,9 +5,9 @@
5
5
  "module:es2019": "../dist/es2019/cli.js",
6
6
  "types": "../dist/types/cli.d.ts",
7
7
  "typesVersions": {
8
- ">=4.0 <4.5": {
8
+ ">=4.5 <4.9": {
9
9
  "*": [
10
- "../dist/types-ts4.0/cli.d.ts"
10
+ "../dist/types-ts4.5/cli.d.ts"
11
11
  ]
12
12
  }
13
13
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/codemod-cli",
3
- "version": "0.12.1"
3
+ "version": "0.12.3"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/codemod-cli",
3
- "version": "0.12.1"
3
+ "version": "0.12.3"
4
4
  }
package/dist/esm/main.js CHANGED
@@ -289,7 +289,7 @@ function _main() {
289
289
  case 4:
290
290
  _yield$parseArgs = _context5.sent;
291
291
  packages = _yield$parseArgs.packages;
292
- _process$env$_PACKAGE = "0.12.1", _PACKAGE_VERSION_ = _process$env$_PACKAGE === void 0 ? '0.0.0-dev' : _process$env$_PACKAGE;
292
+ _process$env$_PACKAGE = "0.12.3", _PACKAGE_VERSION_ = _process$env$_PACKAGE === void 0 ? '0.0.0-dev' : _process$env$_PACKAGE;
293
293
  logger.log(chalk.bgBlue(chalk.black("\uD83D\uDCDA Atlassian-Frontend codemod library @ ".concat(_PACKAGE_VERSION_, " \uD83D\uDCDA"))));
294
294
  if (packages && packages.length > 0) {
295
295
  logger.log(chalk.gray("Searching for codemods for newer versions of the following packages: ".concat(packages.map(function (pkg) {
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/codemod-cli",
3
- "version": "0.12.1"
3
+ "version": "0.12.3"
4
4
  }
@@ -5,7 +5,7 @@ declare const defaultFlags: {
5
5
  ignorePattern: string;
6
6
  logger: Console;
7
7
  };
8
- export declare type UserFlags = Default<Flags, keyof typeof defaultFlags>;
8
+ export type UserFlags = Default<Flags, keyof typeof defaultFlags>;
9
9
  export default function main(input: string[], userFlags: UserFlags): Promise<{
10
10
  transforms: {
11
11
  module: string;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Fuzzy search ripped from the internet.
3
3
  */
4
- declare const FuzzySet: (arr?: string[], useLevenshtein?: boolean | undefined, gramSizeLower?: number, gramSizeUpper?: number) => any;
4
+ declare const FuzzySet: (arr?: string[], useLevenshtein?: boolean, gramSizeLower?: number, gramSizeUpper?: number) => any;
5
5
  export default FuzzySet;
@@ -3,7 +3,7 @@ import path, { ParsedPath } from 'path';
3
3
  import { ParsedPkg } from './types';
4
4
  export declare const hasTransform: (transformPath: string) => boolean;
5
5
  /** Retrieves transforms for `packages` if provided, otherwise all transforms including presets */
6
- export declare const getTransforms: (packages?: ParsedPkg[] | undefined) => ParsedPath[];
6
+ export declare const getTransforms: (packages?: ParsedPkg[]) => ParsedPath[];
7
7
  export declare const parseTransformPath: (transformPath: string) => path.ParsedPath;
8
8
  export declare const getTransformPath: ({ dir, base }: ParsedPath) => string;
9
9
  export declare const getTransformModule: (transform: ParsedPath) => string;
@@ -1,6 +1,6 @@
1
1
  import { FileInfo, API, Options } from 'jscodeshift';
2
- export declare type Transform = (fileInfo: FileInfo, { jscodeshift: j }: API, options: Options) => string;
3
- export declare type CliFlags = {
2
+ export type Transform = (fileInfo: FileInfo, { jscodeshift }: API, options: Options) => string;
3
+ export type CliFlags = {
4
4
  /**
5
5
  * The transform to run
6
6
  */
@@ -38,21 +38,21 @@ export declare type CliFlags = {
38
38
  */
39
39
  filterPaths?: boolean;
40
40
  };
41
- export declare type Flags = CliFlags & {
41
+ export type Flags = CliFlags & {
42
42
  logger: {
43
43
  log: (...args: any) => void;
44
44
  warn: (...args: any) => void;
45
45
  };
46
46
  };
47
- export declare type ParsedPkg = {
47
+ export type ParsedPkg = {
48
48
  name: string;
49
49
  version: string | null;
50
50
  };
51
51
  /** Converts required args to optional if they have a default
52
52
  * Example: export type UserFlags = Default<Flags, keyof typeof defaultFlags>;
53
53
  */
54
- export declare type Default<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
55
- export declare type ValidateShape<T, Shape> = T extends Shape ? Exclude<keyof T, keyof Shape> extends never ? T : never : never;
54
+ export type Default<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
55
+ export type ValidateShape<T, Shape> = T extends Shape ? Exclude<keyof T, keyof Shape> extends never ? T : never : never;
56
56
  export declare class ValidationError extends Error {
57
57
  }
58
58
  export declare class NoTransformsExistError extends Error {
@@ -5,7 +5,7 @@ declare const defaultFlags: {
5
5
  ignorePattern: string;
6
6
  logger: Console;
7
7
  };
8
- export declare type UserFlags = Default<Flags, keyof typeof defaultFlags>;
8
+ export type UserFlags = Default<Flags, keyof typeof defaultFlags>;
9
9
  export default function main(input: string[], userFlags: UserFlags): Promise<{
10
10
  transforms: {
11
11
  module: string;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Fuzzy search ripped from the internet.
3
3
  */
4
- declare const FuzzySet: (arr?: string[], useLevenshtein?: boolean | undefined, gramSizeLower?: number, gramSizeUpper?: number) => any;
4
+ declare const FuzzySet: (arr?: string[], useLevenshtein?: boolean, gramSizeLower?: number, gramSizeUpper?: number) => any;
5
5
  export default FuzzySet;
@@ -3,7 +3,7 @@ import path, { ParsedPath } from 'path';
3
3
  import { ParsedPkg } from './types';
4
4
  export declare const hasTransform: (transformPath: string) => boolean;
5
5
  /** Retrieves transforms for `packages` if provided, otherwise all transforms including presets */
6
- export declare const getTransforms: (packages?: ParsedPkg[] | undefined) => ParsedPath[];
6
+ export declare const getTransforms: (packages?: ParsedPkg[]) => ParsedPath[];
7
7
  export declare const parseTransformPath: (transformPath: string) => path.ParsedPath;
8
8
  export declare const getTransformPath: ({ dir, base }: ParsedPath) => string;
9
9
  export declare const getTransformModule: (transform: ParsedPath) => string;
@@ -1,6 +1,6 @@
1
1
  import { FileInfo, API, Options } from 'jscodeshift';
2
- export declare type Transform = (fileInfo: FileInfo, { jscodeshift: j }: API, options: Options) => string;
3
- export declare type CliFlags = {
2
+ export type Transform = (fileInfo: FileInfo, { jscodeshift }: API, options: Options) => string;
3
+ export type CliFlags = {
4
4
  /**
5
5
  * The transform to run
6
6
  */
@@ -38,21 +38,21 @@ export declare type CliFlags = {
38
38
  */
39
39
  filterPaths?: boolean;
40
40
  };
41
- export declare type Flags = CliFlags & {
41
+ export type Flags = CliFlags & {
42
42
  logger: {
43
43
  log: (...args: any) => void;
44
44
  warn: (...args: any) => void;
45
45
  };
46
46
  };
47
- export declare type ParsedPkg = {
47
+ export type ParsedPkg = {
48
48
  name: string;
49
49
  version: string | null;
50
50
  };
51
51
  /** Converts required args to optional if they have a default
52
52
  * Example: export type UserFlags = Default<Flags, keyof typeof defaultFlags>;
53
53
  */
54
- export declare type Default<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
55
- export declare type ValidateShape<T, Shape> = T extends Shape ? Exclude<keyof T, keyof Shape> extends never ? T : never : never;
54
+ export type Default<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
55
+ export type ValidateShape<T, Shape> = T extends Shape ? Exclude<keyof T, keyof Shape> extends never ? T : never : never;
56
56
  export declare class ValidationError extends Error {
57
57
  }
58
58
  export declare class NoTransformsExistError extends Error {
@@ -5,9 +5,9 @@
5
5
  "module:es2019": "../dist/es2019/filepath.js",
6
6
  "types": "../dist/types/filepath.d.ts",
7
7
  "typesVersions": {
8
- ">=4.0 <4.5": {
8
+ ">=4.5 <4.9": {
9
9
  "*": [
10
- "../dist/types-ts4.0/filepath.d.ts"
10
+ "../dist/types-ts4.5/filepath.d.ts"
11
11
  ]
12
12
  }
13
13
  }
package/main/package.json CHANGED
@@ -5,9 +5,9 @@
5
5
  "module:es2019": "../dist/es2019/main.js",
6
6
  "types": "../dist/types/main.d.ts",
7
7
  "typesVersions": {
8
- ">=4.0 <4.5": {
8
+ ">=4.5 <4.9": {
9
9
  "*": [
10
- "../dist/types-ts4.0/main.d.ts"
10
+ "../dist/types-ts4.5/main.d.ts"
11
11
  ]
12
12
  }
13
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/codemod-cli",
3
- "version": "0.12.1",
3
+ "version": "0.12.3",
4
4
  "description": "A cli for distributing codemods for atlassian-frontend components and services",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -10,6 +10,14 @@
10
10
  "license": "Apache-2.0",
11
11
  "main": "index.js",
12
12
  "types": "dist/types/index.d.ts",
13
+ "typesVersions": {
14
+ ">=4.5 <4.9": {
15
+ "*": [
16
+ "dist/types-ts4.5/*",
17
+ "dist/types-ts4.5/index.d.ts"
18
+ ]
19
+ }
20
+ },
13
21
  "atlaskit:src": "src/index.ts",
14
22
  "atlassian": {
15
23
  "team": "Design System Team",
@@ -24,7 +32,7 @@
24
32
  "codemod-cli": "./bin/codemod-cli.js"
25
33
  },
26
34
  "dependencies": {
27
- "@atlaskit/tokens": "^1.3.0",
35
+ "@atlaskit/tokens": "^1.4.0",
28
36
  "@babel/runtime": "^7.0.0",
29
37
  "@types/jscodeshift": "^0.11.0",
30
38
  "chalk": "^4.1.2",
@@ -42,7 +50,7 @@
42
50
  "@atlaskit/docs": "*",
43
51
  "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
44
52
  "ts-node": "^10.9.1",
45
- "typescript": "4.5.5"
53
+ "typescript": "~4.9.5"
46
54
  },
47
55
  "homepage": "https://atlaskit.atlassian.com/packages/monorepo-tooling/codemod-cli",
48
56
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
@@ -5,9 +5,9 @@
5
5
  "module:es2019": "../dist/es2019/sinceRef.js",
6
6
  "types": "../dist/types/sinceRef.d.ts",
7
7
  "typesVersions": {
8
- ">=4.0 <4.5": {
8
+ ">=4.5 <4.9": {
9
9
  "*": [
10
- "../dist/types-ts4.0/sinceRef.d.ts"
10
+ "../dist/types-ts4.5/sinceRef.d.ts"
11
11
  ]
12
12
  }
13
13
  }
@@ -5,9 +5,9 @@
5
5
  "module:es2019": "../dist/es2019/transforms.js",
6
6
  "types": "../dist/types/transforms.d.ts",
7
7
  "typesVersions": {
8
- ">=4.0 <4.5": {
8
+ ">=4.5 <4.9": {
9
9
  "*": [
10
- "../dist/types-ts4.0/transforms.d.ts"
10
+ "../dist/types-ts4.5/transforms.d.ts"
11
11
  ]
12
12
  }
13
13
  }
@@ -5,9 +5,9 @@
5
5
  "module:es2019": "../dist/es2019/types.js",
6
6
  "types": "../dist/types/types.d.ts",
7
7
  "typesVersions": {
8
- ">=4.0 <4.5": {
8
+ ">=4.5 <4.9": {
9
9
  "*": [
10
- "../dist/types-ts4.0/types.d.ts"
10
+ "../dist/types-ts4.5/types.d.ts"
11
11
  ]
12
12
  }
13
13
  }
@@ -5,9 +5,9 @@
5
5
  "module:es2019": "../dist/es2019/utils.js",
6
6
  "types": "../dist/types/utils.d.ts",
7
7
  "typesVersions": {
8
- ">=4.0 <4.5": {
8
+ ">=4.5 <4.9": {
9
9
  "*": [
10
- "../dist/types-ts4.0/utils.d.ts"
10
+ "../dist/types-ts4.5/utils.d.ts"
11
11
  ]
12
12
  }
13
13
  }
File without changes
File without changes
File without changes
File without changes
File without changes