Skip to content

Commit

Permalink
chore(release): 2.5.2 [skip ci]
Browse files Browse the repository at this point in the history
## [2.5.2](v2.5.1...v2.5.2) (2024-08-19)

### Bug Fixes

* **deps:** update dependency @adobe/helix-rum-js to v2.3.0 ([481bc5b](481bc5b))
  • Loading branch information
semantic-release-bot committed Aug 19, 2024
1 parent 481bc5b commit 9664927
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [2.5.2](https://github.com/adobe/aem-lib/compare/v2.5.1...v2.5.2) (2024-08-19)


### Bug Fixes

* **deps:** update dependency @adobe/helix-rum-js to v2.3.0 ([481bc5b](https://github.com/adobe/aem-lib/commit/481bc5bc78a6936184e1d385cbe2617fde497bdf))

## [2.5.1](https://github.com/adobe/aem-lib/compare/v2.5.0...v2.5.1) (2024-08-13)


Expand Down
5 changes: 4 additions & 1 deletion dist/aem.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ function sampleRUM(checkpoint, data) {
window.hlx = window.hlx || {};
sampleRUM.enhance = () => {};
if (!window.hlx.rum) {
const weight = new URLSearchParams(window.location.search).get('rum') === 'on' ? 1 : 100;
const weight = (window.SAMPLE_PAGEVIEWS_AT_RATE === 'high' && 10)
|| (window.SAMPLE_PAGEVIEWS_AT_RATE === 'low' && 1000)
|| (new URLSearchParams(window.location.search).get('rum') === 'on' && 1)
|| 100;
const id = Math.random().toString(36).slice(-4);
const isSelected = Math.random() * weight < 1;
// eslint-disable-next-line object-curly-newline, max-len
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.5.1",
"version": "2.5.2",
"description": "AEM Library",
"type": "module",
"scripts": {
Expand Down

0 comments on commit 9664927

Please sign in to comment.