rrweb
0.1.9
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) -
Updated dependencies [
52c84e2]:- @posthog/rrweb-utils@0.0.66
- @posthog/rrweb-snapshot@0.0.68
0.1.8
Patch Changes
- Updated dependencies [
718beee]:- @posthog/rrweb-utils@0.0.65
- @posthog/rrweb-snapshot@0.0.68
0.1.7
Patch Changes
-
#4320
837363eThanks @posthog! - Bound the main-thread cost of the recorder's initial full snapshot, and start measuring it.stringifyStylesheetreadscssTextfor every CSSRule of every stylesheet, all inside the one uninterruptible task that takes the full snapshot. On CSS-heavy pages that is the dominant cost, and it has been observed freezing the UI (no rendering, scrolling, or cursor movement) for seconds. The existingmaxDepthguard doesn't help, since it only bounds deep DOMs, not wide ones or heavy CSS.Stylesheet inlining now stops after a budget of CSSRules per snapshot (
session_recording.inlineStylesheetBudgetRules, default 10,000; set0for the previous unbounded behaviour). Sheets past the budget are serialized without_cssText, keepingrel/hrefso replay can load them remotely, and are then inlined one per idle callback and delivered as attribute mutations. Replay fidelity is preserved; the work is just no longer one long blocking task.The snapshot's cost is also now measured and reported on captured events, so slow snapshots are visible without a browser profile:
$sdk_debug_replay_slowest_full_snapshot_ms,$sdk_debug_replay_slowest_full_snapshot_stylesheet_ms,$sdk_debug_replay_slowest_full_snapshot_nodes,$sdk_debug_replay_slowest_full_snapshot_css_rules,$sdk_debug_replay_deferred_stylesheets, and, for the incremental path,$sdk_debug_replay_slowest_mutation_batch_ms. (2026-08-05) -
Updated dependencies [
837363e]:- @posthog/rrweb-snapshot@0.0.68
- @posthog/rrdom@0.0.68
0.1.6
Patch Changes
- Updated dependencies [
3bd8a2d]:- @posthog/rrweb-utils@0.0.64
- @posthog/rrweb-snapshot@0.0.67
0.1.5
Patch Changes
- #4223
045d79cThanks @turnipdabeets! - Terminate the canvas encode worker when session recording stops. Previously stopping a recording with canvas capture enabled cancelled the capture loop but left the dedicated worker running; dedicated workers are not cleaned up by becoming unreachable, so every stop/start cycle leaked a worker thread along with its capture-resolution OffscreenCanvas (~8MB of pixel buffer at 1080p) and frame-fingerprint state. (2026-07-23)
0.1.4
Patch Changes
- #4209
569fc62Thanks @posthog! - Session recording no longer emits an uncaughtTypeError: Illegal invocationfrom the input observer's synchronous native-setter call. The previous fix only guarded the deferred hooked setter; the synchronousoriginal.set.call(this, value)still ran with a non-nativethis(a proxy, custom element, or cross-realm object) and threw inside the host page's own assignment. The recorder now probes the native getter — which fails the same internal-slot brand check as the setter — before forwarding: a non-nativethisis skipped, so the recorder no longer re-throws from its own frame, while genuine elements (including file inputs that legitimately throw on a programmatic value) keep their native behavior. The input event handler andgetInputTypeare similarly guarded against reading native accessors on a non-nativethis. (2026-07-22) - Updated dependencies [
569fc62]:- @posthog/rrweb-snapshot@0.0.67
- @posthog/rrdom@0.0.67
0.1.3
Patch Changes
- #4157
4a2ecf5Thanks @posthog! - Session recording no longer emits an uncaughtNotAllowedError("Sharing constructed stylesheets in multiple documents is not allowed") when a page assigns aCSSStyleSheetconstructed in a different document toadoptedStyleSheets. That assignment is the host page's own invalid operation, but the recorder's patched setter sat on the call stack, so the exception was attributed to rrweb and churned fingerprints in error tracking. The recorder now contains this specific rejection (matched by its standardizedNotAllowedErrorname, so it works even when the setter throws from an iframe realm) and skips recording those sheets, while still re-throwing any other native-setter error so host-page behaviour is preserved. (2026-07-15)
0.1.2
Patch Changes
- #4151
81adbfdThanks @posthog! - Session recording no longer emits an uncaughtTypeError: Illegal invocationwhen a programmatic input-value change happens on an object that is not a genuine native input element (for example a proxy on the element prototype chain). The recorder drops that one replay update instead of throwing. (2026-07-15)
0.1.1
Patch Changes
-
#4073
f48eaf2Thanks @pauldambra! - Canvas capture now fingerprints raw pixels before encoding, so unchanged frames skip the expensive image encode entirely. Previously every captured frame was encoded (webp/png) and base64'd just to compute a fingerprint, with unchanged frames dropped only after paying the full encode cost — for a static canvas at the default fps this burned CPU continuously for the lifetime of the page. Blank first frames are now detected from pixel data and never encoded either (previously they cost two encodes: one for the frame and one for a transparent reference blob). No response shapes changed, and unchanged-frame detection is equal or stricter: dedupe compares dimension-tagged raw pixels using two independent 32-bit hashes rather than encoded bytes, so the rare frames that previously deduped on identical lossy-encoded output now transmit, and a resize retransmits even when the raw bytes happen to match (any equal-pixel-count resize of a uniform fill, e.g. 100x200 redrawn at 200x100). The one exception in the "sends more" direction: a canvas that resizes while never having shown content stays skipped — it is blank at either size. Changed frames pay a small new pixel-readback + hash cost on top of the encode, so always-animating canvases do slightly more work per frame; static canvases — the case that burned continuously — drop from a full encode per tick to a readback + hash. (2026-07-15) -
#4131
c50b27fThanks @pauldambra! - fix: non-user-initiated events (media autoplay, canvas/font/stylesheet churn) no longer unfreeze a frozen page, so background activity cannot flush the frozen mutation buffer (port of upstream rrweb #1697) (2026-07-15)
0.1.0
Minor Changes
- #4129
800af7cThanks @pauldambra! - feat: addsession_recording.attributeFilteroption that passes an attribute allowlist through to the native MutationObserver, so mutations to unlisted attributes (e.g. animation-driven inlinestylechurn) never cost recording CPU (port of upstream rrweb #1873) (2026-07-15)
Patch Changes
- #4130
5116a41Thanks @pauldambra! - perf: when a node is re-encountered while collecting added nodes, move it to the end of the added set so the emit phase processes adds in latest-DOM order. This avoids paying for out-of-order deferrals on large mutation batches (port of upstream rrweb #1302). (2026-07-15) - Updated dependencies [
9bd3ef0]:- @posthog/rrweb-utils@0.0.63
- @posthog/rrweb-snapshot@0.0.66
0.0.79
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) - Updated dependencies [
f630394]:- @posthog/rrweb-utils@0.0.62
- @posthog/rrweb-snapshot@0.0.66
0.0.78
Patch Changes
-
#4113
45f17eeThanks @TueHaulund! - fix session replay leaking a shadow-root observer when a same-origin iframe is removedFollow-up to the shadow-observer iframe-teardown fix:
takeFullSnapshot'sonSerializeregisters every shadow root with the top-level document, so a root nested in a same-origin iframe was keyed to the wrong document and its observer/buffer were not disconnected when that iframe was removed (they lingered until the next full snapshot).addShadowRootnow derives the owning document from the host element, so per-document teardown matches iframe-nested roots too. (2026-07-08)
0.0.77
Patch Changes
- #4114
c75c0baThanks @hpouillot! - fix: avoid throwing when rrweb recorder cleanup cannot remove a listener (2026-07-08) - Updated dependencies [
c75c0ba]:- @posthog/rrweb-snapshot@0.0.66
- @posthog/rrdom@0.0.66
0.0.76
Patch Changes
-
#4112
38bb185Thanks @TueHaulund! - fix session replay silently dropping shadow DOM mutations after an iframe teardownThe 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)
0.0.75
Patch Changes
- #4033
e803b8fThanks @posthog! - Session replay: guard the canvas recording inline worker against blob-script load failures. When a strict page CSP (worker-src / script-src blob:), an ad blocker, or a network hiccup prevents the inline worker from loading, canvas snapshotting now disables itself quietly instead of surfacing an uncaught NetworkError. The rest of session replay keeps working. (2026-07-01)
0.0.74
Patch Changes
-
#3885
5392a55Thanks @pauldambra! - feat(replay): capture canvas at reduced resolutionAdds
session_recording.canvasCapture.resolutionScale- a(0, 1]fraction of the canvas display size to capture replay frames at. The captured bitmap is downscaled (pixel-area savings are quadratic) while the canvas's true display size is still recorded, so playback stretches the smaller frame back to the correct dimensions and aspect ratio - only sharpness drops, never layout. It defaults to1(full resolution, matching today's behaviour), and the latestdefaultsbundle (2026-05-30) opts new installs into0.6.The canvas's true display size travels with each frame through the encode worker (as required message fields), so the encoded reply is always drawn back to the correct dimensions — no per-canvas state is retained on the main thread, and downscaling can never mislabel a canvas's dimensions. At full resolution the captured pixels are unchanged (the quality resampling hint is only applied when actually downscaling); the emitted
drawImagenow always uses the explicit destination-size form, which is pixel-equivalent on replay.Mechanically,
@posthog/rrweb's canvas FPS-snapshot observer takes an optionalcanvasResolutionScalerecord option and downscales each captured frame accordingly. (2026-06-19)
0.0.73
Patch Changes
-
#3853
f95a0ecThanks @TueHaulund! - Capture native Fullscreen API transitions in session replay. Entering native fullscreen (element.requestFullscreen()) is rendered by the browser via the UA:fullscreenpseudo-class with no DOM mutation, so the recorder previously captured nothing and replays showed the element at its pre-fullscreen size with drifted click coordinates. The recorder now emits a reserved custom event onfullscreenchange(standard pluswebkit/moz/MSprefixes), and the replayer re-applies fullscreen layout to the element on playback (including when scrubbing into a fullscreen region) via a reservedrr_fullscreenattribute, consistent with rrweb's existingrr_*attribute namespace.Known limitation: fullscreen of an element inside a same-origin iframe is recorded against the
<iframe>element rather than the inner element, so replay pins the iframe. (2026-06-16) -
Updated dependencies [
f95a0ec]:- @posthog/rrweb-types@0.0.62
- @posthog/rrdom@0.0.65
- @posthog/rrweb-snapshot@0.0.65
0.0.72
Patch Changes
- #3767
fdc07f3Thanks @arnohillen! - replay: jump scrolls instantly when seeking past pages that usescroll-behavior: smooth. During fast-forward the replayer applied scrolls withbehavior: 'auto', which inherits the page's CSSscroll-behavior— so on sites that setscroll-behavior: smooth(e.g. Silk bottom sheets/modals) a seeked scroll animated from 0 instead of jumping, leaving scroll-revealed content (the open sheet) out of view and showing only the backdrop until the animation caught up. Sync scrolls now usebehavior: 'instant', matching the method's stated intent that smooth scrolling be disabled while fast-forwarding. Full snapshot rebuilds apply their initial offset withbehavior: 'instant'too, so the document-level scroll doesn't animate either. (2026-06-11)
0.0.71
Patch Changes
- #3742
23b2af1Thanks @arnohillen! - record: capture resting scroll offset onscrollendwhen a reveal scroll clamps to 0 before its target is scrollable (e.g. Silk sheets). Deduped againstscrollso normal gestures don't double event volume. (2026-06-10)
0.0.70
Patch Changes
- #3787
0e22d77Thanks @TueHaulund! - replayer: stop corrupting recordings when events are added behind the playhead.addEvent()used to apply any event older than the playback baseline synchronously onto the current DOM — correct for live-mode catch-up, but wrong for on-demand playback where snapshot chunks can finish loading after the user has seeked ahead. Applying those past mutations onto a DOM at a different position made theirremovesfail mirror lookups, andapplyMutationthen deleted the failed entries from the event objects themselves, so every later seek rebuilt from corrupted data (DOM nodes accumulating, e.g. duplicated text) and exports serialized the stripped events. Past events are now only applied synchronously in live mode (otherwise they are just inserted for the next seek to pick up), andapplyMutationfilters removes into a local copy instead of mutating the event data. (2026-06-10)
0.0.69
Patch Changes
- #3726
74345e3Thanks @arnohillen! - canvas recording: reference-count CanvasManager teardown so it survives secondary-root cleanup. A single CanvasManager is shared by the main document and every iframe / shadow-root observer; previously tearing down any one of those (e.g. an iframe unloading, or a framework unmounting a subtree rrweb was observing) unpatchedHTMLCanvasElement.prototype.getContextand cancelled the FPS loop for the whole page, silently stopping canvas recording while the session stayed active. The manager now only tears down once the last consumer releases. (2026-06-03)
0.0.68
Patch Changes
- #3736
374962aThanks @arnohillen! - replay: re-apply scroll positions after fast-forward/seek. Scrolls applied mid-catch-up could clamp to 0 when the target wasn't scrollable yet (e.g. scroll-revealed sheets/modals whose content sits below the fold), leaving the content scrolled out of view on replay. The last scroll per node is now re-applied in the flush stage once layout has settled.posthog-jsis bumped too so the rebuilt bundle containing the fix is published. (2026-06-03)
0.0.67
Patch Changes
- #3678
add2faeThanks @ksvat! - fix(replay): keepph-no-captureplaceholders in normal flow during replay. Blocked elements were rebuilt withposition: absolute+ recordedleft/topregardless of how they were originally positioned, pulling in-flow elements (flex/grid children, inline spans) out of flow and collapsing sibling layout. Snapshot now captures the element's computedposition,transform, anddisplay; rebuild only forces absolute positioning when the original was non-static or contributed a transform, and promotes inline placeholders toinline-blockso the redacted slot is preserved. Old recordings without the new attributes keep the legacy absolute behavior. (2026-05-27) - Updated dependencies [
add2fae]:- @posthog/rrweb-snapshot@0.0.65
- @posthog/rrdom@0.0.65
0.0.66
Patch Changes
- #3667
cafa9ccThanks @pauldambra! - fix(replay): stop polling preload-as-style<link>elements forever. Session recorder treated<link rel="preload" as="style" href="*.css">as if it were a stylesheet and waited forlink.sheetto populate. Per spec preload links never instantiate aCSSStyleSheet, so the wait timed out, re-serialized the link, scheduled another wait, and leaked aloadlistener on every cycle — multiplying further on every realloadevent. Pages with Next.js-style CSS preloads accumulated thousands of active polling chains, saturating the main thread and freezing the tab on refocus (2026-05-26) - Updated dependencies [
cafa9cc]:- @posthog/rrweb-snapshot@0.0.64
- @posthog/rrdom@0.0.64
0.0.65
Patch Changes
- Updated dependencies [
5fb74b6]:- @posthog/rrweb-snapshot@0.0.63
- @posthog/rrdom@0.0.63
0.0.64
Patch Changes
- #3558
3d93020Thanks @marandaneto! - Fix iframe mutation buffer cleanup when iframe pagehide events overlap. (2026-05-11)
0.0.63
Patch Changes
- Updated dependencies [
94a5ba0]:- @posthog/rrweb-snapshot@0.0.62
- @posthog/rrdom@0.0.62
0.0.62
Patch Changes
- #3527
33aa019Thanks @TueHaulund! - Skip canvas snapshot while WebGL context is lost. On mobile under GPU pressure or tab backgrounding,createImageBitmapreturns a transparent bitmap rather than throwing for a context-lost WebGL canvas. The worker's first-frame transparency check then suppresses emission and stores the transparent fingerprint inlastFingerprintMap, so once the context restores and three.js re-renders, identical-fingerprint frames get deduped against the transparent baseline and the canvas appears to never record. Pre-flightgl.isContextLost()and skip the snapshot while the context is down. Also wrap thegetCanvas()shadow-root walk in try/catch so a traversal exception cannot cancel the rAF loop and silently kill canvas recording for the rest of the session. (2026-05-05)
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) - Updated dependencies [
a5d86c9]:- @posthog/rrweb-types@0.0.61
- @posthog/rrweb-utils@0.0.61
- @posthog/rrdom@0.0.61
- @posthog/rrweb-snapshot@0.0.61
2.0.0-alpha.18
Minor Changes
Patch Changes
-
#1535
04ee6edThanks @eoghanmurray! - Slight simplification to how we replace :hover after #1458 -
#1437
5fbb904Thanks @eoghanmurray! - Edge case: Provide support for mutations on a <style> element which (unusually) has multiple text nodes -
#1593
5a78938Thanks @daibhin! -NodeTypeenum was moved from rrweb-snapshot to @rrweb/types The following types where moved from rrweb-snapshot to @rrweb/types:documentNode,documentTypeNode,legacyAttributes,textNode,cdataNode,commentNode,elementNode,serializedNode,serializedNodeWithId,serializedElementNodeWithId,serializedTextNodeWithId,IMirror,INode,mediaAttributes,attributesandDataURLOptions -
Updated dependencies [
8e55c45,02cc62d,04ee6ed,5fbb904,5a78938]:
2.0.0-alpha.17
Minor Changes
Patch Changes
-
#1417
40bbc25Thanks @YunFeng0817! - fix: duplicate textContent for style elements cause incremental style mutations to be invalid -
#1527
68076b7Thanks @arredgroup! - Export takeFullSnapshot function for a recording process -
#1515
8059d96Thanks @okejminja! - Added support for deprecated addRule & removeRule methods -
#1509
be6bf52Thanks @Juice10! - Reverse monkey patch built in methods to support LWC (and other frameworks like angular which monkey patch built in methods). -
Updated dependencies [
40bbc25,335639a,335639a,d350da8,be6bf52]:
2.0.0-alpha.16
Patch Changes
-
#1386
a2c8a1aThanks @ababik! - Fix that the optionalmaskInputFnwas being accidentally ignored during the creation of the full snapshot -
#1512
d08624cThanks @eoghanmurray! - optimisation: skip mask check on leaf elements
2.0.0-alpha.15
Major Changes
-
#1497
2606a2aThanks @Juice10! - Split plugins out of rrweb and move them into their own packages: @rrweb/packer, @rrweb/rrweb-plugin-canvas-webrtc-record, @rrweb/rrweb-plugin-canvas-webrtc-replay, @rrweb/rrweb-plugin-sequential-id-record, @rrweb/rrweb-plugin-sequential-id-replay, @rrweb/rrweb-plugin-console-record, @rrweb/rrweb-plugin-console-replay. Check out the README of each package for more information or check out https://github.com/rrweb-io/rrweb/pull/1033 to see the changes. -
#1497
2606a2aThanks @Juice10! - Distributed files have new filenames, paths and extensions. Important: If you reference distributed files or types directly, you might have to update your paths/filenames. E.g. you import fromrrweb/typings/...orrrdom/es. However you runimport rrweb from '@posthog/rrweb'you won't notice a difference with this change. If you include rrweb files directly in a script tag, you might have to update that path to include a the.umd.cjsfiles instead. All.jsfiles now use ES modules which can be used in modern browsers, node.js and bundlers that support ES modules. All npm packages now also ship.cjsand.umd.cjsfiles. The.umd.cjsfiles are CommonJS modules that bundle all files together to make it easy to ship one file to browser environments (similar to the previous.jsfiles). The.cjsfiles are CommonJS modules that can be used in older Node.js environments. Types should be better defined inpackage.jsonand if you need specific types they might be exported from new packages (for examplePlayerMachineStateandSpeedMachineStateare now exported from@rrweb/replay). Check thepackage.json'smainandexportsfield for the available files. -
#1497
2606a2aThanks @Juice10! - Remove the rrweb-all.js, rrweb-record.js, and rrweb-replay.js files fromrrwebpackage. Now you can use@rrweb/all,@rrweb/record, and@rrweb/replaypackages instead. Check out the README of each package for more information or check out PR #1033 to see the changes.
Patch Changes
-
#1033
7261c43Thanks @Juice10! - ExportReplayPluginfrom rrweb directly. Previously we had to doimport type { ReplayPlugin } from 'rrweb/dist/types';now we can doimport type { ReplayPlugin } from '@posthog/rrweb'; -
#1468
4014305Thanks @eoghanmurray! - inlineImages: during snapshot avoid adding an event listener for inlining of same-origin images (async listener mutates the snapshot which can be problematic) -
#1489
609b7faThanks @JonasBa! - Optimize performance of isParentRemoved by converting it to an iterative procedure -
#1493
82f6fecThanks @eoghanmurray! - Replay: Replace negative lookbehind in regexes from css parser as it causes issues with Safari 16 -
#1353
5c27b76Thanks @YunFeng0817! - Fix: some nested cross-origin iframes can't be recorded -
#1328
d38893fThanks @eoghanmurray! - Refactor to preclude the need for a continuous raf loop running in the background which is related to shadowDom -
#1295
d7cf8ddThanks @colingm! - Return early for child same origin frames -
#760
e08706aThanks @eoghanmurray! - Add slimDOM option to block animation on <title> tag; enabled when the 'all' value is used for slimDOM -
Updated dependencies [
4014305,82f6fec,2606a2a,f3cf092,e08706a]:
2.0.0-alpha.14
Patch Changes
-
#1464
03b5216Thanks @colingm! - better support for coexistence with older libraries (e.g. MooTools & Prototype.js) which modify the in-builtArray.fromfunction -
#1441
ae6908dThanks @eoghanmurray! - perf: Avoid an extra function call and object clone during event emission -
#1481
46f1b25Thanks @eoghanmurray! - Fix and test for bug #1457 which was affecting replay of complex tailwind css -
#1476
cbbd1e5Thanks @eoghanmurray! - Fixup for multiple background-clip replacement -
#1467
e96f668Thanks @eoghanmurray! - Bugfix after #1434 perf improvements: fix that blob urls persist on the shared anchor element and can't be later modified -
Updated dependencies [
03b5216,46f1b25,cbbd1e5,5e7943d,c0f83af,e96f668]:
2.0.0-alpha.13
Minor Changes
- #1432
123a81eThanks @Juice10! - Full overhawl ofvideoandaudioelement playback. More robust and fixes lots of bugs related to pausing/playing/skipping/muting/playbackRate etc.
Patch Changes
-
#1422
3d1877cThanks @marandaneto! - fix: createImageBitmap throws DOMException if source is 0 width or height -
#1432
123a81eThanks @Juice10! - Recordloopon<audio>&<video>elements. -
#1445
02f50d2Thanks @daibhin! - fix: protect against missing parentNode -
Updated dependencies [
123a81e,123a81e,f7c6973,123a81e,c278d06]:
2.0.0-alpha.12
Minor Changes
- #1310
7c0dc9dThanks @benjackwhite! - Extends maskTextFn to pass the HTMLElement to the deciding function
Patch Changes
-
#1403
af0962cThanks @pauldambra! - safely capture BigInt values with the console log plugin" -
#1327
57a940aThanks @mydea! - fix: Fix checking forpatchTargetininitAdoptedStyleSheetObserver -
#1155
8aea5b0Thanks @YunFeng0817! - Feat: Add support for replaying :defined pseudo-class of custom elements -
#1340
9c6edfeThanks @mydea! - ref: Avoid unnecessary cloning of objects or arrays -
#1383
1e0b273Thanks @daibhin! - export the canvasMutation function -
#1324
1fe39abThanks @Belen-Luo! - export eventWithTime for consumption by typescript code -
#1343
05478c3Thanks @mdellanoce! - use WeakMap for faster attributeCursor lookup while processing attribute mutations -
#1272
58c9104Thanks @eoghanmurray! - Perf: Avoid creation of intermediary array when iterating over style rules -
#1311
980a38cThanks @eoghanmurray! - Add 'recordDOM' config option to turn off recording of DOM (making recordings unreplayable). Specialist use case e.g. only heatmap click/scroll recording -
#1351
a2be77bThanks @eoghanmurray! - Don't double-record the values of <textarea>s when they already have some content prefilled #1301 -
#1431
a7c33f2Thanks @eoghanmurray! - Ensure :hover works on replayer, even if a rule is behind a media query Respect the intent behind max-device-width and min-device-width media queries so that their effects are apparent in the replayer context -
#1374
314a8ddThanks @andrewpomeroy! - Capture stylesheets designated asrel="preload" -
#1349
07ac5c9Thanks @eoghanmurray! - Snapshot performance when masking text: Avoid the repeated calls toclosestwhen recursing through the DOM -
Updated dependencies [
58c9104,a2be77b,a7c33f2,8aea5b0,314a8dd,e607e83,7c0dc9d,07ac5c9]:
2.0.0-alpha.11
Patch Changes
-
#1279
11f6567Thanks @eoghanmurray! - Extend to run fixBrowserCompatibilityIssuesInCSS over inline stylesheets -
#1287
efdc167Thanks @Juice10! - Upgrade all projects to typescript 4.9.5
2.0.0-alpha.10
Patch Changes
-
#1269
7103625Thanks @eoghanmurray! - Don't include redundant data from text/attribute mutations on just-added nodes -
#1268
d872d28Thanks @eoghanmurray! - Compact style mutation fixes and improvements- fixes when style updates contain a 'var()' on a shorthand property #1246
- further ensures that style mutations are compact by reverting to string method if it is shorter
-
#1262
36da39dThanks @billyvg! - feat: AddignoreSelectoroptionSimilar to ignoreClass, but accepts a CSS selector so that you can use any CSS selector.
-
#1251
bbbfa22Thanks @wfk007! - fix: Resize and MediaInteraction events repeat generated after the iframe appeared -
#1254
d0fbe23Thanks @mydea! - Handle case whereeventis null/undefined -
#1273
a3de582Thanks @Juice10! - Canvas FPS recording: overridepreserveDrawingBuffer: trueon canvas creation. Canvas replay: fix flickering canvas elemenrs. Canvas FPS recording: fix bug that wipes webgl(2) canvas backgrounds while recording.
2.0.0-alpha.9
Patch Changes
-
#1196
490b3e2Thanks @eoghanmurray! - Guard against presence of older 3rd party javascript libraries which redefine Date.now() -
#1220
a1ec9a2Thanks @wfk007! - perf: optimize performance of the DoubleLinkedList get -
#1196
490b3e2Thanks @eoghanmurray! - Guard against redefinition of Date.now by third party libraries which are also present on a page alongside rrweb -
#1183
d7c72bfThanks @mydea! - fix: Ensure attributes are lowercased when checking -
#1214
ebcbe8bThanks @wfk007! - perf: optimize the performance of record in processMutation phase
2.0.0-alpha.8
Minor Changes
-
#1129
979d2b1Thanks @eoghanmurray! - click events now include a.pointerTypeattribute which distinguishes between 'pen', 'mouse' and 'touch' events. There is no new PenDown/PenUp events, but these can be detected with a MouseDown/MouseUp + pointerType=pen -
#1188
bc84246Thanks @benjackwhite! - feat: Extends maskInputFn to pass the HTMLElement to the deciding function
Patch Changes
-
#1198
b5e30cfThanks @charliegracie! - Reset the finished flag in Controllergotoinstead ofhandleProgressClickso that it is properly handled ifgotois called directly. -
#1184
aa79db7Thanks @mydea! - fix: Ensure getting the type of inputs works
2.0.0-alpha.7
Minor Changes
-
#1170
d2582e9Thanks @mydea! - feat: Ensure password inputs remain masked when switching input type -
#1107
a225d8eThanks @mydea! - feat: Allow to passerrorHandleras record option
Patch Changes
-
#1179
e0f862bThanks @wfk007! - Fix: #1178 remove warning related to worker_threads while building -
#1186
267e990Thanks @YunFeng0817! - Fix: processed-node-manager is created even in the environment that doesn't need a recorder -
#1145
a82a3b4Thanks @eoghanmurray! - For a mutation which removes a node, reduce the number of spurious warnings to take into account that an anscestor (rather than just a parent) may have been just removed -
#1191
1e6f71bThanks @Juice10! - Only apply touch-active styling on flush -
#1191
1e6f71bThanks @Juice10! - Trigger mouse movement and hover with mouse up and mouse down events when replayer.pause(...) is called. -
#1163
4cb4d0eThanks @zhaobosky! - Fix: some websites rebuild imcomplete- Some websites, addedSet in emit function is not empty, but the result converted from Array.from is empty.
- Some websites polyfill classList functions of HTML elements. Their implementation may throw errors and cause the snapshot to fail. I add try-catch statements to make the code robust.
2.0.0-alpha.6
Patch Changes
-
#1156
e65465eThanks @Code-Crash! - Fix the statement which is getting changed by Microbundle -
#1139
f27e545Thanks @YunFeng0817! - Fix: Switch from virtual dom to real dom before rebuilding fullsnapshot -
#1130
f6f07e9Thanks @Equlnox! - Fix: Make relative path detection in stylesheet URLs to detect more types of URL protocols when inlining stylesheets. -
#1141
3416c3aThanks @YunFeng0817! - Fix: isCheckout is missed in all fullsnapshot events -
#1157
8e47ca1Thanks @mydea! - fix: Explicitly handlenullattribute values -
#1136
aaabdbdThanks @benjackwhite! - fix: Recursive logging bug with console recording -
#1159
5e6c132Thanks @eoghanmurray! - For users of userTriggeredOnInput setting: also set userTriggered to false on Input attribute modifications; this was previously empty this variant of IncrementalSource.Input -
Updated dependencies [
c28ef5f,f6f07e9,eac9b18,f27e545,8e47ca1]:
2.0.0-alpha.5
Patch Changes
-
#1095
1385f7aThanks @YunFeng0817! - Fix duplicated shadow doms -
#1126
227d43aThanks @YunFeng0817! - Refactor all suffix of bundled scripts with commonjs module from 'js' to cjs #1087. -
#1126
227d43aThanks @YunFeng0817! - Fix: improve rrdom robustness #1091. -
#1127
3cc4323Thanks @YunFeng0817! - Refactor: Improve performance by 80% in a super large benchmark case.- Refactor: change the data structure of childNodes from array to linked list
- Improve the performance of the "contains" function. New algorithm will reduce the complexity from O(n) to O(logn)
-
#1121
502d15dThanks @YunFeng0817! - Fix: outdated ':hover' styles can't be removed from iframes or shadow doms -
#1122
8d209a6Thanks @YunFeng0817! - Add missing change logs manually. In the next version, all change logs will be generated automatically.-
a220835#1053 Thanks @Juice10! - Fix: Post message can break cross origin iframe recording. -
7e8dcdb#1063 Thanks @lele0108! - Fix: muted false -> true not being set. -
36b44e1#1042 Thanks @wfk007! - Fix: Failed to execute insertBefore on Node. -
44e92cb#1058 Thanks @mydea! - Handle errors when observing iframes. -
729b8bf#1083 Thanks @Juice10! - Fix: Catch iframe manager & fix formatting issues. -
03821d9#1083 Thanks @eoghanmurray! - Harmonize on a single getWindowScroll -
d08913d#1086 Thanks @YunFeng0817! - Fix: missed adopted style sheets of shadow doms in checkout full snapshot. -
66abe17#1032 Thanks @dbseel! - Fix: isBlocked throws on invalid HTML element. -
57a2e14#1088 Thanks @mydea! - Fix: Guard against missing window.CSSStyleSheet. -
fc82869#1093 Thanks @YunFeng0817! - Fix: cross origin iframe bugs. -
a77e302#1104 Thanks @jlalmes! - [console-plugin] Feat: Record unhandled rejection event. -
25a4f5a#1115 Thanks @Juice10! - Fix: Don't trigger Finish event when in liveMode. -
cb15800#1106 Thanks @mydea! - Fix: Ensure CSS support is checked more robustly. -
0732618#1100 Thanks @YunFeng0817! - Fix: wrong rootId value in special iframes. -
3caa25e#1098 Thanks @eoghanmurray! - Refactor: Don't have requestAnimationFrame looping in background for Live Mode. -
3a26e36#1092 Thanks @YunFeng0817! - Fix: regression of issue: ShadowHost can't be a string (issue 941) -
07d22e7#1111 Thanks @YunFeng0817! - Feat: enable to customize logger in the replayer. -
0627d4d#1109 Thanks @YunFeng0817! - Feat: add option to record on DOMContentLoaded event. -
174b9ac#1112 Thanks @YunFeng0817! - Fix: mutation Failed to execute 'insertBefore' on 'Node': Only one doctype on document allowed. -
5a1e5e9#1119 Thanks @Juice10! - Feat: Automate NPM package releases.
-