putout 33.1.0 → 33.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,7 +1,24 @@
1
+ 2023.11.13, v33.2.0
2
+
3
+ feature:
4
+ - 5a7a26ff5 @putout/plugin-apply-consistent-blocks: add
5
+ - afd7ab908 @putout/compare: __body: improve: no node check
6
+
7
+ 2023.11.12, v33.1.1
8
+
9
+ fix:
10
+ - 4b4cfb639 @putout/plugin-remove-empty: drop support of 🐊 < 33
11
+ - e62f498b7 @putout/plugin-nextjs: create-app-directory: report
12
+
13
+ feature:
14
+ - b3c8f32e2 putout: @putout/plugin-remove-empty v11.0.0
15
+ - 845380f3c putout: @putout/plugin-new v3.0.1
16
+ - 35f362c51 @putout/plugin-new: drop suport of 🐊 < 33
17
+
1
18
  2023.11.12, v33.1.0
2
19
 
3
20
  fix:
4
- - 885441dce featur: @putout/plugin-nodejs: add-node-preuse module
21
+ - 885441dce feature: @putout/plugin-nodejs: add-node-prefix: module
5
22
  - f191e04f3 @putout/processor-filesystem: merge: a couple sources in list
6
23
  - 7bea61cd5 @putout/plugin-filesystem: findFile
7
24
 
@@ -30,9 +30,8 @@ module.exports = ({fix, fixCount, isFlow, logError, raw, printer}) => async ({na
30
30
  printer: configurePrinter(name, printer),
31
31
  });
32
32
 
33
- if (e) {
33
+ if (e)
34
34
  raw && logError(e);
35
- }
36
35
 
37
36
  const {code = source} = result || {};
38
37
  const allPlaces = result ? result.places : parseError(e);
package/lib/loader.mjs CHANGED
@@ -32,11 +32,10 @@ export const transformSource = (source, context) => {
32
32
  name,
33
33
  });
34
34
 
35
- if (ignores(cwd, name, options)) {
35
+ if (ignores(cwd, name, options))
36
36
  return {
37
37
  source,
38
38
  };
39
- }
40
39
 
41
40
  const {code} = putout(source, {
42
41
  printer: 'putout',
@@ -23,9 +23,8 @@ module.exports = (name, match) => {
23
23
  dot: true,
24
24
  });
25
25
 
26
- if (isMatch(name)) {
26
+ if (isMatch(name))
27
27
  assign(rules, match[glob]);
28
- }
29
28
  }
30
29
 
31
30
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "33.1.0",
3
+ "version": "33.2.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",
@@ -74,6 +74,7 @@
74
74
  "@putout/operator-filesystem": "^1.0.1",
75
75
  "@putout/operator-regexp": "^1.0.0",
76
76
  "@putout/plugin-apply-at": "^2.0.0",
77
+ "@putout/plugin-apply-consistent-blocks": "^1.0.0",
77
78
  "@putout/plugin-apply-destructuring": "^7.0.0",
78
79
  "@putout/plugin-apply-dot-notation": "^1.0.0",
79
80
  "@putout/plugin-apply-early-return": "^3.0.0",
@@ -115,7 +116,7 @@
115
116
  "@putout/plugin-merge-duplicate-functions": "^2.0.0",
116
117
  "@putout/plugin-merge-duplicate-imports": "^10.0.0",
117
118
  "@putout/plugin-montag": "^2.0.0",
118
- "@putout/plugin-new": "^2.0.0",
119
+ "@putout/plugin-new": "^3.0.1",
119
120
  "@putout/plugin-nodejs": "^9.0.0",
120
121
  "@putout/plugin-npmignore": "^2.0.0",
121
122
  "@putout/plugin-package-json": "^5.0.0",
@@ -128,7 +129,7 @@
128
129
  "@putout/plugin-remove-debugger": "^5.0.0",
129
130
  "@putout/plugin-remove-duplicate-case": "^3.0.0",
130
131
  "@putout/plugin-remove-duplicate-keys": "^3.0.0",
131
- "@putout/plugin-remove-empty": "^10.0.0",
132
+ "@putout/plugin-remove-empty": "^11.0.0",
132
133
  "@putout/plugin-remove-iife": "^4.0.0",
133
134
  "@putout/plugin-remove-nested-blocks": "^6.0.0",
134
135
  "@putout/plugin-remove-unreachable-code": "^1.0.0",
package/putout.json CHANGED
@@ -31,6 +31,7 @@
31
31
  "remove-empty/import": "off"
32
32
  },
33
33
  "*.md": {
34
+ "apply-consistent-blocks": "off",
34
35
  "maybe": "off",
35
36
  "convert-quotes-to-backticks": "off",
36
37
  "conditions/convert-comparison-to-boolean": "off",
@@ -150,6 +151,7 @@
150
151
  "tape/convert-mock-require-to-mock-import": "off"
151
152
  },
152
153
  "plugins": [
154
+ "apply-consistent-blocks",
153
155
  "apply-at",
154
156
  "apply-dot-notation",
155
157
  "apply-early-return",