github PostHog/posthog-js posthog-js-lite@4.7.0

latest releases: posthog-js@1.389.1, posthog-react-native@4.49.2, @posthog/core@1.35.1...
2 days ago

4.7.0

Minor Changes

  • #3848 bd07ec4 Thanks @turnipdabeets! - Add a disableRemoteFeatureFlags option and a public updateFlags(flags, payloads?, { merge }) method, for apps that evaluate feature flags outside the SDK (for example on their own backend) and want to supply the results at runtime instead of having the SDK fetch them.

    With disableRemoteFeatureFlags: true, the SDK no longer fetches or evaluates feature flags from PostHog — identify(), group(), and reset() stop triggering /flags requests — while getFeatureFlag() and getFeatureFlagPayload() keep working against the values you supply. Provide those values (with optional payloads) at runtime via updateFlags(flags, payloads?, { merge }); they persist across restarts. This mirrors the web SDK's advanced_disable_feature_flags and updateFlags. (2026-06-17)

Patch Changes

  • Updated dependencies [bd07ec4]:
    • @posthog/core@1.34.0

Don't miss a new posthog-js release

NewReleases is sending notifications on new releases.