putout 24.6.0 → 25.0.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,36 @@
1
+ 2022.02.17, v25.0.0
2
+
3
+ fix:
4
+ - docs(eslint-plugin-putout) safe: add "plugin-" prefix
5
+
6
+ feature:
7
+ - (package) @putout/plugin-github v3.0.0
8
+ - (putout) drop support of node < 16
9
+ - (@putout/plugin-github) set-node-versions: 14, 16, 17 -> 16, 17
10
+ - (@putout/plugin-github) drop support of putout < 25
11
+ - (package) @putout/operator-declare v4.0.0
12
+ - (package) @putout/plugin-convert-map-to-for-of v2.0.0
13
+ - (package) @putout/plugin-regexp v5.0.0
14
+ - (package) @putout/processor-markdown v6.0.0
15
+ - (@putout/processor-markdown) drop support of putout < 25
16
+ - (@putout/plugin-regexp) drop support of putout < 25
17
+ - (@putout/plugin-convert-map-to-for-of) drop support of putout < 25
18
+ - (@putout/operator-declare) drop support of putout < 25
19
+ - (putout) add @putout/plugin-apply-array-at
20
+ - (@putout/plugin-remove-unused-variables) get-vars: getScopeUID: rm useless done
21
+ - (@putout/operator-declare) parseCode: rm useless name argument
22
+ - (@putout/test) supertape v7.0.0
23
+ - (@putout/test) reuse options
24
+ - (eslint-plugin-putout) add remove-newline-after-last-element (#95)
25
+ - (@putout/plugin-putout) add convert-match-to-function
26
+ - (@putout/plugin-putout) check-replace-code: add support of ObjectExpression
27
+ - (@putout/plugin-putout) add convert-replace-to-function
28
+ - (@putout/engine-runner) replace: add match property value validation: `☝️ Looks like 'match' property value is not a 'function', but 'string' with value 'xxx'.`
29
+ - (@putout/engine-loader) validate-plugin: improve error message: `☝️ Cannot determine type of plugin fn. Here is list of supported plugins: https://git.io/JqcMn`
30
+ - (@putout/plugin-remove-empty) pattern: improve support of function arguments
31
+ - (@putout/engine-runner) add `☝️ Looks like you passed template value with a wrong type. Allowed: string, node and path. Received: true`
32
+
33
+
1
34
  2022.02.07, v24.6.0
2
35
 
3
36
  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.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",
@@ -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,7 +105,7 @@
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",
@@ -116,7 +117,7 @@
116
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",
@@ -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",
@@ -220,11 +221,11 @@
220
221
  "nodemon": "^2.0.1",
221
222
  "pullout": "^4.0.0",
222
223
  "strip-ansi": "^7.0.0",
223
- "supertape": "^6.0.0"
224
+ "supertape": "^7.0.0"
224
225
  },
225
226
  "license": "MIT",
226
227
  "engines": {
227
- "node": ">=14"
228
+ "node": ">=16"
228
229
  },
229
230
  "publishConfig": {
230
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",