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

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,22 @@
1
1
  # @atlaspack/feature-flags
2
2
 
3
+ ## 2.16.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#582](https://github.com/atlassian-labs/atlaspack/pull/582) [`f4da1e1`](https://github.com/atlassian-labs/atlaspack/commit/f4da1e120e73eeb5e8b8927f05e88f04d6148c7b) Thanks [@matt-koko](https://github.com/matt-koko)! - Export DEFAULT_FEATURE_FLAGS so it will be included in the associate type declaration file and able to be imported elsewhere.
8
+
9
+ This will enable patterns like:
10
+
11
+ ```
12
+ import type { FeatureFlags } from '@atlaspack/feature-flags';
13
+ import { DEFAULT_FEATURE_FLAGS } from '@atlaspack/feature-flags';
14
+ ```
15
+
16
+ ### Patch Changes
17
+
18
+ - [#503](https://github.com/atlassian-labs/atlaspack/pull/503) [`209692f`](https://github.com/atlassian-labs/atlaspack/commit/209692ffb11eae103a0d65c5e1118a5aa1625818) Thanks [@JakeLane](https://github.com/JakeLane)! - Fix conditional bundling reporter when condition is reused
19
+
3
20
  ## 2.15.1
4
21
 
5
22
  ### Patch Changes
package/lib/index.js CHANGED
@@ -25,7 +25,9 @@ const DEFAULT_FEATURE_FLAGS = exports.DEFAULT_FEATURE_FLAGS = {
25
25
  inlineBundlesSourceMapFixes: false,
26
26
  conditionalBundlingNestedRuntime: false,
27
27
  patchProjectPaths: false,
28
- cachePerformanceImprovements: false,
28
+ cachePerformanceImprovements: process.env.NODE_ENV === 'test',
29
+ environmentDeduplication: false,
30
+ granularTsConfigInvalidation: false,
29
31
  inlineStringReplacementPerf: false,
30
32
  conditionalBundlingAsyncRuntime: false,
31
33
  // Default to true as it's a monitoring change. Can be turned off if necessary.
package/lib/types.d.ts CHANGED
@@ -43,6 +43,11 @@ export type FeatureFlags = {
43
43
  */
44
44
  vcsMode: ConsistencyCheckFeatureFlagValue;
45
45
 
46
+ /**
47
+ * Enable granular TS config invalidation
48
+ */
49
+ granularTsConfigInvalidation: boolean;
50
+
46
51
  /**
47
52
  * Refactor cache to:
48
53
  * - Split writes into multiple entries
@@ -51,6 +56,11 @@ export type FeatureFlags = {
51
56
  */
52
57
  cachePerformanceImprovements: boolean;
53
58
 
59
+ /**
60
+ * Deduplicates environments across cache / memory entities
61
+ */
62
+ environmentDeduplication: boolean;
63
+
54
64
  /**
55
65
  * Enable scanning for the presence of loadable to determine side effects
56
66
  */
@@ -109,3 +119,4 @@ export type FeatureFlags = {
109
119
  conditionalBundlingReporterSameConditionFix: boolean;
110
120
  };
111
121
  export type ConsistencyCheckFeatureFlagValue = "NEW" | "OLD" | "NEW_AND_CHECK" | "OLD_AND_CHECK";
122
+ export declare var DEFAULT_FEATURE_FLAGS: FeatureFlags;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/feature-flags",
3
- "version": "2.14.1-dev.145+fa4d24840",
3
+ "version": "2.14.1-dev.146+33cba81e9",
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": "fa4d24840815e7048a21d74caf01e2df633fabe3"
24
+ "gitHead": "33cba81e98b6eb098014f5a19d7932821b95f075"
25
25
  }
package/src/index.js CHANGED
@@ -20,7 +20,9 @@ export const DEFAULT_FEATURE_FLAGS: FeatureFlags = {
20
20
  inlineBundlesSourceMapFixes: false,
21
21
  conditionalBundlingNestedRuntime: false,
22
22
  patchProjectPaths: false,
23
- cachePerformanceImprovements: false,
23
+ cachePerformanceImprovements: process.env.NODE_ENV === 'test',
24
+ environmentDeduplication: false,
25
+ granularTsConfigInvalidation: false,
24
26
  inlineStringReplacementPerf: false,
25
27
  conditionalBundlingAsyncRuntime: false,
26
28
  // Default to true as it's a monitoring change. Can be turned off if necessary.
package/src/types.js CHANGED
@@ -37,6 +37,10 @@ export type FeatureFlags = {|
37
37
  * - NEW: Return VCS result, but don't call watchman
38
38
  */
39
39
  vcsMode: ConsistencyCheckFeatureFlagValue,
40
+ /**
41
+ * Enable granular TS config invalidation
42
+ */
43
+ granularTsConfigInvalidation: boolean,
40
44
  /**
41
45
  * Refactor cache to:
42
46
  * - Split writes into multiple entries
@@ -44,6 +48,10 @@ export type FeatureFlags = {|
44
48
  * - Reduce size of the caches by deduplicating data
45
49
  */
46
50
  cachePerformanceImprovements: boolean,
51
+ /**
52
+ * Deduplicates environments across cache / memory entities
53
+ */
54
+ environmentDeduplication: boolean,
47
55
  /**
48
56
  * Enable scanning for the presence of loadable to determine side effects
49
57
  */
@@ -97,3 +105,5 @@ export type ConsistencyCheckFeatureFlagValue =
97
105
  | 'OLD'
98
106
  | 'NEW_AND_CHECK'
99
107
  | 'OLD_AND_CHECK';
108
+
109
+ declare export var DEFAULT_FEATURE_FLAGS: FeatureFlags;