@newrelic/browser-agent 1.270.0 → 1.270.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.270.1](https://github.com/newrelic/newrelic-browser-agent/compare/v1.270.0...v1.270.1) (2024-10-23)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Remove undefined agentRuntime in Session Trace ([#1227](https://github.com/newrelic/newrelic-browser-agent/issues/1227)) ([dc5938f](https://github.com/newrelic/newrelic-browser-agent/commit/dc5938f26e43686759de976d4631b22f112b71e8))
12
+
6
13
  ## [1.270.0](https://github.com/newrelic/newrelic-browser-agent/compare/v1.269.0...v1.270.0) (2024-10-22)
7
14
 
8
15
 
@@ -12,7 +12,7 @@ exports.VERSION = exports.RRWEB_VERSION = exports.DIST_METHOD = exports.BUILD_EN
12
12
  /**
13
13
  * Exposes the version of the agent
14
14
  */
15
- const VERSION = exports.VERSION = "1.270.0";
15
+ const VERSION = exports.VERSION = "1.270.1";
16
16
 
17
17
  /**
18
18
  * Exposes the build type of the agent
@@ -12,7 +12,7 @@ exports.VERSION = exports.RRWEB_VERSION = exports.DIST_METHOD = exports.BUILD_EN
12
12
  /**
13
13
  * Exposes the version of the agent
14
14
  */
15
- const VERSION = exports.VERSION = "1.270.0";
15
+ const VERSION = exports.VERSION = "1.270.1";
16
16
 
17
17
  /**
18
18
  * Exposes the build type of the agent
@@ -52,7 +52,7 @@ class TraceStorage {
52
52
  if (this.parent.blocked) return;
53
53
  if (this.nodeCount >= _constants2.MAX_NODES_PER_HARVEST) {
54
54
  // limit the amount of pending data awaiting next harvest
55
- if (this.parent.agentRuntime.session.state.sessionTraceMode !== _constants.MODE.ERROR) return;
55
+ if (this.parent.mode !== _constants.MODE.ERROR) return;
56
56
  const openedSpace = this.trimSTNs(ERROR_MODE_SECONDS_WINDOW); // but maybe we could make some space by discarding irrelevant nodes if we're in sessioned Error mode
57
57
  if (openedSpace === 0) return;
58
58
  }
@@ -6,7 +6,7 @@
6
6
  /**
7
7
  * Exposes the version of the agent
8
8
  */
9
- export const VERSION = "1.270.0";
9
+ export const VERSION = "1.270.1";
10
10
 
11
11
  /**
12
12
  * Exposes the build type of the agent
@@ -6,7 +6,7 @@
6
6
  /**
7
7
  * Exposes the version of the agent
8
8
  */
9
- export const VERSION = "1.270.0";
9
+ export const VERSION = "1.270.1";
10
10
 
11
11
  /**
12
12
  * Exposes the build type of the agent
@@ -46,7 +46,7 @@ export class TraceStorage {
46
46
  if (this.parent.blocked) return;
47
47
  if (this.nodeCount >= MAX_NODES_PER_HARVEST) {
48
48
  // limit the amount of pending data awaiting next harvest
49
- if (this.parent.agentRuntime.session.state.sessionTraceMode !== MODE.ERROR) return;
49
+ if (this.parent.mode !== MODE.ERROR) return;
50
50
  const openedSpace = this.trimSTNs(ERROR_MODE_SECONDS_WINDOW); // but maybe we could make some space by discarding irrelevant nodes if we're in sessioned Error mode
51
51
  if (openedSpace === 0) return;
52
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newrelic/browser-agent",
3
- "version": "1.270.0",
3
+ "version": "1.270.1",
4
4
  "private": false,
5
5
  "author": "New Relic Browser Agent Team <browser-agent@newrelic.com>",
6
6
  "description": "New Relic Browser Agent",
@@ -40,7 +40,7 @@ export class TraceStorage {
40
40
  storeSTN (stn) {
41
41
  if (this.parent.blocked) return
42
42
  if (this.nodeCount >= MAX_NODES_PER_HARVEST) { // limit the amount of pending data awaiting next harvest
43
- if (this.parent.agentRuntime.session.state.sessionTraceMode !== MODE.ERROR) return
43
+ if (this.parent.mode !== MODE.ERROR) return
44
44
  const openedSpace = this.trimSTNs(ERROR_MODE_SECONDS_WINDOW) // but maybe we could make some space by discarding irrelevant nodes if we're in sessioned Error mode
45
45
  if (openedSpace === 0) return
46
46
  }