Skip to content

Releases: configcat/kotlin-sdk

v5.0.1

18 Jun 13:15
22c8b47
Compare
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
Compare
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
Compare
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
Compare
Choose a tag to compare

Fixed

  • #51: ConfigCatUser crash

4.1.0

21 Nov 16:29
c1ecdc5
Compare
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
Compare
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
Compare
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
Compare
Choose a tag to compare

Changed

  • Updated Kotlin to 1.9.23
  • Updated related dependencies

3.0.1

09 Apr 20:41
2d42f3f
Compare
Choose a tag to compare

Fixed

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

3.0.0

02 Apr 11:16
136f7ae
Compare
Choose a tag to compare

New features and improvements:

  • Add support for the new Config JSON v6 format: update the config model and implement new features in setting evaluation logic.
  • Overhaul setting evaluation-related logging and make it consistent across SDKs.
  • Performance improvements to setting evaluation when info level logging is turned off.

Breaking changes:

  • Change the type of the ConfigCatUser custom attribute map from Map<String, String> to Map<String, Any> to allow other values than String.
  • Setting OverrideDataSource replaced with Config OverrideDataSoruce
  • Rename the matchedEvaluationRule property to matchedTargetingRule and the matchedEvaluationPercentageRule property to matchedPercentageOption in EvaluationDetails.
  • Change config model (Config and related interfaces/enums).
  • Throw IllegalArgumentException when the SDK key passed to ConfigCatClient.get is in an invalid format (unless the client is set up to use local-only flag override behaviour).