putout 26.3.1 → 26.6.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,32 @@
1
+ 2022.05.21, v26.6.0
2
+
3
+ feature:
4
+ - (@putout/plugin-convert-sqrt-to-hypot) add
5
+ - (package) @putout/plugin-convert-math-pow v5.0.0
6
+ - (@putout/plugin-convert-math-pow) drop support of 🐊 < 26
7
+ - (@putout/plugin-convert-math-pow) add support of __a * __a
8
+ - (@putout/engine-runner) replace: speed up: prevent find up
9
+
10
+
11
+ 2022.05.20, v26.5.0
12
+
13
+ fix:
14
+ - (@putout/engine-parser) babel: plugins: rm useless options in recordAndTuple
15
+
16
+
17
+ feature:
18
+ - (@putout/plugin-remove-useless-replace) add
19
+ - (@putout/plugin-remove-unused-private-fields) add support of destructuring
20
+ - (@putout/engine-parser) babel: add ability to parse private destructuring (https://babeljs.io/blog/2022/05/19/7.18.0)
21
+
22
+
23
+ 2022.05.18, v26.4.0
24
+
25
+ feature:
26
+ - (@putout/plugin-tape) add apply-destructuring
27
+ - (@putout/plugin-remove-useless-assign) add
28
+
29
+
1
30
  2022.05.17, v26.3.1
2
31
 
3
32
  feature:
package/README.md CHANGED
@@ -69,6 +69,8 @@ module.exports.replace = () => ({
69
69
  - ✅ remove unused `private fields`;
70
70
  - ✅ remove unused `expressions`;
71
71
  - ✅ remove useless `variables`;
72
+ - ✅ remove useless `Object.assign()`;
73
+ - ✅ remove useless `replace()`;
72
74
  - ✅ remove useless `map`;
73
75
  - ✅ remove useless `mapped types`;
74
76
  - ✅ remove useless `mapping modifiers`;
@@ -127,6 +129,7 @@ module.exports.replace = () => ({
127
129
  - ✅ convert `forEach` to `for...of`;
128
130
  - ✅ convert `map` to `for...of`;
129
131
  - ✅ convert `reduce` to `for...of`;
132
+ - ✅ convert `Math.sqrt()` to `Math.hypot()`;
130
133
  - ✅ extract sequence expressions;
131
134
  - ✅ extract object properties;
132
135
  - ✅ add `return await`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "26.3.1",
3
+ "version": "26.6.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",
@@ -94,11 +94,12 @@
94
94
  "@putout/plugin-convert-for-to-for-of": "^4.0.0",
95
95
  "@putout/plugin-convert-index-of-to-includes": "^1.0.0",
96
96
  "@putout/plugin-convert-map-to-for-of": "^2.0.0",
97
- "@putout/plugin-convert-math-pow": "^4.0.0",
97
+ "@putout/plugin-convert-math-pow": "^5.0.0",
98
98
  "@putout/plugin-convert-mock-require-to-mock-import": "^3.0.0",
99
99
  "@putout/plugin-convert-object-assign-to-merge-spread": "^6.0.0",
100
100
  "@putout/plugin-convert-quotes-to-backticks": "^2.0.0",
101
101
  "@putout/plugin-convert-reduce-to-for-of": "^1.0.0",
102
+ "@putout/plugin-convert-sqrt-to-hypot": "^1.0.0",
102
103
  "@putout/plugin-convert-template-to-string": "^1.0.0",
103
104
  "@putout/plugin-convert-to-arrow-function": "^3.0.0",
104
105
  "@putout/plugin-convert-typeof-to-is-type": "^2.0.0",
@@ -143,6 +144,7 @@
143
144
  "@putout/plugin-remove-useless-array-constructor": "^1.0.0",
144
145
  "@putout/plugin-remove-useless-array-entries": "^1.0.0",
145
146
  "@putout/plugin-remove-useless-array-from": "^2.0.0",
147
+ "@putout/plugin-remove-useless-assign": "^1.0.0",
146
148
  "@putout/plugin-remove-useless-conditions": "^1.0.0",
147
149
  "@putout/plugin-remove-useless-constructor": "^1.0.0",
148
150
  "@putout/plugin-remove-useless-continue": "^1.0.0",
@@ -152,6 +154,7 @@
152
154
  "@putout/plugin-remove-useless-functions": "^2.0.0",
153
155
  "@putout/plugin-remove-useless-map": "^1.0.0",
154
156
  "@putout/plugin-remove-useless-operand": "^2.0.0",
157
+ "@putout/plugin-remove-useless-replace": "^1.0.1",
155
158
  "@putout/plugin-remove-useless-return": "^4.0.0",
156
159
  "@putout/plugin-remove-useless-spread": "^5.0.0",
157
160
  "@putout/plugin-remove-useless-template-expressions": "^1.0.0",
@@ -210,7 +213,6 @@
210
213
  ],
211
214
  "devDependencies": {
212
215
  "@babel/plugin-transform-react-jsx": "^7.14.5",
213
- "@cloudcmd/stub": "^3.0.0",
214
216
  "babel-plugin-transform-inline-consecutive-adds": "^0.5.0-alpha.9",
215
217
  "c8": "^7.5.0",
216
218
  "currify": "^4.0.0",
package/putout.json CHANGED
@@ -145,6 +145,8 @@
145
145
  "remove-unused-for-of-variables",
146
146
  "remove-unused-private-fields",
147
147
  "remove-unused-expressions",
148
+ "remove-useless-assign",
149
+ "remove-useless-replace",
148
150
  "remove-useless-variables",
149
151
  "remove-useless-else",
150
152
  "remove-useless-map",
@@ -202,6 +204,7 @@
202
204
  "convert-assignment-to-arrow-function",
203
205
  "convert-assignment-to-comparison",
204
206
  "convert-quotes-to-backticks",
207
+ "convert-sqrt-to-hypot",
205
208
  "merge-destructuring-properties",
206
209
  "merge-duplicate-imports",
207
210
  "merge-if-statements",