@newrelic/browser-agent 1.322.0-rc.10 → 1.322.0-rc.12

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.
@@ -17,7 +17,7 @@ exports.VERSION = exports.RRWEB_VERSION = exports.RRWEB_PACKAGE_NAME = exports.D
17
17
  /**
18
18
  * Exposes the version of the agent
19
19
  */
20
- const VERSION = exports.VERSION = "1.322.0-rc.10";
20
+ const VERSION = exports.VERSION = "1.322.0-rc.12";
21
21
 
22
22
  /**
23
23
  * Exposes the build type of the agent
@@ -17,7 +17,7 @@ exports.VERSION = exports.RRWEB_VERSION = exports.RRWEB_PACKAGE_NAME = exports.D
17
17
  /**
18
18
  * Exposes the version of the agent
19
19
  */
20
- const VERSION = exports.VERSION = "1.322.0-rc.10";
20
+ const VERSION = exports.VERSION = "1.322.0-rc.12";
21
21
 
22
22
  /**
23
23
  * Exposes the build type of the agent
@@ -90,6 +90,8 @@ class Connector {
90
90
  if (cachedResp) {
91
91
  // Report that we've seen a race condition on updating session state
92
92
  (0, _handle.handle)(_constants.SUPPORTABILITY_METRIC_CHANNEL, ['Session/RaceCondition/Seen'], undefined, _features.FEATURE_NAMES.metrics, this.#agentRef.ee);
93
+ // The other tab/agent that wrote this cached response also wrote its own serverTimeDiff to the session around the same time. TimeKeeper was constructed before that happened, so re-check the session now to pick it up.
94
+ this.#agentRef.runtime.timeKeeper.processStoredDiff();
93
95
  // `cachedRumResponse` is stored flat (`{ app, ...flags }`, matching the old v1 RUM response), so re-nest it before applying.
94
96
  const {
95
97
  app,
@@ -11,7 +11,7 @@
11
11
  /**
12
12
  * Exposes the version of the agent
13
13
  */
14
- export const VERSION = "1.322.0-rc.10";
14
+ export const VERSION = "1.322.0-rc.12";
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.322.0-rc.10";
14
+ export const VERSION = "1.322.0-rc.12";
15
15
 
16
16
  /**
17
17
  * Exposes the build type of the agent
@@ -84,6 +84,8 @@ export class Connector {
84
84
  if (cachedResp) {
85
85
  // Report that we've seen a race condition on updating session state
86
86
  handle(SUPPORTABILITY_METRIC_CHANNEL, ['Session/RaceCondition/Seen'], undefined, FEATURE_NAMES.metrics, this.#agentRef.ee);
87
+ // The other tab/agent that wrote this cached response also wrote its own serverTimeDiff to the session around the same time. TimeKeeper was constructed before that happened, so re-check the session now to pick it up.
88
+ this.#agentRef.runtime.timeKeeper.processStoredDiff();
87
89
  // `cachedRumResponse` is stored flat (`{ app, ...flags }`, matching the old v1 RUM response), so re-nest it before applying.
88
90
  const {
89
91
  app,
@@ -1 +1 @@
1
- {"version":3,"file":"connector.d.ts","sourceRoot":"","sources":["../../../../src/common/harvest/connector.js"],"names":[],"mappings":"AAmBA;IAKE,2BAeC;IAED,+CAiBC;;CA+GF"}
1
+ {"version":3,"file":"connector.d.ts","sourceRoot":"","sources":["../../../../src/common/harvest/connector.js"],"names":[],"mappings":"AAmBA;IAKE,2BAeC;IAED,+CAiBC;;CAiHF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newrelic/browser-agent",
3
- "version": "1.322.0-rc.10",
3
+ "version": "1.322.0-rc.12",
4
4
  "private": false,
5
5
  "author": "New Relic Browser Agent Team <browser-agent@newrelic.com>",
6
6
  "description": "New Relic Browser Agent",
@@ -73,6 +73,8 @@ export class Connector {
73
73
  if (cachedResp) {
74
74
  // Report that we've seen a race condition on updating session state
75
75
  handle(SUPPORTABILITY_METRIC_CHANNEL, ['Session/RaceCondition/Seen'], undefined, FEATURE_NAMES.metrics, this.#agentRef.ee)
76
+ // The other tab/agent that wrote this cached response also wrote its own serverTimeDiff to the session around the same time. TimeKeeper was constructed before that happened, so re-check the session now to pick it up.
77
+ this.#agentRef.runtime.timeKeeper.processStoredDiff()
76
78
  // `cachedRumResponse` is stored flat (`{ app, ...flags }`, matching the old v1 RUM response), so re-nest it before applying.
77
79
  const { app, ...config } = cachedResp
78
80
  this.#applyConnectResponse({ app, config })