Repository navigation
@posthog/browser@0.5.0
0.5.0
Minor Changes
-
#5786
45ddd74Thanks @dustinbyrne! - Make the client the single extension host: analytics operations, including the group and person methods, move onto the client.Breaking for 0.4.x users: the
@posthog/browser/analyticsexport,posthog.analytics, theanalytics: falseoption and theIPostHogInternaltype are removed. Callcapture(),identify(),register()and the other analytics methods on the client, configure scheduling and person profiles through theanalyticsoption, and type extension hosts asIPostHog. Capture can no longer be left out: both entrypoints, including/corewith only flags and rootanalytics: false, now send the initial$pageview(unlesscapturePageview: false) and$feature_flag_calledon flag reads. Registered super properties, person-profile enablement and flag and survey caches persisted by 0.4.x are not carried over. See the package README's "Migrating from the analytics extension" section. (2026-11-24)