putout 25.10.0 → 25.11.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,57 @@
1
+ 2022.03.30, v25.11.2
2
+
3
+ fix:
4
+ - (putout) get back chalk v4: berry support + deduplication
5
+
6
+
7
+ feature:
8
+ - (@putout/eslint-config) padding-line-between-statements: add new line before and after for
9
+
10
+
11
+ 2022.03.29, v25.11.1
12
+
13
+ feature:
14
+ - (package) @putout/processor-css v4.0.0
15
+ - (@putout/processor-html) drop support of putout < 25
16
+ - (@putout/processor-css) drop support of putout < 25
17
+ - (@putout/processor-typescript) drop support of putout < 25
18
+
19
+
20
+ 2022.03.29, v25.11.0
21
+
22
+ feature:
23
+ - (package) @putout/formatter-frame v3.0.0
24
+ - (package) @putout/formatter-codeframe v4.0.0
25
+ - (package) @putout/formatter-progress v3.0.1
26
+ - (@putout/formatter-progress) drop support of putout < 25
27
+ - (package) @putout/formatter-codeframe v4.0.0
28
+ - (@putout/formatter-codeframe) drop support of Putout < 25
29
+ - (package) @putout/formatter-memory v3.0.0
30
+ - (@putout/formatter-memory) drop support of Putout < 25
31
+ - (package) @putout/formatter-dump v4.0.0
32
+ - (package) @putout/formatter-dump v4.0.0
33
+ - (@putout/formatter-dump) drop support of Putout < 25
34
+ - (package) @putout/formatter-progress-bar v3.0.0
35
+ - (@putout/formatter-progress-bar) drop support of putout < 25
36
+ - (package) @putout/formatter-stream v4.0.0
37
+ - (@putout/formatter-stream) drop support of putout < 25
38
+ - (package) ts-morph v14.0.0
39
+ - (package) hermes-parser v0.6.0
40
+ - (package) eslint-plugin-eslint-plugin v4.1.0
41
+ - (package) escover v2.1.0
42
+ - (package) escover v2.1.0
43
+ - (package) emoji-regex v10.0.1
44
+ - (package) chalk v5.0.1
45
+ - (package) stylelint-config-standard v25.0.0
46
+ - (package) chalk v5.0.1
47
+ - (package) @putout/operate v8.0.0
48
+ - (package) @putout/operate v8.0.0
49
+ - (package) @putout/operate v8.0.0
50
+ - (package) @putout/operate v8.0.0
51
+ - (@putout/operate) drop support of node < 16
52
+ - (@putout/operate) compute: exclude Identifiers from parsing of ObjectExpressions (#100)
53
+
54
+
1
55
  2022.03.28, v25.10.0
2
56
 
3
57
  fix:
@@ -12,7 +66,7 @@ feature:
12
66
  - (package) @putout/operate v8.0.0
13
67
  - (package) @putout/operate v8.0.0
14
68
  - (@putout/operate) drop support of node < 16
15
- - (@putout/operate) compute: exclude Identifiers from parsing of ObjectExpressions
69
+ - (@putout/operate) compute: exclude Identifiers from parsing of ObjectExpressions (#100)
16
70
  - (@putout/compare) setVars: BlockStatement -> Statement: improve node building
17
71
  - (@putout/plugin-remove-useless-else) simplify
18
72
  - (@putout/compare) setValues: add ability to handle BlockStatement
@@ -43,6 +43,7 @@ const addExt = (options) => async function addExt(a) {
43
43
 
44
44
  const jsFiles = [];
45
45
  const promises = [];
46
+
46
47
  for (const file of files) {
47
48
  const info = await lstat(file);
48
49
 
package/lib/cli/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  'use strict';
2
2
 
3
- const {red} = require('chalk');
4
3
  const yargsParser = require('yargs-parser');
5
4
  const {isCI} = require('ci-info');
6
5
  const memo = require('nano-memoize');
@@ -10,7 +9,10 @@ const fullstore = require('fullstore');
10
9
 
11
10
  const keyPress = require('@putout/cli-keypress');
12
11
  const {version} = require('../../package.json');
13
- const {simpleImport} = require('./simple-import');
12
+ const {
13
+ simpleImport,
14
+ simpleImportDefault,
15
+ } = require('./simple-import');
14
16
  const {run} = require('./runner/runner.js');
15
17
 
16
18
  const {
@@ -140,7 +142,9 @@ module.exports = async ({argv, halt, log, write, logError, readFile, writeFile})
140
142
  plugins,
141
143
  } = args;
142
144
 
145
+ const {red} = await simpleImportDefault('chalk');
143
146
  const exit = getExit({
147
+ red,
144
148
  raw,
145
149
  halt,
146
150
  logError,
@@ -324,7 +328,7 @@ module.exports = async ({argv, halt, log, write, logError, readFile, writeFile})
324
328
  exit(exitCode);
325
329
  };
326
330
 
327
- const getExit = ({halt, raw, logError}) => (code, e) => {
331
+ const getExit = ({red, halt, raw, logError}) => (code, e) => {
328
332
  if (!code)
329
333
  return halt(0);
330
334
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "25.10.0",
3
+ "version": "25.11.2",
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 and babel plugins support of js, jsx typescript, flow files, markdown, yaml and json",
@@ -57,15 +57,15 @@
57
57
  "@putout/engine-parser": "^5.0.0",
58
58
  "@putout/engine-processor": "^5.0.0",
59
59
  "@putout/engine-runner": "^13.0.0",
60
- "@putout/formatter-codeframe": "^3.0.0",
61
- "@putout/formatter-dump": "^3.0.0",
62
- "@putout/formatter-frame": "^2.0.0",
60
+ "@putout/formatter-codeframe": "^4.0.0",
61
+ "@putout/formatter-dump": "^4.0.0",
62
+ "@putout/formatter-frame": "^3.0.0",
63
63
  "@putout/formatter-json": "^2.0.0",
64
64
  "@putout/formatter-json-lines": "^3.0.0",
65
- "@putout/formatter-memory": "^2.0.0",
66
- "@putout/formatter-progress": "^3.0.0",
67
- "@putout/formatter-progress-bar": "^2.0.0",
68
- "@putout/formatter-stream": "^3.0.0",
65
+ "@putout/formatter-memory": "^3.0.0",
66
+ "@putout/formatter-progress": "^3.0.1",
67
+ "@putout/formatter-progress-bar": "^3.0.0",
68
+ "@putout/formatter-stream": "^4.0.0",
69
69
  "@putout/operate": "^8.0.0",
70
70
  "@putout/operator-add-args": "^3.0.0",
71
71
  "@putout/operator-declare": "^4.0.0",
@@ -167,7 +167,7 @@
167
167
  "@putout/plugin-try-catch": "^1.0.0",
168
168
  "@putout/plugin-typescript": "^1.0.0",
169
169
  "@putout/plugin-webpack": "^1.0.0",
170
- "@putout/processor-css": "^3.0.0",
170
+ "@putout/processor-css": "^4.0.0",
171
171
  "@putout/processor-ignore": "^2.0.0",
172
172
  "@putout/processor-javascript": "^3.0.0",
173
173
  "@putout/processor-json": "^3.0.0",
@@ -212,7 +212,7 @@
212
212
  "babel-plugin-transform-inline-consecutive-adds": "^0.5.0-alpha.9",
213
213
  "c8": "^7.5.0",
214
214
  "currify": "^4.0.0",
215
- "escover": "^1.2.1",
215
+ "escover": "^2.1.0",
216
216
  "eslint": "^8.0.1",
217
217
  "eslint-plugin-node": "^11.0.0",
218
218
  "eslint-plugin-putout": "^14.0.0",