Skip to content

Latest commit

 

History

History
641 lines (381 loc) · 37.1 KB

File metadata and controls

641 lines (381 loc) · 37.1 KB

Changelog

8.0.2 (2026-03-19)

Bug Fixes

  • Missing variants in feature engine context (#257) (7e191b8)

Other

8.0.1 (2026-03-16)

Bug Fixes

  • unwrap TraitConfig values in local evaluation before segment matching (#252) (4e37994)

8.0.0 (2026-02-25)

⚠ BREAKING CHANGES

  • remove node18 support and update pino (#220)

Bug Fixes

  • CVE-2026-1615: Replace jsonpath with jsonpath-plus to fix security vulnerability (#247) (56a285c)

Dependency Updates

  • remove node18 support and update pino (#220) (a246c06)

Other

  • Remove amannn/action-semantic-pull-request workflow (#243) (980728a)

7.0.3 (2026-01-21)

Dependency Updates

7.0.2 (2025-12-02)

CI

7.0.1 (2025-12-02)

CI

7.0.0 (2025-12-02)

⚠ BREAKING CHANGES

  • implement context values (#203)

Features

Bug Fixes

CI

6.2.0 (2025-11-04)

Features

Bug Fixes

  • handle environment documentation pagination (#205) (a83d3a5)

CI

Docs

Other

v6.1.0 - 2025-06-18

What's Changed

  • Bump undici from 6.21.1 to 6.21.2 by @dependabot in #184
  • feat: Export FeatureModel to enable custom offline handler by @phiggins in #187
  • Update test running instructions in README and other housekeeping by @phiggins in #186
  • Bump vite from 5.4.18 to 5.4.19 by @dependabot in #185
  • feat: Export BaseFlag, FlagsmithConfig, FlagsmithValue, TraitConfig types by @rolodato in #188

Full Changelog: https://github.com/Flagsmith/flagsmith-nodejs-client/compare/v6.0.1...v6.1.0

Changes

v6.0.1 - 2025-04-24

What's Changed

New Contributors

Full Changelog: https://github.com/Flagsmith/flagsmith-nodejs-client/compare/v6.0.0...v6.0.1

Changes

v6.0.0 - 2025-03-24

What's Changed

BREAKING CHANGES

  • 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.
  • The 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.

New features

  • Added a new 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.
  • Added a getEnvironment method which returns the SDK's current local environment state as a Promise.

Bug fixes

  • getIdentityFlags now uses any provided default flag handler if it fails, instead of just returning an error.
  • Setting environmentRefreshInterval to 0 now prevents any environment polling from happening.
  • Fixed a bug where if the SDK initially failed to fetch the environment document, then getIdentityFlags would always fail with an error even if the environment was later fetched successfully (#177).

Full Changelog: https://github.com/Flagsmith/flagsmith-nodejs-client/compare/v5.1.1...v6.0.0

Changes

v5.1.1 - 2025-02-10

What's Changed

Full Changelog: https://github.com/Flagsmith/flagsmith-nodejs-client/compare/v5.1.0...v5.1.1

Changes

v5.1.0 - 2025-01-20

What's Changed

  • feat: Allow configuring analytics API endpoint separate from flags API by @rolodato in #168
  • ci: Run tests on currently maintained Node LTS versions by @rolodato in #169

Deprecated

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.0.1 - 2025-01-14

What's Changed

  • fix: Return 0 as number flag value instead of undefined by @rolodato in #167

Full Changelog: https://github.com/Flagsmith/flagsmith-nodejs-client/compare/v5.0.0...v5.0.1

Changes

v5.0.0 - 2024-11-28

What's Changed

BREAKING CHANGES

The FlagsmithCache interface has been simplified. In practice, this will not affect most users:

  • Removed has method
  • Removed ttl parameter from set
  • Changed set return type to Promise<void>
  • Changed 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

v4.0.0 - 2024-11-07

What's Changed

  • feat: Support transient identities and traits by @novakzaballa in #158
  • feat!: Custom fetch support, remove node-fetch, ESM+CJS dual build, migrate to vitest, TS fixes, test improvements by @rolodato in #162
  • feat!: Remove all uses of CJS, add named Flagsmith export by @rolodato in #163

BREAKING CHANGES

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

v3.3.3 - 2024-07-12

What's Changed

New Contributors

Full Changelog: https://github.com/Flagsmith/flagsmith-nodejs-client/compare/v3.3.2...v3.3.3

Changes

v3.3.2 - 2024-05-23

What's Changed

Full Changelog: https://github.com/Flagsmith/flagsmith-nodejs-client/compare/v3.3.1...v3.3.2

Changes

v3.3.1 - 2024-05-08

What's Changed

New Contributors

Full Changelog: https://github.com/Flagsmith/flagsmith-nodejs-client/compare/v3.3.0...v3.3.1

Changes

What's Changed

New Contributors

Full Changelog: https://github.com/Flagsmith/flagsmith-nodejs-client/compare/v3.2.0...v3.3.0

Changes

What's Changed

Full Changelog: https://github.com/Flagsmith/flagsmith-nodejs-client/compare/v3.1.1...v3.2.0

Changes

What's Changed

Full Changelog: https://github.com/Flagsmith/flagsmith-nodejs-client/compare/v3.1.0...v3.1.1

Changes

What's Changed

New Contributors

Full Changelog: https://github.com/Flagsmith/flagsmith-nodejs-client/compare/v3.0.1...v3.1.0

Changes

What's Changed

Full Changelog: https://github.com/Flagsmith/flagsmith-nodejs-client/compare/v3.0.0...v3.0.1

Changes

What's Changed

  • BREAKING CHANGE: Ensure percentage split evaluations are consistent by @matthewelwell in #119

WARNING: We modified the local evaluation behaviour. You may see different flags returned to identities attributed to your percentage split-based segments after upgrading to this version.

Full Changelog: https://github.com/Flagsmith/flagsmith-nodejs-client/compare/v2.5.2...v3.0.0

Changes

What's Changed

Full Changelog: https://github.com/Flagsmith/flagsmith-nodejs-client/compare/v2.5.1...v2.5.2

Changes

What's Changed

Full Changelog: https://github.com/Flagsmith/flagsmith-nodejs-client/compare/v2.5.0...v2.5.1

Changes

What's Changed

  • Bump json5 from 2.1.0 to 2.2.3 in /examples/caching by @dependabot in #100
  • Bump json5 from 2.1.0 to 2.2.3 in /examples/local-evaluation by @dependabot in #99
  • Bump json5 from 2.1.0 to 2.2.3 in /examples/custom-fetch-agent by @dependabot in #98
  • Bump json5 from 2.1.0 to 2.2.3 in /examples/api-proxy by @dependabot in #97
  • Bump json5 from 2.1.0 to 2.2.3 in /examples/basic by @dependabot in #96
  • Bump minimatch from 3.0.4 to 3.1.2 in /examples/basic by @dependabot in #91
  • Bump decode-uri-component from 0.2.0 to 0.2.2 in /examples/basic by @dependabot in #90
  • Bump decode-uri-component from 0.2.0 to 0.2.2 in /examples/api-proxy by @dependabot in #89
  • Bump minimatch from 3.0.4 to 3.1.2 in /examples/api-proxy by @dependabot in #88
  • Swallow errors arising from fetch in analytics by @matthewelwell in #95
  • Release/2.5.0 by @matthewelwell in #84

Full Changelog: https://github.com/Flagsmith/flagsmith-nodejs-client/compare/v2.4.1...v2.5.0

Changes

What's Changed

Full Changelog: https://github.com/Flagsmith/flagsmith-nodejs-client/compare/v2.4.0...v2.4.1

Changes

What's Changed

  • Bump glob-parent and @babel/cli in /examples/local-evaluation by @dependabot in #67
  • Bump ajv from 6.10.2 to 6.12.6 in /examples/local-evaluation by @dependabot in #69
  • Bump ansi-regex from 3.0.0 to 3.0.1 in /examples/local-evaluation by @dependabot in #68
  • Bump glob-parent and @babel/cli in /examples/custom-fetch-agent by @dependabot in #70
  • Bump ajv from 6.10.2 to 6.12.6 in /examples/custom-fetch-agent by @dependabot in #73
  • Bump browserslist from 4.6.6 to 4.21.3 in /examples/custom-fetch-agent by @dependabot in #72
  • Bump ansi-regex from 3.0.0 to 3.0.1 in /examples/custom-fetch-agent by @dependabot in #71
  • Feature/403/modulo segment operators by @EdsnLoor in #76
  • Feature/1145/is set is not set segment operators by @EdsnLoor in #75
  • Bump glob-parent and @babel/cli in /examples/caching by @dependabot in #74
  • Release 2.4.0 by @matthewelwell in #77

New Contributors

Full Changelog: https://github.com/Flagsmith/flagsmith-nodejs-client/compare/v2.3.0...v2.4.0

Changes

Allows people to supply a custom agent when initialising Flagsmith, allowing for

Exports Flagsmith constructor arguments as a type.

Adds a few examples concentrating on common use cases.

Closes #29, #20

Changes

Closes #42 - you can now import Flagsmith as such

import Flagsmith, {...types} from 'flagsmith-nodejs'

Changes

What's Changed

Full Changelog: https://github.com/Flagsmith/flagsmith-nodejs-client/compare/2.0.3...v2.0.4

Changes

2.0.3 - 2022-07-11

Closes #43

Changes

What's Changed

New Contributors

Full Changelog: https://github.com/Flagsmith/flagsmith-nodejs-client/commits/v2.0.0

Changes