putout 31.3.0 → 31.4.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,17 @@
1
+ 2023.08.24, v31.4.0
2
+
3
+ fix:
4
+ - 343c7448c @putout/engine-loader: loadPluginsAsync: disabled rule
5
+
6
+ feature:
7
+ - d239cf375 package: @putout/plugin-remove-useless-arguments v8.0.0
8
+ - d9d55fab2 @putout/plugin-remove-useless-arguments: drop support of 🐊 < 31
9
+ - bf4dd6331 @putout/plugin-remove-useless-arguments: destructuring: params length
10
+ - c186080fa @putout/plugin-travis: convert to ESM
11
+ - 3423767ec putout: add support of ESM plugins
12
+ - c91c3d2a1 @putout/engine-loader: loadPluginsAsync: speed up with memoize
13
+ - 5b67c34a1 @putout/plugin-putout: apply-namespace-speicifier: exclude alot imports
14
+
1
15
  2023.08.23, v31.3.0
2
16
 
3
17
  feature:
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- const tryCatch = require('try-catch');
3
+ const tryToCatch = require('try-to-catch');
4
4
 
5
- const putout = require('../..');
5
+ const {putoutAsync} = require('../..');
6
6
  const merge = require('../merge');
7
7
  const parseMatch = require('../parse-options/parse-match');
8
8
 
@@ -20,7 +20,7 @@ module.exports = ({fix, fixCount, isFlow, logError, raw, printer}) => async ({na
20
20
  const isTS = /\.tsx?$/.test(name) || /{tsx?}$/.test(name);
21
21
  const matchedOptions = getMatchedOptions(name, options);
22
22
 
23
- const [e, result] = tryCatch(putout, source, {
23
+ const [e, result] = await tryToCatch(putoutAsync, source, {
24
24
  fix,
25
25
  fixCount,
26
26
  isTS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "31.3.0",
3
+ "version": "31.4.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",
@@ -134,7 +134,7 @@
134
134
  "@putout/plugin-remove-unused-for-of-variables": "^3.0.0",
135
135
  "@putout/plugin-remove-unused-private-fields": "^2.0.0",
136
136
  "@putout/plugin-remove-unused-variables": "^6.0.0",
137
- "@putout/plugin-remove-useless-arguments": "^7.0.0",
137
+ "@putout/plugin-remove-useless-arguments": "^8.0.0",
138
138
  "@putout/plugin-remove-useless-array-constructor": "^2.0.0",
139
139
  "@putout/plugin-remove-useless-array-entries": "^1.0.0",
140
140
  "@putout/plugin-remove-useless-assign": "^1.0.0",