@atlaskit/codemod-cli 0.34.6 → 0.34.8
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 +13 -0
- package/dist/cjs/presets/tag-to-newTag-migration/codemods/tag-to-newTag-migration.js +2 -0
- package/dist/cjs/presets/tag-to-newTag-migration/tag-to-newTag-migration.js +1 -1
- package/dist/cjs/sinceRef.js +2 -0
- package/dist/es2019/presets/tag-to-newTag-migration/codemods/tag-to-newTag-migration.js +1 -0
- package/dist/es2019/presets/tag-to-newTag-migration/tag-to-newTag-migration.js +2 -0
- package/dist/es2019/sinceRef.js +1 -0
- package/dist/esm/presets/tag-to-newTag-migration/codemods/tag-to-newTag-migration.js +1 -0
- package/dist/esm/presets/tag-to-newTag-migration/tag-to-newTag-migration.js +2 -0
- package/dist/esm/sinceRef.js +1 -0
- package/dist/types/presets/migrate-deprecated-icon/utils/mock.d.ts +75 -0
- package/dist/types/presets/migrate-to-new-buttons/utils/migrate-fit-container-icon-button.d.ts +1 -2
- package/dist/types/presets/theme-remove-deprecated-mixins/types.d.ts +2 -0
- package/dist/types-ts4.5/presets/migrate-deprecated-icon/utils/mock.d.ts +75 -0
- package/dist/types-ts4.5/presets/migrate-to-new-buttons/utils/migrate-fit-container-icon-button.d.ts +1 -2
- package/dist/types-ts4.5/presets/theme-remove-deprecated-mixins/types.d.ts +2 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/codemod-cli
|
|
2
2
|
|
|
3
|
+
## 0.34.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 0.34.7
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`5367a27d5fe5a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5367a27d5fe5a) -
|
|
14
|
+
Internal refactoring
|
|
15
|
+
|
|
3
16
|
## 0.34.6
|
|
4
17
|
|
|
5
18
|
### 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
|
}
|
package/dist/cjs/sinceRef.js
CHANGED
|
@@ -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;
|
package/dist/es2019/sinceRef.js
CHANGED
|
@@ -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);
|
package/dist/esm/sinceRef.js
CHANGED
|
@@ -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
|
+
};
|
package/dist/types/presets/migrate-to-new-buttons/utils/migrate-fit-container-icon-button.d.ts
CHANGED
|
@@ -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,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
|
+
};
|
package/dist/types-ts4.5/presets/migrate-to-new-buttons/utils/migrate-fit-container-icon-button.d.ts
CHANGED
|
@@ -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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/codemod-cli",
|
|
3
|
-
"version": "0.34.
|
|
3
|
+
"version": "0.34.8",
|
|
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.
|
|
21
|
+
"atlaskit:src": "src/index.tsx",
|
|
22
22
|
"atlassian": {
|
|
23
23
|
"team": "Design System Team"
|
|
24
24
|
},
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"bin": "./bin/codemod-cli.js",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
32
|
-
"@atlaskit/icon": "^
|
|
33
|
-
"@atlaskit/icon-lab": "^
|
|
34
|
-
"@atlaskit/tokens": "^11.
|
|
32
|
+
"@atlaskit/icon": "^33.0.0",
|
|
33
|
+
"@atlaskit/icon-lab": "^6.0.0",
|
|
34
|
+
"@atlaskit/tokens": "^11.1.0",
|
|
35
35
|
"@babel/runtime": "^7.0.0",
|
|
36
36
|
"@codeshift/utils": "^0.2.4",
|
|
37
37
|
"@hypermod/utils": "^0.4.2",
|