Skip to content

Releases: configcat/dart-sdk

2.2.1

17 Oct 17:54
Compare
Choose a tag to compare

Fixed

  • Prevent auto-poll from starting when the SDK is initialized in offline mode.

2.2.0

13 Oct 10:33
Compare
Choose a tag to compare

Added

  • Allow offline SDK initialization with an offline configuration option.

2.1.0

29 Sep 20:46
Compare
Choose a tag to compare

Changed

  • RolloutPercentageItem -> PercentageRule

Fixed

  • Set the user field of EvaluationDetails in case of errors.

2.0.2

28 Sep 09:34
Compare
Choose a tag to compare

Fixed

  • Hanging due to non-cancelled Future.delayed.

2.0.1

27 Sep 14:27
Compare
Choose a tag to compare

Fixed

  • Static analyzer warnings.

2.0.0

27 Sep 14:00
210a517
Compare
Choose a tag to compare

Added

  • setDefaultUser(user) / clearDefaultUser() methods to set / remove a default user object used when there's no user passed to getValue() / getValueDetails() / getAllValues() / getAllVariationIds() methods.
  • setOffline() / setOnline() methods to indicate whether the SDK is allowed to make HTTP calls or not. In 'offline' mode the SDK works from the cache only.
  • onClientReady() / onConfigChanged(Map<string, Setting>) / onFlagEvaluated(EvaluationDetails) / onError(String) hooks. Subscription is possible on client initialization options and on the hooks property of ConfigCatClient.
  • getValueDetails() method to retrieve evaluation details along with the feature flag / setting value. It returns the same details that is passed to onFlagEvaluated(EvaluationDetails) on each evaluation.

Changed

  • The static close() method was split to an instance level close() method which closes the given ConfigCatClient and to a static closeAll() method which closes all instantiated client instances.
  • The forceRefresh() method now returns with a result object that indicates whether the refresh succeeded or not.
  • The TTL of lazyLoad and interval of autoPoll is compared against a cached fetchTime, which allows the SDK not necessarily download a new config.json at each application restart.

Removed

  • The onConfigChanged() hook parameter of PollingModes.autoPoll(). It was replaced by the newly introduced onConfigChanged(Map<string, Setting>) hook function which is invoked with each polling mode.

1.1.0

16 Aug 19:32
Compare
Choose a tag to compare

Changed

  • Replaced the refresh policies construction with a single config service that takes care of the different polling mechanisms, caching, and the synchronization of HTTP requests.

1.0.2

09 Aug 10:34
Compare
Choose a tag to compare

Fixed

  • Send the correct SDK version in HTTP header.

1.0.1

04 Aug 12:00
Compare
Choose a tag to compare

Fixed

  • When the dataGovernance parameter wasn't in match with the remote setting, it could have happened that the fetcher downloaded the correct config.json multiple times.

1.0.0

24 Jan 13:50
Compare
Choose a tag to compare
  • First official release.