putout 24.6.0 → 25.0.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,63 @@
1
+ 2022.02.23, v25.0.2
2
+
3
+ fix:
4
+ - (@putout/plugin-apply-try-catch) do not declare try-catch, try-to-catch
5
+
6
+
7
+ feature:
8
+ - (@putout/plugin-apply-try-catch) add
9
+ - (@putout/plugin-apply-try-catch) drop support of putout < 25
10
+ - (@putout/plugin-apply-try-catch) await: include only ExpressionStatements
11
+ - (eslint-plugin-putout) safe: disable remove-useless-for-of
12
+
13
+
14
+ 2022.02.18, v25.0.1
15
+
16
+ fix:
17
+ - (@putout/operator-add-args) avoid using putout directly since it is internal dependency
18
+
19
+
20
+ feature:
21
+ - (package) @putout/plugin-nodejs v3.2.0
22
+ - (@putout/plugin-nodejs) add convert-url-to-dirname
23
+ - (@putout/plugin-merge-destructuring-properties) add support of different quotes
24
+ - (@putout/test) drop support of node < 16
25
+ - (package) madrun v9.0.0
26
+
27
+
28
+ 2022.02.17, v25.0.0
29
+
30
+ fix:
31
+ - docs(eslint-plugin-putout) safe: add "plugin-" prefix
32
+
33
+ feature:
34
+ - (package) @putout/plugin-github v3.0.0
35
+ - (putout) drop support of node < 16
36
+ - (@putout/plugin-github) set-node-versions: 14, 16, 17 -> 16, 17
37
+ - (@putout/plugin-github) drop support of putout < 25
38
+ - (package) @putout/operator-declare v4.0.0
39
+ - (package) @putout/plugin-convert-map-to-for-of v2.0.0
40
+ - (package) @putout/plugin-regexp v5.0.0
41
+ - (package) @putout/processor-markdown v6.0.0
42
+ - (@putout/processor-markdown) drop support of putout < 25
43
+ - (@putout/plugin-regexp) drop support of putout < 25
44
+ - (@putout/plugin-convert-map-to-for-of) drop support of putout < 25
45
+ - (@putout/operator-declare) drop support of putout < 25
46
+ - (putout) add @putout/plugin-apply-array-at
47
+ - (@putout/plugin-remove-unused-variables) get-vars: getScopeUID: rm useless done
48
+ - (@putout/operator-declare) parseCode: rm useless name argument
49
+ - (@putout/test) supertape v7.0.0
50
+ - (@putout/test) reuse options
51
+ - (eslint-plugin-putout) add remove-newline-after-last-element (#95)
52
+ - (@putout/plugin-putout) add convert-match-to-function
53
+ - (@putout/plugin-putout) check-replace-code: add support of ObjectExpression
54
+ - (@putout/plugin-putout) add convert-replace-to-function
55
+ - (@putout/engine-runner) replace: add match property value validation: `☝️ Looks like 'match' property value is not a 'function', but 'string' with value 'xxx'.`
56
+ - (@putout/engine-loader) validate-plugin: improve error message: `☝️ Cannot determine type of plugin fn. Here is list of supported plugins: https://git.io/JqcMn`
57
+ - (@putout/plugin-remove-empty) pattern: improve support of function arguments
58
+ - (@putout/engine-runner) add `☝️ Looks like you passed template value with a wrong type. Allowed: string, node and path. Received: true`
59
+
60
+
1
61
  2022.02.07, v24.6.0
2
62
 
3
63
  fix:
package/lib/putout.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import putout from './putout.js';
2
2
 
3
- export {transformSource} from './loader.mjs';
3
+ export {load} from './loader.mjs';
4
4
  export * from './putout.js';
5
5
 
6
6
  export default function(...a) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "24.6.0",
3
+ "version": "25.0.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",
@@ -68,14 +68,16 @@
68
68
  "@putout/formatter-stream": "^3.0.0",
69
69
  "@putout/operate": "^7.0.0",
70
70
  "@putout/operator-add-args": "^2.0.0",
71
- "@putout/operator-declare": "^3.0.0",
71
+ "@putout/operator-declare": "^4.0.0",
72
72
  "@putout/operator-regexp": "^1.0.0",
73
+ "@putout/plugin-apply-array-at": "^1.0.0",
73
74
  "@putout/plugin-apply-await-import": "^1.0.0",
74
75
  "@putout/plugin-apply-destructuring": "^5.0.0",
75
76
  "@putout/plugin-apply-if-condition": "^1.0.0",
76
77
  "@putout/plugin-apply-is-array": "^2.0.0",
77
78
  "@putout/plugin-apply-numeric-separators": "^1.0.0",
78
79
  "@putout/plugin-apply-optional-chaining": "^2.0.0",
80
+ "@putout/plugin-apply-try-catch": "^2.0.0",
79
81
  "@putout/plugin-browserlist": "^1.0.0",
80
82
  "@putout/plugin-convert-apply-to-spread": "^3.0.0",
81
83
  "@putout/plugin-convert-arguments-to-rest": "^1.0.0",
@@ -92,7 +94,7 @@
92
94
  "@putout/plugin-convert-for-in-to-for-of": "^2.0.0",
93
95
  "@putout/plugin-convert-for-to-for-of": "^3.0.0",
94
96
  "@putout/plugin-convert-index-of-to-includes": "^1.0.0",
95
- "@putout/plugin-convert-map-to-for-of": "^1.0.0",
97
+ "@putout/plugin-convert-map-to-for-of": "^2.0.0",
96
98
  "@putout/plugin-convert-math-pow": "^4.0.0",
97
99
  "@putout/plugin-convert-mock-require-to-mock-import": "^2.0.0",
98
100
  "@putout/plugin-convert-object-assign-to-merge-spread": "^5.0.0",
@@ -104,19 +106,19 @@
104
106
  "@putout/plugin-eslint": "^2.0.0",
105
107
  "@putout/plugin-extract-object-properties": "^7.0.0",
106
108
  "@putout/plugin-extract-sequence-expressions": "^2.0.0",
107
- "@putout/plugin-github": "^2.0.0",
109
+ "@putout/plugin-github": "^3.0.0",
108
110
  "@putout/plugin-gitignore": "^3.0.0",
109
111
  "@putout/plugin-madrun": "^13.0.0",
110
112
  "@putout/plugin-merge-destructuring-properties": "^6.0.0",
111
113
  "@putout/plugin-merge-duplicate-imports": "^5.0.0",
112
114
  "@putout/plugin-merge-if-statements": "^3.0.0",
113
- "@putout/plugin-nodejs": "^2.0.0",
115
+ "@putout/plugin-nodejs": "^3.2.0",
114
116
  "@putout/plugin-npmignore": "^2.0.0",
115
117
  "@putout/plugin-package-json": "^3.0.0",
116
118
  "@putout/plugin-promises": "^7.0.0",
117
119
  "@putout/plugin-putout": "^10.0.0",
118
120
  "@putout/plugin-putout-config": "^2.0.0",
119
- "@putout/plugin-regexp": "^4.0.0",
121
+ "@putout/plugin-regexp": "^5.0.0",
120
122
  "@putout/plugin-remove-boolean-from-assertions": "^1.0.0",
121
123
  "@putout/plugin-remove-boolean-from-logical-expressions": "^4.0.0",
122
124
  "@putout/plugin-remove-console": "^3.0.0",
@@ -167,7 +169,7 @@
167
169
  "@putout/processor-ignore": "^2.0.0",
168
170
  "@putout/processor-javascript": "^3.0.0",
169
171
  "@putout/processor-json": "^3.0.0",
170
- "@putout/processor-markdown": "^5.0.0",
172
+ "@putout/processor-markdown": "^6.0.0",
171
173
  "@putout/processor-yaml": "^3.0.0",
172
174
  "@putout/traverse": "^4.0.0",
173
175
  "ajv": "^8.8.2",
@@ -214,17 +216,17 @@
214
216
  "eslint-plugin-putout": "^13.0.0",
215
217
  "just-camel-case": "^4.0.2",
216
218
  "lerna": "^4.0.0",
217
- "madrun": "^8.6.0",
219
+ "madrun": "^9.0.0",
218
220
  "mock-require": "^3.0.2",
219
221
  "montag": "^1.2.1",
220
222
  "nodemon": "^2.0.1",
221
223
  "pullout": "^4.0.0",
222
224
  "strip-ansi": "^7.0.0",
223
- "supertape": "^6.0.0"
225
+ "supertape": "^7.0.0"
224
226
  },
225
227
  "license": "MIT",
226
228
  "engines": {
227
- "node": ">=14"
229
+ "node": ">=16"
228
230
  },
229
231
  "publishConfig": {
230
232
  "access": "public"
package/putout.json CHANGED
@@ -122,12 +122,14 @@
122
122
  "convert-mock-require-to-mock-import": "off"
123
123
  },
124
124
  "plugins": [
125
+ "apply-array-at",
125
126
  "apply-await-import",
126
127
  "apply-is-array",
127
128
  "apply-destructuring",
128
129
  "apply-optional-chaining",
129
130
  "apply-numeric-separators",
130
131
  "apply-if-condition",
132
+ "apply-try-catch",
131
133
  "extract-object-properties",
132
134
  "extract-sequence-expressions",
133
135
  "madrun",