Skip to content

Releases: configcat/go-sdk

v7.10.1

13 Jun 09:24
Compare
Choose a tag to compare
  • #61 Return ErrKeyNotFound when a flag requested is missing.
  • Fix for correctly bubbling up errors in EvaluationDetails result.

v7.10.0

17 May 13:33
29153f7
Compare
Choose a tag to compare
  • #58 Consolidate log messages across each SDK.

v7.9.0

05 Apr 10:50
d8eed9e
Compare
Choose a tag to compare
  • 2023-04 package security update.

v7.8.3

27 Feb 18:06
Compare
Choose a tag to compare
  • Revert cache write restriction introduced in v7.8.2. It's useful to repeat the cache writes, even in the case of 304. The cache could be in a clean state (e.g., due to a restart) that we should update with the latest in-memory config.

v7.8.2

26 Feb 22:26
Compare
Choose a tag to compare
  • Fix cache write behavior. It should be saved only when the new config's content differs from the previous.

v7.8.1

07 Feb 23:18
Compare
Choose a tag to compare
  • Fix reported version in X-ConfigCat-UserAgent header.

v7.8.0

10 Jan 15:37
aa50f92
Compare
Choose a tag to compare

Added

  • SetOffline() / SetOnline() methods to extend the functionality of offline mode with switching between modes runtime.

v7.7.0

09 Jan 16:38
a7a1407
Compare
Choose a tag to compare

Added

  • Offline configuration option to indicate whether the SDK is allowed to make HTTP calls or not. In 'offline' mode, the SDK works from the cache only.
  • Hooks configuration option that allows subscribing to OnConfigChanged / OnFlagEvaluated(EvaluationDetails) / OnError(String) events.
  • GetValueDetails() / GetAllValueDetails() methods to retrieve evaluation details of feature flags/settings. The details include:
    • Value: The evaluated feature flag's value.
    • Key: The evaluated feature flag's key.
    • User: The user used for evaluation.
    • VariationId: The diagnostic ID of the targeting, percentage, or default rule the evaluation was based on.
    • IsDefaultValue: True when the default value passed to GetValue() or GetValueDetails() is returned.
    • Error: The error when the evaluation fails otherwise, nil.
    • FetchTime: The time when the last config was fetched.
    • MatchedEvaluationRule: If the evaluation was based on a targeting rule, this field contains that specific rule.
    • MatchedEvaluationPercentageRule: If the evaluation was based on a percentage rule, this field contains that specific rule.

Changed

  • GetVariationID() / GetAllVariationIDs() methods became deprecated in favor of GetValueDetails() / GetAllValueDetails().

v7.6.0

12 Jul 09:28
Compare
Choose a tag to compare
  • Contents of #55 (Expose FetchTime() on Snapshot)

v7.5.1

17 Jun 17:40
Compare
Choose a tag to compare
  • Contents of #54