Skip to content

Commit

Permalink
Merge pull request #617 from kevin-lee/prepare-to-release
Browse files Browse the repository at this point in the history
effectie v2.0.0-beta14
  • Loading branch information
kevin-lee authored Jan 12, 2024
2 parents 39e6a99 + 9de77e1 commit b3eac86
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
38 changes: 38 additions & 0 deletions changelogs/2.0.0-beta14.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
## [2.0.0-beta14](https://github.com/kevin-lee/effectie/issues?q=is%3Aissue+is%3Aclosed+milestone%3Av2-m1+closed%3A2023-10-01..2024-01-12) - 2024-01-12

### New Feature
* Add `effectie-time` module (#601)
* [`effectie-time`] Add `TimeSource` (#602)
```scala
TimeSource[F].currentTime()
TimeSource[F].realTime
TimeSource[F].realTimeTo
TimeSource[F].monotonic
TimeSource[F].monotonicTo
TimeSource[F].timeSpent(F[A])
```
* [`effectie-time`] Add `ApproxFiniteDuration` and `syntax` (#603)
```scala
import scala.concurrent.duration._
import effectie.time.syntax._

5.seconds +- 2.seconds
// ApproxFiniteDuration(5.seconds, 2.seconds)

3.seconds.isWithIn(5.seconds +- 2.seconds)
// Boolean = true

7.seconds.isWithIn(5.seconds +- 2.seconds)
// Boolean = true

2.seconds.isWithIn(5.seconds +- 2.seconds)
// Boolean = false

8.seconds.isWithIn(5.seconds +- 2.seconds)
// Boolean = false
```
* Add ~~`effectie-cats-effect2-time`~~ `effectie-time-cats-effect2` (#607)
* [`effectie-cats-effect2-time`] Add `TimeSource` with `Clock` from `cats-effect` 2 (#608)
* Add ~~`effectie-cats-effect3-time`~~ `effectie-time-cats-effect3` (#610)
* [`effectie-cats-effect3-time`] Add `TimeSource` with `Clock` from `cats-effect` 3 (#611)
* Rename `effectie-cats-effect2-time` to `effectie-time-cats-effect2` and `effectie-cats-effect3-time` to `effectie-time-cats-effect3` (#615)
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ThisBuild / version := "2.0.0-SNAPSHOT"
ThisBuild / version := "2.0.0-beta14"

0 comments on commit b3eac86

Please sign in to comment.