@applitools/core 4.66.0 → 4.66.1

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,24 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.66.1](https://github.com/Applitools-Dev/sdk/compare/js/core@4.66.0...js/core@4.66.1) (2026-07-08)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * stop UFG old-infra retry after a retry fails | AD-14675 ([#3970](https://github.com/Applitools-Dev/sdk/issues/3970)) ([1531893](https://github.com/Applitools-Dev/sdk/commit/1531893cc9c098f3ade329ceae7164600c184fa5))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * @applitools/nml-client bumped to 1.11.35
14
+
15
+ * @applitools/core-base bumped to 1.36.1
16
+ #### Bug Fixes
17
+
18
+ * forward Exact match-level tuning to the server across JS + Java | FLD-4685 ([#3974](https://github.com/Applitools-Dev/sdk/issues/3974)) ([fea351c](https://github.com/Applitools-Dev/sdk/commit/fea351c76c80f63bf658d9573b3d34e0537e0cce))
19
+ * @applitools/ec-client bumped to 1.12.37
20
+
21
+
3
22
  ## [4.66.0](https://github.com/Applitools-Dev/sdk/compare/js/core@4.65.2...js/core@4.66.0) (2026-06-28)
4
23
 
5
24
 
package/dist/ufg/check.js CHANGED
@@ -39,6 +39,10 @@ const create_render_target_from_snapshot_1 = require("./create-render-target-fro
39
39
  const to_base_check_settings_1 = require("../automation/utils/to-base-check-settings");
40
40
  const to_old_infra_environment_1 = require("./to-old-infra-environment");
41
41
  function makeCheck({ eyes, target: defaultTarget, environments: defaultEnvironments = [], spec, signal, logger: mainLogger, }) {
42
+ // Sessions whose old-infra retry chain has ended: once a retry doesn't confirm an old-infra match,
43
+ // the backend stops expecting retries, so we must stop sending them. baseEyes is cached per
44
+ // environment, so it is a stable per-session key. See AD-14675.
45
+ const oldInfraRetryDisabled = new WeakSet();
42
46
  return async function check({ target = defaultTarget, settings = {}, logger = mainLogger, } = {}) {
43
47
  var _a;
44
48
  logger = logger.extend(mainLogger);
@@ -193,7 +197,9 @@ function makeCheck({ eyes, target: defaultTarget, environments: defaultEnvironme
193
197
  settings: baseSettings,
194
198
  logger: environmentLogger,
195
199
  });
196
- if (!checkResult.asExpected && baseEyes.test.shouldRetryWithOldInfra) {
200
+ if (!checkResult.asExpected &&
201
+ baseEyes.test.shouldRetryWithOldInfra &&
202
+ !oldInfraRetryDisabled.has(baseEyes)) {
197
203
  const oldInfraEnvironment = (0, to_old_infra_environment_1.toOldInfraEnvironment)(environment);
198
204
  if (oldInfraEnvironment) {
199
205
  // Best-effort: the retry adds an extra render + check, and a transient
@@ -203,13 +209,18 @@ function makeCheck({ eyes, target: defaultTarget, environments: defaultEnvironme
203
209
  try {
204
210
  const { target, settings } = await renderForCheck(oldInfraEnvironment);
205
211
  settings.oldInfraRetry = true;
206
- await baseEyes.check({
212
+ const retryResult = await baseEyes.check({
207
213
  target: { ...target, isTransformed: true },
208
214
  settings,
209
215
  logger: environmentLogger,
210
216
  });
217
+ // A retry that doesn't confirm an old-infra match means the backend now treats the
218
+ // session as non-infra and stops expecting retries — so stop sending them.
219
+ if (!retryResult.asExpected)
220
+ oldInfraRetryDisabled.add(baseEyes);
211
221
  }
212
222
  catch (error) {
223
+ oldInfraRetryDisabled.add(baseEyes);
213
224
  environmentLogger.warn('Old-infra retry failed; keeping the primary check result', error);
214
225
  }
215
226
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/core",
3
- "version": "4.66.0",
3
+ "version": "4.66.1",
4
4
  "homepage": "https://applitools.com",
5
5
  "bugs": {
6
6
  "url": "https://github.com/applitools/eyes.sdk.javascript1/issues"
@@ -61,13 +61,13 @@
61
61
  "setup:standalone": "sh -c 'yarn chromedriver --port=4444 --verbose &'"
62
62
  },
63
63
  "dependencies": {
64
- "@applitools/core-base": "1.36.0",
64
+ "@applitools/core-base": "1.36.1",
65
65
  "@applitools/dom-capture": "11.8.3",
66
66
  "@applitools/dom-snapshot": "4.17.5",
67
67
  "@applitools/driver": "1.26.5",
68
- "@applitools/ec-client": "1.12.36",
68
+ "@applitools/ec-client": "1.12.37",
69
69
  "@applitools/logger": "2.3.0",
70
- "@applitools/nml-client": "1.11.34",
70
+ "@applitools/nml-client": "1.11.35",
71
71
  "@applitools/req": "1.11.2",
72
72
  "@applitools/screenshoter": "3.12.24",
73
73
  "@applitools/snippets": "2.9.3",