v1.0.0: Simplify module structure and introduce alleycats-retry (#132)
What’s Changed
- Simplify module structure and introduce alleycats-retry (#132) @LukaJCB
- Fix compile error on Scala 2.11 (hangs head in shame) (#141) @cb372
- Use scheduler for Sleep[Future] instead of blocking (#140) @Billzabob
- Fix code sample in doc (#138) @cb372
- Adapt syntax for better type inference and pass params explicitly (#131) @LukaJCB
- Update sbt-scalafmt to 2.3.0 (#137) @scala-steward
- Update sbt-microsites to 1.0.2 (#133) @scala-steward
- Update sbt-microsites to 1.0.1 (#130) @scala-steward
- Update scalatest to 3.1.0 (#128) @scala-steward
- Add ability to pretty print policies (#127) @LukaJCB
- Add common fields to RetryDetails (#126) @LukaJCB
- Update monix to 3.1.0 (#111) @scala-steward
- Simplify usage of sbt-ci-release (#122) @cb372
Migration guide
Modules refactored and renamed
We've moved things around slightly in this release: cats-effect is now a core dependency, making integration with cats-effect easier. Support for Future
, Id
and Eval
, on the other hand, have been moved out of the core into a new alleycats-retry
module.
As part of this process the modules have been renamed, so unfortunately scala-steward won't be able to help you. You'll need to update manually.
If you were using cats-retry with cats-effect IO
:
- Previously you needed
cats-retry-core
andcats-retry-cats-effect
- Now you need only
cats-retry
If you were using cats-retry with Monix:
- Previously you needed
cats-retry-core
andcats-retry-cats-effect
, and you may have been usingcats-retry-monix
- Now you need only
cats-retry
If you were using cats-retry with Future
or Id
:
- Previously you needed
cats-retry-core
- Now you need
alleycats-retry
Other breaking changes
- The syntax extensions have changed slightly. Arguments that used to be passed implicitly are now passed explicitly, and type inference should work better than before.
- The non-monadic
retrying
combinator has been removed from the core. Similar behaviour is available as a syntax extension in thealleycats-retry
module.