Skip to content

posthog-js@1.398.3

Choose a tag to compare

@github-actions github-actions released this 08 Jul 09:44
Immutable release. Only release title and notes can be modified.
5829245

1.398.3

Patch Changes

  • #4112 38bb185 Thanks @TueHaulund! - fix session replay silently dropping shadow DOM mutations after an iframe teardown

    The single shared ShadowDomManager observes every shadow root on the page, but MutationBuffer.reset() disconnected it. That reset fires whenever any one buffer is torn down, so an iframe being removed or navigating away disconnected every shadow-root observer page-wide. Shadow DOM content (for example a widget mounted in an open shadow root) then stopped recording until the next periodic full snapshot re-registered it. Buffer teardown now releases only its own resources; global shadow observation is reset by takeFullSnapshot and on recording stop. (2026-07-08)