putout 35.30.0 → 35.31.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,17 @@
1
+ 2024.05.28, v35.31.0
2
+
3
+ feature:
4
+ - 02f76db91 @putout/plugin-split-assignment-expressions: add
5
+
6
+ 2024.05.27, v35.30.1
7
+
8
+ feature:
9
+ - 4dcdfefbc putout: samadhi v2.0.0
10
+ - e43f4e406 @putout/plugin-conditions: apply-consistent-blocks: add any count of blocks support
11
+ - b7f7420ad @putout/plugin-conditions: apply-consistent-blocks: couple
12
+ - 3ecb697c4 @putout/plugin-putout: simplify-replace-template: add
13
+ - bc711bd18 @putout/cli-cache: file-entry-cache v9.0.0
14
+
1
15
  2024.05.27, v35.30.0
2
16
 
3
17
  fix:
@@ -35,16 +35,15 @@ module.exports = ({fix, fixCount, isFlow, logError, raw, printer}) => async func
35
35
  raw && logError(e);
36
36
 
37
37
  const {lint} = await simpleImport('samadhi');
38
-
39
- const {places, code} = await lint(source, {
38
+ const [code, places] = await lint(source, {
40
39
  fix,
41
40
  isTS,
42
41
  });
43
42
 
44
43
  if (!fix && places.length)
45
44
  return {
46
- places,
47
45
  code,
46
+ places,
48
47
  };
49
48
 
50
49
  if (fix && !places.length)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "35.30.0",
3
+ "version": "35.31.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",
@@ -173,6 +173,7 @@
173
173
  "@putout/plugin-simplify-boolean-return": "^1.0.0",
174
174
  "@putout/plugin-simplify-ternary": "^7.0.0",
175
175
  "@putout/plugin-sort-imports-by-specifiers": "^1.0.0",
176
+ "@putout/plugin-split-assignment-expressions": "^1.0.0",
176
177
  "@putout/plugin-split-nested-destructuring": "^3.0.0",
177
178
  "@putout/plugin-split-variable-declarations": "^3.0.0",
178
179
  "@putout/plugin-tape": "^14.0.0",
@@ -202,7 +203,7 @@
202
203
  "nano-memoize": "^3.0.11",
203
204
  "once": "^1.4.0",
204
205
  "picomatch": "^4.0.1",
205
- "samadhi": "^1.0.0",
206
+ "samadhi": "^2.0.0",
206
207
  "try-catch": "^3.0.0",
207
208
  "try-to-catch": "^3.0.0",
208
209
  "wraptile": "^3.0.0",
package/putout.json CHANGED
@@ -229,6 +229,7 @@
229
229
  "remove-unreachable-code",
230
230
  "remove-duplicate-keys",
231
231
  "reuse-duplicate-init",
232
+ "split-assignment-expressions",
232
233
  "split-variable-declarations",
233
234
  "split-nested-destructuring",
234
235
  "simplify-assignment",