JS-Beautifier v1.5.2 Release Notes

  • Description

    • ๐Ÿ‘Œ Improved indenting for statements, array, variable declaration, "Starless" block-comments
    • ๐Ÿ‘Œ Support for bitwise-not, yield, get, set, let, const, generator functions
    • Reserved words can be used as object property names
    • Added options: space_after_anon_function, end-with-newline
    • Properly tokenize Numbers (including decimals and exponents)
    • Do not break "x++ + y"
    • function declaration inside array behaves the same as in expression
    • Close String literals at newline
    • ๐Ÿ‘Œ Support handlebar syntax
    • Check <script> "type"-attribute
    • ๐Ÿ‘ Allow <style> and <script> tags to be unformatted
    • Port css nesting fix to python
    • ๐Ÿ›  Fix python six dependency
    • ๐ŸŽ‰ Initial very cursory support for ES6 module, export, and import

    ๐ŸŒ https://github.com/beautify-web/js-beautify/compare/v1.5.1...v1.5.2

    Closed Issues

    • ๐Ÿ‘ Allow custom elements to be unformatted (#540)
    • ๐Ÿ’… Need option to ignore brace style (#538)
    • ๐Ÿ”จ Refactor to Output and OutputLine classes (#536)
    • ๐ŸŒ Recognize ObjectLiteral on open brace (#535)
    • ๐Ÿ”จ Refactor to fully tokenize before formatting (#530)
    • ๐ŸŒ Cleanup checked in six.py file (#527)
    • ๐Ÿ”„ Changelog.md? (#526)
    • ๐Ÿ†• New line added between each css declaration (#523)
    • ๐ŸŒ Kendo Template scripts get messed up! (#516)
    • ๐ŸŒ SyntaxError: Unexpected token ++ (#514)
    • ๐ŸŒ space appears before open square bracket when the object name is "set" (#508)
    • ๐ŸŒ Unclosed string problem (#505)
    • ๐ŸŒ "--n" and "++n" are not indented like "n--" and "n++" are... (#495)
    • ๐Ÿ‘ Allow <style> and <script> tags to be unformatted (#494)
    • ๐ŸŒ Preserve new line at end of file (#492)
    • ๐ŸŒ Line wraps breaking numbers (causes syntax error) (#488)
    • ๐ŸŒ jsBeautify acts differently when handling different kinds of function expressions (#485)
    • ๐ŸŒ AttributeError: 'NoneType' object has no attribute 'groups' (#479)
    • โšก๏ธ installation doco for python need update -- pip install six? (#478)
    • ๐Ÿšš Move einars/js-beautify to beautify-web/js-beautify (#475)
    • Bring back space_after_anon_function (#474)
    • ๐Ÿ›  fix for #453, Incompatible handlebar syntax (#468)
    • ๐Ÿ“ฆ Python: missing explicit dependency on "six" package (#465)
    • ๐ŸŒ function declaration inside array, adds extra line. (#464)
    • ๐ŸŒ [es6] yield a array (#458)
    • ๐ŸŒ Publish v1.5.2 (#452)
    • ๐ŸŒ Port css colon character fix to python (#446)
    • ๐ŸŒ Cannot declare object literal properties with unquoted reserved words (#440)
    • ๐ŸŒ Do not put a space within function* generator functions. (#428)
    • ๐Ÿ‘• beautification of "nth-child" css fails csslint (#418)
    • ๐ŸŒ comment breaks indent (#413)
    • ๐ŸŒ AngularJS inline templates are being corrupted! (#385)
    • ๐ŸŒ Beautify HTML: Setting inline JS and CSS to stay unformatted (#383)
    • ๐ŸŒ Spaces in function definition (#372)
    • ๐ŸŒ Chained code indents break at comment lines (#314)
    • ๐ŸŒ Handling of newlines around if/else/if statements (#311)
    • ๐Ÿท Tags in javascript are being destroyed (#117)