-
#1561
8e55c45
Thanks @billyvg! - Ignore invalid DOM attributes when diffing -
#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
andDataURLOptions
- #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 fromrrweb/typings/...
orrrdom/es
. However you runimport 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 inpackage.json
and if you need specific types they might be exported from new packages (for examplePlayerMachineState
andSpeedMachineState
are now exported from@rrweb/replay
). Check thepackage.json
'smain
andexports
field for the available files.
-
#1352
e607e83
Thanks @juliecheng! - fix: scrolling may not be applied when fast-forwarding -
Updated dependencies [
58c9104
,a2be77b
,a7c33f2
,8aea5b0
,314a8dd
,7c0dc9d
,07ac5c9
]:
- Updated dependencies [
c6600e7
]:
-
#1222
b798f2d
Thanks @YunFeng0817! - Fix: rrdom bugs- Fix a bug in the diff algorithm.
- Omit the 'srcdoc' attribute of iframes to avoid overwriting content.
-
Updated dependencies [
d7c72bf
]:
-
#1139
f27e545
Thanks @YunFeng0817! - Fix: If RRNode appends a single child twice, children of the node will become an infinite link list.
-
#1127
3cc4323
Thanks @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)
-
#1126
227d43a
Thanks @YunFeng0817! - Refactor all suffix of bundled scripts with commonjs module from 'js' to cjs #1087. -
#1126
227d43a
Thanks @YunFeng0817! - Fix: improve rrdom robustness #1091.