Commit Graph

920 Commits

Author SHA1 Message Date
Yanzhen Yu
c2e042ca6c Release 1.0.0-beta.0 2021-06-20 21:40:16 +08:00
Justin Halsall
8a9212fed4 Tests: Iframe event order (#568)
* add failing test

* assert order of events

* defer attaching of iframe till FullSnapshot is done
Fixes: https://github.com/rrweb-io/rrweb/issues/567

* correct event order in iframe integration test snapshot

* trigger build

* trigger build

* Move settimeout responsibility to snapshot
https://github.com/rrweb-io/rrweb-snapshot/pull/78

* upgrade rrweb-snapshot to 1.1.4

* DRY record tests

* cleanup

* Upgrade puppeteer to 9.1.1
for (hopefully) more consistent behaviour between CI and development

* make input bigger to prevent triggering scroll events

* page.waitFor is deprecated
more info: https://github.com/puppeteer/puppeteer/issues/6214

* Set os and distro for Travis ci

Co-authored-by: yz-yu <yanzhen@smartx.com>
2021-06-17 21:02:42 +08:00
Yanzhen Yu
069397c2c7 fix registry 2021-06-17 20:25:26 +08:00
Yanzhen Yu
2c90543660 update rrweb-snapshot 2021-06-17 20:19:04 +08:00
yashkumar18
d4d437db37 Handle Drag events in replayer (#587)
* Handle Drag events in replayer

* add touch move source as well

Co-authored-by: Yash Kumar <yashkumar@Yashs-MacBook-Pro-2.local>
2021-06-17 17:21:12 +08:00
yashkumar18
ba6666b7f3 Fix order of ternary expression for mouse move source type (#586)
Co-authored-by: Yash Kumar <yashkumar@Yashs-MacBook-Pro-2.local>
2021-06-17 14:57:29 +08:00
Yun Feng
ce74062869 update typings and fix lint errors 2021-06-16 11:40:10 +08:00
Justin Halsall
c59bd710d2 add ability to stop listening 2021-06-16 11:30:16 +08:00
dependabot[bot]
1c59ead007 Bump glob-parent from 5.1.1 to 5.1.2 (#74)
Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/gulpjs/glob-parent/releases)
- [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gulpjs/glob-parent/compare/v5.1.1...v5.1.2)

---
updated-dependencies:
- dependency-name: glob-parent
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-12 14:04:17 +08:00
Fatih Solhan
e17845cf18 Add Vue.js version link to readme file 2021-06-10 16:06:54 +03:00
Yakko Majuri
1dd91f0737 Update canvas recording mechanism (#536) 2021-06-10 19:47:19 +08:00
Yanzhen Yu
d9d3e5461a Release 1.1.4 2021-06-10 19:37:55 +08:00
Yanzhen Yu
1062770e20 shadow DOM recording GA
1. record shadow DOM event target by parsing composed path
2. nested record scroll event in shadow DOM
2021-06-10 19:26:00 +08:00
Lucky Feng
079ecd4972 fix: "Uncaught TypeError: Cannot read property 'insertRule' of null" caused by CSP style-src (#79) 2021-06-09 18:55:03 +08:00
Yanzhen Yu
53699822e4 remove useless log 2021-06-07 09:50:37 +08:00
Justin Halsall
6710e2c0e3 Fixes https://github.com/rrweb-io/rrweb/issues/567 (#78) 2021-06-06 21:52:51 +08:00
dependabot[bot]
c25bd2ee85 Bump ws from 6.2.1 to 6.2.2 (#575)
Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-06 21:52:11 +08:00
dependabot[bot]
04b3d8b351 Bump ws from 6.2.1 to 6.2.2 (#72)
Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-06 21:51:52 +08:00
mgoshorn
9fbd7e1661 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>
2021-05-27 19:17:09 +08:00
dependabot[bot]
cbcd46a5b1 Bump browserslist from 4.14.5 to 4.16.6 (#569)
Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.14.5 to 4.16.6.
- [Release notes](https://github.com/browserslist/browserslist/releases)
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/browserslist/browserslist/compare/4.14.5...4.16.6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-27 09:44:40 +08:00
Yanzhen Yu
28b6ac8bd9 fix mirror usage in shadow DOM manager 2021-05-26 00:21:18 +08:00
Yanzhen Yu
3b20abec2d fix unit test 2021-05-26 00:04:23 +08:00
Yanzhen Yu
995d80a26f create mirror during record 2021-05-25 23:37:07 +08:00
Yanzhen Yu
51f64d8fad fix #565 add departed warning 2021-05-25 20:01:31 +08:00
Yanzhen Yu
0f86a72705 fix useless code introduced by resolving conflicts 2021-05-22 18:02:55 +08:00
Ziqiu Zhao
3b4ff0e201 feature: make mirror independent in Replayer (#407)
Co-authored-by: zhaoziqiu <zhaoziqiu@meituan.com>
Co-authored-by: yz-yu <yanzhen@smartx.com>
2021-05-22 18:01:11 +08:00
dependabot[bot]
e71a8d3fc3 Bump lodash from 4.17.20 to 4.17.21
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-13 10:31:03 +08:00
Yanzhen Yu
4059b2a469 Release 1.1.3 2021-05-13 02:22:31 +08:00
Yanzhen Yu
0d1dbdd0a7 related to #75 mask password input by default 2021-05-13 02:18:54 +08:00
Justin Halsall
0bb95f1ee7 Allow password to be maskable instead of ignorable (#65)
* Add password to maskInputOptions on types

* Add password on maskInputOptions to types definition
2021-05-13 02:13:44 +08:00
Yanzhen Yu
b83123a23c fix #524 polyfill Node.prototype.contains 2021-05-12 14:25:29 +08:00
dependabot[bot]
2169af167f Bump lodash from 4.17.19 to 4.17.21
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.19 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.19...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-11 21:47:47 +00:00
Eoghan Murray
362359eccc 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
2021-05-04 13:28:38 +08:00
Lucky Feng
e9b9d42e6e fix: #542 wrong results of splitting log stacks (#547)
fix bug of stack parcer and increase compatibility for different browser vendors
2021-05-04 13:11:20 +08:00
Lucky Feng
7e46341c18 fix: issue #548 (#550)
1. Do not use virtual parent optimization if the mutation targets have iframe elements as children. This will cause some performance regression but will be easy to add and ship.
2. If an iframe element has already been a child of a virtual parent, add the virtual parent back to the dom.
2021-05-02 21:56:43 +08:00
Yanzhen Yu
2b96a68e88 check events cursor before comparing timestamp 2021-04-23 18:49:27 +08:00
Yanzhen Yu
ed990536bc update typings file 2021-04-23 18:40:23 +08:00
Justin Halsall
6f0dde529e fix validation warning 2021-04-22 15:35:57 +02:00
Justin Halsall
30fe993e99 enable sourcemaps everywhere 2021-04-22 15:35:26 +02:00
Justin Halsall
922919d251 update rollup 2021-04-22 15:32:47 +02:00
Justin Halsall
4c9c3e9c94 remove duplicate files 2021-04-22 15:24:51 +02:00
re-fort
18ad3dae1a Add options to mask texts (#540)
* feat: add options 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

* doc: add options about masking

* chore: bump up rrweb-snapshot version
2021-04-22 16:03:52 +08:00
Yanzhen Yu
7850a75c83 Release 1.1.2 2021-04-22 15:38:27 +08:00
re-fort
a0d82589b7 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
2021-04-22 15:34:36 +08:00
Justin Halsall
3c2d7c1eea 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
2021-04-22 15:32:50 +08:00
Yanzhen Yu
df455c483a fix #535 add play-back event to reset mirror and replayer 2021-04-18 21:31:29 +08:00
Yanzhen Yu
cf860278a2 call sort after unpack 2021-04-18 21:10:29 +08:00
Eoghan Murray
af0c0d95bd Sort events upon creation, and keep ordered (#411)
* Sort events at start, as otherwise we risk misidentifying the last event

* Keep inserted events in the correct order, ensuring we don't misidentify the last event

 - e.g. network conditions mean that 'live' events come in non-sequentially
 - or so that adding custom events to an existing event works

* Ensure we maintain original ordering while inserting a new event which has an identical timestamp to an existing event. This came up with a series of mutations which had the same timestamp but needed to be applied in the correct order

* Fast track the common case of a new event being added which occurs after all prior events
2021-04-18 14:21:47 +08:00
Eoghan Murray
7c5e15d607 Don't perform newly added actions if player is paused (#539) 2021-04-18 14:15:57 +08:00
Yanzhen Yu
fbfb96297d fix first play check 2021-04-17 16:34:06 +08:00