Skip to content

v0.20.0

Compare
Choose a tag to compare
@github-actions github-actions released this 20 Jan 12:50

[0.20.0] - 2024-01-20

Added

  • Introduced a new release artifact stylua-linux-x86_64-musl (#834)

Changed

  • Files excluded by git (via .gitignore or global git configuration), as well as in an .ignore file (used by ripgrep and The Silver Searcher)
    will now also be ignored by StyLua (as if they were all .styluaignore files). (#833)

Fixed

General

  • The CLI tool will now only write files if the contents differ, and not modify the file if there is no change after formatting (#827)
  • Fixed function body parentheses being placed on multiple lines unnecessarily when there are no parameters (#830)
  • Fixed directory paths w/o globs in .styluaignore not matching when using --respect-ignores (#845)

Luau

  • Fixed handling of floor division (//) syntax when only Luau command line flag is enabled
  • Fixed missing space when table is inside of Luau interpolated string expression ({{ is invalid syntax)
  • Fixed parentheses around a Luau compound type inside of a type table indexer being removed causing a syntax error (#828)

New Contributors

Full Changelog: v0.19.1...v0.20.0