Skip to content

Releases: statsig-io/go-sdk

First major release with changes to types and API interfaces

22 Sep 01:48
9310ee8
Compare
Choose a tag to compare

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:

  1. We've removed the types package. Now the only package you need to import is statsig.
  2. Here is a list of type names changes:
  • types.StatsigUser -> User
  • types.DynamicConfig -> DynamicConfig
  • types.StatsigEvent -> Event
  • types.StatsigOptions -> Options
  • types.StatsigEnvironment -> Environment
  1. 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 %.
  2. 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

20 Sep 22:59
da616d2
Compare
Choose a tag to compare

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

17 Sep 23:26
cf83982
Compare
Choose a tag to compare

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:

  1. We've removed the types package. Now the only package you need to import is statsig.
  2. 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

11 Sep 00:47
aaa6b1f
Compare
Choose a tag to compare

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

09 Sep 00:49
0c95820
Compare
Choose a tag to compare

SDK version in logs were outdated and this release fixes that.

Adding support for a new operator

08 Sep 22:55
b43057e
Compare
Choose a tag to compare

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

01 Sep 01:07
3dc18f0
Compare
Choose a tag to compare

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.