putout 24.1.0 → 24.3.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,107 @@
1
+ 2022.01.24, v24.3.0
2
+
3
+ feature:
4
+ - (putout) eslint: add ability to enable putout/putout rule with a flag
5
+ - (putout/eslint) add ability to enable putout
6
+
7
+
8
+ 2022.01.24, v24.2.2
9
+
10
+ fix:
11
+ - (@putout/plugin-declare-undefined-variables) node-js: exclude "promises" as it is to general
12
+ - (@putout/engine-runner) avoid duplication of plugins
13
+
14
+ feature:
15
+ - (package) @putout/plugin-convert-esm-to-commonjs v4.0.0
16
+ - (@putout/plugin-convert-esm-to-commonjs) drop support of putout < 24
17
+ - (@putout/plugin-convert-esm-to-commonjs) Commonjs -> CommonJS
18
+ - (@putout/engine-runner) add ability to debug with "putout:runner:replace"
19
+
20
+
21
+ 2022.01.21, v24.2.1
22
+
23
+ fix:
24
+ - (@putout/test) avoid updating noTransform files
25
+
26
+ feature:
27
+ - (package) @putout/plugin-remove-useless-variables v6.0.0
28
+ - (@putout/plugin-remove-useless-variables) drop support of putout < 24
29
+ - (package) @putout/plugin-remove-unused-for-of-variables v2.0.0
30
+ - (package) @putout/plugin-convert-for-to-for-of v3.0.0
31
+ - (package) @putout/plugin-tape v8.0.0
32
+ - (@putout/plugin-tape) drop support of putout < 24
33
+ - (@putout/plugin-convert-for-to-for-of) drop support of putout < 24
34
+ - (package) @putout/operator-add-args v2.0.0
35
+ - (@putout/operator-add-args) drop support of putout < 24
36
+ - (@putout/operator-declare) improve variables declaration
37
+ - (package) @putout/plugin-remove-nested-blocks v5.0.0
38
+ - (@putout/plugin-remove-nested-blocks) drop support of putout < 24
39
+ - (package) @putout/plugin-putout v10.0.0
40
+ - (@putout/plugin-putout) drop support of putout < 24.2
41
+ - (package) @putout/plugin-merge-duplicate-imports v5.0.0
42
+ - (@putout/plugin-merge-duplicate-imports) drop support of putout < 24
43
+ - (package) @putout/plugin-merge-destructuring-properties v6.0.0
44
+ - (@putout/plugin-merge-destructuring-properties) drop support of putout < 24
45
+ - (package) @putout/plugin-extract-object-properties v7.0.0
46
+ - (@putout/plugin-extract-object-properties) drop support of putout < 24
47
+ - (package) @putout/plugin-convert-mock-require-to-mock-import v2.0.0
48
+ - (@putout/plugin-convert-mock-require-to-mock-import) drop support of putout < 24
49
+ - (package) @putout/plugin-convert-for-each-to-for-of v7.0.0
50
+ - (@putout/plugin-convert-for-each-to-for-of) drop support of putout < 24
51
+ - (package) @putout/plugin-convert-commonjs-to-esm v8.0.0
52
+ - (@putout/plugin-convert-commonjs-to-esm) drop support of putout < 24
53
+ - (package) @putout/operator-declare v3.0.0
54
+ - (@putout/operator-declare) drop support of putout < 24
55
+
56
+
57
+ 2022.01.20, v24.2.0
58
+
59
+ fix:
60
+ - (@putout/plugin-merge-duplicate-imports) crawl: integrate with declare
61
+
62
+ feature:
63
+ - (package) @putout/plugin-remove-nested-blocks v5.0.0
64
+ - (@putout/plugin-remove-nested-blocks) drop support of putout < 24
65
+ - (package) @putout/plugin-putout v10.0.0
66
+ - (@putout/plugin-putout) drop support of putout < 24.2
67
+ - (package) @putout/plugin-merge-duplicate-imports v5.0.0
68
+ - (@putout/plugin-merge-duplicate-imports) drop support of putout < 24
69
+ - (package) @putout/plugin-merge-destructuring-properties v6.0.0
70
+ - (@putout/plugin-merge-destructuring-properties) drop support of putout < 24
71
+ - (package) @putout/plugin-extract-object-properties v7.0.0
72
+ - (@putout/plugin-extract-object-properties) drop support of putout < 24
73
+ - (package) @putout/plugin-convert-mock-require-to-mock-import v2.0.0
74
+ - (@putout/plugin-convert-mock-require-to-mock-import) drop support of putout < 24
75
+ - (package) @putout/plugin-convert-for-each-to-for-of v7.0.0
76
+ - (@putout/plugin-convert-for-each-to-for-of) drop support of putout < 24
77
+ - (package) @putout/plugin-convert-commonjs-to-esm v8.0.0
78
+ - (@putout/plugin-convert-commonjs-to-esm) drop support of putout < 24
79
+ - (package) @putout/operator-declare v3.0.0
80
+ - (@putout/operator-declare) drop support of putout < 24
81
+ - (@putout/engine-runner) runFix: add ability to crawl
82
+ - (eslint-plugin-putout) add remove-empty-newline-after-import
83
+ - (@putout/plugin-declare-undefined-variables) add nodejs util
84
+ - (@putout/operator/declare) respect import order: locals - latest import
85
+ - (@putout/operator-declare) import require support
86
+ - (@putout/operator-declare) improve declarations order
87
+ - (@putout/plugin-declare-undefined-variables) add fs
88
+ - (@putout/plugin-declare-undefined-variables) add support of process
89
+ - (eslint-plugin-putout) safe: disable remove-unreferenced-variables
90
+ - (@putout/plugin-remove-nested-blocks) integrate with tape/declare: add crawling
91
+ - (eslint-plugin-putout) safe: disable remove-useless-variables/rename
92
+ - (@putout/operate) toExpression: improve expression check
93
+ - (@putout/plugin-declare-undefined-variables) add support of table
94
+ - (@putout/plugin-declare-undefined-variables) add support of chalk
95
+ - (eslint-plugin-putout) add remove-empty-specifiers
96
+ - (eslint-plugin-putout) add-newline-before-function-call: add support of spaces after
97
+ - (eslint-plugin-putout) single-property-destructuring: exclude elements with comments inside
98
+ - (@putout/plugin-convert-commonjs-to-esm) require: exclude json while not supported
99
+ - (@putout/plugin-convert-commonjs-to-esm) require: disable import assertions while not supported
100
+ - (package) @putout/operate v7.0.0
101
+ - (package) @putout/operate v7.0.0
102
+ - (package) @putout/operate v7.0.0
103
+
104
+
1
105
  2022.01.14, v24.1.0
2
106
 
3
107
  feature:
@@ -49,7 +49,7 @@ const getESLint = ({fix, config}) => {
49
49
  };
50
50
  };
51
51
 
52
- module.exports = async ({name, code, fix, config}) => {
52
+ module.exports = async ({name, code, fix, config, putout = false}) => {
53
53
  const noChanges = [
54
54
  code,
55
55
  [],
@@ -81,7 +81,7 @@ module.exports = async ({name, code, fix, config}) => {
81
81
  ];
82
82
  }
83
83
 
84
- disablePutout(finalConfig);
84
+ !putout && disablePutout(finalConfig);
85
85
 
86
86
  // that's right, we disabled "putout" rules in "config"
87
87
  // and now it located in eslint's cache
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "24.1.0",
3
+ "version": "24.3.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",
@@ -66,8 +66,8 @@
66
66
  "@putout/formatter-progress-bar": "^2.0.0",
67
67
  "@putout/formatter-stream": "^3.0.0",
68
68
  "@putout/operate": "^7.0.0",
69
- "@putout/operator-add-args": "^1.0.0",
70
- "@putout/operator-declare": "^2.0.0",
69
+ "@putout/operator-add-args": "^2.0.0",
70
+ "@putout/operator-declare": "^3.0.0",
71
71
  "@putout/operator-regexp": "^1.0.0",
72
72
  "@putout/plugin-apply-await-import": "^1.0.0",
73
73
  "@putout/plugin-apply-destructuring": "^5.0.0",
@@ -82,18 +82,18 @@
82
82
  "@putout/plugin-convert-assignment-to-arrow-function": "^1.0.0",
83
83
  "@putout/plugin-convert-assignment-to-comparison": "^1.0.0",
84
84
  "@putout/plugin-convert-bitwise-to-logical": "^1.0.0",
85
- "@putout/plugin-convert-commonjs-to-esm": "^7.0.0",
85
+ "@putout/plugin-convert-commonjs-to-esm": "^8.0.0",
86
86
  "@putout/plugin-convert-comparison-to-boolean": "^2.0.0",
87
87
  "@putout/plugin-convert-concat-to-flat": "^1.0.0",
88
88
  "@putout/plugin-convert-equal-to-strict-equal": "^1.0.0",
89
- "@putout/plugin-convert-esm-to-commonjs": "^3.0.0",
90
- "@putout/plugin-convert-for-each-to-for-of": "^6.0.0",
89
+ "@putout/plugin-convert-esm-to-commonjs": "^4.0.0",
90
+ "@putout/plugin-convert-for-each-to-for-of": "^7.0.0",
91
91
  "@putout/plugin-convert-for-in-to-for-of": "^2.0.0",
92
- "@putout/plugin-convert-for-to-for-of": "^2.0.0",
92
+ "@putout/plugin-convert-for-to-for-of": "^3.0.0",
93
93
  "@putout/plugin-convert-index-of-to-includes": "^1.0.0",
94
94
  "@putout/plugin-convert-map-to-for-of": "^1.0.0",
95
95
  "@putout/plugin-convert-math-pow": "^4.0.0",
96
- "@putout/plugin-convert-mock-require-to-mock-import": "^1.0.0",
96
+ "@putout/plugin-convert-mock-require-to-mock-import": "^2.0.0",
97
97
  "@putout/plugin-convert-object-assign-to-merge-spread": "^5.0.0",
98
98
  "@putout/plugin-convert-quotes-to-backticks": "^1.0.0",
99
99
  "@putout/plugin-convert-template-to-string": "^1.0.0",
@@ -101,19 +101,19 @@
101
101
  "@putout/plugin-convert-typeof-to-is-type": "^2.0.0",
102
102
  "@putout/plugin-declare-undefined-variables": "^6.0.0",
103
103
  "@putout/plugin-eslint": "^2.0.0",
104
- "@putout/plugin-extract-object-properties": "^6.0.0",
104
+ "@putout/plugin-extract-object-properties": "^7.0.0",
105
105
  "@putout/plugin-extract-sequence-expressions": "^2.0.0",
106
106
  "@putout/plugin-github": "^2.0.0",
107
107
  "@putout/plugin-gitignore": "^3.0.0",
108
108
  "@putout/plugin-madrun": "^13.0.0",
109
- "@putout/plugin-merge-destructuring-properties": "^5.0.0",
110
- "@putout/plugin-merge-duplicate-imports": "^4.0.0",
109
+ "@putout/plugin-merge-destructuring-properties": "^6.0.0",
110
+ "@putout/plugin-merge-duplicate-imports": "^5.0.0",
111
111
  "@putout/plugin-merge-if-statements": "^3.0.0",
112
112
  "@putout/plugin-nodejs": "^2.0.0",
113
113
  "@putout/plugin-npmignore": "^2.0.0",
114
114
  "@putout/plugin-package-json": "^3.0.0",
115
115
  "@putout/plugin-promises": "^6.0.0",
116
- "@putout/plugin-putout": "^9.0.0",
116
+ "@putout/plugin-putout": "^10.0.0",
117
117
  "@putout/plugin-putout-config": "^2.0.0",
118
118
  "@putout/plugin-regexp": "^4.0.0",
119
119
  "@putout/plugin-remove-boolean-from-assertions": "^1.0.0",
@@ -126,11 +126,11 @@
126
126
  "@putout/plugin-remove-duplicates-from-logical-expressions": "^1.0.0",
127
127
  "@putout/plugin-remove-empty": "^6.0.0",
128
128
  "@putout/plugin-remove-iife": "^1.0.0",
129
- "@putout/plugin-remove-nested-blocks": "^4.0.0",
129
+ "@putout/plugin-remove-nested-blocks": "^5.0.0",
130
130
  "@putout/plugin-remove-unreachable-code": "^1.0.0",
131
131
  "@putout/plugin-remove-unreferenced-variables": "^1.0.0",
132
132
  "@putout/plugin-remove-unused-expressions": "^4.0.0",
133
- "@putout/plugin-remove-unused-for-of-variables": "^1.0.0",
133
+ "@putout/plugin-remove-unused-for-of-variables": "^2.0.0",
134
134
  "@putout/plugin-remove-unused-private-fields": "^1.0.0",
135
135
  "@putout/plugin-remove-unused-variables": "*",
136
136
  "@putout/plugin-remove-useless-arguments": "^5.0.0",
@@ -151,7 +151,7 @@
151
151
  "@putout/plugin-remove-useless-template-expressions": "^1.0.0",
152
152
  "@putout/plugin-remove-useless-type-conversion": "^1.0.0",
153
153
  "@putout/plugin-remove-useless-typeof": "^1.0.0",
154
- "@putout/plugin-remove-useless-variables": "^5.0.0",
154
+ "@putout/plugin-remove-useless-variables": "^6.0.0",
155
155
  "@putout/plugin-reuse-duplicate-init": "^3.0.0",
156
156
  "@putout/plugin-simplify-assignment": "^1.0.0",
157
157
  "@putout/plugin-simplify-logical-expressions": "^1.0.0",
@@ -159,7 +159,7 @@
159
159
  "@putout/plugin-split-nested-destructuring": "^1.0.0",
160
160
  "@putout/plugin-split-variable-declarations": "^2.0.0",
161
161
  "@putout/plugin-strict-mode": "^2.0.0",
162
- "@putout/plugin-tape": "^7.0.0",
162
+ "@putout/plugin-tape": "^8.0.0",
163
163
  "@putout/plugin-typescript": "^1.0.0",
164
164
  "@putout/plugin-webpack": "^1.0.0",
165
165
  "@putout/processor-css": "^3.0.0",
@@ -207,6 +207,7 @@
207
207
  "babel-plugin-transform-inline-consecutive-adds": "^0.5.0-alpha.9",
208
208
  "c8": "^7.5.0",
209
209
  "currify": "^4.0.0",
210
+ "escover": "^1.2.1",
210
211
  "eslint": "^8.0.1",
211
212
  "eslint-plugin-node": "^11.0.0",
212
213
  "eslint-plugin-putout": "^13.0.0",