@atlaskit/codemod-cli 0.34.6 → 0.34.7

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @atlaskit/codemod-cli
2
2
 
3
+ ## 0.34.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`5367a27d5fe5a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5367a27d5fe5a) -
8
+ Internal refactoring
9
+
3
10
  ## 0.34.6
4
11
 
5
12
  ### Patch Changes
@@ -7,6 +7,8 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = transformer;
8
8
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
9
9
  var _utils = require("@hypermod/utils");
10
+ // eslint-disable-next-line @repo/internal/fs/filename-pattern-match
11
+
10
12
  var TAG_ENTRY_POINT = '@atlaskit/tag';
11
13
  var TAG_REMOVABLE_ENTRY_POINT = '@atlaskit/tag/removable-tag';
12
14
  var TAG_SIMPLE_ENTRY_POINT = '@atlaskit/tag/simple-tag';
@@ -10,7 +10,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
10
10
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
11
11
  var _tagToNewTagMigration = _interopRequireDefault(require("./codemods/tag-to-newTag-migration"));
12
12
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
13
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
13
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } // eslint-disable-next-line @repo/internal/fs/filename-pattern-match
14
14
  function transformer(_x, _x2) {
15
15
  return _transformer.apply(this, arguments);
16
16
  }
@@ -9,6 +9,8 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
9
9
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
10
10
  var _simpleGit = _interopRequireDefault(require("simple-git"));
11
11
  var _types = require("./types");
12
+ // eslint-disable-next-line @repo/internal/fs/filename-pattern-match
13
+
12
14
  var packageRegex = /"(@(?:atlaskit|atlassian|atlassiansox)\/.*)": "(.*)"/;
13
15
  var parseDiffLine = function parseDiffLine(line) {
14
16
  var type = line.startsWith('-') ? 'deleted' : line.startsWith('+') ? 'added' : null;
@@ -1,3 +1,4 @@
1
+ // eslint-disable-next-line @repo/internal/fs/filename-pattern-match
1
2
  import { getImportDeclaration } from '@hypermod/utils';
2
3
  const TAG_ENTRY_POINT = '@atlaskit/tag';
3
4
  const TAG_REMOVABLE_ENTRY_POINT = '@atlaskit/tag/removable-tag';
@@ -1,3 +1,5 @@
1
+ // eslint-disable-next-line @repo/internal/fs/filename-pattern-match
2
+
1
3
  import tagToNewTagMigrationTransformer from './codemods/tag-to-newTag-migration';
2
4
  export default async function transformer(file, api) {
3
5
  const transformers = [tagToNewTagMigrationTransformer];
@@ -1,3 +1,4 @@
1
+ // eslint-disable-next-line @repo/internal/fs/filename-pattern-match
1
2
  import simpleGit from 'simple-git';
2
3
  import { ValidationError } from './types';
3
4
  const packageRegex = /"(@(?:atlaskit|atlassian|atlassiansox)\/.*)": "(.*)"/;
@@ -1,4 +1,5 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
+ // eslint-disable-next-line @repo/internal/fs/filename-pattern-match
2
3
  import { getImportDeclaration } from '@hypermod/utils';
3
4
  var TAG_ENTRY_POINT = '@atlaskit/tag';
4
5
  var TAG_REMOVABLE_ENTRY_POINT = '@atlaskit/tag/removable-tag';
@@ -3,6 +3,8 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
3
  import _regeneratorRuntime from "@babel/runtime/regenerator";
4
4
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
5
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
+ // eslint-disable-next-line @repo/internal/fs/filename-pattern-match
7
+
6
8
  import tagToNewTagMigrationTransformer from './codemods/tag-to-newTag-migration';
7
9
  export default function transformer(_x, _x2) {
8
10
  return _transformer.apply(this, arguments);
@@ -1,5 +1,6 @@
1
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
2
  import _regeneratorRuntime from "@babel/runtime/regenerator";
3
+ // eslint-disable-next-line @repo/internal/fs/filename-pattern-match
3
4
  import simpleGit from 'simple-git';
4
5
  import { ValidationError } from './types';
5
6
  var packageRegex = /"(@(?:atlaskit|atlassian|atlassiansox)\/.*)": "(.*)"/;
@@ -0,0 +1,75 @@
1
+ export declare const mockMetadata: {
2
+ coreIconMetadata: {
3
+ capture: {
4
+ keywords: string[];
5
+ componentName: string;
6
+ package: string;
7
+ oldName: string[];
8
+ replacement: {
9
+ name: string;
10
+ location: string;
11
+ };
12
+ categorization: string;
13
+ usage: string;
14
+ team: string;
15
+ status: string;
16
+ };
17
+ 'chart-matrix': {
18
+ keywords: string[];
19
+ componentName: string;
20
+ package: string;
21
+ replacement: {
22
+ name: string;
23
+ location: string;
24
+ };
25
+ categorization: string;
26
+ usage: string;
27
+ team: string;
28
+ status: string;
29
+ };
30
+ close: {
31
+ keywords: string[];
32
+ componentName: string;
33
+ package: string;
34
+ oldName: string[];
35
+ replacement: {
36
+ name: string;
37
+ location: string;
38
+ };
39
+ categorization: string;
40
+ usage: string;
41
+ team: string;
42
+ status: string;
43
+ };
44
+ error: {
45
+ keywords: string[];
46
+ componentName: string;
47
+ package: string;
48
+ oldName: string[];
49
+ replacement: {
50
+ name: string;
51
+ location: string;
52
+ };
53
+ categorization: string;
54
+ usage: string;
55
+ team: string;
56
+ status: string;
57
+ };
58
+ };
59
+ };
60
+ export declare const mockDeprecatedIcons: {
61
+ deprecatedCore: {
62
+ '@atlaskit/icon/core/capture': {
63
+ message: string;
64
+ };
65
+ '@atlaskit/icon/core/chart-matrix': {
66
+ message: string;
67
+ };
68
+ '@atlaskit/icon/core/close': {
69
+ message: string;
70
+ };
71
+ '@atlaskit/icon/core/error': {
72
+ message: string;
73
+ };
74
+ };
75
+ };
@@ -1,3 +1,2 @@
1
- import type { API, ASTPath } from 'jscodeshift';
2
- import { type JSXElement } from 'jscodeshift';
1
+ import type { API, ASTPath, JSXElement } from 'jscodeshift';
3
2
  export declare const migrateFitContainerIconButton: (element: ASTPath<JSXElement>, j: API["jscodeshift"]) => boolean;
@@ -0,0 +1,2 @@
1
+ import type designTokens from '@atlaskit/tokens/token-names';
2
+ export type DesignTokenName = keyof typeof designTokens;
@@ -0,0 +1,75 @@
1
+ export declare const mockMetadata: {
2
+ coreIconMetadata: {
3
+ capture: {
4
+ keywords: string[];
5
+ componentName: string;
6
+ package: string;
7
+ oldName: string[];
8
+ replacement: {
9
+ name: string;
10
+ location: string;
11
+ };
12
+ categorization: string;
13
+ usage: string;
14
+ team: string;
15
+ status: string;
16
+ };
17
+ 'chart-matrix': {
18
+ keywords: string[];
19
+ componentName: string;
20
+ package: string;
21
+ replacement: {
22
+ name: string;
23
+ location: string;
24
+ };
25
+ categorization: string;
26
+ usage: string;
27
+ team: string;
28
+ status: string;
29
+ };
30
+ close: {
31
+ keywords: string[];
32
+ componentName: string;
33
+ package: string;
34
+ oldName: string[];
35
+ replacement: {
36
+ name: string;
37
+ location: string;
38
+ };
39
+ categorization: string;
40
+ usage: string;
41
+ team: string;
42
+ status: string;
43
+ };
44
+ error: {
45
+ keywords: string[];
46
+ componentName: string;
47
+ package: string;
48
+ oldName: string[];
49
+ replacement: {
50
+ name: string;
51
+ location: string;
52
+ };
53
+ categorization: string;
54
+ usage: string;
55
+ team: string;
56
+ status: string;
57
+ };
58
+ };
59
+ };
60
+ export declare const mockDeprecatedIcons: {
61
+ deprecatedCore: {
62
+ '@atlaskit/icon/core/capture': {
63
+ message: string;
64
+ };
65
+ '@atlaskit/icon/core/chart-matrix': {
66
+ message: string;
67
+ };
68
+ '@atlaskit/icon/core/close': {
69
+ message: string;
70
+ };
71
+ '@atlaskit/icon/core/error': {
72
+ message: string;
73
+ };
74
+ };
75
+ };
@@ -1,3 +1,2 @@
1
- import type { API, ASTPath } from 'jscodeshift';
2
- import { type JSXElement } from 'jscodeshift';
1
+ import type { API, ASTPath, JSXElement } from 'jscodeshift';
3
2
  export declare const migrateFitContainerIconButton: (element: ASTPath<JSXElement>, j: API["jscodeshift"]) => boolean;
@@ -0,0 +1,2 @@
1
+ import type designTokens from '@atlaskit/tokens/token-names';
2
+ export type DesignTokenName = keyof typeof designTokens;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/codemod-cli",
3
- "version": "0.34.6",
3
+ "version": "0.34.7",
4
4
  "description": "A cli for distributing codemods for atlassian-frontend components and services",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -18,7 +18,7 @@
18
18
  ]
19
19
  }
20
20
  },
21
- "atlaskit:src": "src/index.ts",
21
+ "atlaskit:src": "src/index.tsx",
22
22
  "atlassian": {
23
23
  "team": "Design System Team"
24
24
  },