putout 41.1.1 → 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 CHANGED
@@ -1,3 +1,10 @@
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
+
1
8
  2025.12.29, v41.1.1
2
9
 
3
10
  fix:
package/lib/cli/index.js CHANGED
@@ -310,6 +310,7 @@ module.exports = async (overrides = {}) => {
310
310
  plugins,
311
311
  transform,
312
312
  initProcessFile,
313
+ getOptions,
313
314
  });
314
315
 
315
316
  if (exited)
@@ -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);
@@ -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 getOptions = require('../get-options.js');
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 ({readFile, report, writeFile, exit, raw, write, log, currentFormat, rulesdir, formatterOptions, noConfig, transform, plugins, index, fix, processFile, processorRunners, fileCache, name, count, trace}) => {
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.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",