Releases: fmonniot/scala3mock
v0.6.6
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
v0.6.4
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
v0.6.2
v0.6.1
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
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 nowMockExpectationFailed
main.verifyExpectations
is nowverifyExpectations
main.Default
is nowDefault
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
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
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 (likeOutputStream
which is checked by quite a few Java constructors).
PRs
Full Changelog: v0.3.2...v0.4.0