Repository navigation
posthog-js@1.455.0
1.455.0
Minor Changes
-
#5729
6cd9664Thanks @andehen! - Send$experiment_exposurefor config version 2 experiment splits, and send the reason code and rule attribution on$feature_flag_calledfor config version 2 flags in place of$feature_flag_reason.
(2026-11-25) -
#5729
6cd9664Thanks @andehen! - Request/flags/?v=4instead of/flags/?v=2and read its typed flag records. For a well-formed response, flag getters, payloads,onFeatureFlagscallbacks and$feature_flag_calledevents return and send the same values as before, and older posthog-js versions can still read the stored flags. A PostHog server that does not servev=4answers as it does forv=2, and that response is read as before.A
v=4flag record with a field of the wrong JSON type, such as a stringmetadata.version, reads as a disabled flag without a payload. Other flags in the same response are not affected. Tests that mock/flagsmay need to match the new URL. (2026-11-25)