Releases: scalameta/scalafmt
Releases Β· scalameta/scalafmt
v3.6.1
Features
- ScalafmtRunner: always allow top-level terms (#3357) @kitbellew
- Router: always skip shebang line (#3353) @kitbellew
- Router: implement binPack.indentCallSiteSingleArg (#3352) @kitbellew
Bug fixes
- Router: always add space between
(
and comment (#3355) @kitbellew - Router: space between if-while-for cond and body (#3356) @kitbellew
- PolicyOps: unindent correctly in binpacking (#3351) @kitbellew
Other changes
- Documentation: describe binPack.indentCallSiteOnce (#3350) @kitbellew
- PolicyOps: use relative Policy.XYZ symbols (#3349) @kitbellew
- Policy: add a rank, sort in PolicySummary (#3348) @kitbellew
v3.6.0
Features
- CLI: add --mode diff-ref, deprecate --diff-branch (#3346) @kitbellew
- State: extend indent if relativeToLhsFirstLine (#3334) @kitbellew
- ScalafmtRunner: add dialectOverride (#3300) @kitbellew
Bug fixes
- ConvertToNewScala3Syntax: only simple Repeated (#3343) @kitbellew
- FormatWriter: move alignment constraint on defns (#3335) @kitbellew
- TreeOps: improve implicit
implicit
search (#3330) @kitbellew - Router: fix handling of
+_
for scala3 (#3320) @kitbellew - FormatOps: don't format infix as patterns for val (#3315) @kitbellew
- FormatOps: don't init InfixSplits early for indent (#3314) @kitbellew
- FormatOps: force config style on token, not tree (#3310) @kitbellew
- Router: allow empty parameter list to align (#3306) @kitbellew
- ConvertToNewScala3Syntax bugfix:
_
only in types (#3303) @kitbellew - FormatOps: bugfix, check else for opening brace (#3299) @kitbellew
Miscellaneous
- InfixApp: define apply methods in companion (#3342) @kitbellew
- Doc: mention dialect overrides in syntax rewrite (#3332) @kitbellew
- Scalameta v4.6.0: use new functionality (#3333) @kitbellew
- Documentation: describe
convertToNewSyntax
flags (#3307) @kitbellew - Implicit classes: extend AnyVal (#3305) @kitbellew
- ScalafmtRunner: modify dialect usage, visibility (#3298) @kitbellew
Dependency updates
- Update scala-library, scala-reflect to 2.13.10 (#3347) @scalameta-bot
- Update mdoc, sbt-mdoc to 2.3.6 (#3340) @scalameta-bot
- Update sbt to 1.7.2 (#3339) @scalameta-bot
- Scalameta: upgrade to v4.6.0 (#3331) @kitbellew
- Update mdoc, sbt-mdoc to 2.3.5 (#3328) @scalameta-bot
- Update mdoc, sbt-mdoc to 2.3.4 (#3325) @scalameta-bot
- Update sbt-mima-plugin to 1.1.1 (#3321) @scalameta-bot
- Update scala-library, scala-reflect to 2.13.9 (#3323) @scalameta-bot
- Update scala-library, scala-reflect to 2.12.17 (#3322) @scalameta-bot
- Update scalacheck to 1.17.0 (#3318) @scalameta-bot
- Update sbt-scalajs to 1.11.0 (#3317) @scalameta-bot
- Update sbt-native-packager to 1.9.11 (#3311) @scalameta-bot
- Scalameta: upgrade to v4.5.13 (#3297) @kitbellew
- Metaconfig: upgrade to v0.11.1 (#3296) @kitbellew
- Update scalafmt-core to 3.5.9 (#3294) @scalameta-bot
- Update sbt-native-packager to 1.9.10 (#3293) @scalameta-bot
v3.5.9
New configuration parameters
- Newlines: add forceBeforeAssign (#3284) @kitbellew
Bug fixes
- Router: skip lbrace rule for partial initial expr (#3282) @kitbellew
- FormatOps: check for left brace in multistat block (#3279) @kitbellew
- FormatOps: force config style for all call sites (#3277) @kitbellew
- Rewrite: check BOF/EOF when looking for LF (#3278) @kitbellew
- RedundantBraces: keep around Assign within Apply (#3264) @kitbellew
Other changes
- Newlines: split SourceHints and IgnoreSourceSplit (#3288) @kitbellew
- Router: reorder and simplify
case ... =>
rule (#3286) @kitbellew - FormatOps: rename shadowing match variable (#3285) @kitbellew
- Fix native install script when using spaces (#3251) @christianharrington
Dependency updates
- Scalameta: upgrade to v4.5.12 (#3289) @kitbellew
- Update mdoc, sbt-mdoc to 2.3.3 (#3283) @scalameta-bot
- scala-xml: remove explicit dependency (#3281) @kitbellew
- Scalameta: upgrade to 4.5.11 (#3280) @kitbellew
- Update sbt to 1.7.1 (#3272) @scalameta-bot
- Update scopt to 4.1.0 (#3269) @scala-steward
- Update sbt-scalajs to 1.10.1 (#3266) @scalameta-bot
- Update scala-library, scala-reflect to 2.12.16 (#3265) @scalameta-bot
- Update sbt-scalajs to 1.10.0 (#3255) @scalameta-bot
- Update scalafmt-core to 3.5.8 (#3259) @scalameta-bot
- Update sbt-mima-plugin to 1.1.0 (#3253) @scalameta-bot
- Update mdoc, sbt-mdoc to 2.3.2 (#3258) @scalameta-bot
- Update scalacheck to 1.16.0 (#3257) @scalameta-bot
v3.5.8
Bug fixes
- Scalameta: upgrade to v4.5.9 (#3249) @kitbellew
- FormatOps: handle anon function in select chains (#3250) @kitbellew
- AvoidInfix: don't duplicate RedundantParens logic (#3248) @kitbellew
- AvoidInfix: fix isWrapped, look for external paren (#3243) @kitbellew
- FormatTokensRewrite: handle first token correctly (#3244) @kitbellew
- Imports: handle case when importer ref is empty (#3242) @kitbellew
- RedundantParens: only scala3 match-as-operator (#3239) @kitbellew
Dependency updates
- Bump docker/login-action from 1 to 2 (#3247) @dependabot
- Bump docker/build-push-action from 2 to 3 (#3246) @dependabot
- Bump docker/metadata-action from 3 to 4 (#3245) @dependabot
v3.5.7
RedundantParens: more bug fixes
- RedudantParens: select may be postfix, without
.
(#3236) @kitbellew - RedundantParens: exclude types, overly aggressive (#3235) @kitbellew
- TreeOps: ensure tree is enclosed on the right, too (#3232) @kitbellew
- Scalameta: upgrade to v4.5.8 (#3233) @kitbellew
v3.5.5
RedundantParens: Bug fixes
- RedundantParens: fix bug with nested
Term.If
(#3226) @kitbellew - RedundantParens: don't allow breaks in infix sides (#3224) @kitbellew
- RedundantParens: don't rewrite cond in do-while (#3223) @kitbellew
RedundantParens: Other changes
- RedundantParens: handle blocks carefully (#3230) @kitbellew
- RedundantParens: handle more body expressions (#3229) @kitbellew
- RedundantParens: handle apply with multiple args (#3227) @kitbellew
- RedundantParens: rewrite bodies of if/while/case (#3225) @kitbellew
Other changes
- Documentation: remove spurious duplicate example (#3231) @kitbellew
v3.5.4
RedundantParens
- RedundantParens: add infixSide parameter to control readability (#3219) @kitbellew
- RedundantParens: fix bugs introduced in v3.5.3 (#3216) @kitbellew
- TreeOps: fix statement start for
foo(func)
(#3217) @kitbellew
Dealing with parser change to positions of paren-enclosed trees
- Scalameta: upgrade to v4.5.7 (#3221) @kitbellew
- FormatTokens: check outside parens for enclosed (#3220) @kitbellew
- TreeOps: move findEnclosedXxx from RedundantParens (#3218) @kitbellew
- FormatTokens: implement isEnclosedInParens (#3214) @kitbellew
- TreeOps: implement isCallSiteLeft (#3212) @kitbellew
- FormatOps: check args paren position carefully (#3211) @kitbellew
Other changes
- FormatTokens: define getHead/getLast for Tokens (#3213) @kitbellew
- FormatTokens: implement prevNonCommentBefore (#3210) @kitbellew
- Update the issue template clarifying requirements (#3208) @kitbellew
- Update scalafmt-core to 3.5.3 (#3209) @scala-steward
v3.5.3
Bug fixes
- RedundantParens: detect enclosed trees properly (#3207) @kitbellew
- AvoidInfix: handle targs and multi-arg case (#3201) @kitbellew
- RedundantParens: handle infix arg if not enclosed (#3202) @kitbellew
- FormatOps: fix bug with block in if/while cond (#3206) @kitbellew
- Router: for scala3, move NL before macro to after (#3199) @kitbellew
- Imports: put
given
at end of sorted selectors (#3191) @kitbellew
Dynamic error reporting
- ScalafmtReflect: improve parseConfigWith error (#3197) @kitbellew
- ScalafmtReporter: allow null cause in 3-arg error (#3198) @kitbellew
- ScalafmtDynamicError: use instead of UnknownError (#3196) @kitbellew
- UnknownConfigError: improve the error message (#3194) @kitbellew
- ScalafmtReflect: don't wrap in UnknownError (#3195) @kitbellew
- CorruptedClassPath: pass URL instances, not String (#3193) @kitbellew
Dependency updates
- Scalameta: upgrade to v4.5.5 (#3200) @kitbellew
- Update scalafmt-core to 3.5.2 (#3190) @scala-steward
v3.5.2
Bug fixes
- Router: handle empty return type (procedure decl) (#3186) @kitbellew
- Scalameta: upgrade to v4.5.4 (#3187) @kitbellew
Other changes
- Update scalafmt-core to 3.5.1 (#3181) @scala-steward
v3.5.1
Bug fixes
- Scalameta: upgrade to v4.5.3 (#3180) @kitbellew
- fixes bug with infix parsing of
(())
and((a, b, ...))
- fixes bug with infix parsing of