Skip to content

posthog-js 1.311.0

1.311.0

Minor Changes

  • #2813 4b7443c Thanks @ordehi! - feat(flags): add updateFlags() method for injecting flags without network request

    Adds posthog.updateFlags(flags, payloads?, options?) to inject feature flag values from an external source (e.g., server-side evaluation, edge middleware) without making a network request. Supports { merge: true } option to merge with existing flags instead of replacing. (2025-12-29)