putout 27.0.1 → 27.3.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,57 @@
1
+ 2022.08.24, v27.3.0
2
+
3
+ fix:
4
+ - @putout/plugin-madrun: description
5
+
6
+ feature:
7
+ - @putout/plugin-logical-expressions: add remove-duplicates
8
+ - @putout/plugin-logical-expressions: add
9
+ - (package) @putout/plugin-simplify-logical-expressions v4.0.0
10
+ - (@putout/plugin-simplify-logical-expressions) merge @putout/plugin-remove-duplicates-from-logical-expressions
11
+
12
+ 2022.08.24, v27.2.0
13
+
14
+ feature:
15
+ - (package) @putout/plugin-simplify-logical-expressions v4.0.0
16
+ - (@putout/plugin-simplify-logical-expressions) merge @putout/plugin-remove-duplicates-from-logical-expressions
17
+ - (@putout/plugin-convert-const-to-let) improve support of split-variable-declarations
18
+ - (@putout/plugin-extract-object-properties) deep-equal: traverse: path -> initPath
19
+ - (@putout/plugin-declare-imports-first) add support of export from
20
+
21
+ 2022.08.08, v27.1.0
22
+
23
+ fix:
24
+ - feature: processor-markdown: find, add ability to pass additional plugins from options
25
+ - (eslint-plugin-putout) wrap: add schema
26
+ - (eslint-plugin-putout) putout: schema (close typescript-eslint/typescript-eslint#5420)
27
+
28
+ feature:
29
+ - (package) @putout/plugin-declare-imports-first v2.0.0
30
+ - (package) @putout/plugin-merge-duplicate-imports v7.0.0
31
+ - (package) @putout/plugin-nodejs v5.0.0
32
+ - (package) @putout/plugin-typescript v3.0.0
33
+ - (package) @putout/engine-runner v14.0.0
34
+ - (@putout/plugin-typescript) drop support of 🐊 < 27
35
+ - (@putout/plugin-typescript) remove-duplicates-from-union: listStore -> pathStore
36
+ - (@putout/test) UPDATE: add support of TypeScript fixtures
37
+ - (@putout/plugin-nodejs) drop support of 🐊 < 27
38
+ - (@putout/plugin-nodejs) declare-after-require: listStore -> pathStore
39
+ - (@putout/plugin-merge-duplicate-imports) listStore -> pathStore
40
+ - (@putout/plugin-merge-duplicate-imports) drop support of 🐊 < 27
41
+ - (@putout/plugin-declare-imports-first) drop support of 🐊 < 27
42
+ - (@putout/plugin-declare-imports-first) listStore -> pathStore
43
+ - (@putout/engine-runner) store: add pathStore: with additional check that path not removed
44
+ - (@putout/plugin-declare-imports-first) improve support of removed ImportDeclarations
45
+ - (@putout/plugin-remove-empty) pattern: improve support of AsyncFunctionExpression
46
+ - (@putout/plugin-remove-nested-blocks) improve support of @putout/plugin-remove-empty
47
+ - (@putout/plugin-remove-empty) improve support of @putout/plugin-remove-unused-for-of-variables
48
+ - processor-markdown: find, fix: add ability to pass additional plugins from options
49
+ - (@putout/plugin-nodejs) add convert-buffer-to-buffer-alloc
50
+ - (@putout/operate) improve compute check
51
+ - (@putout/plugin-putout) convert-number-to-numeric: improve support cases when both Number and Numeric declared
52
+ - (@putout/plugin-react-router) add convert-component-to-element
53
+ - (@putout/plugin-react-router) add
54
+
1
55
  2022.07.20, v27.0.1
2
56
 
3
57
  fix:
package/README.md CHANGED
@@ -101,7 +101,6 @@ module.exports.replace = () => ({
101
101
  - ✅ remove `constant conditions`;
102
102
  - ✅ remove `boolean` from `assertion`;
103
103
  - ✅ remove `boolean` from `logical expressions`;
104
- - ✅ remove `duplicates` from `logical expressions`;
105
104
  - ✅ remove `duplicates` from TypeScript `Union`;
106
105
  - ✅ remove `unreachable code`;
107
106
  - ✅ remove `duplicate keys`;
@@ -273,9 +272,9 @@ For example if you need to `remove-something` create 🐊[**Putout**](https://gi
273
272
  const putout = require('putout');
274
273
 
275
274
  const source = `
276
- const t = 'hello';
277
- const m = t + '!';
278
- console.log(t);
275
+ const t = 'hello';
276
+ const m = t + '!';
277
+ console.log(t);
279
278
  `;
280
279
 
281
280
  putout(source, {
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "27.0.1",
3
+ "version": "27.3.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, Babel and support of js, jsx, typescript, flow, markdown, yaml and json",
7
7
  "homepage": "http://github.com/coderaiser/putout#readme",
8
8
  "main": "./lib/putout.js",
9
+ "commitType": "colon",
9
10
  "exports": {
10
11
  ".": {
11
12
  "require": "./lib/putout.js",
@@ -56,7 +57,7 @@
56
57
  "@putout/engine-loader": "^7.0.0",
57
58
  "@putout/engine-parser": "^5.0.0",
58
59
  "@putout/engine-processor": "^6.0.0",
59
- "@putout/engine-runner": "^13.0.0",
60
+ "@putout/engine-runner": "^14.0.0",
60
61
  "@putout/formatter-codeframe": "^4.0.0",
61
62
  "@putout/formatter-dump": "^4.0.0",
62
63
  "@putout/formatter-frame": "^3.0.0",
@@ -84,7 +85,6 @@
84
85
  "@putout/plugin-convert-array-copy-to-slice": "^2.0.0",
85
86
  "@putout/plugin-convert-assignment-to-arrow-function": "^1.0.0",
86
87
  "@putout/plugin-convert-assignment-to-comparison": "^1.0.0",
87
- "@putout/plugin-convert-bitwise-to-logical": "^1.0.0",
88
88
  "@putout/plugin-convert-commonjs-to-esm": "^9.0.0",
89
89
  "@putout/plugin-convert-comparison-to-boolean": "^3.0.0",
90
90
  "@putout/plugin-convert-concat-to-flat": "^1.0.0",
@@ -107,20 +107,21 @@
107
107
  "@putout/plugin-convert-to-arrow-function": "^3.0.0",
108
108
  "@putout/plugin-convert-typeof-to-is-type": "^2.0.0",
109
109
  "@putout/plugin-declare-before-reference": "^1.0.0",
110
- "@putout/plugin-declare-imports-first": "^1.0.0",
110
+ "@putout/plugin-declare-imports-first": "^2.0.0",
111
111
  "@putout/plugin-declare-undefined-variables": "^7.0.0",
112
112
  "@putout/plugin-eslint": "^4.2.0",
113
113
  "@putout/plugin-extract-object-properties": "^8.0.0",
114
114
  "@putout/plugin-extract-sequence-expressions": "^3.0.0",
115
115
  "@putout/plugin-github": "^3.0.0",
116
116
  "@putout/plugin-gitignore": "^3.0.0",
117
+ "@putout/plugin-logical-expressions": "^1.0.0",
117
118
  "@putout/plugin-madrun": "^14.0.0",
118
119
  "@putout/plugin-merge-destructuring-properties": "^6.0.0",
119
- "@putout/plugin-merge-duplicate-imports": "^6.0.0",
120
+ "@putout/plugin-merge-duplicate-imports": "^7.0.0",
120
121
  "@putout/plugin-merge-if-statements": "^3.0.0",
121
122
  "@putout/plugin-montag": "^1.0.0",
122
123
  "@putout/plugin-new": "^1.0.0",
123
- "@putout/plugin-nodejs": "^4.0.0",
124
+ "@putout/plugin-nodejs": "^5.0.0",
124
125
  "@putout/plugin-npmignore": "^2.0.0",
125
126
  "@putout/plugin-package-json": "^4.0.0",
126
127
  "@putout/plugin-promises": "^8.0.0",
@@ -128,13 +129,11 @@
128
129
  "@putout/plugin-putout-config": "^2.0.0",
129
130
  "@putout/plugin-regexp": "^5.0.0",
130
131
  "@putout/plugin-remove-boolean-from-assertions": "^1.0.0",
131
- "@putout/plugin-remove-boolean-from-logical-expressions": "^4.0.0",
132
132
  "@putout/plugin-remove-console": "^4.0.0",
133
133
  "@putout/plugin-remove-constant-conditions": "^4.0.0",
134
134
  "@putout/plugin-remove-debugger": "^5.0.0",
135
135
  "@putout/plugin-remove-duplicate-case": "^2.0.0",
136
136
  "@putout/plugin-remove-duplicate-keys": "^3.0.0",
137
- "@putout/plugin-remove-duplicates-from-logical-expressions": "^1.0.0",
138
137
  "@putout/plugin-remove-empty": "^8.0.0",
139
138
  "@putout/plugin-remove-iife": "^1.0.0",
140
139
  "@putout/plugin-remove-nested-blocks": "^6.0.0",
@@ -167,14 +166,13 @@
167
166
  "@putout/plugin-remove-useless-variables": "^7.0.0",
168
167
  "@putout/plugin-reuse-duplicate-init": "^4.0.0",
169
168
  "@putout/plugin-simplify-assignment": "^1.0.0",
170
- "@putout/plugin-simplify-logical-expressions": "^3.0.0",
171
169
  "@putout/plugin-simplify-ternary": "^3.0.0",
172
170
  "@putout/plugin-split-nested-destructuring": "^1.0.0",
173
171
  "@putout/plugin-split-variable-declarations": "^2.0.0",
174
172
  "@putout/plugin-strict-mode": "^5.0.0",
175
173
  "@putout/plugin-tape": "^9.0.0",
176
174
  "@putout/plugin-try-catch": "^1.0.0",
177
- "@putout/plugin-typescript": "^2.0.0",
175
+ "@putout/plugin-typescript": "^3.0.0",
178
176
  "@putout/plugin-webpack": "^1.0.0",
179
177
  "@putout/processor-css": "^5.0.0",
180
178
  "@putout/processor-ignore": "^3.0.0",
package/putout.json CHANGED
@@ -176,8 +176,6 @@
176
176
  "remove-useless-array-entries",
177
177
  "remove-constant-conditions",
178
178
  "remove-boolean-from-assertions",
179
- "remove-boolean-from-logical-expressions",
180
- "remove-duplicates-from-logical-expressions",
181
179
  "remove-duplicate-case",
182
180
  "remove-nested-blocks",
183
181
  "remove-unreachable-code",
@@ -186,10 +184,8 @@
186
184
  "split-variable-declarations",
187
185
  "split-nested-destructuring",
188
186
  "simplify-assignment",
189
- "simplify-logical-expressions",
190
187
  "simplify-ternary",
191
188
  "convert-const-to-let",
192
- "convert-bitwise-to-logical",
193
189
  "convert-esm-to-commonjs",
194
190
  "convert-commonjs-to-esm",
195
191
  "convert-apply-to-spread",
@@ -235,7 +231,8 @@
235
231
  "try-catch",
236
232
  "nodejs",
237
233
  "montag",
238
- "new"
234
+ "new",
235
+ "logical-expressions"
239
236
  ]
240
237
  }
241
238