Releases: configcat/dart-sdk
Releases · configcat/dart-sdk
2.2.1
2.2.0
2.1.0
2.0.2
2.0.1
2.0.0
Added
setDefaultUser(user)
/clearDefaultUser()
methods to set / remove a default user object used when there's no user passed togetValue()
/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 thehooks
property ofConfigCatClient
.getValueDetails()
method to retrieve evaluation details along with the feature flag / setting value. It returns the same details that is passed toonFlagEvaluated(EvaluationDetails)
on each evaluation.
Changed
- The static
close()
method was split to an instance levelclose()
method which closes the givenConfigCatClient
and to a staticcloseAll()
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 ofautoPoll
is compared against a cachedfetchTime
, which allows the SDK not necessarily download a newconfig.json
at each application restart.
Removed
- The
onConfigChanged()
hook parameter ofPollingModes.autoPoll()
. It was replaced by the newly introducedonConfigChanged(Map<string, Setting>)
hook function which is invoked with each polling mode.