Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade rrweb to alpha-13 #1149

Merged
merged 4 commits into from
Apr 22, 2024
Merged

chore: upgrade rrweb to alpha-13 #1149

merged 4 commits into from
Apr 22, 2024

Conversation

daibhin
Copy link
Contributor

@daibhin daibhin commented Apr 22, 2024

Changes

Upgrade to the latest rrweb with relevant patches reapplied

Copy link

Size Change: +405 B (0%)

Total Size: 973 kB

Filename Size Change
dist/array.full.js 233 kB +135 B (0%)
dist/recorder-v2.js 108 kB +135 B (0%)
dist/recorder.js 108 kB +135 B (0%)
ℹ️ View Unchanged
Filename Size
dist/array.js 130 kB
dist/es.js 130 kB
dist/exception-autocapture.js 12.2 kB
dist/module.js 131 kB
dist/surveys-module-previews.js 62 kB
dist/surveys.js 58.3 kB

compressed-size-action

.map((text) => {
const n = text.node;
- if (n.parentNode.tagName === 'TEXTAREA') {
+ if (n.parentNode && n.parentNode.tagName === 'TEXTAREA') {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed as fixed in rrweb-io/rrweb#1445

+ // The browser throws if the canvas is 0 in size
+ // Uncaught (in promise) DOMException: Failed to execute 'createImageBitmap' on 'Window': The source image width is 0.
+ // Assuming the same happens with height
+ if (canvas.width === 0 || canvas.height === 0) return;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed as fixed in rrweb-io/rrweb#1422

@@ -1,6 +1,6 @@
diff --git a/es/rrweb/_virtual/_rollup-plugin-web-worker-loader__helper__browser__createBase64WorkerFactory.js b/es/rrweb/_virtual/_rollup-plugin-web-worker-loader__helper__browser__createBase64WorkerFactory.js
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth noting this diff doesn't look 100% correct because GitHub is incorrectly parsing it. I used a text compare tool and only saw differences in spacing & the two changes intentionally removed

@daibhin daibhin added the bump patch Bump patch version when this PR gets merged label Apr 22, 2024
@daibhin daibhin requested a review from a team April 22, 2024 16:14
@@ -1,1202 +0,0 @@
diff --git a/es/rrweb/packages/rrweb/src/record/mutation.js b/es/rrweb/packages/rrweb/src/record/mutation.js
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hanging around since the last upgrade but not used / needed

@daibhin daibhin changed the title upgrade rrweb to alpha-13 chore: upgrade rrweb to alpha-13 Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bump patch Bump patch version when this PR gets merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants