Skip to content

Releases: fmonniot/scala3mock

v0.6.6

05 Nov 15:46
99fa67e
Compare
Choose a tag to compare

What's Changed

  • Update sbt-ci-release to 1.6.0 by @fmonniot-s-scala-steward in #75
  • Update sbt-ci-release to 1.6.1 by @fmonniot-s-scala-steward in #76
  • Update sbt to 1.10.2 by @fmonniot-s-scala-steward in #77
  • Update sbt-ci-release to 1.7.0 by @fmonniot-s-scala-steward in #79
  • Update sbt-ci-release to 1.8.0 by @fmonniot-s-scala-steward in #80
  • Update sbt to 1.10.3 by @fmonniot-s-scala-steward in #81
  • Update sbt to 1.10.4 by @fmonniot-s-scala-steward in #83
  • Update sbt-ci-release to 1.9.0 by @fmonniot-s-scala-steward in #82
  • Update cats-effect to 3.5.5 by @fmonniot-s-scala-steward in #84

Full Changelog: v0.6.5...v0.6.6

v0.6.5

14 Aug 15:10
e66112b
Compare
Choose a tag to compare

What's Changed

  • add MatchPredicate up to 22 params by @NPCRUS in #74

Full Changelog: v0.6.4...v0.6.5

v0.6.4

12 Aug 03:57
558c227
Compare
Choose a tag to compare

What's Changed

  • Add all missing mockFunction shortcuts by @NPCRUS in #64
  • Add assertions for using (or context bound) by @fmonniot in #67
  • Can properly set expectation when a private overloaded method exists by @fmonniot in #70
  • Try making it easier to see what version was published by @fmonniot in #71
  • Add mock functions up to 22 arguments by @NPCRUS in #69

Dependency updates

  • Scala 3.5-RC2 has been released by @fmonniot in #59
  • Update sbt to 1.10.1 by @fmonniot-s-scala-steward in #60
  • Update scalafmt-core to 3.8.3 by @fmonniot-s-scala-steward in #62
  • Update to actions/setup-java@v4 due to node16 being deprecated by @fmonniot in #72
  • Scala 3.5.0-RC7 by @fmonniot in #73

New Contributors

Full Changelog: v0.6.3...v0.6.4

v0.6.3

26 Jun 01:38
ebbf7ab
Compare
Choose a tag to compare

What's Changed

  • Update scalatest to 3.2.19 by @fmonniot-s-scala-steward in #56
  • Fix default parameters (support for arbitrary default parameter position) by @fmonniot in #57
  • Integration tests for 3.3+ by @fmonniot in #58

Full Changelog: v0.6.2...v0.6.3

v0.6.2

23 Jun 19:21
5f0d9d1
Compare
Choose a tag to compare

What's Changed

  • Update scalafmt-core to 3.8.2 by @fmonniot-s-scala-steward in #52
  • Add support for methods with default values by @fmonniot in #54

Full Changelog: v0.6.1...v0.6.2

v0.6.1

15 Jun 13:30
Compare
Choose a tag to compare

Bug fixes

Dependency Updates

  • Missing link to cats section in the website side bar by @fmonniot in #30
  • Update sbt to 1.9.8 by @fmonniot-s-scala-steward in #31
  • Update cats-effect to 3.5.3 by @fmonniot-s-scala-steward in #35
  • Update munit to 1.0.0-M11 by @fmonniot-s-scala-steward in #36
  • Update scalatest to 3.2.18 by @fmonniot-s-scala-steward in #37
  • Update sbt to 1.9.9 by @fmonniot-s-scala-steward in #38
  • Update scalafmt-core to 3.8.0 by @fmonniot-s-scala-steward in #39
  • Update cats-effect to 3.5.4 by @fmonniot-s-scala-steward in #41
  • Update sbt to 1.10.0 by @fmonniot-s-scala-steward in #45
  • Pin dependencies that now require Scala 3.3+ by @fmonniot in #51

Full Changelog: v0.6.0...v0.6.1

v0.6.0

10 Dec 17:05
b465253
Compare
Choose a tag to compare

New features

This release introduce the eu.monniot.scala3mock.ScalaMocks trait/object. It contains all that is required to use the library in one import. You can choose the trait or object depending on how you used the library. Note that the ScalaTest integration traits already extends it. This is now the recommended way to use the library.

This new trait also re-introduce the * and ~ aliases for matching any types and epsilon that have been available in ScalaMock.

And finally there is now a new module for cats users that expose a verifyExpectations that works with any MonadError[*, Throwable]. It's mostly useful when your test uses a lazy data structure that require verify expectations after having executed said structure rather than checking on test function return.

Breaking Changes

This release aims to simplify imports via ScalaMocks. Doing so required breaking changes, so we used this opportunity to remove the eu.monniot.scala3mock.main package. Here is the list of breaking changes (all package names are scoped to eu.monniot.scala3mock):

  • main.TestExpectationEx is now MockExpectationFailed
  • main.verifyExpectations is now verifyExpectations
  • main.Default is now Default

What's Changed

  • Update sbt-scalafmt to 2.5.2 by @fmonniot-s-scala-steward in #21
  • Improve ergonomic by @fmonniot in #27
  • Deploy website after lib release is complete by @fmonniot in #28
  • Cats support by @fmonniot in #29
  • Update sbt-mdoc to 2.3.8 by @fmonniot-s-scala-steward in #20

Full Changelog: v0.5.0...v0.6.0

v0.5.0

02 Dec 15:56
2918894
Compare
Choose a tag to compare

What's Changed

  • Update scalatest to 3.2.17 by @fmonniot-s-scala-steward in #23
  • Update munit to 1.0.0-M10 by @fmonniot-s-scala-steward in #19
  • Update scalafmt-core to 3.7.17 by @fmonniot-s-scala-steward in #22
  • Update sbt to 1.9.7 by @fmonniot-s-scala-steward in #18
  • Better mock names by @fmonniot in #24
  • Rework the documentation a bit by @fmonniot in #25

New Contributors

  • @fmonniot-s-scala-steward made their first contribution in #23

Full Changelog: v0.4.0...v0.5.0

v0.4.0

13 Oct 14:28
b7205c5
Compare
Choose a tag to compare

What's Changed

  • Scala3mock now uses the first public constructor found when building a mock type. If no public constructors are found, it emit an error to let you know it can't mock this type.
  • The default value handling for mocked val and constructor call is now using the Default type class. That means we can more easily add support for specific types that we know don't work well when nulled by default (like OutputStream which is checked by quite a few Java constructors).

PRs

  • Use public constructor & Default type class for default values by @fmonniot in #16

Full Changelog: v0.3.2...v0.4.0

v0.3.2

24 Sep 15:42
20c5c37
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.3.1...v0.3.2