@atlaspack/feature-flags 2.19.0 → 2.19.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 +14 -0
- package/lib/index.js +4 -2
- package/lib/types.d.ts +15 -6
- package/package.json +1 -1
- package/src/index.js +3 -1
- package/src/types.js +13 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaspack/feature-flags
|
|
2
2
|
|
|
3
|
+
## 2.19.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#706](https://github.com/atlassian-labs/atlaspack/pull/706) [`1c7865a`](https://github.com/atlassian-labs/atlaspack/commit/1c7865a64451116d94015e248302435839d347c0) Thanks [@yamadapc](https://github.com/yamadapc)! - Clean-up feature-flag
|
|
8
|
+
|
|
9
|
+
- [#707](https://github.com/atlassian-labs/atlaspack/pull/707) [`a0b959f`](https://github.com/atlassian-labs/atlaspack/commit/a0b959fbf61fc3f820ff03c7e8988945fe40a91a) Thanks [@yamadapc](https://github.com/yamadapc)! - Fix content key not found exceptions when bundling is aborted after a unsafe to incrementally bundle asset graph request
|
|
10
|
+
|
|
11
|
+
## 2.19.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#692](https://github.com/atlassian-labs/atlaspack/pull/692) [`13aef17`](https://github.com/atlassian-labs/atlaspack/commit/13aef177eea289a6e40d2113b5ec1ac9be18a33d) Thanks [@JakeLane](https://github.com/JakeLane)! - Add fallback behaviour when conditional bundle is missing
|
|
16
|
+
|
|
3
17
|
## 2.19.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/lib/index.js
CHANGED
|
@@ -19,7 +19,6 @@ const DEFAULT_FEATURE_FLAGS = exports.DEFAULT_FEATURE_FLAGS = {
|
|
|
19
19
|
importRetry: false,
|
|
20
20
|
fixQuadraticCacheInvalidation: 'OLD',
|
|
21
21
|
conditionalBundlingApi: false,
|
|
22
|
-
inlineRequiresMultiThreading: false,
|
|
23
22
|
vcsMode: 'OLD',
|
|
24
23
|
loadableSideEffects: false,
|
|
25
24
|
reduceResolverStringCreation: false,
|
|
@@ -37,7 +36,10 @@ const DEFAULT_FEATURE_FLAGS = exports.DEFAULT_FEATURE_FLAGS = {
|
|
|
37
36
|
atlaspackV3CleanShutdown: false,
|
|
38
37
|
unusedComputedPropertyFix: process.env.NODE_ENV === 'test',
|
|
39
38
|
emptyFileStarRexportFix: process.env.NODE_ENV === 'test',
|
|
40
|
-
cliProgressReportingImprovements: false
|
|
39
|
+
cliProgressReportingImprovements: false,
|
|
40
|
+
condbDevFallbackDev: false,
|
|
41
|
+
condbDevFallbackProd: false,
|
|
42
|
+
incrementalBundlingVersioning: process.env.NODE_ENV === 'test'
|
|
41
43
|
};
|
|
42
44
|
let featureFlagValues = {
|
|
43
45
|
...DEFAULT_FEATURE_FLAGS
|
package/lib/types.d.ts
CHANGED
|
@@ -31,11 +31,6 @@ export type FeatureFlags = {
|
|
|
31
31
|
*/
|
|
32
32
|
conditionalBundlingApi: boolean;
|
|
33
33
|
|
|
34
|
-
/**
|
|
35
|
-
* Run inline requires optimizer in the rayon thread pool.
|
|
36
|
-
*/
|
|
37
|
-
inlineRequiresMultiThreading: boolean;
|
|
38
|
-
|
|
39
34
|
/**
|
|
40
35
|
* Enable VCS mode. Expected values are:
|
|
41
36
|
* - OLD - default value, return watchman result
|
|
@@ -125,7 +120,7 @@ export type FeatureFlags = {
|
|
|
125
120
|
unusedComputedPropertyFix: boolean;
|
|
126
121
|
|
|
127
122
|
/**
|
|
128
|
-
* Fixes an issue where star re-exports of empty files (usually
|
|
123
|
+
* Fixes an issue where star re-exports of empty files (usually occurring in compiled typescript libraries)
|
|
129
124
|
* could cause exports to undefined at runtime.
|
|
130
125
|
*/
|
|
131
126
|
emptyFileStarRexportFix: boolean;
|
|
@@ -134,6 +129,20 @@ export type FeatureFlags = {
|
|
|
134
129
|
* Enables the new packaging progress CLI experience
|
|
135
130
|
*/
|
|
136
131
|
cliProgressReportingImprovements: boolean;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Enable a change to the conditional bundling loader to use a fallback bundle loading if the expected scripts aren't found
|
|
135
|
+
*
|
|
136
|
+
* Split into two flags, to allow usage in the dev or prod packagers separately
|
|
137
|
+
*/
|
|
138
|
+
condbDevFallbackDev: boolean;
|
|
139
|
+
condbDevFallbackProd: boolean;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Enable the new incremental bundling versioning logic which determines whether
|
|
143
|
+
* a full bundling pass is required based on the AssetGraph's bundlingVersion.
|
|
144
|
+
*/
|
|
145
|
+
incrementalBundlingVersioning: boolean;
|
|
137
146
|
};
|
|
138
147
|
export declare var CONSISTENCY_CHECK_VALUES: ReadonlyArray<string>;
|
|
139
148
|
export type ConsistencyCheckFeatureFlagValue = $ElementType<typeof CONSISTENCY_CHECK_VALUES, number>;
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -20,7 +20,6 @@ export const DEFAULT_FEATURE_FLAGS: FeatureFlags = {
|
|
|
20
20
|
importRetry: false,
|
|
21
21
|
fixQuadraticCacheInvalidation: 'OLD',
|
|
22
22
|
conditionalBundlingApi: false,
|
|
23
|
-
inlineRequiresMultiThreading: false,
|
|
24
23
|
vcsMode: 'OLD',
|
|
25
24
|
loadableSideEffects: false,
|
|
26
25
|
reduceResolverStringCreation: false,
|
|
@@ -39,6 +38,9 @@ export const DEFAULT_FEATURE_FLAGS: FeatureFlags = {
|
|
|
39
38
|
unusedComputedPropertyFix: process.env.NODE_ENV === 'test',
|
|
40
39
|
emptyFileStarRexportFix: process.env.NODE_ENV === 'test',
|
|
41
40
|
cliProgressReportingImprovements: false,
|
|
41
|
+
condbDevFallbackDev: false,
|
|
42
|
+
condbDevFallbackProd: false,
|
|
43
|
+
incrementalBundlingVersioning: process.env.NODE_ENV === 'test',
|
|
42
44
|
};
|
|
43
45
|
|
|
44
46
|
let featureFlagValues: FeatureFlags = {...DEFAULT_FEATURE_FLAGS};
|
package/src/types.js
CHANGED
|
@@ -26,10 +26,6 @@ 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,
|
|
33
29
|
/**
|
|
34
30
|
* Enable VCS mode. Expected values are:
|
|
35
31
|
* - OLD - default value, return watchman result
|
|
@@ -105,7 +101,7 @@ export type FeatureFlags = {|
|
|
|
105
101
|
unusedComputedPropertyFix: boolean,
|
|
106
102
|
|
|
107
103
|
/**
|
|
108
|
-
* Fixes an issue where star re-exports of empty files (usually
|
|
104
|
+
* Fixes an issue where star re-exports of empty files (usually occurring in compiled typescript libraries)
|
|
109
105
|
* could cause exports to undefined at runtime.
|
|
110
106
|
*/
|
|
111
107
|
emptyFileStarRexportFix: boolean,
|
|
@@ -114,6 +110,18 @@ export type FeatureFlags = {|
|
|
|
114
110
|
* Enables the new packaging progress CLI experience
|
|
115
111
|
*/
|
|
116
112
|
cliProgressReportingImprovements: boolean,
|
|
113
|
+
/**
|
|
114
|
+
* Enable a change to the conditional bundling loader to use a fallback bundle loading if the expected scripts aren't found
|
|
115
|
+
*
|
|
116
|
+
* Split into two flags, to allow usage in the dev or prod packagers separately
|
|
117
|
+
*/
|
|
118
|
+
condbDevFallbackDev: boolean,
|
|
119
|
+
condbDevFallbackProd: boolean,
|
|
120
|
+
/**
|
|
121
|
+
* Enable the new incremental bundling versioning logic which determines whether
|
|
122
|
+
* a full bundling pass is required based on the AssetGraph's bundlingVersion.
|
|
123
|
+
*/
|
|
124
|
+
incrementalBundlingVersioning: boolean,
|
|
117
125
|
|};
|
|
118
126
|
|
|
119
127
|
declare export var CONSISTENCY_CHECK_VALUES: $ReadOnlyArray<string>;
|