Skip to content

Commit 4601bbc

Browse files
dmarticusclaude
andauthored
feat(flags): add semver targeting to local evaluation (#3186)
* add semver targeting to local evaluation * chore: add changeset for semver operators 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix: address PR feedback for semver operators - Remove unreachable dead code by replacing nested switch with individual case blocks for each semver comparison operator - Add explicit digit-only check in parsePart to reject malformed versions like '1.2.3alpha' (parseInt would silently truncate to 3) - Add test case for malformed version strings with trailing characters 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 7852a7c commit 4601bbc

File tree

3 files changed

+583
-0
lines changed

3 files changed

+583
-0
lines changed

.changeset/add-semver-operators.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'posthog-node': patch
3+
---
4+
5+
Add semver comparison operators to local feature flag evaluation: semver_eq, semver_neq, semver_gt, semver_gte, semver_lt, semver_lte, semver_tilde, semver_caret, and semver_wildcard

0 commit comments

Comments
 (0)