Skip to content

Releases: statsig-io/node-js-server-sdk

v5.6.0 - Custom logger interface & Configurable retry & backoff

23 May 22:31
Compare
Choose a tag to compare

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

25 Apr 00:01
3c68734
Compare
Choose a tag to compare

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

08 Apr 17:48
2a4b19f
Compare
Choose a tag to compare

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

29 Mar 17:51
848069c
Compare
Choose a tag to compare

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

29 Mar 18:04
Compare
Choose a tag to compare

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.

29 Mar 17:51
Compare
Choose a tag to compare
  • 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

09 Feb 22:46
02d452e
Compare
Choose a tag to compare
  • adds a group name and getGroupName to the DynamicConfig returned from getExperiment and getConfig 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 to customIDs: { testid: "123" })

v5.2.1 - export DynamicConfig and Layer classes

31 Jan 00:22
eb0e1a0
Compare
Choose a tag to compare

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

24 Jan 02:11
7fe79d7
Compare
Choose a tag to compare
  • 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 calling get(). This will be logged by the SDK and surfaced as a warning in Statsig console;

v5.0.0 - Better Typescript Support. Manual Exposure APIs

29 Nov 23:05
Compare
Choose a tag to compare
  • 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.