Skip to content

Releases: statsig-io/react-sdk

2.1.0 - Update to use v5.1.0 of js client

17 Jun 17:35
c1bc8a0
Compare
Choose a tag to compare
  • update to v5.1.0 of js client

Included In This Release

  • 27c63ee kat-statsig
    • bump js version (#185)

Full Changelog: 2.0.0...2.1.0

2.0.0 - Update to v5 of js client sdk

08 May 02:00
6b02276
Compare
Choose a tag to compare

Updates the react sdk to use version 5.0 of js sdk

Included In This Release

  • dfccd62 sroyal-statsig
    • Update JS SDK (#183)
  • 0129cd4 tore-statsig
    • chore: mark deprecation and migration path (#181)
  • 75f7ef7 tore-statsig
    • Delete pnpm-lock.yaml (#178)

Full Changelog: 1.38.1...2.0.0

1.38.1 - Bugfix - memoization in SynchronousProvider

02 Apr 23:09
3a0786b
Compare
Choose a tag to compare

We introduced a fix in 1.37.1 to memoize configs for the same update time. We cannot memoize on the config update time, because it is both 1) not set on server sdks when generating the initialize values, and 2) not an exhaustive memoization key. Instead, we stringify the initializeValues as the memoization key.

This update renames initValuesTime in the StatsigContext to force anyone relying on this field to update their implementation due to these problems.

Included In This Release

  • ed06b9e tore-statsig
    • bugfix: memoization in SynchronousProvider (#175)

Full Changelog: 1.38.0...1.38.1

[release] 1.38.0 - queue events prior to initialization on Statsig

01 Apr 23:23
Compare
Choose a tag to compare

Due to the order of effects, the effect to initialize Statsig was not actually called until child components rendered. This means that if you did not waitForInitialization or waitForCache, it would be possible to call methods on the Statsig class before it was initialized. Our gate/config/experiment and even event logging hooks were okay, because they consume the StatsigContext and guard on initialization being called.

This updates logevent to:

  1. not throw
  2. batch up to 20 events pre initialize (and then log them once the internal js sdk instance is ready to consume them). Note that it currently drops any additional events after 20 queued events.

Included In This Release

  • 4d21882 tore-statsig
    • Merge pull request #21 from statsig-io/1-37-1-pub (#173)
  • e33ba1e tore-statsig
    • bugfix: queue log events before initialization (#171)
  • 8b7c1a0 tore-statsig
    • chore: bump depedency versions (#172)

1.37.1 - bugfix: gate/config/experiment/layer result memoization

27 Mar 22:00
1900c99
Compare
Choose a tag to compare

Memoization logic on hooks was broken due to object parameters changing references on rerenders.

This was masking another issue in the StatsigSynchronousProvider where we did not memoize on a new version of config specs passed in to the StatsigSynchronousProvider. Because we weren't memoizing, the results were correct, but the performance was degraded in this case as well.

Performance of hooks via both providers should be improved as a result

Updated statsig-js to 4.51.0

Included In This Release

  • d4b655a tore-statsig
    • bugfix: memoize checks without creating new object references (#165)
  • e200034 tore-statsig
    • test: (tdd) add test to verify hooks memoize results (#167)
  • 528d6e4 tore-statsig
    • bugfix: memoize on config update time (#166)

Full Changelog: 1.37.0...1.37.1

1.37.0 - Add Support for Evaluation Callback Option

08 Mar 20:53
36247f1
Compare
Choose a tag to compare

Adds a field to options which allows a function to be specified that will be called whenever a config is checked

Updated statsig-js to 4.50.1

Included In This Release

  • 71ea87c sroyal-statsig
    • Evaluation Callback (#163)

Full Changelog: 1.36.0...1.37.0

1.36.0 - Adds useFeatureGate hook

29 Feb 19:00
875cc39
Compare
Choose a tag to compare

Also bumps internal js sdk dependency

Included In This Release

  • fcf8e63 tore-statsig
    • Add useFeatureGate hook (#160)
  • 5b3df85 tore-statsig
    • Update StatsigSynchronousProvider.tsx (#161)
  • 9dcd2a0 tore-statsig
    • Bump JS sdk dependency with rn app state change (#159)

Full Changelog: 1.35.0...1.36.0

1.35.0 - Support multi instance

02 Feb 19:08
6aa7d00
Compare
Choose a tag to compare

Using https://github.com/statsig-io/js-client/releases/tag/4.45.1

  • Supports multiple instances of the StatsigClient by caching including the sdk key
  • internal diagnostics updates

Included In This Release

  • 38ce204 sroyal-statsig
    • Use Exact JS SDK Version (#156)

Full Changelog: v1.34.0...1.35.0

v1.34.0 - Update to use latest JS SDK

14 Dec 21:35
2fb511f
Compare
Choose a tag to compare

Pulls in latest js sdk

Included In This Release

  • 14901b1 sroyal-statsig
    • Merge pull request #153 from statsig-io/bump-js-sdk-version
  • cfb1efd Stephen Royal
    • Bump JS SDK Version

Full Changelog: v1.33.0...v1.34.0

v1.33.0 - Expose StatsigOptions.gateEvaluationCallback

07 Dec 18:15
60a6df2
Compare
Choose a tag to compare
  • Exposes the GateEvaluationCallback from statsig-js to the statsig-react SDK
  • Fixes a race condition in the RN support where StableID might not have been loaded during an /initialize request

Updated statsig-js to 4.42.2

Included In This Release

  • 01f65f9 kenny-statsig
    • Merge pull request #151 from statsig-io/gate-eval-callback
  • 15c2f88 Kenny Yi
    • expose gate eval callback

Full Changelog: v1.32.0...v1.33.0