putout 41.12.0 → 41.13.1

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,35 @@
1
+ 2026.01.28, v41.13.1
2
+
3
+ feature:
4
+ - c3b31383d putout: get rid of cjs exports
5
+
6
+ 2026.01.28, v41.13.0
7
+
8
+ fix:
9
+ - fedbaee2f @putout/engine-loader: load-plugins-async: ERROR_INTERNAL_ASSERTION
10
+ - 49042fdcc @putout/processor-markdown: split-link-with-title: exclude linkReference
11
+ - 7234242c4 @putout/processor-markdown: split-npm-link -> split-link-with-title
12
+
13
+ feature:
14
+ - c2a0661a9 @putout/plugin-putout-config: apply-arguments: convert-expression-to-params: add
15
+ - a110b091d @putout/plugin-arguments: merge convert-expression-to-params
16
+ - 942862e2c @putout/plugin-convert-throw: migrate to ESM
17
+ - 1deccef7e @putout/plugin-jest: migrate to ESM
18
+ - 8e8daf86c putout: @putout/plugin-apply-at v3.0.0
19
+ - 76400a4d0 @putout/plugin-apply-at: migrate to ESM
20
+ - 654c493a5 @putout/operator-filesystem: content: base64: for emoji: escape -> encodeURIComponent (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent)
21
+ - 5e5b62f31 @putout/plugin-declare: string: fromCharCode
22
+ - b5ba5f26e @putout/plugin-shorten-imported-file: report: file name
23
+ - fdd4e3235 @putout/plugin-regexp: create-regexp
24
+ - b3eb78a99 @putout/plugin-regexp: apply-character-class: apply types
25
+ - c6fc7622c @putout/plugin-apply-character-class: couple
26
+ - 92bfcff39 @putout/processor-markdown: madcut v3.0.0
27
+ - 3231d25d3 @putout/processor-markdown: split-npm-link: add
28
+ - 56c283125 eslint-plugin-putout: safe: variables -> variables/remove-{unused,useless,unreferenced}: off
29
+ - b2544be83 @putout/plugin-putout: convert-get-file-conteont-to-read-file-content: add
30
+ - 35bb84750 @putout/plugin-putout: declare: getFileContent: add
31
+ - 48109161f @putout/plugin-arguments: remove-duplicate: add
32
+
1
33
  2026.01.23, v41.12.0
2
34
 
3
35
  feature:
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.12.0",
3
+ "version": "41.13.1",
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",
@@ -94,7 +88,7 @@
94
88
  "@putout/operator-regexp": "^4.0.0",
95
89
  "@putout/operator-rename-files": "^6.0.0",
96
90
  "@putout/plugin-apply-arrow": "^3.0.0",
97
- "@putout/plugin-apply-at": "^2.0.0",
91
+ "@putout/plugin-apply-at": "^3.0.0",
98
92
  "@putout/plugin-apply-dot-notation": "^3.0.0",
99
93
  "@putout/plugin-apply-flat-map": "^3.0.0",
100
94
  "@putout/plugin-apply-global-this": "^1.0.0",
@@ -107,7 +101,6 @@
107
101
  "@putout/plugin-browserlist": "^2.0.0",
108
102
  "@putout/plugin-conditions": "^8.0.0",
109
103
  "@putout/plugin-convert-concat-to-flat": "^1.0.0",
110
- "@putout/plugin-convert-expression-to-params": "^1.0.0",
111
104
  "@putout/plugin-convert-index-of-to-includes": "^2.0.0",
112
105
  "@putout/plugin-convert-object-entries-to-array-entries": "^3.0.0",
113
106
  "@putout/plugin-convert-object-entries-to-object-keys": "^1.0.0",
package/putout.json CHANGED
@@ -245,7 +245,6 @@
245
245
  "return",
246
246
  "spread",
247
247
  "simplify-ternary",
248
- "convert-expression-to-params",
249
248
  "convert-concat-to-flat",
250
249
  "convert-object-entries-to-object-keys",
251
250
  "convert-object-keys-to-object-entries",
@@ -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;