From f362b78ea9b8cc5fc356937fb0687a94198291b6 Mon Sep 17 00:00:00 2001 From: Liam Newman Date: Mon, 26 Dec 2016 03:11:17 -0800 Subject: [PATCH] Update Changelog for 1.6.6 --- CHANGELOG.md | 534 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 534 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 825c32f0d..9dec0653d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1 +1,535 @@ # Changelog +## v1.6.6 + +### 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](https://github.com/beautify-web/js-beautify/issues/1079)) +* Should prefer breaking the line after operator ? instead of before operator < ([#1073](https://github.com/beautify-web/js-beautify/issues/1073)) +* New option "force-expand-multiline" for "wrap_attributes" ([#1070](https://github.com/beautify-web/js-beautify/pull/1070)) +* Breaks if html file starts with comment ([#1068](https://github.com/beautify-web/js-beautify/issues/1068)) +* collapse-preserve-inline restricts users to collapse brace_style ([#1057](https://github.com/beautify-web/js-beautify/issues/1057)) +* Parsing failure on numbers with "e" ([#1054](https://github.com/beautify-web/js-beautify/issues/1054)) +* Issue with Browser Instructions ([#1053](https://github.com/beautify-web/js-beautify/issues/1053)) +* Add preserve inline function for expand style braces ([#1052](https://github.com/beautify-web/js-beautify/issues/1052)) +* Update years in LICENSE ([#1038](https://github.com/beautify-web/js-beautify/issues/1038)) +* JS. Switch with template literals. Unexpected indentation. ([#1030](https://github.com/beautify-web/js-beautify/issues/1030)) +* The object with spread object formatted not correctly ([#1023](https://github.com/beautify-web/js-beautify/issues/1023)) +* Bad output generator function in class ([#1013](https://github.com/beautify-web/js-beautify/issues/1013)) +* Support editorconfig for stdin ([#1012](https://github.com/beautify-web/js-beautify/issues/1012)) +* Publish to cdnjs ([#992](https://github.com/beautify-web/js-beautify/issues/992)) +* breaks if handlebars comments contain handlebars tags ([#930](https://github.com/beautify-web/js-beautify/issues/930)) +* Using jsbeautifyrc is broken ([#929](https://github.com/beautify-web/js-beautify/issues/929)) +* Option to put HTML attributes on their own lines, aligned ([#916](https://github.com/beautify-web/js-beautify/issues/916)) +* Erroneously changes CRLF to LF on Windows in HTML and CSS ([#899](https://github.com/beautify-web/js-beautify/issues/899)) +* Weird space in {get } vs { normal } ([#888](https://github.com/beautify-web/js-beautify/issues/888)) +* Bad for-of formatting with constant Array ([#875](https://github.com/beautify-web/js-beautify/issues/875)) +* Problems with filter property in css and scss ([#755](https://github.com/beautify-web/js-beautify/issues/755)) + + +## v1.6.4 + +### 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](https://github.com/beautify-web/js-beautify/issues/1001)) +* Bug: Breaks when the source code it found an unclosed multiline comment. ([#996](https://github.com/beautify-web/js-beautify/issues/996)) +* CSS: Preserve white space before pseudo-class and pseudo-element selectors ([#985](https://github.com/beautify-web/js-beautify/pull/985)) +* Spelling error in token definition ([#984](https://github.com/beautify-web/js-beautify/issues/984)) +* collapse-preserve-inline does not preserve simple, single line ("return") statements ([#982](https://github.com/beautify-web/js-beautify/issues/982)) +* Publish the library via cdn ([#971](https://github.com/beautify-web/js-beautify/issues/971)) +* Bug with css calc() function ([#957](https://github.com/beautify-web/js-beautify/issues/957)) +* &:first-of-type:not(:last-child) when prettified insert erroneous white character ([#952](https://github.com/beautify-web/js-beautify/issues/952)) +* Shorthand generator functions are formatting strangely ([#941](https://github.com/beautify-web/js-beautify/issues/941)) +* Add handlebars support on cli for html ([#935](https://github.com/beautify-web/js-beautify/pull/935)) +* Do not put a space within `yield*` generator functions. ([#920](https://github.com/beautify-web/js-beautify/issues/920)) +* Possible to add an indent_inner_inner_html option? (Prevent indenting second-level tags) ([#917](https://github.com/beautify-web/js-beautify/issues/917)) +* Messing up jsx formatting ([#914](https://github.com/beautify-web/js-beautify/issues/914)) +* Bug report: Closing 'body' tag isn't formatted correctly ([#900](https://github.com/beautify-web/js-beautify/issues/900)) +* { throw … } not working with collapse-preserve-inline ([#898](https://github.com/beautify-web/js-beautify/issues/898)) +* ES6 concise method not propely indented ([#889](https://github.com/beautify-web/js-beautify/issues/889)) +* CSS beautify changing symantics ([#883](https://github.com/beautify-web/js-beautify/issues/883)) +* Dojo unsupported script types. ([#874](https://github.com/beautify-web/js-beautify/issues/874)) +* Readme version comment ([#868](https://github.com/beautify-web/js-beautify/issues/868)) +* Extra space after pseudo-elements within :not() ([#618](https://github.com/beautify-web/js-beautify/issues/618)) +* space in media queries after colon &: selectors ([#565](https://github.com/beautify-web/js-beautify/issues/565)) +* Integrating editor config ([#551](https://github.com/beautify-web/js-beautify/issues/551)) +* Preserve short expressions/statements on single line ([#338](https://github.com/beautify-web/js-beautify/issues/338)) + + +## v1.6.3 + +### Description +Bug fixes + +### Closed Issues +* CLI broken when output path is not set ([#933](https://github.com/beautify-web/js-beautify/issues/933)) +* huge memory leak ([#909](https://github.com/beautify-web/js-beautify/issues/909)) +* don't print unpacking errors on stdout (python) ([#884](https://github.com/beautify-web/js-beautify/pull/884)) +* Fix incomplete list of non-positionable operators (python lib) ([#878](https://github.com/beautify-web/js-beautify/pull/878)) +* Fix Issue #844 ([#873](https://github.com/beautify-web/js-beautify/pull/873)) +* assignment exponentiation operator ([#864](https://github.com/beautify-web/js-beautify/issues/864)) +* Bug in Less mixins ([#844](https://github.com/beautify-web/js-beautify/issues/844)) +* Can't Nest Conditionals ([#680](https://github.com/beautify-web/js-beautify/issues/680)) +* ternary operations ([#670](https://github.com/beautify-web/js-beautify/issues/670)) +* Support newline before logical or ternary operator ([#605](https://github.com/beautify-web/js-beautify/issues/605)) +* Provide config files for format and linting ([#336](https://github.com/beautify-web/js-beautify/issues/336)) + + +## v1.6.2 + +### Description + + +### Closed Issues +* Add missing 'collapse-preserve-inline' option to js module ([#861](https://github.com/beautify-web/js-beautify/pull/861)) + + +## v1.6.1 + +### Description +Fixes for regressions found in 1.6.0 + + +### Closed Issues +* Inconsistent formatting for arrays of objects ([#860](https://github.com/beautify-web/js-beautify/issues/860)) +* Publish v1.6.1 ([#859](https://github.com/beautify-web/js-beautify/issues/859)) +* Space added to "from++" due to ES6 keyword ([#858](https://github.com/beautify-web/js-beautify/issues/858)) +* Changelog generator doesn't sort versions above 9 right ([#778](https://github.com/beautify-web/js-beautify/issues/778)) +* space-after-anon-function not applied to object properties ([#761](https://github.com/beautify-web/js-beautify/issues/761)) +* Separating 'input' elements adds whitespace ([#580](https://github.com/beautify-web/js-beautify/issues/580)) +* Inline Format ([#572](https://github.com/beautify-web/js-beautify/issues/572)) +* Preserve attributes line break in HTML ([#455](https://github.com/beautify-web/js-beautify/issues/455)) +* Multiline Array ([#406](https://github.com/beautify-web/js-beautify/issues/406)) + + +## v1.6.0 + +### 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](https://github.com/beautify-web/js-beautify/issues/855)) +* 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)) +* Treat php tags as single in html ([#850](https://github.com/beautify-web/js-beautify/pull/850)) +* Read piped input by default ([#849](https://github.com/beautify-web/js-beautify/pull/849)) +* Replace makefile dependency with bash script ([#848](https://github.com/beautify-web/js-beautify/pull/848)) +* list of HTML inline elements incomplete; wraps inappropriately ([#840](https://github.com/beautify-web/js-beautify/issues/840)) +* Beautifying bracket-less if/elses ([#838](https://github.com/beautify-web/js-beautify/issues/838)) +* elements within a are getting indented incorrectly ([#836](https://github.com/beautify-web/js-beautify/issues/836)) +* single attribute breaks jsx beautification ([#834](https://github.com/beautify-web/js-beautify/issues/834)) +* Improve Python packaging ([#831](https://github.com/beautify-web/js-beautify/pull/831)) +* Erroneously changes CRLF to LF on Windows. ([#829](https://github.com/beautify-web/js-beautify/issues/829)) +* Can't deal with XHTML5 ([#828](https://github.com/beautify-web/js-beautify/issues/828)) +* HTML after PHP is indented ([#826](https://github.com/beautify-web/js-beautify/issues/826)) +* exponentiation operator ([#825](https://github.com/beautify-web/js-beautify/issues/825)) +* Add support for script type "application/ld+json" ([#821](https://github.com/beautify-web/js-beautify/issues/821)) +* package.json: Remove "preferGlobal" option ([#820](https://github.com/beautify-web/js-beautify/pull/820)) +* Don't use array.indexOf() to support legacy browsers ([#816](https://github.com/beautify-web/js-beautify/pull/816)) +* ES6 Object Shortand Indenting Weirdly Sometimes ([#810](https://github.com/beautify-web/js-beautify/issues/810)) +* Implicit Return Function on New Line not Preserved ([#806](https://github.com/beautify-web/js-beautify/issues/806)) +* Misformating "0b" Binary Strings ([#803](https://github.com/beautify-web/js-beautify/issues/803)) +* Beautifier breaks ES6 nested template strings ([#797](https://github.com/beautify-web/js-beautify/issues/797)) +* Misformating "0o" Octal Strings ([#792](https://github.com/beautify-web/js-beautify/issues/792)) +* Do not use hardcoded directory for tests ([#788](https://github.com/beautify-web/js-beautify/pull/788)) +* Handlebars {{else}} tag not given a newline ([#784](https://github.com/beautify-web/js-beautify/issues/784)) +* Wrong indentation for XML header () ([#783](https://github.com/beautify-web/js-beautify/issues/783)) +* is_whitespace for loop incrementing wrong variable ([#777](https://github.com/beautify-web/js-beautify/pull/777)) +* Newline is inserted after comment with comma_first ([#775](https://github.com/beautify-web/js-beautify/issues/775)) +* Cannot copy more than 1000 characters out of CodeMirror buffer ([#768](https://github.com/beautify-web/js-beautify/issues/768)) +* Missing 'var' in beautify-html.js; breaks strict mode ([#763](https://github.com/beautify-web/js-beautify/issues/763)) +* Fix typo in the example javascript code of index.html ([#753](https://github.com/beautify-web/js-beautify/pull/753)) + + +## v1.5.10 + +### Description +Hotfix for directives +Version jump due to release script tweaks + + +### Closed Issues +* Preserve directive doesn't work as intended ([#723](https://github.com/beautify-web/js-beautify/issues/723)) + + +## 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](https://github.com/beautify-web/js-beautify/pull/720)) +* Is \\n hard coded into CSS Beautifier logic? ([#715](https://github.com/beautify-web/js-beautify/issues/715)) +* Spaces and linebreaks after # and around { } messing up interpolation/mixins (SASS/SCSS) ([#689](https://github.com/beautify-web/js-beautify/issues/689)) +* Calls to functions get completely messed up in Sass (*.scss) ([#675](https://github.com/beautify-web/js-beautify/issues/675)) +* No new line after selector in scss files ([#666](https://github.com/beautify-web/js-beautify/issues/666)) +* using html-beautify on handlebars template deletes unclosed tag if on second line ([#623](https://github.com/beautify-web/js-beautify/issues/623)) +* more Extra space after scss pseudo classes ([#557](https://github.com/beautify-web/js-beautify/issues/557)) +* Unnecessary spaces in PHP code ([#490](https://github.com/beautify-web/js-beautify/issues/490)) +* Some underscore.js template tags are broken ([#417](https://github.com/beautify-web/js-beautify/issues/417)) +* Selective ignore using comments (feature request) ([#384](https://github.com/beautify-web/js-beautify/issues/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](https://github.com/beautify-web/js-beautify/pull/693)) +* Indentation is incorrect for HTML5 void tag ([#692](https://github.com/beautify-web/js-beautify/issues/692)) +* Line wrapping breaks at the wrong place when the line is indented. ([#691](https://github.com/beautify-web/js-beautify/issues/691)) +* Publish v1.5.6 ([#687](https://github.com/beautify-web/js-beautify/issues/687)) +* Replace existing file fails using python beautifier ([#686](https://github.com/beautify-web/js-beautify/issues/686)) +* Pseudo-classes formatted incorrectly and inconsistently with @page ([#661](https://github.com/beautify-web/js-beautify/issues/661)) +* doc: add end_with_newline option ([#650](https://github.com/beautify-web/js-beautify/pull/650)) +* 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)) +* html-beautify formats handlebars comments but does not format html comments ([#635](https://github.com/beautify-web/js-beautify/issues/635)) +* Support for ES7 async ([#630](https://github.com/beautify-web/js-beautify/issues/630)) +* css beautify adding an extra newline after a comment line in a css block ([#609](https://github.com/beautify-web/js-beautify/issues/609)) +* No option to "Indent with tabs" for HTML files ([#587](https://github.com/beautify-web/js-beautify/issues/587)) +* Function body is indented when followed by a comment ([#583](https://github.com/beautify-web/js-beautify/issues/583)) +* JSX support ([#425](https://github.com/beautify-web/js-beautify/issues/425)) +* Alternative Newline Characters ([#260](https://github.com/beautify-web/js-beautify/issues/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](https://github.com/beautify-web/js-beautify/pull/633)) +* Publish v1.5.5 ([#629](https://github.com/beautify-web/js-beautify/issues/629)) +* CSS: Updating the documentation for the 'newline_between_rules' ([#615](https://github.com/beautify-web/js-beautify/pull/615)) +* Equal Sign Removed from Filter Properties Alpha Opacity Assignment ([#599](https://github.com/beautify-web/js-beautify/issues/599)) +* Keep trailing spaces on comments ([#598](https://github.com/beautify-web/js-beautify/issues/598)) +* only print the file names of changed files ([#597](https://github.com/beautify-web/js-beautify/issues/597)) +* CSS: support add newline between rules ([#574](https://github.com/beautify-web/js-beautify/pull/574)) +* elem[array]++ changes to elem[array] ++ inserting unnecessary gap ([#570](https://github.com/beautify-web/js-beautify/issues/570)) +* add support to less functions paramters braces ([#568](https://github.com/beautify-web/js-beautify/pull/568)) +* selector_separator_newline: true for Sass doesn't work ([#563](https://github.com/beautify-web/js-beautify/issues/563)) +* yield statements are being beautified to their own newlines since 1.5.2 ([#560](https://github.com/beautify-web/js-beautify/issues/560)) +* HTML beautifier inserts extra newline into `
  • `s ending with `` ([#524](https://github.com/beautify-web/js-beautify/issues/524)) +* Add wrap_attributes option ([#476](https://github.com/beautify-web/js-beautify/issues/476)) +* Add or preserve empty line between CSS rules ([#467](https://github.com/beautify-web/js-beautify/issues/467)) +* Support comma first style of variable declaration ([#245](https://github.com/beautify-web/js-beautify/issues/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](https://github.com/beautify-web/js-beautify/issues/552)) +* HTML beautifier inserts double spaces between adjacent tags ([#525](https://github.com/beautify-web/js-beautify/issues/525)) +* Keep space in font rule ([#491](https://github.com/beautify-web/js-beautify/issues/491)) +* [Brackets plug in] Space after disappears ([#454](https://github.com/beautify-web/js-beautify/issues/454)) +* Support nested pseudo-classes and parent reference (LESS) ([#427](https://github.com/beautify-web/js-beautify/pull/427)) +* Alternate approach: preserve single spacing and treat img as inline element ([#415](https://github.com/beautify-web/js-beautify/pull/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](https://github.com/beautify-web/js-beautify/issues/548)) +* Bug with RegExp ([#547](https://github.com/beautify-web/js-beautify/issues/547)) +* Odd behaviour on less ([#520](https://github.com/beautify-web/js-beautify/issues/520)) +* css beauitify ([#506](https://github.com/beautify-web/js-beautify/issues/506)) +* Extra space after scss pseudo classes. ([#500](https://github.com/beautify-web/js-beautify/issues/500)) +* Generates invalid scss when formatting ampersand selectors ([#498](https://github.com/beautify-web/js-beautify/issues/498)) +* bad formatting of .less files using @variable or &:hover syntax ([#489](https://github.com/beautify-web/js-beautify/issues/489)) +* Incorrect beautifying of CSS comment including an url. ([#466](https://github.com/beautify-web/js-beautify/issues/466)) +* Handle SASS parent reference &: ([#414](https://github.com/beautify-web/js-beautify/issues/414)) +* Js-beautify breaking selectors in less code. ([#410](https://github.com/beautify-web/js-beautify/issues/410)) +* Problem with "content" ([#364](https://github.com/beautify-web/js-beautify/issues/364)) +* Space gets inserted between function and paren for function in Define ([#313](https://github.com/beautify-web/js-beautify/issues/313)) +* beautify-html returns null on broken html ([#301](https://github.com/beautify-web/js-beautify/issues/301)) +* Indentation of functions inside conditionals not passing jslint ([#298](https://github.com/beautify-web/js-beautify/issues/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 `