@atlaskit/codemod-utils 4.1.3 → 4.2.1
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 +12 -0
- package/dist/cjs/index.js +29 -31
- package/dist/cjs/utils/index.js +185 -279
- package/dist/cjs/utils/support.js +113 -209
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/utils/index.js +12 -44
- package/dist/es2019/utils/support.js +26 -68
- package/dist/es2019/version.json +1 -1
- package/dist/esm/utils/index.js +12 -44
- package/dist/esm/utils/support.js +32 -77
- package/dist/esm/version.json +1 -1
- package/dist/types/utils/index.d.ts +3 -3
- package/package.json +9 -5
- package/report.api.md +34 -16
- package/tmp/api-report-tmp.d.ts +122 -0
- package/dist/types-ts4.0/index.d.ts +0 -2
- package/dist/types-ts4.0/utils/index.d.ts +0 -15
- package/dist/types-ts4.0/utils/support.d.ts +0 -47
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/codemod-utils
|
|
2
2
|
|
|
3
|
+
## 4.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
8
|
+
|
|
9
|
+
## 4.2.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
14
|
+
|
|
3
15
|
## 4.1.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/cjs/index.js
CHANGED
|
@@ -5,179 +5,177 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
Object.defineProperty(exports, "addCommentBefore", {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: function
|
|
8
|
+
get: function () {
|
|
9
9
|
return _support.addCommentBefore;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "addCommentToStartOfFile", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function
|
|
14
|
+
get: function () {
|
|
15
15
|
return _support.addCommentToStartOfFile;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "addDynamicImport", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function
|
|
20
|
+
get: function () {
|
|
21
21
|
return _support.addDynamicImport;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "addToImport", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function
|
|
26
|
+
get: function () {
|
|
27
27
|
return _support.addToImport;
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "callExpressionArgMatchesString", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function
|
|
32
|
+
get: function () {
|
|
33
33
|
return _support.callExpressionArgMatchesString;
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "changeImportEntryPoint", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function
|
|
38
|
+
get: function () {
|
|
39
39
|
return _utils.changeImportEntryPoint;
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "createConvertFuncFor", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function
|
|
44
|
+
get: function () {
|
|
45
45
|
return _utils.createConvertFuncFor;
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "createRemoveFuncAddCommentFor", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function
|
|
50
|
+
get: function () {
|
|
51
51
|
return _utils.createRemoveFuncAddCommentFor;
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "createRemoveFuncFor", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function
|
|
56
|
+
get: function () {
|
|
57
57
|
return _utils.createRemoveFuncFor;
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "createRenameFuncFor", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function
|
|
62
|
+
get: function () {
|
|
63
63
|
return _utils.createRenameFuncFor;
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "createRenameImportFor", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function
|
|
68
|
+
get: function () {
|
|
69
69
|
return _utils.createRenameImportFor;
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "createRenameJSXFunc", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function
|
|
74
|
+
get: function () {
|
|
75
75
|
return _utils.createRenameJSXFunc;
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
78
|
Object.defineProperty(exports, "createTransformer", {
|
|
79
79
|
enumerable: true,
|
|
80
|
-
get: function
|
|
80
|
+
get: function () {
|
|
81
81
|
return _utils.createTransformer;
|
|
82
82
|
}
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "doesIdentifierExist", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function
|
|
86
|
+
get: function () {
|
|
87
87
|
return _support.doesIdentifierExist;
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
Object.defineProperty(exports, "elevateComponentToNewEntryPoint", {
|
|
91
91
|
enumerable: true,
|
|
92
|
-
get: function
|
|
92
|
+
get: function () {
|
|
93
93
|
return _utils.elevateComponentToNewEntryPoint;
|
|
94
94
|
}
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "flattenCertainChildPropsAsProp", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function
|
|
98
|
+
get: function () {
|
|
99
99
|
return _utils.flattenCertainChildPropsAsProp;
|
|
100
100
|
}
|
|
101
101
|
});
|
|
102
102
|
Object.defineProperty(exports, "getDefaultSpecifier", {
|
|
103
103
|
enumerable: true,
|
|
104
|
-
get: function
|
|
104
|
+
get: function () {
|
|
105
105
|
return _support.getDefaultSpecifier;
|
|
106
106
|
}
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "getDynamicImportName", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function
|
|
110
|
+
get: function () {
|
|
111
111
|
return _support.getDynamicImportName;
|
|
112
112
|
}
|
|
113
113
|
});
|
|
114
114
|
Object.defineProperty(exports, "getJSXAttributesByName", {
|
|
115
115
|
enumerable: true,
|
|
116
|
-
get: function
|
|
116
|
+
get: function () {
|
|
117
117
|
return _support.getJSXAttributesByName;
|
|
118
118
|
}
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(exports, "getNamedSpecifier", {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: function
|
|
122
|
+
get: function () {
|
|
123
123
|
return _support.getNamedSpecifier;
|
|
124
124
|
}
|
|
125
125
|
});
|
|
126
126
|
Object.defineProperty(exports, "getSafeImportName", {
|
|
127
127
|
enumerable: true,
|
|
128
|
-
get: function
|
|
128
|
+
get: function () {
|
|
129
129
|
return _support.getSafeImportName;
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
132
|
Object.defineProperty(exports, "hasImportDeclaration", {
|
|
133
133
|
enumerable: true,
|
|
134
|
-
get: function
|
|
134
|
+
get: function () {
|
|
135
135
|
return _support.hasImportDeclaration;
|
|
136
136
|
}
|
|
137
137
|
});
|
|
138
138
|
Object.defineProperty(exports, "hasImportDeclarationFromAnyPackageEntrypoint", {
|
|
139
139
|
enumerable: true,
|
|
140
|
-
get: function
|
|
140
|
+
get: function () {
|
|
141
141
|
return _support.hasImportDeclarationFromAnyPackageEntrypoint;
|
|
142
142
|
}
|
|
143
143
|
});
|
|
144
144
|
Object.defineProperty(exports, "hasJSXAttributesByName", {
|
|
145
145
|
enumerable: true,
|
|
146
|
-
get: function
|
|
146
|
+
get: function () {
|
|
147
147
|
return _support.hasJSXAttributesByName;
|
|
148
148
|
}
|
|
149
149
|
});
|
|
150
150
|
Object.defineProperty(exports, "removeImport", {
|
|
151
151
|
enumerable: true,
|
|
152
|
-
get: function
|
|
152
|
+
get: function () {
|
|
153
153
|
return _support.removeImport;
|
|
154
154
|
}
|
|
155
155
|
});
|
|
156
156
|
Object.defineProperty(exports, "renameNamedImportWithAliasName", {
|
|
157
157
|
enumerable: true,
|
|
158
|
-
get: function
|
|
158
|
+
get: function () {
|
|
159
159
|
return _utils.renameNamedImportWithAliasName;
|
|
160
160
|
}
|
|
161
161
|
});
|
|
162
162
|
Object.defineProperty(exports, "replaceImportStatementFor", {
|
|
163
163
|
enumerable: true,
|
|
164
|
-
get: function
|
|
164
|
+
get: function () {
|
|
165
165
|
return _utils.replaceImportStatementFor;
|
|
166
166
|
}
|
|
167
167
|
});
|
|
168
168
|
Object.defineProperty(exports, "testMethodVariantEach", {
|
|
169
169
|
enumerable: true,
|
|
170
|
-
get: function
|
|
170
|
+
get: function () {
|
|
171
171
|
return _support.testMethodVariantEach;
|
|
172
172
|
}
|
|
173
173
|
});
|
|
174
174
|
Object.defineProperty(exports, "tryCreateImport", {
|
|
175
175
|
enumerable: true,
|
|
176
|
-
get: function
|
|
176
|
+
get: function () {
|
|
177
177
|
return _support.tryCreateImport;
|
|
178
178
|
}
|
|
179
179
|
});
|
|
180
|
-
|
|
181
180
|
var _utils = require("./utils");
|
|
182
|
-
|
|
183
181
|
var _support = require("./utils/support");
|