0.2.26 • Published 1 year ago
@belvo/belvo-configcat-client v0.2.26
configcat-client-wrapper
Install package
npm install @belvo/belvo-configcat-client
Import
import FeatureFlagClient from '@belvo/belvo-configcat-client'
How to use it
Auto Poll (120s)
FLAG_LIST = [{ name: 'flagKeyName', user: {}}]
const config = { featureFlags: FLAG_LIST, emittedEventName: 'onFeatureFlagValueChanged', configCatApiKey }
const featureFlag = FeatureFlagClient(config)
featureFlag.client.handler.on('onFeatureFlagValueChanged', onValueChanged)
Manual Poll
const config = {
apiKey,
mode: 'manual_poll'
}
const featureFlagClient = new FeatureFlagClient(config)
await featureFlagClient.client.forceRefreshAsync()
this.featureFlagClient = featureFlagClient
Then when you want to fetch the value:
const featureFlagValue = await this.featureFlagClient.client.getValueAsync(featureFlag, false, userProps)
## :busts_in_silhouette: Contributing
If you wish to submit a pull request, please be sure check the items on this list:
- [ ] Tests related to the changed code were executed
- [ ] The source code has been coded following the OWASP security best practices (https://owasp.org/www-pdf-archive/OWASP_SCP_Quick_Reference_Guide_v2.pdf).
- [ ] Commit message properly labeled
- [ ] There is a ticket associated to each PR.
0.2.26
1 year ago
0.2.25
2 years ago
0.2.24
2 years ago
0.2.23
2 years ago
0.2.22
2 years ago
0.2.21
2 years ago
0.2.20
2 years ago
0.2.19
2 years ago
0.2.18
3 years ago
0.2.17
3 years ago
0.2.16
3 years ago
0.2.15
3 years ago
0.2.14
3 years ago
0.2.13
3 years ago
0.2.12
3 years ago
0.2.11
3 years ago
0.2.10
3 years ago
0.2.7
3 years ago
0.2.6
3 years ago
0.2.9
3 years ago
0.2.8
3 years ago
0.2.5
3 years ago
0.2.4
3 years ago
0.2.3
3 years ago
0.2.1
3 years ago
0.2.0
3 years ago
0.2.2
3 years ago
0.1.0
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago
0.1.5
3 years ago
0.0.29
3 years ago
0.0.27
3 years ago
0.0.28
3 years ago
0.0.26
3 years ago
0.0.25
3 years ago
0.0.24
3 years ago
0.0.23
3 years ago
0.0.22
3 years ago
0.0.21
3 years ago
0.0.20
3 years ago
0.0.19
3 years ago
0.0.18
3 years ago
0.0.17
3 years ago
0.0.15
3 years ago
0.0.16
3 years ago
0.0.13
3 years ago
0.0.14
3 years ago
0.0.10
3 years ago
0.0.11
3 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.6
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.1
3 years ago