putout 37.4.0 → 37.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 +19 -0
- package/lib/cli/runner/runner.js +1 -1
- package/lib/transform.js +2 -1
- package/package.json +4 -3
- package/putout.json +3 -7
package/ChangeLog
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
2024.12.21, v37.6.0
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- 54885c347 putout: @putout/plugin-remove-empty v13.0.0
|
|
5
|
+
- 510900179 @putout/plugin-putout-config: apply-esm: add
|
|
6
|
+
- 33a95b465 @putout/plugin-remove-empty: drop support of 🐊 < 37
|
|
7
|
+
- db8664285 @putout/esm: add
|
|
8
|
+
- e7b05856f @putout/plugin-nodejs: group-require-by-id: improve support of @putout/
|
|
9
|
+
- c84d4bf41 @putout/plugin-declare-before-reference: improve support of @putout/plugin-nodejs: group-require-by-id
|
|
10
|
+
|
|
11
|
+
2024.12.20, v37.5.0
|
|
12
|
+
|
|
13
|
+
feature:
|
|
14
|
+
- 7c58079e2 putout: @putout/plugin-nodejs v13.0.0
|
|
15
|
+
- eb42a12fc @putout/plugin-nodejs: drop support of 🐊 < 37
|
|
16
|
+
- a110f288e @putout/plugin-nodejs: group-require-by-id: exclude not top-level
|
|
17
|
+
- 98853450d @putout/plugin-nodejs: group-require-by-id: add
|
|
18
|
+
- 3ce9cd00a @putout/plugin-printer: apply-types: traverse: exclude
|
|
19
|
+
|
|
1
20
|
2024.12.19, v37.4.0
|
|
2
21
|
|
|
3
22
|
feature:
|
package/lib/cli/runner/runner.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
const Report = require('@putout/engine-reporter/report');
|
|
3
4
|
const {runWriter} = require('./writer.js');
|
|
4
5
|
const initProcessFile = require('../process-file.js');
|
|
5
|
-
const Report = require('@putout/engine-reporter/report');
|
|
6
6
|
|
|
7
7
|
const report = Report();
|
|
8
8
|
|
package/lib/transform.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const tryCatch = require('try-catch');
|
|
4
|
+
|
|
5
|
+
const {validateRules} = require('@putout/engine-loader');
|
|
4
6
|
const {defaultOptions} = require('./default-options');
|
|
5
7
|
const {cutShebang} = require('./shebang');
|
|
6
8
|
const parseError = require('./parse-error');
|
|
7
|
-
const {validateRules} = require('@putout/engine-loader');
|
|
8
9
|
|
|
9
10
|
const maybeParseError = (a) => !a ? [] : parseError(a, 'loader');
|
|
10
11
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "putout",
|
|
3
|
-
"version": "37.
|
|
3
|
+
"version": "37.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, Babel and support of js, jsx, typescript, flow, markdown, yaml and json",
|
|
@@ -115,6 +115,7 @@
|
|
|
115
115
|
"@putout/plugin-declare-before-reference": "^5.0.0",
|
|
116
116
|
"@putout/plugin-declare-imports-first": "^2.0.0",
|
|
117
117
|
"@putout/plugin-eslint": "^9.0.0",
|
|
118
|
+
"@putout/plugin-esm": "^1.0.0",
|
|
118
119
|
"@putout/plugin-extract-object-properties": "^9.0.0",
|
|
119
120
|
"@putout/plugin-extract-sequence-expressions": "^3.0.0",
|
|
120
121
|
"@putout/plugin-filesystem": "^6.0.0",
|
|
@@ -133,7 +134,7 @@
|
|
|
133
134
|
"@putout/plugin-merge-duplicate-imports": "^11.0.0",
|
|
134
135
|
"@putout/plugin-montag": "^3.0.0",
|
|
135
136
|
"@putout/plugin-new": "^3.0.1",
|
|
136
|
-
"@putout/plugin-nodejs": "^
|
|
137
|
+
"@putout/plugin-nodejs": "^13.0.0",
|
|
137
138
|
"@putout/plugin-npmignore": "^5.0.0",
|
|
138
139
|
"@putout/plugin-optional-chaining": "^1.0.1",
|
|
139
140
|
"@putout/plugin-package-json": "^8.0.0",
|
|
@@ -146,7 +147,7 @@
|
|
|
146
147
|
"@putout/plugin-remove-debugger": "^7.0.0",
|
|
147
148
|
"@putout/plugin-remove-duplicate-case": "^3.0.0",
|
|
148
149
|
"@putout/plugin-remove-duplicate-keys": "^6.0.0",
|
|
149
|
-
"@putout/plugin-remove-empty": "^
|
|
150
|
+
"@putout/plugin-remove-empty": "^13.0.0",
|
|
150
151
|
"@putout/plugin-remove-iife": "^4.0.0",
|
|
151
152
|
"@putout/plugin-remove-nested-blocks": "^6.0.0",
|
|
152
153
|
"@putout/plugin-remove-quotes-from-import-assertions": "^1.0.0",
|
package/putout.json
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"madrun": "on"
|
|
30
30
|
},
|
|
31
31
|
"setupTests.*": {
|
|
32
|
-
"remove-empty
|
|
32
|
+
"esm/remove-empty-import": "off"
|
|
33
33
|
},
|
|
34
34
|
".filesystem.json": {
|
|
35
35
|
"filesystem": "on",
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"nodejs/remove-process-exit": "off",
|
|
124
124
|
"nodejs/convert-top-level-return": "on",
|
|
125
125
|
"remove-console": "off",
|
|
126
|
-
"remove-empty
|
|
126
|
+
"esm/remove-empty-import": "off"
|
|
127
127
|
},
|
|
128
128
|
"{test,*.spec.{js,mjs,cjs}}": {
|
|
129
129
|
"tape": "on"
|
|
@@ -201,7 +201,6 @@
|
|
|
201
201
|
"apply-overrides",
|
|
202
202
|
"extract-object-properties",
|
|
203
203
|
"extract-sequence-expressions",
|
|
204
|
-
"group-imports-by-source",
|
|
205
204
|
"madrun",
|
|
206
205
|
"maybe",
|
|
207
206
|
"webpack",
|
|
@@ -238,7 +237,6 @@
|
|
|
238
237
|
"remove-nested-blocks",
|
|
239
238
|
"remove-unreachable-code",
|
|
240
239
|
"remove-duplicate-keys",
|
|
241
|
-
"remove-quotes-from-import-assertions",
|
|
242
240
|
"reuse-duplicate-init",
|
|
243
241
|
"split-assignment-expressions",
|
|
244
242
|
"split-variable-declarations",
|
|
@@ -246,7 +244,6 @@
|
|
|
246
244
|
"simplify-assignment",
|
|
247
245
|
"simplify-boolean-return",
|
|
248
246
|
"simplify-ternary",
|
|
249
|
-
"sort-imports-by-specifiers",
|
|
250
247
|
"convert-const-to-let",
|
|
251
248
|
"convert-expression-to-params",
|
|
252
249
|
"convert-assignment-to-declaration",
|
|
@@ -262,10 +259,9 @@
|
|
|
262
259
|
"convert-assignment-to-comparison",
|
|
263
260
|
"convert-quotes-to-backticks",
|
|
264
261
|
"convert-object-entries-to-array-entries",
|
|
262
|
+
"esm",
|
|
265
263
|
"merge-destructuring-properties",
|
|
266
|
-
"merge-duplicate-imports",
|
|
267
264
|
"merge-duplicate-functions",
|
|
268
|
-
"declare-imports-first",
|
|
269
265
|
"declare-before-reference",
|
|
270
266
|
"declare",
|
|
271
267
|
"labels",
|