Skip to content

Releases: bkahlert/kommons

v2.8.0

05 Mar 15:47
Compare
Choose a tag to compare

[2.8.0] - 2023-03-05

Added

  • Uri.resolve / Uri.resolveTo
    • Example
      Uri("http://a/b/c/d;p?q").resolve("../g")
      // returns
      Uri("http://a/b/g")
  • DataUri factory for textual data

Changed

  • upgrade to
    • Kotlin 1.8.10
    • Ktor 2.2.3
    • Kotlinx.serialization to 1.5.0
  • moved time-related feature to separate kommons-time module

Fixed

  • toMomentString for negative dates

v2.7.0

09 Feb 12:49
Compare
Choose a tag to compare

Changed

Fixed

  • logger name computation in Firefox

v2.6.0

14 Jan 20:33
Compare
Choose a tag to compare

Added

  • Kommons Bill of Materials
  • Clock builder
  • Clock.fixed

Changed

  • Upgrade to Kotlin 1.8.0

  • Kommons Test's dynamic test builders testing/testingAll now lazily
    build tests as they're consumed by JUnit

Fixed

  • Add ValueRange.toString

v2.5.0

14 Dec 23:04
d10ab3d
Compare
Choose a tag to compare

Added

Kotlin-specific structured logging

data class Bar(val bar: Int) {
    override fun toString(): String = "bar-$bar"
}

logger.info("Successfully created {}", array(Bar(1), Bar(2)))
{
  "@timestamp": "2022-12-14T14:51:57.583+01:00",
  "level": "INFO",
  "message": "Successfully created bars=[bar-1, bar-2]",
  "bars": [
    {
      "bar": 1
    },
    {
      "bar": 2
    }
  ]
}

Changed

  • chore: upgrade to Kotlin 1.7.21

v2.4.1

11 Dec 17:57
Compare
Choose a tag to compare

Changed

  • chore: upgrade to Gradle 7.6

Fixed

  • fix: add back js.Date extension functions

v2.4.0

09 Dec 03:22
Compare
Choose a tag to compare

Added

  • Native for ...
    • Linux x64
    • MinGW x64
    • macOS x64
    • macOS ARM 64
  • and the following modules ...
    • Kommons Core
    • Kommons Kaomoji
    • Kommons Test
    • Kommons Text

v2.3.1

26 Oct 08:02
Compare
Choose a tag to compare

Fixed

  • catch InaccessibleObjectException when attempting to compute PID

v2.3.0

22 Oct 01:44
Compare
Choose a tag to compare

Added

  • Kotest JSON assertions API dependency
  • CommandLine constructor to invoke the main method of class using Java
  • Fix SyncExecutor to always empty and close the output and error stream

v2.2.0

11 Oct 08:43
Compare
Choose a tag to compare

Added

Removed

  • removed kommons-exec-deprecated

v2.1.0

08 Sep 01:11
Compare
Choose a tag to compare

Added

  • simple pluralize() extension function
  • Kommons Logging: Core: get Logback or Kotlin Logger logger easily
  • Kommons Logging: Logback: configure logging using system properties CONSOLE_LOG_PRESET and FILE_LOG_PRESET
  • Kommons Logging: Spring Boot: configure logging using application properties logging.preset.console and logging.preset.file

Changed

  • Set junit.jupiter.execution.parallel.config.dynamic.factor to 2.
  • Display "PascalCaseNestedTests" as "pascal case nested tests".

Fixed

  • Set JS test timeout to same as JUnit tests.