@atlaspack/feature-flags 2.14.1 → 2.14.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @atlaspack/feature-flags
2
2
 
3
+ ## 2.14.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#494](https://github.com/atlassian-labs/atlaspack/pull/494) [`9b85d3e`](https://github.com/atlassian-labs/atlaspack/commit/9b85d3e645b10bd027eed2304afc970a5ba40062) Thanks [@JakeLane](https://github.com/JakeLane)! - When conditionalBundlingReporterDuplicateFix is enabled, avoid duplicated writes to the descriptor and logging
8
+
9
+ - [#510](https://github.com/atlassian-labs/atlaspack/pull/510) [`17b9579`](https://github.com/atlassian-labs/atlaspack/commit/17b9579484eced0ed8f23e2aba6d23b3c7238c39) Thanks [@yamadapc](https://github.com/yamadapc)! - Add unused feature-flag for cache rework changes
10
+
11
+ - [#512](https://github.com/atlassian-labs/atlaspack/pull/512) [`8f4e6c1`](https://github.com/atlassian-labs/atlaspack/commit/8f4e6c1b0e7c1fd48624afda48c1dcc599f1460f) Thanks [@yamadapc](https://github.com/yamadapc)! - Remove LMDB cache back-end
12
+
3
13
  ## 2.14.1
4
14
 
5
15
  ### Patch Changes
package/lib/index.js CHANGED
@@ -17,7 +17,6 @@ const DEFAULT_FEATURE_FLAGS = exports.DEFAULT_FEATURE_FLAGS = {
17
17
  useWatchmanWatcher: false,
18
18
  importRetry: false,
19
19
  fixQuadraticCacheInvalidation: 'OLD',
20
- useLmdbJsLite: true,
21
20
  conditionalBundlingApi: false,
22
21
  vcsMode: 'OLD',
23
22
  loadableSideEffects: false,
@@ -25,9 +24,11 @@ const DEFAULT_FEATURE_FLAGS = exports.DEFAULT_FEATURE_FLAGS = {
25
24
  inlineBundlesSourceMapFixes: false,
26
25
  conditionalBundlingNestedRuntime: false,
27
26
  patchProjectPaths: false,
27
+ cachePerformanceImprovements: false,
28
28
  enableRustWorkerThreadDylibHack: true,
29
29
  inlineStringReplacementPerf: false,
30
- conditionalBundlingAsyncRuntime: false
30
+ conditionalBundlingAsyncRuntime: false,
31
+ conditionalBundlingReporterDuplicateFix: false
31
32
  };
32
33
  let featureFlagValues = {
33
34
  ...DEFAULT_FEATURE_FLAGS
package/lib/types.d.ts CHANGED
@@ -18,11 +18,6 @@ export type FeatureFlags = {
18
18
  */
19
19
  importRetry: boolean;
20
20
 
21
- /**
22
- * Enable Rust based LMDB wrapper library
23
- */
24
- useLmdbJsLite: boolean;
25
-
26
21
  /**
27
22
  * Fixes quadratic cache invalidation issue
28
23
  */
@@ -43,6 +38,14 @@ export type FeatureFlags = {
43
38
  */
44
39
  vcsMode: ConsistencyCheckFeatureFlagValue;
45
40
 
41
+ /**
42
+ * Refactor cache to:
43
+ * - Split writes into multiple entries
44
+ * - Remove "large file blob" writes
45
+ * - Reduce size of the caches by deduplicating data
46
+ */
47
+ cachePerformanceImprovements: boolean;
48
+
46
49
  /**
47
50
  * Enable scanning for the presence of loadable to determine side effects
48
51
  */
@@ -84,5 +87,10 @@ export type FeatureFlags = {
84
87
  * Enable support for the async bundle runtime (unstable_asyncBundleRuntime) in conditional bundling
85
88
  */
86
89
  conditionalBundlingAsyncRuntime: boolean;
90
+
91
+ /**
92
+ * Fix a bug where the conditional manifest reporter would report and write the same manifest multiple times
93
+ */
94
+ conditionalBundlingReporterDuplicateFix: boolean;
87
95
  };
88
96
  export type ConsistencyCheckFeatureFlagValue = "NEW" | "OLD" | "NEW_AND_CHECK" | "OLD_AND_CHECK";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/feature-flags",
3
- "version": "2.14.1",
3
+ "version": "2.14.2",
4
4
  "description": "Provides internal feature-flags for the atlaspack codebase.",
5
5
  "license": "(MIT OR Apache-2.0)",
6
6
  "publishConfig": {
package/src/index.js CHANGED
@@ -12,7 +12,6 @@ export const DEFAULT_FEATURE_FLAGS: FeatureFlags = {
12
12
  useWatchmanWatcher: false,
13
13
  importRetry: false,
14
14
  fixQuadraticCacheInvalidation: 'OLD',
15
- useLmdbJsLite: true,
16
15
  conditionalBundlingApi: false,
17
16
  vcsMode: 'OLD',
18
17
  loadableSideEffects: false,
@@ -20,9 +19,11 @@ export const DEFAULT_FEATURE_FLAGS: FeatureFlags = {
20
19
  inlineBundlesSourceMapFixes: false,
21
20
  conditionalBundlingNestedRuntime: false,
22
21
  patchProjectPaths: false,
22
+ cachePerformanceImprovements: false,
23
23
  enableRustWorkerThreadDylibHack: true,
24
24
  inlineStringReplacementPerf: false,
25
25
  conditionalBundlingAsyncRuntime: false,
26
+ conditionalBundlingReporterDuplicateFix: false,
26
27
  };
27
28
 
28
29
  let featureFlagValues: FeatureFlags = {...DEFAULT_FEATURE_FLAGS};
package/src/types.js CHANGED
@@ -16,10 +16,6 @@ export type FeatureFlags = {|
16
16
  * Configure runtime to enable retriable dynamic imports
17
17
  */
18
18
  importRetry: boolean,
19
- /**
20
- * Enable Rust based LMDB wrapper library
21
- */
22
- useLmdbJsLite: boolean,
23
19
  /**
24
20
  * Fixes quadratic cache invalidation issue
25
21
  */
@@ -37,6 +33,13 @@ export type FeatureFlags = {|
37
33
  * - NEW: Return VCS result, but don't call watchman
38
34
  */
39
35
  vcsMode: ConsistencyCheckFeatureFlagValue,
36
+ /**
37
+ * Refactor cache to:
38
+ * - Split writes into multiple entries
39
+ * - Remove "large file blob" writes
40
+ * - Reduce size of the caches by deduplicating data
41
+ */
42
+ cachePerformanceImprovements: boolean,
40
43
  /**
41
44
  * Enable scanning for the presence of loadable to determine side effects
42
45
  */
@@ -71,6 +74,10 @@ export type FeatureFlags = {|
71
74
  * Enable support for the async bundle runtime (unstable_asyncBundleRuntime) in conditional bundling
72
75
  */
73
76
  conditionalBundlingAsyncRuntime: boolean,
77
+ /**
78
+ * Fix a bug where the conditional manifest reporter would report and write the same manifest multiple times
79
+ */
80
+ conditionalBundlingReporterDuplicateFix: boolean,
74
81
  |};
75
82
 
76
83
  export type ConsistencyCheckFeatureFlagValue =