@atlaskit/codemod-cli 0.22.0 → 0.23.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 +324 -126
- package/dist/cjs/main.js +1 -1
- package/dist/cjs/presets/migrate-to-new-buttons/codemods/next-migrate-to-new-button-variants.js +10 -1
- package/dist/es2019/presets/migrate-to-new-buttons/codemods/next-migrate-to-new-button-variants.js +8 -1
- package/dist/esm/main.js +1 -1
- package/dist/esm/presets/migrate-to-new-buttons/codemods/next-migrate-to-new-button-variants.js +10 -1
- package/dist/types/presets/migrate-to-new-buttons/codemods/next-migrate-to-new-button-variants.d.ts +1 -1
- package/dist/types-ts4.5/presets/migrate-to-new-buttons/codemods/next-migrate-to-new-button-variants.d.ts +1 -1
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,567 +1,765 @@
|
|
|
1
1
|
# @atlaskit/codemod-cli
|
|
2
2
|
|
|
3
|
+
## 0.23.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#98241](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98241)
|
|
8
|
+
[`41fe923d46ae`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/41fe923d46ae) -
|
|
9
|
+
Fix duplicated button imports when migrating LoadingButtons in test files.
|
|
10
|
+
|
|
11
|
+
## 0.23.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#98066](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98066)
|
|
16
|
+
[`414a343b18e7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/414a343b18e7) -
|
|
17
|
+
Add new testing abstraction and update some tests
|
|
18
|
+
|
|
3
19
|
## 0.22.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
|
6
22
|
|
|
7
|
-
-
|
|
23
|
+
- [#91603](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91603)
|
|
24
|
+
[`7cb9b3b277be`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7cb9b3b277be) -
|
|
25
|
+
Update button mod to prefer render props over UNSAFE\_ APIs
|
|
8
26
|
|
|
9
27
|
## 0.21.1
|
|
10
28
|
|
|
11
29
|
### Patch Changes
|
|
12
30
|
|
|
13
|
-
-
|
|
31
|
+
- [#87918](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87918)
|
|
32
|
+
[`1de8dc826f8d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1de8dc826f8d) -
|
|
33
|
+
Fixed the duplicated label issue and the missing JSX pragma comment.
|
|
14
34
|
|
|
15
35
|
## 0.21.0
|
|
16
36
|
|
|
17
37
|
### Minor Changes
|
|
18
38
|
|
|
19
|
-
-
|
|
39
|
+
- [#87074](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87074)
|
|
40
|
+
[`92be609ad553`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/92be609ad553) -
|
|
41
|
+
Adds migration support for LoadingButtons
|
|
20
42
|
|
|
21
43
|
## 0.20.1
|
|
22
44
|
|
|
23
45
|
### Patch Changes
|
|
24
46
|
|
|
25
|
-
-
|
|
47
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
48
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
49
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
26
50
|
|
|
27
51
|
## 0.20.0
|
|
28
52
|
|
|
29
53
|
### Minor Changes
|
|
30
54
|
|
|
31
|
-
-
|
|
55
|
+
- [#70616](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70616)
|
|
56
|
+
[`533c86673290`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/533c86673290) -
|
|
57
|
+
Adding a new pattern for upgrading Pragmatic drag and drop consumers to `1.0`
|
|
32
58
|
|
|
33
|
-
|
|
59
|
+
Pattern name: `"upgrade-pragmatic-drag-and-drop-to-stable"`
|
|
34
60
|
|
|
35
61
|
## 0.19.0
|
|
36
62
|
|
|
37
63
|
### Minor Changes
|
|
38
64
|
|
|
39
|
-
-
|
|
65
|
+
- [#60956](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60956)
|
|
66
|
+
[`3c438c899565`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3c438c899565) -
|
|
67
|
+
Updated glob dependency to 9.0.0 to fix VULN-1129796
|
|
40
68
|
|
|
41
69
|
## 0.18.0
|
|
42
70
|
|
|
43
71
|
### Minor Changes
|
|
44
72
|
|
|
45
|
-
-
|
|
73
|
+
- [#71146](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71146)
|
|
74
|
+
[`3e20d00d3d46`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3e20d00d3d46) -
|
|
75
|
+
Moves tokens codemods into the tokens package.
|
|
46
76
|
|
|
47
77
|
### Patch Changes
|
|
48
78
|
|
|
49
|
-
-
|
|
79
|
+
- Updated dependencies
|
|
50
80
|
|
|
51
81
|
## 0.17.10
|
|
52
82
|
|
|
53
83
|
### Patch Changes
|
|
54
84
|
|
|
55
|
-
-
|
|
85
|
+
- [#69779](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69779)
|
|
86
|
+
[`8dd71b2e0653`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8dd71b2e0653) -
|
|
87
|
+
Updated bin property to string as the package name and bin name matches.
|
|
88
|
+
https://yarnpkg.com/configuration/manifest#bin
|
|
56
89
|
|
|
57
90
|
## 0.17.9
|
|
58
91
|
|
|
59
92
|
### Patch Changes
|
|
60
93
|
|
|
61
|
-
-
|
|
62
|
-
-
|
|
94
|
+
- [#67949](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67949)
|
|
95
|
+
[`4ceb213f9313`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4ceb213f9313) -
|
|
96
|
+
Migrate packages to use declarative entry points
|
|
97
|
+
- Updated dependencies
|
|
63
98
|
|
|
64
99
|
## 0.17.8
|
|
65
100
|
|
|
66
101
|
### Patch Changes
|
|
67
102
|
|
|
68
|
-
-
|
|
103
|
+
- [#62539](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62539)
|
|
104
|
+
[`4055341131ca`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4055341131ca) -
|
|
105
|
+
Update button codemod to add type keywork for type imports
|
|
69
106
|
|
|
70
107
|
## 0.17.7
|
|
71
108
|
|
|
72
109
|
### Patch Changes
|
|
73
110
|
|
|
74
|
-
-
|
|
75
|
-
|
|
111
|
+
- [#61900](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/61900)
|
|
112
|
+
[`101b5d5ef72a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/101b5d5ef72a) -
|
|
113
|
+
Small changes in mixin migration - Use `token` instead of `theamed` to avoid migration to
|
|
114
|
+
depricated code
|
|
115
|
+
- [#62187](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62187)
|
|
116
|
+
[`03bb58064010`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/03bb58064010) -
|
|
117
|
+
Added a small bug-fix in button codemods: add TODO comment on default buttons with "link" or
|
|
118
|
+
"subtle-link" appearance but without `href`
|
|
76
119
|
|
|
77
120
|
## 0.17.6
|
|
78
121
|
|
|
79
122
|
### Patch Changes
|
|
80
123
|
|
|
81
|
-
-
|
|
124
|
+
- [#61943](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/61943)
|
|
125
|
+
[`dfdb42df4b4c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/dfdb42df4b4c) -
|
|
126
|
+
Now building the `@atlaskit/tokens` package when during `"prestart"` as tokens is required to be
|
|
127
|
+
built for some of the patterns to run.
|
|
82
128
|
|
|
83
129
|
## 0.17.5
|
|
84
130
|
|
|
85
131
|
### Patch Changes
|
|
86
132
|
|
|
87
|
-
-
|
|
133
|
+
- [#59501](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59501)
|
|
134
|
+
[`2c30839b5156`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2c30839b5156) -
|
|
135
|
+
Button migration codemods- updated import path to the new entry point "@atlaskit/button/new"
|
|
88
136
|
|
|
89
137
|
## 0.17.4
|
|
90
138
|
|
|
91
139
|
### Patch Changes
|
|
92
140
|
|
|
93
|
-
-
|
|
141
|
+
- [#59085](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59085)
|
|
142
|
+
[`360ae69766f9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/360ae69766f9) -
|
|
143
|
+
small fix in button migration codemod - don't move the size prop from icon if it is medium.
|
|
94
144
|
|
|
95
145
|
## 0.17.3
|
|
96
146
|
|
|
97
147
|
### Patch Changes
|
|
98
148
|
|
|
99
|
-
-
|
|
149
|
+
- [#57531](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/57531)
|
|
150
|
+
[`18f167967f89`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/18f167967f89) -
|
|
151
|
+
Handle button migrations with unsupported props.
|
|
100
152
|
|
|
101
153
|
## 0.17.2
|
|
102
154
|
|
|
103
155
|
### Patch Changes
|
|
104
156
|
|
|
105
|
-
-
|
|
157
|
+
- [#56711](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56711)
|
|
158
|
+
[`a48d9247ddb2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a48d9247ddb2) -
|
|
159
|
+
Small changes in button migration codemod - renamed UNSAFE_size to
|
|
160
|
+
UNSAFE_iconBefore/iconAfter_size for new link and default buttons
|
|
106
161
|
|
|
107
162
|
## 0.17.1
|
|
108
163
|
|
|
109
164
|
### Patch Changes
|
|
110
165
|
|
|
111
|
-
-
|
|
166
|
+
- [#43812](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43812)
|
|
167
|
+
[`15c0e36ba0f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/15c0e36ba0f) - Update
|
|
168
|
+
button codemods to adapt new API changes for IconButton.
|
|
112
169
|
|
|
113
170
|
## 0.17.0
|
|
114
171
|
|
|
115
172
|
### Minor Changes
|
|
116
173
|
|
|
117
|
-
-
|
|
174
|
+
- [#43699](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43699)
|
|
175
|
+
[`82e6819e04b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/82e6819e04b) - Update
|
|
176
|
+
the codemod-cli to accept custom options, e.g.
|
|
177
|
+
`npx @atlaskit/codemod-cli --foo bar /project/src/file.js`
|
|
118
178
|
|
|
119
179
|
### Patch Changes
|
|
120
180
|
|
|
121
|
-
-
|
|
181
|
+
- Updated dependencies
|
|
122
182
|
|
|
123
183
|
## 0.16.0
|
|
124
184
|
|
|
125
185
|
### Minor Changes
|
|
126
186
|
|
|
127
|
-
-
|
|
187
|
+
- [#41699](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41699)
|
|
188
|
+
[`436fa9358ae`](https://bitbucket.org/atlassian/atlassian-frontend/commits/436fa9358ae) -
|
|
189
|
+
Introduces new codemod “migrate-to-new-buttons” to automate the new button migration.
|
|
128
190
|
|
|
129
191
|
## 0.15.0
|
|
130
192
|
|
|
131
193
|
### Minor Changes
|
|
132
194
|
|
|
133
|
-
-
|
|
195
|
+
- [#40270](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40270)
|
|
196
|
+
[`27bbdfcb6ad`](https://bitbucket.org/atlassian/atlassian-frontend/commits/27bbdfcb6ad) - This
|
|
197
|
+
update includes several improvements and fixes to the css-to-design-tokens preset:
|
|
134
198
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
199
|
+
- Resolved transformation errors.
|
|
200
|
+
- Added support for new color properties such as `border-color-left`.
|
|
201
|
+
- Omitted unrecognized functions, including `url`, and certain Less functions to prevent
|
|
202
|
+
compile errors.
|
|
203
|
+
- Enhanced codemod to only substitute raw, named colors and known variables (like old Atlaskit
|
|
204
|
+
colors), and to avoid substituting variables not related to colors.
|
|
205
|
+
- Introduced token filtering for more precise token identification.
|
|
206
|
+
- Added parsing for gradient functions and multiple colors.
|
|
141
207
|
|
|
142
208
|
## 0.14.0
|
|
143
209
|
|
|
144
210
|
### Minor Changes
|
|
145
211
|
|
|
146
|
-
-
|
|
212
|
+
- [#39017](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39017)
|
|
213
|
+
[`26d4e25c2b3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/26d4e25c2b3) -
|
|
214
|
+
replace strings that contain only the color name; replace hard-coded colors in template literals
|
|
215
|
+
that have CSS declarations; better color names for literals that have multiple expressions;
|
|
216
|
+
replace full value of box-shadow in template literals
|
|
147
217
|
|
|
148
218
|
## 0.13.4
|
|
149
219
|
|
|
150
220
|
### Patch Changes
|
|
151
221
|
|
|
152
|
-
-
|
|
222
|
+
- [#38813](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38813)
|
|
223
|
+
[`9c4335f135d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9c4335f135d) -
|
|
224
|
+
Updated README.md
|
|
153
225
|
|
|
154
226
|
## 0.13.3
|
|
155
227
|
|
|
156
228
|
### Patch Changes
|
|
157
229
|
|
|
158
|
-
-
|
|
230
|
+
- [#35950](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35950)
|
|
231
|
+
[`50cf866a219`](https://bitbucket.org/atlassian/atlassian-frontend/commits/50cf866a219) - bump
|
|
232
|
+
semver
|
|
159
233
|
|
|
160
234
|
## 0.13.2
|
|
161
235
|
|
|
162
236
|
### Patch Changes
|
|
163
237
|
|
|
164
|
-
-
|
|
238
|
+
- [#32800](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32800)
|
|
239
|
+
[`07f0eb8e1f4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/07f0eb8e1f4) -
|
|
240
|
+
Refactors `theme-to-design-tokens` to improve its accuracy
|
|
165
241
|
|
|
166
242
|
## 0.13.1
|
|
167
243
|
|
|
168
244
|
### Patch Changes
|
|
169
245
|
|
|
170
|
-
-
|
|
246
|
+
- [#34443](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34443)
|
|
247
|
+
[`61cb5313358`](https://bitbucket.org/atlassian/atlassian-frontend/commits/61cb5313358) -
|
|
248
|
+
Removing unused dependencies and dev dependencies
|
|
171
249
|
|
|
172
250
|
## 0.13.0
|
|
173
251
|
|
|
174
252
|
### Minor Changes
|
|
175
253
|
|
|
176
|
-
-
|
|
254
|
+
- [#34602](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34602)
|
|
255
|
+
[`c528571ef3d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c528571ef3d) -
|
|
256
|
+
Introduces new codemod "theme-remove-deprecated-mixins" to automate the removal of deprecated
|
|
257
|
+
color mixins
|
|
177
258
|
|
|
178
259
|
## 0.12.3
|
|
179
260
|
|
|
180
261
|
### Patch Changes
|
|
181
262
|
|
|
182
|
-
-
|
|
263
|
+
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793)
|
|
264
|
+
[`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure
|
|
265
|
+
legacy types are published for TS 4.5-4.8
|
|
183
266
|
|
|
184
267
|
## 0.12.2
|
|
185
268
|
|
|
186
269
|
### Patch Changes
|
|
187
270
|
|
|
188
|
-
-
|
|
271
|
+
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649)
|
|
272
|
+
[`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) -
|
|
273
|
+
Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
189
274
|
|
|
190
275
|
## 0.12.1
|
|
191
276
|
|
|
192
277
|
### Patch Changes
|
|
193
278
|
|
|
194
|
-
-
|
|
279
|
+
- [#33377](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33377)
|
|
280
|
+
[`07020547a93`](https://bitbucket.org/atlassian/atlassian-frontend/commits/07020547a93) - Safe
|
|
281
|
+
direct migraiton to design token API. This change is not visible for those who aren't using
|
|
282
|
+
design tokens
|
|
195
283
|
|
|
196
284
|
## 0.12.0
|
|
197
285
|
|
|
198
286
|
### Minor Changes
|
|
199
287
|
|
|
200
|
-
-
|
|
288
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258)
|
|
289
|
+
[`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip
|
|
290
|
+
minor dependency bump
|
|
201
291
|
|
|
202
292
|
### Patch Changes
|
|
203
293
|
|
|
204
|
-
-
|
|
294
|
+
- Updated dependencies
|
|
205
295
|
|
|
206
296
|
## 0.11.5
|
|
207
297
|
|
|
208
298
|
### Patch Changes
|
|
209
299
|
|
|
210
|
-
-
|
|
211
|
-
-
|
|
300
|
+
- [#27634](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27634)
|
|
301
|
+
[`cc84a1ed227`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cc84a1ed227) -
|
|
302
|
+
Updates default behaviour of codemods when a suggested token cannot be found
|
|
303
|
+
- Updated dependencies
|
|
212
304
|
|
|
213
305
|
## 0.11.4
|
|
214
306
|
|
|
215
307
|
### Patch Changes
|
|
216
308
|
|
|
217
|
-
-
|
|
309
|
+
- [#29170](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/29170)
|
|
310
|
+
[`708957d360f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/708957d360f) -
|
|
311
|
+
Upgrade a dependency package simple-git
|
|
218
312
|
|
|
219
313
|
## 0.11.3
|
|
220
314
|
|
|
221
315
|
### Patch Changes
|
|
222
316
|
|
|
223
|
-
-
|
|
317
|
+
- [#27875](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27875)
|
|
318
|
+
[`b14dca751fa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b14dca751fa) -
|
|
319
|
+
Exclude the chart tokens from the list of tokens that we pass into the codemod.
|
|
224
320
|
|
|
225
321
|
## 0.11.2
|
|
226
322
|
|
|
227
323
|
### Patch Changes
|
|
228
324
|
|
|
229
|
-
-
|
|
325
|
+
- Updated dependencies
|
|
230
326
|
|
|
231
327
|
## 0.11.1
|
|
232
328
|
|
|
233
329
|
### Patch Changes
|
|
234
330
|
|
|
235
|
-
-
|
|
331
|
+
- Updated dependencies
|
|
236
332
|
|
|
237
333
|
## 0.11.0
|
|
238
334
|
|
|
239
335
|
### Minor Changes
|
|
240
336
|
|
|
241
|
-
-
|
|
337
|
+
- [#28150](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28150)
|
|
338
|
+
[`00ea8db4763`](https://bitbucket.org/atlassian/atlassian-frontend/commits/00ea8db4763) -
|
|
339
|
+
Upgrading the simple-git version
|
|
242
340
|
|
|
243
341
|
## 0.10.5
|
|
244
342
|
|
|
245
343
|
### Patch Changes
|
|
246
344
|
|
|
247
|
-
-
|
|
345
|
+
- [#27794](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27794)
|
|
346
|
+
[`7a958dda205`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7a958dda205) -
|
|
347
|
+
Updates tokens codemods to only suggest active tokens
|
|
248
348
|
|
|
249
349
|
## 0.10.4
|
|
250
350
|
|
|
251
351
|
### Patch Changes
|
|
252
352
|
|
|
253
|
-
-
|
|
353
|
+
- Updated dependencies
|
|
254
354
|
|
|
255
355
|
## 0.10.3
|
|
256
356
|
|
|
257
357
|
### Patch Changes
|
|
258
358
|
|
|
259
|
-
-
|
|
359
|
+
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874)
|
|
360
|
+
[`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) -
|
|
361
|
+
Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
260
362
|
|
|
261
363
|
## 0.10.2
|
|
262
364
|
|
|
263
365
|
### Patch Changes
|
|
264
366
|
|
|
265
|
-
-
|
|
367
|
+
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492)
|
|
368
|
+
[`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) -
|
|
369
|
+
Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
266
370
|
|
|
267
371
|
## 0.10.1
|
|
268
372
|
|
|
269
373
|
### Patch Changes
|
|
270
374
|
|
|
271
|
-
-
|
|
375
|
+
- [#23137](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23137)
|
|
376
|
+
[`6ec444547a9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6ec444547a9) -
|
|
377
|
+
Applies various fixes to the tokens post-css codemod. Box shadows and border properties are
|
|
378
|
+
respected syntactically
|
|
272
379
|
|
|
273
380
|
## 0.10.0
|
|
274
381
|
|
|
275
382
|
### Minor Changes
|
|
276
383
|
|
|
277
|
-
-
|
|
384
|
+
- [#21570](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/21570)
|
|
385
|
+
[`54c548f34ca`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54c548f34ca) - Adds
|
|
386
|
+
preset codemod for css-to-design-tokens. This codemod transforms css,scss,less color usage to
|
|
387
|
+
design tokens.
|
|
278
388
|
|
|
279
389
|
## 0.9.7
|
|
280
390
|
|
|
281
391
|
### Patch Changes
|
|
282
392
|
|
|
283
|
-
-
|
|
393
|
+
- Updated dependencies
|
|
284
394
|
|
|
285
395
|
## 0.9.6
|
|
286
396
|
|
|
287
397
|
### Patch Changes
|
|
288
398
|
|
|
289
|
-
-
|
|
399
|
+
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650)
|
|
400
|
+
[`a424e62b264`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a424e62b264) -
|
|
401
|
+
Changes to support Node 16 Typescript definitions from `@types/node`.
|
|
290
402
|
|
|
291
403
|
## 0.9.5
|
|
292
404
|
|
|
293
405
|
### Patch Changes
|
|
294
406
|
|
|
295
|
-
-
|
|
407
|
+
- [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) -
|
|
408
|
+
Upgrade to TypeScript 4.2.4
|
|
296
409
|
|
|
297
410
|
## 0.9.4
|
|
298
411
|
|
|
299
412
|
### Patch Changes
|
|
300
413
|
|
|
301
|
-
-
|
|
414
|
+
- Updated dependencies
|
|
302
415
|
|
|
303
416
|
## 0.9.3
|
|
304
417
|
|
|
305
418
|
### Patch Changes
|
|
306
419
|
|
|
307
|
-
-
|
|
420
|
+
- [#20310](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20310)
|
|
421
|
+
[`1977986ea86`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1977986ea86) -
|
|
422
|
+
Bumping dependencies via Renovate:
|
|
308
423
|
|
|
309
|
-
|
|
424
|
+
- simple-git
|
|
310
425
|
|
|
311
426
|
## 0.9.2
|
|
312
427
|
|
|
313
428
|
### Patch Changes
|
|
314
429
|
|
|
315
|
-
-
|
|
430
|
+
- [#19927](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19927)
|
|
431
|
+
[`5c45b17200d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5c45b17200d) -
|
|
432
|
+
Bumping dependencies via Renovate:
|
|
316
433
|
|
|
317
|
-
|
|
434
|
+
- simple-git
|
|
318
435
|
|
|
319
436
|
## 0.9.1
|
|
320
437
|
|
|
321
438
|
### Patch Changes
|
|
322
439
|
|
|
323
|
-
-
|
|
440
|
+
- Updated dependencies
|
|
324
441
|
|
|
325
442
|
## 0.9.0
|
|
326
443
|
|
|
327
444
|
### Minor Changes
|
|
328
445
|
|
|
329
|
-
-
|
|
446
|
+
- [#19516](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19516)
|
|
447
|
+
[`2b8c48b26ab`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2b8c48b26ab) -
|
|
448
|
+
Instrumented `@atlaskit/codemod-cli` with none interaction support
|
|
330
449
|
|
|
331
|
-
|
|
450
|
+
New argument for the codemod-cli has been added to support preselect transform in command line.
|
|
332
451
|
|
|
333
452
|
## 0.8.7
|
|
334
453
|
|
|
335
454
|
### Patch Changes
|
|
336
455
|
|
|
337
|
-
-
|
|
456
|
+
- [#18960](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/18960)
|
|
457
|
+
[`54a44d46e29`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54a44d46e29) -
|
|
458
|
+
Renovate Bot upgraded simple-git from ^1.130.0 to 2.48.0
|
|
338
459
|
|
|
339
460
|
## 0.8.6
|
|
340
461
|
|
|
341
462
|
### Patch Changes
|
|
342
463
|
|
|
343
|
-
-
|
|
464
|
+
- Updated dependencies
|
|
344
465
|
|
|
345
466
|
## 0.8.5
|
|
346
467
|
|
|
347
468
|
### Patch Changes
|
|
348
469
|
|
|
349
|
-
-
|
|
470
|
+
- [#18965](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/18965)
|
|
471
|
+
[`e4dd80187f5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e4dd80187f5) -
|
|
472
|
+
Refactors theme-to-tokens codemod with new token names + simplifies logic
|
|
350
473
|
|
|
351
474
|
## 0.8.4
|
|
352
475
|
|
|
353
476
|
### Patch Changes
|
|
354
477
|
|
|
355
|
-
-
|
|
356
|
-
|
|
357
|
-
-
|
|
478
|
+
- [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752)
|
|
479
|
+
[`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Adds a
|
|
480
|
+
new codemod preset `theme-to-design-tokens` that helps migrate from atlaskit theme to atlaskit
|
|
481
|
+
tokens.
|
|
482
|
+
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Theme
|
|
483
|
+
preset is now picked up by the CLI.
|
|
484
|
+
- Updated dependencies
|
|
358
485
|
|
|
359
486
|
## 0.8.3
|
|
360
487
|
|
|
361
488
|
### Patch Changes
|
|
362
489
|
|
|
363
|
-
-
|
|
490
|
+
- [#17016](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/17016)
|
|
491
|
+
[`f4d22b1c8af`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f4d22b1c8af) - Ignore
|
|
492
|
+
directory filtering logic if filtering returns no paths
|
|
364
493
|
|
|
365
494
|
## 0.8.2
|
|
366
495
|
|
|
367
496
|
### Patch Changes
|
|
368
497
|
|
|
369
|
-
-
|
|
498
|
+
- [#16649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16649)
|
|
499
|
+
[`650aa20f6fe`](https://bitbucket.org/atlassian/atlassian-frontend/commits/650aa20f6fe) -
|
|
500
|
+
Upgrade meow dependency
|
|
370
501
|
|
|
371
502
|
## 0.8.1
|
|
372
503
|
|
|
373
504
|
### Patch Changes
|
|
374
505
|
|
|
375
|
-
-
|
|
506
|
+
- [#16252](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16252)
|
|
507
|
+
[`982e2f3d3d2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/982e2f3d3d2) -
|
|
508
|
+
Directory filtering now defaults to true
|
|
376
509
|
|
|
377
510
|
## 0.8.0
|
|
378
511
|
|
|
379
512
|
### Minor Changes
|
|
380
513
|
|
|
381
|
-
-
|
|
514
|
+
- [#15374](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15374)
|
|
515
|
+
[`f3d46c395b4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f3d46c395b4) - Add
|
|
516
|
+
path filtering to codemod-cli
|
|
382
517
|
|
|
383
518
|
## 0.7.0
|
|
384
519
|
|
|
385
520
|
### Minor Changes
|
|
386
521
|
|
|
387
|
-
-
|
|
522
|
+
- [#13957](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13957)
|
|
523
|
+
[`d3a285fdc82`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3a285fdc82) - Add
|
|
524
|
+
support for codemods authored as .tsx files
|
|
388
525
|
|
|
389
526
|
## 0.6.7
|
|
390
527
|
|
|
391
528
|
### Patch Changes
|
|
392
529
|
|
|
393
|
-
-
|
|
394
|
-
|
|
530
|
+
- [#12535](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12535)
|
|
531
|
+
[`4a67fb592c8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4a67fb592c8) - Bump
|
|
532
|
+
jscodeshift to 0.13.0.
|
|
533
|
+
[Commit Changelog](https://github.com/facebook/jscodeshift/commit/2fd5e11f469427d474983b2d1c47be9408677591).
|
|
395
534
|
|
|
396
|
-
|
|
535
|
+
### Added
|
|
397
536
|
|
|
398
|
-
|
|
399
|
-
|
|
537
|
+
- Added a `--fail-on-error` flag to return a `1` error code when errors were found (#416,
|
|
538
|
+
@marcodejongh)
|
|
539
|
+
- Created `template.asyncExpression` (#405, @jedwards1211)
|
|
400
540
|
|
|
401
|
-
|
|
541
|
+
### Changed
|
|
402
542
|
|
|
403
|
-
|
|
543
|
+
- Removed lodash dependency from tsx parser (#432, @JHilker and @robyoder)
|
|
404
544
|
|
|
405
545
|
## 0.6.6
|
|
406
546
|
|
|
407
547
|
### Patch Changes
|
|
408
548
|
|
|
409
|
-
-
|
|
549
|
+
- [#11911](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/11911)
|
|
550
|
+
[`d0ef46dee01`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d0ef46dee01) -
|
|
551
|
+
Removes ts-node / cjs bundle switcher from main entrypoint of codemod-utils and updated
|
|
552
|
+
codemod-cli scripts to support
|
|
410
553
|
|
|
411
554
|
## 0.6.5
|
|
412
555
|
|
|
413
556
|
### Patch Changes
|
|
414
557
|
|
|
415
|
-
-
|
|
558
|
+
- [#10735](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10735)
|
|
559
|
+
[`fdbd74cdb32`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fdbd74cdb32) - Remove
|
|
560
|
+
--no-babel flag when parser flow is used
|
|
416
561
|
|
|
417
562
|
## 0.6.4
|
|
418
563
|
|
|
419
564
|
### Patch Changes
|
|
420
565
|
|
|
421
|
-
-
|
|
566
|
+
- [#10705](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10705)
|
|
567
|
+
[`6a0b92d2af9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6a0b92d2af9) -
|
|
568
|
+
MONO-103 Fixed bug were codemod-cli would erronously run
|
|
422
569
|
|
|
423
570
|
## 0.6.3
|
|
424
571
|
|
|
425
572
|
### Patch Changes
|
|
426
573
|
|
|
427
|
-
-
|
|
574
|
+
- [#10392](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10392)
|
|
575
|
+
[`30c279f85eb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/30c279f85eb) - Bump
|
|
576
|
+
atlassian-forks-jscodeshift to "^0.12.2-atlassian-6".
|
|
428
577
|
|
|
429
578
|
## 0.6.2
|
|
430
579
|
|
|
431
580
|
### Patch Changes
|
|
432
581
|
|
|
433
|
-
-
|
|
582
|
+
- [#10060](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10060)
|
|
583
|
+
[`6c420d1698d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c420d1698d) - Fix
|
|
584
|
+
application of --no-babel flag
|
|
434
585
|
|
|
435
586
|
## 0.6.1
|
|
436
587
|
|
|
437
588
|
### Patch Changes
|
|
438
589
|
|
|
439
|
-
-
|
|
590
|
+
- [#10014](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10014)
|
|
591
|
+
[`13d9c023e8d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/13d9c023e8d) - Log
|
|
592
|
+
the package version when running codemod cli
|
|
440
593
|
|
|
441
594
|
## 0.6.0
|
|
442
595
|
|
|
443
596
|
### Minor Changes
|
|
444
597
|
|
|
445
|
-
-
|
|
598
|
+
- [#9924](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9924)
|
|
599
|
+
[`cdd78d4ff38`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cdd78d4ff38) - The
|
|
600
|
+
codemod-cli can fail on error when the flag `--fail-on-error` is passed, it will return a 1 exit
|
|
601
|
+
code when errors were found during execution of codemods
|
|
446
602
|
|
|
447
|
-
|
|
603
|
+
This flag `--fail-on-error` was added as part of this
|
|
604
|
+
[PR](https://github.com/facebook/jscodeshift/pull/416) that forked `jscodeshift`.
|
|
448
605
|
|
|
449
|
-
|
|
606
|
+
In Atlassian Frontend, we are now using the fork of `jscodeshift`,
|
|
607
|
+
[atlassian-forks-jscodeshift](https://www.npmjs.com/package/atlassian-forks-jscodeshift) till we
|
|
608
|
+
get this change back to the library.
|
|
450
609
|
|
|
451
|
-
|
|
610
|
+
Add `--fail-on-error` in the config to be passed as a flag when the codemod runs - only for
|
|
611
|
+
branch integrator.
|
|
452
612
|
|
|
453
613
|
## 0.5.3
|
|
454
614
|
|
|
455
615
|
### Patch Changes
|
|
456
616
|
|
|
457
|
-
-
|
|
458
|
-
|
|
617
|
+
- [#9832](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9832)
|
|
618
|
+
[`d72b572dfc2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d72b572dfc2) - bumped
|
|
619
|
+
jscodeshift@^0.11.0
|
|
620
|
+
- [`d72b572dfc2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d72b572dfc2) - bumped
|
|
621
|
+
@types/jscodeshift@^0.11.0
|
|
459
622
|
|
|
460
623
|
## 0.5.2
|
|
461
624
|
|
|
462
625
|
### Patch Changes
|
|
463
626
|
|
|
464
|
-
-
|
|
627
|
+
- [#9482](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9482)
|
|
628
|
+
[`cfd7c0b5bcc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cfd7c0b5bcc) - Update
|
|
629
|
+
the logic to properly check for the env var FAIL_CODEMODS_ON_ERROR and add `--no-babel` when
|
|
630
|
+
running js file.
|
|
465
631
|
|
|
466
632
|
## 0.5.1
|
|
467
633
|
|
|
468
634
|
### Patch Changes
|
|
469
635
|
|
|
470
|
-
-
|
|
636
|
+
- [#9018](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9018)
|
|
637
|
+
[`6afd79db199`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6afd79db199) - Bump
|
|
638
|
+
dependency "meow" to version ^6.0.0
|
|
471
639
|
|
|
472
640
|
## 0.5.0
|
|
473
641
|
|
|
474
642
|
### Minor Changes
|
|
475
643
|
|
|
476
|
-
-
|
|
477
|
-
|
|
478
|
-
|
|
644
|
+
- [#8789](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/8789)
|
|
645
|
+
[`a9e359236b4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a9e359236b4) - The
|
|
646
|
+
codemod-cli can fail on error when the flag `--fail-on-error` is passed, it will return a 1 exit
|
|
647
|
+
code when errors were found during execution of codemods This flag `--fail-on-error` was added
|
|
648
|
+
as part of this [PR](https://github.com/facebook/jscodeshift/pull/416) that forked
|
|
649
|
+
`jscodeshift`. In Atlassian Frontend, we are now using the fork of `jscodeshift`,
|
|
650
|
+
[atlassian-forks-jscodeshift](https://www.npmjs.com/package/atlassian-forks-jscodeshift) till we
|
|
651
|
+
get this change back to the library.
|
|
479
652
|
|
|
480
|
-
|
|
653
|
+
Add `--fail-on-error` in the config to be passed as a flag when the codemod runs - only for
|
|
654
|
+
branch integrator.
|
|
481
655
|
|
|
482
656
|
## 0.4.4
|
|
483
657
|
|
|
484
658
|
### Patch Changes
|
|
485
659
|
|
|
486
|
-
-
|
|
660
|
+
- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857)
|
|
661
|
+
[`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) -
|
|
662
|
+
Transpile packages using babel rather than tsc
|
|
487
663
|
|
|
488
664
|
## 0.4.3
|
|
489
665
|
|
|
490
666
|
### Patch Changes
|
|
491
667
|
|
|
492
|
-
-
|
|
493
|
-
|
|
494
|
-
|
|
668
|
+
- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497)
|
|
669
|
+
[`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export
|
|
670
|
+
types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules
|
|
671
|
+
compiler option. This requires version 3.8 of Typescript, read more about how we handle
|
|
672
|
+
Typescript versions here: https://atlaskit.atlassian.com/get-started Also add `typescript` to
|
|
673
|
+
`devDependencies` to denote version that the package was built with.
|
|
495
674
|
|
|
496
675
|
## 0.4.2
|
|
497
676
|
|
|
498
677
|
### Patch Changes
|
|
499
678
|
|
|
500
|
-
-
|
|
679
|
+
- [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885)
|
|
680
|
+
[`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded
|
|
681
|
+
to TypeScript 3.9.6 and tslib to 2.0.0
|
|
501
682
|
|
|
502
|
-
|
|
503
|
-
|
|
683
|
+
Since tslib is a dependency for all our packages we recommend that products also follow this
|
|
684
|
+
tslib upgrade to prevent duplicates of tslib being bundled.
|
|
504
685
|
|
|
505
686
|
## 0.4.1
|
|
506
687
|
|
|
507
688
|
### Patch Changes
|
|
508
689
|
|
|
509
|
-
-
|
|
690
|
+
- [#3841](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3841)
|
|
691
|
+
[`88ceeac950`](https://bitbucket.org/atlassian/atlassian-frontend/commits/88ceeac950) - Fix CLI
|
|
692
|
+
not working due to missing ts-node dependency
|
|
510
693
|
|
|
511
694
|
## 0.4.0
|
|
512
695
|
|
|
513
696
|
### Minor Changes
|
|
514
697
|
|
|
515
|
-
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
698
|
+
- [#3197](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3197)
|
|
699
|
+
[`d9f34d27e8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d9f34d27e8) - Add
|
|
700
|
+
--packages flag to automatically run codemods for specific packages Add --sinceRef flag to
|
|
701
|
+
automatically run codemods that have been upgraded since a certain git ref Add support for
|
|
702
|
+
running over multiple filepaths Extend support to restricted scoped packages Expose programmatic
|
|
703
|
+
API
|
|
520
704
|
|
|
521
705
|
### Patch Changes
|
|
522
706
|
|
|
523
|
-
-
|
|
524
|
-
|
|
707
|
+
- [`d9f34d27e8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d9f34d27e8) - Fix
|
|
708
|
+
transforms being sourced from nested node_modules directories Return non-zero exit codes on
|
|
709
|
+
failure
|
|
525
710
|
|
|
526
711
|
## 0.3.4
|
|
527
712
|
|
|
528
713
|
### Patch Changes
|
|
529
714
|
|
|
530
|
-
-
|
|
715
|
+
- [#3093](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3093)
|
|
716
|
+
[`f664568219`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f664568219) - Codemods
|
|
717
|
+
are now presented with their module name prepended to make it easier to see which codemod
|
|
718
|
+
belongs to which packages
|
|
531
719
|
|
|
532
720
|
## 0.3.3
|
|
533
721
|
|
|
534
722
|
### Patch Changes
|
|
535
723
|
|
|
536
|
-
-
|
|
724
|
+
- [#3062](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3062)
|
|
725
|
+
[`4be3a868e1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4be3a868e1) - Ensure
|
|
726
|
+
the library is running with the Node environment + adds ts-lib
|
|
537
727
|
|
|
538
728
|
## 0.3.2
|
|
539
729
|
|
|
540
730
|
### Patch Changes
|
|
541
731
|
|
|
542
|
-
-
|
|
732
|
+
- [#3002](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3002)
|
|
733
|
+
[`78dde805ef`](https://bitbucket.org/atlassian/atlassian-frontend/commits/78dde805ef) - Fixes an
|
|
734
|
+
issue with loading presets in javascript
|
|
543
735
|
|
|
544
736
|
## 0.3.1
|
|
545
737
|
|
|
546
738
|
### Patch Changes
|
|
547
739
|
|
|
548
|
-
-
|
|
740
|
+
- [#2137](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2137)
|
|
741
|
+
[`b4e29ceda2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b4e29ceda2) - Fixed
|
|
742
|
+
broken entrypoint
|
|
549
743
|
|
|
550
744
|
## 0.3.0
|
|
551
745
|
|
|
552
746
|
### Minor Changes
|
|
553
747
|
|
|
554
|
-
-
|
|
748
|
+
- [#1868](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/1868)
|
|
749
|
+
[`332a418dd1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/332a418dd1) - Adds the
|
|
750
|
+
concept of presets to act as a library of codemods relevant to an entire library or repo rather
|
|
751
|
+
than specific component codemods. Also introduces the styled-to-emotion codemod
|
|
555
752
|
|
|
556
753
|
## 0.2.0
|
|
557
754
|
|
|
558
755
|
### Minor Changes
|
|
559
756
|
|
|
560
|
-
-
|
|
757
|
+
- [minor][63787f3327](https://bitbucket.org/atlassian/atlassian-frontend/commits/63787f3327):
|
|
561
758
|
|
|
562
|
-
|
|
759
|
+
Initial implementation of the Codemod-cli
|
|
563
760
|
|
|
564
761
|
### Patch Changes
|
|
565
762
|
|
|
566
|
-
-
|
|
567
|
-
|
|
763
|
+
- Updated dependencies
|
|
764
|
+
[168b5f90e5](https://bitbucket.org/atlassian/atlassian-frontend/commits/168b5f90e5):
|
|
765
|
+
- @atlaskit/docs@8.5.1
|
package/dist/cjs/main.js
CHANGED
|
@@ -305,7 +305,7 @@ function _main() {
|
|
|
305
305
|
case 4:
|
|
306
306
|
_yield$parseArgs = _context5.sent;
|
|
307
307
|
packages = _yield$parseArgs.packages;
|
|
308
|
-
_process$env$_PACKAGE = "0.
|
|
308
|
+
_process$env$_PACKAGE = "0.23.1", _PACKAGE_VERSION_ = _process$env$_PACKAGE === void 0 ? '0.0.0-dev' : _process$env$_PACKAGE;
|
|
309
309
|
logger.log(_chalk.default.bgBlue(_chalk.default.black("\uD83D\uDCDA Atlassian-Frontend codemod library @ ".concat(_PACKAGE_VERSION_, " \uD83D\uDCDA"))));
|
|
310
310
|
if (packages && packages.length > 0) {
|
|
311
311
|
logger.log(_chalk.default.gray("Searching for codemods for newer versions of the following packages: ".concat(packages.map(function (pkg) {
|
package/dist/cjs/presets/migrate-to-new-buttons/codemods/next-migrate-to-new-button-variants.js
CHANGED
|
@@ -110,9 +110,18 @@ var transformer = function transformer(file, api) {
|
|
|
110
110
|
|
|
111
111
|
// Loading buttons map back to default imports
|
|
112
112
|
if (specifierIdentifier === loadingButtonImportName) {
|
|
113
|
+
fileSource
|
|
114
|
+
// rename LoadingButton to Button in all call expressions i.e. render(LoadingButton), find(LoadingButton)
|
|
115
|
+
.find(j.CallExpression).find(j.Identifier).forEach(function (path) {
|
|
116
|
+
if (path.node.name === loadingButtonImportName) {
|
|
117
|
+
path.node.name = _constants.NEW_BUTTON_VARIANTS.default;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
113
120
|
specifiers.push(j.importDefaultSpecifier(j.identifier(_constants.NEW_BUTTON_VARIANTS.default)));
|
|
114
121
|
}
|
|
115
|
-
if (
|
|
122
|
+
if (!specifiers.find(function (specifier) {
|
|
123
|
+
return specifier.type === 'ImportDefaultSpecifier';
|
|
124
|
+
}) && remainingDefaultButtons) {
|
|
116
125
|
specifiers.push(j.importDefaultSpecifier(j.identifier(_constants.NEW_BUTTON_VARIANTS.default)));
|
|
117
126
|
}
|
|
118
127
|
|
package/dist/es2019/presets/migrate-to-new-buttons/codemods/next-migrate-to-new-button-variants.js
CHANGED
|
@@ -88,9 +88,16 @@ const transformer = (file, api) => {
|
|
|
88
88
|
|
|
89
89
|
// Loading buttons map back to default imports
|
|
90
90
|
if (specifierIdentifier === loadingButtonImportName) {
|
|
91
|
+
fileSource
|
|
92
|
+
// rename LoadingButton to Button in all call expressions i.e. render(LoadingButton), find(LoadingButton)
|
|
93
|
+
.find(j.CallExpression).find(j.Identifier).forEach(path => {
|
|
94
|
+
if (path.node.name === loadingButtonImportName) {
|
|
95
|
+
path.node.name = NEW_BUTTON_VARIANTS.default;
|
|
96
|
+
}
|
|
97
|
+
});
|
|
91
98
|
specifiers.push(j.importDefaultSpecifier(j.identifier(NEW_BUTTON_VARIANTS.default)));
|
|
92
99
|
}
|
|
93
|
-
if (remainingDefaultButtons) {
|
|
100
|
+
if (!specifiers.find(specifier => specifier.type === 'ImportDefaultSpecifier') && remainingDefaultButtons) {
|
|
94
101
|
specifiers.push(j.importDefaultSpecifier(j.identifier(NEW_BUTTON_VARIANTS.default)));
|
|
95
102
|
}
|
|
96
103
|
|
package/dist/esm/main.js
CHANGED
|
@@ -298,7 +298,7 @@ function _main() {
|
|
|
298
298
|
case 4:
|
|
299
299
|
_yield$parseArgs = _context5.sent;
|
|
300
300
|
packages = _yield$parseArgs.packages;
|
|
301
|
-
_process$env$_PACKAGE = "0.
|
|
301
|
+
_process$env$_PACKAGE = "0.23.1", _PACKAGE_VERSION_ = _process$env$_PACKAGE === void 0 ? '0.0.0-dev' : _process$env$_PACKAGE;
|
|
302
302
|
logger.log(chalk.bgBlue(chalk.black("\uD83D\uDCDA Atlassian-Frontend codemod library @ ".concat(_PACKAGE_VERSION_, " \uD83D\uDCDA"))));
|
|
303
303
|
if (packages && packages.length > 0) {
|
|
304
304
|
logger.log(chalk.gray("Searching for codemods for newer versions of the following packages: ".concat(packages.map(function (pkg) {
|
package/dist/esm/presets/migrate-to-new-buttons/codemods/next-migrate-to-new-button-variants.js
CHANGED
|
@@ -104,9 +104,18 @@ var transformer = function transformer(file, api) {
|
|
|
104
104
|
|
|
105
105
|
// Loading buttons map back to default imports
|
|
106
106
|
if (specifierIdentifier === loadingButtonImportName) {
|
|
107
|
+
fileSource
|
|
108
|
+
// rename LoadingButton to Button in all call expressions i.e. render(LoadingButton), find(LoadingButton)
|
|
109
|
+
.find(j.CallExpression).find(j.Identifier).forEach(function (path) {
|
|
110
|
+
if (path.node.name === loadingButtonImportName) {
|
|
111
|
+
path.node.name = NEW_BUTTON_VARIANTS.default;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
107
114
|
specifiers.push(j.importDefaultSpecifier(j.identifier(NEW_BUTTON_VARIANTS.default)));
|
|
108
115
|
}
|
|
109
|
-
if (
|
|
116
|
+
if (!specifiers.find(function (specifier) {
|
|
117
|
+
return specifier.type === 'ImportDefaultSpecifier';
|
|
118
|
+
}) && remainingDefaultButtons) {
|
|
110
119
|
specifiers.push(j.importDefaultSpecifier(j.identifier(NEW_BUTTON_VARIANTS.default)));
|
|
111
120
|
}
|
|
112
121
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/codemod-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.1",
|
|
4
4
|
"description": "A cli for distributing codemods for atlassian-frontend components and services",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"bin": "./bin/codemod-cli.js",
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
43
|
-
"@atlaskit/tokens": "^1.
|
|
43
|
+
"@atlaskit/tokens": "^1.45.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
45
45
|
"@codeshift/utils": "^0.2.4",
|
|
46
46
|
"@hypermod/utils": "^0.4.2",
|
|
@@ -55,8 +55,9 @@
|
|
|
55
55
|
"simple-git": "^3.16.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
+
"@af/formatting": "*",
|
|
58
59
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
59
|
-
"prettier": "^2.
|
|
60
|
+
"prettier": "^3.2.5",
|
|
60
61
|
"ts-node": "^10.9.1",
|
|
61
62
|
"typescript": "~5.4.2"
|
|
62
63
|
},
|