Skip to content
This repository has been archived by the owner on Sep 12, 2019. It is now read-only.

Latest commit

 

History

History
367 lines (298 loc) · 25 KB

CHANGELOG.md

File metadata and controls

367 lines (298 loc) · 25 KB

Changelog

v1.5.7

Description

  • Beautifier does not break PHP and Underscore.js templates
  • Fix for SCSS pseudo classes and intperpolation/mixins
  • Alternative Newline Characters in CSS and HTML
  • Preserve formatting or completely ignore section of javascript using comments

Closed Issues

  • Support for legacy JavaScript versions (e.g. WSH+JScript & Co) (#720)
  • Is \n hard coded into CSS Beautifier logic? (#715)
  • Spaces and linebreaks after # and around { } messing up interpolation/mixins (SASS/SCSS) (#689)
  • Calls to functions get completely messed up in Sass (*.scss) (#675)
  • No new line after selector in scss files (#666)
  • using html-beautify on handlebars template deletes unclosed tag if on second line (#623)
  • more Extra space after scss pseudo classes (#557)
  • Unnecessary spaces in PHP code (#490)
  • Some underscore.js template tags are broken (#417)
  • Selective ignore using comments (feature request) (#384)

v1.5.6

Description

  • JSX support!
  • Alternative Newline Characters
  • CSS and JS comment formatting fixes
  • General bug fixing

Closed Issues

  • Fix tokenizer's bracket pairs' open stack (#693)
  • Indentation is incorrect for HTML5 void tag (#692)
  • Line wrapping breaks at the wrong place when the line is indented. (#691)
  • Publish v1.5.6 (#687)
  • Replace existing file fails using python beautifier (#686)
  • Pseudo-classes formatted incorrectly and inconsistently with @page (#661)
  • doc: add end_with_newline option (#650)
  • Improve support for xml parts of jsx (React) => spaces, spread attributes and nested objects break the process (#646)
  • html-beautify formats handlebars comments but does not format html comments (#635)
  • Support for ES7 async (#630)
  • css beautify adding an extra newline after a comment line in a css block (#609)
  • No option to "Indent with tabs" for HTML files (#587)
  • Function body is indented when followed by a comment (#583)
  • JSX support (#425)
  • Alternative Newline Characters (#260)

v1.5.5

Description

  • Initial implementation of comma-first formatting - Diff-friendly literals!
  • CSS: Add newline between rules
  • LESS: improved function parameter formatting
  • HTML: options for wrapping attributes
  • General bug fixing

Closed Issues

  • Add GUI support for --indent-inner-html. (#633)
  • Publish v1.5.5 (#629)
  • CSS: Updating the documentation for the 'newline_between_rules' (#615)
  • Equal Sign Removed from Filter Properties Alpha Opacity Assignment (#599)
  • Keep trailing spaces on comments (#598)
  • only print the file names of changed files (#597)
  • CSS: support add newline between rules (#574)
  • elem[array]++ changes to elem[array] ++ inserting unnecessary gap (#570)
  • add support to less functions paramters braces (#568)
  • selector_separator_newline: true for Sass doesn't work (#563)
  • yield statements are being beautified to their own newlines since 1.5.2 (#560)
  • HTML beautifier inserts extra newline into <li>s ending with <code> (#524)
  • Add wrap_attributes option (#476)
  • Add or preserve empty line between CSS rules (#467)
  • Support comma first style of variable declaration (#245)

v1.5.4

Description

  • Fix for LESS/CSS pseudo/classes
  • Fix for HTML img tag spaces

https://github.com/beautify-web/js-beautify/compare/v1.5.3...v1.5.4

Closed Issues

  • TypeScript oddly formatted with 1.5.3 (#552)
  • HTML beautifier inserts double spaces between adjacent tags (#525)
  • Keep space in font rule (#491)
  • [Brackets plug in] Space after disappears (#454)
  • Support nested pseudo-classes and parent reference (LESS) (#427)
  • Alternate approach: preserve single spacing and treat img as inline element (#415)

v1.5.3

Description

  • High priority bug fixes
  • Major fixes to css-beautifier to not blow up LESS/SCSS
  • Lower priority bug fixes that were very ugly

https://github.com/beautify-web/js-beautify/compare/v1.5.2...v1.5.3

Closed Issues

  • [TypeError: Cannot read property 'type' of undefined] (#548)
  • Bug with RegExp (#547)
  • Odd behaviour on less (#520)
  • css beauitify (#506)
  • Extra space after scss pseudo classes. (#500)
  • Generates invalid scss when formatting ampersand selectors (#498)
  • bad formatting of .less files using @variable or &:hover syntax (#489)
  • Incorrect beautifying of CSS comment including an url. (#466)
  • Handle SASS parent reference &: (#414)
  • Js-beautify breaking selectors in less code. (#410)
  • Problem with "content" (#364)
  • Space gets inserted between function and paren for function in Define (#313)
  • beautify-html returns null on broken html (#301)
  • Indentation of functions inside conditionals not passing jslint (#298)

v1.5.2

Description

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

https://github.com/beautify-web/js-beautify/compare/v1.5.1...v1.5.2

Closed Issues

  • Allow custom elements to be unformatted (#540)
  • Need option to ignore brace style (#538)
  • Refactor to Output and OutputLine classes (#536)
  • Recognize ObjectLiteral on open brace (#535)
  • Refactor to fully tokenize before formatting (#530)
  • Cleanup checked in six.py file (#527)
  • Changelog.md? (#526)
  • New line added between each css declaration (#523)
  • Kendo Template scripts get messed up! (#516)
  • SyntaxError: Unexpected token ++ (#514)
  • space appears before open square bracket when the object name is "set" (#508)
  • Unclosed string problem (#505)
  • "--n" and "++n" are not indented like "n--" and "n++" are... (#495)
  • Allow <style> and <script> tags to be unformatted (#494)
  • Preserve new line at end of file (#492)
  • Line wraps breaking numbers (causes syntax error) (#488)
  • jsBeautify acts differently when handling different kinds of function expressions[BUG][javascript] (#485)
  • AttributeError: 'NoneType' object has no attribute 'groups' (#479)
  • installation doco for python need update -- pip install six? (#478)
  • Move einars/js-beautify to beautify-web/js-beautify (#475)
  • Bring back space_after_anon_function (#474)
  • fix for #453, Incompatible handlebar syntax (#468)
  • Python: missing explicit dependency on "six" package (#465)
  • function declaration inside array, adds extra line. (#464)
  • [es6] yield a array (#458)
  • Publish v1.5.2 (#452)
  • Port css colon character fix to python (#446)
  • Cannot declare object literal properties with unquoted reserved words (#440)
  • Do not put a space within function* generator functions. (#428)
  • beautification of "nth-child" css fails csslint (#418)

v1.5.10

Description

Hotfix for directives Version jump due to release script tweaks

Closed Issues

  • Preserve directive doesn't work as intended (#723)

v1.5.1

Description

Highlights:

  • Fixes var declaration of objects and arrays to indent correctly (#256, #430)
  • Support keywords as IdentifierNames such as foo.catch() (#309, #351,#368, #378)
  • Improved indenting for statements (#289)
  • Improved ES6 support - let, const, template strings, and "fat arrow"
  • Support for non-ASCII characters in variable names (#305)
  • Multiple fixes to requirejs support and added tests to protect in future
  • Improved LESS support (still plenty of room for improvement in this area)
  • Do not add space after !!

https://github.com/einars/js-beautify/compare/v1.4.2...v1.5.1

Closed Issues

  • Nested if statements not displayed correctly (#450)
  • preserve_newlines always true (#449)
  • line wrapping breaks in weird places (#438)
  • Update dependencies to current versions (#437)
  • Add support for ES6 template strings (#434)
  • Fix #402: support ES6 fat arrow (#433)
  • Ending brace missaligned when part of first definition in var line (#430)
  • fixing disabled line wrapping for HTML (#429)
  • Missing semi colon (#420)
  • Fixed require.js support (#416)
  • should not split the es6 operator '=>' (#402)
  • fixed relative paths for require.js (#387)
  • Support reserved words as property names (#378)
  • Make the AMD API match the rest of the APIs (#376)
  • Preserve newlines in html related to issue #307 (#375)
  • Multi-line statements (#374)
  • Reserved words used as property/function/variable identifiers are formatted incorrectly (#368)
  • fixed problems with colon character (#363)
  • require.JS paths are hardcoded in beautify-html.js (#359)
  • Regression in p.a.c.ked file detection (#357)
  • Fix Issue #339 (#354)
  • Added single line comment support in less/sass for javascript parser (#353)
  • Function named 'in' not formatting correctly (#351)
  • CSS Pseudo element (#346)
  • array closing brace error for return statements with keep_array_indentation (#340)
  • CSS Beautifier: breaks :before and :after (regression) (#339)
  • Publish v1.5.0 (#335)
  • "keep array indentation" not working (#333)
  • CSS Beautifier: support LESS/SASS line comments (#326)
  • Incorrect formating with semicolon-less code (#323)

v1.4.2

Description

Release quick fix for python errno error that has started being more heavily reported Initial release of css beautifier ported to python Additional minor fixes and enhancements

Closed Issues

  • global name 'errno' is not defined (#352)
  • import errno for errno.EEXIST (#349)
  • Added bower.json (#343)
  • HTML wrap-line-length: 0 doesn't work (#342)
  • Make beautify.js, beautify-html.js, beautify-css.js available in bower (#341)
  • Making .jsbeautifyrc resolve work (in general and for Windows re home dir) (#334)
  • windows 8 error: path.js:204 throw new TypeError('Arguments to path.join must be strings'); (#300)
  • Port beautify-css to python (#204)

v1.4.1

Description

Incremental fixes and improvements

Closed Issues

  • Tests borked when running from web (#332)
  • wrap_line_length isn't enforced for property values (#331)
  • Have no empty line between comment and function (#329)
  • Add new line at the end of the file (html-beautify) (#325)
  • Space in empty parentheses (#322)
  • Handlebars (#321)
  • Space in empty parentheses (#320)
  • The indent_with_tabs option did not work when required in node, only CLI. (#319)
  • add option to indent "inner HTML"... (#312)
  • Wrong format of HTML textnode containing multipe words (#306)
  • Repair to work in windows (#304)
  • make export object the same with common and amd methods (#303)
  • jshint cleanup and make require.js optimizable (#302)
  • E4X xml-literal allowed xml-characters (#294)
  • Publish 1.4.1 (#292)
  • Blank line inserted between function and preceding comment (#291)
  • Add tests for beautify-html.js (#211)

v1.4.0

Description

Given the breadth of the changes in the code and api, bump to 1.4.0 for the next release.

https://github.com/einars/js-beautify/compare/v1.3.4...v1.4.0

Closed Issues

  • Fix major performance degradation from minimal indenting (#288)
  • Minimal indenting (#286)
  • Empty lines are removed in HTML and CSS, and also adds trailing spaces (#285)
  • npmjs cli options incomplete (#283)
  • Publish 1.4.0 (#282)
  • Blocks, arrays, and expressions over indented (#281)
  • Keeping New lines inside markup (#280)
  • E4X xml-literal small fixes (#279)
  • Add support for Asynchronous Module Definition (AMD) API (#274)
  • fixed broken run tests script (#255)
  • Ending parenthesis in function call (#239)
  • Preventing line breaks around Unformatted tags (#105)
  • IE conditional HTML comments don't play well with the rest of the document (#91)

v1.3.4

Description

1.3.3 introduced an change to function formatting. This fixes primarily that but also a few other tweaks.

Closed Issues

  • Broken indentation (#277)
  • Nested inline statements (if, while, do, for) should start new line (#276)
  • Bare expression followed immediately by function definition should not indent (#275)
  • bug fix for "js-beautify does not create directory automatically when use '-o' parameter" (#272)
  • js-beautify does not create directory automatically when use '-o' parameter (#270)
  • Problem with indentation inside function (#268)
  • added a deindent() function . (#267)

v1.3.3

Description

Another good set of fixes.

Closed Issues

  • Nested arrays indentation with --good-stuff (#273)
  • Keep Array Indentation doesn't always work (#263)
  • Whitespace issue with function call with object literal + other arguments. (#262)
  • Implement wider fix to Indenting within parenthesis frames (#259)
  • Block formatting within function call parameters. (#258)
  • make python accept -w or --wrap-line-lengthmake python accept -w or --wrap-line-length (#252)
  • Beautifying function call chains that end with a callback results in incorrect formatting (#241)
  • Keeping New lines (#96)

v1.3.2

Description

Seems like there are enough features on master to justify a patch revision. To wit:

  • Removal of expand-strict value for --brace-style option.
  • Added --space-in-paren option.
  • E4X
  • Functions as sub-array literals (#246)
  • Minor updates to p_a_c_k_e_r unpacking.

https://github.com/einars/js-beautify/compare/v1.3.1...master

Closed Issues

  • Why removed support for global object? (#249)
  • Incorrect indentation of functions in array (#246)
  • E4X for Python (#243)
  • Single line comments on "case:" lines forced to next line (#242)
  • Remove expand-strict (#240)
  • empty braces should always collapse to {} on the same line (#237)
  • braces "expand-strict", return { } should be on same line (#236)
  • Option for different formatting of spaces in parens (#235)
  • E4X (#234)
  • -h option in cli.js (#233)
  • Globally installed npm js-beautify will never catch .jsbeautifyrc in /home (#228)
  • html conditional tag treated as open tag "<!--[if IE 8]>" (#222)
  • Document package release process (#214)
  • Add basic tests for beautify command line (#209)
  • Index.html - "Preserve empty lines" does not describe the behavior (#199)
  • Bug: <![CDATA[ (#152)
  • New options proposal: spaces around arguments (#126)
  • Add option to put single-statement blocks into a new line (#116)
  • [Feature request] --disable-preserve-newlines to one line (#74)