flagsmith-nodejs-client
flagsmith-nodejs-client copied to clipboard
Flagsmith Node JS Client. Flagsmith lets you manage features flags across web, mobile and server side applications. Get builds out faster. Control who has access to new features.
Minimal reproduction example: ```js import Flagsmith from "flagsmith-nodejs" const flagsmith = new Flagsmith({ environmentKey: process.env.FLAGSMITH_SERVER_ENVIRONMENT_KEY, enableLocalEvaluation: true, }); const { flags } = await flagsmith.getIdentityFlags("foo", { my_trait: null }) console.log(flags)...
When using local evaluation mode, the environment document is immediately fetched twice on when `Flagsmith` is instantiated. This can be observed by spinning up a dummy HTTP server: ``` python...
- ~rm whitespace~ - ~rm superfluous updateEnvironment(); this was called 2x in local evaluation mode startup. Let the polling manager make the first call.~ - add `getIdentityFlagsSync()`; expects local evaluation...
### How are you running Flagsmith - [X] Self Hosted with Docker - [ ] Self Hosted with Kubernetes - [ ] Self Hosted at flagsmith.com - [ ] Some...
Once the fetch request completes, it is no longer necessary to wait for the timeout. Cancel it to clear the async stack This is specifically an issue when using this...
We've started seeing an issue where number values like this one are being returned as type `string` when `enableLocalEvaluation` is set to `true`.  Using...
Both of the following snippets will log out undefined and attempting to instantiate a `DefaultFlag` object will throw an error, meaning that it's not possible to use the `DefaultFlag` constructor...
Closes https://github.com/Flagsmith/flagsmith-nodejs-client/issues/156
Add a transient Boolean? Property to the Trait Model, and send it the `getIdentityFlags` Or/And In the `getIdentityFlags` send a new transientTrait list to add values according to the updated...
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3. Commits 74b2db2 3.0.3 88f1429 update eslint. lint, fix unit tests. 415d660 Snyk js braces 6838727 (#40) 190510f fix tests, skip 1 test in test/braces.expand...