0.3.6 • Published 1 year ago

@belvo/belvo-configcat-client v0.3.6

Weekly downloads
486
License
ISC
Repository
github
Last release
1 year ago

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.3.0

1 year ago

0.3.6

1 year ago

0.3.5

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.3.4

1 year ago

0.3.3

1 year ago

0.2.26

3 years ago

0.2.25

3 years ago

0.2.24

3 years ago

0.2.23

3 years ago

0.2.22

3 years ago

0.2.21

4 years ago

0.2.20

4 years ago

0.2.19

4 years ago

0.2.18

4 years ago

0.2.17

4 years ago

0.2.16

4 years ago

0.2.15

4 years ago

0.2.14

4 years ago

0.2.13

4 years ago

0.2.12

4 years ago

0.2.11

4 years ago

0.2.10

4 years ago

0.2.7

4 years ago

0.2.6

4 years ago

0.2.9

4 years ago

0.2.8

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.2.2

4 years ago

0.1.0

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.5

4 years ago

0.0.29

4 years ago

0.0.27

4 years ago

0.0.28

4 years ago

0.0.26

4 years ago

0.0.25

4 years ago

0.0.24

4 years ago

0.0.23

4 years ago

0.0.22

4 years ago

0.0.21

4 years ago

0.0.20

4 years ago

0.0.19

4 years ago

0.0.18

4 years ago

0.0.17

4 years ago

0.0.15

4 years ago

0.0.16

4 years ago

0.0.13

4 years ago

0.0.14

4 years ago

0.0.10

5 years ago

0.0.11

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.6

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.1

5 years ago