Skip to content

v2.0.0

Compare
Choose a tag to compare
@kp-cat kp-cat released this 13 Mar 12:30
· 25 commits to main since this release
76c7ad7

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 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() 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 cached fetch_time in case of 304 403 and 404 response status.
  • ConfigCatClient::get() expects a const ConfigCatOptions* pointer instead of const ConfigCatOptions&
  • In the ConfigCatOptions the following members changed:
    • mode to pollingMode: the polling mode for the client.
    • cache to configCache: the custom cache implementation for the client.
    • override to flagOverrides: Feature flag and setting overrides.

Removed

  • Removed getVariationId() and getAllVariationIds() methods in favor of getValueDetails() and getAllValueDetails().