@atlaspack/feature-flags 2.14.3 → 2.15.0
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 +12 -0
- package/lib/index.js +3 -1
- package/lib/types.d.ts +10 -0
- package/package.json +1 -1
- package/src/index.js +2 -0
- package/src/types.js +8 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaspack/feature-flags
|
|
2
2
|
|
|
3
|
+
## 2.15.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#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.
|
|
8
|
+
|
|
9
|
+
## 2.14.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#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
|
|
14
|
+
|
|
3
15
|
## 2.14.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/lib/index.js
CHANGED
|
@@ -18,6 +18,7 @@ const DEFAULT_FEATURE_FLAGS = exports.DEFAULT_FEATURE_FLAGS = {
|
|
|
18
18
|
importRetry: false,
|
|
19
19
|
fixQuadraticCacheInvalidation: 'OLD',
|
|
20
20
|
conditionalBundlingApi: false,
|
|
21
|
+
inlineRequiresMultiThreading: false,
|
|
21
22
|
vcsMode: 'OLD',
|
|
22
23
|
loadableSideEffects: false,
|
|
23
24
|
reduceResolverStringCreation: false,
|
|
@@ -27,7 +28,8 @@ const DEFAULT_FEATURE_FLAGS = exports.DEFAULT_FEATURE_FLAGS = {
|
|
|
27
28
|
cachePerformanceImprovements: false,
|
|
28
29
|
inlineStringReplacementPerf: false,
|
|
29
30
|
conditionalBundlingAsyncRuntime: false,
|
|
30
|
-
conditionalBundlingReporterDuplicateFix: false
|
|
31
|
+
conditionalBundlingReporterDuplicateFix: false,
|
|
32
|
+
resolveBundlerConfigFromCwd: false
|
|
31
33
|
};
|
|
32
34
|
let featureFlagValues = {
|
|
33
35
|
...DEFAULT_FEATURE_FLAGS
|
package/lib/types.d.ts
CHANGED
|
@@ -30,6 +30,11 @@ export type FeatureFlags = {
|
|
|
30
30
|
*/
|
|
31
31
|
conditionalBundlingApi: boolean;
|
|
32
32
|
|
|
33
|
+
/**
|
|
34
|
+
* Run inline requires optimizer in the rayon thread pool.
|
|
35
|
+
*/
|
|
36
|
+
inlineRequiresMultiThreading: boolean;
|
|
37
|
+
|
|
33
38
|
/**
|
|
34
39
|
* Enable VCS mode. Expected values are:
|
|
35
40
|
* - OLD - default value, return watchman result
|
|
@@ -87,5 +92,10 @@ export type FeatureFlags = {
|
|
|
87
92
|
* Fix a bug where the conditional manifest reporter would report and write the same manifest multiple times
|
|
88
93
|
*/
|
|
89
94
|
conditionalBundlingReporterDuplicateFix: boolean;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Enable resolution of bundler config starting from the CWD
|
|
98
|
+
*/
|
|
99
|
+
resolveBundlerConfigFromCwd: boolean;
|
|
90
100
|
};
|
|
91
101
|
export type ConsistencyCheckFeatureFlagValue = "NEW" | "OLD" | "NEW_AND_CHECK" | "OLD_AND_CHECK";
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -13,6 +13,7 @@ export const DEFAULT_FEATURE_FLAGS: FeatureFlags = {
|
|
|
13
13
|
importRetry: false,
|
|
14
14
|
fixQuadraticCacheInvalidation: 'OLD',
|
|
15
15
|
conditionalBundlingApi: false,
|
|
16
|
+
inlineRequiresMultiThreading: false,
|
|
16
17
|
vcsMode: 'OLD',
|
|
17
18
|
loadableSideEffects: false,
|
|
18
19
|
reduceResolverStringCreation: false,
|
|
@@ -23,6 +24,7 @@ export const DEFAULT_FEATURE_FLAGS: FeatureFlags = {
|
|
|
23
24
|
inlineStringReplacementPerf: false,
|
|
24
25
|
conditionalBundlingAsyncRuntime: false,
|
|
25
26
|
conditionalBundlingReporterDuplicateFix: false,
|
|
27
|
+
resolveBundlerConfigFromCwd: false,
|
|
26
28
|
};
|
|
27
29
|
|
|
28
30
|
let featureFlagValues: FeatureFlags = {...DEFAULT_FEATURE_FLAGS};
|
package/src/types.js
CHANGED
|
@@ -26,6 +26,10 @@ export type FeatureFlags = {|
|
|
|
26
26
|
* and requires server-side support.
|
|
27
27
|
*/
|
|
28
28
|
conditionalBundlingApi: boolean,
|
|
29
|
+
/**
|
|
30
|
+
* Run inline requires optimizer in the rayon thread pool.
|
|
31
|
+
*/
|
|
32
|
+
inlineRequiresMultiThreading: boolean,
|
|
29
33
|
/**
|
|
30
34
|
* Enable VCS mode. Expected values are:
|
|
31
35
|
* - OLD - default value, return watchman result
|
|
@@ -74,6 +78,10 @@ export type FeatureFlags = {|
|
|
|
74
78
|
* Fix a bug where the conditional manifest reporter would report and write the same manifest multiple times
|
|
75
79
|
*/
|
|
76
80
|
conditionalBundlingReporterDuplicateFix: boolean,
|
|
81
|
+
/**
|
|
82
|
+
* Enable resolution of bundler config starting from the CWD
|
|
83
|
+
*/
|
|
84
|
+
resolveBundlerConfigFromCwd: boolean,
|
|
77
85
|
|};
|
|
78
86
|
|
|
79
87
|
export type ConsistencyCheckFeatureFlagValue =
|