0.2.16 • Published 8 months ago
@atlaskit/feature-gate-fetcher v0.2.16
Feature Gate Fetcher
Provides fetch logic to get client sdk keys and feature gate values from the feature-flag-service. To be used in Provider implementations used with @atlaskit/feature-gate-js-client
Usage
To fetch experiment values
import Fetcher from '@atlaskit/feature-gate-fetcher';
const experimentValuesResponse = Fetcher.fetchExperimentValues(
// Version of the feature gate js client
'clientVesion',
// Fetch options
{
environment: FeatureGateEnvironment.development,
targetApp: 'targetApp',
perimeter: PerimeterType.COMMERCIAL,
apiKey: 'apiKey'
},
// Identifiers
identifiers: {
atlassianAccountId: 'abc'
},
// Optional: custom attributes
customAttributes: {},
);To fettch client sdk key
import Fetcher from '@atlaskit/feature-gate-fetcher';
const clientSdkKey = Fetcher.fetchClientSdkKey(
// Version of the feature gate js client
'clientVesion',
// Fetch options
{
environment: FeatureGateEnvironment.development,
targetApp: 'targetApp',
perimeter: PerimeterType.COMMERCIAL,
apiKey: 'apiKey'
},
// Identifiers
identifiers: {
atlassianAccountId: 'abc'
},
// Optional: custom attributes
customAttributes: {},
);Detailed docs and example usage can be found here.
0.2.16
8 months ago
0.2.15
9 months ago
0.2.14
9 months ago
0.2.13
9 months ago
0.2.12
9 months ago
0.2.11
9 months ago
0.2.10
9 months ago
0.2.1
1 year ago
0.2.6
9 months ago
0.2.9
9 months ago
0.2.8
9 months ago
0.2.3
12 months ago
0.2.2
1 year ago
0.2.5
10 months ago
0.2.4
11 months ago
0.1.0
1 year ago
0.2.0
1 year ago
0.0.5
1 year ago
0.0.4
1 year ago
0.0.3
1 year ago
0.0.2
1 year ago
0.0.1
1 year ago