Major Changes
-
#1497
2606a2aThanks @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.cjsfiles instead. All.jsfiles 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.cjsand.umd.cjsfiles. The.umd.cjsfiles are CommonJS modules that bundle all files together to make it easy to ship one file to browser environments (similar to the previous.jsfiles). The.cjsfiles are CommonJS modules that can be used in older Node.js environments. Types should be better defined inpackage.jsonand if you need specific types they might be exported from new packages (for examplePlayerMachineStateandSpeedMachineStateare now exported from@rrweb/replay). Check thepackage.json'smainandexportsfield for the available files. -
#1031
ad9bc3eThanks @Juice10! - Move shared rrweb event and recorder types into the new@rrweb/typespackage.
Minor Changes
-
#1129
979d2b1Thanks @eoghanmurray! - click events now include a.pointerTypeattribute which distinguishes between 'pen', 'mouse' and 'touch' events. There is no new PenDown/PenUp events, but these can be detected with a MouseDown/MouseUp + pointerType=pen -
#1503
335639aThanks @Juice10! - Support top-layer components. Fixes #1381. -
#1035
2a80949Thanks @Juice10! - Add types for cross-origin iframe recording support.
Patch Changes
-
#1833
0f0a532Thanks @Juice10! - Add public asset event type aliases for the 2.0 event contract. -
#1268
d872d28Thanks @eoghanmurray! - Compact style mutation fixes and improvements- fixes when style updates contain a 'var()' on a shorthand property #1246
- further ensures that style mutations are compact by reverting to string method if it is shorter
-
#1287
efdc167Thanks @Juice10! - Upgrade all projects to typescript 4.9.5 -
#1432
123a81eThanks @Juice10! - AddlooptomediaInteractionParam -
#1704
33e01f5Thanks @eoghanmurray! - Provide a /umd/ output folder alongside the /dist/ one so that we can serve UMD (Universal Module Definition) files with a .js extension, without upsetting expectations set by package.json that all .js files in /dist/ are modules -
#1369
c278d06Thanks @stefansundin! - Fix type error when using"moduleResolution": "NodeNext". -
Updated dependencies [
2a80949]:- rrweb-snapshot@2.0.0-alpha.4