@atlaspack/feature-flags 2.20.1 → 2.21.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.21.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#731](https://github.com/atlassian-labs/atlaspack/pull/731) [`23d561e`](https://github.com/atlassian-labs/atlaspack/commit/23d561e51e68b0c38fd1ff4e4fb173e5e7b01cf2) Thanks [@marcins](https://github.com/marcins)! - Implement "inline isolated" scripts
8
+
3
9
  ## 2.20.1
4
10
 
5
11
  ### Patch Changes
package/lib/index.d.ts CHANGED
@@ -118,6 +118,11 @@ export type FeatureFlags = {
118
118
  * a full bundling pass is required based on the AssetGraph's bundlingVersion.
119
119
  */
120
120
  incrementalBundlingVersioning: boolean;
121
+ /**
122
+ * Allow for the use of `data-atlaspack-isolated` on script tags in HTML to produce
123
+ * inline scripts that are build as "isolated" bundles.
124
+ */
125
+ inlineIsolatedScripts: boolean;
121
126
  };
122
127
  export type ConsistencyCheckFeatureFlagValue = (typeof CONSISTENCY_CHECK_VALUES)[number];
123
128
  export declare const CONSISTENCY_CHECK_VALUES: ReadonlyArray<string>;
package/lib/index.js CHANGED
@@ -39,7 +39,8 @@ const DEFAULT_FEATURE_FLAGS = exports.DEFAULT_FEATURE_FLAGS = {
39
39
  supportWebpackChunkName: process.env.NODE_ENV === 'test',
40
40
  condbDevFallbackDev: false,
41
41
  condbDevFallbackProd: false,
42
- incrementalBundlingVersioning: process.env.NODE_ENV === 'test'
42
+ incrementalBundlingVersioning: process.env.NODE_ENV === 'test',
43
+ inlineIsolatedScripts: process.env.NODE_ENV === 'test'
43
44
  };
44
45
  let featureFlagValues = {
45
46
  ...DEFAULT_FEATURE_FLAGS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/feature-flags",
3
- "version": "2.20.1",
3
+ "version": "2.21.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
@@ -145,6 +145,12 @@ export type FeatureFlags = {
145
145
  * a full bundling pass is required based on the AssetGraph's bundlingVersion.
146
146
  */
147
147
  incrementalBundlingVersioning: boolean;
148
+
149
+ /**
150
+ * Allow for the use of `data-atlaspack-isolated` on script tags in HTML to produce
151
+ * inline scripts that are build as "isolated" bundles.
152
+ */
153
+ inlineIsolatedScripts: boolean;
148
154
  };
149
155
 
150
156
  export type ConsistencyCheckFeatureFlagValue =
@@ -186,6 +192,7 @@ export const DEFAULT_FEATURE_FLAGS: FeatureFlags = {
186
192
  condbDevFallbackDev: false,
187
193
  condbDevFallbackProd: false,
188
194
  incrementalBundlingVersioning: process.env.NODE_ENV === 'test',
195
+ inlineIsolatedScripts: process.env.NODE_ENV === 'test',
189
196
  };
190
197
 
191
198
  let featureFlagValues: FeatureFlags = {...DEFAULT_FEATURE_FLAGS};