@parcel/feature-flags 2.12.1-canary.3310 → 2.12.1-canary.3313
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/index.js +2 -2
- package/lib/types.d.ts +4 -6
- package/package.json +2 -2
- package/src/index.js +1 -1
- package/src/types.js +4 -6
package/lib/index.js
CHANGED
@@ -10,8 +10,8 @@ exports.setFeatureFlags = setFeatureFlags;
|
|
10
10
|
// but we want to export FeatureFlags for Flow
|
11
11
|
const DEFAULT_FEATURE_FLAGS = exports.DEFAULT_FEATURE_FLAGS = {
|
12
12
|
exampleFeature: false,
|
13
|
-
|
14
|
-
|
13
|
+
parcelV3: false,
|
14
|
+
importRetry: false
|
15
15
|
};
|
16
16
|
let featureFlagValues = {
|
17
17
|
...DEFAULT_FEATURE_FLAGS
|
package/lib/types.d.ts
CHANGED
@@ -3,14 +3,12 @@ export type FeatureFlags = {
|
|
3
3
|
readonly exampleFeature: boolean;
|
4
4
|
|
5
5
|
/**
|
6
|
-
*
|
7
|
-
* This allows Assets not to be invalidated when using
|
8
|
-
* `config.getConfigFrom(..., {packageKey: '...'})` and the value itself hasn't changed.
|
6
|
+
* Rust backed requests
|
9
7
|
*/
|
10
|
-
readonly
|
8
|
+
readonly parcelV3: boolean;
|
11
9
|
|
12
10
|
/**
|
13
|
-
*
|
11
|
+
* Configure runtime to enable retriable dynamic imports
|
14
12
|
*/
|
15
|
-
|
13
|
+
importRetry: boolean;
|
16
14
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@parcel/feature-flags",
|
3
|
-
"version": "2.12.1-canary.
|
3
|
+
"version": "2.12.1-canary.3313+29778a2f4",
|
4
4
|
"description": "Provides internal feature-flags for the parcel codebase.",
|
5
5
|
"license": "MIT",
|
6
6
|
"publishConfig": {
|
@@ -24,5 +24,5 @@
|
|
24
24
|
"engines": {
|
25
25
|
"node": ">= 16.0.0"
|
26
26
|
},
|
27
|
-
"gitHead": "
|
27
|
+
"gitHead": "29778a2f4737b191b727882a0f97653344b70368"
|
28
28
|
}
|
package/src/index.js
CHANGED
@@ -7,8 +7,8 @@ export type FeatureFlags = _FeatureFlags;
|
|
7
7
|
|
8
8
|
export const DEFAULT_FEATURE_FLAGS: FeatureFlags = {
|
9
9
|
exampleFeature: false,
|
10
|
-
configKeyInvalidation: false,
|
11
10
|
parcelV3: false,
|
11
|
+
importRetry: false,
|
12
12
|
};
|
13
13
|
|
14
14
|
let featureFlagValues: FeatureFlags = {...DEFAULT_FEATURE_FLAGS};
|
package/src/types.js
CHANGED
@@ -3,14 +3,12 @@
|
|
3
3
|
export type FeatureFlags = {|
|
4
4
|
// This feature flag mostly exists to test the feature flag system, and doesn't have any build/runtime effect
|
5
5
|
+exampleFeature: boolean,
|
6
|
-
/**
|
7
|
-
* Enables content hash based invalidation for config keys used in plugins.
|
8
|
-
* This allows Assets not to be invalidated when using
|
9
|
-
* `config.getConfigFrom(..., {packageKey: '...'})` and the value itself hasn't changed.
|
10
|
-
*/
|
11
|
-
+configKeyInvalidation: boolean,
|
12
6
|
/**
|
13
7
|
* Rust backed requests
|
14
8
|
*/
|
15
9
|
+parcelV3: boolean,
|
10
|
+
/**
|
11
|
+
* Configure runtime to enable retriable dynamic imports
|
12
|
+
*/
|
13
|
+
importRetry: boolean,
|
16
14
|
|};
|