Releases: statsig-io/node-js-server-sdk
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
v5.4.2 - Patch evaluation details timestamps
in v5.2.1 - v5.4.1 of the SDK, the initialize time and sync time in the evaluation details were swapped. This fixes that bug.
v5.4.1 - fix node-fetch import
Fixed an issue with importing node-fetch
. Should now support using statsig-node
when bundling with a JS transpiler (e.g. vercel ncc or esbuild with --external)
v5.4.1-beta.0 - ESBuild specific fix for 'node-fetch' import
DO NOT USE unless using esbuild with 'module' main field. (Special case where the mjs version of 'node-fetch' is forced)
This version switches to esm import syntax require('node-fetch).default
v5.4.0 - Better JS Import Support. Diagnostics Logging.
- Support imports when esModuleInterop is false in tsconfig (Fix for #21)
- Add statsig::diagnostics event for tracking init performance
v5.3.0 - Adds group name to experiments/dynamic configs
-
adds a group name and
getGroupName
to theDynamicConfig
returned fromgetExperiment
andgetConfig
calls for analytics -
updates evaluation for customIDs and environment conditions to be case insensitive for the key names (e.g.
customIDs: { testID: "123"}
is equivalent tocustomIDs: { testid: "123" }
)
v5.2.1 - export DynamicConfig and Layer classes
The DynamicConfig and Lyer types were exported, but you could not actually instantiate/use these classes for testing, as they were not a part of the module that got exported.
v5.2.0 - add APIs to get the list of experiments and feature gates
- added APIs to get the list of experiments and feature gates,
getExperimentList() / getFeatureGateList()
, both of which returns a list of names for the respective entity type; - the SDK now logs an internal error when attempting to get a value from
DynamicConfig
that's of the wrong type, e.g. if your parameter on the experiment is a number, but you are trying to get it as a string by providing a string typed value as the default value when callingget()
. This will be logged by the SDK and surfaced as a warning in Statsig console;
v5.0.0 - Better Typescript Support. Manual Exposure APIs
- Updates SDK structure to more easily support Typescript.
- Adds APIs for checking gates/experiments without logging exposures.
- Adds APIs for manually logging gate/experiment exposures.