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
-
#1039
bdd8940Thanks @DexxDing! - Add inactive-period indicators to the player progress bar with a configurableinactiveColoroption. -
#1007
3924aafThanks @Juice10! - Addplayer.playRange(start, end, loop?, afterHook?)to play a bounded time range, optionally looping or invoking a callback when the range ends. -
#1006
6f63cf1Thanks @Juice10! - Add amaxScaleoption to configure the player's maximum replay scale, with0allowing unlimited scaling. -
#859
e238462Thanks @Juice10! - Add support for recording canvas snapshots at a configured FPS. -
#895
de755aeThanks @Juice10! - Add the fast-forward virtual DOM optimization for replay.
Patch Changes
-
#1198
b5e30cfThanks @charliegracie! - Reset the finished flag in Controllergotoinstead ofhandleProgressClickso that it is properly handled ifgotois called directly. -
#1287
efdc167Thanks @Juice10! - Upgrade all projects to typescript 4.9.5 -
#1126
227d43aThanks @YunFeng0817! - Refactor all suffix of bundled scripts with commonjs module from 'js' to cjs #1087. -
#1247
a01a12eThanks @Juice10! - Fixplayer.getMirror,player.playRange,player.$settypes in rrwebPlayer -
#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 -
#1028
2286c11Thanks @MengZihan712! - Fix fullscreen player sizing so the progress bar and controls remain visible. -
#1014
9de0de2Thanks @Juice10! - Add the missingmaxScaleoption to rrweb-player TypeScript definitions and document player option defaults. -
#1045
e08d039Thanks @YunFeng0817! - Fix rrweb-player TypeScript imports after the@rrweb/typessplit. -
Updated dependencies [
b2d5689,a8478f1,ce6019d,bac1d7b,5ba933c,fd85c79]:- rrweb@2.0.0-alpha.2
-
Updated dependencies [
f1b23dd]:- rrweb@2.0.0-alpha.1
-
Updated dependencies [
22bc4c3,db20184,22bc4c3,2606a2a,2606a2a,2606a2a,33e01f5]:- @rrweb/replay@2.0.0
- @rrweb/packer@2.0.0