github PostHog/posthog-js posthog-js@1.399.4

latest release: posthog-js@1.399.5
9 hours ago

1.399.4

Patch Changes

  • #4139 7c339be Thanks @turnipdabeets! - Encode uncompressed sendBeacon bodies as base64 form data so the beacon keeps a CORS-simple content type. Previously an uncompressed unload beacon was sent as application/json, which forces a CORS preflight — a preflight cannot complete while the page unloads, so on cross-origin hosts the browser silently dropped the POST and the final batch of events was lost. Compression is inactive whenever the remote config request fails (flaky network, blocked endpoint), when the config response omits supportedCompression, or with disable_compression: true.
    (2026-07-13)

Don't miss a new posthog-js release

NewReleases is sending notifications on new releases.