flagsmith-nodejs
Advanced tools
Changelog
v6.0.1 - 2025-04-24
any
in models.ts by @phiggins in #180Full Changelog: https://github.com/Flagsmith/flagsmith-nodejs-client/compare/v6.0.0...v6.0.1
[Changes][v6.0.1]
<a id="v6.0.0"></a>
Changelog
v6.0.0 - 2025-03-24
Flagsmith.environment
was removed. Use getEnvironment
instead. This returns a Promise, and not a reference to the environment which could be uninitialised.onEnvironmentChange
handlers can now be invoked with an undefined
environment if an error occurred.Flagsmith
client now returns an error if initialised with local evaluation enabled but without a server-side SDK key. Previously, it would log an error and continue.requestRetryDelayMilliseconds
which controls how long the SDK will wait before retrying any failed HTTP requests. Previously, this was hard-coded to always be 1 second.getEnvironment
method which returns the SDK's current local environment state as a Promise.getIdentityFlags
now uses any provided default flag handler if it fails, instead of just returning an error.environmentRefreshInterval
to 0
now prevents any environment polling from happening.getIdentityFlags
would always fail with an error even if the environment was later fetched successfully (https://github.com/Flagsmith/flagsmith-nodejs-client/issues/177).Full Changelog: https://github.com/Flagsmith/flagsmith-nodejs-client/compare/v5.1.1...v6.0.0
[Changes][v6.0.0]
<a id="v5.1.1"></a>
Changelog
v5.1.1 - 2025-02-10
Full Changelog: https://github.com/Flagsmith/flagsmith-nodejs-client/compare/v5.1.0...v5.1.1
[Changes][v5.1.1]
<a id="v5.1.0"></a>
Changelog
v5.1.0 - 2025-01-20
The baseApiUrl
constructor argument of AnalyticsProcessor
is now deprecated. Instead, pass the full URL to the analytics endpoint using the analyticsUrl
parameter. This deprecation only affects you if you are manually managing analytics, rather than having the SDK do it for you using the enableAnalytics
option.
Full Changelog: https://github.com/Flagsmith/flagsmith-nodejs-client/compare/v5.0.1...v5.1.0
[Changes][v5.1.0]
<a id="v5.0.1"></a>
Changelog
v5.0.0 - 2024-11-28
The FlagsmithCache
interface has been simplified. In practice, this will not affect most users:
has
methodttl
parameter from set
set
return type to Promise<void>
get
return type to Promise<Flags | undefined>
FlagsmithCache
since 5.0.0: https://www.tsdocs.dev/docs/flagsmith-nodejs/5.0.0/interfaces/FlagsmithCache.html
FlagsmithCache
prior to 5.0.0: https://www.tsdocs.dev/docs/flagsmith-nodejs/4.0.0/interfaces/FlagsmithCache.html
Full Changelog: https://github.com/Flagsmith/flagsmith-nodejs-client/compare/v4.0.0...v5.0.0
[Changes][v5.0.0]
<a id="v4.0.0"></a>
Changelog
v4.0.0 - 2024-11-07
Node.js 18 or later is now required.
Flagsmith
is now a named export and not a default export. This only changes how you import the Flagsmith Node.js SDK and not how you use it.
In 3.x and earlier, Flagsmith
is the default export:
// ES modules
import Flagsmith from 'flagsmith-nodejs'
// CommonJS
const Flagsmith = require('flagsmith-nodejs')
In 4.x, you must use the named export:
// ES modules
import { Flagsmith } from 'flagsmith-nodejs'
// CommonJS
const { Flagsmith } = require('flagsmith-nodejs')
Full Changelog: https://github.com/Flagsmith/flagsmith-nodejs-client/compare/v3.3.3...v4.0.0
[Changes][v4.0.0]
<a id="v3.3.3"></a>
Changelog
v3.3.3 - 2024-07-12
Full Changelog: https://github.com/Flagsmith/flagsmith-nodejs-client/compare/v3.3.2...v3.3.3
[Changes][v3.3.3]
<a id="v3.3.2"></a>