Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: PostHog/posthog-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v7.9.4
Choose a base ref
...
head repository: PostHog/posthog-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v7.9.5
Choose a head ref
  • 2 commits
  • 6 files changed
  • 3 contributors

Commits on Mar 2, 2026

  1. feat: add semver targeting support to local flag evaluation (#447)

    * feat: add semver targeting support to local flag evaluation
    
    Implement 9 semver comparison operators (semver_eq, semver_neq, semver_gt, semver_gte, semver_lt, semver_lte, semver_tilde, semver_caret, semver_wildcard) for feature flag local evaluation. Uses regex-based parsing that matches the server-side sortableSemver behavior to handle v-prefix, whitespace, pre-release suffixes, and non-standard version formats.
    
    Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
    
    * fix: guard against ReDoS in semver regex parsing
    
    Add input length limit before regex search to prevent polynomial
    backtracking on adversarial input (CodeQL py/polynomial-redos).
    
    * fix: replace regex with string parsing to resolve ReDoS warning
    
    Replace SEMVER_EXTRACT_RE regex with simple string splitting to
    eliminate nested quantifiers that CodeQL flagged as polynomial-redos.
    
    * refactor: inline semver operator tuple to match existing patterns
    
    * add changeset
    
    ---------
    
    Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
    dmarticus and claude authored Mar 2, 2026
    Configuration menu
    Copy the full SHA
    830244b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1e1e566 View commit details
    Browse the repository at this point in the history
Loading