@atlaspack/feature-flags 2.13.2-dev.3689 → 2.14.1-canary.10

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,29 @@
1
1
  # @atlaspack/feature-flags
2
2
 
3
+ ## 2.14.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#339](https://github.com/atlassian-labs/atlaspack/pull/339) [`bfe81e5`](https://github.com/atlassian-labs/atlaspack/commit/bfe81e551c4e4bb2cac7fc4745222e66962c1728) Thanks [@yamadapc](https://github.com/yamadapc)! - Update cache invalidation metrics with build type
8
+
9
+ - [#352](https://github.com/atlassian-labs/atlaspack/pull/352) [`e962cd7`](https://github.com/atlassian-labs/atlaspack/commit/e962cd735877f7f16163e60868d70d9c10054ebe) Thanks [@pancaspe87](https://github.com/pancaspe87)! - Introduced new method to return feature flag value
10
+
11
+ - [#358](https://github.com/atlassian-labs/atlaspack/pull/358) [`7e21377`](https://github.com/atlassian-labs/atlaspack/commit/7e21377914e8091d484f67cb11052a1efd2227e3) Thanks [@benjervis](https://github.com/benjervis)! - Add a new feature flag to enable the side effect scanning
12
+
13
+ ### Patch Changes
14
+
15
+ - [#413](https://github.com/atlassian-labs/atlaspack/pull/413) [`1953d1b`](https://github.com/atlassian-labs/atlaspack/commit/1953d1bec266a39dc4bfce5f6c7959e77e63411e) Thanks [@pancaspe87](https://github.com/pancaspe87)! - Patch absolute paths
16
+
17
+ - [#378](https://github.com/atlassian-labs/atlaspack/pull/378) [`ce4ce95`](https://github.com/atlassian-labs/atlaspack/commit/ce4ce953914e08991cf58c70c98f758690e5ee21) Thanks [@yamadapc](https://github.com/yamadapc)! - Add feature-flagged optimization to resolver specifier handling
18
+
19
+ - [#379](https://github.com/atlassian-labs/atlaspack/pull/379) [`8bc3db9`](https://github.com/atlassian-labs/atlaspack/commit/8bc3db94cc7382b22ca8207c92af8f6389c17e2e) Thanks [@JakeLane](https://github.com/JakeLane)! - Support nested conditional imports in runtime for dynamic import edges in graph. Introduces a new feature flag `conditionalBundlingNestedRuntime`
20
+
21
+ - [#429](https://github.com/atlassian-labs/atlaspack/pull/429) [`4837b69`](https://github.com/atlassian-labs/atlaspack/commit/4837b6988e56ca842a24797b796160964d3696ce) Thanks [@mattcompiles](https://github.com/mattcompiles)! - Increase performance of inline bundle packaging (enabled via `featureFlags.inlineStringReplacementPerf`)
22
+
23
+ - [#415](https://github.com/atlassian-labs/atlaspack/pull/415) [`43113f8`](https://github.com/atlassian-labs/atlaspack/commit/43113f8f00232c5a52169a3f11f846d6e4d94b0a) Thanks [@yamadapc](https://github.com/yamadapc)! - Add feature-flag to fix supporting source-maps for inline bundles
24
+
25
+ - [#414](https://github.com/atlassian-labs/atlaspack/pull/414) [`eff9809`](https://github.com/atlassian-labs/atlaspack/commit/eff98093703b9999a511b87a19562f5aaccfcb53) Thanks [@alshdavid](https://github.com/alshdavid)! - Added type:commonjs to package.json files
26
+
3
27
  ## 2.13.1
4
28
 
5
29
  ### Patch Changes
package/lib/index.js CHANGED
@@ -22,7 +22,10 @@ const DEFAULT_FEATURE_FLAGS = exports.DEFAULT_FEATURE_FLAGS = {
22
22
  vcsMode: 'OLD',
23
23
  loadableSideEffects: false,
24
24
  reduceResolverStringCreation: false,
25
- patchProjectPaths: false
25
+ inlineBundlesSourceMapFixes: false,
26
+ conditionalBundlingNestedRuntime: false,
27
+ patchProjectPaths: false,
28
+ inlineStringReplacementPerf: false
26
29
  };
27
30
  let featureFlagValues = {
28
31
  ...DEFAULT_FEATURE_FLAGS
package/lib/types.d.ts CHANGED
@@ -55,9 +55,24 @@ export type FeatureFlags = {
55
55
  reduceResolverStringCreation: boolean;
56
56
 
57
57
  /**
58
- * Enable patch project paths. This will patch the project paths to be relative to the project root.
58
+ * Fixes source maps for inline bundles
59
+ */
60
+ inlineBundlesSourceMapFixes: boolean;
61
+
62
+ /**
63
+ * Enable nested loading of bundles in the runtime with conditional bundling
64
+ */
65
+ conditionalBundlingNestedRuntime: boolean;
66
+
67
+ /** Enable patch project paths. This will patch the project paths to be relative to the project root.
59
68
  * This feature is experimental and should not be used in production. It will used to test downloadble cache artefacts.
60
69
  */
61
70
  patchProjectPaths: boolean;
71
+
72
+ /**
73
+ * Enables optimized inline string replacement perf for the packager.
74
+ * Used heavily for inline bundles.
75
+ */
76
+ inlineStringReplacementPerf: boolean;
62
77
  };
63
78
  export type ConsistencyCheckFeatureFlagValue = "NEW" | "OLD" | "NEW_AND_CHECK" | "OLD_AND_CHECK";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/feature-flags",
3
- "version": "2.13.2-dev.3689+7a2e6e783",
3
+ "version": "2.14.1-canary.10+3b66d6b4b",
4
4
  "description": "Provides internal feature-flags for the atlaspack codebase.",
5
5
  "license": "(MIT OR Apache-2.0)",
6
6
  "publishConfig": {
@@ -20,5 +20,6 @@
20
20
  "engines": {
21
21
  "node": ">= 16.0.0"
22
22
  },
23
- "gitHead": "7a2e6e7835fa846b27021b374097c6a4f37541ba"
23
+ "type": "commonjs",
24
+ "gitHead": "3b66d6b4bfd652ab3b41e86aacf3e47d39cd5a70"
24
25
  }
package/src/index.js CHANGED
@@ -17,7 +17,10 @@ export const DEFAULT_FEATURE_FLAGS: FeatureFlags = {
17
17
  vcsMode: 'OLD',
18
18
  loadableSideEffects: false,
19
19
  reduceResolverStringCreation: false,
20
+ inlineBundlesSourceMapFixes: false,
21
+ conditionalBundlingNestedRuntime: false,
20
22
  patchProjectPaths: false,
23
+ inlineStringReplacementPerf: false,
21
24
  };
22
25
 
23
26
  let featureFlagValues: FeatureFlags = {...DEFAULT_FEATURE_FLAGS};
package/src/types.js CHANGED
@@ -47,10 +47,23 @@ export type FeatureFlags = {|
47
47
  */
48
48
  reduceResolverStringCreation: boolean,
49
49
  /**
50
- * Enable patch project paths. This will patch the project paths to be relative to the project root.
50
+ * Fixes source maps for inline bundles
51
+ */
52
+ inlineBundlesSourceMapFixes: boolean,
53
+ /**
54
+ * Enable nested loading of bundles in the runtime with conditional bundling
55
+ */
56
+ conditionalBundlingNestedRuntime: boolean,
57
+ /** Enable patch project paths. This will patch the project paths to be relative to the project root.
51
58
  * This feature is experimental and should not be used in production. It will used to test downloadble cache artefacts.
52
59
  */
53
60
  patchProjectPaths: boolean,
61
+
62
+ /**
63
+ * Enables optimized inline string replacement perf for the packager.
64
+ * Used heavily for inline bundles.
65
+ */
66
+ inlineStringReplacementPerf: boolean,
54
67
  |};
55
68
 
56
69
  export type ConsistencyCheckFeatureFlagValue =