putout 41.1.0 → 41.1.2
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/index.js +1 -0
- package/lib/cli/runner/runner.js +2 -0
- package/lib/cli/runner/writer.js +27 -2
- package/package.json +2 -2
package/ChangeLog
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
2025.12.29, v41.1.2
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- 7986b7f2a putout: @putout/plugin-return v3.0.0
|
|
5
|
+
- c26513ec1 @putout/plugin-return: drop support of 🐊 < 41
|
|
6
|
+
- ce5b9eff8 @putout/plugin-return: remove-useless: ObjectExpression: improve support
|
|
7
|
+
|
|
8
|
+
2025.12.29, v41.1.1
|
|
9
|
+
|
|
10
|
+
fix:
|
|
11
|
+
- dcf171531 @putout/engine-loader: improve rollup support
|
|
12
|
+
|
|
13
|
+
feature:
|
|
14
|
+
- d5f81a1d9 putout: @putout/plugin-return v3.0.0
|
|
15
|
+
- 6fa367791 @putout/plugin-return: drop support of 🐊 < 41
|
|
16
|
+
- 1c4602094 @putout/plugin-return: remove-useless: ObjectExpression: improve support
|
|
17
|
+
- 5546054fb @putout/engine-loader: move out module
|
|
18
|
+
- 221edc107 @putout/engine-loader: rules: add
|
|
19
|
+
|
|
1
20
|
2025.12.29, v41.1.0
|
|
2
21
|
|
|
3
22
|
fix:
|
package/lib/cli/index.js
CHANGED
package/lib/cli/runner/runner.js
CHANGED
|
@@ -27,6 +27,7 @@ module.exports.run = async (overrides) => {
|
|
|
27
27
|
trace,
|
|
28
28
|
initProcessFile = _initProcessFile,
|
|
29
29
|
report,
|
|
30
|
+
getOptions,
|
|
30
31
|
} = overrides;
|
|
31
32
|
|
|
32
33
|
const processFile = initProcessFile(options);
|
|
@@ -64,6 +65,7 @@ module.exports.run = async (overrides) => {
|
|
|
64
65
|
plugins,
|
|
65
66
|
transform,
|
|
66
67
|
trace,
|
|
68
|
+
getOptions,
|
|
67
69
|
});
|
|
68
70
|
|
|
69
71
|
places.push(...currentPlaces);
|
package/lib/cli/runner/writer.js
CHANGED
|
@@ -5,7 +5,7 @@ const {cwd, env} = require('node:process');
|
|
|
5
5
|
const {readFileSync} = require('node:fs');
|
|
6
6
|
|
|
7
7
|
const tryCatch = require('try-catch');
|
|
8
|
-
const
|
|
8
|
+
const _getOptions = require('../get-options.js');
|
|
9
9
|
const {INVALID_CONFIG, NO_PROCESSORS} = require('../exit-codes.js');
|
|
10
10
|
const {runReader} = require('./reader.js');
|
|
11
11
|
|
|
@@ -33,7 +33,32 @@ const createFormatterProxy = (options) => {
|
|
|
33
33
|
});
|
|
34
34
|
};
|
|
35
35
|
|
|
36
|
-
module.exports.runWriter = async (
|
|
36
|
+
module.exports.runWriter = async (overrides = {}) => {
|
|
37
|
+
const {
|
|
38
|
+
readFile,
|
|
39
|
+
report,
|
|
40
|
+
writeFile,
|
|
41
|
+
exit,
|
|
42
|
+
raw,
|
|
43
|
+
write,
|
|
44
|
+
log,
|
|
45
|
+
currentFormat,
|
|
46
|
+
rulesdir,
|
|
47
|
+
formatterOptions,
|
|
48
|
+
noConfig,
|
|
49
|
+
transform,
|
|
50
|
+
plugins,
|
|
51
|
+
index,
|
|
52
|
+
fix,
|
|
53
|
+
processFile,
|
|
54
|
+
processorRunners,
|
|
55
|
+
fileCache,
|
|
56
|
+
name,
|
|
57
|
+
count,
|
|
58
|
+
trace,
|
|
59
|
+
getOptions = _getOptions,
|
|
60
|
+
} = overrides;
|
|
61
|
+
|
|
37
62
|
const resolvedName = resolve(name).replace(/^\./, cwd);
|
|
38
63
|
const [configError, options] = tryCatch(getOptions, {
|
|
39
64
|
name: resolvedName,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "putout",
|
|
3
|
-
"version": "41.1.
|
|
3
|
+
"version": "41.1.2",
|
|
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",
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
"@putout/plugin-remove-useless-push": "^2.0.0",
|
|
163
163
|
"@putout/plugin-remove-useless-replace": "^2.0.0",
|
|
164
164
|
"@putout/plugin-remove-useless-template-expressions": "^3.0.0",
|
|
165
|
-
"@putout/plugin-return": "^
|
|
165
|
+
"@putout/plugin-return": "^3.0.0",
|
|
166
166
|
"@putout/plugin-simplify-ternary": "^8.0.0",
|
|
167
167
|
"@putout/plugin-spread": "^1.0.0",
|
|
168
168
|
"@putout/plugin-tape": "^19.0.0",
|