@parcel/feature-flags 2.12.1-dev.3275 → 2.12.1-dev.3335
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/index.js +3 -2
- package/lib/types.d.ts +11 -8
- package/package.json +2 -2
- package/src/index.js +3 -2
- package/src/types.js +11 -8
package/lib/index.js
CHANGED
@@ -10,9 +10,10 @@ 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
|
-
configKeyInvalidation: false,
|
14
13
|
parcelV3: false,
|
15
|
-
|
14
|
+
importRetry: false,
|
15
|
+
ownedResolverStructures: false,
|
16
|
+
panicOnEmptyFileImport: false
|
16
17
|
};
|
17
18
|
let featureFlagValues = {
|
18
19
|
...DEFAULT_FEATURE_FLAGS
|
package/lib/types.d.ts
CHANGED
@@ -3,19 +3,22 @@ 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;
|
14
|
+
|
15
|
+
/**
|
16
|
+
* Enable resolver refactor into owned data structures.
|
17
|
+
*/
|
18
|
+
ownedResolverStructures: boolean;
|
16
19
|
|
17
20
|
/**
|
18
|
-
*
|
21
|
+
* Makes Parcel panic when an empty file is imported
|
19
22
|
*/
|
20
|
-
|
23
|
+
panicOnEmptyFileImport: boolean;
|
21
24
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@parcel/feature-flags",
|
3
|
-
"version": "2.12.1-dev.
|
3
|
+
"version": "2.12.1-dev.3335+c6bc8e411",
|
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": "c6bc8e41105247c437089ec3cb91e53f12ac5519"
|
28
28
|
}
|
package/src/index.js
CHANGED
@@ -7,9 +7,10 @@ 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,
|
12
|
-
|
11
|
+
importRetry: false,
|
12
|
+
ownedResolverStructures: false,
|
13
|
+
panicOnEmptyFileImport: false,
|
13
14
|
};
|
14
15
|
|
15
16
|
let featureFlagValues: FeatureFlags = {...DEFAULT_FEATURE_FLAGS};
|
package/src/types.js
CHANGED
@@ -3,18 +3,21 @@
|
|
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,
|
16
10
|
/**
|
17
|
-
*
|
11
|
+
* Configure runtime to enable retriable dynamic imports
|
12
|
+
*/
|
13
|
+
importRetry: boolean,
|
14
|
+
/**
|
15
|
+
* Enable resolver refactor into owned data structures.
|
16
|
+
*/
|
17
|
+
ownedResolverStructures: boolean,
|
18
|
+
|
19
|
+
/**
|
20
|
+
* Makes Parcel panic when an empty file is imported
|
18
21
|
*/
|
19
|
-
|
22
|
+
panicOnEmptyFileImport: boolean,
|
20
23
|
|};
|