putout 24.4.0 → 25.0.1

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,96 @@
1
+ 2022.02.18, v25.0.1
2
+
3
+ fix:
4
+ - (@putout/operator-add-args) avoid using putout directly since it is internal dependency
5
+
6
+
7
+ feature:
8
+ - (package) @putout/plugin-nodejs v3.2.0
9
+ - (@putout/plugin-nodejs) add convert-url-to-dirname
10
+ - (@putout/plugin-merge-destructuring-properties) add support of different quotes
11
+ - (@putout/test) drop support of node < 16
12
+ - (package) madrun v9.0.0
13
+
14
+
15
+ 2022.02.17, v25.0.0
16
+
17
+ fix:
18
+ - docs(eslint-plugin-putout) safe: add "plugin-" prefix
19
+
20
+ feature:
21
+ - (package) @putout/plugin-github v3.0.0
22
+ - (putout) drop support of node < 16
23
+ - (@putout/plugin-github) set-node-versions: 14, 16, 17 -> 16, 17
24
+ - (@putout/plugin-github) drop support of putout < 25
25
+ - (package) @putout/operator-declare v4.0.0
26
+ - (package) @putout/plugin-convert-map-to-for-of v2.0.0
27
+ - (package) @putout/plugin-regexp v5.0.0
28
+ - (package) @putout/processor-markdown v6.0.0
29
+ - (@putout/processor-markdown) drop support of putout < 25
30
+ - (@putout/plugin-regexp) drop support of putout < 25
31
+ - (@putout/plugin-convert-map-to-for-of) drop support of putout < 25
32
+ - (@putout/operator-declare) drop support of putout < 25
33
+ - (putout) add @putout/plugin-apply-array-at
34
+ - (@putout/plugin-remove-unused-variables) get-vars: getScopeUID: rm useless done
35
+ - (@putout/operator-declare) parseCode: rm useless name argument
36
+ - (@putout/test) supertape v7.0.0
37
+ - (@putout/test) reuse options
38
+ - (eslint-plugin-putout) add remove-newline-after-last-element (#95)
39
+ - (@putout/plugin-putout) add convert-match-to-function
40
+ - (@putout/plugin-putout) check-replace-code: add support of ObjectExpression
41
+ - (@putout/plugin-putout) add convert-replace-to-function
42
+ - (@putout/engine-runner) replace: add match property value validation: `☝️ Looks like 'match' property value is not a 'function', but 'string' with value 'xxx'.`
43
+ - (@putout/engine-loader) validate-plugin: improve error message: `☝️ Cannot determine type of plugin fn. Here is list of supported plugins: https://git.io/JqcMn`
44
+ - (@putout/plugin-remove-empty) pattern: improve support of function arguments
45
+ - (@putout/engine-runner) add `☝️ Looks like you passed template value with a wrong type. Allowed: string, node and path. Received: true`
46
+
47
+
48
+ 2022.02.07, v24.6.0
49
+
50
+ fix:
51
+ - (eslint-plugin-putout) remove parent: after parse -> before print
52
+ - (eslint-plugin-putout) npmignore: add lib/**/*.md
53
+ - chore(madrun) add fresh:fix
54
+
55
+ feature:
56
+ - (package) @putout/plugin-remove-empty v7.0.0
57
+ - (package) @putout/plugin-promises v7.0.0
58
+ - (@putout/plugin-remove-empty) drop support of 🐊Putout < 24
59
+ - (@putout/plugin-remove-empty) merge remove-empty-pattern
60
+ - (@putout/plugin-promises) merge remove-useless-await
61
+ - (@putout/plugin-promises) merged remove-useless-async
62
+ - (@putout/plugin-promises) drop support of 🐊Putout < 24
63
+ - (@putout/plugin-promises) merged apply-top-level-await
64
+ - (@putout/plugin-remove-useless-variables) destruct: add support of AssignmentPattern
65
+ - (@putout/plugin-remove-useless-variables) destr: add support of RestElement
66
+ - (eslint-plugin-putout) function-declaration-parent-newline: improve support of destructuring
67
+ - (@putout/engine-parser) add support of wasm-based hermes-parser (5 times slower then babel 🤔)
68
+ - (@putout/plugin-remove-unused-variables) add support of ClassProperty (#96)
69
+ - (@putout/plugin-apply-try-catch) await: add support of async
70
+ - (@putout/plugin-putout) check-replace-code: exclude plugins containing match
71
+ - (@putout/plugin-apply-try-catch) add await
72
+ - (eslint-plugin-putout) function-declaration-paren-newline: add FunctionExpression support
73
+ - (@putout/plugin-remove-useless-variables) add destruct
74
+ - (eslint-plugin-putout) safe: disable remove-useless-spread
75
+ - (@putout/eslint-config) operator-linebreak: add ":", "?"
76
+ - (@putout/eslint-config) operand-linebreak: |, || - before, others - after
77
+
78
+
79
+ 2022.01.26, v24.5.0
80
+
81
+ fix:
82
+ - (putout) rm unused thread-it
83
+
84
+ feature:
85
+ - (package) @putout/plugin-strict-mode v3.0.0
86
+ - (package) @putout/compare v8.7.0
87
+ - (@putout/compare) add findUp option
88
+ - (@putout/compare) add support of findUp
89
+ - (@putout/plugin-strict-mode) drop support of putout < 24
90
+ - (@putout/plugin-strict-mode) commonjs -> CommonJS
91
+ - (@putout/plugin-strict-mode) is esm -> in ESM
92
+
93
+
1
94
  2022.01.25, v24.4.0
2
95
 
3
96
  feature:
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.4.0",
3
+ "version": "25.0.1",
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",
@@ -52,7 +52,7 @@
52
52
  "@putout/cli-match": "^1.0.0",
53
53
  "@putout/cli-ruler": "^2.0.0",
54
54
  "@putout/cli-validate-args": "^1.0.0",
55
- "@putout/compare": "^8.0.0",
55
+ "@putout/compare": "^8.7.0",
56
56
  "@putout/engine-loader": "^5.0.0",
57
57
  "@putout/engine-parser": "^4.0.0",
58
58
  "@putout/engine-processor": "^4.0.0",
@@ -68,8 +68,9 @@
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",
@@ -92,7 +93,7 @@
92
93
  "@putout/plugin-convert-for-in-to-for-of": "^2.0.0",
93
94
  "@putout/plugin-convert-for-to-for-of": "^3.0.0",
94
95
  "@putout/plugin-convert-index-of-to-includes": "^1.0.0",
95
- "@putout/plugin-convert-map-to-for-of": "^1.0.0",
96
+ "@putout/plugin-convert-map-to-for-of": "^2.0.0",
96
97
  "@putout/plugin-convert-math-pow": "^4.0.0",
97
98
  "@putout/plugin-convert-mock-require-to-mock-import": "^2.0.0",
98
99
  "@putout/plugin-convert-object-assign-to-merge-spread": "^5.0.0",
@@ -104,19 +105,19 @@
104
105
  "@putout/plugin-eslint": "^2.0.0",
105
106
  "@putout/plugin-extract-object-properties": "^7.0.0",
106
107
  "@putout/plugin-extract-sequence-expressions": "^2.0.0",
107
- "@putout/plugin-github": "^2.0.0",
108
+ "@putout/plugin-github": "^3.0.0",
108
109
  "@putout/plugin-gitignore": "^3.0.0",
109
110
  "@putout/plugin-madrun": "^13.0.0",
110
111
  "@putout/plugin-merge-destructuring-properties": "^6.0.0",
111
112
  "@putout/plugin-merge-duplicate-imports": "^5.0.0",
112
113
  "@putout/plugin-merge-if-statements": "^3.0.0",
113
- "@putout/plugin-nodejs": "^2.0.0",
114
+ "@putout/plugin-nodejs": "^3.2.0",
114
115
  "@putout/plugin-npmignore": "^2.0.0",
115
116
  "@putout/plugin-package-json": "^3.0.0",
116
- "@putout/plugin-promises": "^6.0.0",
117
+ "@putout/plugin-promises": "^7.0.0",
117
118
  "@putout/plugin-putout": "^10.0.0",
118
119
  "@putout/plugin-putout-config": "^2.0.0",
119
- "@putout/plugin-regexp": "^4.0.0",
120
+ "@putout/plugin-regexp": "^5.0.0",
120
121
  "@putout/plugin-remove-boolean-from-assertions": "^1.0.0",
121
122
  "@putout/plugin-remove-boolean-from-logical-expressions": "^4.0.0",
122
123
  "@putout/plugin-remove-console": "^3.0.0",
@@ -125,7 +126,7 @@
125
126
  "@putout/plugin-remove-duplicate-case": "^1.0.0",
126
127
  "@putout/plugin-remove-duplicate-keys": "^2.0.0",
127
128
  "@putout/plugin-remove-duplicates-from-logical-expressions": "^1.0.0",
128
- "@putout/plugin-remove-empty": "^6.0.0",
129
+ "@putout/plugin-remove-empty": "^7.0.0",
129
130
  "@putout/plugin-remove-iife": "^1.0.0",
130
131
  "@putout/plugin-remove-nested-blocks": "^5.0.0",
131
132
  "@putout/plugin-remove-unreachable-code": "^1.0.0",
@@ -159,7 +160,7 @@
159
160
  "@putout/plugin-simplify-ternary": "^2.0.0",
160
161
  "@putout/plugin-split-nested-destructuring": "^1.0.0",
161
162
  "@putout/plugin-split-variable-declarations": "^2.0.0",
162
- "@putout/plugin-strict-mode": "^2.0.0",
163
+ "@putout/plugin-strict-mode": "^3.0.0",
163
164
  "@putout/plugin-tape": "^8.0.0",
164
165
  "@putout/plugin-typescript": "^1.0.0",
165
166
  "@putout/plugin-webpack": "^1.0.0",
@@ -167,7 +168,7 @@
167
168
  "@putout/processor-ignore": "^2.0.0",
168
169
  "@putout/processor-javascript": "^3.0.0",
169
170
  "@putout/processor-json": "^3.0.0",
170
- "@putout/processor-markdown": "^5.0.0",
171
+ "@putout/processor-markdown": "^6.0.0",
171
172
  "@putout/processor-yaml": "^3.0.0",
172
173
  "@putout/traverse": "^4.0.0",
173
174
  "ajv": "^8.8.2",
@@ -185,7 +186,6 @@
185
186
  "nano-memoize": "^1.1.11",
186
187
  "once": "^1.4.0",
187
188
  "picomatch": "^2.2.2",
188
- "thread-it": "^1.1.3",
189
189
  "try-catch": "^3.0.0",
190
190
  "try-to-catch": "^3.0.0",
191
191
  "wraptile": "^3.0.0",
@@ -215,17 +215,17 @@
215
215
  "eslint-plugin-putout": "^13.0.0",
216
216
  "just-camel-case": "^4.0.2",
217
217
  "lerna": "^4.0.0",
218
- "madrun": "^8.6.0",
218
+ "madrun": "^9.0.0",
219
219
  "mock-require": "^3.0.2",
220
220
  "montag": "^1.2.1",
221
221
  "nodemon": "^2.0.1",
222
222
  "pullout": "^4.0.0",
223
223
  "strip-ansi": "^7.0.0",
224
- "supertape": "^6.0.0"
224
+ "supertape": "^7.0.0"
225
225
  },
226
226
  "license": "MIT",
227
227
  "engines": {
228
- "node": ">=14"
228
+ "node": ">=16"
229
229
  },
230
230
  "publishConfig": {
231
231
  "access": "public"
package/putout.json CHANGED
@@ -122,6 +122,7 @@
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",