@atlaspack/feature-flags
Advanced tools
Comparing version 2.13.2-canary.3646 to 2.13.2-canary.3647
@@ -8,2 +8,3 @@ "use strict"; | ||
exports.getFeatureFlag = getFeatureFlag; | ||
exports.getFeatureFlagValue = getFeatureFlagValue; | ||
exports.runWithConsistencyCheck = runWithConsistencyCheck; | ||
@@ -21,3 +22,4 @@ exports.setFeatureFlags = setFeatureFlags; | ||
useLmdbJsLite: false, | ||
conditionalBundlingApi: false | ||
conditionalBundlingApi: false, | ||
vcsMode: 'OLD' | ||
}; | ||
@@ -34,2 +36,5 @@ let featureFlagValues = { | ||
} | ||
function getFeatureFlagValue(flagName) { | ||
return featureFlagValues[flagName]; | ||
} | ||
/** | ||
@@ -36,0 +41,0 @@ * Run a function with a consistency check. |
@@ -37,3 +37,11 @@ export type FeatureFlags = { | ||
conditionalBundlingApi: boolean; | ||
/** | ||
* Enable VCS mode. Expected values are: | ||
* - OLD - default value, return watchman result | ||
* - NEW_AND_CHECK - Return VCS result but still call watchman | ||
* - NEW: Return VCS result, but don't call watchman | ||
*/ | ||
vcsMode: ConsistencyCheckFeatureFlagValue; | ||
}; | ||
export type ConsistencyCheckFeatureFlagValue = "NEW" | "OLD" | "NEW_AND_CHECK" | "OLD_AND_CHECK"; |
{ | ||
"name": "@atlaspack/feature-flags", | ||
"version": "2.13.2-canary.3646+cbcb43679", | ||
"version": "2.13.2-canary.3647+e962cd735", | ||
"description": "Provides internal feature-flags for the atlaspack codebase.", | ||
@@ -23,3 +23,3 @@ "license": "(MIT OR Apache-2.0)", | ||
}, | ||
"gitHead": "cbcb436799252b963fbb88618e95859e4740bb3d" | ||
"gitHead": "e962cd735877f7f16163e60868d70d9c10054ebe" | ||
} |
@@ -17,2 +17,3 @@ // @flow strict | ||
conditionalBundlingApi: false, | ||
vcsMode: 'OLD', | ||
}; | ||
@@ -31,2 +32,8 @@ | ||
export function getFeatureFlagValue( | ||
flagName: $Keys<FeatureFlags>, | ||
): boolean | string | number { | ||
return featureFlagValues[flagName]; | ||
} | ||
export type DiffResult<CustomDiagnostic> = {| | ||
@@ -33,0 +40,0 @@ isDifferent: boolean, |
@@ -33,2 +33,9 @@ // @flow strict | ||
conditionalBundlingApi: boolean, | ||
/** | ||
* Enable VCS mode. Expected values are: | ||
* - OLD - default value, return watchman result | ||
* - NEW_AND_CHECK - Return VCS result but still call watchman | ||
* - NEW: Return VCS result, but don't call watchman | ||
*/ | ||
vcsMode: ConsistencyCheckFeatureFlagValue, | ||
|}; | ||
@@ -35,0 +42,0 @@ |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
22644
327