putout 34.7.2 → 34.8.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
+ 2024.01.09, v34.8.0
2
+
3
+ fix:
4
+ - 2f66f5f35 @putout/plugin-minify: merge-loops: add
5
+ - fd73cb65c @putout/plugin-remove-debugger: description
6
+
7
+ feature:
8
+ - e7b749180 @putout/plugin-minify: merge-loops: add
9
+ - 3d618625b @putout/plugin-convert-label-to-object: exclude empty BlockStatements
10
+ - ef61a3b8e putout: @putout/plugin-convert-label-to-object v1.0.0
11
+ - 4a63f5f2e @putout/plugin-convert-label-to-object: exlude functions without LabeledStatement
12
+ - d57c488c2 @putout/plugin-convert-label-to-object: add
13
+ - b68b9dba6 putout: @putout/plugin-remove-debugger v6.0.0
14
+ - 660c8d55d @putout/plugin-remove-debugger: drop support of node < 18
15
+
16
+ 2024.01.08, v34.7.3
17
+
18
+ fix:
19
+ - 5218db9ec @putout/plugin-remove-useless-spread: exclude CallExpression
20
+
21
+ feature:
22
+ - 3b3bb29f1 putout: @putout/plugin-remove-useless-spread v10.0.0
23
+ - b608016bc @putout/plugin-remove-useless-spread: drop suport of node < 18
24
+ - f5524559b @putout/plugin-remove-useless-spread: nested: add
25
+
1
26
  2024.01.08, v34.7.2
2
27
 
3
28
  feature:
@@ -52,19 +52,9 @@ module.exports = (info = {}) => {
52
52
  options,
53
53
  );
54
54
 
55
- const mergedMatch = merge(...[
56
- customOptions,
57
- options,
58
- parseMatch(name, options.match),
59
- ]);
55
+ const mergedMatch = merge(customOptions, options, parseMatch(name, options.match));
60
56
 
61
- const resultOptions = merge(...[
62
- readCodeMods(),
63
- readRules('./', rulesdir),
64
- mergedOptions,
65
- mergedDefaultsMatch,
66
- mergedMatch,
67
- ]);
57
+ const resultOptions = merge(readCodeMods(), readRules('./', rulesdir), mergedOptions, mergedDefaultsMatch, mergedMatch);
68
58
 
69
59
  validateOptions(resultOptions);
70
60
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "34.7.2",
3
+ "version": "34.8.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",
@@ -97,6 +97,7 @@
97
97
  "@putout/plugin-convert-concat-to-flat": "^1.0.0",
98
98
  "@putout/plugin-convert-const-to-let": "^1.0.0",
99
99
  "@putout/plugin-convert-index-of-to-includes": "^2.0.0",
100
+ "@putout/plugin-convert-label-to-object": "^1.0.0",
100
101
  "@putout/plugin-convert-object-assign-to-merge-spread": "^6.0.0",
101
102
  "@putout/plugin-convert-object-entries-to-array-entries": "^3.0.0",
102
103
  "@putout/plugin-convert-optional-to-logical": "^3.0.0",
@@ -131,7 +132,7 @@
131
132
  "@putout/plugin-regexp": "^8.0.0",
132
133
  "@putout/plugin-remove-console": "^6.0.0",
133
134
  "@putout/plugin-remove-constant-conditions": "^4.0.0",
134
- "@putout/plugin-remove-debugger": "^5.0.0",
135
+ "@putout/plugin-remove-debugger": "^6.0.0",
135
136
  "@putout/plugin-remove-duplicate-case": "^3.0.0",
136
137
  "@putout/plugin-remove-duplicate-keys": "^4.0.0",
137
138
  "@putout/plugin-remove-empty": "^11.0.0",
@@ -155,7 +156,7 @@
155
156
  "@putout/plugin-remove-useless-operand": "^2.0.0",
156
157
  "@putout/plugin-remove-useless-replace": "^1.0.1",
157
158
  "@putout/plugin-remove-useless-return": "^6.0.0",
158
- "@putout/plugin-remove-useless-spread": "^9.0.0",
159
+ "@putout/plugin-remove-useless-spread": "^10.0.0",
159
160
  "@putout/plugin-remove-useless-template-expressions": "^2.0.0",
160
161
  "@putout/plugin-remove-useless-variables": "^10.0.0",
161
162
  "@putout/plugin-reuse-duplicate-init": "^5.0.0",
package/putout.json CHANGED
@@ -224,6 +224,7 @@
224
224
  "convert-assignment-to-comparison",
225
225
  "convert-quotes-to-backticks",
226
226
  "convert-object-entries-to-array-entries",
227
+ "convert-label-to-object",
227
228
  "merge-destructuring-properties",
228
229
  "merge-duplicate-imports",
229
230
  "merge-duplicate-functions",