github rrweb-io/rrweb rrweb-player@2.0.0

latest release: rrweb-snapshot@2.0.0
6 hours ago

Major Changes

  • #1497 2606a2a Thanks @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 from rrweb/typings/... or rrdom/es. However you run import 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.cjs files instead. All .js files 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 .cjs and .umd.cjs files. The .umd.cjs files are CommonJS modules that bundle all files together to make it easy to ship one file to browser environments (similar to the previous .js files). The .cjs files are CommonJS modules that can be used in older Node.js environments. Types should be better defined in package.json and if you need specific types they might be exported from new packages (for example PlayerMachineState and SpeedMachineState are now exported from @rrweb/replay). Check the package.json's main and exports field for the available files.

  • #1031 ad9bc3e Thanks @Juice10! - Move shared rrweb event and recorder types into the new @rrweb/types package.

Minor Changes

  • #1039 bdd8940 Thanks @DexxDing! - Add inactive-period indicators to the player progress bar with a configurable inactiveColor option.

  • #1007 3924aaf Thanks @Juice10! - Add player.playRange(start, end, loop?, afterHook?) to play a bounded time range, optionally looping or invoking a callback when the range ends.

  • #1006 6f63cf1 Thanks @Juice10! - Add a maxScale option to configure the player's maximum replay scale, with 0 allowing unlimited scaling.

  • #859 e238462 Thanks @Juice10! - Add support for recording canvas snapshots at a configured FPS.

  • #895 de755ae Thanks @Juice10! - Add the fast-forward virtual DOM optimization for replay.

Patch Changes

Don't miss a new rrweb release

NewReleases is sending notifications on new releases.