v2.0.0
We include changes in this release to allow users to consume their feature flag and experiments' variation values with type-safe functions returning either a bool, float64 or string.
Create feature flags and experiments on eppo.cloud.
Breaking API changes
New Functions
+ func (ec *EppoClient) GetBoolAssignment(subjectKey string, flagKey string, subjectAttributes dictionary) (bool, error)
+ func (ec *EppoClient) GetNumericAssignment(subjectKey string, flagKey string, subjectAttributes dictionary) (float64, error)
+ func (ec *EppoClient) GetStringAssignment(subjectKey string, flagKey string, subjectAttributes dictionary) (string, error)
+ func (ec *EppoClient) GetJSONAssignment(subjectKey string, flagKey string, subjectAttributes dictionary) (string, error)
Removed Functions
-func (ec *EppoClient) GetAssignment(subjectKey string, flagKey string, subjectAttributes dictionary) (string, error)
What's Changed
- fix lint failures; upgrade deprecate io/ioutils package (FF-820) by @leoromanovsky in #23
- add Get*Assignment methods with types (FF-757) by @leoromanovsky in #22
- rename module to v2 (FF-757) by @leoromanovsky in #24
Full Changelog: v1.2.1...v2.0.0