@parcel/feature-flags 2.12.1-dev.3303 → 2.12.1-dev.3335

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -10,8 +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
- parcelV3: false
13
+ parcelV3: false,
14
+ importRetry: false,
15
+ ownedResolverStructures: false,
16
+ panicOnEmptyFileImport: false
15
17
  };
16
18
  let featureFlagValues = {
17
19
  ...DEFAULT_FEATURE_FLAGS
package/lib/types.d.ts CHANGED
@@ -3,14 +3,22 @@ export type FeatureFlags = {
3
3
  readonly exampleFeature: boolean;
4
4
 
5
5
  /**
6
- * Enables content hash based invalidation for config keys used in plugins.
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 configKeyInvalidation: boolean;
8
+ readonly parcelV3: boolean;
11
9
 
12
10
  /**
13
- * Rust backed requests
11
+ * Configure runtime to enable retriable dynamic imports
14
12
  */
15
- readonly parcelV3: boolean;
13
+ importRetry: boolean;
14
+
15
+ /**
16
+ * Enable resolver refactor into owned data structures.
17
+ */
18
+ ownedResolverStructures: boolean;
19
+
20
+ /**
21
+ * Makes Parcel panic when an empty file is imported
22
+ */
23
+ panicOnEmptyFileImport: boolean;
16
24
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcel/feature-flags",
3
- "version": "2.12.1-dev.3303+3edb0d741",
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": "3edb0d7419831e49cfa7ea8c52b4f7127a16ae52"
27
+ "gitHead": "c6bc8e41105247c437089ec3cb91e53f12ac5519"
28
28
  }
package/src/index.js CHANGED
@@ -7,8 +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,
11
+ importRetry: false,
12
+ ownedResolverStructures: false,
13
+ panicOnEmptyFileImport: false,
12
14
  };
13
15
 
14
16
  let featureFlagValues: FeatureFlags = {...DEFAULT_FEATURE_FLAGS};
package/src/types.js CHANGED
@@ -3,14 +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,
10
+ /**
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
21
+ */
22
+ panicOnEmptyFileImport: boolean,
16
23
  |};