putout 26.3.0 → 26.5.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,28 @@
1
+ 2022.05.20, v26.5.0
2
+
3
+ fix:
4
+ - (@putout/engine-parser) babel: plugins: rm useless options in recordAndTuple
5
+
6
+
7
+ feature:
8
+ - (@putout/plugin-remove-useless-replace) add
9
+ - (@putout/plugin-remove-unused-private-fields) add support of destructuring
10
+ - (@putout/engine-parser) babel: add ability to parse private destructuring (https://babeljs.io/blog/2022/05/19/7.18.0)
11
+
12
+
13
+ 2022.05.18, v26.4.0
14
+
15
+ feature:
16
+ - (@putout/plugin-tape) add apply-destructuring
17
+ - (@putout/plugin-remove-useless-assign) add
18
+
19
+
20
+ 2022.05.17, v26.3.1
21
+
22
+ feature:
23
+ - (putout) add ability to override import of processors for yarn pnp
24
+
25
+
1
26
  2022.05.17, v26.3.0
2
27
 
3
28
  feature:
package/README.md CHANGED
@@ -69,6 +69,8 @@ module.exports.replace = () => ({
69
69
  - ✅ remove unused `private fields`;
70
70
  - ✅ remove unused `expressions`;
71
71
  - ✅ remove useless `variables`;
72
+ - ✅ remove useless `Object.assign()`;
73
+ - ✅ remove useless `replace()`;
72
74
  - ✅ remove useless `map`;
73
75
  - ✅ remove useless `mapped types`;
74
76
  - ✅ remove useless `mapping modifiers`;
package/lib/cli/index.js CHANGED
@@ -212,7 +212,7 @@ module.exports = async ({argv, halt, log, write, logError, readFile, writeFile})
212
212
  } = config;
213
213
 
214
214
  const [currentFormat, formatterOptions] = await getFormatter(format || formatter, exit);
215
- const [error, processorRunners] = await tryToCatch(getProcessorRunners, processors);
215
+ const [error, processorRunners] = await tryToCatch(getProcessorRunners, processors, simpleImport);
216
216
 
217
217
  if (error)
218
218
  return exit(CANNOT_LOAD_PROCESSOR, error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "26.3.0",
3
+ "version": "26.5.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",
@@ -143,6 +143,7 @@
143
143
  "@putout/plugin-remove-useless-array-constructor": "^1.0.0",
144
144
  "@putout/plugin-remove-useless-array-entries": "^1.0.0",
145
145
  "@putout/plugin-remove-useless-array-from": "^2.0.0",
146
+ "@putout/plugin-remove-useless-assign": "^1.0.0",
146
147
  "@putout/plugin-remove-useless-conditions": "^1.0.0",
147
148
  "@putout/plugin-remove-useless-constructor": "^1.0.0",
148
149
  "@putout/plugin-remove-useless-continue": "^1.0.0",
@@ -152,6 +153,7 @@
152
153
  "@putout/plugin-remove-useless-functions": "^2.0.0",
153
154
  "@putout/plugin-remove-useless-map": "^1.0.0",
154
155
  "@putout/plugin-remove-useless-operand": "^2.0.0",
156
+ "@putout/plugin-remove-useless-replace": "^1.0.1",
155
157
  "@putout/plugin-remove-useless-return": "^4.0.0",
156
158
  "@putout/plugin-remove-useless-spread": "^5.0.0",
157
159
  "@putout/plugin-remove-useless-template-expressions": "^1.0.0",
@@ -210,7 +212,6 @@
210
212
  ],
211
213
  "devDependencies": {
212
214
  "@babel/plugin-transform-react-jsx": "^7.14.5",
213
- "@cloudcmd/stub": "^3.0.0",
214
215
  "babel-plugin-transform-inline-consecutive-adds": "^0.5.0-alpha.9",
215
216
  "c8": "^7.5.0",
216
217
  "currify": "^4.0.0",
package/putout.json CHANGED
@@ -145,6 +145,8 @@
145
145
  "remove-unused-for-of-variables",
146
146
  "remove-unused-private-fields",
147
147
  "remove-unused-expressions",
148
+ "remove-useless-assign",
149
+ "remove-useless-replace",
148
150
  "remove-useless-variables",
149
151
  "remove-useless-else",
150
152
  "remove-useless-map",