@atlaspack/feature-flags 2.18.0 → 2.18.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,19 @@
1
1
  # @atlaspack/feature-flags
2
2
 
3
+ ## 2.18.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#652](https://github.com/atlassian-labs/atlaspack/pull/652) [`644b157`](https://github.com/atlassian-labs/atlaspack/commit/644b157dee72a871acc2d0facf0b87b8eea51956) Thanks [@yamadapc](https://github.com/yamadapc)! - Fix bugs related to build aborts. Builds and cache writes will no longer be aborted.
8
+
9
+ ## 2.18.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#633](https://github.com/atlassian-labs/atlaspack/pull/633) [`26aa9c5`](https://github.com/atlassian-labs/atlaspack/commit/26aa9c599d2be45ce1438a74c5fa22f39b9b554b) Thanks [@sbhuiyan-atlassian](https://github.com/sbhuiyan-atlassian)! - Ported various HMR changes from Parcel
14
+
15
+ - [#626](https://github.com/atlassian-labs/atlaspack/pull/626) [`0501255`](https://github.com/atlassian-labs/atlaspack/commit/05012550da35b05ce7d356a8cc29311e7f9afdca) Thanks [@yamadapc](https://github.com/yamadapc)! - Clean-up tsconfig invalidation improvements feature-flag
16
+
3
17
  ## 2.18.0
4
18
 
5
19
  ### Minor Changes
package/lib/index.js CHANGED
@@ -28,9 +28,9 @@ const DEFAULT_FEATURE_FLAGS = exports.DEFAULT_FEATURE_FLAGS = {
28
28
  patchProjectPaths: false,
29
29
  cachePerformanceImprovements: process.env.NODE_ENV === 'test',
30
30
  environmentDeduplication: false,
31
- granularTsConfigInvalidation: false,
32
31
  inlineStringReplacementPerf: false,
33
32
  conditionalBundlingAsyncRuntime: false,
33
+ fixBuildAbortCorruption: false,
34
34
  // Default to true as it's a monitoring change. Can be turned off if necessary.
35
35
  verboseRequestInvalidationStats: true,
36
36
  conditionalBundlingReporterDuplicateFix: false,
@@ -38,7 +38,8 @@ const DEFAULT_FEATURE_FLAGS = exports.DEFAULT_FEATURE_FLAGS = {
38
38
  conditionalBundlingReporterSameConditionFix: false,
39
39
  condbHtmlPackagerChange: false,
40
40
  applyScopeHoistingImprovement: false,
41
- inlineConstOptimisationFix: false
41
+ inlineConstOptimisationFix: false,
42
+ hmrImprovements: false
42
43
  };
43
44
  let featureFlagValues = {
44
45
  ...DEFAULT_FEATURE_FLAGS
package/lib/types.d.ts CHANGED
@@ -36,6 +36,11 @@ export type FeatureFlags = {
36
36
  */
37
37
  inlineRequiresMultiThreading: boolean;
38
38
 
39
+ /**
40
+ * Disables aborting of builds and fixes bugs related to state corruption on abort.
41
+ */
42
+ fixBuildAbortCorruption: boolean;
43
+
39
44
  /**
40
45
  * Enable VCS mode. Expected values are:
41
46
  * - OLD - default value, return watchman result
@@ -44,11 +49,6 @@ export type FeatureFlags = {
44
49
  */
45
50
  vcsMode: ConsistencyCheckFeatureFlagValue;
46
51
 
47
- /**
48
- * Enable granular TS config invalidation
49
- */
50
- granularTsConfigInvalidation: boolean;
51
-
52
52
  /**
53
53
  * Refactor cache to:
54
54
  * - Split writes into multiple entries
@@ -134,6 +134,13 @@ export type FeatureFlags = {
134
134
  * Enable a change where a constant module only have the namespacing object added in bundles where it is required
135
135
  */
136
136
  inlineConstOptimisationFix: boolean;
137
+
138
+ /**
139
+ * Improves/fixes HMR behaviour by:
140
+ * - Fixing HMR behaviour with lazy bundle edges
141
+ * - Moving the functionality of the react-refresh runtime into the react-refresh-wrap transformer
142
+ */
143
+ hmrImprovements: boolean;
137
144
  };
138
145
  export declare var CONSISTENCY_CHECK_VALUES: ReadonlyArray<string>;
139
146
  export type ConsistencyCheckFeatureFlagValue = $ElementType<typeof CONSISTENCY_CHECK_VALUES, number>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/feature-flags",
3
- "version": "2.18.0",
3
+ "version": "2.18.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
@@ -29,9 +29,9 @@ export const DEFAULT_FEATURE_FLAGS: FeatureFlags = {
29
29
  patchProjectPaths: false,
30
30
  cachePerformanceImprovements: process.env.NODE_ENV === 'test',
31
31
  environmentDeduplication: false,
32
- granularTsConfigInvalidation: false,
33
32
  inlineStringReplacementPerf: false,
34
33
  conditionalBundlingAsyncRuntime: false,
34
+ fixBuildAbortCorruption: false,
35
35
  // Default to true as it's a monitoring change. Can be turned off if necessary.
36
36
  verboseRequestInvalidationStats: true,
37
37
  conditionalBundlingReporterDuplicateFix: false,
@@ -40,6 +40,7 @@ export const DEFAULT_FEATURE_FLAGS: FeatureFlags = {
40
40
  condbHtmlPackagerChange: false,
41
41
  applyScopeHoistingImprovement: false,
42
42
  inlineConstOptimisationFix: false,
43
+ hmrImprovements: false,
43
44
  };
44
45
 
45
46
  let featureFlagValues: FeatureFlags = {...DEFAULT_FEATURE_FLAGS};
package/src/types.js CHANGED
@@ -30,6 +30,10 @@ export type FeatureFlags = {|
30
30
  * Run inline requires optimizer in the rayon thread pool.
31
31
  */
32
32
  inlineRequiresMultiThreading: boolean,
33
+ /**
34
+ * Disables aborting of builds and fixes bugs related to state corruption on abort.
35
+ */
36
+ fixBuildAbortCorruption: boolean,
33
37
  /**
34
38
  * Enable VCS mode. Expected values are:
35
39
  * - OLD - default value, return watchman result
@@ -37,10 +41,6 @@ export type FeatureFlags = {|
37
41
  * - NEW: Return VCS result, but don't call watchman
38
42
  */
39
43
  vcsMode: ConsistencyCheckFeatureFlagValue,
40
- /**
41
- * Enable granular TS config invalidation
42
- */
43
- granularTsConfigInvalidation: boolean,
44
44
  /**
45
45
  * Refactor cache to:
46
46
  * - Split writes into multiple entries
@@ -111,6 +111,12 @@ export type FeatureFlags = {|
111
111
  * Enable a change where a constant module only have the namespacing object added in bundles where it is required
112
112
  */
113
113
  inlineConstOptimisationFix: boolean,
114
+ /**
115
+ * Improves/fixes HMR behaviour by:
116
+ * - Fixing HMR behaviour with lazy bundle edges
117
+ * - Moving the functionality of the react-refresh runtime into the react-refresh-wrap transformer
118
+ */
119
+ hmrImprovements: boolean,
114
120
  |};
115
121
 
116
122
  declare export var CONSISTENCY_CHECK_VALUES: $ReadOnlyArray<string>;