putout 29.12.4 → 29.12.6

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,19 @@
1
+ 2023.06.08, v29.12.6
2
+
3
+ feature:
4
+ - 7278b3551 package: @putout/cli-ruler v3.0.0
5
+ - 9d838b92d @putout/cli-ruler: drop support of node < 16
6
+ - 57e02838f @putout/cli-ruler: change args
7
+
8
+ 2023.06.08, v29.12.5
9
+
10
+ feature:
11
+ - 7f14546b5 package: @putout/plugin-apply-early-return v3.0.0
12
+ - ce901bbe8 @putout/printer: filter out Identifiers
13
+ - 8637da9d4 @putout/plugin-apply-early-return: drop support of 🐊 < 29
14
+ - 0ecf64c9b @putout/plugin-apply-eary-return: use @putout/printer
15
+ - 1ee397bac @putout/plugin-react-hook-form: v6-convert-as-to-render: fieldset -> field
16
+
1
17
  2023.06.08, v29.12.4
2
18
 
3
19
  feature:
package/lib/cli/help.js CHANGED
@@ -4,10 +4,7 @@ module.exports = () => {
4
4
  const bin = require('../../help.json');
5
5
  const usage = 'Usage: putout [options] [path]';
6
6
 
7
- const result = [
8
- usage,
9
- 'Options: ',
10
- ];
7
+ const result = [usage, 'Options: '];
11
8
 
12
9
  for (const name of Object.keys(bin)) {
13
10
  result.push(` ${name} ${bin[name]}`);
package/lib/cli/index.js CHANGED
@@ -202,12 +202,12 @@ module.exports = async ({argv, halt, log, write, logError, readFile, writeFile})
202
202
  if (enable || disable) {
203
203
  const {ruler} = await simpleImport('@putout/cli-ruler');
204
204
 
205
- ruler({
205
+ ruler([], {
206
206
  enable,
207
207
  disable,
208
208
  readFile,
209
209
  writeFile,
210
- }, []);
210
+ });
211
211
  }
212
212
 
213
213
  const noConfig = !args.config;
@@ -334,12 +334,12 @@ module.exports = async ({argv, halt, log, write, logError, readFile, writeFile})
334
334
  if (enableAll || disableAll) {
335
335
  const {ruler} = await simpleImport('@putout/cli-ruler');
336
336
 
337
- await ruler({
337
+ await ruler(places, {
338
338
  enableAll,
339
339
  disableAll,
340
340
  readFile,
341
341
  writeFile,
342
- }, places);
342
+ });
343
343
  }
344
344
 
345
345
  if (fix && staged) {
package/lib/shebang.js CHANGED
@@ -11,10 +11,7 @@ module.exports.mergeShebang = (shebang, source) => {
11
11
 
12
12
  module.exports.cutShebang = (source) => {
13
13
  if (source.indexOf('#'))
14
- return [
15
- source,
16
- '',
17
- ];
14
+ return [source, ''];
18
15
 
19
16
  const lines = source.split('\n');
20
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "29.12.4",
3
+ "version": "29.12.6",
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",
@@ -49,7 +49,7 @@
49
49
  "@putout/cli-cache": "^2.0.1",
50
50
  "@putout/cli-keypress": "^1.0.0",
51
51
  "@putout/cli-match": "^2.0.0",
52
- "@putout/cli-ruler": "^2.0.0",
52
+ "@putout/cli-ruler": "^3.0.0",
53
53
  "@putout/cli-validate-args": "^1.0.0",
54
54
  "@putout/compare": "^10.0.0",
55
55
  "@putout/engine-loader": "^9.0.0",
@@ -72,7 +72,7 @@
72
72
  "@putout/operator-regexp": "^1.0.0",
73
73
  "@putout/plugin-apply-at": "^1.0.0",
74
74
  "@putout/plugin-apply-destructuring": "^7.0.0",
75
- "@putout/plugin-apply-early-return": "^2.0.0",
75
+ "@putout/plugin-apply-early-return": "^3.0.0",
76
76
  "@putout/plugin-apply-flat-map": "^2.0.0",
77
77
  "@putout/plugin-apply-optional-chaining": "^3.0.0",
78
78
  "@putout/plugin-apply-template-literals": "^2.0.0",