v4.0.0
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: v3.3.3...v4.0.0