@atlaskit/codemod-cli 0.14.0 → 0.16.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 +72 -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 +3 -3
- package/dist/cjs/presets/migrate-to-new-buttons/codemods/next-migrate-to-new-button-variants.js +118 -0
- package/dist/cjs/presets/migrate-to-new-buttons/codemods/next-split-imports.js +58 -0
- package/dist/cjs/presets/migrate-to-new-buttons/migrate-to-new-buttons.js +45 -0
- package/dist/cjs/presets/migrate-to-new-buttons/utils/constants.js +35 -0
- 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/index.js +2 -1
- package/dist/es2019/presets/migrate-to-new-buttons/codemods/next-migrate-to-new-button-variants.js +86 -0
- package/dist/es2019/presets/migrate-to-new-buttons/codemods/next-split-imports.js +44 -0
- package/dist/es2019/presets/migrate-to-new-buttons/migrate-to-new-buttons.js +19 -0
- package/dist/es2019/presets/migrate-to-new-buttons/utils/constants.js +29 -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/index.js +2 -1
- package/dist/esm/presets/migrate-to-new-buttons/codemods/next-migrate-to-new-button-variants.js +112 -0
- package/dist/esm/presets/migrate-to-new-buttons/codemods/next-split-imports.js +52 -0
- package/dist/esm/presets/migrate-to-new-buttons/migrate-to-new-buttons.js +38 -0
- package/dist/esm/presets/migrate-to-new-buttons/utils/constants.js +29 -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/presets/index.d.ts +1 -0
- package/dist/types/presets/migrate-to-new-buttons/codemods/next-migrate-to-new-button-variants.d.ts +3 -0
- package/dist/types/presets/migrate-to-new-buttons/codemods/next-split-imports.d.ts +3 -0
- package/dist/types/presets/migrate-to-new-buttons/migrate-to-new-buttons.d.ts +2 -0
- package/dist/types/presets/migrate-to-new-buttons/utils/constants.d.ts +14 -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/dist/types-ts4.5/presets/index.d.ts +1 -0
- package/dist/types-ts4.5/presets/migrate-to-new-buttons/codemods/next-migrate-to-new-button-variants.d.ts +3 -0
- package/dist/types-ts4.5/presets/migrate-to-new-buttons/codemods/next-split-imports.d.ts +3 -0
- package/dist/types-ts4.5/presets/migrate-to-new-buttons/migrate-to-new-buttons.d.ts +2 -0
- package/dist/types-ts4.5/presets/migrate-to-new-buttons/utils/constants.d.ts +14 -0
- package/package.json +3 -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,83 @@
|
|
|
1
1
|
# @atlaskit/codemod-cli
|
|
2
2
|
|
|
3
|
+
## 0.16.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#41699](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41699) [`436fa9358ae`](https://bitbucket.org/atlassian/atlassian-frontend/commits/436fa9358ae) - Introduces new codemod “migrate-to-new-buttons” to automate the new button migration.
|
|
8
|
+
|
|
9
|
+
## 0.15.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#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:
|
|
14
|
+
|
|
15
|
+
- Resolved transformation errors.
|
|
16
|
+
- Added support for new color properties such as `border-color-left`.
|
|
17
|
+
- Omitted unrecognized functions, including `url`, and certain Less functions to prevent compile errors.
|
|
18
|
+
- Enhanced codemod to only substitute raw, named colors and known variables (like old Atlaskit colors), and to avoid substituting variables not related to colors.
|
|
19
|
+
- Introduced token filtering for more precise token identification.
|
|
20
|
+
- Added parsing for gradient functions and multiple colors.
|
|
21
|
+
|
|
3
22
|
## 0.14.0
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|
|
6
25
|
|
|
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
|
|
26
|
+
- [#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
27
|
|
|
9
28
|
## 0.13.4
|
|
10
29
|
|
|
11
30
|
### Patch Changes
|
|
12
31
|
|
|
13
|
-
- [`9c4335f135d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9c4335f135d) - Updated README.md
|
|
32
|
+
- [#38813](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38813) [`9c4335f135d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9c4335f135d) - Updated README.md
|
|
14
33
|
|
|
15
34
|
## 0.13.3
|
|
16
35
|
|
|
17
36
|
### Patch Changes
|
|
18
37
|
|
|
19
|
-
- [`50cf866a219`](https://bitbucket.org/atlassian/atlassian-frontend/commits/50cf866a219) - bump semver
|
|
38
|
+
- [#35950](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35950) [`50cf866a219`](https://bitbucket.org/atlassian/atlassian-frontend/commits/50cf866a219) - bump semver
|
|
20
39
|
|
|
21
40
|
## 0.13.2
|
|
22
41
|
|
|
23
42
|
### Patch Changes
|
|
24
43
|
|
|
25
|
-
- [`07f0eb8e1f4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/07f0eb8e1f4) - Refactors `theme-to-design-tokens` to improve its accuracy
|
|
44
|
+
- [#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
45
|
|
|
27
46
|
## 0.13.1
|
|
28
47
|
|
|
29
48
|
### Patch Changes
|
|
30
49
|
|
|
31
|
-
- [`61cb5313358`](https://bitbucket.org/atlassian/atlassian-frontend/commits/61cb5313358) - Removing unused dependencies and dev dependencies
|
|
50
|
+
- [#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
51
|
|
|
33
52
|
## 0.13.0
|
|
34
53
|
|
|
35
54
|
### Minor Changes
|
|
36
55
|
|
|
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
|
|
56
|
+
- [#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
57
|
|
|
39
58
|
## 0.12.3
|
|
40
59
|
|
|
41
60
|
### Patch Changes
|
|
42
61
|
|
|
43
|
-
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
62
|
+
- [#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
63
|
|
|
45
64
|
## 0.12.2
|
|
46
65
|
|
|
47
66
|
### Patch Changes
|
|
48
67
|
|
|
49
|
-
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
68
|
+
- [#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
69
|
|
|
51
70
|
## 0.12.1
|
|
52
71
|
|
|
53
72
|
### Patch Changes
|
|
54
73
|
|
|
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
|
|
74
|
+
- [#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
75
|
|
|
57
76
|
## 0.12.0
|
|
58
77
|
|
|
59
78
|
### Minor Changes
|
|
60
79
|
|
|
61
|
-
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
80
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
62
81
|
|
|
63
82
|
### Patch Changes
|
|
64
83
|
|
|
@@ -68,20 +87,20 @@
|
|
|
68
87
|
|
|
69
88
|
### Patch Changes
|
|
70
89
|
|
|
71
|
-
- [`cc84a1ed227`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cc84a1ed227) - Updates default behaviour of codemods when a suggested token cannot be found
|
|
90
|
+
- [#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
91
|
- Updated dependencies
|
|
73
92
|
|
|
74
93
|
## 0.11.4
|
|
75
94
|
|
|
76
95
|
### Patch Changes
|
|
77
96
|
|
|
78
|
-
- [`708957d360f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/708957d360f) - Upgrade a dependency package simple-git
|
|
97
|
+
- [#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
98
|
|
|
80
99
|
## 0.11.3
|
|
81
100
|
|
|
82
101
|
### Patch Changes
|
|
83
102
|
|
|
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.
|
|
103
|
+
- [#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
104
|
|
|
86
105
|
## 0.11.2
|
|
87
106
|
|
|
@@ -99,13 +118,13 @@
|
|
|
99
118
|
|
|
100
119
|
### Minor Changes
|
|
101
120
|
|
|
102
|
-
- [`00ea8db4763`](https://bitbucket.org/atlassian/atlassian-frontend/commits/00ea8db4763) - Upgrading the simple-git version
|
|
121
|
+
- [#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
122
|
|
|
104
123
|
## 0.10.5
|
|
105
124
|
|
|
106
125
|
### Patch Changes
|
|
107
126
|
|
|
108
|
-
- [`7a958dda205`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7a958dda205) - Updates tokens codemods to only suggest active tokens
|
|
127
|
+
- [#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
128
|
|
|
110
129
|
## 0.10.4
|
|
111
130
|
|
|
@@ -117,25 +136,25 @@
|
|
|
117
136
|
|
|
118
137
|
### Patch Changes
|
|
119
138
|
|
|
120
|
-
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
139
|
+
- [#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
140
|
|
|
122
141
|
## 0.10.2
|
|
123
142
|
|
|
124
143
|
### Patch Changes
|
|
125
144
|
|
|
126
|
-
- [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
145
|
+
- [#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
146
|
|
|
128
147
|
## 0.10.1
|
|
129
148
|
|
|
130
149
|
### Patch Changes
|
|
131
150
|
|
|
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
|
|
151
|
+
- [#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
152
|
|
|
134
153
|
## 0.10.0
|
|
135
154
|
|
|
136
155
|
### Minor Changes
|
|
137
156
|
|
|
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.
|
|
157
|
+
- [#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
158
|
|
|
140
159
|
## 0.9.7
|
|
141
160
|
|
|
@@ -147,7 +166,7 @@
|
|
|
147
166
|
|
|
148
167
|
### Patch Changes
|
|
149
168
|
|
|
150
|
-
- [`a424e62b264`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a424e62b264) - Changes to support Node 16 Typescript definitions from `@types/node`.
|
|
169
|
+
- [#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
170
|
|
|
152
171
|
## 0.9.5
|
|
153
172
|
|
|
@@ -165,7 +184,7 @@
|
|
|
165
184
|
|
|
166
185
|
### Patch Changes
|
|
167
186
|
|
|
168
|
-
- [`1977986ea86`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1977986ea86) - Bumping dependencies via Renovate:
|
|
187
|
+
- [#20310](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20310) [`1977986ea86`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1977986ea86) - Bumping dependencies via Renovate:
|
|
169
188
|
|
|
170
189
|
- simple-git
|
|
171
190
|
|
|
@@ -173,7 +192,7 @@
|
|
|
173
192
|
|
|
174
193
|
### Patch Changes
|
|
175
194
|
|
|
176
|
-
- [`5c45b17200d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5c45b17200d) - Bumping dependencies via Renovate:
|
|
195
|
+
- [#19927](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19927) [`5c45b17200d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5c45b17200d) - Bumping dependencies via Renovate:
|
|
177
196
|
|
|
178
197
|
- simple-git
|
|
179
198
|
|
|
@@ -187,7 +206,7 @@
|
|
|
187
206
|
|
|
188
207
|
### Minor Changes
|
|
189
208
|
|
|
190
|
-
- [`2b8c48b26ab`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2b8c48b26ab) - Instrumented `@atlaskit/codemod-cli` with none interaction support
|
|
209
|
+
- [#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
210
|
|
|
192
211
|
New argument for the codemod-cli has been added to support preselect transform in command line.
|
|
193
212
|
|
|
@@ -195,7 +214,7 @@
|
|
|
195
214
|
|
|
196
215
|
### Patch Changes
|
|
197
216
|
|
|
198
|
-
- [`54a44d46e29`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54a44d46e29) - Renovate Bot upgraded simple-git from ^1.130.0 to 2.48.0
|
|
217
|
+
- [#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
218
|
|
|
200
219
|
## 0.8.6
|
|
201
220
|
|
|
@@ -207,13 +226,13 @@
|
|
|
207
226
|
|
|
208
227
|
### Patch Changes
|
|
209
228
|
|
|
210
|
-
- [`e4dd80187f5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e4dd80187f5) - Refactors theme-to-tokens codemod with new token names + simplifies logic
|
|
229
|
+
- [#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
230
|
|
|
212
231
|
## 0.8.4
|
|
213
232
|
|
|
214
233
|
### Patch Changes
|
|
215
234
|
|
|
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.
|
|
235
|
+
- [#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
236
|
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Theme preset is now picked up by the CLI.
|
|
218
237
|
- Updated dependencies
|
|
219
238
|
|
|
@@ -221,37 +240,37 @@
|
|
|
221
240
|
|
|
222
241
|
### Patch Changes
|
|
223
242
|
|
|
224
|
-
- [`f4d22b1c8af`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f4d22b1c8af) - Ignore directory filtering logic if filtering returns no paths
|
|
243
|
+
- [#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
244
|
|
|
226
245
|
## 0.8.2
|
|
227
246
|
|
|
228
247
|
### Patch Changes
|
|
229
248
|
|
|
230
|
-
- [`650aa20f6fe`](https://bitbucket.org/atlassian/atlassian-frontend/commits/650aa20f6fe) - Upgrade meow dependency
|
|
249
|
+
- [#16649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16649) [`650aa20f6fe`](https://bitbucket.org/atlassian/atlassian-frontend/commits/650aa20f6fe) - Upgrade meow dependency
|
|
231
250
|
|
|
232
251
|
## 0.8.1
|
|
233
252
|
|
|
234
253
|
### Patch Changes
|
|
235
254
|
|
|
236
|
-
- [`982e2f3d3d2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/982e2f3d3d2) - Directory filtering now defaults to true
|
|
255
|
+
- [#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
256
|
|
|
238
257
|
## 0.8.0
|
|
239
258
|
|
|
240
259
|
### Minor Changes
|
|
241
260
|
|
|
242
|
-
- [`f3d46c395b4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f3d46c395b4) - Add path filtering to codemod-cli
|
|
261
|
+
- [#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
262
|
|
|
244
263
|
## 0.7.0
|
|
245
264
|
|
|
246
265
|
### Minor Changes
|
|
247
266
|
|
|
248
|
-
- [`d3a285fdc82`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3a285fdc82) - Add support for codemods authored as .tsx files
|
|
267
|
+
- [#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
268
|
|
|
250
269
|
## 0.6.7
|
|
251
270
|
|
|
252
271
|
### Patch Changes
|
|
253
272
|
|
|
254
|
-
- [`4a67fb592c8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4a67fb592c8) - Bump jscodeshift to 0.13.0.
|
|
273
|
+
- [#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
274
|
[Commit Changelog](https://github.com/facebook/jscodeshift/commit/2fd5e11f469427d474983b2d1c47be9408677591).
|
|
256
275
|
|
|
257
276
|
### Added
|
|
@@ -267,43 +286,43 @@
|
|
|
267
286
|
|
|
268
287
|
### Patch Changes
|
|
269
288
|
|
|
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
|
|
289
|
+
- [#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
290
|
|
|
272
291
|
## 0.6.5
|
|
273
292
|
|
|
274
293
|
### Patch Changes
|
|
275
294
|
|
|
276
|
-
- [`fdbd74cdb32`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fdbd74cdb32) - Remove --no-babel flag when parser flow is used
|
|
295
|
+
- [#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
296
|
|
|
278
297
|
## 0.6.4
|
|
279
298
|
|
|
280
299
|
### Patch Changes
|
|
281
300
|
|
|
282
|
-
- [`6a0b92d2af9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6a0b92d2af9) - MONO-103 Fixed bug were codemod-cli would erronously run
|
|
301
|
+
- [#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
302
|
|
|
284
303
|
## 0.6.3
|
|
285
304
|
|
|
286
305
|
### Patch Changes
|
|
287
306
|
|
|
288
|
-
- [`30c279f85eb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/30c279f85eb) - Bump atlassian-forks-jscodeshift to "^0.12.2-atlassian-6".
|
|
307
|
+
- [#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
308
|
|
|
290
309
|
## 0.6.2
|
|
291
310
|
|
|
292
311
|
### Patch Changes
|
|
293
312
|
|
|
294
|
-
- [`6c420d1698d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c420d1698d) - Fix application of --no-babel flag
|
|
313
|
+
- [#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
314
|
|
|
296
315
|
## 0.6.1
|
|
297
316
|
|
|
298
317
|
### Patch Changes
|
|
299
318
|
|
|
300
|
-
- [`13d9c023e8d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/13d9c023e8d) - Log the package version when running codemod cli
|
|
319
|
+
- [#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
320
|
|
|
302
321
|
## 0.6.0
|
|
303
322
|
|
|
304
323
|
### Minor Changes
|
|
305
324
|
|
|
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
|
|
325
|
+
- [#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
326
|
|
|
308
327
|
This flag `--fail-on-error` was added as part of this [PR](https://github.com/facebook/jscodeshift/pull/416) that forked `jscodeshift`.
|
|
309
328
|
|
|
@@ -315,26 +334,26 @@
|
|
|
315
334
|
|
|
316
335
|
### Patch Changes
|
|
317
336
|
|
|
318
|
-
- [`d72b572dfc2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d72b572dfc2) - bumped jscodeshift@^0.11.0
|
|
337
|
+
- [#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
338
|
- [`d72b572dfc2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d72b572dfc2) - bumped @types/jscodeshift@^0.11.0
|
|
320
339
|
|
|
321
340
|
## 0.5.2
|
|
322
341
|
|
|
323
342
|
### Patch Changes
|
|
324
343
|
|
|
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.
|
|
344
|
+
- [#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
345
|
|
|
327
346
|
## 0.5.1
|
|
328
347
|
|
|
329
348
|
### Patch Changes
|
|
330
349
|
|
|
331
|
-
- [`6afd79db199`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6afd79db199) - Bump dependency "meow" to version ^6.0.0
|
|
350
|
+
- [#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
351
|
|
|
333
352
|
## 0.5.0
|
|
334
353
|
|
|
335
354
|
### Minor Changes
|
|
336
355
|
|
|
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
|
|
356
|
+
- [#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
357
|
This flag `--fail-on-error` was added as part of this [PR](https://github.com/facebook/jscodeshift/pull/416) that forked `jscodeshift`.
|
|
339
358
|
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
359
|
|
|
@@ -344,13 +363,13 @@
|
|
|
344
363
|
|
|
345
364
|
### Patch Changes
|
|
346
365
|
|
|
347
|
-
- [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
366
|
+
- [#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
367
|
|
|
349
368
|
## 0.4.3
|
|
350
369
|
|
|
351
370
|
### Patch Changes
|
|
352
371
|
|
|
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.
|
|
372
|
+
- [#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
373
|
This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
|
|
355
374
|
Also add `typescript` to `devDependencies` to denote version that the package was built with.
|
|
356
375
|
|
|
@@ -358,7 +377,7 @@
|
|
|
358
377
|
|
|
359
378
|
### Patch Changes
|
|
360
379
|
|
|
361
|
-
- [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
380
|
+
- [#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
381
|
|
|
363
382
|
Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
|
|
364
383
|
to prevent duplicates of tslib being bundled.
|
|
@@ -367,13 +386,13 @@
|
|
|
367
386
|
|
|
368
387
|
### Patch Changes
|
|
369
388
|
|
|
370
|
-
- [`88ceeac950`](https://bitbucket.org/atlassian/atlassian-frontend/commits/88ceeac950) - Fix CLI not working due to missing ts-node dependency
|
|
389
|
+
- [#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
390
|
|
|
372
391
|
## 0.4.0
|
|
373
392
|
|
|
374
393
|
### Minor Changes
|
|
375
394
|
|
|
376
|
-
- [`d9f34d27e8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d9f34d27e8) - Add --packages flag to automatically run codemods for specific packages
|
|
395
|
+
- [#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
396
|
Add --sinceRef flag to automatically run codemods that have been upgraded since a certain git ref
|
|
378
397
|
Add support for running over multiple filepaths
|
|
379
398
|
Extend support to restricted scoped packages
|
|
@@ -388,31 +407,31 @@
|
|
|
388
407
|
|
|
389
408
|
### Patch Changes
|
|
390
409
|
|
|
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
|
|
410
|
+
- [#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
411
|
|
|
393
412
|
## 0.3.3
|
|
394
413
|
|
|
395
414
|
### Patch Changes
|
|
396
415
|
|
|
397
|
-
- [`4be3a868e1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4be3a868e1) - Ensure the library is running with the Node environment + adds ts-lib
|
|
416
|
+
- [#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
417
|
|
|
399
418
|
## 0.3.2
|
|
400
419
|
|
|
401
420
|
### Patch Changes
|
|
402
421
|
|
|
403
|
-
- [`78dde805ef`](https://bitbucket.org/atlassian/atlassian-frontend/commits/78dde805ef) - Fixes an issue with loading presets in javascript
|
|
422
|
+
- [#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
423
|
|
|
405
424
|
## 0.3.1
|
|
406
425
|
|
|
407
426
|
### Patch Changes
|
|
408
427
|
|
|
409
|
-
- [`b4e29ceda2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b4e29ceda2) - Fixed broken entrypoint
|
|
428
|
+
- [#2137](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2137) [`b4e29ceda2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b4e29ceda2) - Fixed broken entrypoint
|
|
410
429
|
|
|
411
430
|
## 0.3.0
|
|
412
431
|
|
|
413
432
|
### Minor Changes
|
|
414
433
|
|
|
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
|
|
434
|
+
- [#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
435
|
|
|
417
436
|
## 0.2.0
|
|
418
437
|
|
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.16.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) {
|