@groundcover/browser 0.1.0 → 1.0.1
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 +66 -0
- package/README.md +370 -193
- package/assets/logo.png +0 -0
- package/dist/index.d.mts +56 -31
- package/dist/index.d.ts +56 -31
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +25 -5
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `@groundcover/browser` are documented here. This project adheres to
|
|
4
|
+
[Semantic Versioning](https://semver.org/spec/v2.0.0.html) and the
|
|
5
|
+
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/) format.
|
|
6
|
+
|
|
7
|
+
## [1.0.1]
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- **README images now render on npm.** The logo used a relative path and the CI badge pointed at the
|
|
12
|
+
internal GitHub repo, so both 404'd on the npm package page. The logo is now served from the
|
|
13
|
+
published package via jsDelivr and the CI-status badge was removed.
|
|
14
|
+
|
|
15
|
+
## [1.0.0]
|
|
16
|
+
|
|
17
|
+
First major release. This version restructures the configuration API by concern and finalizes the
|
|
18
|
+
privacy model. It contains **breaking changes** — see [Migrating to 1.0.0](./README.md#migrating-to-100).
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- **Breaking — `options` is restructured by concern.** Distributed-tracing, transport and replay
|
|
23
|
+
knobs now live in nested groups, `environment` is de-duplicated (top-level only), and
|
|
24
|
+
`userIdentifier` is renamed to `user`:
|
|
25
|
+
|
|
26
|
+
| `0.x` | `1.0.0` |
|
|
27
|
+
|---|---|
|
|
28
|
+
| `userIdentifier` | `user` |
|
|
29
|
+
| `options.tracePropagationUrls` | `options.tracing.propagationUrls` |
|
|
30
|
+
| `options.tracePropagationHeaders` | `options.tracing.propagationHeaders` |
|
|
31
|
+
| `options.tracePropagationTraceIdHeaderName` | `options.tracing.traceIdHeaderName` |
|
|
32
|
+
| `options.tracePropagationSpanIdHeaderName` | `options.tracing.spanIdHeaderName` |
|
|
33
|
+
| `options.traceOrigin` | `options.tracing.origin` |
|
|
34
|
+
| `options.batchSize` / `options.batchTimeout` | `options.transport.batchSize` / `options.transport.batchTimeout` |
|
|
35
|
+
| `options.enableCompression` | `options.transport.compression` |
|
|
36
|
+
| `options.sessionReplay.blockedSelectors` | `options.replay.blockedSelectors` |
|
|
37
|
+
|
|
38
|
+
Flat options (`debug`, `sessionSampleRate`, `eventSampleRate`, `enabledEvents`, `excludedUrls`,
|
|
39
|
+
`sessionMaxDuration`, `beforeSend`, `enrichEvent`) and the `privacy` group are unchanged. Nested
|
|
40
|
+
groups merge one level deep on `updateConfig` — and `tracing.origin` / `privacy.replay` one level
|
|
41
|
+
deeper — so a partial update preserves sibling keys (e.g. updating `tracing.origin.name` keeps
|
|
42
|
+
`origin.value`).
|
|
43
|
+
|
|
44
|
+
### Removed
|
|
45
|
+
|
|
46
|
+
- **Breaking — removed the deprecated masking flags `options.enableMasking` and `options.maskFields`.**
|
|
47
|
+
Use `options.privacy` instead: `enableMasking: true` → `privacy.level: 'mask-all'`, explicit
|
|
48
|
+
`enableMasking: false` → `privacy.level: 'allow'`, and `maskFields` → `privacy.maskSelectors` /
|
|
49
|
+
`privacy.sensitiveKeys`. The removed flags are **ignored, not reinterpreted** — passing either one
|
|
50
|
+
now emits a `console.warn` pointing to this migration so the change isn't silent.
|
|
51
|
+
|
|
52
|
+
### Included since the previous release
|
|
53
|
+
|
|
54
|
+
These shipped ahead of 1.0.0 and are part of this major:
|
|
55
|
+
|
|
56
|
+
- **Privacy on by default.** Unified `options.privacy` config drives masking for both session replay
|
|
57
|
+
and non-replay events (DOM / network / logs / errors), defaulting to `mask-sensitive`. Sensitive
|
|
58
|
+
request/response headers, bodies, and URL query params are redacted; built-in auth headers are
|
|
59
|
+
always stripped. Opt out with `privacy.level: 'allow'`.
|
|
60
|
+
- **Web Worker offloading.** Session-replay packing and outgoing-batch gzip run in a dedicated inline
|
|
61
|
+
worker, with a transparent main-thread fallback under strict CSP / sandboxed iframes / SSR.
|
|
62
|
+
- **Configurable, lazily-enforced `sessionMaxDuration`** (default 4h, range 1 min–8h) plus 30-minute
|
|
63
|
+
inactivity-gap session rotation.
|
|
64
|
+
|
|
65
|
+
[1.0.1]: https://github.com/groundcover-com/rum/releases/tag/1.0.1
|
|
66
|
+
[1.0.0]: https://github.com/groundcover-com/rum/releases/tag/1.0.0
|