Repository navigation
chore(rrweb): move the fork onto upstream rrweb 2.2.0 - #117
Conversation
Fork bugsee-port-2.2.0 (rrweb-io/rrweb 2.2.0 merged, no conflicts, hardening intact) with the record-only bundle rebuilt on bugsee-dist-2.2.0 (5643229f). rrweb/@rrweb/types ranges bumped to ^2.2.0. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
|
Claude finished @krassx's task in 38s —— View job Review of PR #117: move
|
|
No actionable comments were generated in the recent review.
|
…ope, public surface, bundle reproducibility) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
|
Claude finished @krassx's task in 23s —— View job Review of PR #117 (re-review after the docs-correction commit
|
|
Reply to the re-review: the PR description was corrected after that run read it. It now says there were no textual conflicts but both sides changed 🤖 Generated with Claude Code |
Summary
Moves
@bugsee/rrwebonto upstream rrweb 2.2.0 (published 2026-10-24):rrweb/@rrweb/typesto^2.2.0and@bugsee/rrweb-recordre-pinned to the rebuilt record-only bundle of the Bugsee-hardened fork. The change ispackages/rrweb/package.json,pnpm-lock.yamland adocs/PROGRESS.mdentry. No SDK source changes.What changed upstream (2.1.7 to 2.2.0) and how it affects us
rrweb-snapshot's mirror releases removed shadow trees. They are re-created when a host or iframe comes back, which is the one thing that matters for masking (see below).record.addAnnotation(),EventType.AnnotationandannotationDatain@rrweb/types. It is in the bundle but deliberately NOT exposed from@bugsee/rrweb: no replay design here needs it, and annotation text is caller-supplied. Available if wanted later.rrweb-player) andbrowser-clientchanges are not part of the record-only bundle..d.tsis unchanged, but@bugsee/rrwebre-exportsEventTypeandeventWithTimefrom@rrweb/types, which now includeAnnotation = 8/annotationEvent, and the exportedrecordcarries an untyped.addAnnotationat runtime.Fork merge (bugsee/rrweb)
bugsee-port-2.2.0merges tagrrweb@2.2.0(e051ddbf) into the truebugsee-porttip (origin 08a56f93; the local ref 52f98a24 was just behind it): merge 4a81d36d, no textual conflicts. Both sides changedrrweb-snapshot/src/utils.tsandrrweb/src/record/{index,mutation,observer}.ts; they merged cleanly and I reviewed the overlap by hand. Tip cdb77793.maskAllText,unmaskText*,unblockSelector,unmaskInputSelector,maskAttributeFn,maskInputOptions) still reaches the shadow-rootbypassOptions, the iframeobserve(doc)closure and the mutation buffers, and the singleresolveInputValuepath is unchanged. Nothing new emits page content except the annotation event (caller text only).packages/rrweb/test/record/masking-observer-lifecycle.test.ts(9 tests): masking on text added/edited/typed in a shadow root re-attached after its host was removed, a removed-then-restored subtree, an input value attribute in a re-observed shadow root, a same-origin iframe attached again by a second full snapshot, selector unmask still working on the re-observed path, and thataddAnnotationemits only the caller's payload. Tests assert the masked form is present (non-vacuous). Scope: shadow roots re-attached by host reinsertion, a restored subtree, and an iframe attached again by a second full snapshot; NOT an iframe document re-observed after it unloads, normaskAttributeFn/blockSelector/unblockSelector/ignoreSelectoron re-observed observers (follow-up issues filed). Mutator loop: 6 mutations (shadowmaskAllTextoff,observe()maskAllTextoff, input observer bypassingresolveInputValue, text mutation never masked, shadowmaskInputOptionsdropped, shadowunmaskTextSelectordropped); 5 were caught immediately, themaskInputOptionsone survived until I added the value-attribute test, then was caught. Source restored from saved copies and verified identical.bugsee-dist-2.2.05643229f (on top ofbugsee-distad172467): built like the 2.1.7 bundle, vitedist/rrweb-record.jsviavite.config.entries.js, thenesbuild --bundle --minify --format=esm. I tried the recipe on the 2.1.7 tree first: it does not reproduce the pinned 2.1.7 bundle exactly; it differs by more than identifier names (module order, some helper/enum output, a ~850 B tslib license comment).bugsee-port,bugsee-distandmainuntouched, no force pushes.Size
@bugsee/rrwebdist/index.jsbefore@bugsee/rrwebdist/index.jsafterEvidence
pnpm ci:localpasses (lint, typecheck, cycles, packaging guard, per-package coverage gate, harness unit tests). The e2e job was not run locally.@bugsee/rrweb,@bugsee/replay(143, including masking integration + fuzz),@bugsee/replay-canvas,@bugsee/browser(1316),@bugsee/bugsee(294) all green;replay.e2e.ts,blackout.e2e.ts,browser.e2e.tsgreen on the new bundle.resolveReplayMaskingOptions({}), the real new bundle): typed text, password, cc-number, email, textarea,alt/title/data-*attributes, a re-attached shadow root (text + typed input), a same-origin iframe (text edit, typed input, navigation to a new document, second full snapshot), and dynamically added nodes. 22 distinct secrets, 0 in the events; controls (.bugsee-unmasktext and a.bugsee-unmaskinput) are present, and the same page with masking off leaks, so the harness can fail. The script is not committed.record.test.ts "can checkout full snapshot by count", which flakes on both; they come from running the old puppeteer against modern Chrome and fromintegration.test.ts "dynamically added and maskAllInputs", which flakes on both: it differs only in event ORDER and values are masked either way).tscand eslint clean.minimumReleaseAge
Not needed:
pnpm installresolved rrweb 2.2.0 and siblings without a refusal, so nominimumReleaseAgeExcludeentry was added.🤖 Generated with Claude Code