@spotify-confidence/csr-recorder 0.0.0 → 0.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/README.md +36 -0
- package/dist/index.cjs +11090 -0
- package/dist/index.d.cts +124 -0
- package/dist/index.d.ts +124 -0
- package/dist/index.js +11084 -0
- package/package.json +49 -1
- package/src/engine/index.ts +11 -0
- package/src/engine/rrweb-engine.test.ts +63 -0
- package/src/engine/rrweb-engine.ts +49 -0
- package/src/index.ts +11 -0
- package/src/recorder-routing.test.ts +162 -0
- package/src/recorder.test.ts +207 -0
- package/src/recorder.ts +266 -0
- package/src/start-recording.ts +21 -0
- package/src/types.ts +64 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [0.17.2](https://github.com/spotify/confidence-sdk-js/compare/csr-recorder-v0.17.1...csr-recorder-v0.17.2) (2026-06-15)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### 🐛 Bug Fixes
|
|
7
|
+
|
|
8
|
+
* improve csr package READMEs ([#367](https://github.com/spotify/confidence-sdk-js/issues/367)) ([3c5a254](https://github.com/spotify/confidence-sdk-js/commit/3c5a254b6b7bd23142ffe7ce6d99f327e67ff478))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @spotify-confidence/csr-common bumped to 0.17.2
|
|
16
|
+
|
|
17
|
+
## [0.17.1](https://github.com/spotify/confidence-sdk-js/compare/csr-recorder-v0.17.0...csr-recorder-v0.17.1) (2026-06-15)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### 🐛 Bug Fixes
|
|
21
|
+
|
|
22
|
+
* add csr packages to release-please ([#363](https://github.com/spotify/confidence-sdk-js/issues/363)) ([f868e03](https://github.com/spotify/confidence-sdk-js/commit/f868e036ee27fcdd26ee26c8a47d2466a47e2a60))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### ✨ New Features
|
|
26
|
+
|
|
27
|
+
* add session recording packages ([#360](https://github.com/spotify/confidence-sdk-js/issues/360)) ([4584f50](https://github.com/spotify/confidence-sdk-js/commit/4584f502f17d01a15390789519c99308797a513d))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Dependencies
|
|
31
|
+
|
|
32
|
+
* The following workspace dependencies were updated
|
|
33
|
+
* dependencies
|
|
34
|
+
* @spotify-confidence/csr-common bumped to 0.17.1
|
package/README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# @spotify-confidence/csr-recorder
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
Low-level browser recording engine that captures DOM events using [rrweb](https://github.com/rrweb-io/rrweb). This package is used internally by `@spotify-confidence/session-recording` — most consumers should use that SDK directly.
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
import { record } from '@spotify-confidence/csr-recorder';
|
|
11
|
+
|
|
12
|
+
const stop = record(
|
|
13
|
+
event => {
|
|
14
|
+
// handle each recording event
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
maskSelectors: ['.sensitive'],
|
|
18
|
+
blockSelectors: ['video'],
|
|
19
|
+
maskInputs: true,
|
|
20
|
+
captureConsoleLogs: true,
|
|
21
|
+
captureNetworkRequests: false,
|
|
22
|
+
captureRouteChanges: true,
|
|
23
|
+
},
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
// Later:
|
|
27
|
+
stop();
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## rrweb version
|
|
31
|
+
|
|
32
|
+
This package pins `rrweb@^2.0.0-alpha.20`. The rrweb 2.x line is in alpha but is the version we've validated against. The recording engine is bundled — consumers do not need rrweb as a peer dependency.
|
|
33
|
+
|
|
34
|
+
## License
|
|
35
|
+
|
|
36
|
+
Apache 2.0 — see [LICENSE](../../LICENSE).
|