Skip to content

Commit

Permalink
chore(release): 2.6.0 [skip ci]
Browse files Browse the repository at this point in the history
# [2.6.0](v2.5.7...v2.6.0) (2024-10-07)

### Features

* add support for proper tracking in a speculative pre-rendering context ([#102](#102)) ([aba822a](aba822a))
  • Loading branch information
semantic-release-bot committed Oct 7, 2024
1 parent aba822a commit c58d021
Show file tree
Hide file tree
Showing 4 changed files with 16 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.6.0](https://github.com/adobe/aem-lib/compare/v2.5.7...v2.6.0) (2024-10-07)


### Features

* add support for proper tracking in a speculative pre-rendering context ([#102](https://github.com/adobe/aem-lib/issues/102)) ([aba822a](https://github.com/adobe/aem-lib/commit/aba822a616f8ee15a0aefbb42cebe5f85cfe65e2))

## [2.5.7](https://github.com/adobe/aem-lib/compare/v2.5.6...v2.5.7) (2024-09-19)


Expand Down
7 changes: 6 additions & 1 deletion dist/aem.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,12 @@ function setup() {

function init() {
setup();
sampleRUM();
// Prerender-aware initialization
if (document.prerendering) {
document.addEventListener('prerenderingchange', sampleRUM, { once: true });
} else {
sampleRUM();
}
}

/**
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.7",
"version": "2.6.0",
"description": "AEM Library",
"type": "module",
"scripts": {
Expand Down

0 comments on commit c58d021

Please sign in to comment.