Releases: configcat/cpp-sdk
Releases · configcat/cpp-sdk
v2.0.0
Added
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.onReady()
/onConfigChanged()
/onFlagEvaluated()
/onError()
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()
on each evaluation.getAllValueDetails()
method
Changed
forceRefresh()
method now returns with a result object to indicate whether the refresh succeeded or not.- Fetch logic handles
403
response status and updates cachedfetch_time
in case of304
403
and404
response status. ConfigCatClient::get()
expects aconst ConfigCatOptions*
pointer instead ofconst ConfigCatOptions&
- In the
ConfigCatOptions
the following members changed:mode
topollingMode
: the polling mode for the client.cache
toconfigCache
: the custom cache implementation for the client.override
toflagOverrides
: Feature flag and setting overrides.
Removed
- Removed
getVariationId()
andgetAllVariationIds()
methods in favor ofgetValueDetails()
andgetAllValueDetails()
.