UNPKG

39.9 kBMarkdownView Raw
1# Changelog
2## v1.8.4
3
4### Description
5Broader adoption of 1.8.x revealed a few more high priority fixes
6
7
8### Closed Issues
9* Multiple newlines added between empty textarea and "unformatted" inline elements ([#1534](https://github.com/beautify-web/js-beautify/issues/1534))
10* unindent_chained_methods broken ([#1533](https://github.com/beautify-web/js-beautify/issues/1533))
11
12
13## v1.8.3
14
15### Description
16
17
18### Closed Issues
19* Missing Bower Assets ([#1521](https://github.com/beautify-web/js-beautify/issues/1521))
20* Javascript ternary breaked with `await` ([#1519](https://github.com/beautify-web/js-beautify/issues/1519))
21* Object property indented after `await` ([#1517](https://github.com/beautify-web/js-beautify/issues/1517))
22* Handlebars formatting problems ([#870](https://github.com/beautify-web/js-beautify/issues/870))
23* beautify.js doesn't have indent_level option ([#724](https://github.com/beautify-web/js-beautify/issues/724))
24
25
26## v1.8.1
27
28### Description
29
30
31### Closed Issues
32* Why npm is a dependency? ([#1516](https://github.com/beautify-web/js-beautify/issues/1516))
33* indent_inner_html not working in v1.8.0 ([#1514](https://github.com/beautify-web/js-beautify/issues/1514))
34
35
36## v1.8.0
37
38### Description
39Massive set of fixes and improvements.
40
41Thanks to contributors: @cheerypick, @swan46, @MacKLess, @Elrendio, @madman-bob, @amanda-bot, @Hirse, @aeschli, and many more.
42
43Special thanks to @astronomersiva and @garretwilson for finding key bugs in the RC releases,
44and to @MacKLess for driving down the open bug count with tons of regression tests.
45
46Highlights:
47
48* CSS: `newline_between_rules` support for nested rules - CSS/SASS/SCSS/LESS (@MacKLess)
49* CSS: @import support in CSS (@MacKLess)
50* HTML: inline element support (@madman-bob)
51* HTML: `wrap_attributes` setting `align-multiple` (@cheerypick)
52* HTML: optional close tags do not over indent - li, tr, etc.
53* HTML: Improved line wrapping in HTML - still not fully correct
54* HTML: 10x performance improvement in HTML beautifier
55* JS: ES6 BigInt support (@thejoshwolfe)
56* JS: ES6 Dynamic import support
57* CSS: :hover for @extend formatting (@MacKLess)
58* HTML: Incorrect line wrapping issue (@andreyvolokitin)
59* JS: Javascript ++ Operator Indentation (@Elrendio)
60* JS: Better packer handling in Python (@swan46)
61
62
63
64
65
66### Closed Issues
67* list items of nested lists get indented backwards ([#1501](https://github.com/beautify-web/js-beautify/issues/1501))
68* Make beautifier auto-convert options with dashes into underscores ([#1497](https://github.com/beautify-web/js-beautify/issues/1497))
69* ReferenceError: token is not defined ([#1496](https://github.com/beautify-web/js-beautify/issues/1496))
70* Publish v1.8.0 ([#1495](https://github.com/beautify-web/js-beautify/issues/1495))
71* still probem #1439 / #1337 ([#1491](https://github.com/beautify-web/js-beautify/issues/1491))
72* Duplicating HTML Code Nested In PHP ([#1483](https://github.com/beautify-web/js-beautify/issues/1483))
73* Handlebars - `if` tags are broken when using helper with `textarea` ([#1482](https://github.com/beautify-web/js-beautify/issues/1482))
74* TypeError: Cannot read property '1' of null ([#1481](https://github.com/beautify-web/js-beautify/issues/1481))
75* Space in Self Closing Tag Issue ([#1478](https://github.com/beautify-web/js-beautify/issues/1478))
76* Weird Formatting in VSCode ([#1475](https://github.com/beautify-web/js-beautify/issues/1475))
77* Indent with tab issue on website ([#1470](https://github.com/beautify-web/js-beautify/issues/1470))
78* Contents of hbs tags are converted to lowercase ([#1464](https://github.com/beautify-web/js-beautify/issues/1464))
79* HTML tags are indented wrongly when attributes are present ([#1462](https://github.com/beautify-web/js-beautify/issues/1462))
80* hbs tags are stripped when there is a comment below or inline ([#1461](https://github.com/beautify-web/js-beautify/issues/1461))
81* Spaces added to handlebars with '=' ([#1460](https://github.com/beautify-web/js-beautify/issues/1460))
82* jsbeautifier.org don't works ([#1445](https://github.com/beautify-web/js-beautify/issues/1445))
83* Commenting code and then beautifying removes line breaks ([#1440](https://github.com/beautify-web/js-beautify/issues/1440))
84* Less: Where is my space? ([#1411](https://github.com/beautify-web/js-beautify/issues/1411))
85* No newline after @import ([#1406](https://github.com/beautify-web/js-beautify/issues/1406))
86* "html.format.wrapAttributes": "force-aligned" adds empty line on long attributes ([#1403](https://github.com/beautify-web/js-beautify/issues/1403))
87* HTML: wrap_line_length is handled incorrectly ([#1401](https://github.com/beautify-web/js-beautify/issues/1401))
88* js-beautify is breaking code by adding space after import ([#1393](https://github.com/beautify-web/js-beautify/issues/1393))
89* JS-Beautify should format XML tags inside HTML files ([#1383](https://github.com/beautify-web/js-beautify/issues/1383))
90* python unpacker can not handle if radix given as [] and not as a number ([#1381](https://github.com/beautify-web/js-beautify/issues/1381))
91* unindent_chained_methods breaks indentation for if statements without brackets ([#1378](https://github.com/beautify-web/js-beautify/issues/1378))
92* function parameters merged into single line when starting with ! or [ ([#1374](https://github.com/beautify-web/js-beautify/issues/1374))
93* CSS selector issue (header > div[class~="div-all"]) in SCSS file ([#1373](https://github.com/beautify-web/js-beautify/issues/1373))
94* Add "Create Issue for Unexpected Output" button to website ([#1371](https://github.com/beautify-web/js-beautify/issues/1371))
95* Add combobox to control type of beautification ([#1370](https://github.com/beautify-web/js-beautify/issues/1370))
96* Add Options textbox to website for debugging ([#1369](https://github.com/beautify-web/js-beautify/issues/1369))
97
98
99## v1.7.5
100
101### Description
102
103
104### Closed Issues
105* Strict mode: js_source_text is not defined [CSS] ([#1286](https://github.com/beautify-web/js-beautify/issues/1286))
106* Made brace_style option more inclusive ([#1277](https://github.com/beautify-web/js-beautify/pull/1277))
107* White space before"!important" tag missing in CSS beautify ([#1273](https://github.com/beautify-web/js-beautify/issues/1273))
108
109
110## v1.7.4
111
112### Description
113Thanks @cejast for contributing!
114
115### Closed Issues
116* Whitespace after ES7 `async` keyword for arrow functions ([#896](https://github.com/beautify-web/js-beautify/issues/896))
117
118
119## v1.7.3
120
121### Description
122* Fixed broken installs
123
124Lessons learned:
125* Don't publish and go to bed.
126* I thought I had sufficient test coverage and I did not. Tests will be implemented to protect against this before the next release (#1254).
127* Also, this break highlights the need to create a beta channel for releases and a way to request feedback on beta releases (#1255).
128* 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).
129* 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)
130
131
132### Closed Issues
133* Version 1.7.0 fail to install through pip ([#1250](https://github.com/beautify-web/js-beautify/issues/1250))
134* Installing js-beautify fails ([#1247](https://github.com/beautify-web/js-beautify/issues/1247))
135
136
137## v1.7.0
138
139### Description
140
141
142### Closed Issues
143* undindent-chained-methods option. Resolves #482 ([#1240](https://github.com/beautify-web/js-beautify/pull/1240))
144* Add test and tools folder to npmignore ([#1239](https://github.com/beautify-web/js-beautify/issues/1239))
145* incorrect new-line insertion after "yield" ([#1206](https://github.com/beautify-web/js-beautify/issues/1206))
146* Do not modify built-in objects ([#1205](https://github.com/beautify-web/js-beautify/issues/1205))
147* Fix label checking incorrect box when clicked ([#1169](https://github.com/beautify-web/js-beautify/pull/1169))
148* Webpack ([#1149](https://github.com/beautify-web/js-beautify/pull/1149))
149* daisy-chain indentation leads to over-indentation ([#482](https://github.com/beautify-web/js-beautify/issues/482))
150
151
152## v1.6.12
153
154### Description
155
156
157### Closed Issues
158* CSS: Preserve Newlines ([#537](https://github.com/beautify-web/js-beautify/issues/537))
159
160
161## v1.6.11
162
163### Description
164Reverted #1117 - Preserve newlines broken
165
166### Closed Issues
167* On beautify, new line before next CSS selector ([#1142](https://github.com/beautify-web/js-beautify/issues/1142))
168
169
170## v1.6.10
171
172### Description
173Added `preserver_newlines` to css beautifier
174
175### Closed Issues
176
177
178## v1.6.9
179
180### Description
181* Fixed html formatting issue with attribute wrap (Thanks, @HookyQR!)
182* Fixed python package publishing
183
184
185### Closed Issues
186* Wrong HTML beautification starting with v1.6.5 ([#1115](https://github.com/beautify-web/js-beautify/issues/1115))
187* Ignore linebreak when meet handlebar ([#1104](https://github.com/beautify-web/js-beautify/pull/1104))
188* Lines are not un-indented correctly when attributes are wrapped ([#1103](https://github.com/beautify-web/js-beautify/issues/1103))
189* force-aligned is not aligned when indenting with tabs ([#1102](https://github.com/beautify-web/js-beautify/issues/1102))
190* Python package fails to publish ([#1101](https://github.com/beautify-web/js-beautify/issues/1101))
191* Explaination of 'operator_position' is absent from README.md ([#1047](https://github.com/beautify-web/js-beautify/issues/1047))
192
193
194## v1.6.8
195
196### Description
197* Fixed a batch of comment and semicolon-less code bugs
198
199
200### Closed Issues
201* Incorrect indentation after loop with comment ([#1090](https://github.com/beautify-web/js-beautify/issues/1090))
202* Extra newline is inserted after beautifying code with anonymous function ([#1085](https://github.com/beautify-web/js-beautify/issues/1085))
203* end brace with next comment line make bad indent ([#1043](https://github.com/beautify-web/js-beautify/issues/1043))
204* Javascript comment in last line doesn't beautify well ([#964](https://github.com/beautify-web/js-beautify/issues/964))
205* indent doesn't work with comment (jsdoc) ([#913](https://github.com/beautify-web/js-beautify/issues/913))
206* Wrong indentation, when new line between chained methods ([#892](https://github.com/beautify-web/js-beautify/issues/892))
207* Comments in a non-semicolon style have extra indent ([#815](https://github.com/beautify-web/js-beautify/issues/815))
208* [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))
209* Wrong indent formatting ([#569](https://github.com/beautify-web/js-beautify/issues/569))
210
211
212## v1.6.7
213
214### Description
215Added `content_unformatted` option (Thanks @arai-a)
216
217### Closed Issues
218* HTML pre code indentation ([#928](https://github.com/beautify-web/js-beautify/issues/928))
219* Beautify script/style tags but ignore their inner JS/CSS content ([#906](https://github.com/beautify-web/js-beautify/issues/906))
220
221
222## v1.6.6
223
224### Description
225* Added support for editorconfig from stdin
226* Added js-beautify to cdnjs
227* Fixed CRLF to LF for HTML and CSS on windows
228* Added inheritance/overriding to config format (Thanks @DaniGuardiola and @HookyQR)
229* Added `force-align` to `wrap-attributes` (Thanks @Lukinos)
230* Added `force-expand-multiline` to `wrap-attributes` (Thanks @tobias-zucali)
231* Added `preserve-inline` as independent brace setting (Thanks @Coburn37)
232* Fixed handlebars with angle-braces (Thanks @mmsqe)
233
234
235
236### Closed Issues
237* Wrong indentation for comment after nested unbraced control constructs ([#1079](https://github.com/beautify-web/js-beautify/issues/1079))
238* Should prefer breaking the line after operator ? instead of before operator < ([#1073](https://github.com/beautify-web/js-beautify/issues/1073))
239* New option "force-expand-multiline" for "wrap_attributes" ([#1070](https://github.com/beautify-web/js-beautify/pull/1070))
240* Breaks if html file starts with comment ([#1068](https://github.com/beautify-web/js-beautify/issues/1068))
241* collapse-preserve-inline restricts users to collapse brace_style ([#1057](https://github.com/beautify-web/js-beautify/issues/1057))
242* Parsing failure on numbers with "e" ([#1054](https://github.com/beautify-web/js-beautify/issues/1054))
243* Issue with Browser Instructions ([#1053](https://github.com/beautify-web/js-beautify/issues/1053))
244* Add preserve inline function for expand style braces ([#1052](https://github.com/beautify-web/js-beautify/issues/1052))
245* Update years in LICENSE ([#1038](https://github.com/beautify-web/js-beautify/issues/1038))
246* JS. Switch with template literals. Unexpected indentation. ([#1030](https://github.com/beautify-web/js-beautify/issues/1030))
247* The object with spread object formatted not correctly ([#1023](https://github.com/beautify-web/js-beautify/issues/1023))
248* Bad output generator function in class ([#1013](https://github.com/beautify-web/js-beautify/issues/1013))
249* Support editorconfig for stdin ([#1012](https://github.com/beautify-web/js-beautify/issues/1012))
250* Publish to cdnjs ([#992](https://github.com/beautify-web/js-beautify/issues/992))
251* breaks if handlebars comments contain handlebars tags ([#930](https://github.com/beautify-web/js-beautify/issues/930))
252* Using jsbeautifyrc is broken ([#929](https://github.com/beautify-web/js-beautify/issues/929))
253* Option to put HTML attributes on their own lines, aligned ([#916](https://github.com/beautify-web/js-beautify/issues/916))
254* Erroneously changes CRLF to LF on Windows in HTML and CSS ([#899](https://github.com/beautify-web/js-beautify/issues/899))
255* Weird space in {get } vs { normal } ([#888](https://github.com/beautify-web/js-beautify/issues/888))
256* Bad for-of formatting with constant Array ([#875](https://github.com/beautify-web/js-beautify/issues/875))
257* Problems with filter property in css and scss ([#755](https://github.com/beautify-web/js-beautify/issues/755))
258* Add "collapse-one-line" option for non-collapse brace styles ([#487](https://github.com/beautify-web/js-beautify/issues/487))
259
260
261## v1.6.4
262
263### Description
264* Fixed JSX multi-line root element handling
265* Fixed CSS Combinator spacing (NOTE: use `space_around_combinator` option)
266* Fixed (more) CSS pseudo-class and pseudo-element selectors (Thanks @Konamiman!)
267* Fixed Shorthand generator functions and `yield*` (Thanks @jgeurts!)
268* Added EditorConfig support (Thanks @ethanluoyc!)
269* Added indent_body_inner_html and indent_head_inner_html (Thanks @spontaliku-softaria!)
270* Added js-beautify to https://cdn.rawgit.com (Thanks @zxqfox)
271
272
273
274
275
276### Closed Issues
277* css-beautify sibling combinator space issue ([#1001](https://github.com/beautify-web/js-beautify/issues/1001))
278* Bug: Breaks when the source code it found an unclosed multiline comment. ([#996](https://github.com/beautify-web/js-beautify/issues/996))
279* CSS: Preserve white space before pseudo-class and pseudo-element selectors ([#985](https://github.com/beautify-web/js-beautify/pull/985))
280* Spelling error in token definition ([#984](https://github.com/beautify-web/js-beautify/issues/984))
281* collapse-preserve-inline does not preserve simple, single line ("return") statements ([#982](https://github.com/beautify-web/js-beautify/issues/982))
282* Publish the library via cdn ([#971](https://github.com/beautify-web/js-beautify/issues/971))
283* Bug with css calc() function ([#957](https://github.com/beautify-web/js-beautify/issues/957))
284* &:first-of-type:not(:last-child) when prettified insert erroneous white character ([#952](https://github.com/beautify-web/js-beautify/issues/952))
285* Shorthand generator functions are formatting strangely ([#941](https://github.com/beautify-web/js-beautify/issues/941))
286* Add handlebars support on cli for html ([#935](https://github.com/beautify-web/js-beautify/pull/935))
287* Do not put a space within `yield*` generator functions. ([#920](https://github.com/beautify-web/js-beautify/issues/920))
288* Possible to add an indent_inner_inner_html option? (Prevent indenting second-level tags) ([#917](https://github.com/beautify-web/js-beautify/issues/917))
289* Messing up jsx formatting ([#914](https://github.com/beautify-web/js-beautify/issues/914))
290* Bug report: Closing 'body' tag isn't formatted correctly ([#900](https://github.com/beautify-web/js-beautify/issues/900))
291* { throw … } not working with collapse-preserve-inline ([#898](https://github.com/beautify-web/js-beautify/issues/898))
292* ES6 concise method not propely indented ([#889](https://github.com/beautify-web/js-beautify/issues/889))
293* CSS beautify changing symantics ([#883](https://github.com/beautify-web/js-beautify/issues/883))
294* Dojo unsupported script types. ([#874](https://github.com/beautify-web/js-beautify/issues/874))
295* Readme version comment ([#868](https://github.com/beautify-web/js-beautify/issues/868))
296* Extra space after pseudo-elements within :not() ([#618](https://github.com/beautify-web/js-beautify/issues/618))
297* space in media queries after colon &: selectors ([#565](https://github.com/beautify-web/js-beautify/issues/565))
298* Integrating editor config ([#551](https://github.com/beautify-web/js-beautify/issues/551))
299* Preserve short expressions/statements on single line ([#338](https://github.com/beautify-web/js-beautify/issues/338))
300
301
302## v1.6.3
303
304### Description
305Bug fixes
306
307### Closed Issues
308* CLI broken when output path is not set ([#933](https://github.com/beautify-web/js-beautify/issues/933))
309* huge memory leak ([#909](https://github.com/beautify-web/js-beautify/issues/909))
310* don't print unpacking errors on stdout (python) ([#884](https://github.com/beautify-web/js-beautify/pull/884))
311* Fix incomplete list of non-positionable operators (python lib) ([#878](https://github.com/beautify-web/js-beautify/pull/878))
312* Fix Issue #844 ([#873](https://github.com/beautify-web/js-beautify/pull/873))
313* assignment exponentiation operator ([#864](https://github.com/beautify-web/js-beautify/issues/864))
314* Bug in Less mixins ([#844](https://github.com/beautify-web/js-beautify/issues/844))
315* Can't Nest Conditionals ([#680](https://github.com/beautify-web/js-beautify/issues/680))
316* ternary operations ([#670](https://github.com/beautify-web/js-beautify/issues/670))
317* Support newline before logical or ternary operator ([#605](https://github.com/beautify-web/js-beautify/issues/605))
318* Provide config files for format and linting ([#336](https://github.com/beautify-web/js-beautify/issues/336))
319
320
321## v1.6.2
322
323### Description
324
325
326### Closed Issues
327* Add missing 'collapse-preserve-inline' option to js module ([#861](https://github.com/beautify-web/js-beautify/pull/861))
328
329
330## v1.6.1
331
332### Description
333Fixes for regressions found in 1.6.0
334
335
336### Closed Issues
337* Inconsistent formatting for arrays of objects ([#860](https://github.com/beautify-web/js-beautify/issues/860))
338* Publish v1.6.1 ([#859](https://github.com/beautify-web/js-beautify/issues/859))
339* Space added to "from++" due to ES6 keyword ([#858](https://github.com/beautify-web/js-beautify/issues/858))
340* Changelog generator doesn't sort versions above 9 right ([#778](https://github.com/beautify-web/js-beautify/issues/778))
341* space-after-anon-function not applied to object properties ([#761](https://github.com/beautify-web/js-beautify/issues/761))
342* Separating 'input' elements adds whitespace ([#580](https://github.com/beautify-web/js-beautify/issues/580))
343* Inline Format ([#572](https://github.com/beautify-web/js-beautify/issues/572))
344* Preserve attributes line break in HTML ([#455](https://github.com/beautify-web/js-beautify/issues/455))
345* Multiline Array ([#406](https://github.com/beautify-web/js-beautify/issues/406))
346
347
348## v1.6.0
349
350### Description
351* Inline/short object and json preservation (all rejoice!)
352* ES6 annotations, module import/export, arrow functions, concise methods, and more
353* JSX spread attributes
354* HTML wrap attributes, inline element fixes, doctype and php fixes
355* Test framework hardening
356* Windows build fixed and covered by appveyor continuous integration
357
358
359
360### Closed Issues
361* Individual tests pollute options object ([#855](https://github.com/beautify-web/js-beautify/issues/855))
362* 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))
363* Treat php tags as single in html ([#850](https://github.com/beautify-web/js-beautify/pull/850))
364* Read piped input by default ([#849](https://github.com/beautify-web/js-beautify/pull/849))
365* Replace makefile dependency with bash script ([#848](https://github.com/beautify-web/js-beautify/pull/848))
366* list of HTML inline elements incomplete; wraps inappropriately ([#840](https://github.com/beautify-web/js-beautify/issues/840))
367* Beautifying bracket-less if/elses ([#838](https://github.com/beautify-web/js-beautify/issues/838))
368* <col> elements within a <colgroup> are getting indented incorrectly ([#836](https://github.com/beautify-web/js-beautify/issues/836))
369* single attribute breaks jsx beautification ([#834](https://github.com/beautify-web/js-beautify/issues/834))
370* Improve Python packaging ([#831](https://github.com/beautify-web/js-beautify/pull/831))
371* Erroneously changes CRLF to LF on Windows. ([#829](https://github.com/beautify-web/js-beautify/issues/829))
372* Can't deal with XHTML5 ([#828](https://github.com/beautify-web/js-beautify/issues/828))
373* HTML after PHP is indented ([#826](https://github.com/beautify-web/js-beautify/issues/826))
374* exponentiation operator ([#825](https://github.com/beautify-web/js-beautify/issues/825))
375* Add support for script type "application/ld+json" ([#821](https://github.com/beautify-web/js-beautify/issues/821))
376* package.json: Remove "preferGlobal" option ([#820](https://github.com/beautify-web/js-beautify/pull/820))
377* Don't use array.indexOf() to support legacy browsers ([#816](https://github.com/beautify-web/js-beautify/pull/816))
378* ES6 Object Shortand Indenting Weirdly Sometimes ([#810](https://github.com/beautify-web/js-beautify/issues/810))
379* Implicit Return Function on New Line not Preserved ([#806](https://github.com/beautify-web/js-beautify/issues/806))
380* Misformating "0b" Binary Strings ([#803](https://github.com/beautify-web/js-beautify/issues/803))
381* Beautifier breaks ES6 nested template strings ([#797](https://github.com/beautify-web/js-beautify/issues/797))
382* Misformating "0o" Octal Strings ([#792](https://github.com/beautify-web/js-beautify/issues/792))
383* Do not use hardcoded directory for tests ([#788](https://github.com/beautify-web/js-beautify/pull/788))
384* Handlebars {{else}} tag not given a newline ([#784](https://github.com/beautify-web/js-beautify/issues/784))
385* Wrong indentation for XML header (<?xml version="1.0"?>) ([#783](https://github.com/beautify-web/js-beautify/issues/783))
386* is_whitespace for loop incrementing wrong variable ([#777](https://github.com/beautify-web/js-beautify/pull/777))
387* Newline is inserted after comment with comma_first ([#775](https://github.com/beautify-web/js-beautify/issues/775))
388* Cannot copy more than 1000 characters out of CodeMirror buffer ([#768](https://github.com/beautify-web/js-beautify/issues/768))
389* Missing 'var' in beautify-html.js; breaks strict mode ([#763](https://github.com/beautify-web/js-beautify/issues/763))
390* Fix typo in the example javascript code of index.html ([#753](https://github.com/beautify-web/js-beautify/pull/753))
391
392
393## v1.5.10
394
395### Description
396Hotfix for directives
397Version jump due to release script tweaks
398
399
400### Closed Issues
401* Preserve directive doesn't work as intended ([#723](https://github.com/beautify-web/js-beautify/issues/723))
402
403
404## v1.5.7
405
406### Description
407* Beautifier does not break PHP and Underscore.js templates
408* Fix for SCSS pseudo classes and intperpolation/mixins
409* Alternative Newline Characters in CSS and HTML
410* Preserve formatting or completely ignore section of javascript using comments
411
412
413### Closed Issues
414* Support for legacy JavaScript versions (e.g. WSH+JScript & Co) ([#720](https://github.com/beautify-web/js-beautify/pull/720))
415* Is \\n hard coded into CSS Beautifier logic? ([#715](https://github.com/beautify-web/js-beautify/issues/715))
416* Spaces and linebreaks after # and around { } messing up interpolation/mixins (SASS/SCSS) ([#689](https://github.com/beautify-web/js-beautify/issues/689))
417* Calls to functions get completely messed up in Sass (*.scss) ([#675](https://github.com/beautify-web/js-beautify/issues/675))
418* No new line after selector in scss files ([#666](https://github.com/beautify-web/js-beautify/issues/666))
419* using html-beautify on handlebars template deletes unclosed tag if on second line ([#623](https://github.com/beautify-web/js-beautify/issues/623))
420* more Extra space after scss pseudo classes ([#557](https://github.com/beautify-web/js-beautify/issues/557))
421* Unnecessary spaces in PHP code ([#490](https://github.com/beautify-web/js-beautify/issues/490))
422* Some underscore.js template tags are broken ([#417](https://github.com/beautify-web/js-beautify/issues/417))
423* Selective ignore using comments (feature request) ([#384](https://github.com/beautify-web/js-beautify/issues/384))
424
425
426## v1.5.6
427
428### Description
429* JSX support!
430* Alternative Newline Characters
431* CSS and JS comment formatting fixes
432* General bug fixing
433
434
435### Closed Issues
436* Fix tokenizer's bracket pairs' open stack ([#693](https://github.com/beautify-web/js-beautify/pull/693))
437* Indentation is incorrect for HTML5 void tag <source> ([#692](https://github.com/beautify-web/js-beautify/issues/692))
438* Line wrapping breaks at the wrong place when the line is indented. ([#691](https://github.com/beautify-web/js-beautify/issues/691))
439* Publish v1.5.6 ([#687](https://github.com/beautify-web/js-beautify/issues/687))
440* Replace existing file fails using python beautifier ([#686](https://github.com/beautify-web/js-beautify/issues/686))
441* Pseudo-classes formatted incorrectly and inconsistently with @page ([#661](https://github.com/beautify-web/js-beautify/issues/661))
442* doc: add end_with_newline option ([#650](https://github.com/beautify-web/js-beautify/pull/650))
443* 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))
444* html-beautify formats handlebars comments but does not format html comments ([#635](https://github.com/beautify-web/js-beautify/issues/635))
445* Support for ES7 async ([#630](https://github.com/beautify-web/js-beautify/issues/630))
446* css beautify adding an extra newline after a comment line in a css block ([#609](https://github.com/beautify-web/js-beautify/issues/609))
447* No option to "Indent with tabs" for HTML files ([#587](https://github.com/beautify-web/js-beautify/issues/587))
448* Function body is indented when followed by a comment ([#583](https://github.com/beautify-web/js-beautify/issues/583))
449* JSX support ([#425](https://github.com/beautify-web/js-beautify/issues/425))
450* Alternative Newline Characters ([#260](https://github.com/beautify-web/js-beautify/issues/260))
451
452
453## v1.5.5
454
455### Description
456* Initial implementation of comma-first formatting - Diff-friendly literals!
457* CSS: Add newline between rules
458* LESS: improved function parameter formatting
459* HTML: options for wrapping attributes
460* General bug fixing
461
462### Closed Issues
463* Add GUI support for `--indent-inner-html`. ([#633](https://github.com/beautify-web/js-beautify/pull/633))
464* Publish v1.5.5 ([#629](https://github.com/beautify-web/js-beautify/issues/629))
465* CSS: Updating the documentation for the 'newline_between_rules' ([#615](https://github.com/beautify-web/js-beautify/pull/615))
466* Equal Sign Removed from Filter Properties Alpha Opacity Assignment ([#599](https://github.com/beautify-web/js-beautify/issues/599))
467* Keep trailing spaces on comments ([#598](https://github.com/beautify-web/js-beautify/issues/598))
468* only print the file names of changed files ([#597](https://github.com/beautify-web/js-beautify/issues/597))
469* CSS: support add newline between rules ([#574](https://github.com/beautify-web/js-beautify/pull/574))
470* elem[array]++ changes to elem[array] ++ inserting unnecessary gap ([#570](https://github.com/beautify-web/js-beautify/issues/570))
471* add support to less functions paramters braces ([#568](https://github.com/beautify-web/js-beautify/pull/568))
472* selector_separator_newline: true for Sass doesn't work ([#563](https://github.com/beautify-web/js-beautify/issues/563))
473* yield statements are being beautified to their own newlines since 1.5.2 ([#560](https://github.com/beautify-web/js-beautify/issues/560))
474* HTML beautifier inserts extra newline into `<li>`s ending with `<code>` ([#524](https://github.com/beautify-web/js-beautify/issues/524))
475* Add wrap_attributes option ([#476](https://github.com/beautify-web/js-beautify/issues/476))
476* Add or preserve empty line between CSS rules ([#467](https://github.com/beautify-web/js-beautify/issues/467))
477* Support comma first style of variable declaration ([#245](https://github.com/beautify-web/js-beautify/issues/245))
478
479
480## v1.5.4
481
482### Description
483* Fix for LESS/CSS pseudo/classes
484* Fix for HTML img tag spaces
485
486https://github.com/beautify-web/js-beautify/compare/v1.5.3...v1.5.4
487
488### Closed Issues
489* TypeScript oddly formatted with 1.5.3 ([#552](https://github.com/beautify-web/js-beautify/issues/552))
490* HTML beautifier inserts double spaces between adjacent tags ([#525](https://github.com/beautify-web/js-beautify/issues/525))
491* Keep space in font rule ([#491](https://github.com/beautify-web/js-beautify/issues/491))
492* [Brackets plug in] Space after </a> disappears ([#454](https://github.com/beautify-web/js-beautify/issues/454))
493* Support nested pseudo-classes and parent reference (LESS) ([#427](https://github.com/beautify-web/js-beautify/pull/427))
494* Alternate approach: preserve single spacing and treat img as inline element ([#415](https://github.com/beautify-web/js-beautify/pull/415))
495
496
497## v1.5.3
498
499### Description
500* High priority bug fixes
501* Major fixes to css-beautifier to not blow up LESS/SCSS
502* Lower priority bug fixes that were very ugly
503
504https://github.com/beautify-web/js-beautify/compare/v1.5.2...v1.5.3
505
506### Closed Issues
507* [TypeError: Cannot read property 'type' of undefined] ([#548](https://github.com/beautify-web/js-beautify/issues/548))
508* Bug with RegExp ([#547](https://github.com/beautify-web/js-beautify/issues/547))
509* Odd behaviour on less ([#520](https://github.com/beautify-web/js-beautify/issues/520))
510* css beauitify ([#506](https://github.com/beautify-web/js-beautify/issues/506))
511* Extra space after scss pseudo classes. ([#500](https://github.com/beautify-web/js-beautify/issues/500))
512* Generates invalid scss when formatting ampersand selectors ([#498](https://github.com/beautify-web/js-beautify/issues/498))
513* bad formatting of .less files using @variable or &:hover syntax ([#489](https://github.com/beautify-web/js-beautify/issues/489))
514* Incorrect beautifying of CSS comment including an url. ([#466](https://github.com/beautify-web/js-beautify/issues/466))
515* Handle SASS parent reference &: ([#414](https://github.com/beautify-web/js-beautify/issues/414))
516* Js-beautify breaking selectors in less code. ([#410](https://github.com/beautify-web/js-beautify/issues/410))
517* Problem with "content" ([#364](https://github.com/beautify-web/js-beautify/issues/364))
518* Space gets inserted between function and paren for function in Define ([#313](https://github.com/beautify-web/js-beautify/issues/313))
519* beautify-html returns null on broken html ([#301](https://github.com/beautify-web/js-beautify/issues/301))
520* Indentation of functions inside conditionals not passing jslint ([#298](https://github.com/beautify-web/js-beautify/issues/298))
521
522
523## v1.5.2
524
525### Description
526* Improved indenting for statements, array, variable declaration, "Starless" block-comments
527* Support for bitwise-not, yield, get, set, let, const, generator functions
528* Reserved words can be used as object property names
529* Added options: space_after_anon_function, end-with-newline
530* Properly tokenize Numbers (including decimals and exponents)
531* Do not break "x++ + y"
532* function declaration inside array behaves the same as in expression
533* Close String literals at newline
534* Support handlebar syntax
535* Check `<script>` "type"-attribute
536* Allow `<style>` and `<script>` tags to be unformatted
537* Port css nesting fix to python
538* Fix python six dependency
539* Initial very cursory support for ES6 module, export, and import
540
541https://github.com/beautify-web/js-beautify/compare/v1.5.1...v1.5.2
542
543### Closed Issues
544* Allow custom elements to be unformatted ([#540](https://github.com/beautify-web/js-beautify/pull/540))
545* Need option to ignore brace style ([#538](https://github.com/beautify-web/js-beautify/issues/538))
546* Refactor to Output and OutputLine classes ([#536](https://github.com/beautify-web/js-beautify/pull/536))
547* Recognize ObjectLiteral on open brace ([#535](https://github.com/beautify-web/js-beautify/pull/535))
548* Refactor to fully tokenize before formatting ([#530](https://github.com/beautify-web/js-beautify/pull/530))
549* Cleanup checked in six.py file ([#527](https://github.com/beautify-web/js-beautify/pull/527))
550* Changelog.md? ([#526](https://github.com/beautify-web/js-beautify/issues/526))
551* New line added between each css declaration ([#523](https://github.com/beautify-web/js-beautify/issues/523))
552* Kendo Template scripts get messed up! ([#516](https://github.com/beautify-web/js-beautify/issues/516))
553* SyntaxError: Unexpected token ++ ([#514](https://github.com/beautify-web/js-beautify/issues/514))
554* space appears before open square bracket when the object name is "set" ([#508](https://github.com/beautify-web/js-beautify/issues/508))
555* Unclosed string problem ([#505](https://github.com/beautify-web/js-beautify/issues/505))
556* "--n" and "++n" are not indented like "n--" and "n++" are... ([#495](https://github.com/beautify-web/js-beautify/issues/495))
557* Allow `<style>` and `<script>` tags to be unformatted ([#494](https://github.com/beautify-web/js-beautify/pull/494))
558* Preserve new line at end of file ([#492](https://github.com/beautify-web/js-beautify/issues/492))
559* Line wraps breaking numbers (causes syntax error) ([#488](https://github.com/beautify-web/js-beautify/issues/488))
560* jsBeautify acts differently when handling different kinds of function expressions ([#485](https://github.com/beautify-web/js-beautify/issues/485))
561* AttributeError: 'NoneType' object has no attribute 'groups' ([#479](https://github.com/beautify-web/js-beautify/issues/479))
562* installation doco for python need update -- pip install six? ([#478](https://github.com/beautify-web/js-beautify/issues/478))
563* Move einars/js-beautify to beautify-web/js-beautify ([#475](https://github.com/beautify-web/js-beautify/issues/475))
564* Bring back space_after_anon_function ([#474](https://github.com/beautify-web/js-beautify/pull/474))
565* fix for #453, Incompatible handlebar syntax ([#468](https://github.com/beautify-web/js-beautify/pull/468))
566* Python: missing explicit dependency on "six" package ([#465](https://github.com/beautify-web/js-beautify/issues/465))
567* function declaration inside array, adds extra line. ([#464](https://github.com/beautify-web/js-beautify/issues/464))
568* [es6] yield a array ([#458](https://github.com/beautify-web/js-beautify/issues/458))
569* Publish v1.5.2 ([#452](https://github.com/beautify-web/js-beautify/issues/452))
570* Port css colon character fix to python ([#446](https://github.com/beautify-web/js-beautify/issues/446))
571* Cannot declare object literal properties with unquoted reserved words ([#440](https://github.com/beautify-web/js-beautify/issues/440))
572* Do not put a space within `function*` generator functions. ([#428](https://github.com/beautify-web/js-beautify/issues/428))
573* beautification of "nth-child" css fails csslint ([#418](https://github.com/beautify-web/js-beautify/issues/418))
574
575
576## v1.5.1
577
578### Description
579Highlights:
580* Fixes var declaration of objects and arrays to indent correctly (#256, #430)
581* Support keywords as IdentifierNames such as foo.catch() (#309, #351,#368, #378)
582* Improved indenting for statements (#289)
583* Improved ES6 support - let, const, template strings, and "fat arrow"
584* Support for non-ASCII characters in variable names (#305)
585* Multiple fixes to requirejs support and added tests to protect in future
586* Improved LESS support (still plenty of room for improvement in this area)
587* Do not add space after !!
588
589https://github.com/einars/js-beautify/compare/v1.4.2...v1.5.1
590
591### Closed Issues
592* Nested if statements not displayed correctly ([#450](https://github.com/beautify-web/js-beautify/issues/450))
593* preserve_newlines always true ([#449](https://github.com/beautify-web/js-beautify/issues/449))
594* line wrapping breaks in weird places ([#438](https://github.com/beautify-web/js-beautify/issues/438))
595* Update dependencies to current versions ([#437](https://github.com/beautify-web/js-beautify/pull/437))
596* Add support for ES6 template strings ([#434](https://github.com/beautify-web/js-beautify/pull/434))
597* Fix #402: support ES6 fat arrow ([#433](https://github.com/beautify-web/js-beautify/pull/433))
598* Ending brace missaligned when part of first definition in var line ([#430](https://github.com/beautify-web/js-beautify/issues/430))
599* fixing disabled line wrapping for HTML ([#429](https://github.com/beautify-web/js-beautify/pull/429))
600* Missing semi colon ([#420](https://github.com/beautify-web/js-beautify/issues/420))
601* Fixed require.js support ([#416](https://github.com/beautify-web/js-beautify/pull/416))
602* should not split the es6 operator '=>' ([#402](https://github.com/beautify-web/js-beautify/issues/402))
603* fixed relative paths for require.js ([#387](https://github.com/beautify-web/js-beautify/pull/387))
604* Support reserved words as property names ([#378](https://github.com/beautify-web/js-beautify/issues/378))
605* Make the AMD API match the rest of the APIs ([#376](https://github.com/beautify-web/js-beautify/pull/376))
606* Preserve newlines in html related to issue #307 ([#375](https://github.com/beautify-web/js-beautify/pull/375))
607* Multi-line statements ([#374](https://github.com/beautify-web/js-beautify/issues/374))
608* Reserved words used as property/function/variable identifiers are formatted incorrectly ([#368](https://github.com/beautify-web/js-beautify/issues/368))
609* fixed problems with colon character ([#363](https://github.com/beautify-web/js-beautify/pull/363))
610* require.JS paths are hardcoded in beautify-html.js ([#359](https://github.com/beautify-web/js-beautify/issues/359))
611* Regression in p.a.c.ked file detection ([#357](https://github.com/beautify-web/js-beautify/issues/357))
612* Fix Issue #339 ([#354](https://github.com/beautify-web/js-beautify/pull/354))
613* Added single line comment support in less/sass for javascript parser ([#353](https://github.com/beautify-web/js-beautify/pull/353))
614* Function named 'in' not formatting correctly ([#351](https://github.com/beautify-web/js-beautify/issues/351))
615* CSS Pseudo element ([#346](https://github.com/beautify-web/js-beautify/issues/346))
616* array closing brace error for return statements with keep_array_indentation ([#340](https://github.com/beautify-web/js-beautify/issues/340))
617* CSS Beautifier: breaks :before and :after (regression) ([#339](https://github.com/beautify-web/js-beautify/issues/339))
618* Publish v1.5.0 ([#335](https://github.com/beautify-web/js-beautify/issues/335))
619* "keep array indentation" not working ([#333](https://github.com/beautify-web/js-beautify/issues/333))
620* CSS Beautifier: support LESS/SASS line comments ([#326](https://github.com/beautify-web/js-beautify/issues/326))
621* Incorrect formating with semicolon-less code ([#323](https://github.com/beautify-web/js-beautify/issues/323))
622
623