@applitools/eyes-results 0.2.4 → 0.2.6

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 CHANGED
@@ -1,5 +1,46 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.6](https://github.com/Applitools-Dev/sdk/compare/js/eyes-results@0.2.5...js/eyes-results@0.2.6) (2026-10-13)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * @applitools/utils bumped to 1.15.3
9
+ #### Bug Fixes
10
+
11
+ * publish once to validate the npm trusted publishers ([#4300](https://github.com/Applitools-Dev/sdk/issues/4300)) ([63ebc90](https://github.com/Applitools-Dev/sdk/commit/63ebc9044b150c6f927f626d0ce9cc7da8861441))
12
+ * @applitools/logger bumped to 2.3.2
13
+ #### Bug Fixes
14
+
15
+ * publish once to validate the npm trusted publishers ([#4300](https://github.com/Applitools-Dev/sdk/issues/4300)) ([63ebc90](https://github.com/Applitools-Dev/sdk/commit/63ebc9044b150c6f927f626d0ce9cc7da8861441))
16
+
17
+
18
+
19
+ * @applitools/test-server bumped to 1.4.8
20
+ #### Bug Fixes
21
+
22
+ * publish once to validate the npm trusted publishers ([#4300](https://github.com/Applitools-Dev/sdk/issues/4300)) ([63ebc90](https://github.com/Applitools-Dev/sdk/commit/63ebc9044b150c6f927f626d0ce9cc7da8861441))
23
+
24
+
25
+
26
+ * @applitools/req bumped to 1.11.5
27
+
28
+
29
+ ## [0.2.5](https://github.com/Applitools-Dev/sdk/compare/js/eyes-results@0.2.4...js/eyes-results@0.2.5) (2026-10-12)
30
+
31
+
32
+ ### Bug Fixes
33
+
34
+ * keep and announce rootScope | AD-16718 ([#4265](https://github.com/Applitools-Dev/sdk/issues/4265)) ([66a950e](https://github.com/Applitools-Dev/sdk/commit/66a950e1f25c842e240fbdf372a969cfdd641474))
35
+
36
+
37
+ ### Dependencies
38
+
39
+ * @applitools/req bumped to 1.11.4
40
+ #### Bug Fixes
41
+
42
+ * version-check/telemetry no longer hold the process — connect deadline + unref | AD-16613 ([#4232](https://github.com/Applitools-Dev/sdk/issues/4232)) ([42bcbb5](https://github.com/Applitools-Dev/sdk/commit/42bcbb5dd8d75ad4aa98c2ec0d284f107fdc98e3))
43
+
3
44
  ## [0.2.4](https://github.com/Applitools-Dev/sdk/compare/js/eyes-results@0.2.3...js/eyes-results@0.2.4) (2026-09-14)
4
45
 
5
46
 
@@ -110,6 +110,17 @@ export function recordScopeMode(scopeId, mode, deps = defaultPhaseTrackerDeps) {
110
110
  export function getScopeMode(scopeId, deps = defaultPhaseTrackerDeps) {
111
111
  return readJson(deps, recordPath(deps, 'modes', scopeId));
112
112
  }
113
+ /**
114
+ * Persists `rootScope` as the root of the review that last touched `scopeId`, overwriting any earlier one.
115
+ * A hint for the caller's guidance only: concurrent reviews of one scope overwrite each other.
116
+ */
117
+ export function recordScopeRoot(scopeId, rootScope, deps = defaultPhaseTrackerDeps) {
118
+ writeJson(deps, recordPath(deps, 'roots', scopeId), rootScope);
119
+ }
120
+ /** The root last recorded for `scopeId` via `recordScopeRoot`, or `undefined` if never recorded. */
121
+ export function getScopeRoot(scopeId, deps = defaultPhaseTrackerDeps) {
122
+ return readJson(deps, recordPath(deps, 'roots', scopeId));
123
+ }
113
124
  /** Discards `id`'s completion, as if `recordCompletion` had never been called for it. */
114
125
  export function clearCompletion(id, deps = defaultPhaseTrackerDeps) {
115
126
  withRetry(() => deps.deleteFile(recordPath(deps, 'completions', id)), deps);
@@ -122,6 +133,10 @@ export function clearChildFindings(parentId, deps = defaultPhaseTrackerDeps) {
122
133
  export function clearScopeMode(scopeId, deps = defaultPhaseTrackerDeps) {
123
134
  withRetry(() => deps.deleteFile(recordPath(deps, 'modes', scopeId)), deps);
124
135
  }
136
+ /** Discards `scopeId`'s recorded root, as if `recordScopeRoot` had never been called for it. */
137
+ export function clearScopeRoot(scopeId, deps = defaultPhaseTrackerDeps) {
138
+ withRetry(() => deps.deleteFile(recordPath(deps, 'roots', scopeId)), deps);
139
+ }
125
140
  /** Persists the keys of `scopeId`'s children still unready to be finalized, as of its own latest live check — overwriting whatever was recorded before, so a child that has since become ready (or a newly-discovered unready one) is reflected exactly, never accumulated across checks. */
126
141
  export function recordUnreadyChildren(scopeId, childKeys, deps = defaultPhaseTrackerDeps) {
127
142
  writeJson(deps, recordPath(deps, 'unready-children', scopeId), childKeys);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-results",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "Applitools Eyes REST plumbing, DOM diffing, and session/batch shaping",
5
5
  "keywords": [
6
6
  "applitools",
@@ -10,14 +10,6 @@
10
10
  "sessions"
11
11
  ],
12
12
  "homepage": "https://applitools.com",
13
- "bugs": {
14
- "url": "https://github.com/applitools/eyes.sdk.javascript1/issues"
15
- },
16
- "repository": {
17
- "type": "git",
18
- "url": "git://github.com/applitools/eyes.sdk.javascript1.git",
19
- "directory": "js/packages/eyes-results"
20
- },
21
13
  "license": "SEE LICENSE IN LICENSE",
22
14
  "author": {
23
15
  "name": "Applitools Team",
@@ -45,7 +37,7 @@
45
37
  "type-check": "run --top-level tsc --noEmit"
46
38
  },
47
39
  "dependencies": {
48
- "@applitools/req": "1.11.3",
40
+ "@applitools/req": "1.11.5",
49
41
  "dotenv": "^16.6.1"
50
42
  },
51
43
  "devDependencies": {
@@ -60,12 +60,21 @@ export declare function verifyInvocation(scopeId: string, toolName: string, matc
60
60
  export declare function recordScopeMode(scopeId: string, mode: string, deps?: PhaseTrackerDeps): void;
61
61
  /** The mode last recorded for `scopeId` via `recordScopeMode`, or `undefined` if never recorded. */
62
62
  export declare function getScopeMode(scopeId: string, deps?: PhaseTrackerDeps): string | undefined;
63
+ /**
64
+ * Persists `rootScope` as the root of the review that last touched `scopeId`, overwriting any earlier one.
65
+ * A hint for the caller's guidance only: concurrent reviews of one scope overwrite each other.
66
+ */
67
+ export declare function recordScopeRoot(scopeId: string, rootScope: string, deps?: PhaseTrackerDeps): void;
68
+ /** The root last recorded for `scopeId` via `recordScopeRoot`, or `undefined` if never recorded. */
69
+ export declare function getScopeRoot(scopeId: string, deps?: PhaseTrackerDeps): string | undefined;
63
70
  /** Discards `id`'s completion, as if `recordCompletion` had never been called for it. */
64
71
  export declare function clearCompletion(id: string, deps?: PhaseTrackerDeps): void;
65
72
  /** Discards `parentId`'s entire accumulated child-findings record — every child's entry, not just one. */
66
73
  export declare function clearChildFindings(parentId: string, deps?: PhaseTrackerDeps): void;
67
74
  /** Discards `scopeId`'s recorded mode, as if `recordScopeMode` had never been called for it. */
68
75
  export declare function clearScopeMode(scopeId: string, deps?: PhaseTrackerDeps): void;
76
+ /** Discards `scopeId`'s recorded root, as if `recordScopeRoot` had never been called for it. */
77
+ export declare function clearScopeRoot(scopeId: string, deps?: PhaseTrackerDeps): void;
69
78
  /** Persists the keys of `scopeId`'s children still unready to be finalized, as of its own latest live check — overwriting whatever was recorded before, so a child that has since become ready (or a newly-discovered unready one) is reflected exactly, never accumulated across checks. */
70
79
  export declare function recordUnreadyChildren(scopeId: string, childKeys: string[], deps?: PhaseTrackerDeps): void;
71
80
  /** The child keys `recordUnreadyChildren` last recorded as unready for `scopeId`, or `[]` if never recorded. */