Releases: statsig-io/node-js-server-sdk
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.
v4.20.1 - patches crash with logging flush interval
v4.20.0 - Adds support for ID list bootstrapping/persistence via DataAdapter
Also includes bug fixes for:
- running in a non-node.js environment (unref calls are not supported in browser/edge environments)
- using numberic operators on string values
v4.19.1 - Layer exposure bug fix
A bug was identified where holdouts were not being applied to certain Layer exposures. This is fixed in v4.19.1
v4.19.0 - Adds evaluation details and resets sync timer
Checks if the sync timer has stopped and attempts to reset it.
Also adds evaluation details which will be used to surface the time the config definitions were synced and other debugging information