@posthog/core@1.34.0
1.34.0
Minor Changes
-
#3848
bd07ec4Thanks @turnipdabeets! - Add adisableRemoteFeatureFlagsoption and a publicupdateFlags(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(), andreset()stop triggering/flagsrequests — whilegetFeatureFlag()andgetFeatureFlagPayload()keep working against the values you supply. Provide those values (with optional payloads) at runtime viaupdateFlags(flags, payloads?, { merge }); they persist across restarts. This mirrors the web SDK'sadvanced_disable_feature_flagsandupdateFlags. (2026-06-17)