Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
* Ktor 2.3.3 -> 2.3.4
* kotlinx-datetime 0.4.0 -> 0.4.1
* Stately 2.0.0-rc1 -> 2.0.2
* SLF4J 2.0.7 -> 2.0.9
* Dokka 1.8.20 -> 1.9.0
* actions/checkout v3 -> v4
  • Loading branch information
lukellmann committed Sep 18, 2023
1 parent 9a7b302 commit fcfc416
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deployment-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
env:
KORD_TEST_TOKEN: ${{ secrets.KORD_TEST_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
with:
Expand All @@ -45,7 +45,7 @@ jobs:
SIGNING_KEY: ${{ secrets.signingKey }}
SIGNING_PASSWORD: ${{ secrets.signingPassword }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
group: pages
cancel-in-progress: true
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ jobs:
name: Validate Gradle Wrapper
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ import kotlin.js.JsName
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertFailsWith
import kotlin.time.Duration
import kotlin.time.Duration.Companion.nanoseconds
import kotlin.time.Duration.Companion.seconds

private val EPOCH = Instant.fromEpochSeconds(0)

Expand Down Expand Up @@ -74,11 +72,6 @@ class InstantInEpochMillisecondsSerializerTest : InstantSerializerTest(
instant = Instant.fromEpochMilliseconds(796514689159),
serializer = InstantInEpochMillisecondsSerializer,
) {
// workaround for https://github.com/Kotlin/kotlinx-datetime/issues/263, use normal operators when fix is released
private infix fun Instant.plus(duration: Duration) = (this + 1.seconds) - (1.seconds - duration)
private infix fun Instant.minus(duration: Duration) = (this - 1.seconds) + (1.seconds - duration)


private val past = Instant.fromEpochMilliseconds(Long.MIN_VALUE)
private val future = Instant.fromEpochMilliseconds(Long.MAX_VALUE)

Expand All @@ -94,7 +87,7 @@ class InstantInEpochMillisecondsSerializerTest : InstantSerializerTest(
fun `future Instant under limit can be serialized`() {
assertEquals(
expected = (if (futureClamped) clampedMax else Long.MAX_VALUE - 1).toString(),
actual = serialize(future minus 1.nanoseconds),
actual = serialize(future - 1.nanoseconds),
)
}

Expand All @@ -103,7 +96,7 @@ class InstantInEpochMillisecondsSerializerTest : InstantSerializerTest(
fun `past Instant under limit can be serialized`() {
assertEquals(
expected = (if (pastClamped) clampedMin else Long.MIN_VALUE).toString(),
actual = serialize(past plus 1.nanoseconds),
actual = serialize(past + 1.nanoseconds),
)
}

Expand All @@ -130,13 +123,13 @@ class InstantInEpochMillisecondsSerializerTest : InstantSerializerTest(
@Test
@JsName("test11")
fun `future Instant over limit cannot be serialized`() {
if (!futureClamped) assertFailsWith<SerializationException> { serialize(future plus 1.nanoseconds) }
if (!futureClamped) assertFailsWith<SerializationException> { serialize(future + 1.nanoseconds) }
}

@Test
@JsName("test12")
fun `past Instant over limit cannot be serialized`() {
if (!pastClamped) assertFailsWith<SerializationException> { serialize(past minus 1.nanoseconds) }
if (!pastClamped) assertFailsWith<SerializationException> { serialize(past - 1.nanoseconds) }
}
}

Expand Down
10 changes: 5 additions & 5 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

# api dependencies
kotlin = "1.9.10" # https://github.com/JetBrains/kotlin
ktor = "2.3.3" # https://github.com/ktorio/ktor
ktor = "2.3.4" # https://github.com/ktorio/ktor
kotlinx-coroutines = "1.7.3" # https://github.com/Kotlin/kotlinx.coroutines
kotlinx-serialization = "1.6.0" # https://github.com/Kotlin/kotlinx.serialization
kotlinx-datetime = "0.4.0" # https://github.com/Kotlin/kotlinx-datetime
kotlinx-datetime = "0.4.1" # https://github.com/Kotlin/kotlinx-datetime
kotlin-logging = "3.0.5" # https://github.com/oshai/kotlin-logging
kord-cache = "0.4.0" # https://github.com/kordlib/cache

# implementation dependencies
kotlin-node = "18.16.12-pre.619" # https://github.com/JetBrains/kotlin-wrappers
bignum = "0.3.8" # https://github.com/ionspin/kotlin-multiplatform-bignum
stately = "2.0.0-rc1" # https://github.com/touchlab/Stately
stately = "2.0.2" # https://github.com/touchlab/Stately
fastZlib = "2.0.1" # https://github.com/timotejroiko/fast-zlib

# code generation
Expand All @@ -22,10 +22,10 @@ kotlinpoet = "1.14.2" # https://github.com/square/kotlinpoet
# tests
junit5 = "5.10.0" # https://github.com/junit-team/junit5
mockk = "1.13.7" # https://github.com/mockk/mockk
slf4j = "2.0.7" # https://www.slf4j.org
slf4j = "2.0.9" # https://www.slf4j.org

# plugins
dokka = "1.8.20" # https://github.com/Kotlin/dokka
dokka = "1.9.0" # https://github.com/Kotlin/dokka
kotlinx-atomicfu = "0.22.0" # https://github.com/Kotlin/kotlinx-atomicfu
binary-compatibility-validator = "0.13.2" # https://github.com/Kotlin/binary-compatibility-validator
buildconfig = "4.1.2" # https://github.com/gmazzo/gradle-buildconfig-plugin
Expand Down

0 comments on commit fcfc416

Please sign in to comment.