Commit Graph

107 Commits

Author SHA1 Message Date
dphuang2
4248b3d2a9 Ignore broken CSS (#15)
Broken CSS inside a page will throw an error on our behalf. This should
be ignored because we are not in control of the CSS on the page we are
recording.
2019-08-10 10:13:03 +08:00
Yanzhen Yu
950c94d69c Release 0.7.14 2019-08-07 23:39:50 +08:00
Yanzhen Yu
ada77fe861 remove child node before set default value 2019-08-07 23:38:09 +08:00
Yanzhen Yu
e48d50a718 update typings 2019-08-04 14:48:22 +08:00
Yanzhen Yu
34170b277b Release 0.7.13 2019-08-04 14:43:02 +08:00
Yanzhen Yu
b22ccd6bc0 fix #14 fix innerText cap issue 2019-08-04 14:40:54 +08:00
Yanzhen Yu
61a99c642a Use css parser to add hover class name to selectors.
Previously we use a regexp to match all the CSS selectors and add
our hover class name to it, which has been proved not solid and
may be very slow in some situation.
Using a production ready css parser can handle this better and also
provide ability's to do more accurate things to the recorded
stylesheets.
2019-08-04 14:35:35 +08:00
Yanzhen Yu
0865c82948 Release 0.7.12 2019-06-15 14:41:47 +08:00
Yanzhen Yu
77c7053751 add mask all inputs option to snapshot 2019-06-15 14:41:36 +08:00
Yanzhen Yu
df137a8f3b Release 0.7.11 2019-05-26 16:05:57 +08:00
Yanzhen Yu
40da9ffa2f format code 2019-05-26 16:05:47 +08:00
Razvan Sandu
9b0c92fd67 Allow rendering image tags inside svgs during replay (#13) 2019-05-23 18:18:10 +08:00
Benoît Zugmeyer
5697c689d9 reuse serialized nodes ids (#12)
* reuse serialized nodes ids

With this patch, each DOM node keeps its id during its existence. This
allows to apply RRWeb events to previous snapshots if needed.

`resetId` has been removed because it loses its meaning: calling it
would not reset the existing nodes ids anymore, only the new ones.

Since we don't reset the id anymore, we may exhaust the available ids
quicker, but Number.MAX_SAFE_INTEGER (2 ** 53 - 1) is pretty large, so I
doubt this'll cause any problem.

* improv TS typing

The `nAsINode` variable was not very elegant.  Simplify this by removing
the cast, and make the INode interface compatible with Node.

* update typings
2019-05-21 17:55:43 +08:00
Yanzhen Yu
bb1fdac86c Release 0.7.10 2019-05-12 21:06:49 +08:00
Yanzhen Yu
0f30dc288c pass inline stylesheet option to iteratly 2019-05-12 21:06:38 +08:00
Yanzhen Yu
543cad60e0 Release 0.7.9 2019-05-12 16:04:45 +08:00
Yanzhen Yu
724b67f166 add inline option which can bypass the inline stylesheet 2019-05-12 16:04:14 +08:00
Whalefreezer
78c8c11e6b add support for css @import rules (#11) 2019-05-06 21:56:33 +08:00
Yanzhen Yu
fe6627aed5 Release 0.7.8 2019-04-14 15:59:34 +08:00
Yanzhen Yu
6218745a75 update typings 2019-04-14 15:59:22 +08:00
Yanzhen Yu
ea59841415 Release 0.7.7 2019-04-14 15:55:51 +08:00
Yanzhen Yu
171d7b39b6 accept RegExp type block class config 2019-04-14 15:55:34 +08:00
Yanzhen Yu
7b02f13a19 update typescript and fix test cases 2019-04-02 21:43:16 +08:00
Yanzhen Yu
aa5b2d38b1 Release 0.7.6 2019-04-01 22:37:21 +08:00
Yanzhen Yu
3dacd944cb add typings folder to npm files 2019-04-01 22:37:09 +08:00
Yanzhen Yu
2442f73f5b Release 0.7.5 2019-04-01 11:48:05 +08:00
Yanzhen Yu
f4ebd6b731 add typings autogen command 2019-04-01 11:47:49 +08:00
Sam Mason
03c9fde822 Make block css class optional & fix test (#6)
* Make block class optional

* Fix test by removing unexpected space space
2019-04-01 10:30:52 +08:00
Yanzhen Yu
110511ce73 Release 0.7.4 2019-02-17 16:47:24 +08:00
Yanzhen Yu
687c710fe9 iterate style element to get css rules string 2019-02-17 16:34:28 +08:00
Yanzhen Yu
5e07137059 Release 0.7.3 2019-01-24 18:40:07 +08:00
Yanzhen Yu
c4c147649c handle empty url path 2019-01-24 18:39:57 +08:00
The Gitter Badger
b9565334f6 Add Gitter badge (#9) 2019-01-06 19:39:02 +08:00
Yanzhen Yu
286a98a9e8 Release 0.7.2 2018-12-30 21:50:16 +08:00
Yanzhen Yu
7c275cbf2c fix the format and use window.location 2018-12-30 21:50:04 +08:00
Daniël van de Giessen
91e031844e Fixed detection of multiple consecutive CSS URLs without quotes (#4) 2018-12-30 13:36:17 +08:00
Daniël van de Giessen
056b317116 Parse style attributes for absolute URL paths (#5) 2018-12-30 13:19:31 +08:00
Yanzhen Yu
f5a154b750 Release 0.7.1 2018-12-29 12:13:16 +08:00
Daniël van de Giessen
e3f371cd67 Cross-platform npm scripts using cross-env (#2) 2018-12-29 12:12:28 +08:00
Yanzhen Yu
f11aa15105 Release 0.7.0 2018-12-27 12:54:42 +08:00
Yanzhen Yu
9854e5cf31 add camel case svg element tag names to tag map 2018-12-27 12:53:07 +08:00
Yanzhen Yu
922be70f54 do not add origin before data uri image 2018-12-27 12:44:52 +08:00
Yanzhen Yu
e0b56e5de0 Release 0.6.11 2018-12-21 22:32:07 +08:00
Yanzhen Yu
6a910d3eaa close before open to make sure document was closed 2018-12-21 22:32:01 +08:00
Yanzhen Yu
abaa5d935c Release 0.6.10 2018-12-02 23:15:56 +08:00
Yanzhen Yu
b7b38c3a2b delete not needed props 2018-12-02 23:15:48 +08:00
Yanzhen Yu
4ae0361372 Release 0.6.9 2018-12-02 23:06:59 +08:00
Yanzhen Yu
d8c5ae5ae6 handle block element 2018-12-02 23:06:36 +08:00
Yanzhen Yu
39373ec1da update README 2018-11-30 23:04:09 +08:00
Yanzhen Yu
ab79af115a update the test snapshot 2018-11-30 22:59:29 +08:00