putout 29.1.0 → 29.1.2

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 CHANGED
@@ -1,3 +1,16 @@
1
+ 2023.03.11, v29.1.2
2
+
3
+ feature:
4
+ - a660083be @putout/plugin-for-of: add
5
+
6
+ 2023.03.11, v29.1.1
7
+
8
+ fix:
9
+ - f261f1541 @putout/plugin-maybe: package: link
10
+
11
+ feature:
12
+ - 94706eee5 @putout/plugin-conditions: add
13
+
1
14
  2023.03.11, v29.1.0
2
15
 
3
16
  feature:
package/README.md CHANGED
@@ -58,7 +58,7 @@ module.exports.replace = () => ({
58
58
  - ❌ [**Prettier**](https://github.com/prettier/prettier) is a formatter.
59
59
  - ❌ [**jscodeshift**](https://github.com/facebook/jscodeshift) has no `config` and `plugins` support.
60
60
 
61
- ☝️ *🐊**Putout** on the other hand can make more drastic code transformations that directly affect your codebase making it a better place to code 💻.*
61
+ ☝️ *🐊**Putout** on the other hand can make more drastic code transformations that directly affects your codebase making it a better place to code 💻.*
62
62
 
63
63
  [It can](https://github.com/coderaiser/putout#-built-in-transformations):
64
64
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "29.1.0",
3
+ "version": "29.1.2",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊 Pluggable and configurable code transformer with built-in ESLint, Babel and support of js, jsx, typescript, flow, markdown, yaml and json",
@@ -71,34 +71,26 @@
71
71
  "@putout/operator-declare": "^5.0.0",
72
72
  "@putout/operator-regexp": "^1.0.0",
73
73
  "@putout/plugin-apply-at": "^1.0.0",
74
- "@putout/plugin-apply-comparison-order": "^1.0.0",
75
74
  "@putout/plugin-apply-destructuring": "^6.0.0",
76
75
  "@putout/plugin-apply-early-return": "^2.0.0",
77
76
  "@putout/plugin-apply-flat-map": "^2.0.0",
78
- "@putout/plugin-apply-if-condition": "^1.0.0",
79
77
  "@putout/plugin-apply-optional-chaining": "^2.0.0",
80
78
  "@putout/plugin-apply-template-literals": "^1.0.0",
81
79
  "@putout/plugin-browserlist": "^1.0.0",
80
+ "@putout/plugin-conditions": "^1.0.0",
82
81
  "@putout/plugin-convert-apply-to-spread": "^3.0.0",
83
82
  "@putout/plugin-convert-arguments-to-rest": "^1.0.0",
84
83
  "@putout/plugin-convert-array-copy-to-slice": "^2.0.0",
85
84
  "@putout/plugin-convert-assignment-to-arrow-function": "^1.0.0",
86
85
  "@putout/plugin-convert-assignment-to-comparison": "^1.0.0",
87
86
  "@putout/plugin-convert-commonjs-to-esm": "^9.0.0",
88
- "@putout/plugin-convert-comparison-to-boolean": "^3.0.0",
89
87
  "@putout/plugin-convert-concat-to-flat": "^1.0.0",
90
88
  "@putout/plugin-convert-const-to-let": "^1.0.0",
91
- "@putout/plugin-convert-equal-to-strict-equal": "^1.0.0",
92
89
  "@putout/plugin-convert-esm-to-commonjs": "^5.0.0",
93
- "@putout/plugin-convert-for-each-to-for-of": "^8.0.0",
94
- "@putout/plugin-convert-for-in-to-for-of": "^2.0.0",
95
- "@putout/plugin-convert-for-to-for-of": "^4.0.0",
96
90
  "@putout/plugin-convert-index-of-to-includes": "^1.0.0",
97
- "@putout/plugin-convert-map-to-for-of": "^2.0.0",
98
91
  "@putout/plugin-convert-mock-require-to-mock-import": "^4.0.0",
99
92
  "@putout/plugin-convert-object-assign-to-merge-spread": "^6.0.0",
100
93
  "@putout/plugin-convert-quotes-to-backticks": "^2.0.0",
101
- "@putout/plugin-convert-reduce-to-for-of": "^1.0.0",
102
94
  "@putout/plugin-convert-template-to-string": "^1.0.0",
103
95
  "@putout/plugin-convert-to-arrow-function": "^3.0.0",
104
96
  "@putout/plugin-declare": "^1.0.1",
@@ -107,6 +99,7 @@
107
99
  "@putout/plugin-eslint": "^4.2.0",
108
100
  "@putout/plugin-extract-object-properties": "^8.0.0",
109
101
  "@putout/plugin-extract-sequence-expressions": "^3.0.0",
102
+ "@putout/plugin-for-of": "^1.0.0",
110
103
  "@putout/plugin-github": "^4.0.0",
111
104
  "@putout/plugin-gitignore": "^3.0.0",
112
105
  "@putout/plugin-logical-expressions": "^1.0.0",
@@ -126,7 +119,6 @@
126
119
  "@putout/plugin-putout": "^12.0.0",
127
120
  "@putout/plugin-putout-config": "^2.0.0",
128
121
  "@putout/plugin-regexp": "^6.0.0",
129
- "@putout/plugin-remove-boolean-from-assertions": "^1.0.0",
130
122
  "@putout/plugin-remove-console": "^5.0.0",
131
123
  "@putout/plugin-remove-constant-conditions": "^4.0.0",
132
124
  "@putout/plugin-remove-debugger": "^5.0.0",
@@ -146,12 +138,10 @@
146
138
  "@putout/plugin-remove-useless-array-entries": "^1.0.0",
147
139
  "@putout/plugin-remove-useless-array-from": "^2.0.0",
148
140
  "@putout/plugin-remove-useless-assign": "^1.0.0",
149
- "@putout/plugin-remove-useless-conditions": "^3.0.0",
150
141
  "@putout/plugin-remove-useless-constructor": "^1.0.0",
151
142
  "@putout/plugin-remove-useless-continue": "^2.0.0",
152
143
  "@putout/plugin-remove-useless-else": "^1.0.0",
153
144
  "@putout/plugin-remove-useless-escape": "^3.0.0",
154
- "@putout/plugin-remove-useless-for-of": "^2.0.0",
155
145
  "@putout/plugin-remove-useless-functions": "^2.0.0",
156
146
  "@putout/plugin-remove-useless-map": "^1.0.0",
157
147
  "@putout/plugin-remove-useless-operand": "^2.0.0",
package/putout.json CHANGED
@@ -31,15 +31,15 @@
31
31
  "*.md": {
32
32
  "maybe": "off",
33
33
  "convert-quotes-to-backticks": "off",
34
- "convert-comparison-to-boolean": "off",
34
+ "conditions/convert-comparison-to-boolean": "off",
35
35
  "remove-unused-expressions": "off",
36
36
  "remove-unused-variables": "off",
37
37
  "remove-useless-escape": "off",
38
38
  "remove-useless-variables": "off",
39
39
  "remove-useless-return": "off",
40
40
  "remove-empty": "off",
41
- "remove-unused-for-of-variables": "off",
42
- "remove-constant-conditions": "off",
41
+ "for-of/remove-unused-variables": "off",
42
+ "conditions/remove-constant": "off",
43
43
  "remove-console": "off",
44
44
  "remove-unreachable-code": "off",
45
45
  "declare": "off",
@@ -143,8 +143,6 @@
143
143
  "apply-flat-map",
144
144
  "apply-destructuring",
145
145
  "apply-optional-chaining",
146
- "apply-if-condition",
147
- "apply-comparison-order",
148
146
  "apply-template-literals",
149
147
  "extract-object-properties",
150
148
  "extract-sequence-expressions",
@@ -159,7 +157,6 @@
159
157
  "remove-empty",
160
158
  "remove-unreferenced-variables",
161
159
  "remove-unused-variables",
162
- "remove-unused-for-of-variables",
163
160
  "remove-unused-private-fields",
164
161
  "remove-unused-expressions",
165
162
  "remove-useless-assign",
@@ -171,7 +168,6 @@
171
168
  "remove-useless-array-constructor",
172
169
  "remove-useless-continue",
173
170
  "remove-useless-operand",
174
- "remove-useless-conditions",
175
171
  "remove-useless-array-from",
176
172
  "remove-useless-arguments",
177
173
  "remove-useless-escape",
@@ -179,10 +175,7 @@
179
175
  "remove-useless-return",
180
176
  "remove-useless-functions",
181
177
  "remove-useless-template-expressions",
182
- "remove-useless-for-of",
183
178
  "remove-useless-array-entries",
184
- "remove-constant-conditions",
185
- "remove-boolean-from-assertions",
186
179
  "remove-duplicate-case",
187
180
  "remove-nested-blocks",
188
181
  "remove-unreachable-code",
@@ -199,16 +192,9 @@
199
192
  "convert-concat-to-flat",
200
193
  "convert-arguments-to-rest",
201
194
  "convert-object-assign-to-merge-spread",
202
- "convert-comparison-to-boolean",
203
195
  "convert-to-arrow-function",
204
- "convert-for-to-for-of",
205
- "convert-for-each-to-for-of",
206
- "convert-for-in-to-for-of",
207
- "convert-map-to-for-of",
208
- "convert-reduce-to-for-of",
209
196
  "convert-array-copy-to-slice",
210
197
  "convert-template-to-string",
211
- "convert-equal-to-strict-equal",
212
198
  "convert-index-of-to-includes",
213
199
  "convert-mock-require-to-mock-import",
214
200
  "convert-assignment-to-arrow-function",
@@ -238,7 +224,9 @@
238
224
  "montag",
239
225
  "new",
240
226
  "logical-expressions",
241
- "types"
227
+ "types",
228
+ "conditions",
229
+ "for-of"
242
230
  ]
243
231
  }
244
232