@adobe/helix-rum-enhancer 1.1.3 → 1.2.0
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.
- package/CHANGELOG.md +14 -0
- package/README.md +1 -0
- package/package.json +7 -7
- package/src/index.js +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [1.2.0](https://github.com/adobe/helix-rum-enhancer/compare/v1.1.4...v1.2.0) (2023-08-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **checkpoints:** introduce new checkpoint `enter` that gets triggered when a page is first loaded (not refreshed) ([16c3381](https://github.com/adobe/helix-rum-enhancer/commit/16c3381ee564de17fbd6ab8d14a717f9773ca5f6)), closes [#62](https://github.com/adobe/helix-rum-enhancer/issues/62)
|
|
7
|
+
|
|
8
|
+
## [1.1.4](https://github.com/adobe/helix-rum-enhancer/compare/v1.1.3...v1.1.4) (2023-05-16)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* trigger release ([ffb208e](https://github.com/adobe/helix-rum-enhancer/commit/ffb208e7ec26f1b536df114162efb0f3715ec690))
|
|
14
|
+
|
|
1
15
|
## [1.1.3](https://github.com/adobe/helix-rum-enhancer/compare/v1.1.2...v1.1.3) (2023-05-16)
|
|
2
16
|
|
|
3
17
|
|
package/README.md
CHANGED
|
@@ -20,6 +20,7 @@ It will add following new checkpoints:
|
|
|
20
20
|
- `click`: A click anywhere in the document
|
|
21
21
|
- `viewblock`: A Helix block has been scrolled into the viewport
|
|
22
22
|
- `viewmedia`: An image or viedo hosted by Helix Media Bus has been scrolled into the viewport
|
|
23
|
+
- `enter`: when page loads and the referrer is different than the current page.
|
|
23
24
|
|
|
24
25
|
## Development
|
|
25
26
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-rum-enhancer",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Helix RUM Enhancer",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -31,19 +31,19 @@
|
|
|
31
31
|
"@adobe/eslint-config-helix": "2.0.2",
|
|
32
32
|
"@semantic-release/changelog": "6.0.3",
|
|
33
33
|
"@semantic-release/git": "10.0.1",
|
|
34
|
-
"@semantic-release/npm": "10.0.
|
|
35
|
-
"c8": "
|
|
34
|
+
"@semantic-release/npm": "10.0.4",
|
|
35
|
+
"c8": "8.0.1",
|
|
36
36
|
"codecov": "3.8.3",
|
|
37
|
-
"eslint": "8.
|
|
37
|
+
"eslint": "8.47.0",
|
|
38
38
|
"eslint-plugin-header": "3.1.1",
|
|
39
|
-
"eslint-plugin-import": "2.
|
|
39
|
+
"eslint-plugin-import": "2.28.0",
|
|
40
40
|
"husky": "8.0.3",
|
|
41
41
|
"jsdoc-to-markdown": "8.0.0",
|
|
42
42
|
"junit-report-builder": "3.0.1",
|
|
43
|
-
"lint-staged": "
|
|
43
|
+
"lint-staged": "14.0.0",
|
|
44
44
|
"mocha": "10.2.0",
|
|
45
45
|
"mocha-multi-reporters": "1.5.1",
|
|
46
|
-
"semantic-release": "21.0.
|
|
46
|
+
"semantic-release": "21.0.7"
|
|
47
47
|
},
|
|
48
48
|
"lint-staged": {
|
|
49
49
|
"*.js": "eslint",
|
package/src/index.js
CHANGED
|
@@ -46,6 +46,11 @@ sampleRUM.drain('observe', ((elements) => {
|
|
|
46
46
|
});
|
|
47
47
|
}));
|
|
48
48
|
|
|
49
|
+
// enter checkpoint when referrer is not the current page url
|
|
50
|
+
if (!!document.referrer && (document.referrer !== window.location.href)) {
|
|
51
|
+
sampleRUM('enter', { target: undefined, source: document.referrer });
|
|
52
|
+
}
|
|
53
|
+
|
|
49
54
|
sampleRUM.targetselector = (element) => {
|
|
50
55
|
let value = element.getAttribute('href') || element.currentSrc || element.getAttribute('src');
|
|
51
56
|
if (value && value.startsWith('https://')) {
|