Releases: scalameta/scalafmt
Releases · scalameta/scalafmt
v3.7.11
Bug fixes
- Scalameta: upgrade to v4.8.6 (#3594) @kitbellew
- Indents: ignore fewerBraces if indentation is 1 (#3592) @kitbellew
Miscellaneous
- Remove use of deprecated PlatformTokenizerCache (#3593) @kitbellew
v3.7.10
Bug fixes
- Scalameta: upgrade to v4.8.5 (#3588) @kitbellew
v3.7.9
Bug fixes
- Scalameta: upgrade to v4.8.4 (#3587) @kitbellew
- StyleMap: show comment with rewrite rules at odds (#3586) @kitbellew
- FormatAssertions: fail when parsing errors out (#3585) @kitbellew
v3.7.8
Bug fixes
- Scalameta: upgrade to v4.8.3 (#3583) @kitbellew
- TreeOps: skip empty types in defDefReturnType (#3584) @kitbellew
- Router: use template to break before
extends
(#3581) @kitbellew - FormatOps: handle if with rewritten braces around (#3578) @kitbellew
- RemoveScala3OptionalBraces: handle infix on rbrace (#3576) @kitbellew
- FormatOps: refactor getting
else
chain (#3579) @kitbellew
Miscellaneous
- Router: extract template to handle
extends
(#3582) @kitbellew - FormatOps: use getLastTokenOpt, add getHeadToken (#3577) @kitbellew
- Move match as infix lhs test to all OptionalBraces (#3575) @kitbellew
v3.7.7
Bug fixes
- Scalameta: update to v4.8.2 (#3574) @kitbellew
- RemoveScala3OptionalBraces: not match if infix lhs (#3573) @kitbellew
v3.7.6
Bug fixes
- Scalameta: update to v4.8.1 (#3571) @kitbellew
Miscellaneous
- Use explicit type annotation in implicit defs (#3567) @kitbellew
Version updates
- Update sbt-jmh to 0.4.5 (#3566) @scalameta-bot
- Update scala-library, scala-reflect to 2.13.11 (#3563) @scalameta-bot
- Update scalafmt-core to 3.7.5 (#3565) @scalameta-bot
- Update sbt to 1.9.1 (#3564) @scalameta-bot
- Update scala-library, scala-reflect to 2.12.18 (#3562) @scalameta-bot
- Update sbt-scalajs to 1.13.2 (#3561) @scalameta-bot
v3.7.5
Features
- Router: handle parameter
indent.fewerBraces
(#3557) @kitbellew
Bug fixes
- Router: make sure to indent comments after lambda (#3556) @kitbellew
- Fix proposed version syntax (#3555) @JD557
Version updates
- Scalameta: update to v4.8.0 (#3560) @kitbellew
v3.7.4
Bug fixes
- #3546: SortModifiers: do not sort
using
(#3547) @kitbellew - #3540: RedundantBraces: don't remove parens in Init args (#3545) @kitbellew
- #3537: Router: apply fewer braces to new anonymous, too (#3538) @kitbellew
- #3527: Router: undo entire indent for fewerBraces (#3528) @kitbellew
Miscellaneous
- CLI: add instructions when version is missing (#3544) @kitbellew
- Fix docs/configuration.md indentOperator section (#3525) @ShapelessCat
- TreeOps: get the whole implicit clause, not values (#3521) @kitbellew
- Docs: clarify implicitParamListModifierForce (#3523) @kitbellew
- PolicyOps: pass rank to SingleLineBlock (#3522) @kitbellew
- Use Resolver.sonatypeOssRepos instead of Resolver.sonatypeRepo (#3519) @kitbellew
Dependency updates
- Scalameta: update to v4.7.8 (#3551) @kitbellew
- Update sbt-native-image to 0.3.4 (#3550) @scalameta-bot
- Update sbt to 1.8.3 (#3549) @scalameta-bot
- Update sbt-ci-release to 1.5.12 (#3548) @scalameta-bot
- Update sbt-scalajs to 1.13.1 (#3533) @scalameta-bot
- Update sbt-scalajs-crossproject to 1.3.1 (#3532) @scalameta-bot
- Update scalafmt-core to 3.7.3 (#3534) @scalameta-bot
- Update scalameta, testkit to 4.7.7 (#3535) @scalameta-bot
- Update sbt-mima-plugin to 1.1.2 (#3531) @scalameta-bot
- Bump coursier version to 2.1.2. (#3530) @lallea
v3.7.3
Bug fixes
- Router: don't add extra indent for fewer braces (#3518) @kitbellew
- Router: indent trailing fewer braces, too (#3514) @kitbellew
- FormatOps: handle
.match
as select + apply (#3500) @kitbellew - FormatTokensRewrite: allow a rule to claim tokens (#3513) @kitbellew
- FormatOps: fix
verticalMultiline.arityThreshold
(#3511) @kitbellew - Router:
extension
is probably also a keyword (#3507) @kitbellew - Router: fix
beforeOpenParenDefnSite = unfold
(#3506) @kitbellew - FormatOps: force break on multi-stat try blocks (#3501) @kitbellew
Other changes
- RedundantBraces: move
{
for func body blocks (#3512) @kitbellew - FormatTokensRewrite: turn Replacement into class (#3504) @kitbellew
- FormatTokensRewrite: refactor applying rules (#3505) @kitbellew
- Fix tests following interaction of #3506 and #3507 (#3510) @kitbellew
- Router: use FormatToken fields extracted in match (#3508) @kitbellew
- FormatTokensRewrite: import mutable namespace only (#3503) @kitbellew
- Add tests with/without select after
.match
(#3498) @kitbellew - Router: minor refactor in
.select
handling rule (#3495) @kitbellew - Add tests with no select after fewer braces apply (#3494) @kitbellew
- Configuration:
fileOverride
is an absolute match (#3486) @kitbellew
Dependency updates
- Scalameta: upgrade to v4.7.6 (#3515) @kitbellew
- Update sbt-native-packager to 1.9.16 (#3487) @scalameta-bot
- Update scalafmt-core to 3.7.2 (#3488) @scalameta-bot
v3.7.2
Features
- Support interleaved parameter clauses (mainly vertical multiline)
- see SIP-47
- Scalameta v4.7.4 Release Notes
- FormatOps vertical multiline: fix interleaved defs (#3479) @kitbellew
- FormatOps vertical multiline: explicit implicits (#3478) @kitbellew
- TreeOps: fix handling implicit group keyword (#3474) @kitbellew
- FormatOps vertical multiline: one-param implicits (#3475) @kitbellew
- Test non-vert-mult, interleaved, with implicits (#3477) @kitbellew
- Test class definitions with explicit implicits (#3472) @kitbellew
- FormatOps vertical multiline: fix implicit prefer (#3471) @kitbellew
- FormatOps vertical multiline: fix implicit force (#3469) @kitbellew
- FormatOps vertical multiline: improve relay policy (#3468) @kitbellew
- Add tests for interleaved definitions (#3467) @kitbellew
Bug fixes
- FormatOps: don't support invalid param modifiers (#3482) @kitbellew
- FormatOps: force config style for brackets, too (#3459) @kitbellew
- FormatWriter: rewrite only if format is completed (#3458) @kitbellew
- FormatOps: add extra indent to fewer-braces apply (#3451) @kitbellew
Other changes
- FormatWriter: remove container from AlignStop (#3481) @kitbellew
- FormatWriter: preallocate the new align columns (#3480) @kitbellew
- TreeOps: use Position.isEmpty (#3476) @kitbellew
- FormatOps: move opensImplicitParamList to TreeOps (#3473) @kitbellew
- Scalameta: don't use deprecated methods (v4.7.4) (#3461) @kitbellew
Dependency updates
- Scalameta: upgrade to v4.7.5 (#3484) @kitbellew
- Update sbt-native-packager to 1.9.15 (#3470) @scalameta-bot
- Update sbt-assembly to 2.1.1 (#3463) @scalameta-bot
- Scalameta: upgrade to v4.7.4 (#3460) @kitbellew
- Update sbt-jmh to 0.4.4 (#3456) @scalameta-bot
- Update sbt-native-packager to 1.9.14 (#3452) @scalameta-bot
- Update sbt-scalajs to 1.13.0 (#3453) @scalameta-bot
- Update mdoc, sbt-mdoc to 2.3.7 (#3454) @scalameta-bot
- Update scalafmt-core to 3.7.1 (#3455) @scalameta-bot