files
(#1583)space_after_anon_function
is invalid (#1425)indent_scripts
option (#1518)Beautifier has moved to https://beautifier.io
Broader adoption of 1.8.x revealed a few more high priority fixes
Massive set of fixes and improvements.
Thanks to contributors: @cheerypick, @swan46, @MacKLess, @Elrendio, @madman-bob, @amanda-bot, @Hirse, @aeschli, and many more.
Special thanks to @astronomersiva and @garretwilson for finding key bugs in the RC releases, and to @MacKLess for driving down the open bug count with tons of regression tests.
Highlights:
newline_between_rules
support for nested rules - CSS/SASS/SCSS/LESS (@MacKLess)wrap_attributes
setting align-multiple
(@cheerypick)if
tags are broken when using helper with textarea
(#1482)Thanks @cejast for contributing!
async
keyword for arrow functions (#896)Lessons learned:
Don't publish and go to bed.
I thought I had sufficient test coverage and I did not. Tests will be implemented to protect against this before the next release (#1254).
Also, this break highlights the need to create a beta channel for releases and a way to request feedback on beta releases (#1255).
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).
* 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)
Reverted #1117 - Preserve newlines broken
Added preserver_newlines
to css beautifier
Added content_unformatted
option (Thanks @arai-a)
force-align
to wrap-attributes
(Thanks @Lukinos)force-expand-multiline
to wrap-attributes
(Thanks @tobias-zucali)preserve-inline
as independent brace setting (Thanks @Coburn37)space_around_combinator
option)yield*
(Thanks @jgeurts!)yield*
generator functions. (#920)Bug fixes
Fixes for regressions found in 1.6.0
Hotfix for directives Version jump due to release script tweaks
--indent-inner-html
. (#633)<li>
s ending with <code>
(#524)https://github.com/beautify-web/js-beautify/compare/v1.5.3...v1.5.4
https://github.com/beautify-web/js-beautify/compare/v1.5.2...v1.5.3
<script>
"type"-attribute<style>
and <script>
tags to be unformattedhttps://github.com/beautify-web/js-beautify/compare/v1.5.1...v1.5.2
<style>
and <script>
tags to be unformatted (#494)function*
generator functions. (#428)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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.