Commit Graph

211 Commits

Author SHA1 Message Date
Yanzhen Yu
30f82a891b Release 1.1.5 2026-04-01 12:00:00 +08:00
Yanzhen Yu
63cec44c10 format code 2026-04-01 12:00:00 +08:00
bachmanity1
9110664ca2 add keepIframeSrcFn option (#81)
* add allowIframe option to snapshot

* rename allowIframe to keepIframeSrcFn
2026-04-01 12:00:00 +08:00
Yun Feng
61074a2303 style(rebuild.ts snapshot.ts): format code 2026-04-01 12:00:00 +08:00
bachmanity1
5fbb459a8e fix media playback bug (#80) 2026-04-01 12:00:00 +08:00
Yanzhen Yu
17b79ca210 Release 1.1.4 2026-04-01 12:00:00 +08:00
Lucky Feng
68b39c82c4 fix: "Uncaught TypeError: Cannot read property 'insertRule' of null" caused by CSP style-src (#79) 2026-04-01 12:00:00 +08:00
Justin Halsall
1849943d48 Fixes https://github.com/rrweb-io/rrweb/issues/567 (#78) 2026-04-01 12:00:00 +08:00
mgoshorn
42273eb2e4 Updates regex used to validate tagnames to allow for tagnames that include namespace information (esp: svg tags) (#77)
Co-authored-by: Mitch Goshorn <mitch.goshorn@calmid.com>
2026-04-01 12:00:00 +08:00
Yanzhen Yu
6e144d13b3 Release 1.1.3 2026-04-01 12:00:00 +08:00
Yanzhen Yu
41e5082c08 related to #75 mask password input by default 2026-04-01 12:00:00 +08:00
Justin Halsall
b75140dc62 Allow password to be maskable instead of ignorable (#65)
* Add password to maskInputOptions on types

* Add password on maskInputOptions to types definition
2026-04-01 12:00:00 +08:00
Eoghan Murray
f2c5ab096e Improve parsing of srcset according to whatwg spec (#74)
* Improve parsing of srcset according to whatwg spec; e.g. srcset="http://example.com/size400,300/img.jpg 640w"

* Trim/normalise the output in order to conform to prior version; solely to keep tests happy

* Add test case for embedded commas in a srcset url as well as support for future possible parenthesis in descriptor string

* Drop 'future proof' test as it causes an error message in test output
2026-04-01 12:00:00 +08:00
Yanzhen Yu
628fee9292 Release 1.1.2 2026-04-01 12:00:00 +08:00
re-fort
89cdf67234 Enable to mask texts (#73)
* chore: reorder options

* feat: enable to mask texts

* feat: add the default mask function

* refactor: rename options to identify the difference between  mask text and mask input

* test: add tests about masking
2026-04-01 12:00:00 +08:00
Justin Halsall
74706eeac6 Speed up addHoverClass on large stylesheets (#72)
* speed up addHoverClass on large style sheets

* longer strings first to prevent accidental partial matches

* can add hover class when there is a multi selector with the same prefix

* tweak performance
2026-04-01 12:00:00 +08:00
Yanzhen Yu
19038fe593 Release 1.1.1 2026-04-01 12:00:00 +08:00
Yanzhen Yu
e92d92b0b6 add isShadow flag if a node is under shadow root 2026-04-01 12:00:00 +08:00
Yanzhen Yu
d79922f6b6 update typings 2026-04-01 12:00:00 +08:00
Yanzhen Yu
697be5acf7 Release 1.1.0 2026-04-01 12:00:00 +08:00
Yanzhen Yu
105268f472 snapshot and rebuild shadow DOM
https://github.com/rrweb-io/rrweb/issues/38
2026-04-01 12:00:00 +08:00
Yanzhen Yu
af000d4a7a add typings script to prepack 2026-04-01 12:00:00 +08:00
Eoghan Murray
be2648054c Found an example in the wild of the deprecated pre-css way of adding a background image to table cells (#69) 2026-04-01 12:00:00 +08:00
Yanzhen Yu
7cb4a25597 using for loop instead of forEach in element classlists
pick #64 and close #68
2026-04-01 12:00:00 +08:00
Province Innovation
c09ee435d8 Valid tag names can include any digit [0-9] (#66) 2026-04-01 12:00:00 +08:00
Justin Halsall
17b1821a15 Adding prepare & prepack npm statement (#67)
* Add prepare & prepack

* Create .npmignore

* remove node_modules, they might be needed
2026-04-01 12:00:00 +08:00
Yanzhen Yu
3d463d219c Release 1.0.7 2026-04-01 12:00:00 +08:00
Yanzhen Yu
d449a1263d safe access iframe document 2026-04-01 12:00:00 +08:00
Yanzhen Yu
4d186077f4 Release 1.0.6 2026-04-01 12:00:00 +08:00
Yanzhen Yu
a5d77ea4f0 add iframe load timeout 2026-04-01 12:00:00 +08:00
Yanzhen Yu
59c849e429 Release 1.0.5 2026-04-01 12:00:00 +08:00
yz-yu
b0508d4df4 nested record iframe (#63)
* pick nested branch

* iframe snapshot

* temp: add bundle file to git

* revert ignore file

* refactor iframe impl
1. do callback one iframe is loaded, let rrweb handle the rest
2. handle iframe as normal element in rebuild

* rename hook function
2026-04-01 12:00:00 +08:00
Yanzhen Yu
f780c42b95 Release 1.0.4 2026-04-01 12:00:00 +08:00
Yanzhen Yu
af61cab872 fix href value 2026-04-01 12:00:00 +08:00
Yanzhen Yu
c24e610f9e Release 1.0.3 2026-04-01 12:00:00 +08:00
丶Cccccc
53f51e0e8e bugfix: svg url中id name被误转为绝对路径 (#59)
Co-authored-by: wanglei002 <wanglei002@sensorsdata.cn>
2026-04-01 12:00:00 +08:00
cgf
451bf457cc svg xlink:href 路径问题 (#55)
* feat: 修改在svg , xlink:href 相对路径改为绝对路径

* feat: 修改在svg , xlink:href 路径

* feat: 修改在svg, 图片路径问题

* feat: 修改在svg, 图片路径问题

* feat: 修改在svg , xlink:href 路径

Co-authored-by: caogf <caogf@guahao.com>
2026-04-01 12:00:00 +08:00
Yanzhen Yu
3f406ea5ce Release 1.0.2 2026-04-01 12:00:00 +08:00
Yanzhen Yu
3a946702c2 fix https://github.com/rrweb-io/rrweb-snapshot/issues/56
safe access tagName of form element
2026-04-01 12:00:00 +08:00
Yanzhen Yu
93be66e22a Release 1.0.1 2026-04-01 12:00:00 +08:00
Yanzhen Yu
c7966070ef fix https://github.com/rrweb-io/rrweb/issues/395 2026-04-01 12:00:00 +08:00
Yanzhen Yu
e65160697b Release 1.0.0 2026-04-01 12:00:00 +08:00
Yanzhen Yu
a9ef2cfa83 refactoring public API 2026-04-01 12:00:00 +08:00
Yanzhen Yu
6852da5fe5 close #38, update data uri regexp 2026-04-01 12:00:00 +08:00
Yanzhen Yu
40d754884a fix lint 2026-04-01 12:00:00 +08:00
Yanzhen Yu
288beb6cb2 Release 0.8.4 2026-04-01 12:00:00 +08:00
Karl-Aksel Puulmann
0c62d31002 Allow blocking elements by selector (#50)
* Extract method (isElementBlocked) and add tests

* Add blockSelector argument to snapshot

If blockSelector is passed, it will be matched against the element.

Reasoning: Mutating class names can get messy, so providing another hook
helps keep code clean by using data-attributes instead.
2026-04-01 12:00:00 +08:00
Eoghan Murray
65671be739 Add ability to reset the mapping id, to facilitate destructor in rrweb (rrwebRecord.stop) (#49) 2026-04-01 12:00:00 +08:00
Eoghan Murray
b005450c64 Prefer a map and a join as feel it's easier to understand, and I found a case in the wild where Array.prototype.reduce was overwritten (which admittedly is also a danger with map) (#52) 2026-04-01 12:00:00 +08:00
Yanzhen Yu
f9f9e9cecd Release 0.8.3 2026-04-01 12:00:00 +08:00