putout 35.5.2 → 35.7.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 CHANGED
@@ -1,3 +1,24 @@
1
+ 2024.03.06, v35.7.0
2
+
3
+ fix:
4
+ - 4b7638a38 eslint-plugin-putout: multiple-properties-destructuring: imports
5
+
6
+ feature:
7
+ - 77414beb9 putout: @putout/plugin-remove-unused-variables v9.0.0
8
+ - 17b708c7e @putout/plugin-remove-unused-variables: drop support of 🐊 < 35
9
+ - b2e4f1d43 @putout/plugin-remove-unused-variables: improve support of fn args with last AssignmentPattern
10
+ - b7301719d @putout/plugin-sort-imports-by-specifiers: imporove specifiers count
11
+ - ddcbf60ed @putout/eslint: use loadESLint (https://eslint.org/docs/latest/integrate/nodejs-api#loadeslint)
12
+
13
+ 2024.03.04, v35.6.0
14
+
15
+ feature:
16
+ - 89738f07d putout: @putout/plugin-remove-debugger v7.0.0
17
+ - e3d899c79 @putout/plugin-remove-debugger: drop support of 🐊 < 35
18
+ - dd637a029 @putout/plugin-sort-imports-by-specifiers: add
19
+ - 45afe444f @putout/engine-parser: hermes-parser v0.20.0
20
+ - 6327667f2 @putout/engine-reporter: @putout/formatter-progress v5.0.0
21
+
1
22
  2024.02.29, v35.5.2
2
23
 
3
24
  feature:
@@ -1,9 +1,6 @@
1
1
  import process from 'node:process';
2
2
  import {EventEmitter} from 'node:events';
3
- import {
4
- parentPort,
5
- workerData,
6
- } from 'node:worker_threads';
3
+ import {parentPort, workerData} from 'node:worker_threads';
7
4
 
8
5
  const {assign} = Object;
9
6
 
package/bin/putout.mjs CHANGED
@@ -1,10 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import process from 'node:process';
4
- import {
5
- readFile,
6
- writeFile,
7
- } from 'node:fs/promises';
4
+ import {readFile, writeFile} from 'node:fs/promises';
8
5
  import {subscribe} from '@putout/engine-reporter/subscribe';
9
6
  import {createTrace} from './trace.mjs';
10
7
  import {createIsStop} from './is-stop.mjs';
@@ -14,6 +11,8 @@ import cli from '../lib/cli/index.js';
14
11
  import {parseArgs} from '../lib/cli/parse-args.js';
15
12
 
16
13
  const logError = console.error;
14
+ const {log} = console;
15
+
17
16
  const {
18
17
  worker,
19
18
  workerData,
@@ -50,7 +49,7 @@ await cli({
50
49
  write,
51
50
  halt: process.exit,
52
51
  argv: workerData.slice(2),
53
- log: console.log,
52
+ log,
54
53
  logError,
55
54
  readFile,
56
55
  writeFile,
package/lib/lint/json.mjs CHANGED
@@ -1,7 +1,4 @@
1
- import {
2
- branch,
3
- merge,
4
- } from '@putout/processor-json';
1
+ import {branch, merge} from '@putout/processor-json';
5
2
  import putout from '../putout.js';
6
3
 
7
4
  export const lintJSON = (rawSource, options) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "35.5.2",
3
+ "version": "35.7.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",
@@ -135,7 +135,7 @@
135
135
  "@putout/plugin-regexp": "^8.0.0",
136
136
  "@putout/plugin-remove-console": "^6.0.0",
137
137
  "@putout/plugin-remove-constant-conditions": "^4.0.0",
138
- "@putout/plugin-remove-debugger": "^6.0.0",
138
+ "@putout/plugin-remove-debugger": "^7.0.0",
139
139
  "@putout/plugin-remove-duplicate-case": "^3.0.0",
140
140
  "@putout/plugin-remove-duplicate-keys": "^5.0.0",
141
141
  "@putout/plugin-remove-empty": "^11.0.0",
@@ -146,7 +146,7 @@
146
146
  "@putout/plugin-remove-unused-expressions": "^8.0.0",
147
147
  "@putout/plugin-remove-unused-for-of-variables": "^3.0.0",
148
148
  "@putout/plugin-remove-unused-private-fields": "^2.0.0",
149
- "@putout/plugin-remove-unused-variables": "^8.0.0",
149
+ "@putout/plugin-remove-unused-variables": "^9.0.0",
150
150
  "@putout/plugin-remove-useless-arguments": "^8.0.0",
151
151
  "@putout/plugin-remove-useless-array": "^1.0.0",
152
152
  "@putout/plugin-remove-useless-array-constructor": "^2.0.0",
@@ -167,6 +167,7 @@
167
167
  "@putout/plugin-simplify-assignment": "^3.0.0",
168
168
  "@putout/plugin-simplify-boolean-return": "^1.0.0",
169
169
  "@putout/plugin-simplify-ternary": "^7.0.0",
170
+ "@putout/plugin-sort-imports-by-specifiers": "^1.0.0",
170
171
  "@putout/plugin-split-nested-destructuring": "^3.0.0",
171
172
  "@putout/plugin-split-variable-declarations": "^3.0.0",
172
173
  "@putout/plugin-tape": "^13.0.0",
package/putout.json CHANGED
@@ -214,6 +214,7 @@
214
214
  "simplify-assignment",
215
215
  "simplify-boolean-return",
216
216
  "simplify-ternary",
217
+ "sort-imports-by-specifiers",
217
218
  "convert-const-to-let",
218
219
  "convert-apply-to-spread",
219
220
  "convert-concat-to-flat",