v0.12.1
[0.12.1] - 2022-02-01
Fixed
- Fixed misformatting of conditions in if-expression syntax leading to spurious whitespace under the
luau
feature flag. (#349) - Fixed incorrect shape calculation in if-expression syntax: if-expression will now go multiline when only slightly over column width (
luau
feature flag). - Fixed incorrect handling of comments at the end of a callback type's arguments under the
luau
feature flag. (#352) - Fixed mistransformation of type declaration when the type info is a union which must be multiline due to comments under the
luau
feature flag. (#351) - Fixed leading comments on a
|
symbol in a type info being lost when hanging the type under theluau
feature flag. - Fixed trailing comments of a function call being lost as parentheses are removed around a single argument when
call_parentheses
is set to notAlways
. (#356)
What's Changed
- Fix misformatting of if-expression syntax by @JohnnyMorganz in #350
- Extract out
format_contained_punctuated_multiline
by @JohnnyMorganz in #353 - Fix mistransformation of comments in callback type argument by @JohnnyMorganz in #354
- Fix mistransformation of type unions with comments by @JohnnyMorganz in #355
- Preserve trailing comments when removing parens in function call by @JohnnyMorganz in #357
Full Changelog: v0.12.0...v0.12.1