Skip to content

5.0.0

Choose a tag to compare

@z4kn4fein z4kn4fein released this 16 Oct 08:47
· 5 commits to main since this release
1711719

Added

  • The concept of Snapshots. They are for capturing the actual state of the feature flag data used by the SDK. A snapshot allows synchronous operations on the captured context.
    final snapshot = client.snapshot();
    final isMyFeatureEnabled = snapshot.getValue(key: 'isMyFeatureEnabled', defaultValue: false);
  • New onClientReadyWithSnapshot hook that gets a ConfigCatClientSnapshot parameter. It's called the same time when onClientReady is called.
  • New error codes (EvaluationErrorCode and RefreshErrorCode) on EvaluationDetails and RefreshResult.
  • When an external cache is configured, the SDK continues to sync with it in offline mode.