@atlaspack/feature-flags 2.19.0 → 2.19.1
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 +6 -0
- package/lib/index.js +3 -1
- package/lib/types.d.ts +9 -1
- package/package.json +1 -1
- package/src/index.js +2 -0
- package/src/types.js +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaspack/feature-flags
|
|
2
2
|
|
|
3
|
+
## 2.19.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#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
|
|
8
|
+
|
|
3
9
|
## 2.19.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/lib/index.js
CHANGED
|
@@ -37,7 +37,9 @@ const DEFAULT_FEATURE_FLAGS = exports.DEFAULT_FEATURE_FLAGS = {
|
|
|
37
37
|
atlaspackV3CleanShutdown: false,
|
|
38
38
|
unusedComputedPropertyFix: process.env.NODE_ENV === 'test',
|
|
39
39
|
emptyFileStarRexportFix: process.env.NODE_ENV === 'test',
|
|
40
|
-
cliProgressReportingImprovements: false
|
|
40
|
+
cliProgressReportingImprovements: false,
|
|
41
|
+
condbDevFallbackDev: false,
|
|
42
|
+
condbDevFallbackProd: false
|
|
41
43
|
};
|
|
42
44
|
let featureFlagValues = {
|
|
43
45
|
...DEFAULT_FEATURE_FLAGS
|
package/lib/types.d.ts
CHANGED
|
@@ -125,7 +125,7 @@ export type FeatureFlags = {
|
|
|
125
125
|
unusedComputedPropertyFix: boolean;
|
|
126
126
|
|
|
127
127
|
/**
|
|
128
|
-
* Fixes an issue where star re-exports of empty files (usually
|
|
128
|
+
* Fixes an issue where star re-exports of empty files (usually occurring in compiled typescript libraries)
|
|
129
129
|
* could cause exports to undefined at runtime.
|
|
130
130
|
*/
|
|
131
131
|
emptyFileStarRexportFix: boolean;
|
|
@@ -134,6 +134,14 @@ export type FeatureFlags = {
|
|
|
134
134
|
* Enables the new packaging progress CLI experience
|
|
135
135
|
*/
|
|
136
136
|
cliProgressReportingImprovements: boolean;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Enable a change to the conditional bundling loader to use a fallback bundle loading if the expected scripts aren't found
|
|
140
|
+
*
|
|
141
|
+
* Split into two flags, to allow usage in the dev or prod packagers separately
|
|
142
|
+
*/
|
|
143
|
+
condbDevFallbackDev: boolean;
|
|
144
|
+
condbDevFallbackProd: boolean;
|
|
137
145
|
};
|
|
138
146
|
export declare var CONSISTENCY_CHECK_VALUES: ReadonlyArray<string>;
|
|
139
147
|
export type ConsistencyCheckFeatureFlagValue = $ElementType<typeof CONSISTENCY_CHECK_VALUES, number>;
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -39,6 +39,8 @@ export const DEFAULT_FEATURE_FLAGS: FeatureFlags = {
|
|
|
39
39
|
unusedComputedPropertyFix: process.env.NODE_ENV === 'test',
|
|
40
40
|
emptyFileStarRexportFix: process.env.NODE_ENV === 'test',
|
|
41
41
|
cliProgressReportingImprovements: false,
|
|
42
|
+
condbDevFallbackDev: false,
|
|
43
|
+
condbDevFallbackProd: false,
|
|
42
44
|
};
|
|
43
45
|
|
|
44
46
|
let featureFlagValues: FeatureFlags = {...DEFAULT_FEATURE_FLAGS};
|
package/src/types.js
CHANGED
|
@@ -105,7 +105,7 @@ export type FeatureFlags = {|
|
|
|
105
105
|
unusedComputedPropertyFix: boolean,
|
|
106
106
|
|
|
107
107
|
/**
|
|
108
|
-
* Fixes an issue where star re-exports of empty files (usually
|
|
108
|
+
* Fixes an issue where star re-exports of empty files (usually occurring in compiled typescript libraries)
|
|
109
109
|
* could cause exports to undefined at runtime.
|
|
110
110
|
*/
|
|
111
111
|
emptyFileStarRexportFix: boolean,
|
|
@@ -114,6 +114,13 @@ export type FeatureFlags = {|
|
|
|
114
114
|
* Enables the new packaging progress CLI experience
|
|
115
115
|
*/
|
|
116
116
|
cliProgressReportingImprovements: boolean,
|
|
117
|
+
/**
|
|
118
|
+
* Enable a change to the conditional bundling loader to use a fallback bundle loading if the expected scripts aren't found
|
|
119
|
+
*
|
|
120
|
+
* Split into two flags, to allow usage in the dev or prod packagers separately
|
|
121
|
+
*/
|
|
122
|
+
condbDevFallbackDev: boolean,
|
|
123
|
+
condbDevFallbackProd: boolean,
|
|
117
124
|
|};
|
|
118
125
|
|
|
119
126
|
declare export var CONSISTENCY_CHECK_VALUES: $ReadOnlyArray<string>;
|