All Versions
52
Latest Version
Avg Release Cycle
52 days
Latest Release
-

Changelog History
Page 5

  • v1.6.4 Changes

    Description

    • ๐Ÿ›  Fixed JSX multi-line root element handling
    • Fixed CSS Combinator spacing (NOTE: use space_around_combinator option)
    • ๐Ÿ›  Fixed (more) CSS pseudo-class and pseudo-element selectors (Thanks @Konamiman!)
    • ๐Ÿ›  Fixed Shorthand generator functions and yield* (Thanks @jgeurts!)
    • โž• Added EditorConfig support (Thanks @ethanluoyc!)
    • Added indent_body_inner_html and indent_head_inner_html (Thanks @spontaliku-softaria!)
    • โž• Added js-beautify to https://cdn.rawgit.com (Thanks @zxqfox)

    Closed Issues

    • ๐ŸŒ css-beautify sibling combinator space issue (#1001)
    • ๐Ÿ› Bug: Breaks when the source code it found an unclosed multiline comment. (#996)
    • ๐ŸŒ CSS: Preserve white space before pseudo-class and pseudo-element selectors (#985)
    • ๐ŸŒ Spelling error in token definition (#984)
    • ๐ŸŒ collapse-preserve-inline does not preserve simple, single line ("return") statements (#982)
    • ๐ŸŒ Publish the library via cdn (#971)
    • ๐Ÿ› Bug with css calc() function (#957)
    • ๐ŸŒ &:first-of-type:not(:last-child) when prettified insert erroneous white character (#952)
    • ๐ŸŒ Shorthand generator functions are formatting strangely (#941)
    • โž• Add handlebars support on cli for html (#935)
    • ๐ŸŒ Do not put a space within yield* generator functions. (#920)
    • Possible to add an indent_inner_inner_html option? (Prevent indenting second-level tags) (#917)
    • ๐ŸŒ Messing up jsx formatting multi-line attribute (#914)
    • ๐Ÿ› Bug report: Closing 'body' tag isn't formatted correctly (#900)
    • ๐ŸŒ { throw โ€ฆ } not working with collapse-preserve-inline (#898)
    • ๐ŸŒ ES6 concise method not propely indented (#889)
    • ๐ŸŒ CSS beautify changing symantics (#883)
    • ๐ŸŒ Dojo unsupported script types. (#874)
    • ๐ŸŒ Readme version comment (#868)
    • ๐ŸŒ Extra space after pseudo-elements within :not() (#618)
    • ๐ŸŒ space in media queries after colon &: selectors (#565)
    • ๐ŸŒ Integrating editor config (#551)
    • ๐ŸŒ Preserve short expressions/statements on single line (#338)
  • v1.6.3 Changes

    Description

    ๐Ÿ› Bug fixes

    Closed Issues

    • ๐ŸŒ CLI broken when output path is not set (#933)
    • ๐ŸŒ huge memory leak (#909)
    • ๐Ÿ–จ don't print unpacking errors on stdout (python) (#884)
    • ๐Ÿ›  Fix incomplete list of non-positionable operators (python lib) (#878)
    • ๐Ÿ›  Fix Issue #844 (#873)
    • ๐ŸŒ assignment exponentiation operator (#864)
    • ๐Ÿ› Bug in Less mixins (#844)
    • ๐ŸŒ Can't Nest Conditionals (#680)
    • ๐ŸŒ ternary operations (#670)
    • ๐Ÿ‘Œ Support newline before logical or ternary operator (#605)
    • ๐Ÿ‘• Provide config files for format and linting (#336)
  • v1.6.2 Changes

    Description

    Closed Issues

    • โž• Add missing 'collapse-preserve-inline' option to js module (#861)
  • v1.6.1 Changes

    Description

    ๐Ÿ›  Fixes for regressions found in 1.6.0

    Closed Issues

    • ๐ŸŒ Inconsistent formatting for arrays of objects (#860)
    • ๐ŸŒ Publish v1.6.1 (#859)
    • ๐ŸŒ Space added to "from++" due to ES6 keyword (#858)
    • ๐Ÿ”„ Changelog generator doesn't sort versions above 9 right (#778)
    • ๐ŸŒ space-after-anon-function not applied to object properties (#761)
    • ๐ŸŒ Separating 'input' elements adds whitespace (#580)
    • ๐ŸŒ Inline Format (#572)
    • ๐ŸŒ Preserve attributes line break in HTML (#455)
    • ๐ŸŒ Multiline Array (#406)
  • v1.6.0 Changes

    Description

    • Inline/short object and json preservation (all rejoice!)
    • ES6 annotations, module import/export, arrow functions, concise methods, and more
    • JSX spread attributes
    • ๐Ÿ›  HTML wrap attributes, inline element fixes, doctype and php fixes
    • โœ… Test framework hardening
    • ๐Ÿ Windows build fixed and covered by appveyor continuous integration

    Closed Issues

    • โœ… Individual tests pollute options object (#855)
    • ๐ŸŒ Object attribute assigned fat arrow function with implicit return of a ternary causes next line to indent (#854)
    • ๐ŸŒ Treat php tags as single in html (#850)
    • 0๏ธโƒฃ Read piped input by default (#849)
    • ๐ŸŒ Replace makefile dependency with bash script (#848)
    • ๐ŸŒ list of HTML inline elements incomplete; wraps inappropriately (#840)
    • ๐ŸŒ Beautifying bracket-less if/elses (#838)
    • ๐ŸŒ elements within a are getting indented incorrectly (#836)
    • ๐ŸŒ single attribute breaks jsx beautification (#834)
    • ๐Ÿ‘Œ Improve Python packaging (#831)
    • ๐Ÿ Erroneously changes CRLF to LF on Windows. (#829)
    • ๐ŸŒ Can't deal with XHTML5 (#828)
    • ๐ŸŒ HTML after PHP is indented (#826)
    • ๐ŸŒ exponentiation operator (#825)
    • โž• Add support for script type "application/ld+json" (#821)
    • ๐Ÿ“ฆ package.json: Remove "preferGlobal" option (#820)
    • ๐Ÿ’ป Don't use array.indexOf() to support legacy browsers (#816)
    • ๐ŸŒ ES6 Object Shortand Indenting Weirdly Sometimes (#810)
    • ๐ŸŒ Implicit Return Function on New Line not Preserved (#806)
    • ๐ŸŒ Misformating "0b" Binary Strings (#803)
    • ๐ŸŒ Beautifier breaks ES6 nested template strings (#797)
    • ๐ŸŒ Misformating "0o" Octal Strings (#792)
    • โœ… Do not use hardcoded directory for tests (#788)
    • ๐ŸŒ Handlebars {{else}} tag not given a newline (#784)
    • ๐ŸŒ Wrong indentation for XML header (<?xml version="1.0"?>) (#783)
    • ๐ŸŒ is_whitespace for loop incrementing wrong variable (#777)
    • ๐Ÿ†• Newline is inserted after comment with comma_first (#775)
    • ๐ŸŒ Cannot copy more than 1000 characters out of CodeMirror buffer (#768)
    • ๐ŸŒ Missing 'var' in beautify-html.js; breaks strict mode (#763)
    • ๐Ÿ›  Fix typo in the example javascript code of index.html (#753)
    • ๐ŸŒ Prevent incorrect wrapping of return statements. (#751)
    • ๐ŸŒ js-beautify -X breaks code with jsx spread attributes (#734)
    • ๐ŸŒ Unhelpful error when .jsbeautifyrc has invalid json (#728)
    • ๐Ÿ‘Œ Support for ES7 decorators (#685)
    • ๐ŸŒ Don't wrap XML declaration (or processing instructions) (#683)
    • ๐ŸŒ JSX/JS: Single field objects should not expand (#674)
    • ๐ŸŒ ES6 Module Loading Object Destructuring newlines (#668)
    • ๐ŸŒ Beautifying css tears @media in two lines, adds spaces in names with hyphens (#656)
    • ๐ŸŒ ES6 concise method not propely indented (#647)
    • ๐ŸŒ Extra newline inserted with wrap_attributes set to "force" (#641)
    • wrap_attributes ignores wrap_attributes_indent_size and wrap_line_length when set to "auto" (#640)
    • ๐Ÿ Error building on Windows (#638)
    • ๐ŸŒ Mixed shorthand function with arrow function in object literal is mis-formatted (#602)
    • ๐ŸŒ Space does not let save using "&:" (#594)
    • ๐ŸŒ Indenting is broken in some cases (#578)
    • 0๏ธโƒฃ modified cli.js so that it can read from piped input by default (#558)
    • ๐Ÿš€ Update release process instructions (#543)
    • ๐ŸŒ Publish v1.6.0 (#542)
    • ๐ŸŒ es6 destructuring (#511)
    • ๐ŸŒ NPM js-beautify: different treatment of "-" in command line (#390)
    • ๐Ÿ†• Newline inserted after ES6 module import/export (#382)
    • ๐ŸŒ Option to preserve or inline "short objects" on a single line (#315)
    • ๐ŸŒ Format json in line (#114)
  • v1.5.10 Changes

    Description

    ๐Ÿš‘ Hotfix for directives ๐Ÿ”– Version jump due to release script tweaks

    Closed Issues

    • ๐ŸŒ Preserve directive doesn't work as intended (#723)
  • v1.5.7 Changes

    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 Changes

    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 Changes

    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 Changes

    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)