putout 41.13.0 → 41.13.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,20 @@
1
+ 2026.01.28, v41.13.2
2
+
3
+ feature:
4
+ - 521adad13 putout: @putout/cli-choose-formatter v6.0.0
5
+ - 36713081a @putout/cli-choose-formatter: drop support of 🐊 < 41
6
+ - 03eb85511 @putout/cli-choose-formatter: @putout/cli-choose v4.0.0
7
+ - 52e6a4845 @putout/cli-choose: drop support of node < 22
8
+ - 03e884d58 @putout/cli-choose: drop support of node < 22
9
+ - 347e03733 @putout/processor-json: reuse isJSON from @putout/operator-json
10
+ - e61b1c26a @putout/processor-toml: improve formatting
11
+ - c575a6889 @putout/operator-json: isJSONGroup: add
12
+
13
+ 2026.01.28, v41.13.1
14
+
15
+ feature:
16
+ - c3b31383d putout: get rid of cjs exports
17
+
1
18
  2026.01.28, v41.13.0
2
19
 
3
20
  fix:
package/README.md CHANGED
@@ -285,7 +285,7 @@ All examples works both in **ESM** and **CommonJS**.
285
285
  **CommonJS**:
286
286
 
287
287
  ```js
288
- const putout = require('putout');
288
+ const {putout} = require('putout');
289
289
  ```
290
290
 
291
291
  **ESM**:
package/package.json CHANGED
@@ -1,24 +1,18 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "41.13.0",
3
+ "version": "41.13.2",
4
4
  "type": "module",
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",
7
7
  "homepage": "http://github.com/coderaiser/putout#readme",
8
8
  "main": "./lib/putout.js",
9
9
  "exports": {
10
- ".": {
11
- "require": "./lib/index.cjs",
12
- "import": "./lib/index.js"
13
- },
10
+ ".": "./lib/index.js",
14
11
  "./parse-error": "./lib/parse-error.js",
15
12
  "./parse-options": "./lib/parse-options/index.js",
16
13
  "./parse-match": "./lib/parse-options/parse-match.js",
17
14
  "./merge-options": "./lib/parse-options/merge-options.js",
18
- "./exit-codes": {
19
- "import": "./lib/cli/exit-codes.js",
20
- "require": "./lib/cli/exit-codes.cjs"
21
- },
15
+ "./exit-codes": "./lib/cli/exit-codes.js",
22
16
  "./cli/get-options": "./lib/cli/get-options.js",
23
17
  "./package.json": "./package.json",
24
18
  "./putout.json": "./putout.json",
@@ -57,7 +51,7 @@
57
51
  "dependencies": {
58
52
  "@putout/babel": "^5.0.0",
59
53
  "@putout/cli-cache": "^6.0.0",
60
- "@putout/cli-choose-formatter": "^5.0.0",
54
+ "@putout/cli-choose-formatter": "^6.0.0",
61
55
  "@putout/cli-keypress": "^4.0.0",
62
56
  "@putout/cli-match": "^3.0.0",
63
57
  "@putout/cli-process-file": "^6.0.0",
@@ -1,20 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = {
4
- OK: 0,
5
- PLACE: 1,
6
- STAGE: 2,
7
- NO_FILES: 3,
8
- NO_PROCESSORS: 4,
9
- NO_FORMATTER: 5,
10
- WAS_STOP: 6,
11
- INVALID_OPTION: 7,
12
- CANNOT_LOAD_PROCESSOR: 8,
13
- CANNOT_LOAD_FORMATTER: 9,
14
- RULER_WITH_FIX: 10,
15
- RULER_NO_FILES: 11,
16
- INVALID_CONFIG: 12,
17
- UNHANDLED: 13,
18
- CANNOT_LINT_STAGED: 14,
19
- INTERACTIVE_CANCELED: 15,
20
- };
package/lib/index.cjs DELETED
@@ -1,37 +0,0 @@
1
- 'use strict';
2
-
3
- const {types, traverse} = require('@putout/babel');
4
- const {
5
- template,
6
- generate,
7
- print,
8
- parse,
9
- } = require('@putout/engine-parser');
10
-
11
- const {putout, putoutAsync} = require('./putout.js');
12
-
13
- const {
14
- findPlacesAsync,
15
- findPlaces,
16
- } = require('./find-places.js');
17
-
18
- const {transformAsync, transform} = require('./transform.js');
19
- const operator = require('./operator.js');
20
-
21
- const {codeframe} = require('./codeframe.js');
22
-
23
- module.exports = putout;
24
- module.exports.putout = putout;
25
- module.exports.putoutAsync = putoutAsync;
26
- module.exports.operator = operator;
27
- module.exports.codeframe = codeframe;
28
- module.exports.template = template;
29
- module.exports.generate = generate;
30
- module.exports.print = print;
31
- module.exports.parse = parse;
32
- module.exports.transform = transform;
33
- module.exports.transformAsync = transformAsync;
34
- module.exports.types = types;
35
- module.exports.findPlaces = findPlaces;
36
- module.exports.findPlacesAsync = findPlacesAsync;
37
- module.exports.traverse = traverse;