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