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)