Skip to content

Releases: configcat/kotlin-sdk

v5.1.0

15 Aug 12:02
9f41e55

Choose a tag to compare

Added

  • wasmJs target support.

Changed

  • korlibs.klock was replaced with kotlin.time.
  • korlibs.krypto was replaced with kotlincrypto.

Minor breaking change

It was possible to set a user object attribute to a korlibs.klock.DateTime value. Now the SDK recognizes kotlin.time.Instant values instead.

v5.0.1

18 Jun 13:15
22c8b47

Choose a tag to compare

Fixed

  • #60 IC internal error: can not find library io.ktor:ktor-client-js

v5.0.0

13 Jun 12:07
a2051b3

Choose a tag to compare

Added

  • addOnClientReadyWithSnapshot(snapshotHandler: (ConfigCatClientSnapshot) -> Unit) hook subscription function that gets a snapshot whenever the client reaches the ready state.
  • addOnConfigChanged(handler: (Map<String, Setting>, ConfigCatClientSnapshot) -> Unit) hook subscription function that also gets a snapshot (beside the settings map) about the changed config state of the client.

Breaking changes

  • Depreceted addOnClientReady(handler: () -> Unit) hook subscription function was removed.
  • Signature of the addOnConfigChanged() hook subscription function changed from addOnConfigChanged(handler: (Map<String, Setting>) -> Unit) to addOnConfigChanged(handler: (Map<String, Setting>, ConfigCatClientSnapshot) -> Unit).

v4.2.0

30 May 15:19
e7bc717

Choose a tag to compare

Changed

  • Switch to a new mavenPublish plugin to publish via the new Maven Central publishing API.
  • forceRefresh reports about being called in offline mode only when no external cache is set.
  • When an external cache is configured, the SDK continues to sync with it in offline mode.

Added

  • Ability to create snapshots via a client.snapshot() method to execute synchronous feature flag evaluations on a captured state of the SDK.
  • Introduce new error codes for better error handling on EvaluationDetails and RefreshResults.

v4.1.1

08 Jan 09:46
ab963b2

Choose a tag to compare

Fixed

  • #51: ConfigCatUser crash

4.1.0

21 Nov 16:29
c1ecdc5

Choose a tag to compare

Added

  • waitForReady method to the ConfigCatClient.

Changed

  • Deprecated addOnClientReady(handler: () -> Unit) hook and added a new version addOnClientReady(handler: (ClientCacheState) -> Unit)

4.0.0

04 Nov 12:23
fb85212

Choose a tag to compare

Changed

  • Updated Kotlin to 2.0.21
  • Updated Ktor to 3.0.0
  • Updated related dependencies

3.1.1

07 May 10:31
4dad14b

Choose a tag to compare

Fixed

  • Initial config JSON load when auto poll enabled with results from cache.

3.1.0

23 Apr 09:40
3d4bd02

Choose a tag to compare

Changed

  • Updated Kotlin to 1.9.23
  • Updated related dependencies

3.0.1

09 Apr 20:41
2d42f3f

Choose a tag to compare

Fixed

  • #29: Custom baseUrl does not work when using ConfigCat Proxy