@atlaspack/feature-flags 2.22.0 → 2.23.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaspack/feature-flags
2
2
 
3
+ ## 2.23.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#745](https://github.com/atlassian-labs/atlaspack/pull/745) [`f6b3f22`](https://github.com/atlassian-labs/atlaspack/commit/f6b3f2276c7e417580b49c4879563aab51f156b1) Thanks [@matt-koko](https://github.com/matt-koko)! - Use ATLASPACK_BUILD_ENV instead of NODE_ENV to determine if Atlaspack is being run in the context of Atlaspack tests.
8
+
3
9
  ## 2.22.0
4
10
 
5
11
  ### Minor Changes
package/lib/index.js CHANGED
@@ -50,7 +50,7 @@ const DEFAULT_FEATURE_FLAGS = exports.DEFAULT_FEATURE_FLAGS = {
50
50
  * - Remove "large file blob" writes
51
51
  * - Reduce size of the caches by deduplicating data
52
52
  */
53
- cachePerformanceImprovements: process.env.NODE_ENV === 'test',
53
+ cachePerformanceImprovements: process.env.ATLASPACK_BUILD_ENV === 'test',
54
54
  /**
55
55
  * Deduplicates environments across cache / memory entities
56
56
  */
@@ -106,12 +106,12 @@ const DEFAULT_FEATURE_FLAGS = exports.DEFAULT_FEATURE_FLAGS = {
106
106
  * properties (e.g. `CONSTANTS['api_' + endpoint`]) would not be recognised as
107
107
  * being used, and thus not included in the bundle.
108
108
  */
109
- unusedComputedPropertyFix: process.env.NODE_ENV === 'test',
109
+ unusedComputedPropertyFix: process.env.ATLASPACK_BUILD_ENV === 'test',
110
110
  /**
111
111
  * Fixes an issue where star re-exports of empty files (usually occurring in compiled typescript libraries)
112
112
  * could cause exports to undefined at runtime.
113
113
  */
114
- emptyFileStarRexportFix: process.env.NODE_ENV === 'test',
114
+ emptyFileStarRexportFix: process.env.ATLASPACK_BUILD_ENV === 'test',
115
115
  /**
116
116
  * Enables the new packaging progress CLI experience
117
117
  */
@@ -120,7 +120,7 @@ const DEFAULT_FEATURE_FLAGS = exports.DEFAULT_FEATURE_FLAGS = {
120
120
  * Adds support for `webpackChunkName` comments in dynamic imports.
121
121
  * Imports with the same `webpackChunkName` will be bundled together.
122
122
  */
123
- supportWebpackChunkName: process.env.NODE_ENV === 'test',
123
+ supportWebpackChunkName: process.env.ATLASPACK_BUILD_ENV === 'test',
124
124
  /**
125
125
  * Enable a change to the conditional bundling loader to use a fallback bundle loading if the expected scripts aren't found
126
126
  *
@@ -132,12 +132,12 @@ const DEFAULT_FEATURE_FLAGS = exports.DEFAULT_FEATURE_FLAGS = {
132
132
  * Enable the new incremental bundling versioning logic which determines whether
133
133
  * a full bundling pass is required based on the AssetGraph's bundlingVersion.
134
134
  */
135
- incrementalBundlingVersioning: process.env.NODE_ENV === 'test',
135
+ incrementalBundlingVersioning: process.env.ATLASPACK_BUILD_ENV === 'test',
136
136
  /**
137
137
  * Allow for the use of `data-atlaspack-isolated` on script tags in HTML to produce
138
138
  * inline scripts that are build as "isolated" bundles.
139
139
  */
140
- inlineIsolatedScripts: process.env.NODE_ENV === 'test'
140
+ inlineIsolatedScripts: process.env.ATLASPACK_BUILD_ENV === 'test'
141
141
  };
142
142
  let featureFlagValues = {
143
143
  ...DEFAULT_FEATURE_FLAGS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/feature-flags",
3
- "version": "2.22.0",
3
+ "version": "2.23.0",
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.ts CHANGED
@@ -56,7 +56,7 @@ export const DEFAULT_FEATURE_FLAGS = {
56
56
  * - Remove "large file blob" writes
57
57
  * - Reduce size of the caches by deduplicating data
58
58
  */
59
- cachePerformanceImprovements: process.env.NODE_ENV === 'test',
59
+ cachePerformanceImprovements: process.env.ATLASPACK_BUILD_ENV === 'test',
60
60
 
61
61
  /**
62
62
  * Deduplicates environments across cache / memory entities
@@ -124,13 +124,13 @@ export const DEFAULT_FEATURE_FLAGS = {
124
124
  * properties (e.g. `CONSTANTS['api_' + endpoint`]) would not be recognised as
125
125
  * being used, and thus not included in the bundle.
126
126
  */
127
- unusedComputedPropertyFix: process.env.NODE_ENV === 'test',
127
+ unusedComputedPropertyFix: process.env.ATLASPACK_BUILD_ENV === 'test',
128
128
 
129
129
  /**
130
130
  * Fixes an issue where star re-exports of empty files (usually occurring in compiled typescript libraries)
131
131
  * could cause exports to undefined at runtime.
132
132
  */
133
- emptyFileStarRexportFix: process.env.NODE_ENV === 'test',
133
+ emptyFileStarRexportFix: process.env.ATLASPACK_BUILD_ENV === 'test',
134
134
 
135
135
  /**
136
136
  * Enables the new packaging progress CLI experience
@@ -141,7 +141,7 @@ export const DEFAULT_FEATURE_FLAGS = {
141
141
  * Adds support for `webpackChunkName` comments in dynamic imports.
142
142
  * Imports with the same `webpackChunkName` will be bundled together.
143
143
  */
144
- supportWebpackChunkName: process.env.NODE_ENV === 'test',
144
+ supportWebpackChunkName: process.env.ATLASPACK_BUILD_ENV === 'test',
145
145
 
146
146
  /**
147
147
  * Enable a change to the conditional bundling loader to use a fallback bundle loading if the expected scripts aren't found
@@ -155,12 +155,12 @@ export const DEFAULT_FEATURE_FLAGS = {
155
155
  * Enable the new incremental bundling versioning logic which determines whether
156
156
  * a full bundling pass is required based on the AssetGraph's bundlingVersion.
157
157
  */
158
- incrementalBundlingVersioning: process.env.NODE_ENV === 'test',
158
+ incrementalBundlingVersioning: process.env.ATLASPACK_BUILD_ENV === 'test',
159
159
  /**
160
160
  * Allow for the use of `data-atlaspack-isolated` on script tags in HTML to produce
161
161
  * inline scripts that are build as "isolated" bundles.
162
162
  */
163
- inlineIsolatedScripts: process.env.NODE_ENV === 'test',
163
+ inlineIsolatedScripts: process.env.ATLASPACK_BUILD_ENV === 'test',
164
164
  };
165
165
 
166
166
  export type FeatureFlags = typeof DEFAULT_FEATURE_FLAGS;