Skip to content

@posthog/next@0.5.0

Choose a tag to compare

@github-actions github-actions released this 23 Jun 11:19
· 9 commits to main since this release
Immutable release. Only release title and notes can be modified.
1481f6d

0.5.0

Minor Changes

  • #3921 c28b161 Thanks @marandaneto! - Add disable_capture_url_hashes to strip URL fragments from automatically captured URLs. It is disabled by default for backwards compatibility, and enabled automatically when config.defaults is '2026-06-25' or later. Enabling it (either explicitly or via the '2026-06-25' defaults) is a breaking behavior change for SPAs that rely on URL hashes for routing or analytics, because hash-based routes will be collapsed to the same URL without the fragment in fields such as $current_url, $initial_current_url, $session_entry_url, autocapture $elements[*].attr__href, $external_click_url, replay href URLs, heatmaps, web vitals $current_url, logs url.full, conversations current_url/request_url, or Next.js Pages Router $pageview $current_url.

    If you only want to capture some hashes, leave hash capture enabled and use before_send to remove or redact sensitive hash values before events are sent. (2026-06-23)

Patch Changes

  • Updated dependencies [c28b161]:
    • posthog-js@1.393.0
    • @posthog/core@1.36.0