Skip to content

Commit b8d41c8

Browse files
committed
effectie v2.1.0
1 parent 8c33741 commit b8d41c8

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

changelogs/2.1.0.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
## [2.1.0](https://github.com/kevin-lee/effectie/issues?q=is%3Aissue%20is%3Aclosed%20milestone%3Av2-m2) - 2025-10-22
2+
3+
4+
## Done
5+
6+
* Scala.js support is broken (#631)
7+
8+
To Support Scala.js,
9+
* Scala `2.12.13` -> `2.12.18`
10+
* Scala `2.13.10` -> `2.13.16`
11+
* Scala `3.1.3` -> `3.3.3`
12+
* `sbt-wartremover`: `3.1.0` -> `3.4.0`
13+
* `sbt-scoverage`: `2.0.7` -> `2.4.0`
14+
* `sbt-scalajs`: `1.9.0` -> `1.18.2`
15+
* `sbt-scalajs-crossproject`: `1.1.0` -> `1.3.2`
16+
***
17+
* Upgrade Scala 3 to 3.1.3 (#644)
18+
19+
***
20+
* Update `effectie.instances.ce2.f.fxCtor.syncFxCtor.pureOrError` for consistency (#658)
21+
22+
The current implementation is
23+
```scala
24+
def pureOrError[A](a: => A): F[A] = Sync[F].catchNonFatal(a)
25+
```
26+
So it behaves differently in `cats-effect` and `monix`.
27+
28+
So, when there's no error, in `cats-effect` it's the same as `pureOf`, whereas in `monix` it's the same as `effectOf`.
29+
30+
However, the behaviour should be the same for both `cats-effect` and `monix`.
31+
32+
## Fixed:
33+
34+
* Fix the broken test: `effectie.instances.future.fxSpec.FutureSpec.testFromEffectWithPure` (#646)
35+
36+
```
37+
[info] - effectie.instances.id.fxSpec.test Fx[Future].fromEffect(pureOf): Falsified after 4 passed tests
38+
[info] > before: -2050500731
39+
[info] > after: 265141147
40+
[info] > === Not Equal ===
41+
[info] > --- lhs ---
42+
[info] > 265141147
43+
[info] > --- rhs ---
44+
[info] > -2050500731
45+
[info] > testAfterFrom
46+
```

0 commit comments

Comments
 (0)