From 463836ec854c47832bb3c4250844266a55f81a8d Mon Sep 17 00:00:00 2001 From: Alexey Karimov Date: Mon, 26 Oct 2026 09:07:02 +0500 Subject: [PATCH 1/2] chore(rrweb): move the fork onto upstream rrweb 2.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- docs/PROGRESS.md | 11 ++++++ packages/rrweb/package.json | 6 ++-- pnpm-lock.yaml | 68 ++++++++++++++++++------------------- 3 files changed, 48 insertions(+), 37 deletions(-) diff --git a/docs/PROGRESS.md b/docs/PROGRESS.md index ee4e355ae..e60f305b2 100644 --- a/docs/PROGRESS.md +++ b/docs/PROGRESS.md @@ -1219,6 +1219,17 @@ A real-Electron run (staging uploads, SNODE-29..34) verified what the Electron t Spec: bugsee/specs#62 (`api/issues.md#appuptime_s`). The per-second `process_uptime_s` trace (node/bun/deno) is RETIRED, along with the node `ProcessTracker` `uptime` stage and its `uptime` env seam (nothing else consumed them). Process uptime is now ONE value stamped at session start in `environment.app.uptime_s` (whole seconds, floored): `buildNodeEnvironment` / `buildBrowserEnvironment` take `uptimeSeconds`, and `launch` reads the probe's optional `uptimeSeconds()` ONCE at launch (a snapshot, not re-read per report; a relaunch re-stamps). Sources: node/bun/deno/Electron main `process.uptime()` (probed on real Bun and Deno); browser `performance.now() / 1000` (document lifetime, ~0 at page load). Omitted, never `0`, when the probe has no clock. Webworker/edge have no stable clock origin so they do not write it. The browser `ProcessTracker` `uptime` stage (no trace consumer) is untouched. The appserver drops unknown `environment.app` keys until bugsee-appserver#120 lands. `EnvironmentEnvelope.app` is an open `Record`, and there is no environment key schema in `@bugsee/protocol`, so no type/schema change was needed. +### 2026-10-26 โ€” Replay moves onto upstream rrweb 2.2.0 โ†’ `chore/rrweb-2.2.0` + +Fork `bugsee-port-2.2.0` (4a81d36d merge of rrweb-io/rrweb 2.2.0 into `bugsee-port`, no conflicts, hardening +intact; cdb77793 adds `masking-observer-lifecycle.test.ts`) โ†’ record-only bundle `bugsee-dist-2.2.0` 5643229f +(vite `dist/rrweb-record.js` via `vite.config.entries.js`, then `esbuild --bundle --minify --format=esm`; +185,496 B / 58,698 B gzip vs 184,815 / 58,604 on 2.1.7). `@bugsee/rrweb` pins it; `rrweb`/`@rrweb/types` ^2.2.0. +2.2.0 changes how the recorder re-observes shadow roots and same-origin iframe documents (observers are released +on removal/unload and created again), so the new test asserts the masking options (maskAllText, maskAllInputs, +unmask selectors) still apply on each re-attached path; 6 mutations caught. `record.addAnnotation()` is available +in the bundle but deliberately NOT exposed: no replay design here needs it, and annotation text is caller-supplied. + ## 8. Pointers - **Spec** โ€” `docs/design/sdk-design.md` (Draft v3). Read alongside ยง2 of THIS file for the as-built deltas. diff --git a/packages/rrweb/package.json b/packages/rrweb/package.json index 385631839..8fb4951ae 100644 --- a/packages/rrweb/package.json +++ b/packages/rrweb/package.json @@ -28,11 +28,11 @@ "test:coverage": "vitest run --coverage" }, "dependencies": { - "@rrweb/types": "^2.1.7", - "rrweb": "^2.1.7" + "@rrweb/types": "^2.2.0", + "rrweb": "^2.2.0" }, "devDependencies": { - "@bugsee/rrweb-record": "github:bugsee/rrweb#ad172467b79223adc73ee0516bee64d0935f4ab9", + "@bugsee/rrweb-record": "github:bugsee/rrweb#5643229f7b9a1cb241af90f55331d39fcaa3db54", "jsdom": "^25.0.1" }, "publishConfig": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 28b1963f6..1ced7b76e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1165,15 +1165,15 @@ importers: packages/rrweb: dependencies: '@rrweb/types': - specifier: ^2.1.7 - version: 2.1.7 + specifier: ^2.2.0 + version: 2.2.0 rrweb: - specifier: ^2.1.7 - version: 2.1.7 + specifier: ^2.2.0 + version: 2.2.0 devDependencies: '@bugsee/rrweb-record': - specifier: github:bugsee/rrweb#ad172467b79223adc73ee0516bee64d0935f4ab9 - version: https://codeload.github.com/bugsee/rrweb/tar.gz/ad172467b79223adc73ee0516bee64d0935f4ab9(@rrweb/types@2.1.7)(rrweb@2.1.7) + specifier: github:bugsee/rrweb#5643229f7b9a1cb241af90f55331d39fcaa3db54 + version: https://codeload.github.com/bugsee/rrweb/tar.gz/5643229f7b9a1cb241af90f55331d39fcaa3db54(@rrweb/types@2.2.0)(rrweb@2.2.0) jsdom: specifier: ^25.0.1 version: 25.0.1 @@ -1859,12 +1859,12 @@ packages: deprecated: Exits 0 when the binary is killed by a signal. Upgrade to 0.8.2 or use @bugsee/cli. hasBin: true - '@bugsee/rrweb-record@https://codeload.github.com/bugsee/rrweb/tar.gz/ad172467b79223adc73ee0516bee64d0935f4ab9': - resolution: {gitHosted: true, integrity: sha512-Nbo5vmNf1DA27LjZcnkiLmo8fHs8QRcBgY/fv5FG51Hv5MmQzQRWAGNXThoAPLN6lLsQnOZNWB6na8D5A6COvg==, tarball: https://codeload.github.com/bugsee/rrweb/tar.gz/ad172467b79223adc73ee0516bee64d0935f4ab9} - version: 2.1.7 + '@bugsee/rrweb-record@https://codeload.github.com/bugsee/rrweb/tar.gz/5643229f7b9a1cb241af90f55331d39fcaa3db54': + resolution: {gitHosted: true, integrity: sha512-V1wtPQXaERVgFPBzqN99TBqCxPUt3pKlgc5qZ67XvcJhTAAcBX06POUsOmhae5s3fqXgPl01vtCoRlK+2ZJszQ==, tarball: https://codeload.github.com/bugsee/rrweb/tar.gz/5643229f7b9a1cb241af90f55331d39fcaa3db54} + version: 2.2.0 peerDependencies: - '@rrweb/types': ^2.1.0 - rrweb: ^2.1.0 + '@rrweb/types': ^2.2.0 + rrweb: ^2.2.0 peerDependenciesMeta: '@rrweb/types': optional: true @@ -4568,11 +4568,11 @@ packages: cpu: [x64] os: [win32] - '@rrweb/types@2.1.7': - resolution: {integrity: sha512-fNua4du3xvMlC5iK8lYU1CEg+9wsA7FXUzahVBBVGBKqVPSifROLVh3mfV90hhsfAcs4jAvLbl23v28hXrxZWg==} + '@rrweb/types@2.2.0': + resolution: {integrity: sha512-2gTA/pRpIbuET123oSdX5ZUDZfWCOIMYBvpSai3fr5pk9LcbccPqqaXflX+roP4oKenLjNtJPGpFK3BfYeBKnA==} - '@rrweb/utils@2.1.7': - resolution: {integrity: sha512-ZQpnuthKb8U2BvSDtiX6z8XkEPUUbCXhcrOY5yqqtPP2O5RP8YgPlo8HkU/tFStMd/Wn8cfy9DmkhialwUUvrA==} + '@rrweb/utils@2.2.0': + resolution: {integrity: sha512-e8FEp8wLswqgjDHpQNUUVfEXeDsrRMOVouvqIGKvnPxKYonjLlh0mU3O/17QNvCixFG5eUFR1B2jgTdiLlZxeQ==} '@rushstack/node-core-library@5.25.1': resolution: {integrity: sha512-ozoRDwIx3jStOYpx86rFyXH4SaUR+DVT6HubQ59avLplJkWXSm5InztYH7RrOzzq9PJXTdq9/+lKX06SfkLVsA==} @@ -9006,8 +9006,8 @@ packages: resolution: {integrity: sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==} engines: {node: '>= 18'} - rrdom@2.1.7: - resolution: {integrity: sha512-jm7IN2aaG6891OqFAYw/b8dw5FLiMeCTrU4HIUr40I6tTaUX2Rrhba5vjjMRARQClBFDA04vvf9HFD9WnZFpFg==} + rrdom@2.2.0: + resolution: {integrity: sha512-gxcBJWVtS/Xz+Ys8xcjPoWqr+C7wz/MS8NgmKw136I47Xygy17FYOGZqoGwEyvBn724jRDK1ljS+8w9FsZStOg==} rrweb-cssom@0.7.1: resolution: {integrity: sha512-TrEMa7JGdVm0UThDJSx7ddw5nVm3UJS9o9CCIZ72B1vSyEZoziDqBYP3XIoi/12lKrJR8rE3jeFHMok2F/Mnsg==} @@ -9015,11 +9015,11 @@ packages: rrweb-cssom@0.8.0: resolution: {integrity: sha512-guoltQEx+9aMf2gDZ0s62EcV8lsXR+0w8915TC3ITdn2YueuNjdAYh/levpU9nFaoChh9RUS5ZdQMrKfVEN9tw==} - rrweb-snapshot@2.1.7: - resolution: {integrity: sha512-exIZ4dxX498CZszs4ji0KKn8lhX9sBPBdD431t0RQOqCTStAHrmdWKK2s8tWSL32iRS+AOafbMuf6TOIZxW6ug==} + rrweb-snapshot@2.2.0: + resolution: {integrity: sha512-Tg/PiCLy+zV9C0Jfb4IAGABtt5l/UOvwW5xjFk41ZQhBfUjeqPP1rZ9HMDrFPc7cawCUEenWw54+g/4vluO5lg==} - rrweb@2.1.7: - resolution: {integrity: sha512-UZzK43vVmbtBt5WyEVO/CO8q9hKi38LRZDQS5C+X+FYgpVLK4vhWyUzzi1K0iXzHFb3MOVaTak5TAsdK5K6V6Q==} + rrweb@2.2.0: + resolution: {integrity: sha512-ofVzPq11/yIQ7WhVb++rJGI2LoPPrxdqu0QAvRA4KGeXJ7LH52jQ0VlRH4+VXn5PA/7pz85/rRkQyBUqT1LraQ==} run-applescript@7.1.0: resolution: {integrity: sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==} @@ -11180,10 +11180,10 @@ snapshots: dependencies: detect-libc: 2.1.2 - '@bugsee/rrweb-record@https://codeload.github.com/bugsee/rrweb/tar.gz/ad172467b79223adc73ee0516bee64d0935f4ab9(@rrweb/types@2.1.7)(rrweb@2.1.7)': + '@bugsee/rrweb-record@https://codeload.github.com/bugsee/rrweb/tar.gz/5643229f7b9a1cb241af90f55331d39fcaa3db54(@rrweb/types@2.2.0)(rrweb@2.2.0)': optionalDependencies: - '@rrweb/types': 2.1.7 - rrweb: 2.1.7 + '@rrweb/types': 2.2.0 + rrweb: 2.2.0 '@capsizecss/unpack@4.0.1': dependencies: @@ -13840,9 +13840,9 @@ snapshots: '@rollup/rollup-win32-x64-msvc@4.64.7': optional: true - '@rrweb/types@2.1.7': {} + '@rrweb/types@2.2.0': {} - '@rrweb/utils@2.1.7': {} + '@rrweb/utils@2.2.0': {} '@rushstack/node-core-library@5.25.1(@types/node@22.20.5)': dependencies: @@ -19468,28 +19468,28 @@ snapshots: transitivePeerDependencies: - supports-color - rrdom@2.1.7: + rrdom@2.2.0: dependencies: - rrweb-snapshot: 2.1.7 + rrweb-snapshot: 2.2.0 rrweb-cssom@0.7.1: {} rrweb-cssom@0.8.0: {} - rrweb-snapshot@2.1.7: + rrweb-snapshot@2.2.0: dependencies: postcss: 8.5.30 - rrweb@2.1.7: + rrweb@2.2.0: dependencies: - '@rrweb/types': 2.1.7 - '@rrweb/utils': 2.1.7 + '@rrweb/types': 2.2.0 + '@rrweb/utils': 2.2.0 '@types/css-font-loading-module': 0.0.7 '@xstate/fsm': 1.6.5 base64-arraybuffer: 1.0.2 mitt: 3.0.1 - rrdom: 2.1.7 - rrweb-snapshot: 2.1.7 + rrdom: 2.2.0 + rrweb-snapshot: 2.2.0 run-applescript@7.1.0: {} From 2bfc85dd78cd7d884320e2ed4786d08c96a1a4b8 Mon Sep 17 00:00:00 2001 From: Alexey Karimov Date: Mon, 26 Oct 2026 09:32:44 +0500 Subject: [PATCH 2/2] docs(progress): correct the rrweb 2.2.0 entry (merge overlap, test scope, public surface, bundle reproducibility) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ๐Ÿค– Generated with [Claude Code](https://claude.com/claude-code) --- docs/PROGRESS.md | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/docs/PROGRESS.md b/docs/PROGRESS.md index e60f305b2..0c6809bcc 100644 --- a/docs/PROGRESS.md +++ b/docs/PROGRESS.md @@ -1221,14 +1221,22 @@ Spec: bugsee/specs#62 (`api/issues.md#appuptime_s`). The per-second `process_upt ### 2026-10-26 โ€” Replay moves onto upstream rrweb 2.2.0 โ†’ `chore/rrweb-2.2.0` -Fork `bugsee-port-2.2.0` (4a81d36d merge of rrweb-io/rrweb 2.2.0 into `bugsee-port`, no conflicts, hardening -intact; cdb77793 adds `masking-observer-lifecycle.test.ts`) โ†’ record-only bundle `bugsee-dist-2.2.0` 5643229f -(vite `dist/rrweb-record.js` via `vite.config.entries.js`, then `esbuild --bundle --minify --format=esm`; -185,496 B / 58,698 B gzip vs 184,815 / 58,604 on 2.1.7). `@bugsee/rrweb` pins it; `rrweb`/`@rrweb/types` ^2.2.0. -2.2.0 changes how the recorder re-observes shadow roots and same-origin iframe documents (observers are released -on removal/unload and created again), so the new test asserts the masking options (maskAllText, maskAllInputs, -unmask selectors) still apply on each re-attached path; 6 mutations caught. `record.addAnnotation()` is available -in the bundle but deliberately NOT exposed: no replay design here needs it, and annotation text is caller-supplied. +Fork `bugsee-port-2.2.0` (4a81d36d merge of rrweb-io/rrweb 2.2.0 into `bugsee-port`; no textual conflicts, but both +sides changed `rrweb-snapshot/src/utils.ts` and `rrweb/src/record/{index,mutation,observer}.ts`, which merged +cleanly and were reviewed by hand; cdb77793 adds `masking-observer-lifecycle.test.ts`) โ†’ record-only bundle +`bugsee-dist-2.2.0` 5643229f (vite `dist/rrweb-record.js` via `vite.config.entries.js`, then +`esbuild --bundle --minify --format=esm`; 185,496 B / 58,698 B gzip vs 184,815 / 58,604 on 2.1.7). The recipe +reproduces the pinned 2.1.7 bundle only approximately: a fresh 08a56f93 build differs by more than identifier +names (module order, some helper/enum output, a tslib license comment). `@bugsee/rrweb` pins the new bundle; +`rrweb`/`@rrweb/types` ^2.2.0. +2.2.0 releases and re-creates shadow-root and same-origin-iframe observers. The new test covers masking +(maskAllText, maskAllInputs, unmask selector) on shadow roots re-attached by host reinsertion, a restored +subtree, and an iframe attached again by a second full snapshot; 6 mutations caught. It does NOT cover an iframe +document re-observed after it unloads, nor maskAttributeFn / blockSelector / unblockSelector / ignoreSelector on +re-observed observers. +Public surface: the `.d.ts` is unchanged, but `@bugsee/rrweb` re-exports `EventType` and `eventWithTime` from +`@rrweb/types`, which now include `Annotation = 8` / `annotationEvent`, and the exported `record` carries an +untyped `.addAnnotation` at runtime. Nothing in the SDK calls it; no replay design here needs it. ## 8. Pointers