@atlaspack/feature-flags 2.14.1-dev.144 → 2.14.1-dev.145

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,39 @@
1
1
  # @atlaspack/feature-flags
2
2
 
3
+ ## 2.15.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#551](https://github.com/atlassian-labs/atlaspack/pull/551) [`30f6017`](https://github.com/atlassian-labs/atlaspack/commit/30f60175ba4d272c5fc193973c63bc298584775b) Thanks [@yamadapc](https://github.com/yamadapc)! - Log request tracker invalidation counts on start-up
8
+
9
+ ## 2.15.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#547](https://github.com/atlassian-labs/atlaspack/pull/547) [`a1773d2`](https://github.com/atlassian-labs/atlaspack/commit/a1773d2a62d0ef7805ac7524621dcabcc1afe929) Thanks [@benjervis](https://github.com/benjervis)! - Add a feature flag for resolving the configuration for `@atlaspack/bundler-default` from CWD, rather than exclusively from the project root.
14
+
15
+ ## 2.14.4
16
+
17
+ ### Patch Changes
18
+
19
+ - [#542](https://github.com/atlassian-labs/atlaspack/pull/542) [`e0f5337`](https://github.com/atlassian-labs/atlaspack/commit/e0f533757bd1019dbd108a04952c87da15286e09) Thanks [@yamadapc](https://github.com/yamadapc)! - Add feature-flagged option to use rayon thread-pool to optimize inline requires
20
+
21
+ ## 2.14.3
22
+
23
+ ### Patch Changes
24
+
25
+ - [#511](https://github.com/atlassian-labs/atlaspack/pull/511) [`11d6f16`](https://github.com/atlassian-labs/atlaspack/commit/11d6f16b6397dee2f217167e5c98b39edb63f7a7) Thanks [@yamadapc](https://github.com/yamadapc)! - Clean-up dylib worker threads segmentation fault bug fix feature-flag
26
+
27
+ ## 2.14.2
28
+
29
+ ### Patch Changes
30
+
31
+ - [#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
32
+
33
+ - [#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
34
+
35
+ - [#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
36
+
3
37
  ## 2.14.1
4
38
 
5
39
  ### Patch Changes
package/lib/index.js CHANGED
@@ -17,18 +17,22 @@ 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,
21
+ inlineRequiresMultiThreading: false,
22
22
  vcsMode: 'OLD',
23
23
  loadableSideEffects: false,
24
24
  reduceResolverStringCreation: false,
25
25
  inlineBundlesSourceMapFixes: false,
26
26
  conditionalBundlingNestedRuntime: false,
27
27
  patchProjectPaths: false,
28
- enableRustWorkerThreadDylibHack: true,
28
+ cachePerformanceImprovements: false,
29
29
  inlineStringReplacementPerf: false,
30
30
  conditionalBundlingAsyncRuntime: false,
31
- conditionalBundlingReporterDuplicateFix: false
31
+ // Default to true as it's a monitoring change. Can be turned off if necessary.
32
+ verboseRequestInvalidationStats: true,
33
+ conditionalBundlingReporterDuplicateFix: false,
34
+ resolveBundlerConfigFromCwd: false,
35
+ conditionalBundlingReporterSameConditionFix: false
32
36
  };
33
37
  let featureFlagValues = {
34
38
  ...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
  */
@@ -35,6 +30,11 @@ export type FeatureFlags = {
35
30
  */
36
31
  conditionalBundlingApi: boolean;
37
32
 
33
+ /**
34
+ * Run inline requires optimizer in the rayon thread pool.
35
+ */
36
+ inlineRequiresMultiThreading: boolean;
37
+
38
38
  /**
39
39
  * Enable VCS mode. Expected values are:
40
40
  * - OLD - default value, return watchman result
@@ -43,6 +43,14 @@ export type FeatureFlags = {
43
43
  */
44
44
  vcsMode: ConsistencyCheckFeatureFlagValue;
45
45
 
46
+ /**
47
+ * Refactor cache to:
48
+ * - Split writes into multiple entries
49
+ * - Remove "large file blob" writes
50
+ * - Reduce size of the caches by deduplicating data
51
+ */
52
+ cachePerformanceImprovements: boolean;
53
+
46
54
  /**
47
55
  * Enable scanning for the presence of loadable to determine side effects
48
56
  */
@@ -54,6 +62,11 @@ export type FeatureFlags = {
54
62
  */
55
63
  reduceResolverStringCreation: boolean;
56
64
 
65
+ /**
66
+ * Add verbose metrics for request tracker invalidation
67
+ */
68
+ verboseRequestInvalidationStats: boolean;
69
+
57
70
  /**
58
71
  * Fixes source maps for inline bundles
59
72
  */
@@ -69,11 +82,6 @@ export type FeatureFlags = {
69
82
  */
70
83
  patchProjectPaths: boolean;
71
84
 
72
- /**
73
- * Enable loading of the parcel dylib in the main thread.
74
- */
75
- enableRustWorkerThreadDylibHack: boolean;
76
-
77
85
  /**
78
86
  * Enables optimized inline string replacement perf for the packager.
79
87
  * Used heavily for inline bundles.
@@ -89,5 +97,15 @@ export type FeatureFlags = {
89
97
  * Fix a bug where the conditional manifest reporter would report and write the same manifest multiple times
90
98
  */
91
99
  conditionalBundlingReporterDuplicateFix: boolean;
100
+
101
+ /**
102
+ * Enable resolution of bundler config starting from the CWD
103
+ */
104
+ resolveBundlerConfigFromCwd: boolean;
105
+
106
+ /**
107
+ * Fix a bug where the conditional manifest reporter would drop bundles that have the same condition
108
+ */
109
+ conditionalBundlingReporterSameConditionFix: boolean;
92
110
  };
93
111
  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-dev.144+ea7d58b70",
3
+ "version": "2.14.1-dev.145+fa4d24840",
4
4
  "description": "Provides internal feature-flags for the atlaspack codebase.",
5
5
  "license": "(MIT OR Apache-2.0)",
6
6
  "publishConfig": {
@@ -21,5 +21,5 @@
21
21
  "node": ">= 16.0.0"
22
22
  },
23
23
  "type": "commonjs",
24
- "gitHead": "ea7d58b70fbe4bbc6324d4053ac673ea307b7bf6"
24
+ "gitHead": "fa4d24840815e7048a21d74caf01e2df633fabe3"
25
25
  }
package/src/index.js CHANGED
@@ -12,18 +12,22 @@ 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,
16
+ inlineRequiresMultiThreading: false,
17
17
  vcsMode: 'OLD',
18
18
  loadableSideEffects: false,
19
19
  reduceResolverStringCreation: false,
20
20
  inlineBundlesSourceMapFixes: false,
21
21
  conditionalBundlingNestedRuntime: false,
22
22
  patchProjectPaths: false,
23
- enableRustWorkerThreadDylibHack: true,
23
+ cachePerformanceImprovements: false,
24
24
  inlineStringReplacementPerf: false,
25
25
  conditionalBundlingAsyncRuntime: false,
26
+ // Default to true as it's a monitoring change. Can be turned off if necessary.
27
+ verboseRequestInvalidationStats: true,
26
28
  conditionalBundlingReporterDuplicateFix: false,
29
+ resolveBundlerConfigFromCwd: false,
30
+ conditionalBundlingReporterSameConditionFix: false,
27
31
  };
28
32
 
29
33
  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
  */
@@ -30,6 +26,10 @@ export type FeatureFlags = {|
30
26
  * and requires server-side support.
31
27
  */
32
28
  conditionalBundlingApi: boolean,
29
+ /**
30
+ * Run inline requires optimizer in the rayon thread pool.
31
+ */
32
+ inlineRequiresMultiThreading: boolean,
33
33
  /**
34
34
  * Enable VCS mode. Expected values are:
35
35
  * - OLD - default value, return watchman result
@@ -37,6 +37,13 @@ export type FeatureFlags = {|
37
37
  * - NEW: Return VCS result, but don't call watchman
38
38
  */
39
39
  vcsMode: ConsistencyCheckFeatureFlagValue,
40
+ /**
41
+ * Refactor cache to:
42
+ * - Split writes into multiple entries
43
+ * - Remove "large file blob" writes
44
+ * - Reduce size of the caches by deduplicating data
45
+ */
46
+ cachePerformanceImprovements: boolean,
40
47
  /**
41
48
  * Enable scanning for the presence of loadable to determine side effects
42
49
  */
@@ -46,6 +53,10 @@ export type FeatureFlags = {|
46
53
  * conversions
47
54
  */
48
55
  reduceResolverStringCreation: boolean,
56
+ /**
57
+ * Add verbose metrics for request tracker invalidation
58
+ */
59
+ verboseRequestInvalidationStats: boolean,
49
60
  /**
50
61
  * Fixes source maps for inline bundles
51
62
  */
@@ -58,10 +69,6 @@ export type FeatureFlags = {|
58
69
  * This feature is experimental and should not be used in production. It will used to test downloadble cache artefacts.
59
70
  */
60
71
  patchProjectPaths: boolean,
61
- /**
62
- * Enable loading of the parcel dylib in the main thread.
63
- */
64
- enableRustWorkerThreadDylibHack: boolean,
65
72
  /**
66
73
  * Enables optimized inline string replacement perf for the packager.
67
74
  * Used heavily for inline bundles.
@@ -75,6 +82,14 @@ export type FeatureFlags = {|
75
82
  * Fix a bug where the conditional manifest reporter would report and write the same manifest multiple times
76
83
  */
77
84
  conditionalBundlingReporterDuplicateFix: boolean,
85
+ /**
86
+ * Enable resolution of bundler config starting from the CWD
87
+ */
88
+ resolveBundlerConfigFromCwd: boolean,
89
+ /**
90
+ * Fix a bug where the conditional manifest reporter would drop bundles that have the same condition
91
+ */
92
+ conditionalBundlingReporterSameConditionFix: boolean,
78
93
  |};
79
94
 
80
95
  export type ConsistencyCheckFeatureFlagValue =