@putout/printer 18.20.0 → 18.20.1

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,8 @@
1
+ 2026.06.20, v18.20.1
2
+
3
+ feature:
4
+ - 11c8ee02 @putout/printer: ExpressionStatement: isNextSimpleWithLeadingComments: BooleanLiteral
5
+
1
6
  2026.06.20, v18.20.0
2
7
 
3
8
  feature:
@@ -20,6 +20,7 @@ const {
20
20
  isTemplateLiteral,
21
21
  isExpressionStatement,
22
22
  isStatement,
23
+ isBooleanLiteral,
23
24
  } = types;
24
25
 
25
26
  function isNotLastOrParentLast(path) {
@@ -99,6 +100,9 @@ export function isNextSimpleWithLeadingComments(path) {
99
100
 
100
101
  const {expression} = next.node;
101
102
 
103
+ if (isBooleanLiteral(expression))
104
+ return true;
105
+
102
106
  if (isStringLiteral(expression))
103
107
  return true;
104
108
 
@@ -127,3 +131,4 @@ export const afterIf = createTypeChecker([
127
131
  ['+', satisfyAfter],
128
132
  ['+', isBeforeElse],
129
133
  ]);
134
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/printer",
3
- "version": "18.20.0",
3
+ "version": "18.20.1",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Simplest possible opinionated Babel AST printer for 🐊Putout",