Skip to content

Commit 5b49982

Browse files
authored
Merge pull request #502 from kevin-lee/prepare-to-release
2 parents 2865629 + a613c0a commit 5b49982

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

changelogs/2.0.0-beta22.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## [2.0.0-beta22](https://github.com/kevin-lee/logger-f/issues?q=is%3Aissue+is%3Aclosed+milestone%3Av2-m1+closed%3A2023-10-02..2023-11-07) - 2023-11-08
2+
3+
## Change
4+
5+
* Change the `LogMessage` parameter in the `log(F[A])` method from `NotIgnorable` to `MaybeIgnorable` (#498)
6+
This could be required and useful for case like
7+
8+
```scala
9+
final case class Something(id: Int, name: String)
10+
11+
val fa: F[Something] = ...
12+
Log[F].log(fa) {
13+
case Something(0, _) => ignore
14+
case Something(n, name) => info(s"Something: id=$n, name=$name")
15+
}
16+
```
17+
18+
## Improvement
19+
20+
* Remove unnecessary re-evaluation of `String` in `logS` (#500)
21+
`msg()` and `message` (call-by-name) below in line 61 (Scala 2) and line 62 (Scala 3) were replaced with a single lazy evaluation.
22+
23+
https://github.com/kevin-lee/logger-f/blob/47a0ad183bf4b3b847661143e31a85c302d02146/modules/logger-f-core/shared/src/main/scala-2/loggerf/core/Log.scala#L56-L62
24+
25+
https://github.com/kevin-lee/logger-f/blob/47a0ad183bf4b3b847661143e31a85c302d02146/modules/logger-f-core/shared/src/main/scala-3/loggerf/core/Log.scala#L59-L63

version.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ThisBuild / version := "2.0.0-SNAPSHOT"
1+
ThisBuild / version := "2.0.0-beta22"

0 commit comments

Comments
 (0)