Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit 8fe6a0a

Browse files
committed
Release 0.5.3
1 parent 43a6132 commit 8fe6a0a

File tree

8 files changed

+19
-17
lines changed

8 files changed

+19
-17
lines changed

generated-docs/out/integrations/cats.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ This module contains integration layer between [org.typelevel.cats](https://gith
55
## sbt
66

77
```scala
8-
"com.softwaremill.diffx" %% "diffx-cats" % "0.5.2" % Test
8+
"com.softwaremill.diffx" %% "diffx-cats" % "0.5.3" % Test
99
```
1010

1111
## mill
1212

1313
```scala
14-
ivy"com.softwaremill.diffx::diffx-cats::0.5.2"
14+
ivy"com.softwaremill.diffx::diffx-cats::0.5.3"
1515
```
1616

1717
## Usage

generated-docs/out/integrations/refined.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ This module contains integration layer between [eu.timepit.refined](https://gith
55
## sbt
66

77
```scala
8-
"com.softwaremill.diffx" %% "diffx-refined" % "0.5.2" % Test
8+
"com.softwaremill.diffx" %% "diffx-refined" % "0.5.3" % Test
99
```
1010

1111
## mill
1212

1313
```scala
14-
ivy"com.softwaremill.diffx::diffx-refined::0.5.2"
14+
ivy"com.softwaremill.diffx::diffx-refined::0.5.3"
1515
```
1616

1717
## Usage

generated-docs/out/integrations/tagging.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ This module contains integration layer between [com.softwaremill.common.tagging]
55
## sbt
66

77
```scala
8-
"com.softwaremill.diffx" %% "diffx-tagging" % "0.5.2"
8+
"com.softwaremill.diffx" %% "diffx-tagging" % "0.5.3"
99
```
1010

1111
## mill
1212

1313
```scala
14-
ivy"com.softwaremill.diffx::diffx-tagging::0.5.2"
14+
ivy"com.softwaremill.diffx::diffx-tagging::0.5.3"
1515
```
1616

1717
## Usage

generated-docs/out/test-frameworks/munit.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ To use with munit, add following dependency:
55
## sbt
66

77
```scala
8-
"com.softwaremill.diffx" %% "diffx-munit" % "0.5.2" % Test
8+
"com.softwaremill.diffx" %% "diffx-munit" % "0.5.3" % Test
99
```
1010

1111
## mill
1212

1313
```scala
14-
ivy"com.softwaremill.diffx::diffx-munit::0.5.2"
14+
ivy"com.softwaremill.diffx::diffx-munit::0.5.3"
1515
```
1616

1717
## Usage

generated-docs/out/test-frameworks/scalatest.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ To use with scalatest, add the following dependency:
55
## sbt
66

77
```scala
8-
"com.softwaremill.diffx" %% "diffx-scalatest" % "0.5.2" % Test
8+
"com.softwaremill.diffx" %% "diffx-scalatest" % "0.5.3" % Test
99
```
1010

1111
## mill
1212

1313
```scala
14-
ivy"com.softwaremill.diffx::diffx-scalatest::0.5.2"
14+
ivy"com.softwaremill.diffx::diffx-scalatest::0.5.3"
1515
```
1616

1717
## Usage

generated-docs/out/test-frameworks/specs2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ To use with specs2, add the following dependency:
55
## sbt
66

77
```scala
8-
"com.softwaremill.diffx" %% "diffx-specs2" % "0.5.2" % Test
8+
"com.softwaremill.diffx" %% "diffx-specs2" % "0.5.3" % Test
99
```
1010

1111
## mill
1212

1313
```scala
14-
ivy"com.softwaremill.diffx::diffx-specs2::0.5.2"
14+
ivy"com.softwaremill.diffx::diffx-specs2::0.5.3"
1515
```
1616

1717
## Usage

generated-docs/out/test-frameworks/utest.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ To use with utest, add following dependency:
55
## sbt
66

77
```scala
8-
"com.softwaremill.diffx" %% "diffx-utest" % "0.5.2" % Test
8+
"com.softwaremill.diffx" %% "diffx-utest" % "0.5.3" % Test
99
```
1010

1111
## mill
1212

1313
```scala
14-
ivy"com.softwaremill.diffx::diffx-utest::0.5.2"
14+
ivy"com.softwaremill.diffx::diffx-utest::0.5.3"
1515
```
1616

1717
## Usage

generated-docs/out/usage/sequences.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,11 @@ In below example we tell `diffx` to compare these maps by paring entries by valu
4646
```scala
4747
import com.softwaremill.diffx._
4848
import com.softwaremill.diffx.generic.auto._
49+
import com.softwaremill.diffx.ObjectMatcher.MapEntry
4950
case class Person(id: String, name: String)
5051

5152
val personMatcher: ObjectMatcher[Person] = ObjectMatcher.by(_.id)
52-
implicit val om: ObjectMatcher[(String, Person)] = ObjectMatcher.byValue(personMatcher)
53+
implicit val om: ObjectMatcher[MapEntry[String, Person]] = ObjectMatcher.byValue(personMatcher)
5354
val bob = Person("1","Bob")
5455
```
5556

@@ -70,14 +71,15 @@ compare(Map("1" -> bob), Map("2" -> bob))
7071

7172
Last but not least you can use `objectMatcher` to customize paring when comparing indexed collections.
7273
Such collections are treated similarly to maps (they use key-value object matcher),
73-
but the key type is bound to `Int`.
74+
but the key type is bound to `Int` (`IterableEntry` is an alias for `MapEntry[Int,V]`).
7475

7576
```scala
7677
import com.softwaremill.diffx._
7778
import com.softwaremill.diffx.generic.auto._
79+
import com.softwaremill.diffx.ObjectMatcher.IterableEntry
7880
case class Person(id: String, name: String)
7981

80-
implicit val personMatcher: ObjectMatcher[(Int, Person)] = ObjectMatcher.byValue(_.id)
82+
implicit val personMatcher: ObjectMatcher[IterableEntry[Person]] = ObjectMatcher.byValue(_.id)
8183
val bob = Person("1","Bob")
8284
val alice = Person("2","Alice")
8385
```

0 commit comments

Comments
 (0)