Skip to content

Commit 44b27d8

Browse files
hi-ogawaOpenCode (claude-opus-4-8)
andauthored
chore(deps): upgrade rrweb-snapshot to 2.0.1 (#10668)
Co-authored-by: Hiroshi Ogawa <4232207+hi-ogawa@users.noreply.github.com> Co-authored-by: OpenCode (claude-opus-4-8) <noreply@opencode.ai>
1 parent f8b1532 commit 44b27d8

6 files changed

Lines changed: 17 additions & 15 deletions

File tree

packages/browser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
"ivya": "^1.8.2",
9898
"mime": "^4.1.0",
9999
"pathe": "catalog:",
100-
"rrweb-snapshot": "2.0.0-alpha.20",
100+
"rrweb-snapshot": "2.0.1",
101101
"vitest": "workspace:*"
102102
}
103103
}

packages/ui/client/components/trace/TraceView.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,12 @@ watch([selectedStep, iframeEl], ([step, iframe]) => {
4646
doc.open()
4747
doc.close()
4848
const mirror = createMirror()
49+
// rrweb >=2.0 hardened the API to force sandbox iframe usage https://github.com/rrweb-io/rrweb/issues/1817. We already ensure the same manually so opt-out the guard by UNSAFE_allowUnprotectedRebuild
4950
rebuild(serialized, {
5051
doc,
5152
cache: createCache(),
5253
mirror,
54+
UNSAFE_allowUnprotectedRebuild: true,
5355
})
5456
for (const [className, ids] of Object.entries(pseudoClassIds)) {
5557
for (const id of ids) {

packages/ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"floating-vue": "^5.2.2",
8585
"mime": "^4.1.0",
8686
"rollup": "^4.59.0",
87-
"rrweb-snapshot": "2.0.0-alpha.20",
87+
"rrweb-snapshot": "2.0.1",
8888
"splitpanes": "^4.0.4",
8989
"typescript": "^5.9.3",
9090
"unocss": "catalog:",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
diff --git a/dist/rrweb-snapshot.js b/dist/rrweb-snapshot.js
2-
index 3a3b67808308f4b50ad906dccfaaf577b4264742..3cf40a7d3c7d847e34850b32c424e2b0bb9331ac 100644
2+
index f2694ac8c01dd248a2d659f1ec2628bc9e65729a..ed99e153f33e5235602cf09efc8dab5bd6c98903 100644
33
--- a/dist/rrweb-snapshot.js
44
+++ b/dist/rrweb-snapshot.js
5-
@@ -1513,6 +1513,18 @@ const pseudoClassPlugin = {
5+
@@ -1534,6 +1534,18 @@ const pseudoClassPlugin = {
66
if (selector.includes(":hover")) {
77
rule2.selector += ",\n" + selector.replace(/:hover/g, ".\\:hover");
88
}

pnpm-lock.yaml

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ patchedDependencies:
4444
cac@6.7.14: patches/cac@6.7.14.patch
4545
istanbul-lib-instrument: patches/istanbul-lib-instrument.patch
4646
istanbul-lib-source-maps: patches/istanbul-lib-source-maps.patch
47-
rrweb-snapshot: patches/rrweb-snapshot.patch
47+
rrweb-snapshot@2.0.1: patches/rrweb-snapshot@2.0.1.patch
4848
catalog:
4949
'@babel/core': ^7.29.0
5050
'@babel/plugin-proposal-decorators': ^7.29.0

0 commit comments

Comments
 (0)