@applitools/core 4.62.0 → 4.63.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 CHANGED
@@ -1,5 +1,79 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.63.0](https://github.com/Applitools-Dev/sdk/compare/js/core@4.62.0...js/core@4.63.0) (2026-05-19)
4
+
5
+
6
+ ### Features
7
+
8
+ * soft-deprecate CheckSettings.timeout() with telemetry [[#3705](https://github.com/Applitools-Dev/sdk/issues/3705)] ([#3805](https://github.com/Applitools-Dev/sdk/issues/3805)) ([a5d6390](https://github.com/Applitools-Dev/sdk/commit/a5d6390f17fc0380736b88cbe05dd147e66a86cf))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * avoid double-scaling environment viewport in classic mode | FLD-4359 ([#3793](https://github.com/Applitools-Dev/sdk/issues/3793)) ([246050b](https://github.com/Applitools-Dev/sdk/commit/246050b8a7984b869c068262162a69191c834947))
14
+ * http2 support via settings AD 13119 ([#3804](https://github.com/Applitools-Dev/sdk/issues/3804)) ([759d451](https://github.com/Applitools-Dev/sdk/commit/759d4518254828140aa50e2c5de14e80af0b997c))
15
+
16
+
17
+ ### Dependencies
18
+
19
+ * @applitools/snippets bumped to 2.9.1
20
+ #### Bug Fixes
21
+
22
+ * declare @babel/preset-typescript dep for sandbox build ([#3815](https://github.com/Applitools-Dev/sdk/issues/3815)) ([10c44c6](https://github.com/Applitools-Dev/sdk/commit/10c44c66635f1ed4e0361f22ecebf2221c2cc912))
23
+ * @applitools/dom-snapshot bumped to 4.17.1
24
+
25
+ * @applitools/req bumped to 1.10.1
26
+ #### Bug Fixes
27
+
28
+ * http2 support via settings AD 13119 ([#3804](https://github.com/Applitools-Dev/sdk/issues/3804)) ([759d451](https://github.com/Applitools-Dev/sdk/commit/759d4518254828140aa50e2c5de14e80af0b997c))
29
+ * @applitools/driver bumped to 1.26.1
30
+ #### Bug Fixes
31
+
32
+ * address CI regressions from executeBrowserCommands and Chromium 140+ service worker ([#3848](https://github.com/Applitools-Dev/sdk/issues/3848)) ([099ada5](https://github.com/Applitools-Dev/sdk/commit/099ada5e52d4153157b98c2203df428579527e49))
33
+
34
+
35
+
36
+ * @applitools/spec-driver-playwright bumped to 1.9.1
37
+ #### Bug Fixes
38
+
39
+ * address CI regressions from executeBrowserCommands and Chromium 140+ service worker ([#3848](https://github.com/Applitools-Dev/sdk/issues/3848)) ([099ada5](https://github.com/Applitools-Dev/sdk/commit/099ada5e52d4153157b98c2203df428579527e49))
40
+
41
+
42
+
43
+ * @applitools/ufg-client bumped to 1.22.1
44
+ #### Bug Fixes
45
+
46
+ * http2 support via settings AD 13119 ([#3804](https://github.com/Applitools-Dev/sdk/issues/3804)) ([759d451](https://github.com/Applitools-Dev/sdk/commit/759d4518254828140aa50e2c5de14e80af0b997c))
47
+
48
+
49
+
50
+ * @applitools/spec-driver-webdriver bumped to 1.6.1
51
+
52
+ * @applitools/spec-driver-selenium bumped to 1.8.1
53
+
54
+ * @applitools/spec-driver-puppeteer bumped to 1.8.1
55
+
56
+ * @applitools/screenshoter bumped to 3.12.20
57
+
58
+ * @applitools/nml-client bumped to 1.11.27
59
+
60
+ * @applitools/tunnel-client bumped to 1.11.13
61
+
62
+ * @applitools/core-base bumped to 1.34.0
63
+ #### Features
64
+
65
+ * soft-deprecate CheckSettings.timeout() with telemetry [[#3705](https://github.com/Applitools-Dev/sdk/issues/3705)] ([#3805](https://github.com/Applitools-Dev/sdk/issues/3805)) ([a5d6390](https://github.com/Applitools-Dev/sdk/commit/a5d6390f17fc0380736b88cbe05dd147e66a86cf))
66
+
67
+
68
+ #### Bug Fixes
69
+
70
+ * http2 support via settings AD 13119 ([#3804](https://github.com/Applitools-Dev/sdk/issues/3804)) ([759d451](https://github.com/Applitools-Dev/sdk/commit/759d4518254828140aa50e2c5de14e80af0b997c))
71
+
72
+
73
+
74
+ * @applitools/ec-client bumped to 1.12.29
75
+
76
+
3
77
  ## [4.62.0](https://github.com/Applitools-Dev/sdk/compare/js/core@4.61.1...js/core@4.62.0) (2026-05-05)
4
78
 
5
79
 
package/dist/check.js CHANGED
@@ -35,8 +35,8 @@ const chalk_1 = __importDefault(require("chalk"));
35
35
  function makeCheck({ type: defaultType = 'classic', eyes, target: defaultTarget, spec, logger: mainLogger, }) {
36
36
  let stepIndex = 0;
37
37
  return async function check({ type = defaultType, target = defaultTarget, settings, config, logger = mainLogger, } = {}) {
38
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
39
- var _r, _s, _t, _u, _v;
38
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
39
+ var _s, _t, _u, _v, _w;
40
40
  logger = logger.extend(mainLogger, { tags: [`check-${type}-${utils.general.shortid()}`] });
41
41
  settings = { ...config === null || config === void 0 ? void 0 : config.screenshot, ...config === null || config === void 0 ? void 0 : config.check, ...settings };
42
42
  (_a = settings.fully) !== null && _a !== void 0 ? _a : (settings.fully = !settings.region && (!settings.frames || settings.frames.length === 0));
@@ -56,23 +56,32 @@ function makeCheck({ type: defaultType = 'classic', eyes, target: defaultTarget,
56
56
  !utils.types.isEmpty(settings.accessibilitySettings));
57
57
  (_h = settings.autProxy) !== null && _h !== void 0 ? _h : (settings.autProxy = eyes.test.eyesServer.proxy);
58
58
  (_j = settings.useDom) !== null && _j !== void 0 ? _j : (settings.useDom = false);
59
- (_k = (_r = settings).matchTimeout) !== null && _k !== void 0 ? _k : (_r.matchTimeout = 0);
59
+ (_k = (_s = settings).matchTimeout) !== null && _k !== void 0 ? _k : (_s.matchTimeout = 0);
60
60
  settings.lazyLoad = settings.lazyLoad === true ? {} : settings.lazyLoad;
61
61
  if (settings.lazyLoad) {
62
- (_l = (_s = settings.lazyLoad).scrollLength) !== null && _l !== void 0 ? _l : (_s.scrollLength = defaults_1.DEFAULT_LAZY_LOAD.scrollLength);
63
- (_m = (_t = settings.lazyLoad).waitingTime) !== null && _m !== void 0 ? _m : (_t.waitingTime = defaults_1.DEFAULT_LAZY_LOAD.waitingTime);
64
- (_o = (_u = settings.lazyLoad).maxAmountToScroll) !== null && _o !== void 0 ? _o : (_u.maxAmountToScroll = defaults_1.DEFAULT_LAZY_LOAD.maxAmountToScroll);
62
+ (_l = (_t = settings.lazyLoad).scrollLength) !== null && _l !== void 0 ? _l : (_t.scrollLength = defaults_1.DEFAULT_LAZY_LOAD.scrollLength);
63
+ (_m = (_u = settings.lazyLoad).waitingTime) !== null && _m !== void 0 ? _m : (_u.waitingTime = defaults_1.DEFAULT_LAZY_LOAD.waitingTime);
64
+ (_o = (_v = settings.lazyLoad).maxAmountToScroll) !== null && _o !== void 0 ? _o : (_v.maxAmountToScroll = defaults_1.DEFAULT_LAZY_LOAD.maxAmountToScroll);
65
65
  }
66
66
  settings.stepIndex = stepIndex++;
67
67
  (_p = settings.waitBetweenStitches) !== null && _p !== void 0 ? _p : (settings.waitBetweenStitches = utils.types.isObject(settings.lazyLoad)
68
68
  ? settings.lazyLoad.waitingTime
69
69
  : defaults_1.DEFAULT_WAIT_BEFORE_CAPTURE);
70
70
  if (settings.mobileOptions) {
71
- (_q = (_v = settings.mobileOptions).keepNavigationBar) !== null && _q !== void 0 ? _q : (_v.keepNavigationBar = false);
71
+ (_q = (_w = settings.mobileOptions).keepNavigationBar) !== null && _q !== void 0 ? _q : (_w.keepNavigationBar = false);
72
72
  }
73
73
  if (settings.matchLevel === 'Content') {
74
74
  logger.console.log(chalk_1.default.yellow(lang.matchLevelContentDeprecatedWarning));
75
75
  }
76
+ if ((_r = settings.usedDeprecations) === null || _r === void 0 ? void 0 : _r.length) {
77
+ void eyes.core.logEvent({
78
+ settings: {
79
+ ...eyes.test.eyesServer,
80
+ level: 'Notice',
81
+ event: { type: 'SDK.deprecation', deprecations: settings.usedDeprecations },
82
+ },
83
+ });
84
+ }
76
85
  const driver = (0, driver_1.isDriver)(target, spec)
77
86
  ? await (0, driver_1.makeDriver)({ spec, driver: target, reset: target === defaultTarget, logger })
78
87
  : null;
@@ -34,8 +34,8 @@ async function extractDefaultEnvironments({ driver, settings, }) {
34
34
  try {
35
35
  const driverEnvironment = await driver.getEnvironment();
36
36
  const viewport = await driver.getViewport();
37
- const size = await driver.getViewportSize();
38
- environment.viewportSize = utils.geometry.scale(size, viewport.viewportScale);
37
+ // scale layout viewport by visualViewport.scale to get visible CSS viewport (avoids double-scaling spec drivers that already return CSS pixels)
38
+ environment.viewportSize = utils.geometry.scale(viewport.viewportSize, viewport.viewportScale);
39
39
  environment.environmentId = utils.general.guid();
40
40
  if (driverEnvironment.isEC)
41
41
  environment.ecSessionId = (_a = (await driver.getSessionId())) !== null && _a !== void 0 ? _a : undefined;
package/dist/ufg/check.js CHANGED
@@ -52,6 +52,7 @@ function makeCheck({ eyes, target: defaultTarget, environments: defaultEnvironme
52
52
  ...eyes.test.ufgServer,
53
53
  eyesServerUrl: eyes.test.eyesServer.eyesServerUrl,
54
54
  apiKey: eyes.test.eyesServer.apiKey,
55
+ httpVersion: eyes.test.eyesServer.httpVersion,
55
56
  },
56
57
  logger,
57
58
  });
@@ -16,6 +16,7 @@ async function createRenderTargetFromSnapshot({ ufgClient, snapshot, logger, url
16
16
  proxy: snapshot.account.eyesServer.proxy,
17
17
  autProxy: snapshot.settings.autProxy,
18
18
  skipRootHtmlResource: snapshot.settings.skipRootHtmlResource,
19
+ httpVersion: snapshot.settings.httpVersion,
19
20
  },
20
21
  logger,
21
22
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/core",
3
- "version": "4.62.0",
3
+ "version": "4.63.0",
4
4
  "homepage": "https://applitools.com",
5
5
  "bugs": {
6
6
  "url": "https://github.com/applitools/eyes.sdk.javascript1/issues"
@@ -61,18 +61,18 @@
61
61
  "setup:standalone": "sh -c 'yarn chromedriver --port=4444 --verbose &'"
62
62
  },
63
63
  "dependencies": {
64
- "@applitools/core-base": "1.33.0",
64
+ "@applitools/core-base": "1.34.0",
65
65
  "@applitools/dom-capture": "11.8.0",
66
- "@applitools/dom-snapshot": "4.17.0",
67
- "@applitools/driver": "1.26.0",
68
- "@applitools/ec-client": "1.12.28",
66
+ "@applitools/dom-snapshot": "4.17.1",
67
+ "@applitools/driver": "1.26.1",
68
+ "@applitools/ec-client": "1.12.29",
69
69
  "@applitools/logger": "2.2.11",
70
- "@applitools/nml-client": "1.11.26",
71
- "@applitools/req": "1.10.0",
72
- "@applitools/screenshoter": "3.12.19",
73
- "@applitools/snippets": "2.9.0",
70
+ "@applitools/nml-client": "1.11.27",
71
+ "@applitools/req": "1.10.1",
72
+ "@applitools/screenshoter": "3.12.20",
73
+ "@applitools/snippets": "2.9.1",
74
74
  "@applitools/socket": "1.3.12",
75
- "@applitools/ufg-client": "1.22.0",
75
+ "@applitools/ufg-client": "1.22.1",
76
76
  "@applitools/utils": "1.14.4",
77
77
  "abort-controller": "3.0.0",
78
78
  "chalk": "4.1.2",
@@ -82,23 +82,28 @@
82
82
  },
83
83
  "devDependencies": {
84
84
  "@applitools/bongo": "^5.10.0",
85
- "@applitools/spec-driver-playwright": "^1.9.0",
86
- "@applitools/spec-driver-puppeteer": "^1.8.0",
87
- "@applitools/spec-driver-selenium": "^1.8.0",
85
+ "@applitools/spec-driver-playwright": "^1.9.1",
86
+ "@applitools/spec-driver-puppeteer": "^1.8.1",
87
+ "@applitools/spec-driver-selenium": "^1.8.1",
88
88
  "@applitools/test-server": "^1.4.3",
89
89
  "@applitools/test-utils": "^1.5.17",
90
- "@applitools/tunnel-client": "^1.11.12",
90
+ "@applitools/tunnel-client": "^1.11.13",
91
+ "@swc-node/register": "^1.6.8",
91
92
  "@types/mocha": "^10.0.7",
92
93
  "@types/node": "^12.20.55",
93
94
  "@types/selenium-webdriver": "^4.1.2",
94
95
  "@types/semver": "^7.5.8",
96
+ "chai": "^4.2.0",
95
97
  "chromedriver": "^131.0.5",
96
98
  "crypto": "^1.0.1",
99
+ "express": "^4.10.6",
100
+ "mocha": "^11.7.5",
97
101
  "nock": "^13.3.2",
98
102
  "playwright": "1.47.0",
99
103
  "png-async": "^0.9.4",
100
104
  "puppeteer": "^24.11.1",
101
- "selenium-webdriver": "^4.15.0"
105
+ "selenium-webdriver": "^4.15.0",
106
+ "webdriver": "^5.23.0"
102
107
  },
103
108
  "engines": {
104
109
  "node": ">=12.13.0"
@@ -113,6 +118,7 @@
113
118
  "ws>bufferutil": false,
114
119
  "ws>utf-8-validate": false,
115
120
  "@applitools/core-base>@applitools/image>sharp": false,
121
+ "@swc-node/register>@swc/core": false,
116
122
  "selenium-webdriver>ws>bufferutil": false,
117
123
  "selenium-webdriver>ws>utf-8-validate": false
118
124
  }