Closed
Description
Tagging @khajavi as the resident Migration Guide expert :)
Some of the more recent changes need to be added to the guide.
ScalaFix
We want to strongly encourage maintainers to start by applying this rule.
- Add sematicDb entries to
inThisBuild
section of build.sbt:
semanticdbEnabled := true, // enable SemanticDB
semanticdbVersion := scalafixSemanticdb.revision // only required for Scala 2.x
- Add this entry to
projects/plugins.sbt
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.31")
Note- You must apply the rule to your project before bumping ZIO version, since the input to ScalaFix needs to compile.
The output will not compile until the ZIO version is bumped.
- In sbt, run:
scalafix https://github.com/zio/zio/blob/series/2.x/scalafix/rules/src/main/scala/fix/Zio2Upgrade.scala
- bump ZIO version to latest
2.0.0-M4
(Need to keep this updated as we inch towards the final release)
Compositional Concurrency
How to use withParallelism
/withParallelismUnbounded
and get away from foreachParN
, collectAllParN
, and the other N
methods
By-name Parameters
- Encourage library authors to use by-name parameters for any functions that return effects
Metadata
Metadata
Assignees
Labels
No labels