@newrelic/video-core 4.1.6-beta → 4.1.6
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 +57 -13
- package/README.md +518 -40
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.LICENSE.txt +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.LICENSE.txt +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/umd/nrvideo.min.js +1 -1
- package/dist/umd/nrvideo.min.js.LICENSE.txt +1 -1
- package/dist/umd/nrvideo.min.js.map +1 -1
- package/package.json +9 -2
- package/src/agent.js +57 -1
- package/src/constants.js +11 -1
- package/src/core.js +1 -1
- package/src/eventAggregator.js +48 -0
- package/src/harvestScheduler.js +86 -3
- package/src/obfuscate.js +33 -0
- package/src/optimizedHttpClient.js +6 -2
- package/src/recordEvent.js +1 -1
- package/src/videoConfiguration.js +79 -7
- package/src/videotracker.js +47 -13
- package/src/videotrackerstate.js +72 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,35 +1,79 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
|
|
4
|
-
## [4.1.
|
|
4
|
+
## [4.1.6] - 2026/04/16
|
|
5
5
|
|
|
6
|
-
###
|
|
6
|
+
### Chore
|
|
7
|
+
|
|
8
|
+
- **README.md overhaul**
|
|
9
|
+
Rewrote `README.md` with comprehensive documentation including table of contents, installation instructions, quick start guide, configuration reference, exposed API details, custom tracker guide, getter methods reference, QoE section, obfuscation rules, build & development instructions, and distribution formats.
|
|
10
|
+
|
|
11
|
+
## [4.1.5] - 2026/04/08
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- **Bitrate attribute and method renaming**
|
|
16
|
+
Renamed bitrate attributes and their corresponding getter methods for better clarity:
|
|
17
|
+
- Attribute: `contentMeasuredBitrate` → `contentSegmentDownloadBitrate`
|
|
18
|
+
- Method: `getMeasuredBitrate()` → `getSegmentDownloadBitrate()`
|
|
19
|
+
- Attribute: `contentDownloadBitrate` → `contentNetworkDownloadBitrate`
|
|
20
|
+
- Method: `getDownloadBitrate()` → `getNetworkDownloadBitrate()`
|
|
21
|
+
|
|
22
|
+
### Removed
|
|
23
|
+
|
|
24
|
+
- **Deprecated rendition bitrate attributes**
|
|
25
|
+
Removed `contentRenditionBitrate` and `adRenditionBitrate` attributes from `getAttributes()` in `videotracker.js`. These attributes are no longer included in video events.
|
|
26
|
+
|
|
27
|
+
- **Updated data model documentation**
|
|
28
|
+
Updated `DATAMODEL.md` to reflect the removal of rendition bitrate attributes and the renaming of download bitrate attributes.
|
|
7
29
|
|
|
8
|
-
|
|
30
|
+
## [4.1.4] - 2026/03/31
|
|
9
31
|
|
|
10
|
-
|
|
32
|
+
### Feat
|
|
11
33
|
|
|
12
|
-
|
|
34
|
+
- **Add obfuscation rules support for pre-harvest payload masking**
|
|
35
|
+
Introduces regex-based obfuscation rules that mask sensitive data in event payloads before they are sent to New Relic. Allows configuration of custom regex patterns with replacement strings to protect PII and sensitive tokens. Rules are applied in order to the serialized JSON payload, with invalid regex patterns logged as warnings and skipped.
|
|
13
36
|
|
|
14
|
-
|
|
37
|
+
## [4.1.3] - 2026/03/24
|
|
15
38
|
|
|
16
|
-
|
|
39
|
+
### Fix
|
|
40
|
+
|
|
41
|
+
- **Bitrate attributes default to 0 instead of null**
|
|
42
|
+
Updated `getAttributes()` in `videotracker.js` to fallback bitrate values (`contentBitrate`, `contentRenditionBitrate`, `contentManifestBitrate`, `contentMeasuredBitrate`, `contentDownloadBitrate`) to `0` when null, preventing attributes from being dropped by `cleanData`.
|
|
43
|
+
|
|
44
|
+
## [4.1.2] - 2026/03/18
|
|
17
45
|
|
|
18
46
|
### Fix
|
|
19
47
|
|
|
20
|
-
-
|
|
48
|
+
- **QoE aggregate improvements - KPI accuracy**
|
|
49
|
+
Fixed startup time, average bitrate, and rebuffering time calculations for more accurate QoE KPI reporting
|
|
50
|
+
|
|
51
|
+
- **QoE harvest lifecycle and dedup**
|
|
52
|
+
Improved harvest cycle management with state refresh before drain, forced QoE at `CONTENT_END`, cross-cycle dirty check to skip unchanged KPIs.
|
|
53
|
+
|
|
54
|
+
- **Rename QOE playback failure attrs to error**
|
|
55
|
+
Renamed `hadStartupFailure` and `hadPlaybackFailure` properties to `hadStartupError` and `hadPlaybackError` in `videotrackerstate.js` to align with error terminology.
|
|
21
56
|
|
|
22
|
-
## [4.1.
|
|
57
|
+
## [4.1.1] - 2026/03/13
|
|
23
58
|
|
|
24
59
|
### Fix
|
|
60
|
+
- Added bitrate related changes](d588f72)
|
|
61
|
+
- Added qoe harvest cycle multiplier
|
|
25
62
|
|
|
26
|
-
|
|
63
|
+
## [4.1.0] - 2026/02/18
|
|
27
64
|
|
|
28
|
-
|
|
65
|
+
### Feat
|
|
66
|
+
|
|
67
|
+
- **Add QOE health index KPIs with toggle config**
|
|
68
|
+
Introduced Quality of Experience (QOE) health index key performance indicators with configurable toggle to enable/disable tracking
|
|
69
|
+
|
|
70
|
+
## [4.0.3] - 2026/01/29
|
|
71
|
+
|
|
72
|
+
### Fix
|
|
29
73
|
|
|
30
|
-
|
|
74
|
+
- **Drop bitrate values before start**
|
|
75
|
+
Modified `getAttributes()` in `videotracker.js` to check `this.state.isStarted` before adding bitrate attributes
|
|
31
76
|
|
|
32
|
-
- Add QOE KPIs attributes for VideoAction event with updated DATAMODEL.md
|
|
33
77
|
|
|
34
78
|
## [4.0.2] - 2025/11/03
|
|
35
79
|
|