github PostHog/posthog-js @posthog/types@1.398.0

1.398.0

Minor Changes

  • #4222 0f2407b Thanks @turnipdabeets! - feat: add a default-value option to isFeatureEnabled

    isFeatureEnabled(key, { defaultValue: false }) now returns the given default when the flag has no value — flags not loaded yet, or no flag with that key — and the return type narrows to boolean. The option name is the same in posthog-js, posthog-js-lite, and posthog-react-native. Without defaultValue, behavior is unchanged: boolean | undefined. (2026-07-22)

Don't miss a new posthog-js release

NewReleases is sending notifications on new releases.