From cfd9e48b9fe151ac94a9ca6cf9ace1d1a3139e46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20Akif=20Tu=CC=88tu=CC=88ncu=CC=88?= Date: Thu, 10 Mar 2022 16:56:36 +0300 Subject: [PATCH] Setting version to 2.0.1 --- README.md | 16 ++++++++-------- e-circe/README.md | 20 ++++++++++---------- e-gson/README.md | 8 ++++---- e-java/README.md | 8 ++++---- e-kotlin/README.md | 8 ++++---- e-play-json/README.md | 20 ++++++++++---------- e-scala/README.md | 12 ++++++------ e-zio/README.md | 34 +++++++++++++++++----------------- version.sbt | 2 +- 9 files changed, 64 insertions(+), 64 deletions(-) diff --git a/README.md b/README.md index 8907a3a..43d0a3a 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ It consists of different modules for different needs. You can find details, inst | Latest Version of e | Java Version | Scala Versions | Kotlin Version | | ------------------- | --------------------- | ----------------------- | ---------------- | -| 2.0.0 | 1.8 | 2.12.12, 2.13.2 | 1.4.0 | +| 2.0.1 | 1.8 | 2.12.15, 2.13.8 | 1.5.10 | ## Table of Contents @@ -27,13 +27,13 @@ It consists of different modules for different needs. You can find details, inst | Name | Platform | Details | Documentation | | ------------------------------------ | -------- | ------------------------------------------------------------------ | ------------- | -| [e-scala](e-scala/README.md) | Scala | Scala implementation | [![](https://img.shields.io/badge/docs-2.0.0-brightgreen.svg?style=for-the-badge&logo=scala&color=dc322f&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-scala_2.13) | -| [e-kotlin](e-kotlin/README.md) | Kotlin | Kotlin implementation | [![](https://img.shields.io/badge/docs-2.0.0-brightgreen.svg?style=for-the-badge&logo=kotlin&color=0095d5&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-kotlin) | -| [e-java](e-java/README.md) | Java | Java implementation | [![](https://img.shields.io/badge/docs-2.0.0-brightgreen.svg?style=for-the-badge&logo=java&color=007396&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-java) | -| [e-circe](e-circe/README.md) | Scala | Extras for [circe](https://circe.github.io/circe) | [![](https://img.shields.io/badge/docs-2.0.0-brightgreen.svg?style=for-the-badge&logo=scala&color=dc322f&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-circe_2.13) | -| [e-play-json](e-play-json/README.md) | Scala | Extras for [play-json](https://github.com/playframework/play-json) | [![](https://img.shields.io/badge/docs-2.0.0-brightgreen.svg?style=for-the-badge&logo=scala&color=dc322f&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-play-json_2.13) | -| [e-zio](e-zio/README.md) | Scala | Extras for [ZIO](https://zio.dev) | [![](https://img.shields.io/badge/docs-2.0.0-brightgreen.svg?style=for-the-badge&logo=scala&color=dc322f&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-zio_2.13) | -| [e-gson](e-gson/README.md) | Java | Extras for [gson](https://github.com/google/gson) | [![](https://img.shields.io/badge/docs-2.0.0-brightgreen.svg?style=for-the-badge&logo=java&color=007396&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-gson) | +| [e-scala](e-scala/README.md) | Scala | Scala implementation | [![](https://img.shields.io/badge/docs-2.0.1-brightgreen.svg?style=for-the-badge&logo=scala&color=dc322f&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-scala_2.13) | +| [e-kotlin](e-kotlin/README.md) | Kotlin | Kotlin implementation | [![](https://img.shields.io/badge/docs-2.0.1-brightgreen.svg?style=for-the-badge&logo=kotlin&color=0095d5&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-kotlin) | +| [e-java](e-java/README.md) | Java | Java implementation | [![](https://img.shields.io/badge/docs-2.0.1-brightgreen.svg?style=for-the-badge&logo=java&color=007396&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-java) | +| [e-circe](e-circe/README.md) | Scala | Extras for [circe](https://circe.github.io/circe) | [![](https://img.shields.io/badge/docs-2.0.1-brightgreen.svg?style=for-the-badge&logo=scala&color=dc322f&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-circe_2.13) | +| [e-play-json](e-play-json/README.md) | Scala | Extras for [play-json](https://github.com/playframework/play-json) | [![](https://img.shields.io/badge/docs-2.0.1-brightgreen.svg?style=for-the-badge&logo=scala&color=dc322f&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-play-json_2.13) | +| [e-zio](e-zio/README.md) | Scala | Extras for [ZIO](https://zio.dev) | [![](https://img.shields.io/badge/docs-2.0.1-brightgreen.svg?style=for-the-badge&logo=scala&color=dc322f&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-zio_2.13) | +| [e-gson](e-gson/README.md) | Java | Extras for [gson](https://github.com/google/gson) | [![](https://img.shields.io/badge/docs-2.0.1-brightgreen.svg?style=for-the-badge&logo=java&color=007396&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-gson) | ## Examples and Use Cases diff --git a/e-circe/README.md b/e-circe/README.md index 389ef65..22c8c96 100644 --- a/e-circe/README.md +++ b/e-circe/README.md @@ -1,6 +1,6 @@ [//]: # "This file is generated by [mdoc](https://scalameta.org/mdoc). Do not edit it directly as it will be overwritten. Instead edit corresponding file in docs folder." -# e-circe [![](https://img.shields.io/badge/docs-2.0.0-brightgreen.svg?style=for-the-badge&logo=scala&color=dc322f&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-circe_2.13) +# e-circe [![](https://img.shields.io/badge/docs-2.0.1-brightgreen.svg?style=for-the-badge&logo=scala&color=dc322f&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-circe_2.13) This is a Json codec implementation for `E` and `EOr` types based on [circe](https://circe.github.io/circe). It provides circe's `Decoder`s and `Encoder`s as well as e's own `Codec` (see [e-scala](/e-scala/README.md#3-codec-decoder-and-encoder) docs). @@ -9,7 +9,7 @@ This is a Json codec implementation for `E` and `EOr` types based on [circe](htt If you use SBT, add following to your `build.sbt`: ```scala -libraryDependencies += "dev.akif" %% "e-circe" % "2.0.0" +libraryDependencies += "dev.akif" %% "e-circe" % "2.0.1" ``` If you use Maven, add following to your `pom.xml` (replace 2.13 if you need a different Scala version): @@ -18,7 +18,7 @@ If you use Maven, add following to your `pom.xml` (replace 2.13 if you need a di dev.akif e-circe_2.13 - 2.0.0 + 2.0.1 ``` @@ -26,7 +26,7 @@ If you use Gradle, add following to your project's `build.gradle` (replace 2.13 ```javascript dependencies { - implementation('dev.akif:e-circe_2.13:2.0.0') + implementation('dev.akif:e-circe_2.13:2.0.1') } ``` @@ -60,10 +60,10 @@ decode[String]("test".asJson) case class Foo(bar: Boolean) implicit val fooDecoder: CirceDecoder[Foo] = CirceDecoder.forProduct1("bar")(Foo.apply) -// fooDecoder: io.circe.Decoder[Foo] = io.circe.ProductDecoders$$anon$1@23fe77c9 +// fooDecoder: io.circe.Decoder[Foo] = io.circe.ProductDecoders$$anon$1@76e6ae51 implicit val fooEncoder: CirceEncoder[Foo] = CirceEncoder.forProduct1("bar")(_.bar) -// fooEncoder: io.circe.Encoder[Foo] = io.circe.ProductEncoders$$anon$1@6e6a4be2 +// fooEncoder: io.circe.Encoder[Foo] = io.circe.ProductEncoders$$anon$1@78b3f1c7 decode[Foo](Json.obj()) // res3: e.scala.EOr[Foo] = {"name":"decoding-error","message":"Failed to decode!","causes":[{"name":".bar","message":"Attempt to decode value on failed cursor"}]} @@ -91,7 +91,7 @@ decode[E](Json.arr()) // res7: e.scala.EOr[E] = {"name":"decoding-error","message":"Failed to decode!","causes":[{"message":"Expected: JsonObject"}]} val decoder = makeDecoder[E] -// decoder: e.scala.codec.Decoder[Json, E] = e.scala.codec.CodecFor$$Lambda$12000/1505361925@36374588 +// decoder: e.scala.codec.Decoder[Json, E] = e.scala.codec.CodecFor$$Lambda$13211/0x0000000803530000@497f8c1c decoder.decode(Json.obj("code" := 1, "name" := "test")) // res8: e.scala.EOr[E] = {"code":1,"name":"test"} @@ -124,7 +124,7 @@ encode(E.name("test").message("Test").cause(E.code(1))) // } val encoder = makeEncoder[E] -// encoder: e.scala.codec.Encoder[E, io.circe.Json] = e.scala.codec.CodecFor$$Lambda$12005/1561967295@6b4015a2 +// encoder: e.scala.codec.Encoder[E, io.circe.Json] = e.scala.codec.CodecFor$$Lambda$13216/0x0000000803536000@753488bc encoder.encode(E.code(2)) // res12: io.circe.Json = { @@ -147,7 +147,7 @@ encode[EOr[Int]](123.toEOr) // res15: io.circe.Json = 123 val encoder = makeEncoder[EOr[String]] -// encoder: codec.Encoder[EOr[String], io.circe.Json] = e.scala.codec.CodecFor$$Lambda$12005/1561967295@14f7783e +// encoder: codec.Encoder[EOr[String], io.circe.Json] = e.scala.codec.CodecFor$$Lambda$13216/0x0000000803536000@26e04468 encoder.encode(E.name("test").toEOr[String]) // res16: io.circe.Json = { @@ -177,7 +177,7 @@ object User { } val codec = makeCodec[User] -// codec: e.scala.codec.Codec[User, Json] = e.scala.codec.CodecFor$$anon$1@3bb7cb2c +// codec: e.scala.codec.Codec[User, Json] = e.scala.codec.CodecFor$$anon$1@1a5c353 codec.decode(Json.obj("foo" := "bar")) // res19: EOr[User] = {"name":"decoding-error","message":"Failed to decode!","causes":[{"name":".n","message":"Attempt to decode value on failed cursor"},{"name":".a","message":"Attempt to decode value on failed cursor"}]} diff --git a/e-gson/README.md b/e-gson/README.md index e5277ba..6dfecbc 100644 --- a/e-gson/README.md +++ b/e-gson/README.md @@ -1,6 +1,6 @@ [//]: # "This file is generated by [mdoc](https://scalameta.org/mdoc). Do not edit it directly as it will be overwritten. Instead edit corresponding file in docs folder." -# e-gson[![](https://img.shields.io/badge/docs-2.0.0-brightgreen.svg?style=for-the-badge&logo=java&color=007396&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-gson) +# e-gson[![](https://img.shields.io/badge/docs-2.0.1-brightgreen.svg?style=for-the-badge&logo=java&color=007396&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-gson) This is a Json codec implementation for `E` and `EOr` types based on [gson](https://github.com/google/gson). It provides gson's `JsonDeserializer`s and `JsonSerializer`s as well as e's own `Codec` (see [e-java](/e-java/README.md#3-codec-decoder-and-encoder) docs). @@ -10,7 +10,7 @@ If you use Gradle, add following to your project's `build.gradle`: ```javascript dependencies { - implementation('dev.akif:e-gson:2.0.0') + implementation('dev.akif:e-gson:2.0.1') } ``` If you use Maven, add following to your `pom.xml`: @@ -20,14 +20,14 @@ If you use Maven, add following to your `pom.xml`: dev.akif e-gson - 2.0.0 + 2.0.1 ``` If you use SBT, add following to your `build.sbt`: ```scala -libraryDependencies += "dev.akif" % "e-gson" % "2.0.0" +libraryDependencies += "dev.akif" % "e-gson" % "2.0.1" ``` ## Contents diff --git a/e-java/README.md b/e-java/README.md index 69f7c78..81f2ed4 100644 --- a/e-java/README.md +++ b/e-java/README.md @@ -1,6 +1,6 @@ [//]: # "This file is generated by [mdoc](https://scalameta.org/mdoc). Do not edit it directly as it will be overwritten. Instead edit corresponding file in docs folder." -# e-java [![](https://img.shields.io/badge/docs-2.0.0-brightgreen.svg?style=for-the-badge&logo=java&color=007396&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-java) +# e-java [![](https://img.shields.io/badge/docs-2.0.1-brightgreen.svg?style=for-the-badge&logo=java&color=007396&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-java) This is the main implementation of e in Java. It contains two main types [E](src/main/java/e/java/E.java) and [EOr](src/main/java/e/java/EOr.java). It also contains definitions of decoding and encoding for these. Implementations of decoding and encoding are provided in separate modules. @@ -10,7 +10,7 @@ If you use Gradle, add following to your project's `build.gradle`: ```javascript dependencies { - implementation('dev.akif:e-java:2.0.0') + implementation('dev.akif:e-java:2.0.1') } ``` If you use Maven, add following to your `pom.xml`: @@ -20,14 +20,14 @@ If you use Maven, add following to your `pom.xml`: dev.akif e-java - 2.0.0 + 2.0.1 ``` If you use SBT, add following to your `build.sbt`: ```java -libraryDependencies += "dev.akif" % "e-java" % "2.0.0" +libraryDependencies += "dev.akif" % "e-java" % "2.0.1" ``` ## Contents diff --git a/e-kotlin/README.md b/e-kotlin/README.md index dae6e65..cf97488 100644 --- a/e-kotlin/README.md +++ b/e-kotlin/README.md @@ -1,6 +1,6 @@ [//]: # "This file is generated by [mdoc](https://scalameta.org/mdoc). Do not edit it directly as it will be overwritten. Instead edit corresponding file in docs folder." -# e-kotlin [![](https://img.shields.io/badge/docs-2.0.0-brightgreen.svg?style=for-the-badge&logo=kotlin&color=0095d5&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-kotlin) +# e-kotlin [![](https://img.shields.io/badge/docs-2.0.1-brightgreen.svg?style=for-the-badge&logo=kotlin&color=0095d5&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-kotlin) This is the main implementation of e in Kotlin. It contains two main types [E](src/main/kotlin/e/kotlin/E.kt) and [EOr](src/main/kotlin/e/kotlin/EOr.kt). It also contains definitions of decoding and encoding for these. Implementations of decoding and encoding are provided in separate modules. @@ -10,7 +10,7 @@ If you use Gradle, add following to your project's `build.gradle`: ```javascript dependencies { - implementation('dev.akif:e-kotlin:2.0.0') + implementation('dev.akif:e-kotlin:2.0.1') } ``` If you use Maven, add following to your `pom.xml`: @@ -20,14 +20,14 @@ If you use Maven, add following to your `pom.xml`: dev.akif e-kotlin - 2.0.0 + 2.0.1 ``` If you use SBT, add following to your `build.sbt`: ```kotlin -libraryDependencies += "dev.akif" % "e-kotlin" % "2.0.0" +libraryDependencies += "dev.akif" % "e-kotlin" % "2.0.1" ``` ## Contents diff --git a/e-play-json/README.md b/e-play-json/README.md index ff8d75c..261ab49 100644 --- a/e-play-json/README.md +++ b/e-play-json/README.md @@ -1,6 +1,6 @@ [//]: # "This file is generated by [mdoc](https://scalameta.org/mdoc). Do not edit it directly as it will be overwritten. Instead edit corresponding file in docs folder." -# e-play-json [![](https://img.shields.io/badge/docs-2.0.0-brightgreen.svg?style=for-the-badge&logo=scala&color=dc322f&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-play-json_2.13) +# e-play-json [![](https://img.shields.io/badge/docs-2.0.1-brightgreen.svg?style=for-the-badge&logo=scala&color=dc322f&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-play-json_2.13) This is a Json codec implementation for `E` and `EOr` types based on [play-json]((https://github.com/playframework/play-json)). It provides play-json's `Reads` and `Writes` as well as e's own `Codec` (see [e-scala](/e-scala/README.md#3-codec-decoder-and-encoder) docs). @@ -9,7 +9,7 @@ This is a Json codec implementation for `E` and `EOr` types based on [play-json] If you use SBT, add following to your `build.sbt`: ```scala -libraryDependencies += "dev.akif" %% "e-play-json" % "2.0.0" +libraryDependencies += "dev.akif" %% "e-play-json" % "2.0.1" ``` If you use Maven, add following to your `pom.xml` (replace 2.13 if you need a different Scala version): @@ -18,7 +18,7 @@ If you use Maven, add following to your `pom.xml` (replace 2.13 if you need a di dev.akif e-play-json_2.13 - 2.0.0 + 2.0.1 ``` @@ -26,7 +26,7 @@ If you use Gradle, add following to your project's `build.gradle` (replace 2.13 ```javascript dependencies { - implementation('dev.akif:e-play-json_2.13:2.0.0') + implementation('dev.akif:e-play-json_2.13:2.0.1') } ``` @@ -59,10 +59,10 @@ decode[String](Json.toJson("test")) case class Foo(bar: Boolean) implicit val fooReads: Reads[Foo] = Json.reads[Foo] -// fooReads: Reads[Foo] = play.api.libs.json.Reads$$anon$6@3e2cbd1 +// fooReads: Reads[Foo] = play.api.libs.json.Reads$$anon$6@76d9124 implicit val fooWrites: Writes[Foo] = Json.writes[Foo] -// fooWrites: Writes[Foo] = play.api.libs.json.OWrites$$anon$4@212a07d1 +// fooWrites: Writes[Foo] = play.api.libs.json.OWrites$$anon$4@58d396d3 decode[Foo](Json.obj()) // res3: e.scala.EOr[Foo] = {"name":"decoding-error","message":"Failed to decode!","causes":[{"name":"obj.bar","message":"error.path.missing"}]} @@ -89,7 +89,7 @@ decode[E](Json.arr()) // res7: e.scala.EOr[E] = {"name":"decoding-error","message":"Failed to decode!","causes":[{"name":"obj","message":"error.expected.jsobject"}]} val decoder = makeDecoder[E] -// decoder: e.scala.codec.Decoder[JsValue, E] = e.scala.codec.CodecFor$$Lambda$12000/1505361925@2938fcf6 +// decoder: e.scala.codec.Decoder[JsValue, E] = e.scala.codec.CodecFor$$Lambda$13211/0x0000000803530000@26a09934 decoder.decode(Json.obj("code" -> 1, "name" -> "test")) // res8: e.scala.EOr[E] = {"code":1,"name":"test"} @@ -112,7 +112,7 @@ encode(E.name("test").message("Test").cause(E.code(1))) // res11: play.api.libs.json.JsValue = {"name":"test","message":"Test","causes":[{"code":1}]} val encoder = makeEncoder[E] -// encoder: e.scala.codec.Encoder[E, play.api.libs.json.JsValue] = e.scala.codec.CodecFor$$Lambda$12005/1561967295@41732a63 +// encoder: e.scala.codec.Encoder[E, play.api.libs.json.JsValue] = e.scala.codec.CodecFor$$Lambda$13216/0x0000000803536000@4774ba6a encoder.encode(E.code(2)) // res12: play.api.libs.json.JsValue = {"code":2} @@ -131,7 +131,7 @@ encode[EOr[Int]](123.toEOr) // res15: play.api.libs.json.JsValue = 123 val encoder = makeEncoder[EOr[String]] -// encoder: codec.Encoder[EOr[String], play.api.libs.json.JsValue] = e.scala.codec.CodecFor$$Lambda$12005/1561967295@5d2b7db +// encoder: codec.Encoder[EOr[String], play.api.libs.json.JsValue] = e.scala.codec.CodecFor$$Lambda$13216/0x0000000803536000@22c2d89c encoder.encode(E.name("test").toEOr[String]) // res16: play.api.libs.json.JsValue = {"name":"test"} @@ -156,7 +156,7 @@ object User { } val codec = makeCodec[User] -// codec: e.scala.codec.Codec[User, JsValue] = e.scala.codec.CodecFor$$anon$1@3edb461c +// codec: e.scala.codec.Codec[User, JsValue] = e.scala.codec.CodecFor$$anon$1@5e9eb47a codec.decode(Json.obj("foo" -> "bar")) // res19: EOr[User] = {"name":"decoding-error","message":"Failed to decode!","causes":[{"name":"obj.age","message":"error.path.missing"},{"name":"obj.name","message":"error.path.missing"}]} diff --git a/e-scala/README.md b/e-scala/README.md index f795f66..a218ce7 100644 --- a/e-scala/README.md +++ b/e-scala/README.md @@ -1,6 +1,6 @@ [//]: # "This file is generated by [mdoc](https://scalameta.org/mdoc). Do not edit it directly as it will be overwritten. Instead edit corresponding file in docs folder." -# e-scala [![](https://img.shields.io/badge/docs-2.0.0-brightgreen.svg?style=for-the-badge&logo=scala&color=dc322f&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-scala_2.13) +# e-scala [![](https://img.shields.io/badge/docs-2.0.1-brightgreen.svg?style=for-the-badge&logo=scala&color=dc322f&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-scala_2.13) This is the main implementation of e in Scala. It contains two main types [E](src/main/scala/e/scala/E.scala) and [EOr](src/main/scala/e/scala/EOr.scala). It also contains definitions of decoding and encoding for these. Implementations of decoding and encoding are provided in separate modules. @@ -9,7 +9,7 @@ This is the main implementation of e in Scala. It contains two main types [E](sr If you use SBT, add following to your `build.sbt`: ```scala -libraryDependencies += "dev.akif" %% "e-scala" % "2.0.0" +libraryDependencies += "dev.akif" %% "e-scala" % "2.0.1" ``` If you use Maven, add following to your `pom.xml` (replace 2.13 if you need a different Scala version): @@ -18,7 +18,7 @@ If you use Maven, add following to your `pom.xml` (replace 2.13 if you need a di dev.akif e-scala_2.13 - 2.0.0 + 2.0.1 ``` @@ -26,7 +26,7 @@ If you use Gradle, add following to your project's `build.gradle` (replace 2.13 ```javascript dependencies { - implementation('dev.akif:e-scala_2.13:2.0.0') + implementation('dev.akif:e-scala_2.13:2.0.1') } ``` @@ -74,10 +74,10 @@ E.name("test-error").message("Test") // res2: E = {"name":"test-error","message":"Test"} val unexpectedError = E(message = Some("Unexpected Error"), code = Some(-1)).now -// unexpectedError: E = {"code":-1,"message":"Unexpected Error","time":1598039760254} +// unexpectedError: E = {"code":-1,"message":"Unexpected Error","time":1646920591952} val errorWithDataAndCause = unexpectedError.data("action" -> "test").cause(notSoEmpty) -// errorWithDataAndCause: E = {"code":-1,"message":"Unexpected Error","causes":[{"code":1,"name":"error-name","message":"Error Message"}],"data":{"action":"test"},"time":1598039760254} +// errorWithDataAndCause: E = {"code":-1,"message":"Unexpected Error","causes":[{"code":1,"name":"error-name","message":"Error Message"}],"data":{"action":"test"},"time":1646920591952} ``` #### 1.2. Accessing Data in E diff --git a/e-zio/README.md b/e-zio/README.md index be761fc..8267497 100644 --- a/e-zio/README.md +++ b/e-zio/README.md @@ -1,6 +1,6 @@ [//]: # "This file is generated by [mdoc](https://scalameta.org/mdoc). Do not edit it directly as it will be overwritten. Instead edit corresponding file in docs folder." -# e-zio [![](https://img.shields.io/badge/docs-2.0.0-brightgreen.svg?style=for-the-badge&logo=scala&color=dc322f&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-zio_2.13) +# e-zio [![](https://img.shields.io/badge/docs-2.0.1-brightgreen.svg?style=for-the-badge&logo=scala&color=dc322f&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-zio_2.13) This module provides aliases `EIO` and `REIO` for [ZIO](https://zio.dev). They fix the `E` type parameter of `ZIO[R, E, A]` to [E](/e-scala/src/main/scala/e/scala/E.scala) so you can use all ZIO and e goodness together. @@ -9,7 +9,7 @@ This module provides aliases `EIO` and `REIO` for [ZIO](https://zio.dev). They f If you use SBT, add following to your `build.sbt`: ```scala -libraryDependencies += "dev.akif" %% "e-zio" % "2.0.0" +libraryDependencies += "dev.akif" %% "e-zio" % "2.0.1" ``` If you use Maven, add following to your `pom.xml` (replace 2.13 if you need a different Scala version): @@ -18,7 +18,7 @@ If you use Maven, add following to your `pom.xml` (replace 2.13 if you need a di dev.akif e-zio_2.13 - 2.0.0 + 2.0.1 ``` @@ -26,7 +26,7 @@ If you use Gradle, add following to your project's `build.gradle` (replace 2.13 ```javascript dependencies { - implementation('dev.akif:e-zio_2.13:2.0.0') + implementation('dev.akif:e-zio_2.13:2.0.1') } ``` @@ -48,19 +48,19 @@ import e.scala._ // From E E.name("test-error").message("Test").toEIO[String] -// res1: EIO[String] = zio.ZIO$Fail@6d5b9b0c +// res1: EIO[String] = zio.ZIO$Fail@336f35f8 // From value 42.toEIO -// res2: EIO[Int] = zio.ZIO$EffectTotal@30abf773 +// res2: EIO[Int] = zio.ZIO$EffectTotal@10abfc4b // From failed EOr E.code(1).toEOr[String].toEIO -// res3: EIO[String] = zio.ZIO$Fail@17994c61 +// res3: EIO[String] = zio.ZIO$Fail@5502b629 // From successful EOr "test".toEOr.toEIO -// res4: EIO[String] = zio.ZIO$EffectTotal@60e2c40 +// res4: EIO[String] = zio.ZIO$EffectTotal@383d4dae def divide(a: Int, b: Int): EIO[Int] = if (b == 0) { @@ -70,10 +70,10 @@ def divide(a: Int, b: Int): EIO[Int] = } divide(4, 2) -// res5: EIO[Int] = zio.ZIO$EffectTotal@373c5476 +// res5: EIO[Int] = zio.ZIO$EffectTotal@239b2d6e divide(4, 0) -// res6: EIO[Int] = zio.ZIO$Fail@58c33d8d +// res6: EIO[Int] = zio.ZIO$Fail@5b7d0509 ``` ### 2. REIO @@ -84,19 +84,19 @@ import e.scala._ // From E E.name("test-error").message("Test").toREIO[Boolean, String] -// res8: REIO[Boolean, String] = zio.ZIO$Fail@56488b0 +// res8: REIO[Boolean, String] = zio.ZIO$Fail@73999df8 // From value 42.toREIO[String] -// res9: REIO[String, Int] = zio.ZIO$EffectTotal@727fc870 +// res9: REIO[String, Int] = zio.ZIO$EffectTotal@6f48f5d6 // From failed EOr E.code(1).toEOr[String].toREIO[Long] -// res10: REIO[Long, String] = zio.ZIO$Fail@27b5bdad +// res10: REIO[Long, String] = zio.ZIO$Fail@3d9f4ba8 // From successful EOr "test".toEOr.toREIO[String] -// res11: REIO[String, String] = zio.ZIO$EffectTotal@66dbc383 +// res11: REIO[String, String] = zio.ZIO$EffectTotal@435b8054 class Divider { def divide(a: Int, b: Int): EIO[Int] = @@ -108,14 +108,14 @@ class Divider { } val divider: Divider = new Divider -// divider: Divider = repl.MdocSession$App7$Divider@47dbe6e0 +// divider: Divider = repl.MdocSession$App7$Divider@4de519c def divide(a: Int, b: Int): REIO[Divider, Int] = REIO.accessM[Divider](_.divide(a, b)) divide(4, 2).provide(divider) -// res12: zio.package.IO[E, Int] = zio.ZIO$Provide@4b6b9a23 +// res12: zio.package.IO[E, Int] = zio.ZIO$Provide@5978855e divide(4, 0).provide(divider) -// res13: zio.package.IO[E, Int] = zio.ZIO$Provide@41b90e36 +// res13: zio.package.IO[E, Int] = zio.ZIO$Provide@4a50d15a ``` diff --git a/version.sbt b/version.sbt index 14cae95..ce20fca 100644 --- a/version.sbt +++ b/version.sbt @@ -1 +1 @@ -ThisBuild / version := "2.0.1-SNAPSHOT" +ThisBuild / version := "2.0.1"