@featurevisor/core 0.64.1 → 0.64.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@featurevisor/core",
3
- "version": "0.64.1",
3
+ "version": "0.64.2",
4
4
  "description": "Core package of Featurevisor for Node.js usage",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -57,5 +57,5 @@
57
57
  "@types/js-yaml": "^4.0.5",
58
58
  "@types/tar": "^6.1.4"
59
59
  },
60
- "gitHead": "4b64d98c5d9e2ece10b2e03b34e63838b4335750"
60
+ "gitHead": "7d9cd4515e1e871e146aec5faca70156e2b7f16f"
61
61
  }
@@ -8,6 +8,13 @@ export function detectIfVariationsChanged(
8
8
  existingFeature?: ExistingFeature, // from state file
9
9
  ): boolean {
10
10
  if (!existingFeature || typeof existingFeature.variations === "undefined") {
11
+ if (Array.isArray(yamlVariations) && yamlVariations.length > 0) {
12
+ // feature did not previously have any variations,
13
+ // but now variations have been added
14
+ return true;
15
+ }
16
+
17
+ // variations didn't exist before, and not even now
11
18
  return false;
12
19
  }
13
20