Releases: statsig-io/node-js-server-sdk
v5.9.0 - Provide checkGateWithoutServerFallback
Introduces a new API, checkGateWithoutServerFallback. It is a synchronous API for checking gates, but will not fall back to a network request to Statsig in the event the SDK is unable to evaluate the gate definition. It logs exposures just as the checkGate api
Full Changelog: v5.8.2...v5.9.0
v5.8.2 - Fix store sync timer reset
Fixed a bug with background syncing that caused unnecessary syncs when using longer sync intervals or data adapters
Full Changelog: v5.8.1...v5.8.2
v5.8.1 - Add Metadata to Diagnostics Logging
Additional internal diagnostics:
- Adding logging for
sdkRegion
when network request failure occurs. - Centralized diagnostics logic in
StatsigFetcher.post()
instead of wrapping each call site.
Full Changelog: v5.8.0...v5.8.1
v5.8.0 - Target app bootstrapping & expose additional Layer metadata
- Added SDK support for a product in development which will allow bootstrapping with a subset of config specs
- Expose groupName and allocatedExperimentName from getLayer
- Internal diagnostics changes
Full Changelog: v5.7.2...v5.8.0
v5.7.2 - Switch js-sha256 with sha.js
js-sha256 does not work in Vercel edge functions. Replacing with sha.js
Full Changelog: v5.7.1...v5.7.2
v5.7.1 - Use js-sha256 instead of node-forge
node-forge was bloating the SDK and is not longer required for the Vercel integration, since Vercel now supports Buffer APIs.
Switching to js-sha256 which is a smaller dependency.
What's Changed
- Update initial backoff by @kenny-statsig in #29
- Replace node-forge with js-sha256 by @MaxLeiter in #30
New Contributors
- @kenny-statsig made their first contribution in #29
- @MaxLeiter made their first contribution in #30
Full Changelog: v5.7.0...v5.7.1
v5.7.0 - Add getFeatureGate APIs
Adds ability to get additional information (group and rule id) about a gate check not just its boolean value.
v5.6.1 - Set first retry backoff for post logs to 1s
To be consistent with other SDKs, set the first retry backoff time to 1s (previously 10s)
v5.6.0 - Custom logger interface & Configurable retry & backoff
Introducing some more options to:
- Customize the output logger (replaces the default console stdout/stderr)
- Configure maximum number of retries & backoff logic for logging events
v5.5.0 - Adds config_sync Diagnostics
Diagnostics Details:
- Add more diagnostic logging for download_config_specs, get_id_list_sources and get_id_list.
- Add ability for download_config_specs to control the sampling rate of diagnostics.
Code Formatting:
- Format code using default setting from prettier
Optimizations:
- Add memoizing for computeUserHash
- Add initialization options to the SDK to control whether to load IP3Country and ID Lists