@newrelic/browser-agent 1.297.1-rc.2 → 1.297.1-rc.3

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.DIST_METHOD = exports.BUILD_EN
17
17
  /**
18
18
  * Exposes the version of the agent
19
19
  */
20
- const VERSION = exports.VERSION = "1.297.1-rc.2";
20
+ const VERSION = exports.VERSION = "1.297.1-rc.3";
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.297.1-rc.2";
20
+ const VERSION = exports.VERSION = "1.297.1-rc.3";
21
21
 
22
22
  /**
23
23
  * Exposes the build type of the agent
@@ -34,7 +34,10 @@ if (_runtime.isBrowserScope) {
34
34
  resourceLoadDuration: attribution.resourceLoadDuration,
35
35
  resourceLoadTime: attribution.resourceLoadDuration,
36
36
  // kept for NR backwards compatibility, deprecated in v3->v4
37
- elementRenderDelay: attribution.elementRenderDelay
37
+ elementRenderDelay: attribution.elementRenderDelay,
38
+ ...(attribution.navigationEntry && {
39
+ pageUrl: (0, _cleanUrl.cleanURL)(attribution.navigationEntry.name)
40
+ }) // used to ensure the LCP gets the correct URL at harvest time if a soft nav has occurred before page load
38
41
  };
39
42
  if (attribution.url) attrs.elUrl = (0, _cleanUrl.cleanURL)(attribution.url);
40
43
  if (lcpEntry.element?.tagName) attrs.elTag = lcpEntry.element.tagName;
@@ -11,7 +11,7 @@
11
11
  /**
12
12
  * Exposes the version of the agent
13
13
  */
14
- export const VERSION = "1.297.1-rc.2";
14
+ export const VERSION = "1.297.1-rc.3";
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.297.1-rc.2";
14
+ export const VERSION = "1.297.1-rc.3";
15
15
 
16
16
  /**
17
17
  * Exposes the build type of the agent
@@ -27,7 +27,10 @@ if (isBrowserScope) {
27
27
  resourceLoadDuration: attribution.resourceLoadDuration,
28
28
  resourceLoadTime: attribution.resourceLoadDuration,
29
29
  // kept for NR backwards compatibility, deprecated in v3->v4
30
- elementRenderDelay: attribution.elementRenderDelay
30
+ elementRenderDelay: attribution.elementRenderDelay,
31
+ ...(attribution.navigationEntry && {
32
+ pageUrl: cleanURL(attribution.navigationEntry.name)
33
+ }) // used to ensure the LCP gets the correct URL at harvest time if a soft nav has occurred before page load
31
34
  };
32
35
  if (attribution.url) attrs.elUrl = cleanURL(attribution.url);
33
36
  if (lcpEntry.element?.tagName) attrs.elTag = lcpEntry.element.tagName;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newrelic/browser-agent",
3
- "version": "1.297.1-rc.2",
3
+ "version": "1.297.1-rc.3",
4
4
  "private": false,
5
5
  "author": "New Relic Browser Agent Team <browser-agent@newrelic.com>",
6
6
  "description": "New Relic Browser Agent",
@@ -26,7 +26,8 @@ if (isBrowserScope) {
26
26
  resourceLoadDelay: attribution.resourceLoadDelay,
27
27
  resourceLoadDuration: attribution.resourceLoadDuration,
28
28
  resourceLoadTime: attribution.resourceLoadDuration, // kept for NR backwards compatibility, deprecated in v3->v4
29
- elementRenderDelay: attribution.elementRenderDelay
29
+ elementRenderDelay: attribution.elementRenderDelay,
30
+ ...(attribution.navigationEntry && { pageUrl: cleanURL(attribution.navigationEntry.name) }) // used to ensure the LCP gets the correct URL at harvest time if a soft nav has occurred before page load
30
31
  }
31
32
  if (attribution.url) attrs.elUrl = cleanURL(attribution.url)
32
33
  if (lcpEntry.element?.tagName) attrs.elTag = lcpEntry.element.tagName