putout 23.0.0 → 23.1.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,20 @@
1
+ 2021.12.23, v23.1.0
2
+
3
+ fix:
4
+ - (@putout/plugin-convert-for-to-for-of) entries: count i references (should be more then 3)
5
+
6
+ feature:
7
+ - (@putout/plugin-remove-useless-array-entries) add
8
+ - (@putout/plugin-convert-for-to-for-of) length: add support of destructuring
9
+ - (@putout/plugin-convert-for-to-for-of) entries: add support of destructuring
10
+ - (@putout/plugin-convert-for-to-for-of) add support of entries with declared n
11
+ - (@putout/plugin-convert-for-to-for-of) add support of entries
12
+ - (eslint-plugin-putout) no-unresolved: add support of export declarations
13
+ - (@putout/plugin-remove-useless-escape) set RegExp raw
14
+ - (@putout/plugin-remove-useless-escape) improve support of handling "," in RegExp
15
+ - (@putout/plugin-regexp) remove-useless-group: add support of Alternative
16
+
17
+
1
18
  2021.12.21, v23.0.0
2
19
 
3
20
  feature:
@@ -8,9 +25,9 @@ feature:
8
25
  - (putout) drop jscodeshift support
9
26
  - (@putout/engine-loader) drop support of jscodeshift
10
27
  - (putout) apply @putout/recast v1.5.1 modifications
11
- - (eslint-plugin-putout) putout: add ability parse error instead of throw
28
+ - (eslint-plugin-putout) putout: add ability parse error instead of throw
12
29
  - (eslint-plugin-putout) ts: add no-redeclare
13
- - (@putout/plugin-tape) add-await-to-re-import: add suport of nested blocks
30
+ - (@putout/plugin-tape) add-await-to-re-import: add support of nested blocks
14
31
 
15
32
 
16
33
  2021.12.20, v22.9.0
package/README.md CHANGED
@@ -36,6 +36,7 @@
36
36
  - remove useless `typeof`;
37
37
  - remove useless `template expressions`;
38
38
  - remove useless `for-of`;
39
+ - remove useless `array.entries()`;
39
40
  - remove `debugger` statement;
40
41
  - remove `iife`;
41
42
  - remove nested blocks;
package/lib/ignores.js CHANGED
@@ -17,10 +17,7 @@ module.exports = (dirOpt, resolvedName, options = {}) => {
17
17
  };
18
18
 
19
19
  function mergeIgnores(ignores) {
20
- const n = ignores.length;
21
-
22
- for (let i = 0; i < n; i++) {
23
- const str = ignores[i];
20
+ for (const [i, str] of ignores.entries()) {
24
21
  const positiveIndex = ignores.indexOf(positive(str));
25
22
 
26
23
  if (isNegative(str) && positiveIndex > i)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "23.0.0",
3
+ "version": "23.1.0",
4
4
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
5
5
  "description": "🐊 Pluggable and configurable code transformer with built-in eslint and babel plugins support of js, jsx typescript, flow files, markdown, yaml and json",
6
6
  "homepage": "http://github.com/coderaiser/putout",
@@ -143,6 +143,7 @@
143
143
  "@putout/plugin-remove-unused-variables": "*",
144
144
  "@putout/plugin-remove-useless-arguments": "^5.0.0",
145
145
  "@putout/plugin-remove-useless-array-constructor": "^1.0.0",
146
+ "@putout/plugin-remove-useless-array-entries": "^1.0.0",
146
147
  "@putout/plugin-remove-useless-array-from": "^2.0.0",
147
148
  "@putout/plugin-remove-useless-conditions": "^1.0.0",
148
149
  "@putout/plugin-remove-useless-constructor": "^1.0.0",
package/putout.json CHANGED
@@ -187,6 +187,7 @@
187
187
  "remove-useless-functions",
188
188
  "remove-useless-template-expressions",
189
189
  "remove-useless-for-of",
190
+ "remove-useless-array-entries",
190
191
  "remove-constant-conditions",
191
192
  "remove-boolean-from-assertions",
192
193
  "remove-boolean-from-logical-expressions",