Skip to content

Releases: lightbend-labs/scala-rewrites

0.1.5

18 Aug 14:29
4b91876
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.1.4...v0.1.5

0.1.4

16 Aug 19:53
244acc5
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.1.3...v0.1.4

0.1.3

22 Feb 10:05
v0.1.3
Compare
Choose a tag to compare

This release includes a workaround fix, possibly related to macro usage: #57.

Changelog: v0.1.2...v0.1.3

0.1.2

06 Jul 21:12
ec0c6b2
Compare
Choose a tag to compare

This release includes a series of changes to ExplicitNonNullaryApply that makes it much, much faster (one PR took it from 6 minutes to 64 seconds, on a project of 12,000 lines).

Changelog: v0.1.1...v0.1.2

0.1.1

03 Jul 16:53
99cea05
Compare
Choose a tag to compare

Since the release of 0.1.0, Scalafix/sbt-scalafix 0.9.18 has been released, introducing scalafixScalaBinaryVersion which is great as it allows users to run Scalafix on the right Scala version, for example you can now fix your 2.13-compiled code.

The README has been amended to include that instruction. Note the new instructions work with the existing 0.1.0 release, which is cool.

But, in 0.1.1, I've added a sanity check to ExplicitNonNullaryApply, so if the versions don't align you get an error with a fix suggestion, like this one:

[error] (scalafixAll) scalafix.sbt.InvalidArgument: Scala version mismatch:
(1) the target sources were compiled with Scala 2.13.2; (2) Scalafix is
running on Scala 2.12.11. To fix make scalafixScalaBinaryVersion == 2.13.
Try `ThisBuild / scalafixScalaBinaryVersion :=
CrossVersion.binaryScalaVersion(scalaVersion.value)`.

Credit to the Scalafix Team, I'm copying the idea from their built-in ExplicitResultTypes rewrite.

Changelog: v0.1.0...v0.1.1

0.1.0

01 Jul 13:26
Compare
Choose a tag to compare

This is the first release of scala-rewrites, which makes its ExplicitNonNullaryApply rewrite more easily accessible, with the changes released in Scala 2.13.3.

See the how-to instructions for running the rewrites.