Skip to content

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

v5.12.1 - Disables log_event compression

14 Dec 22:25
0634f36
Compare
Choose a tag to compare

A bug was discovered where log_event compression does not work in Cloudflare workers. Disabling the compression while a fix is created.

Bug was introduced in v5.12.0

v5.13.1 - Small validation and error logging fixes

06 Dec 23:00
a5076f3
Compare
Choose a tag to compare

Fix issue where we were logging an error when there was none.

Add validation that sdk key provided is the one that generated initialize response

Included In This Release

  • 4429196 Stephen Royal
    • Don't Throw Sync Error if Sync Disabled
  • 4b2e612 Daniel
    • Use nodeFetch.default when available (#377)
  • a8737de sroyal-statsig
    • Merge pull request #372 from statsig-io/verify-sdk-key
  • 63f63a9 Stephen Royal
    • Verify SDK Key

Full Changelog: v5.13.0...v5.13.1

v5.13.0 - Manual sync API & bug fixes

01 Dec 01:18
Compare
Choose a tag to compare

New Options:

  • disableRulesetsSync - disables background syncing of rulesets
  • disableIdListsSync - disables background syncing of id lists

New API:

  • syncConfigSpecs - manually syncs rulesets (bypasses the disableRulesetsSync setting)
  • syncIdLists - manually syncs id lists (bypasses the disableIdListsSync setting)

Bug fixes:

  • Allow evaluations on large user objects. Previously would truncate the user before evaluating.
  • Fixed a bug that prevented the api StatsigOption from applying to /download_config_specs network calls unless apiForDownloadConfigSpecs was also set.
  • Fixed hash option in getClientInitializeResponse to also apply for dynamic configs and layers

Included In This Release

  • 5c732d6 Kenny Yi
    • allow api to override dcs
  • 9116fdb Kenny Yi
    • remove user truncation for evaluations
  • 58ab4e4 tore-statsig
    • Add hash_used field to client initialize response (#375)
  • bb774e6 Kenny Yi
    • apply getClientInitializeResponse hash option to configs & layers
  • dc32057 Kenny Yi
    • manual sync api
  • 01d587e Daniel
    • Remove Promise.allSettled (#369)

Full Changelog: v5.12.0...v5.13.0

v5.12.0 - Timeout on flush, log event compression, getClientInitializeResponse options

22 Nov 00:27
Compare
Choose a tag to compare
  • Add an optional timeout on flush, shutdown, and shutdownAsync API
  • Group names default to null instead of empty string
  • Print name of config when non-existent
  • Compress log event body
  • Add additional options to getClientInitializeResponse to disable hash and include local overrides

Included In This Release

  • c477cea Kenny Yi
    • disableHash & includeLocalOverrides in clientInitializeResponse
  • be7c0d5 vijaye-statsig
    • Adding compression to logEvent (#361)
  • 8b4900e Kenny Yi
    • print name of nonexistent gate/config
  • 5f314ce Kenny Yi
    • add timeout to flush
  • e499484 Kenny Yi
    • handle null group name
  • c92a14e Kenny Yi
    • remove warning for idlist init from data adapter
  • a2f5c02 Kenny Yi
    • export adapter key enum
  • df61d0c sroyal-statsig
    • Merge pull request #355 from statsig-io/shutodwn-abort-signal
  • f0cde4e sroyal-statsig
    • update
  • ee04f77 sroyal-statsig
    • Merge pull request #354 from statsig-io/hashed-client-sdk-keys
  • d610be8 sroyal-statsig
    • update
  • 02397ec sroyal-statsig
    • Merge branch 'main' into shutodwn-abort-signal
  • 32b5b32 sroyal-statsig
    • Shutdown Abort Signal
  • a5ccc7f sroyal-statsig
    • Use Hashed Client SDK Keys

Full Changelog: v5.11.0...v5.12.0

v5.11.0 - shutdownAsync, log levels, new DCS

17 Oct 18:25
Compare
Choose a tag to compare

New features:

  • Add log levels to output logger interface
  • Add new shutdownAsync API for safe shutdown of async jobs running in the background.

Internal changes:

  • Replace url for download_config_specs

Bug fixes:

  • When using localMode, disable validation on SDK secret key

Full Changelog: v5.10.0...v5.11.0

v5.10.0 - Adds Synchronous Check APIs

29 Sep 20:41
9d27e63
Compare
Choose a tag to compare
  • Adds checkGateSync / getExperimentSync. Providing the ability to check configurations synchronously, without promises.

  • Adds a user hash to getClientInitializeResponse. This will allow client SDKs to better validate bootstrapped values.

Full Changelog: v5.9.3...v5.10.0

v5.9.3 - Fix retry in non-native JS environments

14 Sep 17:29
Compare
Choose a tag to compare

Network retry uses Timeout.unref which is undefined in Edge Runtime or other Node environments without native JS functions. Fix by adding a condition to check if the function is defined before calling.

Full Changelog: v5.9.2...v5.9.3

v5.9.2 - Diagnostics Update

08 Sep 23:19
4788f8c
Compare
Choose a tag to compare
  • Include extra metadata about network failures
  • Fixes for Multi Pass Gate Condition (currently unreleased)

Full Changelog: v5.9.1...v5.9.2

v5.9.1 - BUG FIX - patch bug that caused increase in outbound connections to statsig

28 Aug 23:39
67b1593
Compare
Choose a tag to compare
  • Patches a bug where the sdk failing to fetch config specs or id lists from the network could cause every gate or experiment check to spawn a (non blocking) network request to statsig servers to force sync.

This bug was introduced in 5.8.2 and patched in 5.9.1 and 5.8.3

  • Also patches a bug where network errors were printed in local mode and adds support for the multi pass and fail gate operator

Full Changelog: v5.9.0...v5.9.1

v5.8.3 - BUG FIX - patch bug that caused increase in outbound connections to statsig

29 Aug 00:01
8ef6c16
Compare
Choose a tag to compare

Patches a bug where the sdk failing to fetch config specs or id lists from the network could cause every gate or experiment check to spawn a (non blocking) network request to statsig servers to force sync.

This bug was introduced in 5.8.2