[0.12.0] - 2022-01-31
Added
- Added option
call_parentheses
:
Specify whether to apply parentheses on function calls with single string or table arg. Possible options:Always
(default),NoSingleString
,NoSingleTable
,None
. (#329) - Added proper multiline hanging of generic for syntax. (#322)
- Added proper formatting for if-expression syntax under the
luau
feature flag. (#289) - Updated parser to add support for generic/variadic type packs, singleton types and default types under the
luau
feature flag.
Fixed
- Fixed generic variadics not being handled under the
luau
feature flag. (#333) - Fixed issue with comments within an assignment not being correctly handled, leading to a syntax error. (#340)
- Fixed parentheses around an IfExpression being removed, leading to incorrect semantics, under the
luau
feature flag. (#345)
Deprecated
- Option
no_call_parentheses
has been deprecated. Usecall_parentheses = "None"
instead.
What's Changed
- Add docs for pre-commit integration by @rouge8 in #328
- Add a system hook for people who don't have the rust toolchain by @IamTheFij in #331
- feat: add short option for config path by @wesleimp in #332
- Handle generic variadics by @JohnnyMorganz in #334
- Adds a new version of the hook to download releases by @IamTheFij in #336
- feat: Add more granular control over call parentheses by @shadmansaleh in #330
- Multiline formatting of generic for syntax by @JohnnyMorganz in #337
- Luau: Implement proper IfExpression formatting by @JohnnyMorganz in #335
- Handle comments inlined in assignment expression better by @JohnnyMorganz in #341
- Don't remove parentheses around an IfExpression by @JohnnyMorganz in #346
- Update full-moon version by @JohnnyMorganz in #347
New Contributors
- @wesleimp made their first contribution in #332
- @shadmansaleh made their first contribution in #330
Full Changelog: v0.11.3...v0.12.0