github JohnnyMorganz/StyLua v0.13.0

latest releases: v0.20.0, v0.19.1, v0.19.0...
2 years ago

NOTE: This release removes the version from the release file names (#343). If you have automated tooling to download StyLua releases, you may need to update them to exclude the version from the name

[0.13.0] - 2022-03-31

Added

General

  • Added support for alternative diff outputs. You can now use --output-format=unified or --output-format=json to output a unified diff or json mismatches list respectively. A unified diff can be fed into other tools such as patch or delta, whilst a JSON diff provides a more machine readable format useful for extensions. (#230)

Changed

General

  • Migrate internal dependency for CLI arguments handling, with improved help messages.
  • Generic fors will no longer expand onto multiple lines if the expression looping over is a function call with a single table argument (e.g., ipairs({ ... })) (#405)
  • When hanging an assignment of an expression contained within parentheses, we do not add an extra indentation. The formatting is now consistent with expanded tables and function calls. (#274)

Luau

  • Type declarations consisting of unions/intersections where an inner type has a multiline comment will now force hanging
  • Excess parentheses around a type assertion will now be removed. (#383, #425)

Fixed

General

  • Fixed issue through static linking where Windows binary would not execute due to missing VCRUNTIME140.dll. (#413)
  • Fixed assignment with comment sometimes not hanging leading to malformed syntax. (#416)
  • Fixed block ignores not applied when multiple leading block ignore comments are present at once. (#421)
  • Fixed ordering of comments when semicolon after statement is removed. (#423)

What's Changed

Full Changelog: v0.12.5...v0.13.0

Don't miss a new StyLua release

NewReleases is sending notifications on new releases.