putout 23.1.0 → 23.2.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,20 @@
1
+ 2021.12.25, v23.2.0
2
+
3
+ feature:
4
+ - (package) @putout/plugin-reuse-duplicate-init v3.0.0
5
+ - (package) @putout/plugin-remove-unused-types v2.0.0
6
+ - (package) @putout/engine-runner v12.0.0
7
+ - (@putout/plugin-reuse-duplicate-init) drop support of putout < 23
8
+ - (@putout/plugin-reuse-duplicate-init) add support of MemberExpression
9
+ - (@putout/plugin-remove-unused-types) drop support of putout < 23
10
+ - (@putout/plugin-remove-unused-types) store -> upstore
11
+ - (@putout/engine-runner) add support of upstore
12
+ - (@putout/engine-runner) improve support of Program: exit + exclude
13
+ - (@putout/plugin-github) traverse-property: callback -> return array
14
+ - (putout) rules: exclude "not-rule-*" glob
15
+ - (@putout/rule-add-readme-to-homepage) add
16
+
17
+
1
18
  2021.12.23, v23.1.0
2
19
 
3
20
  fix:
@@ -97,7 +97,7 @@ function _readOptions(name) {
97
97
  ];
98
98
  }
99
99
 
100
- const isInclude = (a) => a !== 'node_modules';
100
+ const isInclude = (a) => !/(^not-rule-.*|^node_modules$)/.test(a);
101
101
 
102
102
  function readRules(dirOpt, rulesDir) {
103
103
  if (!rulesDir)
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "23.1.0",
3
+ "version": "23.2.0",
4
4
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
5
5
  "description": "🐊 Pluggable and configurable code transformer with built-in eslint and babel plugins support of js, jsx typescript, flow files, markdown, yaml and json",
6
- "homepage": "http://github.com/coderaiser/putout",
6
+ "homepage": "http://github.com/coderaiser/putout#readme",
7
7
  "main": "./lib/putout.js",
8
8
  "exports": {
9
9
  ".": {
@@ -54,7 +54,7 @@
54
54
  "@putout/engine-loader": "^5.0.0",
55
55
  "@putout/engine-parser": "^4.0.0",
56
56
  "@putout/engine-processor": "^4.0.0",
57
- "@putout/engine-runner": "^11.0.0",
57
+ "@putout/engine-runner": "^12.0.0",
58
58
  "@putout/formatter-codeframe": "^3.0.0",
59
59
  "@putout/formatter-dump": "^3.0.0",
60
60
  "@putout/formatter-frame": "^2.0.0",
@@ -139,7 +139,7 @@
139
139
  "@putout/plugin-remove-unused-expressions": "^4.0.0",
140
140
  "@putout/plugin-remove-unused-for-of-variables": "^1.0.0",
141
141
  "@putout/plugin-remove-unused-private-fields": "^1.0.0",
142
- "@putout/plugin-remove-unused-types": "^1.0.0",
142
+ "@putout/plugin-remove-unused-types": "^2.0.0",
143
143
  "@putout/plugin-remove-unused-variables": "*",
144
144
  "@putout/plugin-remove-useless-arguments": "^5.0.0",
145
145
  "@putout/plugin-remove-useless-array-constructor": "^1.0.0",
@@ -164,7 +164,7 @@
164
164
  "@putout/plugin-remove-useless-types": "^1.0.0",
165
165
  "@putout/plugin-remove-useless-types-from-constants": "^1.0.0",
166
166
  "@putout/plugin-remove-useless-variables": "^5.0.0",
167
- "@putout/plugin-reuse-duplicate-init": "^2.0.0",
167
+ "@putout/plugin-reuse-duplicate-init": "^3.0.0",
168
168
  "@putout/plugin-simplify-assignment": "^1.0.0",
169
169
  "@putout/plugin-simplify-logical-expressions": "^1.0.0",
170
170
  "@putout/plugin-simplify-ternary": "^2.0.0",