Releases: statsig-io/react-sdk
v1.32.0 - Adds Ability to Block All Logging to Statsig
StatsigOptions.disableAllLogging
To help with GDPR flows, you can now initialize with StatsigOptions.disableAllLogging. This will prevent any events being sent to Statsig.
Later, once consent has been given, you can enable logging via Statsig.reenableAllLogging.
Events made while logging is disabled are lost.
App Metrics
Adds new app metrics app_metrics::scroll_depth
and app_metrics::time_on_page_ms
Included In This Release
- 2e04f01 Daniel
- Add options to disable all logging (#147)
Full Changelog: v1.31.1...v1.32.0
v1.31.1 - Fix Statsig re-initialize
shutdownOnUnmount
was shutting down Statsig but not allowing it to re-initialize properly. initCompletionCallback
should now be triggered on re-mount
Updated statsig-js to 4.41.0
Included In This Release
Full Changelog: v1.31.0...v1.31.1
v1.31.0 - Update to Use Latest JS SDK
Updates to use the latest version of the js sdk which includes support for initialize deltas
Updated statsig-js to 4.40.2
Included In This Release
Full Changelog: v1.30.3...v1.31.0
v1.30.3 - Propagate js-client 4.39.1
Bumps the statsig js-client SDK to 4.39.1. All changes from js-client 4.36 to 4.39.1 apply: https://github.com/statsig-io/js-client/releases.
Full Changelog: v1.30.2...v1.30.3
v1.30.1 - BugFix: waitForCache was preventing remounts
Bug Description:
If waitForCache is set to true, and a remount occurs, isCacheLoaded is never set to true, resulting in rendering being blocked.
Fix:
Network init now over rules cache init and isCacheLoaded is now set to true during remounts.
Full Changelog: v1.30.0...v1.30.1
v1.30.0 - getCurrentUser and updateUserWithValues
Expose 2 new API from statsig-js
getCurrentUser
updateUserWithValues
Full Changelog: v1.29.0...v1.30.0
v1.29.0 - Adds support for 'waitForCache'
Adds StatsigProvider.waitForCache
- This acts as a mid point between waitForInitializaiton=false and waitForInitialization=true
- Can be useful if you don't want to wait for update to date values, but do want to wait for some (possibly outdated) cache values.
Full Changelog: v1.28.0...v1.29.0
v1.28.0 - Adds more diagnostics monitoring, hashing
- Updates statsig-js dependency to 4.34.0
- Reduce initialize payload size by half by optimizing hashing algorithm used for config names.
- Adds linting
v1.27.3 - Add StatsigEnvironment to all PrefetchUser calls Latest
- Ensure that the StatsigEnvironment field is set on init calls with StatsigOptions.prefetchUser and when directly calling Statsig.prefetchUsers
v1.27.2 - ErrorBoundary around PrefetchUsers
As part of the networking refactor, we removed a top level catch handler which handled network timeouts. This was fine for initialize and updateUser, because they had catch handlers of their own, but now prefetch will handle it