Skip to content

Commit 94a18b0

Browse files
committed
Setting version to 2.0.2
1 parent 6afef19 commit 94a18b0

File tree

9 files changed

+71
-71
lines changed

9 files changed

+71
-71
lines changed

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ It consists of different modules for different needs. You can find details, inst
99

1010
| Latest Version of e | Java Version | Scala Versions | Kotlin Version |
1111
| ------------------- | --------------------- | ----------------------- | ---------------- |
12-
| 2.0.1 | 1.8 | 2.12.15, 2.13.8 | 1.5.10 |
12+
| 2.0.2 | 1.8 | 2.12.16, 2.13.8 | 1.6.21 |
1313

1414
## Table of Contents
1515

@@ -27,13 +27,13 @@ It consists of different modules for different needs. You can find details, inst
2727

2828
| Name | Platform | Details | Documentation |
2929
| ------------------------------------ | -------- | ------------------------------------------------------------------ | ------------- |
30-
| [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) |
31-
| [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) |
32-
| [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) |
33-
| [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) |
34-
| [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) |
35-
| [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) |
36-
| [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) |
30+
| [e-scala](e-scala/README.md) | Scala | Scala implementation | [![](https://img.shields.io/badge/docs-2.0.2-brightgreen.svg?style=for-the-badge&logo=scala&color=dc322f&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-scala_2.13) |
31+
| [e-kotlin](e-kotlin/README.md) | Kotlin | Kotlin implementation | [![](https://img.shields.io/badge/docs-2.0.2-brightgreen.svg?style=for-the-badge&logo=kotlin&color=0095d5&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-kotlin) |
32+
| [e-java](e-java/README.md) | Java | Java implementation | [![](https://img.shields.io/badge/docs-2.0.2-brightgreen.svg?style=for-the-badge&logo=java&color=007396&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-java) |
33+
| [e-circe](e-circe/README.md) | Scala | Extras for [circe](https://circe.github.io/circe) | [![](https://img.shields.io/badge/docs-2.0.2-brightgreen.svg?style=for-the-badge&logo=scala&color=dc322f&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-circe_2.13) |
34+
| [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.2-brightgreen.svg?style=for-the-badge&logo=scala&color=dc322f&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-play-json_2.13) |
35+
| [e-zio](e-zio/README.md) | Scala | Extras for [ZIO](https://zio.dev) | [![](https://img.shields.io/badge/docs-2.0.2-brightgreen.svg?style=for-the-badge&logo=scala&color=dc322f&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-zio_2.13) |
36+
| [e-gson](e-gson/README.md) | Java | Extras for [gson](https://github.com/google/gson) | [![](https://img.shields.io/badge/docs-2.0.2-brightgreen.svg?style=for-the-badge&logo=java&color=007396&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-gson) |
3737

3838
## Examples and Use Cases
3939

e-circe/README.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[//]: # "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."
22

3-
# 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)
3+
# e-circe [![](https://img.shields.io/badge/docs-2.0.2-brightgreen.svg?style=for-the-badge&logo=scala&color=dc322f&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-circe_2.13)
44

55
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).
66

@@ -9,7 +9,7 @@ This is a Json codec implementation for `E` and `EOr` types based on [circe](htt
99
If you use SBT, add following to your `build.sbt`:
1010

1111
```scala
12-
libraryDependencies += "dev.akif" %% "e-circe" % "2.0.1"
12+
libraryDependencies += "dev.akif" %% "e-circe" % "2.0.2"
1313
```
1414
If you use Maven, add following to your `pom.xml` (replace 2.13 if you need a different Scala version):
1515

@@ -18,15 +18,15 @@ If you use Maven, add following to your `pom.xml` (replace 2.13 if you need a di
1818
<dependency>
1919
<groupId>dev.akif</groupId>
2020
<artifactId>e-circe_2.13</artifactId>
21-
<version>2.0.1</version>
21+
<version>2.0.2</version>
2222
</dependency>
2323
</dependencies>
2424
```
2525
If you use Gradle, add following to your project's `build.gradle` (replace 2.13 if you need a different Scala version):
2626

2727
```javascript
2828
dependencies {
29-
implementation('dev.akif:e-circe_2.13:2.0.1')
29+
implementation('dev.akif:e-circe_2.13:2.0.2')
3030
}
3131
```
3232

@@ -52,21 +52,21 @@ import io.circe.{Decoder => CirceDecoder, Encoder => CirceEncoder, Json}
5252
import io.circe.syntax._
5353

5454
decode[String](123.asJson)
55-
// res1: e.scala.EOr[String] = {"name":"decoding-error","message":"Failed to decode!","causes":[{"message":"String"}]}
55+
// res1: e.scala.EOr[String] = {"name":"decoding-error","message":"Failed to decode!","causes":[{"message":"Got value '123' with wrong type, expecting string"}]}
5656

5757
decode[String]("test".asJson)
5858
// res2: e.scala.EOr[String] = test
5959

6060
case class Foo(bar: Boolean)
6161

6262
implicit val fooDecoder: CirceDecoder[Foo] = CirceDecoder.forProduct1("bar")(Foo.apply)
63-
// fooDecoder: io.circe.Decoder[Foo] = io.circe.ProductDecoders$$anon$1@76e6ae51
63+
// fooDecoder: io.circe.Decoder[Foo] = io.circe.ProductDecoders$$anon$1@4812c0e9
6464

6565
implicit val fooEncoder: CirceEncoder[Foo] = CirceEncoder.forProduct1("bar")(_.bar)
66-
// fooEncoder: io.circe.Encoder[Foo] = io.circe.ProductEncoders$$anon$1@78b3f1c7
66+
// fooEncoder: io.circe.Encoder[Foo] = io.circe.ProductEncoders$$anon$1@6651e0f
6767

6868
decode[Foo](Json.obj())
69-
// res3: e.scala.EOr[Foo] = {"name":"decoding-error","message":"Failed to decode!","causes":[{"name":".bar","message":"Attempt to decode value on failed cursor"}]}
69+
// res3: e.scala.EOr[Foo] = {"name":"decoding-error","message":"Failed to decode!","causes":[{"name":".bar","message":"Missing required field"}]}
7070

7171
decode[Foo](Foo(false).asJson)
7272
// res4: e.scala.EOr[Foo] = Foo(false)
@@ -91,7 +91,7 @@ decode[E](Json.arr())
9191
// res7: e.scala.EOr[E] = {"name":"decoding-error","message":"Failed to decode!","causes":[{"message":"Expected: JsonObject"}]}
9292

9393
val decoder = makeDecoder[E]
94-
// decoder: e.scala.codec.Decoder[Json, E] = e.scala.codec.CodecFor$$Lambda$13211/0x0000000803530000@497f8c1c
94+
// decoder: e.scala.codec.Decoder[Json, E] = e.scala.codec.CodecFor$$Lambda$13621/0x0000000803544890@30eba2dd
9595

9696
decoder.decode(Json.obj("code" := 1, "name" := "test"))
9797
// res8: e.scala.EOr[E] = {"code":1,"name":"test"}
@@ -124,7 +124,7 @@ encode(E.name("test").message("Test").cause(E.code(1)))
124124
// }
125125

126126
val encoder = makeEncoder[E]
127-
// encoder: e.scala.codec.Encoder[E, io.circe.Json] = e.scala.codec.CodecFor$$Lambda$13216/0x0000000803536000@753488bc
127+
// encoder: e.scala.codec.Encoder[E, io.circe.Json] = e.scala.codec.CodecFor$$Lambda$13626/0x0000000803547dd0@42f13d3e
128128

129129
encoder.encode(E.code(2))
130130
// res12: io.circe.Json = {
@@ -147,7 +147,7 @@ encode[EOr[Int]](123.toEOr)
147147
// res15: io.circe.Json = 123
148148

149149
val encoder = makeEncoder[EOr[String]]
150-
// encoder: codec.Encoder[EOr[String], io.circe.Json] = e.scala.codec.CodecFor$$Lambda$13216/0x0000000803536000@26e04468
150+
// encoder: codec.Encoder[EOr[String], io.circe.Json] = e.scala.codec.CodecFor$$Lambda$13626/0x0000000803547dd0@99ac7eb
151151

152152
encoder.encode(E.name("test").toEOr[String])
153153
// res16: io.circe.Json = {
@@ -177,10 +177,10 @@ object User {
177177
}
178178

179179
val codec = makeCodec[User]
180-
// codec: e.scala.codec.Codec[User, Json] = e.scala.codec.CodecFor$$anon$1@1a5c353
180+
// codec: e.scala.codec.Codec[User, Json] = e.scala.codec.CodecFor$$anon$1@2b6f2b05
181181

182182
codec.decode(Json.obj("foo" := "bar"))
183-
// 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"}]}
183+
// res19: EOr[User] = {"name":"decoding-error","message":"Failed to decode!","causes":[{"name":".n","message":"Missing required field"},{"name":".a","message":"Missing required field"}]}
184184

185185
codec.decode(Json.obj("n" := "Akif", "a" := 29))
186186
// res20: EOr[User] = User(Akif,29)

e-gson/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[//]: # "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."
22

3-
# 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)
3+
# e-gson[![](https://img.shields.io/badge/docs-2.0.2-brightgreen.svg?style=for-the-badge&logo=java&color=007396&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-gson)
44

55
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).
66

@@ -10,7 +10,7 @@ If you use Gradle, add following to your project's `build.gradle`:
1010

1111
```javascript
1212
dependencies {
13-
implementation('dev.akif:e-gson:2.0.1')
13+
implementation('dev.akif:e-gson:2.0.2')
1414
}
1515
```
1616
If you use Maven, add following to your `pom.xml`:
@@ -20,14 +20,14 @@ If you use Maven, add following to your `pom.xml`:
2020
<dependency>
2121
<groupId>dev.akif</groupId>
2222
<artifactId>e-gson</artifactId>
23-
<version>2.0.1</version>
23+
<version>2.0.2</version>
2424
</dependency>
2525
</dependencies>
2626
```
2727
If you use SBT, add following to your `build.sbt`:
2828

2929
```scala
30-
libraryDependencies += "dev.akif" % "e-gson" % "2.0.1"
30+
libraryDependencies += "dev.akif" % "e-gson" % "2.0.2"
3131
```
3232

3333
## Contents

e-java/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[//]: # "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."
22

3-
# 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)
3+
# e-java [![](https://img.shields.io/badge/docs-2.0.2-brightgreen.svg?style=for-the-badge&logo=java&color=007396&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-java)
44

55
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.
66

@@ -10,7 +10,7 @@ If you use Gradle, add following to your project's `build.gradle`:
1010

1111
```javascript
1212
dependencies {
13-
implementation('dev.akif:e-java:2.0.1')
13+
implementation('dev.akif:e-java:2.0.2')
1414
}
1515
```
1616
If you use Maven, add following to your `pom.xml`:
@@ -20,14 +20,14 @@ If you use Maven, add following to your `pom.xml`:
2020
<dependency>
2121
<groupId>dev.akif</groupId>
2222
<artifactId>e-java</artifactId>
23-
<version>2.0.1</version>
23+
<version>2.0.2</version>
2424
</dependency>
2525
</dependencies>
2626
```
2727
If you use SBT, add following to your `build.sbt`:
2828

2929
```java
30-
libraryDependencies += "dev.akif" % "e-java" % "2.0.1"
30+
libraryDependencies += "dev.akif" % "e-java" % "2.0.2"
3131
```
3232

3333
## Contents

e-kotlin/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[//]: # "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."
22

3-
# 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)
3+
# e-kotlin [![](https://img.shields.io/badge/docs-2.0.2-brightgreen.svg?style=for-the-badge&logo=kotlin&color=0095d5&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-kotlin)
44

55
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.
66

@@ -10,7 +10,7 @@ If you use Gradle, add following to your project's `build.gradle`:
1010

1111
```javascript
1212
dependencies {
13-
implementation('dev.akif:e-kotlin:2.0.1')
13+
implementation('dev.akif:e-kotlin:2.0.2')
1414
}
1515
```
1616
If you use Maven, add following to your `pom.xml`:
@@ -20,14 +20,14 @@ If you use Maven, add following to your `pom.xml`:
2020
<dependency>
2121
<groupId>dev.akif</groupId>
2222
<artifactId>e-kotlin</artifactId>
23-
<version>2.0.1</version>
23+
<version>2.0.2</version>
2424
</dependency>
2525
</dependencies>
2626
```
2727
If you use SBT, add following to your `build.sbt`:
2828

2929
```kotlin
30-
libraryDependencies += "dev.akif" % "e-kotlin" % "2.0.1"
30+
libraryDependencies += "dev.akif" % "e-kotlin" % "2.0.2"
3131
```
3232

3333
## Contents

e-play-json/README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[//]: # "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."
22

3-
# 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)
3+
# e-play-json [![](https://img.shields.io/badge/docs-2.0.2-brightgreen.svg?style=for-the-badge&logo=scala&color=dc322f&labelColor=333333)](https://javadoc.io/doc/dev.akif/e-play-json_2.13)
44

55
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).
66

@@ -9,7 +9,7 @@ This is a Json codec implementation for `E` and `EOr` types based on [play-json]
99
If you use SBT, add following to your `build.sbt`:
1010

1111
```scala
12-
libraryDependencies += "dev.akif" %% "e-play-json" % "2.0.1"
12+
libraryDependencies += "dev.akif" %% "e-play-json" % "2.0.2"
1313
```
1414
If you use Maven, add following to your `pom.xml` (replace 2.13 if you need a different Scala version):
1515

@@ -18,15 +18,15 @@ If you use Maven, add following to your `pom.xml` (replace 2.13 if you need a di
1818
<dependency>
1919
<groupId>dev.akif</groupId>
2020
<artifactId>e-play-json_2.13</artifactId>
21-
<version>2.0.1</version>
21+
<version>2.0.2</version>
2222
</dependency>
2323
</dependencies>
2424
```
2525
If you use Gradle, add following to your project's `build.gradle` (replace 2.13 if you need a different Scala version):
2626

2727
```javascript
2828
dependencies {
29-
implementation('dev.akif:e-play-json_2.13:2.0.1')
29+
implementation('dev.akif:e-play-json_2.13:2.0.2')
3030
}
3131
```
3232

@@ -59,10 +59,10 @@ decode[String](Json.toJson("test"))
5959
case class Foo(bar: Boolean)
6060

6161
implicit val fooReads: Reads[Foo] = Json.reads[Foo]
62-
// fooReads: Reads[Foo] = play.api.libs.json.Reads$$anon$6@76d9124
62+
// fooReads: Reads[Foo] = play.api.libs.json.Reads$$anon$6@dfb8284
6363

6464
implicit val fooWrites: Writes[Foo] = Json.writes[Foo]
65-
// fooWrites: Writes[Foo] = play.api.libs.json.OWrites$$anon$4@58d396d3
65+
// fooWrites: Writes[Foo] = play.api.libs.json.OWrites$$anon$4@2f50b87a
6666

6767
decode[Foo](Json.obj())
6868
// 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())
8989
// res7: e.scala.EOr[E] = {"name":"decoding-error","message":"Failed to decode!","causes":[{"name":"obj","message":"error.expected.jsobject"}]}
9090

9191
val decoder = makeDecoder[E]
92-
// decoder: e.scala.codec.Decoder[JsValue, E] = e.scala.codec.CodecFor$$Lambda$13211/0x0000000803530000@26a09934
92+
// decoder: e.scala.codec.Decoder[JsValue, E] = e.scala.codec.CodecFor$$Lambda$13621/0x0000000803544890@2b7df3a8
9393

9494
decoder.decode(Json.obj("code" -> 1, "name" -> "test"))
9595
// res8: e.scala.EOr[E] = {"code":1,"name":"test"}
@@ -112,7 +112,7 @@ encode(E.name("test").message("Test").cause(E.code(1)))
112112
// res11: play.api.libs.json.JsValue = {"name":"test","message":"Test","causes":[{"code":1}]}
113113

114114
val encoder = makeEncoder[E]
115-
// encoder: e.scala.codec.Encoder[E, play.api.libs.json.JsValue] = e.scala.codec.CodecFor$$Lambda$13216/0x0000000803536000@4774ba6a
115+
// encoder: e.scala.codec.Encoder[E, play.api.libs.json.JsValue] = e.scala.codec.CodecFor$$Lambda$13626/0x0000000803547dd0@10cb3673
116116

117117
encoder.encode(E.code(2))
118118
// res12: play.api.libs.json.JsValue = {"code":2}
@@ -131,7 +131,7 @@ encode[EOr[Int]](123.toEOr)
131131
// res15: play.api.libs.json.JsValue = 123
132132

133133
val encoder = makeEncoder[EOr[String]]
134-
// encoder: codec.Encoder[EOr[String], play.api.libs.json.JsValue] = e.scala.codec.CodecFor$$Lambda$13216/0x0000000803536000@22c2d89c
134+
// encoder: codec.Encoder[EOr[String], play.api.libs.json.JsValue] = e.scala.codec.CodecFor$$Lambda$13626/0x0000000803547dd0@4c8c98d8
135135

136136
encoder.encode(E.name("test").toEOr[String])
137137
// res16: play.api.libs.json.JsValue = {"name":"test"}
@@ -156,7 +156,7 @@ object User {
156156
}
157157

158158
val codec = makeCodec[User]
159-
// codec: e.scala.codec.Codec[User, JsValue] = e.scala.codec.CodecFor$$anon$1@5e9eb47a
159+
// codec: e.scala.codec.Codec[User, JsValue] = e.scala.codec.CodecFor$$anon$1@521e7c5
160160

161161
codec.decode(Json.obj("foo" -> "bar"))
162162
// 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"}]}

0 commit comments

Comments
 (0)