Skip to content

Commit

Permalink
chore(release): 2.1.2 [skip ci]
Browse files Browse the repository at this point in the history
## [2.1.2](v2.1.1...v2.1.2) (2024-06-12)

### Bug Fixes

* **deps:** update dependency @adobe/helix-rum-js to v1.9.0 ([#75](#75)) ([92af474](92af474))
  • Loading branch information
semantic-release-bot committed Jun 12, 2024
1 parent 92af474 commit 4ef4465
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 15 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [2.1.2](https://github.com/adobe/aem-lib/compare/v2.1.1...v2.1.2) (2024-06-12)


### Bug Fixes

* **deps:** update dependency @adobe/helix-rum-js to v1.9.0 ([#75](https://github.com/adobe/aem-lib/issues/75)) ([92af474](https://github.com/adobe/aem-lib/commit/92af4743ce2e1f4d22e2da910f743861770eba1d))

## [2.1.1](https://github.com/adobe/aem-lib/compare/v2.1.0...v2.1.1) (2024-06-07)


Expand Down
12 changes: 0 additions & 12 deletions dist/aem.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
* for instance the href of a link, or a search term
*/
function sampleRUM(checkpoint, data = {}) {
const SESSION_STORAGE_KEY = 'aem-rum';
sampleRUM.baseURL = sampleRUM.baseURL
|| new URL(window.RUM_BASE == null ? 'https://rum.hlx.page' : window.RUM_BASE, window.location);
sampleRUM.defer = sampleRUM.defer || [];
Expand Down Expand Up @@ -59,15 +58,6 @@ function sampleRUM(checkpoint, data = {}) {
origin: () => window.location.origin,
path: () => window.location.href.replace(/\?.*$/, ''),
};
// eslint-disable-next-line max-len
const rumSessionStorage = sessionStorage.getItem(SESSION_STORAGE_KEY)
? JSON.parse(sessionStorage.getItem(SESSION_STORAGE_KEY))
: {};
// eslint-disable-next-line max-len
rumSessionStorage.pages = (rumSessionStorage.pages ? rumSessionStorage.pages : 0)
+ 1
/* noise */ + (Math.floor(Math.random() * 20) - 10);
sessionStorage.setItem(SESSION_STORAGE_KEY, JSON.stringify(rumSessionStorage));
// eslint-disable-next-line object-curly-newline, max-len
window.hlx.rum = {
weight,
Expand All @@ -77,7 +67,6 @@ function sampleRUM(checkpoint, data = {}) {
firstReadTime,
sampleRUM,
sanitizeURL: urlSanitizers[window.hlx.RUM_MASK_URL || 'path'],
rumSessionStorage,
};
}

Expand Down Expand Up @@ -116,7 +105,6 @@ function sampleRUM(checkpoint, data = {}) {
console.debug(`ping:${checkpoint}`, pdata);
};
sampleRUM.cases = sampleRUM.cases || {
load: () => sampleRUM('pagesviewed', { source: window.hlx.rum.rumSessionStorage.pages }) || true,
cwv: () => sampleRUM.cwv(data) || true,
lazy: () => {
// use classic script to avoid CORS issues
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@adobe/aem-lib",
"version": "2.1.1",
"version": "2.1.2",
"description": "AEM Library",
"type": "module",
"scripts": {
Expand Down

0 comments on commit 4ef4465

Please sign in to comment.