@rrweb/record
0.0.89
Patch Changes
- Updated dependencies [
52c84e2]:- @posthog/rrweb@0.1.9
- @posthog/rrweb-utils@0.0.66
0.0.88
Patch Changes
- Updated dependencies [
718beee]:- @posthog/rrweb-utils@0.0.65
- @posthog/rrweb@0.1.8
0.0.87
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@0.1.7
0.0.86
Patch Changes
- Updated dependencies [
3bd8a2d]:- @posthog/rrweb-utils@0.0.64
- @posthog/rrweb@0.1.6
0.0.85
Patch Changes
- Updated dependencies [
045d79c]:- @posthog/rrweb@0.1.5
0.0.84
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@0.1.4
0.0.83
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) - Updated dependencies [
4a2ecf5]:- @posthog/rrweb@0.1.3
0.0.82
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) - Updated dependencies [
81adbfd]:- @posthog/rrweb@0.1.2
0.0.81
Patch Changes
- Updated dependencies [
f48eaf2,c50b27f]:- @posthog/rrweb@0.1.1
0.0.80
Patch Changes
- Updated dependencies [
800af7c,5116a41,9bd3ef0]:- @posthog/rrweb@0.1.0
- @posthog/rrweb-utils@0.0.63
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@0.0.79
0.0.78
Patch Changes
- Updated dependencies [
45f17ee]:- @posthog/rrweb@0.0.78
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@0.0.77
0.0.76
Patch Changes
- Updated dependencies [
38bb185]:- @posthog/rrweb@0.0.76
0.0.75
Patch Changes
- Updated dependencies [
e803b8f]:- @posthog/rrweb@0.0.75
0.0.74
Patch Changes
- Updated dependencies [
5392a55]:- @posthog/rrweb@0.0.74
0.0.73
Patch Changes
- Updated dependencies [
f95a0ec]:- @posthog/rrweb-types@0.0.62
- @posthog/rrweb@0.0.73
0.0.72
Patch Changes
- Updated dependencies [
fdc07f3]:- @posthog/rrweb@0.0.72
0.0.71
Patch Changes
- Updated dependencies [
23b2af1]:- @posthog/rrweb@0.0.71
0.0.70
Patch Changes
- Updated dependencies [
0e22d77]:- @posthog/rrweb@0.0.70
0.0.69
Patch Changes
- Updated dependencies [
74345e3]:- @posthog/rrweb@0.0.69
0.0.68
Patch Changes
- Updated dependencies [
374962a]:- @posthog/rrweb@0.0.68
0.0.67
Patch Changes
- Updated dependencies [
add2fae]:- @posthog/rrweb@0.0.67
0.0.66
Patch Changes
- Updated dependencies [
cafa9cc]:- @posthog/rrweb@0.0.66
0.0.65
Patch Changes
- Updated dependencies []:
- @posthog/rrweb@0.0.65
0.0.64
Patch Changes
- Updated dependencies [
3d93020]:- @posthog/rrweb@0.0.64
0.0.63
Patch Changes
- Updated dependencies []:
- @posthog/rrweb@0.0.63
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) - Updated dependencies [
33aa019]:- @posthog/rrweb@0.0.62
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@0.0.61
- @posthog/rrweb-types@0.0.61
- @posthog/rrweb-utils@0.0.61
2.0.0-alpha.18
Patch Changes
-
#1597
bd9eb70Thanks @pauldambra! - Correctly detect when angular has wrapped mutation observer
2.0.0-alpha.17
Patch Changes
-
db20184Thanks @Juice10! - Keep package version in sync with other packages -
#1515
8059d96Thanks @okejminja! - Added support for deprecated addRule & removeRule methods -
Updated dependencies [
40bbc25,68076b7,8059d96,335639a,be6bf52]:
2.0.0-alpha.15
Major 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.