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

Changelog History
Page 5

  • v1.6.8 Changes

    Description

    • 🛠 Fixed a batch of comment and semicolon-less code bugs

    Closed Issues

    • 🌐 Incorrect indentation after loop with comment (#1090)
    • 🌐 Extra newline is inserted after beautifying code with anonymous function (#1085)
    • 🌐 end brace with next comment line make bad indent (#1043)
    • 🌐 Javascript comment in last line doesn't beautify well (#964)
    • 🌐 indent doesn't work with comment (jsdoc) (#913)
    • 🌐 Wrong indentation, when new line between chained methods (#892)
    • 💅 Comments in a non-semicolon style have extra indent (#815)
    • 🌐 [bug] Incorrect indentation due to commented line(s) following a function call with a function argument. (#713)
    • 🌐 Wrong indent formatting (#569)
  • v1.6.7 Changes

    Description

    ➕ Added content_unformatted option (Thanks @arai-a)

    Closed Issues

    • 🌐 HTML pre code indentation (#928)
    • 💅 Beautify script/style tags but ignore their inner JS/CSS content (#906)
  • v1.6.6 Changes

    Description

    • ➕ Added support for editorconfig from stdin
    • ➕ Added js-beautify to cdnjs
    • 🛠 Fixed CRLF to LF for HTML and CSS on windows
    • ➕ Added inheritance/overriding to config format (Thanks @DaniGuardiola and @HookyQR)
    • ➕ Added force-align to wrap-attributes (Thanks @Lukinos)
    • ➕ Added force-expand-multiline to wrap-attributes (Thanks @tobias-zucali)
    • ➕ Added preserve-inline as independent brace setting (Thanks @Coburn37)
    • 🛠 Fixed handlebars with angle-braces (Thanks @mmsqe)

    Closed Issues

    • 🌐 Wrong indentation for comment after nested unbraced control constructs (#1079)
    • 🌐 Should prefer breaking the line after operator ? instead of before operator < (#1073)
    • 🆕 New option "force-expand-multiline" for "wrap_attributes" (#1070)
    • 🌐 Breaks if html file starts with comment (#1068)
    • 💅 collapse-preserve-inline restricts users to collapse brace_style (#1057)
    • 📜 Parsing failure on numbers with "e" (#1054)
    • 💻 Issue with Browser Instructions (#1053)
    • ➕ Add preserve inline function for expand style braces (#1052)
    • ⚡️ Update years in LICENSE (#1038)
    • 🌐 JS. Switch with template literals. Unexpected indentation. (#1030)
    • 🌐 The object with spread object formatted not correctly (#1023)
    • 🌐 Bad output generator function in class (#1013)
    • 👌 Support editorconfig for stdin (#1012)
    • 🌐 Publish to cdnjs (#992)
    • 🌐 breaks if handlebars comments contain handlebars tags (#930)
    • 🌐 Using jsbeautifyrc is broken (#929)
    • 🌐 Option to put HTML attributes on their own lines, aligned (#916)
    • 🏁 Erroneously changes CRLF to LF on Windows in HTML and CSS (#899)
    • 🌐 Weird space in {get } vs { normal } (#888)
    • 🌐 Bad for-of formatting with constant Array (#875)
    • 🌐 Problems with filter property in css and scss (#755)
    • ➕ Add "collapse-one-line" option for non-collapse brace styles (#487)
  • 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)