@newrelic/browser-agent 1.283.0 → 1.283.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 +7 -0
- package/dist/cjs/common/constants/env.cdn.js +1 -1
- package/dist/cjs/common/constants/env.npm.js +1 -1
- package/dist/cjs/features/metrics/aggregate/index.js +9 -7
- package/dist/cjs/features/metrics/instrument/index.js +11 -8
- package/dist/esm/common/constants/env.cdn.js +1 -1
- package/dist/esm/common/constants/env.npm.js +1 -1
- package/dist/esm/features/metrics/aggregate/index.js +10 -8
- package/dist/esm/features/metrics/instrument/index.js +11 -9
- package/package.json +1 -1
- package/src/features/metrics/aggregate/index.js +8 -8
- package/src/features/metrics/instrument/index.js +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.283.1](https://github.com/newrelic/newrelic-browser-agent/compare/v1.283.0...v1.283.1) (2025-02-19)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Removing websocket wrapping & SM ([#1388](https://github.com/newrelic/newrelic-browser-agent/issues/1388)) ([95bbe92](https://github.com/newrelic/newrelic-browser-agent/commit/95bbe92f12d20447b40538b17db61c2ea887ef79))
|
|
12
|
+
|
|
6
13
|
## [1.283.0](https://github.com/newrelic/newrelic-browser-agent/compare/v1.282.0...v1.283.0) (2025-02-18)
|
|
7
14
|
|
|
8
15
|
|
|
@@ -17,7 +17,7 @@ exports.VERSION = exports.RRWEB_VERSION = exports.DIST_METHOD = exports.BUILD_EN
|
|
|
17
17
|
/**
|
|
18
18
|
* Exposes the version of the agent
|
|
19
19
|
*/
|
|
20
|
-
const VERSION = exports.VERSION = "1.283.
|
|
20
|
+
const VERSION = exports.VERSION = "1.283.1";
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Exposes the build type of the agent
|
|
@@ -17,7 +17,7 @@ exports.VERSION = exports.RRWEB_VERSION = exports.DIST_METHOD = exports.BUILD_EN
|
|
|
17
17
|
/**
|
|
18
18
|
* Exposes the version of the agent
|
|
19
19
|
*/
|
|
20
|
-
const VERSION = exports.VERSION = "1.283.
|
|
20
|
+
const VERSION = exports.VERSION = "1.283.1";
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Exposes the build type of the agent
|
|
@@ -13,13 +13,14 @@ var _eventListenerOpts = require("../../../common/event-listener/event-listener-
|
|
|
13
13
|
var _runtime = require("../../../common/constants/runtime");
|
|
14
14
|
var _aggregateBase = require("../../utils/aggregate-base");
|
|
15
15
|
var _iframe = require("../../../common/dom/iframe");
|
|
16
|
-
var _wrapWebsocket = require("../../../common/wrap/wrap-websocket");
|
|
17
|
-
var _websocketDetection = require("./websocket-detection");
|
|
18
16
|
/**
|
|
19
17
|
* Copyright 2020-2025 New Relic, Inc. All rights reserved.
|
|
20
18
|
* SPDX-License-Identifier: Apache-2.0
|
|
21
19
|
*/
|
|
22
20
|
|
|
21
|
+
// import { WEBSOCKET_TAG } from '../../../common/wrap/wrap-websocket'
|
|
22
|
+
// import { handleWebsocketEvents } from './websocket-detection'
|
|
23
|
+
|
|
23
24
|
class Aggregate extends _aggregateBase.AggregateBase {
|
|
24
25
|
static featureName = _constants.FEATURE_NAME;
|
|
25
26
|
constructor(agentRef) {
|
|
@@ -133,11 +134,12 @@ class Aggregate extends _aggregateBase.AggregateBase {
|
|
|
133
134
|
subtree: true
|
|
134
135
|
});
|
|
135
136
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
})
|
|
137
|
+
|
|
138
|
+
// WATCHABLE_WEB_SOCKET_EVENTS.forEach(tag => {
|
|
139
|
+
// registerHandler('buffered-' + WEBSOCKET_TAG + tag, (...args) => {
|
|
140
|
+
// handleWebsocketEvents(this.storeSupportabilityMetrics.bind(this), tag, ...args)
|
|
141
|
+
// }, this.featureName, this.ee)
|
|
142
|
+
// })
|
|
141
143
|
}
|
|
142
144
|
eachSessionChecks() {
|
|
143
145
|
if (!_runtime.isBrowserScope) return;
|
|
@@ -4,8 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.Metrics = exports.Instrument = void 0;
|
|
7
|
-
var _handle = require("../../../common/event-emitter/handle");
|
|
8
|
-
var _wrapWebsocket = require("../../../common/wrap/wrap-websocket");
|
|
9
7
|
var _instrumentBase = require("../../utils/instrument-base");
|
|
10
8
|
var _constants = require("../constants");
|
|
11
9
|
/**
|
|
@@ -13,16 +11,21 @@ var _constants = require("../constants");
|
|
|
13
11
|
* SPDX-License-Identifier: Apache-2.0
|
|
14
12
|
*/
|
|
15
13
|
|
|
14
|
+
// import { handle } from '../../../common/event-emitter/handle'
|
|
15
|
+
// import { WEBSOCKET_TAG, wrapWebSocket } from '../../../common/wrap/wrap-websocket'
|
|
16
|
+
|
|
16
17
|
class Instrument extends _instrumentBase.InstrumentBase {
|
|
17
18
|
static featureName = _constants.FEATURE_NAME;
|
|
18
19
|
constructor(agentRef, auto = true) {
|
|
19
20
|
super(agentRef, _constants.FEATURE_NAME, auto);
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
})
|
|
21
|
+
// wrapWebSocket(this.ee) - feb'25 : removing wrapping again to avoid integration issues
|
|
22
|
+
|
|
23
|
+
// WATCHABLE_WEB_SOCKET_EVENTS.forEach((suffix) => {
|
|
24
|
+
// this.ee.on(WEBSOCKET_TAG + suffix, (...args) => {
|
|
25
|
+
// handle('buffered-' + WEBSOCKET_TAG + suffix, [...args], undefined, this.featureName, this.ee)
|
|
26
|
+
// })
|
|
27
|
+
// })
|
|
28
|
+
|
|
26
29
|
this.importAggregator(agentRef);
|
|
27
30
|
}
|
|
28
31
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
import { registerHandler } from '../../../common/event-emitter/register-handler';
|
|
6
|
-
import { FEATURE_NAME, SUPPORTABILITY_METRIC, CUSTOM_METRIC, SUPPORTABILITY_METRIC_CHANNEL, CUSTOM_METRIC_CHANNEL
|
|
6
|
+
import { FEATURE_NAME, SUPPORTABILITY_METRIC, CUSTOM_METRIC, SUPPORTABILITY_METRIC_CHANNEL, CUSTOM_METRIC_CHANNEL } from '../constants';
|
|
7
7
|
import { getFrameworks } from './framework-detection';
|
|
8
8
|
import { isFileProtocol } from '../../../common/url/protocol';
|
|
9
9
|
import { onDOMContentLoaded } from '../../../common/window/load';
|
|
@@ -11,8 +11,9 @@ import { windowAddEventListener } from '../../../common/event-listener/event-lis
|
|
|
11
11
|
import { isBrowserScope, isWorkerScope } from '../../../common/constants/runtime';
|
|
12
12
|
import { AggregateBase } from '../../utils/aggregate-base';
|
|
13
13
|
import { isIFrameWindow } from '../../../common/dom/iframe';
|
|
14
|
-
import { WEBSOCKET_TAG } from '../../../common/wrap/wrap-websocket'
|
|
15
|
-
import { handleWebsocketEvents } from './websocket-detection'
|
|
14
|
+
// import { WEBSOCKET_TAG } from '../../../common/wrap/wrap-websocket'
|
|
15
|
+
// import { handleWebsocketEvents } from './websocket-detection'
|
|
16
|
+
|
|
16
17
|
export class Aggregate extends AggregateBase {
|
|
17
18
|
static featureName = FEATURE_NAME;
|
|
18
19
|
constructor(agentRef) {
|
|
@@ -126,11 +127,12 @@ export class Aggregate extends AggregateBase {
|
|
|
126
127
|
subtree: true
|
|
127
128
|
});
|
|
128
129
|
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
})
|
|
130
|
+
|
|
131
|
+
// WATCHABLE_WEB_SOCKET_EVENTS.forEach(tag => {
|
|
132
|
+
// registerHandler('buffered-' + WEBSOCKET_TAG + tag, (...args) => {
|
|
133
|
+
// handleWebsocketEvents(this.storeSupportabilityMetrics.bind(this), tag, ...args)
|
|
134
|
+
// }, this.featureName, this.ee)
|
|
135
|
+
// })
|
|
134
136
|
}
|
|
135
137
|
eachSessionChecks() {
|
|
136
138
|
if (!isBrowserScope) return;
|
|
@@ -3,20 +3,22 @@
|
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { handle } from '../../../common/event-emitter/handle'
|
|
7
|
-
import { WEBSOCKET_TAG, wrapWebSocket } from '../../../common/wrap/wrap-websocket'
|
|
6
|
+
// import { handle } from '../../../common/event-emitter/handle'
|
|
7
|
+
// import { WEBSOCKET_TAG, wrapWebSocket } from '../../../common/wrap/wrap-websocket'
|
|
8
8
|
import { InstrumentBase } from '../../utils/instrument-base';
|
|
9
|
-
import { FEATURE_NAME
|
|
9
|
+
import { FEATURE_NAME } from '../constants';
|
|
10
10
|
export class Instrument extends InstrumentBase {
|
|
11
11
|
static featureName = FEATURE_NAME;
|
|
12
12
|
constructor(agentRef, auto = true) {
|
|
13
13
|
super(agentRef, FEATURE_NAME, auto);
|
|
14
|
-
wrapWebSocket(this.ee)
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
})
|
|
14
|
+
// wrapWebSocket(this.ee) - feb'25 : removing wrapping again to avoid integration issues
|
|
15
|
+
|
|
16
|
+
// WATCHABLE_WEB_SOCKET_EVENTS.forEach((suffix) => {
|
|
17
|
+
// this.ee.on(WEBSOCKET_TAG + suffix, (...args) => {
|
|
18
|
+
// handle('buffered-' + WEBSOCKET_TAG + suffix, [...args], undefined, this.featureName, this.ee)
|
|
19
|
+
// })
|
|
20
|
+
// })
|
|
21
|
+
|
|
20
22
|
this.importAggregator(agentRef);
|
|
21
23
|
}
|
|
22
24
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
import { registerHandler } from '../../../common/event-emitter/register-handler'
|
|
6
|
-
import { FEATURE_NAME, SUPPORTABILITY_METRIC, CUSTOM_METRIC, SUPPORTABILITY_METRIC_CHANNEL, CUSTOM_METRIC_CHANNEL
|
|
6
|
+
import { FEATURE_NAME, SUPPORTABILITY_METRIC, CUSTOM_METRIC, SUPPORTABILITY_METRIC_CHANNEL, CUSTOM_METRIC_CHANNEL } from '../constants'
|
|
7
7
|
import { getFrameworks } from './framework-detection'
|
|
8
8
|
import { isFileProtocol } from '../../../common/url/protocol'
|
|
9
9
|
import { onDOMContentLoaded } from '../../../common/window/load'
|
|
@@ -11,8 +11,8 @@ import { windowAddEventListener } from '../../../common/event-listener/event-lis
|
|
|
11
11
|
import { isBrowserScope, isWorkerScope } from '../../../common/constants/runtime'
|
|
12
12
|
import { AggregateBase } from '../../utils/aggregate-base'
|
|
13
13
|
import { isIFrameWindow } from '../../../common/dom/iframe'
|
|
14
|
-
import { WEBSOCKET_TAG } from '../../../common/wrap/wrap-websocket'
|
|
15
|
-
import { handleWebsocketEvents } from './websocket-detection'
|
|
14
|
+
// import { WEBSOCKET_TAG } from '../../../common/wrap/wrap-websocket'
|
|
15
|
+
// import { handleWebsocketEvents } from './websocket-detection'
|
|
16
16
|
|
|
17
17
|
export class Aggregate extends AggregateBase {
|
|
18
18
|
static featureName = FEATURE_NAME
|
|
@@ -116,11 +116,11 @@ export class Aggregate extends AggregateBase {
|
|
|
116
116
|
mo.observe(window.document.body, { childList: true, subtree: true })
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
WATCHABLE_WEB_SOCKET_EVENTS.forEach(tag => {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
})
|
|
119
|
+
// WATCHABLE_WEB_SOCKET_EVENTS.forEach(tag => {
|
|
120
|
+
// registerHandler('buffered-' + WEBSOCKET_TAG + tag, (...args) => {
|
|
121
|
+
// handleWebsocketEvents(this.storeSupportabilityMetrics.bind(this), tag, ...args)
|
|
122
|
+
// }, this.featureName, this.ee)
|
|
123
|
+
// })
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
eachSessionChecks () {
|
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { handle } from '../../../common/event-emitter/handle'
|
|
7
|
-
import { WEBSOCKET_TAG, wrapWebSocket } from '../../../common/wrap/wrap-websocket'
|
|
6
|
+
// import { handle } from '../../../common/event-emitter/handle'
|
|
7
|
+
// import { WEBSOCKET_TAG, wrapWebSocket } from '../../../common/wrap/wrap-websocket'
|
|
8
8
|
import { InstrumentBase } from '../../utils/instrument-base'
|
|
9
|
-
import { FEATURE_NAME
|
|
9
|
+
import { FEATURE_NAME } from '../constants'
|
|
10
10
|
|
|
11
11
|
export class Instrument extends InstrumentBase {
|
|
12
12
|
static featureName = FEATURE_NAME
|
|
13
13
|
constructor (agentRef, auto = true) {
|
|
14
14
|
super(agentRef, FEATURE_NAME, auto)
|
|
15
|
-
wrapWebSocket(this.ee)
|
|
15
|
+
// wrapWebSocket(this.ee) - feb'25 : removing wrapping again to avoid integration issues
|
|
16
16
|
|
|
17
|
-
WATCHABLE_WEB_SOCKET_EVENTS.forEach((suffix) => {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
})
|
|
17
|
+
// WATCHABLE_WEB_SOCKET_EVENTS.forEach((suffix) => {
|
|
18
|
+
// this.ee.on(WEBSOCKET_TAG + suffix, (...args) => {
|
|
19
|
+
// handle('buffered-' + WEBSOCKET_TAG + suffix, [...args], undefined, this.featureName, this.ee)
|
|
20
|
+
// })
|
|
21
|
+
// })
|
|
22
22
|
|
|
23
23
|
this.importAggregator(agentRef)
|
|
24
24
|
}
|