Releases: Eppo-exp/golang-sdk
v4.0.0
What's Changed
This release fixes the order of parameters for Get<Type>Assignment
methods to bring it in line with other v3 SDKs.
- Before (v3):
GetStringAssignment(subjectKey string, flagKey string, subjectAttributes SubjectAttributes, defaultValue string)
- After (v4):
GetStringAssignment(flagKey string, subjectKey string, subjectAttributes SubjectAttributes, defaultValue string)
The first two parameters are swapped. These are both string
s, so your code will likely still compile. You must ensure that your code respects the new parameter order, otherwise your code will break.
Other than this change, there is no major change in functionality or scope compared to the v3.0.0 SDK or all other Eppo SDKs v3.x.x. This is released as a new major version because of the breaking change above.
Full Changelog: v3.0.0...v4.0.0
v3.0.0
What's Changed
- ufc readme update by @vpai in #38
- FF-1939 Update to UFC by @rasendubi in #41
- replace ApiKey with SdkKey (FF-2390) by @leoromanovsky in #43
New Contributors
Full Changelog: v2.1.4...v3.0.0
v2.1.4
What's Changed
- Small fixes and refactorings by @rasendubi in #40
New Contributors
- @rasendubi made their first contribution in #40
Full Changelog: v2.1.3...v2.1.4
v2.1.3
What's Changed
- Assignment timestamp in RFC 3339 format. (FF-2082) by @leoromanovsky in #39
Full Changelog: v2.1.2...v2.1.3
v2.1.2
What's Changed
- Remove usage of log.Fatal from httpclient.go; return an error object instead (FF-1934) by @leoromanovsky in #36
Full Changelog: v2.1.1...v2.1.2
v2.1.1
What's Changed
- allow subject attributes to be string wrapper numerics; attempt to safely coerce by @leoromanovsky in #35
Full Changelog: v2.1.0...v2.1.1
v2.0.3
What's Changed
- add stub makefile commands for memory profiling by @leoromanovsky in #33
- Perform memory profiling and comparison benchmarking for pull requests (FF-1563) by @leoromanovsky in #32
- avoid extra json marshal when loading configuration from cache (FF-1564) by @leoromanovsky in #31
Full Changelog: v2.0.2...v2.0.3
v2.0.2
What's Changed
- Correcting error in client initialisation. by @njflynn in #29
- Use mock assignment logger and verify it is being called (FF-1450) by @leoromanovsky in #30
New Contributors
Full Changelog: v2.0.1...v2.0.2
v2.0.1
What's Changed
- add GetAssignment method back for backwards compatibility by @leoromanovsky in #25
- bug: fix json variation value handling by @leoromanovsky in #26
- augment assignment logging Experiment key with allocation key (FF-848) by @leoromanovsky in #27
- Add marshaling and unmarshaling of Value struct (FF-1382) by @leoromanovsky in #28
Full Changelog: v2.0.0...v2.0.1
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