@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 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.0";
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.0";
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
- _constants.WATCHABLE_WEB_SOCKET_EVENTS.forEach(tag => {
137
- (0, _registerHandler.registerHandler)('buffered-' + _wrapWebsocket.WEBSOCKET_TAG + tag, (...args) => {
138
- (0, _websocketDetection.handleWebsocketEvents)(this.storeSupportabilityMetrics.bind(this), tag, ...args);
139
- }, this.featureName, this.ee);
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
- (0, _wrapWebsocket.wrapWebSocket)(this.ee);
21
- _constants.WATCHABLE_WEB_SOCKET_EVENTS.forEach(suffix => {
22
- this.ee.on(_wrapWebsocket.WEBSOCKET_TAG + suffix, (...args) => {
23
- (0, _handle.handle)('buffered-' + _wrapWebsocket.WEBSOCKET_TAG + suffix, [...args], undefined, this.featureName, this.ee);
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
  }
@@ -11,7 +11,7 @@
11
11
  /**
12
12
  * Exposes the version of the agent
13
13
  */
14
- export const VERSION = "1.283.0";
14
+ export const VERSION = "1.283.1";
15
15
 
16
16
  /**
17
17
  * Exposes the build type of the agent
@@ -11,7 +11,7 @@
11
11
  /**
12
12
  * Exposes the version of the agent
13
13
  */
14
- export const VERSION = "1.283.0";
14
+ export const VERSION = "1.283.1";
15
15
 
16
16
  /**
17
17
  * Exposes the build type of the agent
@@ -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, WATCHABLE_WEB_SOCKET_EVENTS } from '../constants';
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
- WATCHABLE_WEB_SOCKET_EVENTS.forEach(tag => {
130
- registerHandler('buffered-' + WEBSOCKET_TAG + tag, (...args) => {
131
- handleWebsocketEvents(this.storeSupportabilityMetrics.bind(this), tag, ...args);
132
- }, this.featureName, this.ee);
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, WATCHABLE_WEB_SOCKET_EVENTS } from '../constants';
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
- WATCHABLE_WEB_SOCKET_EVENTS.forEach(suffix => {
16
- this.ee.on(WEBSOCKET_TAG + suffix, (...args) => {
17
- handle('buffered-' + WEBSOCKET_TAG + suffix, [...args], undefined, this.featureName, this.ee);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newrelic/browser-agent",
3
- "version": "1.283.0",
3
+ "version": "1.283.1",
4
4
  "private": false,
5
5
  "author": "New Relic Browser Agent Team <browser-agent@newrelic.com>",
6
6
  "description": "New Relic Browser Agent",
@@ -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, WATCHABLE_WEB_SOCKET_EVENTS } from '../constants'
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
- registerHandler('buffered-' + WEBSOCKET_TAG + tag, (...args) => {
121
- handleWebsocketEvents(this.storeSupportabilityMetrics.bind(this), tag, ...args)
122
- }, this.featureName, this.ee)
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, WATCHABLE_WEB_SOCKET_EVENTS } from '../constants'
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
- this.ee.on(WEBSOCKET_TAG + suffix, (...args) => {
19
- handle('buffered-' + WEBSOCKET_TAG + suffix, [...args], undefined, this.featureName, this.ee)
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
  }