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.
- package/CHANGELOG.md +4 -0
- package/lib/edge/index.cjs +10 -2
- package/lib/edge/index.cjs.map +1 -1
- package/lib/edge/index.mjs +10 -2
- package/lib/edge/index.mjs.map +1 -1
- package/lib/node/index.cjs +10 -2
- package/lib/node/index.cjs.map +1 -1
- package/lib/node/index.mjs +10 -2
- package/lib/node/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/node/index.mjs
CHANGED
|
@@ -1320,7 +1320,7 @@ function snipLine(line, colno) {
|
|
|
1320
1320
|
return newLine;
|
|
1321
1321
|
}
|
|
1322
1322
|
|
|
1323
|
-
var version = "5.5.
|
|
1323
|
+
var version = "5.5.1";
|
|
1324
1324
|
|
|
1325
1325
|
var PostHogPersistedProperty;
|
|
1326
1326
|
(function (PostHogPersistedProperty) {
|
|
@@ -2615,7 +2615,7 @@ class FeatureFlagsPoller {
|
|
|
2615
2615
|
}
|
|
2616
2616
|
} catch (e) {
|
|
2617
2617
|
if (e instanceof InconclusiveMatchError) {
|
|
2618
|
-
this.
|
|
2618
|
+
this.logMsgIfDebug(() => console.debug(`InconclusiveMatchError when computing flag locally: ${flag.key}: ${e}`));
|
|
2619
2619
|
} else if (e instanceof Error) {
|
|
2620
2620
|
this.onError?.(new Error(`Error computing flag locally: ${flag.key}: ${e}`));
|
|
2621
2621
|
}
|
|
@@ -2712,6 +2712,9 @@ class FeatureFlagsPoller {
|
|
|
2712
2712
|
let matches = false;
|
|
2713
2713
|
if (propertyType === 'cohort') {
|
|
2714
2714
|
matches = matchCohort(prop, properties, this.cohorts, this.debugMode);
|
|
2715
|
+
} else if (propertyType === 'flag') {
|
|
2716
|
+
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'}'`));
|
|
2717
|
+
continue;
|
|
2715
2718
|
} else {
|
|
2716
2719
|
matches = matchProperty(prop, properties, warnFunction);
|
|
2717
2720
|
}
|
|
@@ -3049,6 +3052,11 @@ function matchPropertyGroup(propertyGroup, propertyValues, cohortProperties, deb
|
|
|
3049
3052
|
let matches;
|
|
3050
3053
|
if (prop.type === 'cohort') {
|
|
3051
3054
|
matches = matchCohort(prop, propertyValues, cohortProperties, debugMode);
|
|
3055
|
+
} else if (prop.type === 'flag') {
|
|
3056
|
+
if (debugMode) {
|
|
3057
|
+
console.warn(`[FEATURE FLAGS] Flag dependency filters are not supported in local evaluation. ` + `Skipping condition with dependency on flag '${prop.key || 'unknown'}'`);
|
|
3058
|
+
}
|
|
3059
|
+
continue;
|
|
3052
3060
|
} else {
|
|
3053
3061
|
matches = matchProperty(prop, propertyValues);
|
|
3054
3062
|
}
|