posthog-node 5.51.2 → 5.51.3

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.
@@ -262,7 +262,10 @@ class FeatureFlagsPoller {
262
262
  result = variantOverride && flagVariants.some((variant)=>variant.key === variantOverride) ? variantOverride : await this.getMatchingVariant(flag, effectiveBucketingValue) || true;
263
263
  break;
264
264
  }
265
- if (earlyExitEnabled && 'out_of_rollout_bound' === matchResult) return false;
265
+ if (earlyExitEnabled && 'out_of_rollout_bound' === matchResult) {
266
+ if (isInconclusive) break;
267
+ return false;
268
+ }
266
269
  } catch (e) {
267
270
  if (e instanceof RequiresServerEvaluation) throw e;
268
271
  if (e instanceof core_namespaceObject.InconclusiveMatchError) isInconclusive = true;
@@ -228,7 +228,10 @@ class FeatureFlagsPoller {
228
228
  result = variantOverride && flagVariants.some((variant)=>variant.key === variantOverride) ? variantOverride : await this.getMatchingVariant(flag, effectiveBucketingValue) || true;
229
229
  break;
230
230
  }
231
- if (earlyExitEnabled && 'out_of_rollout_bound' === matchResult) return false;
231
+ if (earlyExitEnabled && 'out_of_rollout_bound' === matchResult) {
232
+ if (isInconclusive) break;
233
+ return false;
234
+ }
232
235
  } catch (e) {
233
236
  if (e instanceof RequiresServerEvaluation) throw e;
234
237
  if (e instanceof InconclusiveMatchError) isInconclusive = true;
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const version = "5.51.2";
1
+ export declare const version = "5.51.3";
2
2
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -26,7 +26,7 @@ __webpack_require__.r(__webpack_exports__);
26
26
  __webpack_require__.d(__webpack_exports__, {
27
27
  version: ()=>version
28
28
  });
29
- const version = '5.51.2';
29
+ const version = '5.51.3';
30
30
  exports.version = __webpack_exports__.version;
31
31
  for(var __webpack_i__ in __webpack_exports__)if (-1 === [
32
32
  "version"
package/dist/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- const version = '5.51.2';
1
+ const version = '5.51.3';
2
2
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "posthog-node",
3
- "version": "5.51.2",
3
+ "version": "5.51.3",
4
4
  "bugs": {
5
5
  "url": "https://github.com/PostHog/posthog-js/issues"
6
6
  },
@@ -28,7 +28,7 @@
28
28
  "module": "dist/entrypoints/index.node.mjs",
29
29
  "types": "dist/entrypoints/index.node.d.ts",
30
30
  "dependencies": {
31
- "@posthog/core": "^1.48.11"
31
+ "@posthog/core": "^1.48.12"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@edge-runtime/jest-environment": "^4.0.0",
@@ -533,11 +533,11 @@ class FeatureFlagsPoller {
533
533
  break
534
534
  } else if (earlyExitEnabled && matchResult === 'out_of_rollout_bound') {
535
535
  // The condition's property filters (if any) matched and only the rollout check failed,
536
- // so re-evaluating later groups can't change the outcome. Return a deterministic false,
537
- // mirroring the server-side engine. `isInconclusive` could theoretically be true here
538
- // (an earlier group threw InconclusiveMatchError while this group evaluated cleanly), but
539
- // in practice early_exit is only set on flags whose groups are all locally evaluable, so
540
- // this combination does not arise.
536
+ // so re-evaluating later groups can't change the outcome. If an earlier condition was
537
+ // inconclusive, stop here but preserve that result so the caller can fall back remotely.
538
+ if (isInconclusive) {
539
+ break
540
+ }
541
541
  return false
542
542
  }
543
543
  } catch (e) {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '5.51.2'
1
+ export const version = '5.51.3'