diff --git a/ChangeLog b/ChangeLog index c2dcd737..376e4106 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2023.07.03, v2.43.0 + +feature: +- 3362977 @putout/printer: tryStatement: newline +- 81004a0 @putout/printer: ClassDeclaration: spaces +- 869323a @putout/printer: ClassDeclaration: spaces + 2023.07.03, v2.42.1 feature: diff --git a/lib/tokenize/statements/try-statements.js b/lib/tokenize/statements/try-statements.js index e266526c..75ed09a9 100644 --- a/lib/tokenize/statements/try-statements.js +++ b/lib/tokenize/statements/try-statements.js @@ -3,7 +3,7 @@ const {isNext} = require('../is'); module.exports.TryStatement = { - print(path, {print, maybe}) { + print(path, {print}) { const finalizer = path.get('finalizer'); print.indent(); print('try '); @@ -18,9 +18,7 @@ module.exports.TryStatement = { print.newline(); } }, - afterSatisfy: () => [ - isNext, - ], + afterSatisfy: () => [isNext], after(path, {maybe, print}) { maybe.print.newline(!path.node.finalizer); print.breakline(); @@ -42,4 +40,3 @@ module.exports.CatchClause = (path, {print}) => { print(body); }; - diff --git a/package.json b/package.json index 3bac10fd..fc2ddb0b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@putout/printer", - "version": "2.42.1", + "version": "2.43.0", "type": "commonjs", "author": "coderaiser (https://github.com/coderaiser)", "description": "Simplest possible opinionated Babel AST printer for 🐊Putout",