putout 25.16.0 → 25.17.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 CHANGED
@@ -1,3 +1,16 @@
1
+ 2022.05.01, v25.17.0
2
+
3
+ fix:
4
+ - (@putout/plugin-convert-map-to-for-of) report
5
+
6
+
7
+ feature:
8
+ - (@putout/plugin-convert-reduce-to-for-of) add
9
+ - (package) @putout/plugin-remove-useless-operand v2.0.0
10
+ - (@putout/plugin-remove-useless-operand) drop support of Putout < 25
11
+ - (@putout/plugin-remove-useless-operand) add support of right duplicates
12
+
13
+
1
14
  2022.04.29, v25.16.0
2
15
 
3
16
  fix:
package/README.md CHANGED
@@ -124,8 +124,9 @@ module.exports.replace = () => ({
124
124
  - ✅ convert `indexOf` to `includes`;
125
125
  - ✅ convert `replace` to `replaceAll`;
126
126
  - ✅ convert `assignment` to `arrow function`;
127
- - ✅ convert `forEach` to `for-of`;
128
- - ✅ convert `map` to `for-of`;
127
+ - ✅ convert `forEach` to `for...of`;
128
+ - ✅ convert `map` to `for...of`;
129
+ - ✅ convert `reduce` to `for...of`;
129
130
  - ✅ extract sequence expressions;
130
131
  - ✅ extract object properties;
131
132
  - ✅ add `return await`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "25.16.0",
3
+ "version": "25.17.0",
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 and babel plugins support of js, jsx typescript, flow files, markdown, yaml and json",
@@ -98,6 +98,7 @@
98
98
  "@putout/plugin-convert-mock-require-to-mock-import": "^3.0.0",
99
99
  "@putout/plugin-convert-object-assign-to-merge-spread": "^5.0.0",
100
100
  "@putout/plugin-convert-quotes-to-backticks": "^2.0.0",
101
+ "@putout/plugin-convert-reduce-to-for-of": "^1.0.0",
101
102
  "@putout/plugin-convert-template-to-string": "^1.0.0",
102
103
  "@putout/plugin-convert-to-arrow-function": "^3.0.0",
103
104
  "@putout/plugin-convert-typeof-to-is-type": "^2.0.0",
@@ -150,7 +151,7 @@
150
151
  "@putout/plugin-remove-useless-functions": "^2.0.0",
151
152
  "@putout/plugin-remove-useless-map": "^1.0.0",
152
153
  "@putout/plugin-remove-useless-new": "^2.0.0",
153
- "@putout/plugin-remove-useless-operand": "^1.0.0",
154
+ "@putout/plugin-remove-useless-operand": "^2.0.0",
154
155
  "@putout/plugin-remove-useless-return": "^4.0.0",
155
156
  "@putout/plugin-remove-useless-spread": "^5.0.0",
156
157
  "@putout/plugin-remove-useless-template-expressions": "^1.0.0",
package/putout.json CHANGED
@@ -192,6 +192,7 @@
192
192
  "convert-for-each-to-for-of",
193
193
  "convert-for-in-to-for-of",
194
194
  "convert-map-to-for-of",
195
+ "convert-reduce-to-for-of",
195
196
  "convert-typeof-to-is-type",
196
197
  "convert-array-copy-to-slice",
197
198
  "convert-template-to-string",