8000 Complete 2.0 Migration Guide · Issue #5798 · zio/zio · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Complete 2.0 Migration Guide #5798
Closed
Closed
@swoogles

Description

@swoogles

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.

  1. Add sematicDb entries to inThisBuild section of build.sbt:
semanticdbEnabled := true,                       // enable SemanticDB
semanticdbVersion := scalafixSemanticdb.revision // only required for Scala 2.x
  1. 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.

  1. In sbt, run:

scalafix https://github.com/zio/zio/blob/series/2.x/scalafix/rules/src/main/scala/fix/Zio2Upgrade.scala

  1. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0