Files
rrweb/packages/rrweb/CHANGELOG.md
github-actions[bot] c059dbf41d Version Packages (alpha) (#1605)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-21 00:50:38 +01:00

43 KiB

rrweb

2.0.0-alpha.19

Patch Changes

  • #1615 dc20cd4 Thanks @eoghanmurray! - Improve performance of splitCssText for <style> elements with large css content - see #1603

  • #1640 3e9e42f Thanks @eoghanmurray! - Improve performance of splitCssText for <style> elements with large css content - see #1603

  • #1600 a6893f7 Thanks @eoghanmurray! - #1575 Fix that postcss could fall over when trying to process css content split arbitrarily

  • #1631 88ea2d0 Thanks @pauldambra! - Move patch function into @rrweb/utils to improve bundling

  • #1695 fc390a9 Thanks @YunFeng0817! - fix: rrweb recorder may throw error when stopping recording after an iframe becomes cross-origin

  • #1618 79837ac Thanks @billyvg! - This fixes an issue where inlined CSS from a remotely loaded <link> does not get applied properly due to object reference mutation.

  • #1614 6f4e691 Thanks @billyvg! - Change to ignore all link[rel="modulepreload"] instead of including only those with as="script"

  • #1599 9cd28b7 Thanks @eoghanmurray! - #1596 Add masking for innerText mutations on textarea elements

  • Updated dependencies [47a7c3f, dc20cd4, 3e9e42f, a6893f7, 88ea2d0, f2419f2, 6f4e691, 76df979]:

    • rrweb-snapshot@2.0.0-alpha.19
    • @rrweb/utils@2.0.0-alpha.19
    • rrdom@2.0.0-alpha.19
    • @rrweb/types@2.0.0-alpha.19

2.0.0-alpha.18

Minor Changes

Patch Changes

  • #1535 04ee6ed Thanks @eoghanmurray! - Slight simplification to how we replace :hover after #1458

  • #1437 5fbb904 Thanks @eoghanmurray! - Edge case: Provide support for mutations on a <style> element which (unusually) has multiple text nodes

  • #1593 5a78938 Thanks @daibhin! - NodeType enum 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, attributes and DataURLOptions

  • Updated dependencies [8e55c45, 02cc62d, 04ee6ed, 5fbb904, 5a78938]:

    • rrdom@2.0.0-alpha.18
    • rrweb-snapshot@2.0.0-alpha.18
    • @rrweb/types@2.0.0-alpha.18
    • @rrweb/utils@2.0.0-alpha.18

2.0.0-alpha.17

Minor Changes

Patch Changes

  • #1417 40bbc25 Thanks @YunFeng0817! - fix: duplicate textContent for style elements cause incremental style mutations to be invalid

  • #1527 68076b7 Thanks @arredgroup! - Export takeFullSnapshot function for a recording process

  • #1515 8059d96 Thanks @okejminja! - Added support for deprecated addRule & removeRule methods

  • #1509 be6bf52 Thanks @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]:

    • rrweb-snapshot@2.0.0-alpha.17
    • rrdom@2.0.0-alpha.17
    • @rrweb/types@2.0.0-alpha.17
    • @rrweb/utils@2.0.0-alpha.17

2.0.0-alpha.16

Patch Changes

  • #1386 a2c8a1a Thanks @ababik! - Fix that the optional maskInputFn was being accidentally ignored during the creation of the full snapshot

  • #1512 d08624c Thanks @eoghanmurray! - optimisation: skip mask check on leaf elements

  • Updated dependencies [a2c8a1a, d08624c]:

    • rrweb-snapshot@2.0.0-alpha.16
    • rrdom@2.0.0-alpha.16
    • @rrweb/types@2.0.0-alpha.16

2.0.0-alpha.15

Major Changes

  • #1497 2606a2a Thanks @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 2606a2a Thanks @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 from rrweb/typings/... or rrdom/es. However you run import rrweb from '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.cjs files instead. All .js files 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 .cjs and .umd.cjs files. The .umd.cjs files are CommonJS modules that bundle all files together to make it easy to ship one file to browser environments (similar to the previous .js files). The .cjs files are CommonJS modules that can be used in older Node.js environments. Types should be better defined in package.json and if you need specific types they might be exported from new packages (for example PlayerMachineState and SpeedMachineState are now exported from @rrweb/replay). Check the package.json's main and exports field for the available files.

  • #1497 2606a2a Thanks @Juice10! - Remove the rrweb-all.js, rrweb-record.js, and rrweb-replay.js files from rrweb package. Now you can use @rrweb/all, @rrweb/record, and @rrweb/replay packages instead. Check out the README of each package for more information or check out PR #1033 to see the changes.

Patch Changes

  • #1033 7261c43 Thanks @Juice10! - Export ReplayPlugin from rrweb directly. Previously we had to do import type { ReplayPlugin } from 'rrweb/dist/types'; now we can do import type { ReplayPlugin } from 'rrweb';

  • #1468 4014305 Thanks @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 609b7fa Thanks @JonasBa! - Optimize performance of isParentRemoved by converting it to an iterative procedure

  • #1493 82f6fec Thanks @eoghanmurray! - Replay: Replace negative lookbehind in regexes from css parser as it causes issues with Safari 16

  • #1353 5c27b76 Thanks @YunFeng0817! - Fix: some nested cross-origin iframes can't be recorded

  • #1328 d38893f Thanks @eoghanmurray! - Refactor to preclude the need for a continuous raf loop running in the background which is related to shadowDom

  • #1295 d7cf8dd Thanks @colingm! - Return early for child same origin frames

  • #760 e08706a Thanks @eoghanmurray! - Add slimDOM option to block animation on