From 61ecdcb92e70ccd1874f75343c20b30c53bc793d Mon Sep 17 00:00:00 2001 From: Kevin Lee Date: Sun, 25 Dec 2022 23:01:23 +1100 Subject: [PATCH] effectie v2.0.0-beta4 --- changelogs/2.0.0-beta4.md | 21 +++++++++++++++++++++ version.sbt | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 changelogs/2.0.0-beta4.md diff --git a/changelogs/2.0.0-beta4.md b/changelogs/2.0.0-beta4.md new file mode 100644 index 00000000..b845e524 --- /dev/null +++ b/changelogs/2.0.0-beta4.md @@ -0,0 +1,21 @@ +## [2.0.0-beta4](https://github.com/Kevin-Lee/effectie/issues?q=is%3Aissue+is%3Aclosed+milestone%3Av2-m1+closed%3A2022-11-14..2022-12-25) - 2022-12-25 🎄 + +### Changes +* Update missing implicit instance messages for Scala 3 (#454) + e.g.) + ```scala + import effectie.instances.ce2.fx.* + ``` + to + ```scala + import effectie.instances.ce2.fx.given + ``` +* Change `f` in `def catchNonFatal[A, B](fb: => F[B])(f: Throwable => A): F[Either[A, B]]` to `f: PartialFunction[Throwable, AA]` (#457) + ```scala + CanCatch[F].catchNonFatal(fa) { + case FooException(err) => + FooError(err) + } + // If fa throws FooException, the result is F[Either[FooError, A]] + // If fa throws some other exception, the result is F[Either[FooError, A]] but it's actually the same as errorOf[Either[FooError, A]](theException) so the exception is not caught in Either. + ``` diff --git a/version.sbt b/version.sbt index 106e7575..3c4d797a 100644 --- a/version.sbt +++ b/version.sbt @@ -1 +1 @@ -ThisBuild / version := "2.0.0-SNAPSHOT" +ThisBuild / version := "2.0.0-beta4"