Releases: statsig-io/go-sdk
First major release with changes to types and API interfaces
We are finally releasing the first major version of our Go SDK for server side multi-user usage! Comparing to the previous versions (v0+), this release has the below changes:
- We've removed the
types
package. Now the only package you need to import isstatsig
. - Here is a list of type names changes:
types.StatsigUser
->User
types.DynamicConfig
->DynamicConfig
types.StatsigEvent
->Event
types.StatsigOptions
->Options
types.StatsigEnvironment
->Environment
- Fixed a bug where the default value was being returned for dynamic config and experiments in correctly when a user passes a rule but fails due to rollout %.
- Added more E2E tests to make sure exposures and secondary exposures are logged correctly and consistently across SDKs and Statsig backend.
More e2e tests and bug fixes
Added E2E tests to make sure exposures and secondary exposures are logged correctly and consistently across SDK and statsig backend.
Fixed a bug where the default value is being returned for dynamic config and experiments.
Changes to package structure and type names
We are restructuring the package to consolidate imports and making type names more concise with this major release. Here is the list of all changes:
- We've removed the
types
package. Now the only package you need to import isstatsig
. - Here is a list of type names changes:
types.StatsigUser
->User
types.DynamicConfig
->DynamicConfig
types.StatsigEvent
->Event
types.StatsigOptions
->Options
types.StatsigEnvironment
->Environment
Special thanks to @stevvooe for the suggestions and contributions to our SDK!
Align evaluation behavior for string based operators
We are aligning the behavior for all string based operators in this release so that we try to convert accidentally provided incorrect types to strings and evaluate instead of returning false by default.
Fix SDK version number in events
SDK version in logs were outdated and this release fixes that.
Adding support for a new operator
Added support for "string contains none" operator.
Moved exposure logging for "fetch from server" fallback case from SDK to statsig server
v0.3.0 - adding support for private user attributes
We are adding support for private user attributes with this release. privateAttributes
can be set on StatsigUser and any info set in it will only be used for evaluation/targeting purposes, and removed from any logs sent to Statsig server. See more info at https://docs.statsig.com/server/golangSDK#private-attributes
Also fixed a bug where shutdown
API did not flush events synchronously.