posthog-node 5.5.0 → 5.5.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.
@@ -1342,7 +1342,7 @@ function snipLine(line, colno) {
1342
1342
  return newLine;
1343
1343
  }
1344
1344
 
1345
- var version = "5.5.0";
1345
+ var version = "5.5.1";
1346
1346
 
1347
1347
  var PostHogPersistedProperty;
1348
1348
  (function (PostHogPersistedProperty) {
@@ -2637,7 +2637,7 @@ class FeatureFlagsPoller {
2637
2637
  }
2638
2638
  } catch (e) {
2639
2639
  if (e instanceof InconclusiveMatchError) {
2640
- this.onError?.(new Error(`Unable to compute flag locally: ${flag.key} - ${e.message}`));
2640
+ this.logMsgIfDebug(() => console.debug(`InconclusiveMatchError when computing flag locally: ${flag.key}: ${e}`));
2641
2641
  } else if (e instanceof Error) {
2642
2642
  this.onError?.(new Error(`Error computing flag locally: ${flag.key}: ${e}`));
2643
2643
  }
@@ -2734,6 +2734,9 @@ class FeatureFlagsPoller {
2734
2734
  let matches = false;
2735
2735
  if (propertyType === 'cohort') {
2736
2736
  matches = matchCohort(prop, properties, this.cohorts, this.debugMode);
2737
+ } else if (propertyType === 'flag') {
2738
+ this.logMsgIfDebug(() => console.warn(`[FEATURE FLAGS] Flag dependency filters are not supported in local evaluation. ` + `Skipping condition for flag '${flag.key}' with dependency on flag '${prop.key || 'unknown'}'`));
2739
+ continue;
2737
2740
  } else {
2738
2741
  matches = matchProperty(prop, properties, warnFunction);
2739
2742
  }
@@ -3071,6 +3074,11 @@ function matchPropertyGroup(propertyGroup, propertyValues, cohortProperties, deb
3071
3074
  let matches;
3072
3075
  if (prop.type === 'cohort') {
3073
3076
  matches = matchCohort(prop, propertyValues, cohortProperties, debugMode);
3077
+ } else if (prop.type === 'flag') {
3078
+ if (debugMode) {
3079
+ console.warn(`[FEATURE FLAGS] Flag dependency filters are not supported in local evaluation. ` + `Skipping condition with dependency on flag '${prop.key || 'unknown'}'`);
3080
+ }
3081
+ continue;
3074
3082
  } else {
3075
3083
  matches = matchProperty(prop, propertyValues);
3076
3084
  }