From 7e0192d8a735b90f44ad0ba5ff1774d1d7d5c1bc Mon Sep 17 00:00:00 2001 From: Billy Vong Date: Thu, 5 Dec 2024 16:52:38 -0500 Subject: [PATCH 1/2] feat(replay): Upgrade rrweb packages to 2.30.0 Includes the following fixes: - fix: Catch calls to iframe content document ([#222](https://github.com/getsentry/rrweb/pull/222)) - fix(snapshot): Fix CSS expansion of add CSS property ([#223](https://github.com/getsentry/rrweb/pull/223)) --- .../browser-integration-tests/package.json | 2 +- packages/replay-canvas/package.json | 2 +- packages/replay-internal/package.json | 4 +- yarn.lock | 42 +++++++++---------- 4 files changed, 25 insertions(+), 25 deletions(-) diff --git a/dev-packages/browser-integration-tests/package.json b/dev-packages/browser-integration-tests/package.json index ee0d598fa960..28c12a099559 100644 --- a/dev-packages/browser-integration-tests/package.json +++ b/dev-packages/browser-integration-tests/package.json @@ -42,7 +42,7 @@ "dependencies": { "@babel/preset-typescript": "^7.16.7", "@playwright/test": "^1.44.1", - "@sentry-internal/rrweb": "2.29.0", + "@sentry-internal/rrweb": "2.30.0", "@sentry/browser": "8.42.0", "axios": "1.7.7", "babel-loader": "^8.2.2", diff --git a/packages/replay-canvas/package.json b/packages/replay-canvas/package.json index 82c4b8e75b2d..5b9cbdc2ca63 100644 --- a/packages/replay-canvas/package.json +++ b/packages/replay-canvas/package.json @@ -65,7 +65,7 @@ }, "homepage": "https://docs.sentry.io/platforms/javascript/session-replay/", "devDependencies": { - "@sentry-internal/rrweb": "2.29.0" + "@sentry-internal/rrweb": "2.30.0" }, "dependencies": { "@sentry-internal/replay": "8.42.0", diff --git a/packages/replay-internal/package.json b/packages/replay-internal/package.json index bbdf55c68ee9..78b42bccc501 100644 --- a/packages/replay-internal/package.json +++ b/packages/replay-internal/package.json @@ -69,8 +69,8 @@ "devDependencies": { "@babel/core": "^7.17.5", "@sentry-internal/replay-worker": "8.42.0", - "@sentry-internal/rrweb": "2.29.0", - "@sentry-internal/rrweb-snapshot": "2.29.0", + "@sentry-internal/rrweb": "2.30.0", + "@sentry-internal/rrweb-snapshot": "2.30.0", "fflate": "^0.8.1", "jest-matcher-utils": "^29.0.0", "jsdom-worker": "^0.2.1" diff --git a/yarn.lock b/yarn.lock index bbe8ef951e89..c1372abf6da9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8616,34 +8616,34 @@ "@angular-devkit/schematics" "14.2.13" jsonc-parser "3.1.0" -"@sentry-internal/rrdom@2.29.0": - version "2.29.0" - resolved "https://registry.yarnpkg.com/@sentry-internal/rrdom/-/rrdom-2.29.0.tgz#df60564466718ae7ada376cf1bd483b8ee07831a" - integrity sha512-TXhujPMt0Iq4l/sjm+rdU/CI6yR8K9+NheKPbCrs3UBzQHbu2VglrlEmhyx57mJY2GwRBrvLcCr5NokX7v1eBA== +"@sentry-internal/rrdom@2.30.0": + version "2.30.0" + resolved "https://registry.yarnpkg.com/@sentry-internal/rrdom/-/rrdom-2.30.0.tgz#b0d0455be62db08a196d22c3f99e063489634223" + integrity sha512-u5f38j3y7esGSoJfblgQETX2sWC2+jM3nkzhqPP0nOEKoIb0GPA+m1fa2D949BXrk20e98qEUPzW32dpF4ka/w== dependencies: - "@sentry-internal/rrweb-snapshot" "2.29.0" + "@sentry-internal/rrweb-snapshot" "2.30.0" -"@sentry-internal/rrweb-snapshot@2.29.0": - version "2.29.0" - resolved "https://registry.yarnpkg.com/@sentry-internal/rrweb-snapshot/-/rrweb-snapshot-2.29.0.tgz#b0bb64ccffbd486bb739c87d481aa8cdcd7d5c05" - integrity sha512-nIf593YObUzdmEilT3LEXBTpcVGXRYlYTgxiESeJgXrEmNoeB1BolKh4OJa5KpEmwmHcfe3zl15GdzhjxOIwAA== +"@sentry-internal/rrweb-snapshot@2.30.0": + version "2.30.0" + resolved "https://registry.yarnpkg.com/@sentry-internal/rrweb-snapshot/-/rrweb-snapshot-2.30.0.tgz#d4e1974e32e068db0bd3e3cfd5f0d700f5c4d414" + integrity sha512-rR6KRcE0UZfrh1taBO1KLVzfDaQ2iWW879LBMa94HEH/xUUSG3vRF7t55rmKpxIam1v2Ib6iiCMMTAZoZxzE0Q== -"@sentry-internal/rrweb-types@2.29.0": - version "2.29.0" - resolved "https://registry.yarnpkg.com/@sentry-internal/rrweb-types/-/rrweb-types-2.29.0.tgz#71b20e6dd452f005ff37f059df2dacad98f6e0ea" - integrity sha512-0x1aT+ifDjX3JKd4kmGzbofkI6qWYAOZmd5tPX07OmVnT3aIoecBqBCUagx15ewm0kMRv5Pl53is0EWzHIDvlA== +"@sentry-internal/rrweb-types@2.30.0": + version "2.30.0" + resolved "https://registry.yarnpkg.com/@sentry-internal/rrweb-types/-/rrweb-types-2.30.0.tgz#50ab65034fab3d8243b601ff9925fe45ad141f48" + integrity sha512-Wb6RM5SnnWdCpHB6nxEGFV4bqQwMMDOGryMj8QyZf7fK6lkxtEBXOWiEhxUgAUPjMBqQDZm/2DzKO+bW4NHLZg== dependencies: - "@sentry-internal/rrweb-snapshot" "2.29.0" + "@sentry-internal/rrweb-snapshot" "2.30.0" "@types/css-font-loading-module" "0.0.7" -"@sentry-internal/rrweb@2.29.0": - version "2.29.0" - resolved "https://registry.yarnpkg.com/@sentry-internal/rrweb/-/rrweb-2.29.0.tgz#1019bee52be0ed4bd3112a3e1a1c50adfb6bab78" - integrity sha512-UmEtyfo3yCdJsIdt0m7OLLmg9CeNmGlkmGSa91nResZVIC1+rd4RA+PmmqkwAV/WOljCXHZHs7ezlW1Mjjm2vQ== +"@sentry-internal/rrweb@2.30.0": + version "2.30.0" + resolved "https://registry.yarnpkg.com/@sentry-internal/rrweb/-/rrweb-2.30.0.tgz#9af028b80a0081c75ff410817fe2fcda010f9cf6" + integrity sha512-ZOf4RmxX29LgQDW5sy9D/JfwmQbgMzF6DfA00rlFTtQYht56gbgtmWfqeWMDxG9tas71BnMTOz6eF28t7MoykQ== dependencies: - "@sentry-internal/rrdom" "2.29.0" - "@sentry-internal/rrweb-snapshot" "2.29.0" - "@sentry-internal/rrweb-types" "2.29.0" + "@sentry-internal/rrdom" "2.30.0" + "@sentry-internal/rrweb-snapshot" "2.30.0" + "@sentry-internal/rrweb-types" "2.30.0" "@types/css-font-loading-module" "0.0.7" "@xstate/fsm" "^1.4.0" base64-arraybuffer "^1.0.1" From fad0326f26dd3c5f60d2ab5d842cf7b23301ae99 Mon Sep 17 00:00:00 2001 From: Billy Vong Date: Thu, 5 Dec 2024 17:34:54 -0500 Subject: [PATCH 2/2] size limit :( --- .size-limit.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.size-limit.js b/.size-limit.js index b33e15ebe2a7..844d57447495 100644 --- a/.size-limit.js +++ b/.size-limit.js @@ -79,7 +79,7 @@ module.exports = [ path: 'packages/browser/build/npm/esm/index.js', import: createImport('init', 'browserTracingIntegration', 'replayIntegration', 'replayCanvasIntegration'), gzip: true, - limit: '79 KB', + limit: '80 KB', }, { name: '@sentry/browser (incl. Tracing, Replay, Feedback)', @@ -166,7 +166,7 @@ module.exports = [ name: 'CDN Bundle (incl. Tracing, Replay)', path: createCDNPath('bundle.tracing.replay.min.js'), gzip: true, - limit: '74 KB', + limit: '80 KB', }, { name: 'CDN Bundle (incl. Tracing, Replay, Feedback)', @@ -194,7 +194,7 @@ module.exports = [ path: createCDNPath('bundle.tracing.replay.min.js'), gzip: false, brotli: false, - limit: '230 KB', + limit: '240 KB', }, { name: 'CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed',