@groundcover/browser 2.0.0-rc.1 → 2.0.0
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 +32 -25
- package/README.md +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,11 +4,39 @@ All notable changes to `@groundcover/browser` are documented here. This project
|
|
|
4
4
|
[Semantic Versioning](https://semver.org/spec/v2.0.0.html) and the
|
|
5
5
|
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/) format.
|
|
6
6
|
|
|
7
|
-
## [2.0.0
|
|
7
|
+
## [2.0.0] — 2026-10-06
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
Stable release of the `2.0.0-rc.0` and `2.0.0-rc.1` line. **Contains breaking changes from `1.x`** —
|
|
10
|
+
see [Migrating from 1.x to 2.0.0](./README.md#migrating-from-1x-to-200).
|
|
11
|
+
|
|
12
|
+
The shipped `dist/` is byte-for-byte rc.1's — nothing landed after it, in the browser package or in
|
|
13
|
+
the shared core it bundles; the version field, this entry and the migration guide's install command
|
|
14
|
+
are the only differences in the package. Network and exception shaping now live in the core shared
|
|
15
|
+
with `@groundcover/react-native`; the `/json/rum` envelope keeps its shape, and what changes on the
|
|
16
|
+
wire is listed below.
|
|
17
|
+
|
|
18
|
+
Against `1.0.9`, the exported `EventTypes`, `PrivacyOptions`, `Redactor`, `RedactField`, `RedactKind`
|
|
19
|
+
and `PrivacyLevel` are structurally identical. `SDKOptions` drops `eventSampleRate`, `init()` requires
|
|
20
|
+
`appId`, and `updateConfig()` no longer types `appId`. TypeScript enforces `appId` on every `init()`
|
|
21
|
+
call, but flags the two removed fields only where they are written directly in an object literal: a
|
|
22
|
+
variable or spread that also carries valid fields still compiles (an initialization config spread
|
|
23
|
+
into `updateConfig()`, say) and reaches the runtime handling below.
|
|
24
|
+
|
|
25
|
+
### Changed (breaking)
|
|
26
|
+
|
|
27
|
+
- **Event-level sampling is removed.** `options.eventSampleRate` warns and is ignored, on `init` and
|
|
28
|
+
on `updateConfig`; use `options.sessionSampleRate` to select whole sessions. Rates are not
|
|
29
|
+
converted.
|
|
30
|
+
- **`appId` is required and fixed per SDK instance.** It must be a non-blank string, its value is
|
|
31
|
+
preserved exactly, the first successful `init` wins (later calls are ignored; a failed init may be
|
|
32
|
+
retried), and `updateConfig` rejects any update that contains `appId`.
|
|
33
|
+
|
|
34
|
+
### Changed
|
|
35
|
+
|
|
36
|
+
- **`span_name` carries the upper-cased method**, like `operation.name`: `fetch(url, { method: "post" })`
|
|
37
|
+
is the span `POST /path`, not a separate `post /path`. A missing method reads `UNKNOWN`.
|
|
38
|
+
- **An opaque host object passed without a key is labelled `opaque_node`** (was `dom_node`) by the
|
|
39
|
+
enricher's placeholder. Keyed placeholders are unchanged.
|
|
12
40
|
|
|
13
41
|
### Fixed
|
|
14
42
|
|
|
@@ -28,27 +56,6 @@ differences on the wire.
|
|
|
28
56
|
- **Navigation instrumentation wraps the history methods present at initialization**, keeping a
|
|
29
57
|
router that wrapped them after the SDK was constructed.
|
|
30
58
|
|
|
31
|
-
### Changed
|
|
32
|
-
|
|
33
|
-
- **`span_name` carries the upper-cased method**, like `operation.name`: `fetch(url, { method: "post" })`
|
|
34
|
-
is the span `POST /path`, not a separate `post /path`. A missing method reads `UNKNOWN`.
|
|
35
|
-
- **An opaque host object passed without a key is labelled `opaque_node`** (was `dom_node`) by the
|
|
36
|
-
enricher's placeholder. Keyed placeholders are unchanged.
|
|
37
|
-
|
|
38
|
-
## [2.0.0-rc.0] — 2026-09-28
|
|
39
|
-
|
|
40
|
-
First release candidate of `2.0.0`. **Contains breaking changes from `1.x`** — see
|
|
41
|
-
[Migrating from 1.x to 2.0.0](./README.md#migrating-from-1x-to-200).
|
|
42
|
-
|
|
43
|
-
### Changed (breaking)
|
|
44
|
-
|
|
45
|
-
- **Event-level sampling is removed.** `options.eventSampleRate` warns and is ignored, on `init` and
|
|
46
|
-
on `updateConfig`; use `options.sessionSampleRate` to select whole sessions. Rates are not
|
|
47
|
-
converted.
|
|
48
|
-
- **`appId` is required and fixed per SDK instance.** It must be a non-blank string, its value is
|
|
49
|
-
preserved exactly, the first successful `init` wins (later calls are ignored; a failed init may be
|
|
50
|
-
retried), and `updateConfig` rejects any update that contains `appId`.
|
|
51
|
-
|
|
52
59
|
## [1.0.9]
|
|
53
60
|
|
|
54
61
|
Stable release of `1.0.9-rc.0`. The shipped `dist/` is byte-for-byte the RC's — nothing landed after
|
package/README.md
CHANGED
|
@@ -521,7 +521,7 @@ successful initialization. These are breaking changes; review your initializatio
|
|
|
521
521
|
updates before upgrading:
|
|
522
522
|
|
|
523
523
|
```bash
|
|
524
|
-
npm install @groundcover/browser
|
|
524
|
+
npm install @groundcover/browser@^2.0.0
|
|
525
525
|
```
|
|
526
526
|
|
|
527
527
|
| Change | Migration |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@groundcover/browser",
|
|
3
|
-
"version": "2.0.0
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "groundcover Real User Monitoring (RUM) SDK for the browser \u2014 performance, errors, logs, distributed tracing and session replay",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|