@rrweb/utils
0.0.66
Patch Changes
-
#5244
52c84e2Thanks @61465! - Port upstream rrweb #1652 into the vendored MutationBuffer to fix a 9–10 s session-replay main-thread freeze when a single render mounts many sibling nodes (e.g. a 50 × 35 table at ~13 000 nodes). The pre-fixaddList-based drain tail-rescanned every pass and ran in O(n²); the new drain iteratesaddedSetin topological order usingdom.previousSibling/dom.lastChild/dom.nextSiblingand runs in O(n). Fixes #5227.The walk-up loop treats a
ShadowRootparent as its shadow host for ancestry checks so shadow children of a moved host are never serialized before the host itself.@posthog/rrweb-utilspicks up three new untainted-prototype accessors (previousSibling,nextSibling,lastChild) that the drain depends on. Nodes that still can't resolve a parent at emission time are counted and reported in one summaryconsole.warnper emission, so a dropped subtree doesn't cascade through the replay via the console-record plugin. (2026-10-27)
0.0.65
Patch Changes
- #4036
718beeeThanks @emmayusufu! - Fix session replay and posthog-js leaving each other'sconsolewrapper in the call path when either one stops (2026-08-27) - Updated dependencies [
718beee,712223a]:- @posthog/core@1.49.0
0.0.64
Patch Changes
- #4325
3bd8a2dThanks @marandaneto! - Fix dead-click false positives on WebKit when the SDK uses an iframe-sourced MutationObserver fallback. (2026-07-30) - Updated dependencies [
3bd8a2d]:- @posthog/core@1.45.3
0.0.63
Patch Changes
- #4128
9bd3ef0Thanks @pauldambra! - fix: keep the untainted-prototype fallback iframe attached on Safari so MutationObserver callbacks are not silently dropped (port of upstream rrweb #1854) (2026-07-15)
0.0.62
Patch Changes
- #4118
f630394Thanks @posthog! - Fix aRangeError: Maximum call stack size exceededoriginating from the shared rrwebpatch()helper. It patches shared globals such asElement.prototype.attachShadow(shadow-dom-manager) and the DOM/canvas observers, so multiple recorder instances or repeated start/stop cycles wrap the same global more than once. Previously an out-of-order restore silently no-op'd, leaving the wrapper in the call path; repeated cycles grew the wrapper chain without bound until a real call walked a chain deep enough to overflow the stack. Wrappers now delegate through a mutable per-layer link so any layer can be torn down even when newer wrappers sit on top of it, keeping the chain bounded. Recording behavior is unchanged. This applies the same fix as #4063 (fetch/XHR) to the shared helper so every rrweb-record caller inherits the bounded-chain behavior. (2026-07-10)
0.0.61
Patch Changes
- #3510
a5d86c9Thanks @arnaudhillen! - Move posthog-rrweb sources into the posthog-js monorepo underpackages/rrweb/. The seven packages we publish (@posthog/rrweb,@posthog/rrweb-types,@posthog/rrweb-utils,@posthog/rrdom,@posthog/rrweb-snapshot,@posthog/rrweb-record,@posthog/rrweb-plugin-console-record) now release from this repo via the existing changesets pipeline. No runtime behavior changes. (2026-05-05)