Skip to content

Releases: statsig-io/js-client

v4.37.2 - Patch sha256 library bug in some Chrome versions

28 Aug 02:56
02921de
Compare
Choose a tag to compare

v4.36.1 - Patch sha256 library bug in some Chrome versions

28 Aug 03:01
f4b550b
Compare
Choose a tag to compare

v4.35.1 - Patch sha256 library bug in some Chrome versions

28 Aug 03:08
068f51b
Compare
Choose a tag to compare

v4.34.1 - Patch sha256 library bug in some Chrome versions

28 Aug 03:14
09d5805
Compare
Choose a tag to compare

v4.33.7 - Patch sha256 library bug in some Chrome versions

28 Aug 18:58
Compare
Choose a tag to compare

v4.32.1 - Patch sha256 library bug in some Chrome versions

28 Aug 18:48
5132075
Compare
Choose a tag to compare

v4.29.1 - Patch sha256 library bug in some Chrome versions

28 Aug 18:27
14c25d8
Compare
Choose a tag to compare

v4.28.2 - Patch sha256 library bug in some Chrome versions

28 Aug 16:23
7d1f6c3
Compare
Choose a tag to compare

v4.39.0 - Sticky bucketing storage adapter

03 Aug 07:30
b76dab8
Compare
Choose a tag to compare
  • Added an option to provide a custom storage adapter for user-persisted values UserPersistentStorageInterface. So far, supports storing sticky experiments on user level

Warning

This is an experimental feature that may be subject to change.

Example usage

class UserPersistentStorageExample implements UserPersistentStorageInterface
{
  public store: Record<string, string>;
  public constructor() {
    this.store = {};
  }
  load(userID: string): string {
    return this.store[userID];
  }
  save(userID: string, data: string) {
    this.store[userID] = data;
  }
}
...
await Statsig.initialize(
  "client-sdk-key",
  { userID: "some_user_id" },
  { userPersistentStorage: new UserPersistentStorageExample() }
);

Full Changelog: v4.38.0...v4.39.0

v4.38.0 - Better SDK Diagnostics Logging

18 Jul 22:54
ae03db9
Compare
Choose a tag to compare
  • Internal diagnostics changes
    • Converting diagnostics API to a static instance.
    • Adding additional metadata fields such as sdkRegion, success, statusCode. Removing overloaded value field
    • Added network request retry diagnostics
  • Internal error_logging fixes
    • Content-Length has been removed from headers field

Full Changelog: v4.37.0...v4.38.0