@atlaskit/codemod-cli 0.14.0 → 0.15.0
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 +66 -53
- package/dist/cjs/main.js +3 -3
- package/dist/cjs/presets/css-to-design-tokens/css-to-design-tokens.js +52 -133
- package/dist/cjs/presets/css-to-design-tokens/lib/colors.js +49 -0
- package/dist/cjs/presets/css-to-design-tokens/lib/declaration.js +29 -0
- package/dist/cjs/presets/css-to-design-tokens/{utils → lib}/legacy-colors.js +13 -17
- package/dist/cjs/presets/css-to-design-tokens/lib/logger.js +18 -0
- package/dist/cjs/presets/css-to-design-tokens/lib/meta.js +157 -0
- package/dist/cjs/presets/css-to-design-tokens/lib/tokens.js +47 -0
- package/dist/cjs/presets/css-to-design-tokens/lib/value.js +80 -0
- package/dist/cjs/presets/index.js +1 -2
- package/dist/cjs/presets/styled-to-emotion/styled-to-emotion.js +1 -2
- package/dist/cjs/presets/theme-remove-deprecated-mixins/utils/replacements.js +2 -3
- package/dist/cjs/presets/theme-to-design-tokens/theme-to-design-tokens.js +2 -2
- package/dist/cjs/presets/theme-to-design-tokens/utils/color.js +4 -8
- package/dist/cjs/presets/theme-to-design-tokens/utils/css-utils.js +2 -2
- package/dist/cjs/presets/theme-to-design-tokens/utils/fuzzy-search.js +1 -2
- package/dist/cjs/presets/theme-to-design-tokens/utils/legacy-colors.js +4 -7
- package/dist/cjs/presets/theme-to-design-tokens/utils/named-colors.js +1 -2
- package/dist/cjs/presets/theme-to-design-tokens/utils/string-utils.js +1 -2
- package/dist/cjs/presets/theme-to-design-tokens/utils/tokens.js +3 -5
- package/dist/cjs/sinceRef.js +1 -2
- package/dist/cjs/transforms.js +6 -12
- package/dist/cjs/types.js +3 -5
- package/dist/cjs/utils.js +2 -3
- package/dist/es2019/presets/css-to-design-tokens/css-to-design-tokens.js +52 -116
- package/dist/es2019/presets/css-to-design-tokens/lib/colors.js +34 -0
- package/dist/es2019/presets/css-to-design-tokens/lib/declaration.js +17 -0
- package/dist/es2019/presets/css-to-design-tokens/{utils → lib}/legacy-colors.js +9 -10
- package/dist/es2019/presets/css-to-design-tokens/lib/logger.js +11 -0
- package/dist/es2019/presets/css-to-design-tokens/lib/meta.js +133 -0
- package/dist/es2019/presets/css-to-design-tokens/lib/tokens.js +24 -0
- package/dist/es2019/presets/css-to-design-tokens/lib/value.js +68 -0
- package/dist/es2019/presets/theme-to-design-tokens/utils/css-utils.js +2 -2
- package/dist/esm/main.js +3 -3
- package/dist/esm/presets/css-to-design-tokens/css-to-design-tokens.js +52 -132
- package/dist/esm/presets/css-to-design-tokens/lib/colors.js +38 -0
- package/dist/esm/presets/css-to-design-tokens/lib/declaration.js +19 -0
- package/dist/esm/presets/css-to-design-tokens/{utils → lib}/legacy-colors.js +9 -10
- package/dist/esm/presets/css-to-design-tokens/lib/logger.js +11 -0
- package/dist/esm/presets/css-to-design-tokens/lib/meta.js +146 -0
- package/dist/esm/presets/css-to-design-tokens/lib/tokens.js +40 -0
- package/dist/esm/presets/css-to-design-tokens/lib/value.js +73 -0
- package/dist/esm/presets/theme-to-design-tokens/theme-to-design-tokens.js +2 -2
- package/dist/esm/presets/theme-to-design-tokens/utils/css-utils.js +2 -2
- package/dist/types/main.d.ts +0 -1
- package/dist/types/presets/css-to-design-tokens/css-to-design-tokens.d.ts +0 -1
- package/dist/types/presets/css-to-design-tokens/lib/colors.d.ts +6 -0
- package/dist/types/presets/css-to-design-tokens/lib/declaration.d.ts +5 -0
- package/dist/types/presets/css-to-design-tokens/{utils → lib}/legacy-colors.d.ts +1 -1
- package/dist/types/presets/css-to-design-tokens/lib/logger.d.ts +4 -0
- package/dist/types/presets/css-to-design-tokens/lib/meta.d.ts +6 -0
- package/dist/types/presets/css-to-design-tokens/lib/tokens.d.ts +7 -0
- package/dist/types/presets/css-to-design-tokens/lib/value.d.ts +6 -0
- package/dist/types-ts4.5/main.d.ts +0 -1
- package/dist/types-ts4.5/presets/css-to-design-tokens/css-to-design-tokens.d.ts +0 -1
- package/dist/types-ts4.5/presets/css-to-design-tokens/lib/colors.d.ts +6 -0
- package/dist/types-ts4.5/presets/css-to-design-tokens/lib/declaration.d.ts +5 -0
- package/dist/types-ts4.5/presets/css-to-design-tokens/{utils → lib}/legacy-colors.d.ts +1 -1
- package/dist/types-ts4.5/presets/css-to-design-tokens/lib/logger.d.ts +4 -0
- package/dist/types-ts4.5/presets/css-to-design-tokens/lib/meta.d.ts +6 -0
- package/dist/types-ts4.5/presets/css-to-design-tokens/lib/tokens.d.ts +7 -0
- package/dist/types-ts4.5/presets/css-to-design-tokens/lib/value.d.ts +6 -0
- package/package.json +2 -2
- package/report.api.md +0 -2
- package/tmp/api-report-tmp.d.ts +0 -2
- package/dist/cjs/presets/css-to-design-tokens/utils/meta.js +0 -53
- package/dist/es2019/presets/css-to-design-tokens/utils/meta.js +0 -33
- package/dist/esm/presets/css-to-design-tokens/utils/meta.js +0 -46
- package/dist/types/presets/css-to-design-tokens/utils/meta.d.ts +0 -1
- package/dist/types-ts4.5/presets/css-to-design-tokens/utils/meta.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,64 +1,77 @@
|
|
|
1
1
|
# @atlaskit/codemod-cli
|
|
2
2
|
|
|
3
|
+
## 0.15.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#40270](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40270) [`27bbdfcb6ad`](https://bitbucket.org/atlassian/atlassian-frontend/commits/27bbdfcb6ad) - This update includes several improvements and fixes to the css-to-design-tokens preset:
|
|
8
|
+
|
|
9
|
+
- Resolved transformation errors.
|
|
10
|
+
- Added support for new color properties such as `border-color-left`.
|
|
11
|
+
- Omitted unrecognized functions, including `url`, and certain Less functions to prevent compile errors.
|
|
12
|
+
- Enhanced codemod to only substitute raw, named colors and known variables (like old Atlaskit colors), and to avoid substituting variables not related to colors.
|
|
13
|
+
- Introduced token filtering for more precise token identification.
|
|
14
|
+
- Added parsing for gradient functions and multiple colors.
|
|
15
|
+
|
|
3
16
|
## 0.14.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
6
19
|
|
|
7
|
-
- [`26d4e25c2b3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/26d4e25c2b3) - replace strings that contain only the color name; replace hard-coded colors in template literals that have CSS declarations; better color names for literals that have multiple expressions; replace full value of box-shadow in template literals
|
|
20
|
+
- [#39017](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39017) [`26d4e25c2b3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/26d4e25c2b3) - replace strings that contain only the color name; replace hard-coded colors in template literals that have CSS declarations; better color names for literals that have multiple expressions; replace full value of box-shadow in template literals
|
|
8
21
|
|
|
9
22
|
## 0.13.4
|
|
10
23
|
|
|
11
24
|
### Patch Changes
|
|
12
25
|
|
|
13
|
-
- [`9c4335f135d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9c4335f135d) - Updated README.md
|
|
26
|
+
- [#38813](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38813) [`9c4335f135d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9c4335f135d) - Updated README.md
|
|
14
27
|
|
|
15
28
|
## 0.13.3
|
|
16
29
|
|
|
17
30
|
### Patch Changes
|
|
18
31
|
|
|
19
|
-
- [`50cf866a219`](https://bitbucket.org/atlassian/atlassian-frontend/commits/50cf866a219) - bump semver
|
|
32
|
+
- [#35950](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35950) [`50cf866a219`](https://bitbucket.org/atlassian/atlassian-frontend/commits/50cf866a219) - bump semver
|
|
20
33
|
|
|
21
34
|
## 0.13.2
|
|
22
35
|
|
|
23
36
|
### Patch Changes
|
|
24
37
|
|
|
25
|
-
- [`07f0eb8e1f4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/07f0eb8e1f4) - Refactors `theme-to-design-tokens` to improve its accuracy
|
|
38
|
+
- [#32800](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32800) [`07f0eb8e1f4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/07f0eb8e1f4) - Refactors `theme-to-design-tokens` to improve its accuracy
|
|
26
39
|
|
|
27
40
|
## 0.13.1
|
|
28
41
|
|
|
29
42
|
### Patch Changes
|
|
30
43
|
|
|
31
|
-
- [`61cb5313358`](https://bitbucket.org/atlassian/atlassian-frontend/commits/61cb5313358) - Removing unused dependencies and dev dependencies
|
|
44
|
+
- [#34443](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34443) [`61cb5313358`](https://bitbucket.org/atlassian/atlassian-frontend/commits/61cb5313358) - Removing unused dependencies and dev dependencies
|
|
32
45
|
|
|
33
46
|
## 0.13.0
|
|
34
47
|
|
|
35
48
|
### Minor Changes
|
|
36
49
|
|
|
37
|
-
- [`c528571ef3d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c528571ef3d) - Introduces new codemod "theme-remove-deprecated-mixins" to automate the removal of deprecated color mixins
|
|
50
|
+
- [#34602](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34602) [`c528571ef3d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c528571ef3d) - Introduces new codemod "theme-remove-deprecated-mixins" to automate the removal of deprecated color mixins
|
|
38
51
|
|
|
39
52
|
## 0.12.3
|
|
40
53
|
|
|
41
54
|
### Patch Changes
|
|
42
55
|
|
|
43
|
-
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
56
|
+
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793) [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
44
57
|
|
|
45
58
|
## 0.12.2
|
|
46
59
|
|
|
47
60
|
### Patch Changes
|
|
48
61
|
|
|
49
|
-
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
62
|
+
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649) [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
50
63
|
|
|
51
64
|
## 0.12.1
|
|
52
65
|
|
|
53
66
|
### Patch Changes
|
|
54
67
|
|
|
55
|
-
- [`07020547a93`](https://bitbucket.org/atlassian/atlassian-frontend/commits/07020547a93) - Safe direct migraiton to design token API. This change is not visible for those who aren't using design tokens
|
|
68
|
+
- [#33377](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33377) [`07020547a93`](https://bitbucket.org/atlassian/atlassian-frontend/commits/07020547a93) - Safe direct migraiton to design token API. This change is not visible for those who aren't using design tokens
|
|
56
69
|
|
|
57
70
|
## 0.12.0
|
|
58
71
|
|
|
59
72
|
### Minor Changes
|
|
60
73
|
|
|
61
|
-
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
74
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
62
75
|
|
|
63
76
|
### Patch Changes
|
|
64
77
|
|
|
@@ -68,20 +81,20 @@
|
|
|
68
81
|
|
|
69
82
|
### Patch Changes
|
|
70
83
|
|
|
71
|
-
- [`cc84a1ed227`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cc84a1ed227) - Updates default behaviour of codemods when a suggested token cannot be found
|
|
84
|
+
- [#27634](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27634) [`cc84a1ed227`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cc84a1ed227) - Updates default behaviour of codemods when a suggested token cannot be found
|
|
72
85
|
- Updated dependencies
|
|
73
86
|
|
|
74
87
|
## 0.11.4
|
|
75
88
|
|
|
76
89
|
### Patch Changes
|
|
77
90
|
|
|
78
|
-
- [`708957d360f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/708957d360f) - Upgrade a dependency package simple-git
|
|
91
|
+
- [#29170](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/29170) [`708957d360f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/708957d360f) - Upgrade a dependency package simple-git
|
|
79
92
|
|
|
80
93
|
## 0.11.3
|
|
81
94
|
|
|
82
95
|
### Patch Changes
|
|
83
96
|
|
|
84
|
-
- [`b14dca751fa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b14dca751fa) - Exclude the chart tokens from the list of tokens that we pass into the codemod.
|
|
97
|
+
- [#27875](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27875) [`b14dca751fa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b14dca751fa) - Exclude the chart tokens from the list of tokens that we pass into the codemod.
|
|
85
98
|
|
|
86
99
|
## 0.11.2
|
|
87
100
|
|
|
@@ -99,13 +112,13 @@
|
|
|
99
112
|
|
|
100
113
|
### Minor Changes
|
|
101
114
|
|
|
102
|
-
- [`00ea8db4763`](https://bitbucket.org/atlassian/atlassian-frontend/commits/00ea8db4763) - Upgrading the simple-git version
|
|
115
|
+
- [#28150](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28150) [`00ea8db4763`](https://bitbucket.org/atlassian/atlassian-frontend/commits/00ea8db4763) - Upgrading the simple-git version
|
|
103
116
|
|
|
104
117
|
## 0.10.5
|
|
105
118
|
|
|
106
119
|
### Patch Changes
|
|
107
120
|
|
|
108
|
-
- [`7a958dda205`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7a958dda205) - Updates tokens codemods to only suggest active tokens
|
|
121
|
+
- [#27794](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27794) [`7a958dda205`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7a958dda205) - Updates tokens codemods to only suggest active tokens
|
|
109
122
|
|
|
110
123
|
## 0.10.4
|
|
111
124
|
|
|
@@ -117,25 +130,25 @@
|
|
|
117
130
|
|
|
118
131
|
### Patch Changes
|
|
119
132
|
|
|
120
|
-
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
133
|
+
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874) [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
121
134
|
|
|
122
135
|
## 0.10.2
|
|
123
136
|
|
|
124
137
|
### Patch Changes
|
|
125
138
|
|
|
126
|
-
- [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
139
|
+
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492) [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
127
140
|
|
|
128
141
|
## 0.10.1
|
|
129
142
|
|
|
130
143
|
### Patch Changes
|
|
131
144
|
|
|
132
|
-
- [`6ec444547a9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6ec444547a9) - Applies various fixes to the tokens post-css codemod. Box shadows and border properties are respected syntactically
|
|
145
|
+
- [#23137](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23137) [`6ec444547a9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6ec444547a9) - Applies various fixes to the tokens post-css codemod. Box shadows and border properties are respected syntactically
|
|
133
146
|
|
|
134
147
|
## 0.10.0
|
|
135
148
|
|
|
136
149
|
### Minor Changes
|
|
137
150
|
|
|
138
|
-
- [`54c548f34ca`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54c548f34ca) - Adds preset codemod for css-to-design-tokens. This codemod transforms css,scss,less color usage to design tokens.
|
|
151
|
+
- [#21570](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/21570) [`54c548f34ca`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54c548f34ca) - Adds preset codemod for css-to-design-tokens. This codemod transforms css,scss,less color usage to design tokens.
|
|
139
152
|
|
|
140
153
|
## 0.9.7
|
|
141
154
|
|
|
@@ -147,7 +160,7 @@
|
|
|
147
160
|
|
|
148
161
|
### Patch Changes
|
|
149
162
|
|
|
150
|
-
- [`a424e62b264`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a424e62b264) - Changes to support Node 16 Typescript definitions from `@types/node`.
|
|
163
|
+
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650) [`a424e62b264`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a424e62b264) - Changes to support Node 16 Typescript definitions from `@types/node`.
|
|
151
164
|
|
|
152
165
|
## 0.9.5
|
|
153
166
|
|
|
@@ -165,7 +178,7 @@
|
|
|
165
178
|
|
|
166
179
|
### Patch Changes
|
|
167
180
|
|
|
168
|
-
- [`1977986ea86`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1977986ea86) - Bumping dependencies via Renovate:
|
|
181
|
+
- [#20310](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20310) [`1977986ea86`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1977986ea86) - Bumping dependencies via Renovate:
|
|
169
182
|
|
|
170
183
|
- simple-git
|
|
171
184
|
|
|
@@ -173,7 +186,7 @@
|
|
|
173
186
|
|
|
174
187
|
### Patch Changes
|
|
175
188
|
|
|
176
|
-
- [`5c45b17200d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5c45b17200d) - Bumping dependencies via Renovate:
|
|
189
|
+
- [#19927](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19927) [`5c45b17200d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5c45b17200d) - Bumping dependencies via Renovate:
|
|
177
190
|
|
|
178
191
|
- simple-git
|
|
179
192
|
|
|
@@ -187,7 +200,7 @@
|
|
|
187
200
|
|
|
188
201
|
### Minor Changes
|
|
189
202
|
|
|
190
|
-
- [`2b8c48b26ab`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2b8c48b26ab) - Instrumented `@atlaskit/codemod-cli` with none interaction support
|
|
203
|
+
- [#19516](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19516) [`2b8c48b26ab`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2b8c48b26ab) - Instrumented `@atlaskit/codemod-cli` with none interaction support
|
|
191
204
|
|
|
192
205
|
New argument for the codemod-cli has been added to support preselect transform in command line.
|
|
193
206
|
|
|
@@ -195,7 +208,7 @@
|
|
|
195
208
|
|
|
196
209
|
### Patch Changes
|
|
197
210
|
|
|
198
|
-
- [`54a44d46e29`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54a44d46e29) - Renovate Bot upgraded simple-git from ^1.130.0 to 2.48.0
|
|
211
|
+
- [#18960](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/18960) [`54a44d46e29`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54a44d46e29) - Renovate Bot upgraded simple-git from ^1.130.0 to 2.48.0
|
|
199
212
|
|
|
200
213
|
## 0.8.6
|
|
201
214
|
|
|
@@ -207,13 +220,13 @@
|
|
|
207
220
|
|
|
208
221
|
### Patch Changes
|
|
209
222
|
|
|
210
|
-
- [`e4dd80187f5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e4dd80187f5) - Refactors theme-to-tokens codemod with new token names + simplifies logic
|
|
223
|
+
- [#18965](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/18965) [`e4dd80187f5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e4dd80187f5) - Refactors theme-to-tokens codemod with new token names + simplifies logic
|
|
211
224
|
|
|
212
225
|
## 0.8.4
|
|
213
226
|
|
|
214
227
|
### Patch Changes
|
|
215
228
|
|
|
216
|
-
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Adds a new codemod preset `theme-to-design-tokens` that helps migrate from atlaskit theme to atlaskit tokens.
|
|
229
|
+
- [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752) [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Adds a new codemod preset `theme-to-design-tokens` that helps migrate from atlaskit theme to atlaskit tokens.
|
|
217
230
|
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Theme preset is now picked up by the CLI.
|
|
218
231
|
- Updated dependencies
|
|
219
232
|
|
|
@@ -221,37 +234,37 @@
|
|
|
221
234
|
|
|
222
235
|
### Patch Changes
|
|
223
236
|
|
|
224
|
-
- [`f4d22b1c8af`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f4d22b1c8af) - Ignore directory filtering logic if filtering returns no paths
|
|
237
|
+
- [#17016](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/17016) [`f4d22b1c8af`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f4d22b1c8af) - Ignore directory filtering logic if filtering returns no paths
|
|
225
238
|
|
|
226
239
|
## 0.8.2
|
|
227
240
|
|
|
228
241
|
### Patch Changes
|
|
229
242
|
|
|
230
|
-
- [`650aa20f6fe`](https://bitbucket.org/atlassian/atlassian-frontend/commits/650aa20f6fe) - Upgrade meow dependency
|
|
243
|
+
- [#16649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16649) [`650aa20f6fe`](https://bitbucket.org/atlassian/atlassian-frontend/commits/650aa20f6fe) - Upgrade meow dependency
|
|
231
244
|
|
|
232
245
|
## 0.8.1
|
|
233
246
|
|
|
234
247
|
### Patch Changes
|
|
235
248
|
|
|
236
|
-
- [`982e2f3d3d2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/982e2f3d3d2) - Directory filtering now defaults to true
|
|
249
|
+
- [#16252](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16252) [`982e2f3d3d2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/982e2f3d3d2) - Directory filtering now defaults to true
|
|
237
250
|
|
|
238
251
|
## 0.8.0
|
|
239
252
|
|
|
240
253
|
### Minor Changes
|
|
241
254
|
|
|
242
|
-
- [`f3d46c395b4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f3d46c395b4) - Add path filtering to codemod-cli
|
|
255
|
+
- [#15374](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15374) [`f3d46c395b4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f3d46c395b4) - Add path filtering to codemod-cli
|
|
243
256
|
|
|
244
257
|
## 0.7.0
|
|
245
258
|
|
|
246
259
|
### Minor Changes
|
|
247
260
|
|
|
248
|
-
- [`d3a285fdc82`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3a285fdc82) - Add support for codemods authored as .tsx files
|
|
261
|
+
- [#13957](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13957) [`d3a285fdc82`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3a285fdc82) - Add support for codemods authored as .tsx files
|
|
249
262
|
|
|
250
263
|
## 0.6.7
|
|
251
264
|
|
|
252
265
|
### Patch Changes
|
|
253
266
|
|
|
254
|
-
- [`4a67fb592c8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4a67fb592c8) - Bump jscodeshift to 0.13.0.
|
|
267
|
+
- [#12535](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12535) [`4a67fb592c8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4a67fb592c8) - Bump jscodeshift to 0.13.0.
|
|
255
268
|
[Commit Changelog](https://github.com/facebook/jscodeshift/commit/2fd5e11f469427d474983b2d1c47be9408677591).
|
|
256
269
|
|
|
257
270
|
### Added
|
|
@@ -267,43 +280,43 @@
|
|
|
267
280
|
|
|
268
281
|
### Patch Changes
|
|
269
282
|
|
|
270
|
-
- [`d0ef46dee01`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d0ef46dee01) - Removes ts-node / cjs bundle switcher from main entrypoint of codemod-utils and updated codemod-cli scripts to support
|
|
283
|
+
- [#11911](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/11911) [`d0ef46dee01`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d0ef46dee01) - Removes ts-node / cjs bundle switcher from main entrypoint of codemod-utils and updated codemod-cli scripts to support
|
|
271
284
|
|
|
272
285
|
## 0.6.5
|
|
273
286
|
|
|
274
287
|
### Patch Changes
|
|
275
288
|
|
|
276
|
-
- [`fdbd74cdb32`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fdbd74cdb32) - Remove --no-babel flag when parser flow is used
|
|
289
|
+
- [#10735](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10735) [`fdbd74cdb32`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fdbd74cdb32) - Remove --no-babel flag when parser flow is used
|
|
277
290
|
|
|
278
291
|
## 0.6.4
|
|
279
292
|
|
|
280
293
|
### Patch Changes
|
|
281
294
|
|
|
282
|
-
- [`6a0b92d2af9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6a0b92d2af9) - MONO-103 Fixed bug were codemod-cli would erronously run
|
|
295
|
+
- [#10705](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10705) [`6a0b92d2af9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6a0b92d2af9) - MONO-103 Fixed bug were codemod-cli would erronously run
|
|
283
296
|
|
|
284
297
|
## 0.6.3
|
|
285
298
|
|
|
286
299
|
### Patch Changes
|
|
287
300
|
|
|
288
|
-
- [`30c279f85eb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/30c279f85eb) - Bump atlassian-forks-jscodeshift to "^0.12.2-atlassian-6".
|
|
301
|
+
- [#10392](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10392) [`30c279f85eb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/30c279f85eb) - Bump atlassian-forks-jscodeshift to "^0.12.2-atlassian-6".
|
|
289
302
|
|
|
290
303
|
## 0.6.2
|
|
291
304
|
|
|
292
305
|
### Patch Changes
|
|
293
306
|
|
|
294
|
-
- [`6c420d1698d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c420d1698d) - Fix application of --no-babel flag
|
|
307
|
+
- [#10060](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10060) [`6c420d1698d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c420d1698d) - Fix application of --no-babel flag
|
|
295
308
|
|
|
296
309
|
## 0.6.1
|
|
297
310
|
|
|
298
311
|
### Patch Changes
|
|
299
312
|
|
|
300
|
-
- [`13d9c023e8d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/13d9c023e8d) - Log the package version when running codemod cli
|
|
313
|
+
- [#10014](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10014) [`13d9c023e8d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/13d9c023e8d) - Log the package version when running codemod cli
|
|
301
314
|
|
|
302
315
|
## 0.6.0
|
|
303
316
|
|
|
304
317
|
### Minor Changes
|
|
305
318
|
|
|
306
|
-
- [`cdd78d4ff38`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cdd78d4ff38) - The codemod-cli can fail on error when the flag `--fail-on-error` is passed, it will return a 1 exit code when errors were found during execution of codemods
|
|
319
|
+
- [#9924](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9924) [`cdd78d4ff38`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cdd78d4ff38) - The codemod-cli can fail on error when the flag `--fail-on-error` is passed, it will return a 1 exit code when errors were found during execution of codemods
|
|
307
320
|
|
|
308
321
|
This flag `--fail-on-error` was added as part of this [PR](https://github.com/facebook/jscodeshift/pull/416) that forked `jscodeshift`.
|
|
309
322
|
|
|
@@ -315,26 +328,26 @@
|
|
|
315
328
|
|
|
316
329
|
### Patch Changes
|
|
317
330
|
|
|
318
|
-
- [`d72b572dfc2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d72b572dfc2) - bumped jscodeshift@^0.11.0
|
|
331
|
+
- [#9832](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9832) [`d72b572dfc2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d72b572dfc2) - bumped jscodeshift@^0.11.0
|
|
319
332
|
- [`d72b572dfc2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d72b572dfc2) - bumped @types/jscodeshift@^0.11.0
|
|
320
333
|
|
|
321
334
|
## 0.5.2
|
|
322
335
|
|
|
323
336
|
### Patch Changes
|
|
324
337
|
|
|
325
|
-
- [`cfd7c0b5bcc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cfd7c0b5bcc) - Update the logic to properly check for the env var FAIL_CODEMODS_ON_ERROR and add `--no-babel` when running js file.
|
|
338
|
+
- [#9482](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9482) [`cfd7c0b5bcc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cfd7c0b5bcc) - Update the logic to properly check for the env var FAIL_CODEMODS_ON_ERROR and add `--no-babel` when running js file.
|
|
326
339
|
|
|
327
340
|
## 0.5.1
|
|
328
341
|
|
|
329
342
|
### Patch Changes
|
|
330
343
|
|
|
331
|
-
- [`6afd79db199`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6afd79db199) - Bump dependency "meow" to version ^6.0.0
|
|
344
|
+
- [#9018](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9018) [`6afd79db199`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6afd79db199) - Bump dependency "meow" to version ^6.0.0
|
|
332
345
|
|
|
333
346
|
## 0.5.0
|
|
334
347
|
|
|
335
348
|
### Minor Changes
|
|
336
349
|
|
|
337
|
-
- [`a9e359236b4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a9e359236b4) - The codemod-cli can fail on error when the flag `--fail-on-error` is passed, it will return a 1 exit code when errors were found during execution of codemods
|
|
350
|
+
- [#8789](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/8789) [`a9e359236b4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a9e359236b4) - The codemod-cli can fail on error when the flag `--fail-on-error` is passed, it will return a 1 exit code when errors were found during execution of codemods
|
|
338
351
|
This flag `--fail-on-error` was added as part of this [PR](https://github.com/facebook/jscodeshift/pull/416) that forked `jscodeshift`.
|
|
339
352
|
In Atlassian Frontend, we are now using the fork of `jscodeshift`, [atlassian-forks-jscodeshift](https://www.npmjs.com/package/atlassian-forks-jscodeshift) till we get this change back to the library.
|
|
340
353
|
|
|
@@ -344,13 +357,13 @@
|
|
|
344
357
|
|
|
345
358
|
### Patch Changes
|
|
346
359
|
|
|
347
|
-
- [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
360
|
+
- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857) [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
348
361
|
|
|
349
362
|
## 0.4.3
|
|
350
363
|
|
|
351
364
|
### Patch Changes
|
|
352
365
|
|
|
353
|
-
- [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
|
|
366
|
+
- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497) [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
|
|
354
367
|
This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
|
|
355
368
|
Also add `typescript` to `devDependencies` to denote version that the package was built with.
|
|
356
369
|
|
|
@@ -358,7 +371,7 @@
|
|
|
358
371
|
|
|
359
372
|
### Patch Changes
|
|
360
373
|
|
|
361
|
-
- [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
374
|
+
- [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885) [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
362
375
|
|
|
363
376
|
Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
|
|
364
377
|
to prevent duplicates of tslib being bundled.
|
|
@@ -367,13 +380,13 @@
|
|
|
367
380
|
|
|
368
381
|
### Patch Changes
|
|
369
382
|
|
|
370
|
-
- [`88ceeac950`](https://bitbucket.org/atlassian/atlassian-frontend/commits/88ceeac950) - Fix CLI not working due to missing ts-node dependency
|
|
383
|
+
- [#3841](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3841) [`88ceeac950`](https://bitbucket.org/atlassian/atlassian-frontend/commits/88ceeac950) - Fix CLI not working due to missing ts-node dependency
|
|
371
384
|
|
|
372
385
|
## 0.4.0
|
|
373
386
|
|
|
374
387
|
### Minor Changes
|
|
375
388
|
|
|
376
|
-
- [`d9f34d27e8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d9f34d27e8) - Add --packages flag to automatically run codemods for specific packages
|
|
389
|
+
- [#3197](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3197) [`d9f34d27e8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d9f34d27e8) - Add --packages flag to automatically run codemods for specific packages
|
|
377
390
|
Add --sinceRef flag to automatically run codemods that have been upgraded since a certain git ref
|
|
378
391
|
Add support for running over multiple filepaths
|
|
379
392
|
Extend support to restricted scoped packages
|
|
@@ -388,31 +401,31 @@
|
|
|
388
401
|
|
|
389
402
|
### Patch Changes
|
|
390
403
|
|
|
391
|
-
- [`f664568219`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f664568219) - Codemods are now presented with their module name prepended to make it easier to see which codemod belongs to which packages
|
|
404
|
+
- [#3093](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3093) [`f664568219`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f664568219) - Codemods are now presented with their module name prepended to make it easier to see which codemod belongs to which packages
|
|
392
405
|
|
|
393
406
|
## 0.3.3
|
|
394
407
|
|
|
395
408
|
### Patch Changes
|
|
396
409
|
|
|
397
|
-
- [`4be3a868e1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4be3a868e1) - Ensure the library is running with the Node environment + adds ts-lib
|
|
410
|
+
- [#3062](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3062) [`4be3a868e1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4be3a868e1) - Ensure the library is running with the Node environment + adds ts-lib
|
|
398
411
|
|
|
399
412
|
## 0.3.2
|
|
400
413
|
|
|
401
414
|
### Patch Changes
|
|
402
415
|
|
|
403
|
-
- [`78dde805ef`](https://bitbucket.org/atlassian/atlassian-frontend/commits/78dde805ef) - Fixes an issue with loading presets in javascript
|
|
416
|
+
- [#3002](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3002) [`78dde805ef`](https://bitbucket.org/atlassian/atlassian-frontend/commits/78dde805ef) - Fixes an issue with loading presets in javascript
|
|
404
417
|
|
|
405
418
|
## 0.3.1
|
|
406
419
|
|
|
407
420
|
### Patch Changes
|
|
408
421
|
|
|
409
|
-
- [`b4e29ceda2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b4e29ceda2) - Fixed broken entrypoint
|
|
422
|
+
- [#2137](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2137) [`b4e29ceda2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b4e29ceda2) - Fixed broken entrypoint
|
|
410
423
|
|
|
411
424
|
## 0.3.0
|
|
412
425
|
|
|
413
426
|
### Minor Changes
|
|
414
427
|
|
|
415
|
-
- [`332a418dd1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/332a418dd1) - Adds the concept of presets to act as a library of codemods relevant to an entire library or repo rather than specific component codemods. Also introduces the styled-to-emotion codemod
|
|
428
|
+
- [#1868](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/1868) [`332a418dd1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/332a418dd1) - Adds the concept of presets to act as a library of codemods relevant to an entire library or repo rather than specific component codemods. Also introduces the styled-to-emotion codemod
|
|
416
429
|
|
|
417
430
|
## 0.2.0
|
|
418
431
|
|
package/dist/cjs/main.js
CHANGED
|
@@ -22,8 +22,8 @@ var _filepath = require("./filepath");
|
|
|
22
22
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
23
23
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
24
24
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
25
|
-
function ownKeys(
|
|
26
|
-
function _objectSpread(
|
|
25
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
26
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
27
27
|
var jscodeshift = require.resolve('.bin/jscodeshift');
|
|
28
28
|
var applyTransformMeta = function applyTransformMeta(transforms) {
|
|
29
29
|
return transforms.map(function (transform) {
|
|
@@ -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.15.0", _PACKAGE_VERSION_ = _process$env$_PACKAGE === void 0 ? '0.0.0-dev' : _process$env$_PACKAGE;
|
|
302
302
|
logger.log(_chalk.default.bgBlue(_chalk.default.black("\uD83D\uDCDA Atlassian-Frontend codemod library @ ".concat(_PACKAGE_VERSION_, " \uD83D\uDCDA"))));
|
|
303
303
|
if (packages && packages.length > 0) {
|
|
304
304
|
logger.log(_chalk.default.gray("Searching for codemods for newer versions of the following packages: ".concat(packages.map(function (pkg) {
|