v9.2.0
New features and improvements:
- Add methods ("snapshot API") which make it possible to synchronously evaluate feature flags/settings without block waiting for potential underlying I/O operations. At the same time, deprecate synchronous methods that may involve block waiting. (#81)
- Add a parameter named
CacheState
to the event args of theClientReady
event, by means of which consumers can get information about the initialization state of the client. - Define error codes (
EvaluationErrorCode
,RefreshErrorCode
) and expose them (EvaluationDetails.ErrorCode
,RefreshResult.ErrorCode
) to consumers so they can reliably identify the error type without resorting to guess it by checking the error message. (#86) - Introduce a new hook named
ConfigFetched
which can be used to observe config fetching-related errors even when refreshing is done by the SDK. - Add the missing
GetKeyAndValue
/GetKeyAndValueAsync
method to improve consistency with other SDKs. (#91)
Bug fixes:
- Make subscription to hook events thread-safe.