putout 25.1.1 → 25.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,38 @@
1
+ 2022.03.08, v25.4.0
2
+
3
+ feature:
4
+ - (package) @putout/formatter-json-lines v3.0.0
5
+ - (@putout/formatter-json-lines) rm source
6
+ - (@putout/formatter-json-lines) drop support of putout < 25
7
+ - (putout) eslint: improve support of control sequences
8
+
9
+
10
+ 2022.03.07, v25.3.0
11
+
12
+ feature:
13
+ - (@putout/plugin-try-catch) renamed from @putout/plugin-apply-try-catch
14
+ - (@putout/plugin-apply-try-catch) try-catch: add support of finalizer
15
+ - (@putout/plugin-apply-try-catch) add expand-arguments from @putout/plugin-tape
16
+ - (@putout/plugin-tape) expand-try-catch-arguments: add support of tryCatch with more then one argument
17
+ - (@putout/plugin-regexp) convert-replace-to-replace-all: add support of decoding
18
+ - (@putout/eslint-config) add newline-per-chained-call
19
+ - (@putout/plugin-regexp) convert-replace-to-replace-all: replacer -> traverser: multiple operations on one node
20
+
21
+
22
+ 2022.03.06, v25.2.0
23
+
24
+ fix:
25
+ - (@putout/plugin-apply-try-catch) try-to-catch: report: await
26
+
27
+
28
+ feature:
29
+ - (package) @putout/plugin-remove-useless-escape v3.0.0
30
+ - (putout) convert-replace-to-replace-all: enable since node v16 support
31
+ - (@putout/plugin-remove-useless-escape) drop support of putout < 25
32
+ - (@putout/plugin-regexp) apply-literal-notation: add support of \/
33
+ - (@putout/plugin-remove-useless-escape) add support of \/
34
+
35
+
1
36
  2022.03.05, v25.1.1
2
37
 
3
38
  feature:
@@ -106,12 +106,13 @@ module.exports._noConfigFound = noConfigFound;
106
106
 
107
107
  const parseRule = (rule) => rule || 'parser';
108
108
 
109
+ module.exports.convertToPlace = convertToPlace;
109
110
  function convertToPlace({ruleId = 'parser', message, line = 0, column = 0}) {
110
111
  const rule = `${parseRule(ruleId)}${eslintId}`;
111
112
 
112
113
  return {
113
114
  rule,
114
- message,
115
+ message: replaceControlChars(message),
115
116
  position: {
116
117
  line,
117
118
  column,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "25.1.1",
3
+ "version": "25.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 and babel plugins support of js, jsx typescript, flow files, markdown, yaml and json",
@@ -61,7 +61,7 @@
61
61
  "@putout/formatter-dump": "^3.0.0",
62
62
  "@putout/formatter-frame": "^2.0.0",
63
63
  "@putout/formatter-json": "^2.0.0",
64
- "@putout/formatter-json-lines": "^2.0.0",
64
+ "@putout/formatter-json-lines": "^3.0.0",
65
65
  "@putout/formatter-memory": "^2.0.0",
66
66
  "@putout/formatter-progress": "^3.0.0",
67
67
  "@putout/formatter-progress-bar": "^2.0.0",
@@ -77,7 +77,6 @@
77
77
  "@putout/plugin-apply-is-array": "^2.0.0",
78
78
  "@putout/plugin-apply-numeric-separators": "^1.0.0",
79
79
  "@putout/plugin-apply-optional-chaining": "^2.0.0",
80
- "@putout/plugin-apply-try-catch": "^2.0.0",
81
80
  "@putout/plugin-browserlist": "^1.0.0",
82
81
  "@putout/plugin-convert-apply-to-spread": "^3.0.0",
83
82
  "@putout/plugin-convert-arguments-to-rest": "^1.0.0",
@@ -143,7 +142,7 @@
143
142
  "@putout/plugin-remove-useless-conditions": "^1.0.0",
144
143
  "@putout/plugin-remove-useless-constructor": "^1.0.0",
145
144
  "@putout/plugin-remove-useless-continue": "^1.0.0",
146
- "@putout/plugin-remove-useless-escape": "^2.0.0",
145
+ "@putout/plugin-remove-useless-escape": "^3.0.0",
147
146
  "@putout/plugin-remove-useless-for-of": "^2.0.0",
148
147
  "@putout/plugin-remove-useless-functions": "^2.0.0",
149
148
  "@putout/plugin-remove-useless-map": "^1.0.0",
@@ -163,6 +162,7 @@
163
162
  "@putout/plugin-split-variable-declarations": "^2.0.0",
164
163
  "@putout/plugin-strict-mode": "^3.0.0",
165
164
  "@putout/plugin-tape": "^9.0.0",
165
+ "@putout/plugin-try-catch": "^1.0.0",
166
166
  "@putout/plugin-typescript": "^1.0.0",
167
167
  "@putout/plugin-webpack": "^1.0.0",
168
168
  "@putout/processor-css": "^3.0.0",
package/putout.json CHANGED
@@ -119,7 +119,6 @@
119
119
  "github": "off",
120
120
  "tape": "off",
121
121
  "strict-mode": "off",
122
- "regexp/convert-replace-to-replace-all": "off",
123
122
  "convert-mock-require-to-mock-import": "off"
124
123
  },
125
124
  "plugins": [
@@ -130,7 +129,6 @@
130
129
  "apply-optional-chaining",
131
130
  "apply-numeric-separators",
132
131
  "apply-if-condition",
133
- "apply-try-catch",
134
132
  "extract-object-properties",
135
133
  "extract-sequence-expressions",
136
134
  "madrun",
@@ -217,6 +215,7 @@
217
215
  "regexp",
218
216
  "github",
219
217
  "tape",
218
+ "try-catch",
220
219
  "nodejs"
221
220
  ]
222
221
  }