9c446b2ca0063d1fa6f00721da7ce2cf50def92ab8fd845fb52f8858694400ddc2fbb78d7d0396ee0efeff9580032e4e05c7a3a8d8a9e88f56ca1a23a91ec5 58 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877
  1. # Changelog
  2. ## v1.13.0
  3. ### Description
  4. This release truly fixes the python cssbeautifier installation and updates cssbeautifier cli to use the same general code as jsbeautifier.
  5. Also, as of this release Node.js 8.x is no longer guaranteed to work. Node.js 8.x LTS reached end-of-life in January 2020.
  6. Parts of our test infrastructure no longer support Node.js 8.x. The js-beautifier should still run on Node.js 8.x, but it is not part of the CI system and so not guaranteed to work.
  7. ### Closed Issues
  8. * (internal) Refactor python cssbeautifier to reuse jsbeautifier CLI methods ([#1832](https://github.com/beautify-web/js-beautify/pull/1832))
  9. * (internal) Switch from node-static to serve ([#1831](https://github.com/beautify-web/js-beautify/pull/1831))
  10. * Fixed pip install cssbeautifier ([#1830](https://github.com/beautify-web/js-beautify/pull/1830))
  11. ## v1.12.0
  12. ### Description
  13. ### Closed Issues
  14. * Python jsbeautifier fails for special chars ([#1809](https://github.com/beautify-web/js-beautify/issues/1809))
  15. * pip install cssbeautifier fails ([#1808](https://github.com/beautify-web/js-beautify/issues/1808))
  16. * Add expand brace-style option to css beautifier ([#1796](https://github.com/beautify-web/js-beautify/pull/1796))
  17. * Support nullish-coalescing ([#1794](https://github.com/beautify-web/js-beautify/issues/1794))
  18. * Upgrade ga.js to analytics.js ([#1777](https://github.com/beautify-web/js-beautify/issues/1777))
  19. * Newline rule not working with css-like files ([#1776](https://github.com/beautify-web/js-beautify/issues/1776))
  20. * no new line after self closing tag ([#1718](https://github.com/beautify-web/js-beautify/issues/1718))
  21. * HTML format, no break after <label>? ([#1365](https://github.com/beautify-web/js-beautify/issues/1365))
  22. * Does this extension still supports applying Allman style to CSS? ([#1353](https://github.com/beautify-web/js-beautify/issues/1353))
  23. * Add brace_style option for CSS ([#1259](https://github.com/beautify-web/js-beautify/issues/1259))
  24. ## v1.11.0
  25. ### Description
  26. ### Closed Issues
  27. * Please bump mkdirp to fix mkdirp@0.5.1 vulnerability ([#1768](https://github.com/beautify-web/js-beautify/issues/1768))
  28. * Incorrect indentation of Handlebars inline partials ([#1756](https://github.com/beautify-web/js-beautify/issues/1756))
  29. * Support optional-chaining ([#1727](https://github.com/beautify-web/js-beautify/issues/1727))
  30. * Please support es module ([#1706](https://github.com/beautify-web/js-beautify/issues/1706))
  31. * Support new js proposals: optional-chaining & pipeline-operator ([#1530](https://github.com/beautify-web/js-beautify/issues/1530))
  32. * Optional <p> closing not implemented ([#1503](https://github.com/beautify-web/js-beautify/issues/1503))
  33. ## v1.10.3
  34. ### Description
  35. ### Closed Issues
  36. * Unquoted href causes wrong indentation ([#1736](https://github.com/beautify-web/js-beautify/issues/1736))
  37. * Broken private fields in classes (JS) ([#1734](https://github.com/beautify-web/js-beautify/issues/1734))
  38. * Fix for python 2.7 and cli parameters ([#1712](https://github.com/beautify-web/js-beautify/pull/1712))
  39. * Search (ctrl+f) works only in view field in CodeMirror ([#1696](https://github.com/beautify-web/js-beautify/issues/1696))
  40. ## v1.10.2
  41. ### Description
  42. ### Closed Issues
  43. * Please update CodeMirror Addon ([#1695](https://github.com/beautify-web/js-beautify/issues/1695))
  44. * Nested braces indentation ([#223](https://github.com/beautify-web/js-beautify/issues/223))
  45. ## v1.10.1
  46. ### Description
  47. ### Closed Issues
  48. * javascript fails to format when <?php > is first text inside <script> tag ([#1687](https://github.com/beautify-web/js-beautify/issues/1687))
  49. * 414 Request-URI Too Large ([#1640](https://github.com/beautify-web/js-beautify/issues/1640))
  50. ## v1.10.0
  51. ### Description
  52. # Description
  53. * Added `templating` setting to control when template languages are recognized. All languages are off by default in Javascript and on by default in HTML.
  54. * Thanks to @HanabishiRecca, @averydev, @kalbasit, @asteinha for contributions
  55. https://github.com/beautify-web/js-beautify/compare/v1.9.1...v1.10.0
  56. ### Closed Issues
  57. * beautifying scss selector with colon in it adds space ([#1667](https://github.com/beautify-web/js-beautify/issues/1667))
  58. * Javascript multiline comments duplicates ([#1663](https://github.com/beautify-web/js-beautify/issues/1663))
  59. * Tokenizer crashes if the input terminates with a dot character. ([#1658](https://github.com/beautify-web/js-beautify/issues/1658))
  60. * stop reformatting valid css \\! into invalid \\ ! ([#1656](https://github.com/beautify-web/js-beautify/pull/1656))
  61. * wrong indent for unclosed <? - need to support disabling templating ([#1647](https://github.com/beautify-web/js-beautify/issues/1647))
  62. * Beautify inserts space before exclamation mark in comment <!-- in css <style> ([#1641](https://github.com/beautify-web/js-beautify/issues/1641))
  63. * 'less' mixins parameter formatting problem ([#1582](https://github.com/beautify-web/js-beautify/issues/1582))
  64. * Change css tests to use 4 space indenting instead of tabs ([#1527](https://github.com/beautify-web/js-beautify/issues/1527))
  65. * Braces after case get pushed onto new line ([#1357](https://github.com/beautify-web/js-beautify/issues/1357))
  66. * Extra space in pseudo-elements and pseudo-classes selectors ([#1233](https://github.com/beautify-web/js-beautify/issues/1233))
  67. * LESS formatting - mixins with multiple variables ([#1018](https://github.com/beautify-web/js-beautify/issues/1018))
  68. * Bug in less format ([#842](https://github.com/beautify-web/js-beautify/issues/842))
  69. ## v1.9.1
  70. ### Description
  71. ### Closed Issues
  72. * nested table not beautified correctly ([#1649](https://github.com/beautify-web/js-beautify/issues/1649))
  73. * Add an option to preserve indentation on empty lines ([#1322](https://github.com/beautify-web/js-beautify/issues/1322))
  74. ## v1.9.0
  75. ### Description
  76. # Description
  77. * Fixed Tab indenting - when tabs indenting enabled, they are used universally. Also, tab size customizable: 8-space tabs would mean each tab is treated as 8 spaces. (#1294, #1551)
  78. * Accurate line wrapping - Layout always wraps when line length exceed specified column, unless wrapping would not reduce line length. (#284, #1238)
  79. * Improved Template handling in HTML - Go, Django, Handlebars, ERB/EJS/ASP, PHP (still only handlebars indenting) (#881, #1602, #1620)
  80. * Improved Template handling in Javascript - ERB/EJS/ASP, PHP (no indenting, no Django or Handlebars due to potential syntax conflicts for curly braces) (#1377)
  81. * Fixed indenting of mustache inverted conditionals (#1623 @e2tha-e)
  82. * Fixed indenting for HTML tags with option end tags (#1213)
  83. https://github.com/beautify-web/js-beautify/compare/v1.8.9...v1.9.0
  84. ### Closed Issues
  85. * Incorrect indentation of `^` inverted section tags in Handlebars/Mustache code ([#1623](https://github.com/beautify-web/js-beautify/issues/1623))
  86. * PHP In HTML Attributes ([#1620](https://github.com/beautify-web/js-beautify/issues/1620))
  87. * DeanEdward python unpacker offset problem ([#1616](https://github.com/beautify-web/js-beautify/issues/1616))
  88. * CLI on Windows doesn't accept -f - for stdin? ([#1609](https://github.com/beautify-web/js-beautify/issues/1609))
  89. * HTML type attribute breaks JavaScript beautification? ([#1606](https://github.com/beautify-web/js-beautify/issues/1606))
  90. * Use of global MODE before declaration caused uglify problem ([#1604](https://github.com/beautify-web/js-beautify/issues/1604))
  91. * When building html tags using Mustache variables, extra whitespace is added after opening arrow ([#1602](https://github.com/beautify-web/js-beautify/issues/1602))
  92. * <script type="text/html">isnot abled to be beautified ([#1591](https://github.com/beautify-web/js-beautify/issues/1591))
  93. * _get_full_indent undefined ([#1590](https://github.com/beautify-web/js-beautify/issues/1590))
  94. * Website "autodetect" setting doesn't distinguish css vs javascript ([#1565](https://github.com/beautify-web/js-beautify/issues/1565))
  95. * Add setting to keep HTML tag text content unformatted or ignore custom delimiters ([#1560](https://github.com/beautify-web/js-beautify/issues/1560))
  96. * HTML auto formatting using spaces instead of tabs ([#1551](https://github.com/beautify-web/js-beautify/issues/1551))
  97. * Unclosed single quote in php tag causes formatting changes which break php code ([#1377](https://github.com/beautify-web/js-beautify/issues/1377))
  98. * Using tabs when wrapping attributes and wrapping if needed ([#1294](https://github.com/beautify-web/js-beautify/issues/1294))
  99. * HTML --wrap-attributes doesn't respect --wrap-line-length ([#1238](https://github.com/beautify-web/js-beautify/issues/1238))
  100. * Bad indent level(HTML) ([#1213](https://github.com/beautify-web/js-beautify/issues/1213))
  101. * js-beautify produces invalid code for variables with Unicode escape sequences ([#1211](https://github.com/beautify-web/js-beautify/issues/1211))
  102. * support vuejs ([#1154](https://github.com/beautify-web/js-beautify/issues/1154))
  103. * Go templates in HTML ([#881](https://github.com/beautify-web/js-beautify/issues/881))
  104. * Better behavior for javascript --wrap-line-length ([#284](https://github.com/beautify-web/js-beautify/issues/284))
  105. ## v1.8.9
  106. ### Description
  107. ### Closed Issues
  108. * Won't run from CLI - bad option name `files` ([#1583](https://github.com/beautify-web/js-beautify/issues/1583))
  109. * in the .vue file `space_after_anon_function` is invalid ([#1425](https://github.com/beautify-web/js-beautify/issues/1425))
  110. * Add function default_options() to beautifier.js ([#1364](https://github.com/beautify-web/js-beautify/issues/1364))
  111. * fix: Missing space before function parentheses ? ([#1077](https://github.com/beautify-web/js-beautify/issues/1077))
  112. * Support globs in CLI ([#787](https://github.com/beautify-web/js-beautify/issues/787))
  113. ## v1.8.8
  114. ### Description
  115. ### Closed Issues
  116. * async function in object wrong indentation ([#1573](https://github.com/beautify-web/js-beautify/issues/1573))
  117. ## v1.8.7
  118. ### Description
  119. ### Closed Issues
  120. * Add tests for html `indent_scripts` option ([#1518](https://github.com/beautify-web/js-beautify/issues/1518))
  121. * Support dynamic import ([#1197](https://github.com/beautify-web/js-beautify/issues/1197))
  122. * HTML: add an option to preserve manual wrapping of attributes ([#1125](https://github.com/beautify-web/js-beautify/issues/1125))
  123. * js-beautify adds a space between # and include ([#1114](https://github.com/beautify-web/js-beautify/issues/1114))
  124. * space_after_anon_function doesn't work with anon async functions ([#1034](https://github.com/beautify-web/js-beautify/issues/1034))
  125. * Space before function arguments (space-after-function) (space-after-named-function) ([#608](https://github.com/beautify-web/js-beautify/issues/608))
  126. ## v1.8.6
  127. ### Description
  128. Beautifier has moved to https://beautifier.io
  129. ### Closed Issues
  130. * JS beautify break the angular compile ([#1544](https://github.com/beautify-web/js-beautify/issues/1544))
  131. * base64 string is broken with v1.8.4 ([#1535](https://github.com/beautify-web/js-beautify/issues/1535))
  132. * Bookmarklet becomes totally useless ([#1408](https://github.com/beautify-web/js-beautify/issues/1408))
  133. * HTTPS ([#1399](https://github.com/beautify-web/js-beautify/issues/1399))
  134. * Beautify breaks when js starts with space followed by multi-line comment ([#789](https://github.com/beautify-web/js-beautify/issues/789))
  135. ## v1.8.4
  136. ### Description
  137. Broader adoption of 1.8.x revealed a few more high priority fixes
  138. ### Closed Issues
  139. * Multiple newlines added between empty textarea and "unformatted" inline elements ([#1534](https://github.com/beautify-web/js-beautify/issues/1534))
  140. * unindent_chained_methods broken ([#1533](https://github.com/beautify-web/js-beautify/issues/1533))
  141. ## v1.8.3
  142. ### Description
  143. ### Closed Issues
  144. * Missing Bower Assets ([#1521](https://github.com/beautify-web/js-beautify/issues/1521))
  145. * Javascript ternary breaked with `await` ([#1519](https://github.com/beautify-web/js-beautify/issues/1519))
  146. * Object property indented after `await` ([#1517](https://github.com/beautify-web/js-beautify/issues/1517))
  147. * Handlebars formatting problems ([#870](https://github.com/beautify-web/js-beautify/issues/870))
  148. * beautify.js doesn't have indent_level option ([#724](https://github.com/beautify-web/js-beautify/issues/724))
  149. ## v1.8.1
  150. ### Description
  151. ### Closed Issues
  152. * Why npm is a dependency? ([#1516](https://github.com/beautify-web/js-beautify/issues/1516))
  153. * indent_inner_html not working in v1.8.0 ([#1514](https://github.com/beautify-web/js-beautify/issues/1514))
  154. ## v1.8.0
  155. ### Description
  156. Massive set of fixes and improvements.
  157. Thanks to contributors: @cheerypick, @swan46, @MacKLess, @Elrendio, @madman-bob, @amanda-bot, @Hirse, @aeschli, and many more.
  158. Special thanks to @astronomersiva and @garretwilson for finding key bugs in the RC releases,
  159. and to @MacKLess for driving down the open bug count with tons of regression tests.
  160. Highlights:
  161. * CSS: `newline_between_rules` support for nested rules - CSS/SASS/SCSS/LESS (@MacKLess)
  162. * CSS: @import support in CSS (@MacKLess)
  163. * HTML: inline element support (@madman-bob)
  164. * HTML: `wrap_attributes` setting `align-multiple` (@cheerypick)
  165. * HTML: optional close tags do not over indent - li, tr, etc.
  166. * HTML: Improved line wrapping in HTML - still not fully correct
  167. * HTML: 10x performance improvement in HTML beautifier
  168. * JS: ES6 BigInt support (@thejoshwolfe)
  169. * JS: ES6 Dynamic import support
  170. * CSS: :hover for @extend formatting (@MacKLess)
  171. * HTML: Incorrect line wrapping issue (@andreyvolokitin)
  172. * JS: Javascript ++ Operator Indentation (@Elrendio)
  173. * JS: Better packer handling in Python (@swan46)
  174. ### Closed Issues
  175. * list items of nested lists get indented backwards ([#1501](https://github.com/beautify-web/js-beautify/issues/1501))
  176. * Make beautifier auto-convert options with dashes into underscores ([#1497](https://github.com/beautify-web/js-beautify/issues/1497))
  177. * ReferenceError: token is not defined ([#1496](https://github.com/beautify-web/js-beautify/issues/1496))
  178. * Publish v1.8.0 ([#1495](https://github.com/beautify-web/js-beautify/issues/1495))
  179. * still probem #1439 / #1337 ([#1491](https://github.com/beautify-web/js-beautify/issues/1491))
  180. * Duplicating HTML Code Nested In PHP ([#1483](https://github.com/beautify-web/js-beautify/issues/1483))
  181. * Handlebars - `if` tags are broken when using helper with `textarea` ([#1482](https://github.com/beautify-web/js-beautify/issues/1482))
  182. * TypeError: Cannot read property '1' of null ([#1481](https://github.com/beautify-web/js-beautify/issues/1481))
  183. * Space in Self Closing Tag Issue ([#1478](https://github.com/beautify-web/js-beautify/issues/1478))
  184. * Weird Formatting in VSCode ([#1475](https://github.com/beautify-web/js-beautify/issues/1475))
  185. * Indent with tab issue on website ([#1470](https://github.com/beautify-web/js-beautify/issues/1470))
  186. * Contents of hbs tags are converted to lowercase ([#1464](https://github.com/beautify-web/js-beautify/issues/1464))
  187. * HTML tags are indented wrongly when attributes are present ([#1462](https://github.com/beautify-web/js-beautify/issues/1462))
  188. * hbs tags are stripped when there is a comment below or inline ([#1461](https://github.com/beautify-web/js-beautify/issues/1461))
  189. * Spaces added to handlebars with '=' ([#1460](https://github.com/beautify-web/js-beautify/issues/1460))
  190. * jsbeautifier.org don't works ([#1445](https://github.com/beautify-web/js-beautify/issues/1445))
  191. * Commenting code and then beautifying removes line breaks ([#1440](https://github.com/beautify-web/js-beautify/issues/1440))
  192. * Less: Where is my space? ([#1411](https://github.com/beautify-web/js-beautify/issues/1411))
  193. * No newline after @import ([#1406](https://github.com/beautify-web/js-beautify/issues/1406))
  194. * "html.format.wrapAttributes": "force-aligned" adds empty line on long attributes ([#1403](https://github.com/beautify-web/js-beautify/issues/1403))
  195. * HTML: wrap_line_length is handled incorrectly ([#1401](https://github.com/beautify-web/js-beautify/issues/1401))
  196. * js-beautify is breaking code by adding space after import ([#1393](https://github.com/beautify-web/js-beautify/issues/1393))
  197. * JS-Beautify should format XML tags inside HTML files ([#1383](https://github.com/beautify-web/js-beautify/issues/1383))
  198. * python unpacker can not handle if radix given as [] and not as a number ([#1381](https://github.com/beautify-web/js-beautify/issues/1381))
  199. * unindent_chained_methods breaks indentation for if statements without brackets ([#1378](https://github.com/beautify-web/js-beautify/issues/1378))
  200. * function parameters merged into single line when starting with ! or [ ([#1374](https://github.com/beautify-web/js-beautify/issues/1374))
  201. * CSS selector issue (header > div[class~="div-all"]) in SCSS file ([#1373](https://github.com/beautify-web/js-beautify/issues/1373))
  202. * Add "Create Issue for Unexpected Output" button to website ([#1371](https://github.com/beautify-web/js-beautify/issues/1371))
  203. * Add combobox to control type of beautification ([#1370](https://github.com/beautify-web/js-beautify/issues/1370))
  204. * Add Options textbox to website for debugging ([#1369](https://github.com/beautify-web/js-beautify/issues/1369))
  205. * Python version fails to properly beautify packed code ([#1367](https://github.com/beautify-web/js-beautify/issues/1367))
  206. * preserve-newline doesn't work for text blocks inside tags ([#1352](https://github.com/beautify-web/js-beautify/issues/1352))
  207. * How to keep comments on their own lines after formating ([#1348](https://github.com/beautify-web/js-beautify/issues/1348))
  208. * Beautification of Multiline PHP ([#1346](https://github.com/beautify-web/js-beautify/issues/1346))
  209. * Beautification of PHP with echo short tags ([#1339](https://github.com/beautify-web/js-beautify/issues/1339))
  210. * <button> with force-expand-multiline formatting bug ([#1335](https://github.com/beautify-web/js-beautify/issues/1335))
  211. * js-beautify 1.7.5 breaks some correct JS code when run with -X ([#1334](https://github.com/beautify-web/js-beautify/issues/1334))
  212. * URGENT: @extend with :hover, :focus and so on... ([#1331](https://github.com/beautify-web/js-beautify/issues/1331))
  213. * JSBeautify options for programmatic use? ([#1327](https://github.com/beautify-web/js-beautify/issues/1327))
  214. * js-beautify: fix handling for --eol and --outfile ([#1315](https://github.com/beautify-web/js-beautify/pull/1315))
  215. * Note that `gsort` is GNU sort ([#1314](https://github.com/beautify-web/js-beautify/issues/1314))
  216. * `pip` doesn't use same version as `/usr/bin/env python` ([#1312](https://github.com/beautify-web/js-beautify/issues/1312))
  217. * Negative numbers removes newlines in arrays ([#1288](https://github.com/beautify-web/js-beautify/issues/1288))
  218. * Wrap and align html attributes when line reaches wrap-line-length ([#1285](https://github.com/beautify-web/js-beautify/issues/1285))
  219. * Javascript ++ Operator get wrong indent ([#1283](https://github.com/beautify-web/js-beautify/issues/1283))
  220. * Generate js-beautify executable properly on windows when installed from PIP ([#1266](https://github.com/beautify-web/js-beautify/issues/1266))
  221. * Add or preserve empty line between nested SCSS rules ([#1258](https://github.com/beautify-web/js-beautify/issues/1258))
  222. * Create beta channel for releases ([#1255](https://github.com/beautify-web/js-beautify/issues/1255))
  223. * Add install tests for packages ([#1254](https://github.com/beautify-web/js-beautify/issues/1254))
  224. * Formatting slow when line wrap is set ([#1231](https://github.com/beautify-web/js-beautify/issues/1231))
  225. * [!true && ...] Negated expressions in an array get collapsed into a single line ([#1229](https://github.com/beautify-web/js-beautify/issues/1229))
  226. * await import(...) ([#1228](https://github.com/beautify-web/js-beautify/issues/1228))
  227. * The result of "Format document" is weird of certain HTML content. ([#1223](https://github.com/beautify-web/js-beautify/issues/1223))
  228. * (next_tag || "").match is not a function ([#1202](https://github.com/beautify-web/js-beautify/issues/1202))
  229. * html.format.wrapAttributes on handlebars template ([#1199](https://github.com/beautify-web/js-beautify/issues/1199))
  230. * Don't indent unclosed HTML tags containing server directives "<@" ([#1193](https://github.com/beautify-web/js-beautify/issues/1193))
  231. * `force-expand-multiline` doesn't work as expected ([#1186](https://github.com/beautify-web/js-beautify/issues/1186))
  232. * HTML text content formatted incorrectly ([#1184](https://github.com/beautify-web/js-beautify/issues/1184))
  233. * Content deleted when formatting with indent_handlebars: true ([#1174](https://github.com/beautify-web/js-beautify/issues/1174))
  234. * Nested span tags not indenting properly ([#1167](https://github.com/beautify-web/js-beautify/issues/1167))
  235. * SCSS Comment Issue ([#1165](https://github.com/beautify-web/js-beautify/issues/1165))
  236. * Less function parameters are wrapped unexpected ([#1156](https://github.com/beautify-web/js-beautify/issues/1156))
  237. * Support underscore templates ([#1130](https://github.com/beautify-web/js-beautify/issues/1130))
  238. * html-bar/handlebar {{else if}} block is indented ([#1123](https://github.com/beautify-web/js-beautify/issues/1123))
  239. * Wrap line length, first line not correct ([#1122](https://github.com/beautify-web/js-beautify/issues/1122))
  240. * TypeError: Cannot read property 'replace' of undefined ([#1120](https://github.com/beautify-web/js-beautify/issues/1120))
  241. * Strange behaviours of formatting for double spans ([#1113](https://github.com/beautify-web/js-beautify/issues/1113))
  242. * Missing space between "else" and "if". ([#1107](https://github.com/beautify-web/js-beautify/issues/1107))
  243. * invalid indentation for html code ([#1098](https://github.com/beautify-web/js-beautify/issues/1098))
  244. * HTML "select" tags have too much indentation ([#1097](https://github.com/beautify-web/js-beautify/issues/1097))
  245. * Formatting breaks apart unquoted attribute ([#1094](https://github.com/beautify-web/js-beautify/issues/1094))
  246. * HTML formatting wraps ending block tag for no reason with nested inline elements ([#1041](https://github.com/beautify-web/js-beautify/issues/1041))
  247. * Ignore expressions in handlebars tags. ([#1040](https://github.com/beautify-web/js-beautify/issues/1040))
  248. * not correctly joining lines for HTML ([#1033](https://github.com/beautify-web/js-beautify/issues/1033))
  249. * Fails to format SVG files properly ([#1027](https://github.com/beautify-web/js-beautify/issues/1027))
  250. * Template tags with new lines in them ([#1016](https://github.com/beautify-web/js-beautify/issues/1016))
  251. * Span tags do not re-indent correctly ([#1010](https://github.com/beautify-web/js-beautify/issues/1010))
  252. * Error in --eol processing in python ([#987](https://github.com/beautify-web/js-beautify/issues/987))
  253. * Extra space added when quote is present ([#943](https://github.com/beautify-web/js-beautify/issues/943))
  254. * weird formatting for HTML5 <tr> ([#882](https://github.com/beautify-web/js-beautify/issues/882))
  255. * Respect non-breaking spaces ([#869](https://github.com/beautify-web/js-beautify/issues/869))
  256. * Media Queries style issue ([#863](https://github.com/beautify-web/js-beautify/issues/863))
  257. * Weird Beautify Style? ([#857](https://github.com/beautify-web/js-beautify/issues/857))
  258. * "unformatted" paradigm broken, "unformatted" and "inline" are not the same ([#841](https://github.com/beautify-web/js-beautify/issues/841))
  259. * Increment/Decrement Operator on object property extra indent on subsequent line ([#814](https://github.com/beautify-web/js-beautify/issues/814))
  260. * Inconsistence of "newline_between_rules" with @import or @media ([#769](https://github.com/beautify-web/js-beautify/issues/769))
  261. * Unexpected line break in "-1" ([#740](https://github.com/beautify-web/js-beautify/issues/740))
  262. * Blank line before and after CSS / JS comments ([#736](https://github.com/beautify-web/js-beautify/issues/736))
  263. * newline_between_rules support for Sass (enhancement) ([#657](https://github.com/beautify-web/js-beautify/issues/657))
  264. * CSS comment spacing disregards `newline_between_rules`, `selector_separator_newline` ([#645](https://github.com/beautify-web/js-beautify/issues/645))
  265. * HTML: wrap_line_length may produce buggy spaces ([#607](https://github.com/beautify-web/js-beautify/issues/607))
  266. * Wrong code formatting using Handlebars ([#576](https://github.com/beautify-web/js-beautify/issues/576))
  267. * option to ignore section or line in html ([#575](https://github.com/beautify-web/js-beautify/issues/575))
  268. * Tokenize html before beautifying ([#546](https://github.com/beautify-web/js-beautify/issues/546))
  269. * Extra newline is inserted after the comment line instead of before it ([#531](https://github.com/beautify-web/js-beautify/issues/531))
  270. * html-beautify's max_preserve_newlines preserves one new line too much ([#517](https://github.com/beautify-web/js-beautify/issues/517))
  271. * Disable/Skip HTML single-line comment ([#426](https://github.com/beautify-web/js-beautify/issues/426))
  272. * Add tests for various javascript dependency loading libraries ([#360](https://github.com/beautify-web/js-beautify/issues/360))
  273. * Formatting of @import broken ([#358](https://github.com/beautify-web/js-beautify/issues/358))
  274. * newline removal seems not to work properly (in sublime text 3 on xp pro sp3) ([#348](https://github.com/beautify-web/js-beautify/issues/348))
  275. ## v1.7.5
  276. ### Description
  277. ### Closed Issues
  278. * Strict mode: js_source_text is not defined [CSS] ([#1286](https://github.com/beautify-web/js-beautify/issues/1286))
  279. * Made brace_style option more inclusive ([#1277](https://github.com/beautify-web/js-beautify/pull/1277))
  280. * White space before"!important" tag missing in CSS beautify ([#1273](https://github.com/beautify-web/js-beautify/issues/1273))
  281. ## v1.7.4
  282. ### Description
  283. Thanks @cejast for contributing!
  284. ### Closed Issues
  285. * Whitespace after ES7 `async` keyword for arrow functions ([#896](https://github.com/beautify-web/js-beautify/issues/896))
  286. ## v1.7.3
  287. ### Description
  288. * Fixed broken installs
  289. Lessons learned:
  290. * Don't publish and go to bed.
  291. * I thought I had sufficient test coverage and I did not. Tests will be implemented to protect against this before the next release (#1254).
  292. * Also, this break highlights the need to create a beta channel for releases and a way to request feedback on beta releases (#1255).
  293. * The project has been maintained by mostly one person over the past year or so, with some additions by other individuals. This break also highlights the need for this project to have a few more people who have the ability address issues/emergencies (#1256).
  294. * Many projects do not not lock or even limit their version dependencies. Those that do often use `^x.x.x` instead of `~x.x.x`. Consider switching to making major version updates under more circumstances to limit risk to dependent projects. (#1257)
  295. ### Closed Issues
  296. * Version 1.7.0 fail to install through pip ([#1250](https://github.com/beautify-web/js-beautify/issues/1250))
  297. * Installing js-beautify fails ([#1247](https://github.com/beautify-web/js-beautify/issues/1247))
  298. ## v1.7.0
  299. ### Description
  300. ### Closed Issues
  301. * undindent-chained-methods option. Resolves #482 ([#1240](https://github.com/beautify-web/js-beautify/pull/1240))
  302. * Add test and tools folder to npmignore ([#1239](https://github.com/beautify-web/js-beautify/issues/1239))
  303. * incorrect new-line insertion after "yield" ([#1206](https://github.com/beautify-web/js-beautify/issues/1206))
  304. * Do not modify built-in objects ([#1205](https://github.com/beautify-web/js-beautify/issues/1205))
  305. * Fix label checking incorrect box when clicked ([#1169](https://github.com/beautify-web/js-beautify/pull/1169))
  306. * Webpack ([#1149](https://github.com/beautify-web/js-beautify/pull/1149))
  307. * daisy-chain indentation leads to over-indentation ([#482](https://github.com/beautify-web/js-beautify/issues/482))
  308. ## v1.6.12
  309. ### Description
  310. ### Closed Issues
  311. * CSS: Preserve Newlines ([#537](https://github.com/beautify-web/js-beautify/issues/537))
  312. ## v1.6.11
  313. ### Description
  314. Reverted #1117 - Preserve newlines broken
  315. ### Closed Issues
  316. * On beautify, new line before next CSS selector ([#1142](https://github.com/beautify-web/js-beautify/issues/1142))
  317. ## v1.6.10
  318. ### Description
  319. Added `preserver_newlines` to css beautifier
  320. ### Closed Issues
  321. ## v1.6.9
  322. ### Description
  323. * Fixed html formatting issue with attribute wrap (Thanks, @HookyQR!)
  324. * Fixed python package publishing
  325. ### Closed Issues
  326. * Wrong HTML beautification starting with v1.6.5 ([#1115](https://github.com/beautify-web/js-beautify/issues/1115))
  327. * Ignore linebreak when meet handlebar ([#1104](https://github.com/beautify-web/js-beautify/pull/1104))
  328. * Lines are not un-indented correctly when attributes are wrapped ([#1103](https://github.com/beautify-web/js-beautify/issues/1103))
  329. * force-aligned is not aligned when indenting with tabs ([#1102](https://github.com/beautify-web/js-beautify/issues/1102))
  330. * Python package fails to publish ([#1101](https://github.com/beautify-web/js-beautify/issues/1101))
  331. * Explaination of 'operator_position' is absent from README.md ([#1047](https://github.com/beautify-web/js-beautify/issues/1047))
  332. ## v1.6.8
  333. ### Description
  334. * Fixed a batch of comment and semicolon-less code bugs
  335. ### Closed Issues
  336. * Incorrect indentation after loop with comment ([#1090](https://github.com/beautify-web/js-beautify/issues/1090))
  337. * Extra newline is inserted after beautifying code with anonymous function ([#1085](https://github.com/beautify-web/js-beautify/issues/1085))
  338. * end brace with next comment line make bad indent ([#1043](https://github.com/beautify-web/js-beautify/issues/1043))
  339. * Javascript comment in last line doesn't beautify well ([#964](https://github.com/beautify-web/js-beautify/issues/964))
  340. * indent doesn't work with comment (jsdoc) ([#913](https://github.com/beautify-web/js-beautify/issues/913))
  341. * Wrong indentation, when new line between chained methods ([#892](https://github.com/beautify-web/js-beautify/issues/892))
  342. * Comments in a non-semicolon style have extra indent ([#815](https://github.com/beautify-web/js-beautify/issues/815))
  343. * [bug] Incorrect indentation due to commented line(s) following a function call with a function argument. ([#713](https://github.com/beautify-web/js-beautify/issues/713))
  344. * Wrong indent formatting ([#569](https://github.com/beautify-web/js-beautify/issues/569))
  345. ## v1.6.7
  346. ### Description
  347. Added `content_unformatted` option (Thanks @arai-a)
  348. ### Closed Issues
  349. * HTML pre code indentation ([#928](https://github.com/beautify-web/js-beautify/issues/928))
  350. * Beautify script/style tags but ignore their inner JS/CSS content ([#906](https://github.com/beautify-web/js-beautify/issues/906))
  351. ## v1.6.6
  352. ### Description
  353. * Added support for editorconfig from stdin
  354. * Added js-beautify to cdnjs
  355. * Fixed CRLF to LF for HTML and CSS on windows
  356. * Added inheritance/overriding to config format (Thanks @DaniGuardiola and @HookyQR)
  357. * Added `force-align` to `wrap-attributes` (Thanks @Lukinos)
  358. * Added `force-expand-multiline` to `wrap-attributes` (Thanks @tobias-zucali)
  359. * Added `preserve-inline` as independent brace setting (Thanks @Coburn37)
  360. * Fixed handlebars with angle-braces (Thanks @mmsqe)
  361. ### Closed Issues
  362. * Wrong indentation for comment after nested unbraced control constructs ([#1079](https://github.com/beautify-web/js-beautify/issues/1079))
  363. * Should prefer breaking the line after operator ? instead of before operator < ([#1073](https://github.com/beautify-web/js-beautify/issues/1073))
  364. * New option "force-expand-multiline" for "wrap_attributes" ([#1070](https://github.com/beautify-web/js-beautify/pull/1070))
  365. * Breaks if html file starts with comment ([#1068](https://github.com/beautify-web/js-beautify/issues/1068))
  366. * collapse-preserve-inline restricts users to collapse brace_style ([#1057](https://github.com/beautify-web/js-beautify/issues/1057))
  367. * Parsing failure on numbers with "e" ([#1054](https://github.com/beautify-web/js-beautify/issues/1054))
  368. * Issue with Browser Instructions ([#1053](https://github.com/beautify-web/js-beautify/issues/1053))
  369. * Add preserve inline function for expand style braces ([#1052](https://github.com/beautify-web/js-beautify/issues/1052))
  370. * Update years in LICENSE ([#1038](https://github.com/beautify-web/js-beautify/issues/1038))
  371. * JS. Switch with template literals. Unexpected indentation. ([#1030](https://github.com/beautify-web/js-beautify/issues/1030))
  372. * The object with spread object formatted not correctly ([#1023](https://github.com/beautify-web/js-beautify/issues/1023))
  373. * Bad output generator function in class ([#1013](https://github.com/beautify-web/js-beautify/issues/1013))
  374. * Support editorconfig for stdin ([#1012](https://github.com/beautify-web/js-beautify/issues/1012))
  375. * Publish to cdnjs ([#992](https://github.com/beautify-web/js-beautify/issues/992))
  376. * breaks if handlebars comments contain handlebars tags ([#930](https://github.com/beautify-web/js-beautify/issues/930))
  377. * Using jsbeautifyrc is broken ([#929](https://github.com/beautify-web/js-beautify/issues/929))
  378. * Option to put HTML attributes on their own lines, aligned ([#916](https://github.com/beautify-web/js-beautify/issues/916))
  379. * Erroneously changes CRLF to LF on Windows in HTML and CSS ([#899](https://github.com/beautify-web/js-beautify/issues/899))
  380. * Weird space in {get } vs { normal } ([#888](https://github.com/beautify-web/js-beautify/issues/888))
  381. * Bad for-of formatting with constant Array ([#875](https://github.com/beautify-web/js-beautify/issues/875))
  382. * Problems with filter property in css and scss ([#755](https://github.com/beautify-web/js-beautify/issues/755))
  383. * Add "collapse-one-line" option for non-collapse brace styles ([#487](https://github.com/beautify-web/js-beautify/issues/487))
  384. ## v1.6.4
  385. ### Description
  386. * Fixed JSX multi-line root element handling
  387. * Fixed CSS Combinator spacing (NOTE: use `space_around_combinator` option)
  388. * Fixed (more) CSS pseudo-class and pseudo-element selectors (Thanks @Konamiman!)
  389. * Fixed Shorthand generator functions and `yield*` (Thanks @jgeurts!)
  390. * Added EditorConfig support (Thanks @ethanluoyc!)
  391. * Added indent_body_inner_html and indent_head_inner_html (Thanks @spontaliku-softaria!)
  392. * Added js-beautify to https://cdn.rawgit.com (Thanks @zxqfox)
  393. ### Closed Issues
  394. * css-beautify sibling combinator space issue ([#1001](https://github.com/beautify-web/js-beautify/issues/1001))
  395. * Bug: Breaks when the source code it found an unclosed multiline comment. ([#996](https://github.com/beautify-web/js-beautify/issues/996))
  396. * CSS: Preserve white space before pseudo-class and pseudo-element selectors ([#985](https://github.com/beautify-web/js-beautify/pull/985))
  397. * Spelling error in token definition ([#984](https://github.com/beautify-web/js-beautify/issues/984))
  398. * collapse-preserve-inline does not preserve simple, single line ("return") statements ([#982](https://github.com/beautify-web/js-beautify/issues/982))
  399. * Publish the library via cdn ([#971](https://github.com/beautify-web/js-beautify/issues/971))
  400. * Bug with css calc() function ([#957](https://github.com/beautify-web/js-beautify/issues/957))
  401. * &:first-of-type:not(:last-child) when prettified insert erroneous white character ([#952](https://github.com/beautify-web/js-beautify/issues/952))
  402. * Shorthand generator functions are formatting strangely ([#941](https://github.com/beautify-web/js-beautify/issues/941))
  403. * Add handlebars support on cli for html ([#935](https://github.com/beautify-web/js-beautify/pull/935))
  404. * Do not put a space within `yield*` generator functions. ([#920](https://github.com/beautify-web/js-beautify/issues/920))
  405. * Possible to add an indent_inner_inner_html option? (Prevent indenting second-level tags) ([#917](https://github.com/beautify-web/js-beautify/issues/917))
  406. * Messing up jsx formatting multi-line attribute ([#914](https://github.com/beautify-web/js-beautify/issues/914))
  407. * Bug report: Closing 'body' tag isn't formatted correctly ([#900](https://github.com/beautify-web/js-beautify/issues/900))
  408. * { throw … } not working with collapse-preserve-inline ([#898](https://github.com/beautify-web/js-beautify/issues/898))
  409. * ES6 concise method not propely indented ([#889](https://github.com/beautify-web/js-beautify/issues/889))
  410. * CSS beautify changing symantics ([#883](https://github.com/beautify-web/js-beautify/issues/883))
  411. * Dojo unsupported script types. ([#874](https://github.com/beautify-web/js-beautify/issues/874))
  412. * Readme version comment ([#868](https://github.com/beautify-web/js-beautify/issues/868))
  413. * Extra space after pseudo-elements within :not() ([#618](https://github.com/beautify-web/js-beautify/issues/618))
  414. * space in media queries after colon &: selectors ([#565](https://github.com/beautify-web/js-beautify/issues/565))
  415. * Integrating editor config ([#551](https://github.com/beautify-web/js-beautify/issues/551))
  416. * Preserve short expressions/statements on single line ([#338](https://github.com/beautify-web/js-beautify/issues/338))
  417. ## v1.6.3
  418. ### Description
  419. Bug fixes
  420. ### Closed Issues
  421. * CLI broken when output path is not set ([#933](https://github.com/beautify-web/js-beautify/issues/933))
  422. * huge memory leak ([#909](https://github.com/beautify-web/js-beautify/issues/909))
  423. * don't print unpacking errors on stdout (python) ([#884](https://github.com/beautify-web/js-beautify/pull/884))
  424. * Fix incomplete list of non-positionable operators (python lib) ([#878](https://github.com/beautify-web/js-beautify/pull/878))
  425. * Fix Issue #844 ([#873](https://github.com/beautify-web/js-beautify/pull/873))
  426. * assignment exponentiation operator ([#864](https://github.com/beautify-web/js-beautify/issues/864))
  427. * Bug in Less mixins ([#844](https://github.com/beautify-web/js-beautify/issues/844))
  428. * Can't Nest Conditionals ([#680](https://github.com/beautify-web/js-beautify/issues/680))
  429. * ternary operations ([#670](https://github.com/beautify-web/js-beautify/issues/670))
  430. * Support newline before logical or ternary operator ([#605](https://github.com/beautify-web/js-beautify/issues/605))
  431. * Provide config files for format and linting ([#336](https://github.com/beautify-web/js-beautify/issues/336))
  432. ## v1.6.2
  433. ### Description
  434. ### Closed Issues
  435. * Add missing 'collapse-preserve-inline' option to js module ([#861](https://github.com/beautify-web/js-beautify/pull/861))
  436. ## v1.6.1
  437. ### Description
  438. Fixes for regressions found in 1.6.0
  439. ### Closed Issues
  440. * Inconsistent formatting for arrays of objects ([#860](https://github.com/beautify-web/js-beautify/issues/860))
  441. * Publish v1.6.1 ([#859](https://github.com/beautify-web/js-beautify/issues/859))
  442. * Space added to "from++" due to ES6 keyword ([#858](https://github.com/beautify-web/js-beautify/issues/858))
  443. * Changelog generator doesn't sort versions above 9 right ([#778](https://github.com/beautify-web/js-beautify/issues/778))
  444. * space-after-anon-function not applied to object properties ([#761](https://github.com/beautify-web/js-beautify/issues/761))
  445. * Separating 'input' elements adds whitespace ([#580](https://github.com/beautify-web/js-beautify/issues/580))
  446. * Inline Format ([#572](https://github.com/beautify-web/js-beautify/issues/572))
  447. * Preserve attributes line break in HTML ([#455](https://github.com/beautify-web/js-beautify/issues/455))
  448. * Multiline Array ([#406](https://github.com/beautify-web/js-beautify/issues/406))
  449. ## v1.6.0
  450. ### Description
  451. * Inline/short object and json preservation (all rejoice!)
  452. * ES6 annotations, module import/export, arrow functions, concise methods, and more
  453. * JSX spread attributes
  454. * HTML wrap attributes, inline element fixes, doctype and php fixes
  455. * Test framework hardening
  456. * Windows build fixed and covered by appveyor continuous integration
  457. ### Closed Issues
  458. * Individual tests pollute options object ([#855](https://github.com/beautify-web/js-beautify/issues/855))
  459. * Object attribute assigned fat arrow function with implicit return of a ternary causes next line to indent ([#854](https://github.com/beautify-web/js-beautify/issues/854))
  460. * Treat php tags as single in html ([#850](https://github.com/beautify-web/js-beautify/pull/850))
  461. * Read piped input by default ([#849](https://github.com/beautify-web/js-beautify/pull/849))
  462. * Replace makefile dependency with bash script ([#848](https://github.com/beautify-web/js-beautify/pull/848))
  463. * list of HTML inline elements incomplete; wraps inappropriately ([#840](https://github.com/beautify-web/js-beautify/issues/840))
  464. * Beautifying bracket-less if/elses ([#838](https://github.com/beautify-web/js-beautify/issues/838))
  465. * <col> elements within a <colgroup> are getting indented incorrectly ([#836](https://github.com/beautify-web/js-beautify/issues/836))
  466. * single attribute breaks jsx beautification ([#834](https://github.com/beautify-web/js-beautify/issues/834))
  467. * Improve Python packaging ([#831](https://github.com/beautify-web/js-beautify/pull/831))
  468. * Erroneously changes CRLF to LF on Windows. ([#829](https://github.com/beautify-web/js-beautify/issues/829))
  469. * Can't deal with XHTML5 ([#828](https://github.com/beautify-web/js-beautify/issues/828))
  470. * HTML after PHP is indented ([#826](https://github.com/beautify-web/js-beautify/issues/826))
  471. * exponentiation operator ([#825](https://github.com/beautify-web/js-beautify/issues/825))
  472. * Add support for script type "application/ld+json" ([#821](https://github.com/beautify-web/js-beautify/issues/821))
  473. * package.json: Remove "preferGlobal" option ([#820](https://github.com/beautify-web/js-beautify/pull/820))
  474. * Don't use array.indexOf() to support legacy browsers ([#816](https://github.com/beautify-web/js-beautify/pull/816))
  475. * ES6 Object Shortand Indenting Weirdly Sometimes ([#810](https://github.com/beautify-web/js-beautify/issues/810))
  476. * Implicit Return Function on New Line not Preserved ([#806](https://github.com/beautify-web/js-beautify/issues/806))
  477. * Misformating "0b" Binary Strings ([#803](https://github.com/beautify-web/js-beautify/issues/803))
  478. * Beautifier breaks ES6 nested template strings ([#797](https://github.com/beautify-web/js-beautify/issues/797))
  479. * Misformating "0o" Octal Strings ([#792](https://github.com/beautify-web/js-beautify/issues/792))
  480. * Do not use hardcoded directory for tests ([#788](https://github.com/beautify-web/js-beautify/pull/788))
  481. * Handlebars {{else}} tag not given a newline ([#784](https://github.com/beautify-web/js-beautify/issues/784))
  482. * Wrong indentation for XML header (<?xml version="1.0"?>) ([#783](https://github.com/beautify-web/js-beautify/issues/783))
  483. * is_whitespace for loop incrementing wrong variable ([#777](https://github.com/beautify-web/js-beautify/pull/777))
  484. * Newline is inserted after comment with comma_first ([#775](https://github.com/beautify-web/js-beautify/issues/775))
  485. * Cannot copy more than 1000 characters out of CodeMirror buffer ([#768](https://github.com/beautify-web/js-beautify/issues/768))
  486. * Missing 'var' in beautify-html.js; breaks strict mode ([#763](https://github.com/beautify-web/js-beautify/issues/763))
  487. * Fix typo in the example javascript code of index.html ([#753](https://github.com/beautify-web/js-beautify/pull/753))
  488. * Prevent incorrect wrapping of return statements. ([#751](https://github.com/beautify-web/js-beautify/pull/751))
  489. * `js-beautify -X` breaks code with jsx spread attributes ([#734](https://github.com/beautify-web/js-beautify/issues/734))
  490. * Unhelpful error when .jsbeautifyrc has invalid json ([#728](https://github.com/beautify-web/js-beautify/issues/728))
  491. * Support for ES7 decorators ([#685](https://github.com/beautify-web/js-beautify/issues/685))
  492. * Don't wrap XML declaration (or processing instructions) ([#683](https://github.com/beautify-web/js-beautify/pull/683))
  493. * JSX/JS: Single field objects should not expand ([#674](https://github.com/beautify-web/js-beautify/issues/674))
  494. * ES6 Module Loading Object Destructuring newlines ([#668](https://github.com/beautify-web/js-beautify/issues/668))
  495. * Beautifying css tears @media in two lines, adds spaces in names with hyphens ([#656](https://github.com/beautify-web/js-beautify/issues/656))
  496. * ES6 concise method not propely indented ([#647](https://github.com/beautify-web/js-beautify/issues/647))
  497. * Extra newline inserted with `wrap_attributes` set to "force" ([#641](https://github.com/beautify-web/js-beautify/issues/641))
  498. * `wrap_attributes` ignores `wrap_attributes_indent_size` and `wrap_line_length` when set to "auto" ([#640](https://github.com/beautify-web/js-beautify/issues/640))
  499. * Error building on Windows ([#638](https://github.com/beautify-web/js-beautify/issues/638))
  500. * Mixed shorthand function with arrow function in object literal is mis-formatted ([#602](https://github.com/beautify-web/js-beautify/issues/602))
  501. * Space does not let save using "&:" ([#594](https://github.com/beautify-web/js-beautify/issues/594))
  502. * Indenting is broken in some cases ([#578](https://github.com/beautify-web/js-beautify/issues/578))
  503. * modified cli.js so that it can read from piped input by default ([#558](https://github.com/beautify-web/js-beautify/pull/558))
  504. * Update release process instructions ([#543](https://github.com/beautify-web/js-beautify/issues/543))
  505. * Publish v1.6.0 ([#542](https://github.com/beautify-web/js-beautify/issues/542))
  506. * es6 destructuring ([#511](https://github.com/beautify-web/js-beautify/issues/511))
  507. * NPM js-beautify: different treatment of "-" in command line ([#390](https://github.com/beautify-web/js-beautify/issues/390))
  508. * Newline inserted after ES6 module import/export ([#382](https://github.com/beautify-web/js-beautify/issues/382))
  509. * Option to preserve or inline "short objects" on a single line ([#315](https://github.com/beautify-web/js-beautify/issues/315))
  510. * Format json in line ([#114](https://github.com/beautify-web/js-beautify/issues/114))
  511. ## v1.5.10
  512. ### Description
  513. Hotfix for directives
  514. Version jump due to release script tweaks
  515. ### Closed Issues
  516. * Preserve directive doesn't work as intended ([#723](https://github.com/beautify-web/js-beautify/issues/723))
  517. ## v1.5.7
  518. ### Description
  519. * Beautifier does not break PHP and Underscore.js templates
  520. * Fix for SCSS pseudo classes and intperpolation/mixins
  521. * Alternative Newline Characters in CSS and HTML
  522. * Preserve formatting or completely ignore section of javascript using comments
  523. ### Closed Issues
  524. * Support for legacy JavaScript versions (e.g. WSH+JScript & Co) ([#720](https://github.com/beautify-web/js-beautify/pull/720))
  525. * Is \\n hard coded into CSS Beautifier logic? ([#715](https://github.com/beautify-web/js-beautify/issues/715))
  526. * Spaces and linebreaks after # and around { } messing up interpolation/mixins (SASS/SCSS) ([#689](https://github.com/beautify-web/js-beautify/issues/689))
  527. * Calls to functions get completely messed up in Sass (*.scss) ([#675](https://github.com/beautify-web/js-beautify/issues/675))
  528. * No new line after selector in scss files ([#666](https://github.com/beautify-web/js-beautify/issues/666))
  529. * using html-beautify on handlebars template deletes unclosed tag if on second line ([#623](https://github.com/beautify-web/js-beautify/issues/623))
  530. * more Extra space after scss pseudo classes ([#557](https://github.com/beautify-web/js-beautify/issues/557))
  531. * Unnecessary spaces in PHP code ([#490](https://github.com/beautify-web/js-beautify/issues/490))
  532. * Some underscore.js template tags are broken ([#417](https://github.com/beautify-web/js-beautify/issues/417))
  533. * Selective ignore using comments (feature request) ([#384](https://github.com/beautify-web/js-beautify/issues/384))
  534. ## v1.5.6
  535. ### Description
  536. * JSX support!
  537. * Alternative Newline Characters
  538. * CSS and JS comment formatting fixes
  539. * General bug fixing
  540. ### Closed Issues
  541. * Fix tokenizer's bracket pairs' open stack ([#693](https://github.com/beautify-web/js-beautify/pull/693))
  542. * Indentation is incorrect for HTML5 void tag <source> ([#692](https://github.com/beautify-web/js-beautify/issues/692))
  543. * Line wrapping breaks at the wrong place when the line is indented. ([#691](https://github.com/beautify-web/js-beautify/issues/691))
  544. * Publish v1.5.6 ([#687](https://github.com/beautify-web/js-beautify/issues/687))
  545. * Replace existing file fails using python beautifier ([#686](https://github.com/beautify-web/js-beautify/issues/686))
  546. * Pseudo-classes formatted incorrectly and inconsistently with @page ([#661](https://github.com/beautify-web/js-beautify/issues/661))
  547. * doc: add end_with_newline option ([#650](https://github.com/beautify-web/js-beautify/pull/650))
  548. * Improve support for xml parts of jsx (React) => spaces, spread attributes and nested objects break the process ([#646](https://github.com/beautify-web/js-beautify/issues/646))
  549. * html-beautify formats handlebars comments but does not format html comments ([#635](https://github.com/beautify-web/js-beautify/issues/635))
  550. * Support for ES7 async ([#630](https://github.com/beautify-web/js-beautify/issues/630))
  551. * css beautify adding an extra newline after a comment line in a css block ([#609](https://github.com/beautify-web/js-beautify/issues/609))
  552. * No option to "Indent with tabs" for HTML files ([#587](https://github.com/beautify-web/js-beautify/issues/587))
  553. * Function body is indented when followed by a comment ([#583](https://github.com/beautify-web/js-beautify/issues/583))
  554. * JSX support ([#425](https://github.com/beautify-web/js-beautify/issues/425))
  555. * Alternative Newline Characters ([#260](https://github.com/beautify-web/js-beautify/issues/260))
  556. ## v1.5.5
  557. ### Description
  558. * Initial implementation of comma-first formatting - Diff-friendly literals!
  559. * CSS: Add newline between rules
  560. * LESS: improved function parameter formatting
  561. * HTML: options for wrapping attributes
  562. * General bug fixing
  563. ### Closed Issues
  564. * Add GUI support for `--indent-inner-html`. ([#633](https://github.com/beautify-web/js-beautify/pull/633))
  565. * Publish v1.5.5 ([#629](https://github.com/beautify-web/js-beautify/issues/629))
  566. * CSS: Updating the documentation for the 'newline_between_rules' ([#615](https://github.com/beautify-web/js-beautify/pull/615))
  567. * Equal Sign Removed from Filter Properties Alpha Opacity Assignment ([#599](https://github.com/beautify-web/js-beautify/issues/599))
  568. * Keep trailing spaces on comments ([#598](https://github.com/beautify-web/js-beautify/issues/598))
  569. * only print the file names of changed files ([#597](https://github.com/beautify-web/js-beautify/issues/597))
  570. * CSS: support add newline between rules ([#574](https://github.com/beautify-web/js-beautify/pull/574))
  571. * elem[array]++ changes to elem[array] ++ inserting unnecessary gap ([#570](https://github.com/beautify-web/js-beautify/issues/570))
  572. * add support to less functions paramters braces ([#568](https://github.com/beautify-web/js-beautify/pull/568))
  573. * selector_separator_newline: true for Sass doesn't work ([#563](https://github.com/beautify-web/js-beautify/issues/563))
  574. * yield statements are being beautified to their own newlines since 1.5.2 ([#560](https://github.com/beautify-web/js-beautify/issues/560))
  575. * HTML beautifier inserts extra newline into `<li>`s ending with `<code>` ([#524](https://github.com/beautify-web/js-beautify/issues/524))
  576. * Add wrap_attributes option ([#476](https://github.com/beautify-web/js-beautify/issues/476))
  577. * Add or preserve empty line between CSS rules ([#467](https://github.com/beautify-web/js-beautify/issues/467))
  578. * Support comma first style of variable declaration ([#245](https://github.com/beautify-web/js-beautify/issues/245))
  579. ## v1.5.4
  580. ### Description
  581. * Fix for LESS/CSS pseudo/classes
  582. * Fix for HTML img tag spaces
  583. https://github.com/beautify-web/js-beautify/compare/v1.5.3...v1.5.4
  584. ### Closed Issues
  585. * TypeScript oddly formatted with 1.5.3 ([#552](https://github.com/beautify-web/js-beautify/issues/552))
  586. * HTML beautifier inserts double spaces between adjacent tags ([#525](https://github.com/beautify-web/js-beautify/issues/525))
  587. * Keep space in font rule ([#491](https://github.com/beautify-web/js-beautify/issues/491))
  588. * [Brackets plug in] Space after </a> disappears ([#454](https://github.com/beautify-web/js-beautify/issues/454))
  589. * Support nested pseudo-classes and parent reference (LESS) ([#427](https://github.com/beautify-web/js-beautify/pull/427))
  590. * Alternate approach: preserve single spacing and treat img as inline element ([#415](https://github.com/beautify-web/js-beautify/pull/415))
  591. ## v1.5.3
  592. ### Description
  593. * High priority bug fixes
  594. * Major fixes to css-beautifier to not blow up LESS/SCSS
  595. * Lower priority bug fixes that were very ugly
  596. https://github.com/beautify-web/js-beautify/compare/v1.5.2...v1.5.3
  597. ### Closed Issues
  598. * [TypeError: Cannot read property 'type' of undefined] ([#548](https://github.com/beautify-web/js-beautify/issues/548))
  599. * Bug with RegExp ([#547](https://github.com/beautify-web/js-beautify/issues/547))
  600. * Odd behaviour on less ([#520](https://github.com/beautify-web/js-beautify/issues/520))
  601. * css beauitify ([#506](https://github.com/beautify-web/js-beautify/issues/506))
  602. * Extra space after scss pseudo classes. ([#500](https://github.com/beautify-web/js-beautify/issues/500))
  603. * Generates invalid scss when formatting ampersand selectors ([#498](https://github.com/beautify-web/js-beautify/issues/498))
  604. * bad formatting of .less files using @variable or &:hover syntax ([#489](https://github.com/beautify-web/js-beautify/issues/489))
  605. * Incorrect beautifying of CSS comment including an url. ([#466](https://github.com/beautify-web/js-beautify/issues/466))
  606. * Handle SASS parent reference &: ([#414](https://github.com/beautify-web/js-beautify/issues/414))
  607. * Js-beautify breaking selectors in less code. ([#410](https://github.com/beautify-web/js-beautify/issues/410))
  608. * Problem with "content" ([#364](https://github.com/beautify-web/js-beautify/issues/364))
  609. * Space gets inserted between function and paren for function in Define ([#313](https://github.com/beautify-web/js-beautify/issues/313))
  610. * beautify-html returns null on broken html ([#301](https://github.com/beautify-web/js-beautify/issues/301))
  611. * Indentation of functions inside conditionals not passing jslint ([#298](https://github.com/beautify-web/js-beautify/issues/298))
  612. ## v1.5.2
  613. ### Description
  614. * Improved indenting for statements, array, variable declaration, "Starless" block-comments
  615. * Support for bitwise-not, yield, get, set, let, const, generator functions
  616. * Reserved words can be used as object property names
  617. * Added options: space_after_anon_function, end-with-newline
  618. * Properly tokenize Numbers (including decimals and exponents)
  619. * Do not break "x++ + y"
  620. * function declaration inside array behaves the same as in expression
  621. * Close String literals at newline
  622. * Support handlebar syntax
  623. * Check `<script>` "type"-attribute
  624. * Allow `<style>` and `<script>` tags to be unformatted
  625. * Port css nesting fix to python
  626. * Fix python six dependency
  627. * Initial very cursory support for ES6 module, export, and import
  628. https://github.com/beautify-web/js-beautify/compare/v1.5.1...v1.5.2
  629. ### Closed Issues
  630. * Allow custom elements to be unformatted ([#540](https://github.com/beautify-web/js-beautify/pull/540))
  631. * Need option to ignore brace style ([#538](https://github.com/beautify-web/js-beautify/issues/538))
  632. * Refactor to Output and OutputLine classes ([#536](https://github.com/beautify-web/js-beautify/pull/536))
  633. * Recognize ObjectLiteral on open brace ([#535](https://github.com/beautify-web/js-beautify/pull/535))
  634. * Refactor to fully tokenize before formatting ([#530](https://github.com/beautify-web/js-beautify/pull/530))
  635. * Cleanup checked in six.py file ([#527](https://github.com/beautify-web/js-beautify/pull/527))
  636. * Changelog.md? ([#526](https://github.com/beautify-web/js-beautify/issues/526))
  637. * New line added between each css declaration ([#523](https://github.com/beautify-web/js-beautify/issues/523))
  638. * Kendo Template scripts get messed up! ([#516](https://github.com/beautify-web/js-beautify/issues/516))
  639. * SyntaxError: Unexpected token ++ ([#514](https://github.com/beautify-web/js-beautify/issues/514))
  640. * space appears before open square bracket when the object name is "set" ([#508](https://github.com/beautify-web/js-beautify/issues/508))
  641. * Unclosed string problem ([#505](https://github.com/beautify-web/js-beautify/issues/505))
  642. * "--n" and "++n" are not indented like "n--" and "n++" are... ([#495](https://github.com/beautify-web/js-beautify/issues/495))
  643. * Allow `<style>` and `<script>` tags to be unformatted ([#494](https://github.com/beautify-web/js-beautify/pull/494))
  644. * Preserve new line at end of file ([#492](https://github.com/beautify-web/js-beautify/issues/492))
  645. * Line wraps breaking numbers (causes syntax error) ([#488](https://github.com/beautify-web/js-beautify/issues/488))
  646. * jsBeautify acts differently when handling different kinds of function expressions ([#485](https://github.com/beautify-web/js-beautify/issues/485))
  647. * AttributeError: 'NoneType' object has no attribute 'groups' ([#479](https://github.com/beautify-web/js-beautify/issues/479))
  648. * installation doco for python need update -- pip install six? ([#478](https://github.com/beautify-web/js-beautify/issues/478))
  649. * Move einars/js-beautify to beautify-web/js-beautify ([#475](https://github.com/beautify-web/js-beautify/issues/475))
  650. * Bring back space_after_anon_function ([#474](https://github.com/beautify-web/js-beautify/pull/474))
  651. * fix for #453, Incompatible handlebar syntax ([#468](https://github.com/beautify-web/js-beautify/pull/468))
  652. * Python: missing explicit dependency on "six" package ([#465](https://github.com/beautify-web/js-beautify/issues/465))
  653. * function declaration inside array, adds extra line. ([#464](https://github.com/beautify-web/js-beautify/issues/464))
  654. * [es6] yield a array ([#458](https://github.com/beautify-web/js-beautify/issues/458))
  655. * Publish v1.5.2 ([#452](https://github.com/beautify-web/js-beautify/issues/452))
  656. * Port css colon character fix to python ([#446](https://github.com/beautify-web/js-beautify/issues/446))
  657. * Cannot declare object literal properties with unquoted reserved words ([#440](https://github.com/beautify-web/js-beautify/issues/440))
  658. * Do not put a space within `function*` generator functions. ([#428](https://github.com/beautify-web/js-beautify/issues/428))
  659. * beautification of "nth-child" css fails csslint ([#418](https://github.com/beautify-web/js-beautify/issues/418))
  660. * comment breaks indent ([#413](https://github.com/beautify-web/js-beautify/issues/413))
  661. * AngularJS inline templates are being corrupted! ([#385](https://github.com/beautify-web/js-beautify/issues/385))
  662. * Beautify HTML: Setting inline JS and CSS to stay unformatted ([#383](https://github.com/beautify-web/js-beautify/issues/383))
  663. * Spaces in function definition ([#372](https://github.com/beautify-web/js-beautify/issues/372))
  664. * Chained code indents break at comment lines ([#314](https://github.com/beautify-web/js-beautify/issues/314))
  665. * Handling of newlines around if/else/if statements ([#311](https://github.com/beautify-web/js-beautify/issues/311))
  666. * Tags in javascript are being destroyed ([#117](https://github.com/beautify-web/js-beautify/issues/117))