Skip to content

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

Patched a vulnerability in useragent library

19 Oct 00:29
Compare
Choose a tag to compare

The "useragent" library used in the SDK has a vulnerability when the user agent string is too long (as the result of hacking attempt). This version patches it when the SDK uses the library.

Minor type declaration fix

18 Oct 19:26
f8fb567
Compare
Choose a tag to compare

Added a fix for environment type in the type declaration file index.d.ts

v4.5.3 - Backfill support for node v12+

13 Oct 19:38
Compare
Choose a tag to compare

The SDK now uses tsc to transpile the javascript and pollyfill the SDK to work with older versions of node.

v4.5.1 Allow undefined values to be set in user.custom and user.privateAttributes

24 Sep 04:07
b4684b1
Compare
Choose a tag to compare

Allows undefined values to be set in user.custom and user.privateAttributes. You cannot create gate conditions to target undefined values, and they are ignored at evaluation time. This is a quality of life typing change

Changes related to experiment exposures

20 Sep 23:58
b403e0a
Compare
Choose a tag to compare
  1. We have been calculating secondary exposures (exposures on dependent feature gates) in Statsig backend. With this release we are moving the logic to SDK evaluator so that it's more accurate and efficient.
  2. Changed ruleID to "disabled" when evaluating a disabled feature

Fix retry logic

18 Sep 01:34
472a929
Compare
Choose a tag to compare

Fixed a bug where we keep retrying forever on failed initialize network requests

Align evaluation behavior for string based operators

11 Sep 00:57
d91fded
Compare
Choose a tag to compare

We are aligning the behavior for all string based operators in this release so that we try to convert accidentally provided incorrect types to strings and evaluate instead of returning false by default.

New operators and improvements

09 Sep 01:11
Compare
Choose a tag to compare
  • Added support for "string contains none" operator.
  • Improved the logic to update evaluation rule sets so that it's less likely the rule sets stay stale for any extended period of time.
  • Moved exposure logging for "fetch from server" fallback case from SDK to statsig server

v4.4.0 - adding support for private user attributes

01 Sep 01:46
45f0279
Compare
Choose a tag to compare

We are adding support for private user attributes with this release. privateAttributes can be set on StatsigUser and any info set in it will only be used for evaluation/targeting purposes, and removed from any logs sent to Statsig server. See more info at https://docs.statsig.com/server/nodejsServerSDK#private-attributes

Improvements to certain condition evaluations

24 Jul 01:42
60d75d3
Compare
Choose a tag to compare
  • swapped out the user agent parser to a different one so that all of Statsig's server SDKs are using the same core regex to parse UA strings and will get the same results.
  • added support for string case sensitive comparisons