putout 40.2.7 → 40.2.8
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 +100 -0
- package/lib/transform.js +3 -3
- package/package.json +31 -31
package/ChangeLog
CHANGED
|
@@ -1,3 +1,103 @@
|
|
|
1
|
+
2025.06.01, v40.2.8
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- 7f158e461 putout: @putout/plugin-convert-const-to-let v5.0.0
|
|
5
|
+
- 8183ab3d3 @putout/plugin-convert-const-to-let: migrate to ESM
|
|
6
|
+
- 3635ea7fe @putout/plugin-convert-const-to-let: rm unused
|
|
7
|
+
- 56bd00857 @putout/plugin-declare-before-reference: rm unused
|
|
8
|
+
- 973e69650 @putout/plugin-nodejs: convert-promisify-to-fs-promises-lowercase
|
|
9
|
+
- 359615b63 @putout/plugin-typescript: types
|
|
10
|
+
- 6ca57b462 @putout/compare: @putout/engine-parser v14.0.1
|
|
11
|
+
- c85510a71 putout: @putout/traverse v14.0.0
|
|
12
|
+
- ec8c0258b @putout/traverse: @putout/compare v18.0.1
|
|
13
|
+
- 306e4c34d putout: @putout/engine-reporter v5.0.0
|
|
14
|
+
- 5ac649224 @putout/engine-reporter: @putout/engine-loader v16.0.0
|
|
15
|
+
- dc5773dff putout: @putout/operator-add-args v12.0.0
|
|
16
|
+
- 50670f105 @putout/operator-add-args: @putout/compare v18.0.1
|
|
17
|
+
- 66aabd7f1 @putout/operator-add-args: @putout/engine-parser v14.0.1
|
|
18
|
+
- 13fe9a664 @putout/operator-match-files: @putout/operator-filesystem v9.0.1
|
|
19
|
+
- 6ba05e935 putout: @putout/operator-rename-files v5.0.0
|
|
20
|
+
- ab365532e @putout/operator-rename-files: @putout/operator-filesystem v9.0.1
|
|
21
|
+
- d4c45c74e @putout/processor-filesystem: @putout/operator-filesystem v9.0.1
|
|
22
|
+
- 9884c102c putout: @putout/operator-parens v2.0.0
|
|
23
|
+
- 9b52af41c @putout/plugin-putout: apply-lowercase-to-node-builders: add support of TS
|
|
24
|
+
- 32d6dba1b putout: @putout/plugin-remove-unused-variables v14.0.0
|
|
25
|
+
- f05ea49fb @putout/plugin-remove-unused-variables: get rid of record and tuple
|
|
26
|
+
- 059aa8534 @putout/operator-filesystem: @putout/engine-parser v14.0.1
|
|
27
|
+
- b11ac96b8 @putout/test: @putout/cli-process-file v4.0.0
|
|
28
|
+
- 1fb7b34d3 putout: @putout/operator-match-files v9.0.0
|
|
29
|
+
- a040b23a7 @putout/operator-match-files: @putout/operator-filesystem v9.0.0
|
|
30
|
+
- 9f921fff7 @putout/operator-match-files: @putout/engine-parser v14.0.1
|
|
31
|
+
- bcde2238c putout: @putout/processor-filesystem v7.0.0
|
|
32
|
+
- 3bfeb756f @putout/plugin-filesystem: @putout/operator-filesystem v9.0.0
|
|
33
|
+
- 867f95eb6 @putout/processor-filesystem: @putout/operator-filesystem v9.0.0
|
|
34
|
+
- daa16c1c2 putout: @putout/engine-processor v14.0.0
|
|
35
|
+
- caa56adc8 @putout/engine-processor: @putout/engine-loader v16.0.0
|
|
36
|
+
- 9683a3688 @putout/engine-runner: @putout/operator-filesystem v9.0.0
|
|
37
|
+
- 7b41c319c putout: @putout/formatter-frame v8.0.0
|
|
38
|
+
- 39598c790 @putout/formatter-frame: drop support of 🐊 < 40
|
|
39
|
+
- eb0b22087 @putout/formatter-frame: @putout/formatter-codeframe v9.0.0
|
|
40
|
+
- 0df600e88 putout: @putout/cli-process-file v4.0.0
|
|
41
|
+
- dfca07357 @putout/cli-process-file: @putout/operate *
|
|
42
|
+
- c9c77bce9 @putout/cli-process-file: drop support of 🐊 < 40
|
|
43
|
+
- 0621ac03d @putout/compare: @putout/operate v14.0.0
|
|
44
|
+
- 61574712f @putout/engine-runner: @putout/operator-declare v14.0.0
|
|
45
|
+
- 658463e82 putout: @putout/operator-declare v14.0.0
|
|
46
|
+
- d232d2f5c @putout/operator-declare: @putout/engine-parser v14.0.1
|
|
47
|
+
- be860e2cf @putout/operator-declare: @putout/operate v14.0.0
|
|
48
|
+
- e5da6462c @putout/operator-declare: @putout/compare v18.0.0
|
|
49
|
+
- 8d227c0c0 putout: @putout/operator-filesystem v9.0.0
|
|
50
|
+
- 5d68bdabe @putout/operator-filesystem: @putout/operate v14.0.0
|
|
51
|
+
- 25087a05c putout: @putout/operator-ignore v3.0.0
|
|
52
|
+
- 5b8f642ba @putout/operator-ignore: drop support of node < 20
|
|
53
|
+
- 631dc5be9 @putout/operator-ignore: @putout/operate v14.0.0
|
|
54
|
+
- 71a68b74a @putout/engine-runner: @putout/plugin-filesystem v11.0.0
|
|
55
|
+
- d4be7a9ea putout: @putout/plugin-filesystem v11.0.0
|
|
56
|
+
- daa04e84d @putout/plugin-filesystem: @putout/operate v14.0.0
|
|
57
|
+
- 0fa259b4b putout: @putout/formatter-codeframe v9.0.0
|
|
58
|
+
- 90879bd43 @putout/formatter-codeframe: drop supprot of 🐊 < 40
|
|
59
|
+
- 8bfb1856e putout: @putout/engine-runner v25.0.0
|
|
60
|
+
- 65d560908 @putout/engine-runner: @putout/operate v14.0.0
|
|
61
|
+
- fdf135e2b @putout/engine-runner: @putout/engine-parser v14.0.1
|
|
62
|
+
- f5300a151 @putout/engine-runner: @putout/compare v18.0.0
|
|
63
|
+
- c36c05115 putout: @putout/engine-loader v16.0.0
|
|
64
|
+
- 83093c1f3 @putout/engine-loader: drop support of node < 20
|
|
65
|
+
- 4985d322f putout: @putout/plugin-assignment v2.0.0
|
|
66
|
+
- c8939536a putout: @putout/plugin-merge-destructuring-properties v12.0.0
|
|
67
|
+
- b09c0d136 putout: @putout/operate v14.0.0
|
|
68
|
+
- de14155fb @putout/engine-parser: @putout/printer v15.0.0
|
|
69
|
+
- ec7a2f96f eslint-plugin-putout: @putout/engine-parser v14.0.0
|
|
70
|
+
- 412d2e54e putout: @putout/plugin-generators v2.0.0
|
|
71
|
+
- ef6329880 putout: @putout/compare v18.0.0
|
|
72
|
+
- be3b3a080 putout: @putout/engine-parser v14.0.0
|
|
73
|
+
- def12ad59 @putout/engine-parser: estree-to-babel v11.0.3
|
|
74
|
+
- b9f71a407 putout: @putout/plugin-extract-sequence-expressions v4.0.0
|
|
75
|
+
- 373000fde putout: @putout/plugin-extract-keywords-from-variables v3.0.0
|
|
76
|
+
- 11a57f2cf putout: @putout/plugin-remove-empty v15.0.0
|
|
77
|
+
- acbe17bab putout: @putout/plugin-conditions v8.0.0
|
|
78
|
+
- 08fb85bdc @putout/plugin-conditions: migrate to ESM
|
|
79
|
+
- 7109bb3a6 @putout/plugin-remove-empty: migrate to ESM
|
|
80
|
+
- ecfa031c5 @putout/plugin-remove-empty: block: top-level
|
|
81
|
+
- b7f41e4ba @putout/plugin-extract-keywords-from-variables: exclude empty BlockStatement
|
|
82
|
+
- e15627daa @putout/compare: ignore list: __putout_runner_replace
|
|
83
|
+
- 0d582693d @putout/plugin-esm: merge-duplicate-imports: join: exclude same
|
|
84
|
+
- 33441a959 @putout/plugin-extract-keywords-from-variables: migrate to ESM
|
|
85
|
+
- 425e0f1e7 @putout/plugin-extract-keywords-from-variables: ImportDeclaration
|
|
86
|
+
- 5596d78e3 @putout/plugin-extract-sequence-expressions: migrate to ESM
|
|
87
|
+
- 3c1807848 @putout/plugin-generators: drop support of 🐊 < 40
|
|
88
|
+
- 758c4796c @putout/compare: lowercase
|
|
89
|
+
- 3c9e536a0 @putout/operator-add-args: drop support of node < 20
|
|
90
|
+
- 681dc998e @putout/operator-add-args: lowercase
|
|
91
|
+
- 2760b1d9e @putout/operate: drop support of node < 20
|
|
92
|
+
- f83b7de44 @putout/operate: getReferences
|
|
93
|
+
- 2e45e6244 @putout/plugin-merge-destructuring-properties: putout/declare with nodejs/convert-esm-to-commonjs
|
|
94
|
+
- 8b7dc644a @putout/plugin-merge-destructuring-properties: drop support of 🐊 < 40
|
|
95
|
+
- 71ab7be83 @putout/plugin-assignment: drop support of 🐊 < 40
|
|
96
|
+
- 3fc8d737d @putout/engine-loader: loadProcessorsAsync, validateRulesRelations: move out
|
|
97
|
+
- e128e7f27 @putout/engine-loader: loadPluginsAsync: use one rule of a plugin
|
|
98
|
+
- 1f2300f8b @putout/engine-parser: get rid of records and tuples
|
|
99
|
+
- f85f9c9d4 @putout/engine-parser: @putout/babel v4.0.1
|
|
100
|
+
|
|
1
101
|
2025.05.30, v40.2.7
|
|
2
102
|
|
|
3
103
|
feature:
|
package/lib/transform.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const tryCatch = require('try-catch');
|
|
4
4
|
|
|
5
|
-
const {
|
|
5
|
+
const {validateRulesRelations} = require('@putout/engine-loader');
|
|
6
6
|
const {defaultOptions} = require('./default-options');
|
|
7
7
|
const {cutShebang} = require('./shebang');
|
|
8
8
|
const parseError = require('./parse-error');
|
|
@@ -34,7 +34,7 @@ module.exports.transform = (ast, source, opts) => {
|
|
|
34
34
|
|
|
35
35
|
const [, shebang] = cutShebang(source);
|
|
36
36
|
|
|
37
|
-
const [validationError] = tryCatch(
|
|
37
|
+
const [validationError] = tryCatch(validateRulesRelations, {
|
|
38
38
|
rules,
|
|
39
39
|
pluginNames,
|
|
40
40
|
});
|
|
@@ -76,7 +76,7 @@ module.exports.transformAsync = async (ast, source, opts) => {
|
|
|
76
76
|
|
|
77
77
|
const [, shebang] = cutShebang(source);
|
|
78
78
|
|
|
79
|
-
const [validationError] = tryCatch(
|
|
79
|
+
const [validationError] = tryCatch(validateRulesRelations, {
|
|
80
80
|
rules,
|
|
81
81
|
pluginNames,
|
|
82
82
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "putout",
|
|
3
|
-
"version": "40.2.
|
|
3
|
+
"version": "40.2.8",
|
|
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",
|
|
@@ -51,24 +51,24 @@
|
|
|
51
51
|
"report": "madrun report"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@putout/babel": "^
|
|
54
|
+
"@putout/babel": "^4.0.1",
|
|
55
55
|
"@putout/cli-cache": "^5.0.0",
|
|
56
56
|
"@putout/cli-choose-formatter": "^4.0.0",
|
|
57
57
|
"@putout/cli-keypress": "^3.0.0",
|
|
58
58
|
"@putout/cli-match": "^2.0.0",
|
|
59
|
-
"@putout/cli-process-file": "^
|
|
59
|
+
"@putout/cli-process-file": "^4.0.0",
|
|
60
60
|
"@putout/cli-ruler": "^4.0.0",
|
|
61
61
|
"@putout/cli-staged": "^1.0.0",
|
|
62
62
|
"@putout/cli-validate-args": "^2.0.0",
|
|
63
|
-
"@putout/compare": "^
|
|
64
|
-
"@putout/engine-loader": "^
|
|
65
|
-
"@putout/engine-parser": "^
|
|
66
|
-
"@putout/engine-processor": "^
|
|
67
|
-
"@putout/engine-reporter": "^
|
|
68
|
-
"@putout/engine-runner": "^
|
|
69
|
-
"@putout/formatter-codeframe": "^
|
|
63
|
+
"@putout/compare": "^18.0.0",
|
|
64
|
+
"@putout/engine-loader": "^16.0.0",
|
|
65
|
+
"@putout/engine-parser": "^14.0.0",
|
|
66
|
+
"@putout/engine-processor": "^14.0.0",
|
|
67
|
+
"@putout/engine-reporter": "^5.0.0",
|
|
68
|
+
"@putout/engine-runner": "^25.0.0",
|
|
69
|
+
"@putout/formatter-codeframe": "^9.0.0",
|
|
70
70
|
"@putout/formatter-dump": "^5.0.0",
|
|
71
|
-
"@putout/formatter-frame": "^
|
|
71
|
+
"@putout/formatter-frame": "^8.0.0",
|
|
72
72
|
"@putout/formatter-json": "^2.0.0",
|
|
73
73
|
"@putout/formatter-json-lines": "^3.0.0",
|
|
74
74
|
"@putout/formatter-memory": "^4.0.0",
|
|
@@ -76,17 +76,17 @@
|
|
|
76
76
|
"@putout/formatter-progress-bar": "^4.0.0",
|
|
77
77
|
"@putout/formatter-stream": "^5.0.0",
|
|
78
78
|
"@putout/formatter-time": "^3.0.0",
|
|
79
|
-
"@putout/operate": "^
|
|
80
|
-
"@putout/operator-add-args": "^
|
|
81
|
-
"@putout/operator-declare": "^
|
|
82
|
-
"@putout/operator-filesystem": "^
|
|
83
|
-
"@putout/operator-ignore": "^
|
|
79
|
+
"@putout/operate": "^14.0.0",
|
|
80
|
+
"@putout/operator-add-args": "^12.0.0",
|
|
81
|
+
"@putout/operator-declare": "^14.0.0",
|
|
82
|
+
"@putout/operator-filesystem": "^9.0.0",
|
|
83
|
+
"@putout/operator-ignore": "^3.0.0",
|
|
84
84
|
"@putout/operator-json": "^2.0.0",
|
|
85
85
|
"@putout/operator-keyword": "^2.0.0",
|
|
86
|
-
"@putout/operator-match-files": "^
|
|
87
|
-
"@putout/operator-parens": "^
|
|
86
|
+
"@putout/operator-match-files": "^9.0.0",
|
|
87
|
+
"@putout/operator-parens": "^2.0.0",
|
|
88
88
|
"@putout/operator-regexp": "^1.0.0",
|
|
89
|
-
"@putout/operator-rename-files": "^
|
|
89
|
+
"@putout/operator-rename-files": "^5.0.0",
|
|
90
90
|
"@putout/plugin-apply-arrow": "^3.0.0",
|
|
91
91
|
"@putout/plugin-apply-at": "^2.0.0",
|
|
92
92
|
"@putout/plugin-apply-destructuring": "^9.0.0",
|
|
@@ -96,14 +96,14 @@
|
|
|
96
96
|
"@putout/plugin-apply-shorthand-properties": "^6.0.0",
|
|
97
97
|
"@putout/plugin-apply-starts-with": "^1.0.0",
|
|
98
98
|
"@putout/plugin-apply-template-literals": "^4.0.0",
|
|
99
|
-
"@putout/plugin-assignment": "^
|
|
99
|
+
"@putout/plugin-assignment": "^2.0.0",
|
|
100
100
|
"@putout/plugin-browserlist": "^2.0.0",
|
|
101
|
-
"@putout/plugin-conditions": "^
|
|
101
|
+
"@putout/plugin-conditions": "^8.0.0",
|
|
102
102
|
"@putout/plugin-convert-apply-to-spread": "^4.0.0",
|
|
103
103
|
"@putout/plugin-convert-arguments-to-rest": "^3.0.0",
|
|
104
104
|
"@putout/plugin-convert-array-copy-to-slice": "^3.0.0",
|
|
105
105
|
"@putout/plugin-convert-concat-to-flat": "^1.0.0",
|
|
106
|
-
"@putout/plugin-convert-const-to-let": "^
|
|
106
|
+
"@putout/plugin-convert-const-to-let": "^5.0.0",
|
|
107
107
|
"@putout/plugin-convert-expression-to-params": "^1.0.0",
|
|
108
108
|
"@putout/plugin-convert-index-of-to-includes": "^2.0.0",
|
|
109
109
|
"@putout/plugin-convert-object-assign-to-merge-spread": "^6.0.0",
|
|
@@ -116,12 +116,12 @@
|
|
|
116
116
|
"@putout/plugin-declare-before-reference": "^8.0.0",
|
|
117
117
|
"@putout/plugin-eslint": "^14.0.0",
|
|
118
118
|
"@putout/plugin-esm": "^4.0.0",
|
|
119
|
-
"@putout/plugin-extract-keywords-from-variables": "^
|
|
119
|
+
"@putout/plugin-extract-keywords-from-variables": "^3.0.0",
|
|
120
120
|
"@putout/plugin-extract-object-properties": "^9.0.0",
|
|
121
|
-
"@putout/plugin-extract-sequence-expressions": "^
|
|
122
|
-
"@putout/plugin-filesystem": "^
|
|
121
|
+
"@putout/plugin-extract-sequence-expressions": "^4.0.0",
|
|
122
|
+
"@putout/plugin-filesystem": "^11.0.0",
|
|
123
123
|
"@putout/plugin-for-of": "^9.0.0",
|
|
124
|
-
"@putout/plugin-generators": "^
|
|
124
|
+
"@putout/plugin-generators": "^2.0.0",
|
|
125
125
|
"@putout/plugin-github": "^16.0.0",
|
|
126
126
|
"@putout/plugin-gitignore": "^6.0.0",
|
|
127
127
|
"@putout/plugin-labels": "^2.0.0",
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"@putout/plugin-madrun": "^21.0.0",
|
|
130
130
|
"@putout/plugin-math": "^4.0.0",
|
|
131
131
|
"@putout/plugin-maybe": "^4.0.0",
|
|
132
|
-
"@putout/plugin-merge-destructuring-properties": "^
|
|
132
|
+
"@putout/plugin-merge-destructuring-properties": "^12.0.0",
|
|
133
133
|
"@putout/plugin-merge-duplicate-functions": "^4.0.0",
|
|
134
134
|
"@putout/plugin-montag": "^4.0.0",
|
|
135
135
|
"@putout/plugin-new": "^4.0.0",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"@putout/plugin-remove-debugger": "^7.0.0",
|
|
148
148
|
"@putout/plugin-remove-duplicate-case": "^3.0.0",
|
|
149
149
|
"@putout/plugin-remove-duplicate-keys": "^8.0.0",
|
|
150
|
-
"@putout/plugin-remove-empty": "^
|
|
150
|
+
"@putout/plugin-remove-empty": "^15.0.0",
|
|
151
151
|
"@putout/plugin-remove-iife": "^5.0.0",
|
|
152
152
|
"@putout/plugin-remove-nested-blocks": "^9.0.0",
|
|
153
153
|
"@putout/plugin-remove-unreachable-code": "^3.0.0",
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
"@putout/plugin-remove-unused-for-of-variables": "^3.0.0",
|
|
157
157
|
"@putout/plugin-remove-unused-labels": "^1.0.1",
|
|
158
158
|
"@putout/plugin-remove-unused-private-fields": "^4.0.0",
|
|
159
|
-
"@putout/plugin-remove-unused-variables": "^
|
|
159
|
+
"@putout/plugin-remove-unused-variables": "^14.0.0",
|
|
160
160
|
"@putout/plugin-remove-useless-arguments": "^12.0.0",
|
|
161
161
|
"@putout/plugin-remove-useless-array": "^2.0.0",
|
|
162
162
|
"@putout/plugin-remove-useless-array-constructor": "^3.0.0",
|
|
@@ -186,13 +186,13 @@
|
|
|
186
186
|
"@putout/plugin-typescript": "^12.0.0",
|
|
187
187
|
"@putout/plugin-webpack": "^4.0.0",
|
|
188
188
|
"@putout/processor-css": "^11.0.0",
|
|
189
|
-
"@putout/processor-filesystem": "^
|
|
189
|
+
"@putout/processor-filesystem": "^7.0.0",
|
|
190
190
|
"@putout/processor-ignore": "^6.0.0",
|
|
191
191
|
"@putout/processor-javascript": "^5.0.0",
|
|
192
192
|
"@putout/processor-json": "^9.0.0",
|
|
193
193
|
"@putout/processor-markdown": "^12.0.0",
|
|
194
194
|
"@putout/processor-yaml": "^8.0.0",
|
|
195
|
-
"@putout/traverse": "^
|
|
195
|
+
"@putout/traverse": "^14.0.0",
|
|
196
196
|
"ajv": "^8.8.2",
|
|
197
197
|
"chalk": "^5.3.0",
|
|
198
198
|
"ci-info": "^4.0.0",
|