Skip to content

Commit

Permalink
upgrade kotlin
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddenton committed Oct 30, 2023
1 parent 9d30875 commit 847aeab
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
This list is not intended to be all-encompassing - it will document major and breaking API changes with their rationale
when appropriate:

### v2.10.0.0
- **all** : Upgrade of dependencies, including Kotlin to 1.9.20
- **values4k** :[Fix] InstantValue now uses format

### v2.9.0.0
- **values4k** : Instant value can now take a format
- **values4k** : InstantValue value can now take a format

### v2.8.0.0
- **mock4k** : Rename mode argument.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import org.junit.jupiter.api.assertDoesNotThrow
import org.junit.jupiter.api.assertThrows

class MatchersTest {

@Test
fun `should correctly assert when Success`() {
val value = "Successful"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ open class DurationValueFactory<DOMAIN : Value<Duration>>(
open class InstantValueFactory<DOMAIN : Value<Instant>>(
fn: (Instant) -> DOMAIN, validation: Validation<Instant>? = null,
fmt: DateTimeFormatter = ISO_INSTANT
) : ValueFactory<DOMAIN, Instant>(fn, validation, { fmt.parse(it, Instant::from) })
) : ValueFactory<DOMAIN, Instant>(fn, validation, { fmt.parse(it, Instant::from) }, fmt::format)

open class LocalDateValueFactory<DOMAIN : Value<LocalDate>>(
fn: (LocalDate) -> DOMAIN, validation: Validation<LocalDate>? = null,
Expand Down
4 changes: 2 additions & 2 deletions versions.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ plugin.com.github.kt3k.coveralls=2.12.2

plugin.io.codearte.nexus-staging=0.30.0

plugin.me.champeau.jmh=0.7.1
plugin.me.champeau.jmh=0.7.2

version.com.natpryce..hamkrest=1.8.0.1

version.junit.jupiter=5.10.0

version.kotest=5.6.2

version.kotlin=1.9.0
version.kotlin=1.9.20

version.kotlinx.coroutines=1.7.3

Expand Down

0 comments on commit 847aeab

Please sign in to comment.