From d5106c891c5045e7f431d2934982dd7c7372ef07 Mon Sep 17 00:00:00 2001 From: Justin Halsall Date: Fri, 7 Jun 2024 16:40:32 +0200 Subject: [PATCH] Added changesets for https://github.com/rrweb-io/rrweb/pull/1033 (#1497) * Add extra changeset describing changes of https://github.com/rrweb-io/rrweb/pull/1033 * Apply formatting changes * chore: update changelog for PR 1033: Split plugins out of rrweb and move them into their own packages Split plugins out of rrweb and move them into their own packages: @rrweb/packer, @rrweb/rrweb-plugin-canvas-webrtc-record, @rrweb/rrweb-plugin-canvas-webrtc-replay, @rrweb/rrweb-plugin-sequential-id-record, @rrweb/rrweb-plugin-sequential-id-replay, @rrweb/rrweb-plugin-console-record, @rrweb/rrweb-plugin-console-replay. Check out the README of each package for more information or check out https://github.com/rrweb-io/rrweb/pull/1033 to see the changes. * docs: describe changes to distributed files * Fix snapshot for vitest * Apply formatting changes * Make changeset about new bundled files clearer --- .changeset/perfect-bulldogs-punch.md | 12 +++++++++++ .changeset/pretty-meals-flash.md | 20 +++++++++++++++++++ .changeset/small-hats-kneel.md | 8 ++++++++ .../cross-origin-iframes.test.ts.snap | 2 +- 4 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 .changeset/perfect-bulldogs-punch.md create mode 100644 .changeset/pretty-meals-flash.md create mode 100644 .changeset/small-hats-kneel.md diff --git a/.changeset/perfect-bulldogs-punch.md b/.changeset/perfect-bulldogs-punch.md new file mode 100644 index 0000000000..3311a7bf1b --- /dev/null +++ b/.changeset/perfect-bulldogs-punch.md @@ -0,0 +1,12 @@ +--- +"@rrweb/rrweb-plugin-canvas-webrtc-record": major +"@rrweb/rrweb-plugin-canvas-webrtc-replay": major +"@rrweb/rrweb-plugin-sequential-id-record": major +"@rrweb/rrweb-plugin-sequential-id-replay": major +"@rrweb/rrweb-plugin-console-record": major +"@rrweb/rrweb-plugin-console-replay": major +"@rrweb/packer": major +"rrweb": major +--- + +Split plugins out of rrweb and move them into their own packages: @rrweb/packer, @rrweb/rrweb-plugin-canvas-webrtc-record, @rrweb/rrweb-plugin-canvas-webrtc-replay, @rrweb/rrweb-plugin-sequential-id-record, @rrweb/rrweb-plugin-sequential-id-replay, @rrweb/rrweb-plugin-console-record, @rrweb/rrweb-plugin-console-replay. Check out the README of each package for more information or check out https://github.com/rrweb-io/rrweb/pull/1033 to see the changes. diff --git a/.changeset/pretty-meals-flash.md b/.changeset/pretty-meals-flash.md new file mode 100644 index 0000000000..6ab463c1da --- /dev/null +++ b/.changeset/pretty-meals-flash.md @@ -0,0 +1,20 @@ +--- +"@rrweb/all": major +"@rrweb/packer": major +"@rrweb/rrweb-plugin-canvas-webrtc-record": major +"@rrweb/rrweb-plugin-canvas-webrtc-replay": major +"@rrweb/rrweb-plugin-console-record": major +"@rrweb/rrweb-plugin-console-replay": major +"@rrweb/rrweb-plugin-sequential-id-record": major +"@rrweb/rrweb-plugin-sequential-id-replay": major +"@rrweb/record": major +"@rrweb/replay": major +"rrdom": major +"rrdom-nodejs": major +"rrweb": major +"rrweb-player": major +"rrweb-snapshot": major +"@rrweb/types": major +--- + +Important: If you don't reference distributed files directly, for example you run `import rrweb from 'rrweb'` you won't notice a difference. If you include rrweb in a script tag and referred to a `.js` file, you'll now have to update that path to include a `.umd.cjs` file. Distributed files have new paths, filenames and extensions. All packages now no longer include a `.js` files, instead they include `.cjs`, `.umd.cjs` and `.mjs` files. The `.umd.cjs` files are CommonJS modules that bundle all files together to make it easy to ship one file to browser environments. The `.mjs` files are ES modules that can be used in modern browsers, node.js and bundlers that support ES modules. The `.cjs` files are CommonJS modules that can be used in older Node.js environments. diff --git a/.changeset/small-hats-kneel.md b/.changeset/small-hats-kneel.md new file mode 100644 index 0000000000..3a3d6a2e07 --- /dev/null +++ b/.changeset/small-hats-kneel.md @@ -0,0 +1,8 @@ +--- +"@rrweb/all": major +"@rrweb/record": major +"@rrweb/replay": major +"rrweb": major +--- + +Remove the rrweb-all.js, rrweb-record.js, and rrweb-replay.js files from `rrweb` package. Now you can use `@rrweb/all`, `@rrweb/record`, and `@rrweb/replay` packages instead. Check out the README of each package for more information or check out [PR #1033](https://github.com/rrweb-io/rrweb/pull/1033) to see the changes. diff --git a/packages/rrweb/test/record/__snapshots__/cross-origin-iframes.test.ts.snap b/packages/rrweb/test/record/__snapshots__/cross-origin-iframes.test.ts.snap index 6cac7e26f6..8cd9fce959 100644 --- a/packages/rrweb/test/record/__snapshots__/cross-origin-iframes.test.ts.snap +++ b/packages/rrweb/test/record/__snapshots__/cross-origin-iframes.test.ts.snap @@ -5370,7 +5370,7 @@ exports[`same origin iframes > should emit contents of iframe once 1`] = ` ]" `; -exports[`same origin iframes should record cross-origin iframe in same-origin iframe 1`] = ` +exports[`same origin iframes > should record cross-origin iframe in same-origin iframe 1`] = ` "[ { \\"type\\": 4,