@applitools/core 4.56.1 → 4.56.2

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,72 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.56.2](https://github.com/Applitools-Dev/sdk/compare/js/core@4.56.1...js/core@4.56.2) (2026-02-16)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * closing eyes without open | FLD-2814 ([#2916](https://github.com/Applitools-Dev/sdk/issues/2916)) ([d5425df](https://github.com/Applitools-Dev/sdk/commit/d5425dfedcc98bebd547d0d1ce5bcd10fa675c0d))
9
+ * tunnel client binary ([#3535](https://github.com/Applitools-Dev/sdk/issues/3535)) ([5c4752e](https://github.com/Applitools-Dev/sdk/commit/5c4752e3dd9cc42052d23793284dc6a0cd8e3b72))
10
+
11
+
12
+ ### Performance Improvements
13
+
14
+ * add timing logs to classic | FLD-4137 ([#3543](https://github.com/Applitools-Dev/sdk/issues/3543)) ([de2b0aa](https://github.com/Applitools-Dev/sdk/commit/de2b0aaf08d813f2c59e9552947c2f4fbc12da48))
15
+
16
+
17
+ ### Dependencies
18
+
19
+ * @applitools/logger bumped to 2.2.8
20
+ #### Bug Fixes
21
+
22
+ * use utils for environment variable retrieval in logger handlers ([#3551](https://github.com/Applitools-Dev/sdk/issues/3551)) ([caf97f3](https://github.com/Applitools-Dev/sdk/commit/caf97f34207bc3b8ee6ccda2855c27a99a262f8c))
23
+
24
+
25
+ #### Performance Improvements
26
+
27
+ * add timing logs to classic | FLD-4137 ([#3543](https://github.com/Applitools-Dev/sdk/issues/3543)) ([de2b0aa](https://github.com/Applitools-Dev/sdk/commit/de2b0aaf08d813f2c59e9552947c2f4fbc12da48))
28
+ * @applitools/tunnel-client bumped to 1.11.6
29
+ #### Bug Fixes
30
+
31
+ * tunnel client binary ([#3535](https://github.com/Applitools-Dev/sdk/issues/3535)) ([5c4752e](https://github.com/Applitools-Dev/sdk/commit/5c4752e3dd9cc42052d23793284dc6a0cd8e3b72))
32
+
33
+
34
+
35
+ * @applitools/dom-snapshot bumped to 4.15.8
36
+
37
+ * @applitools/socket bumped to 1.3.9
38
+
39
+ * @applitools/req bumped to 1.8.8
40
+
41
+ * @applitools/dom-capture bumped to 11.6.9
42
+
43
+ * @applitools/driver bumped to 1.25.1
44
+
45
+ * @applitools/spec-driver-webdriver bumped to 1.5.6
46
+
47
+ * @applitools/spec-driver-selenium bumped to 1.7.12
48
+
49
+ * @applitools/spec-driver-puppeteer bumped to 1.7.1
50
+
51
+ * @applitools/screenshoter bumped to 3.12.13
52
+
53
+ * @applitools/nml-client bumped to 1.11.16
54
+
55
+ * @applitools/ufg-client bumped to 1.19.1
56
+
57
+ * @applitools/ec-client bumped to 1.12.18
58
+
59
+ * @applitools/test-server bumped to 1.4.0
60
+ #### Features
61
+
62
+ * make eyes-browser truly browser-importable ([#3512](https://github.com/Applitools-Dev/sdk/issues/3512)) ([9574a2f](https://github.com/Applitools-Dev/sdk/commit/9574a2fa45ec80466dfe93744c8a736f40fb51c3))
63
+ * mcp server test results support and improvements to initial setup ([#3518](https://github.com/Applitools-Dev/sdk/issues/3518)) ([ef6c27b](https://github.com/Applitools-Dev/sdk/commit/ef6c27b9e35dc54fd588e19a4811631433e15dbb))
64
+
65
+
66
+
67
+ * @applitools/core-base bumped to 1.31.2
68
+
69
+
3
70
  ## [4.56.1](https://github.com/Applitools-Dev/sdk/compare/js/core@4.56.0...js/core@4.56.1) (2026-01-27)
4
71
 
5
72
 
@@ -5,8 +5,8 @@ const req_1 = require("@applitools/req");
5
5
  const { captureDomPoll, pollResult, captureDomPollForIE, pollResultForIE } = require('@applitools/dom-capture');
6
6
  async function takeDomCapture({ driver, settings, logger, }) {
7
7
  var _a;
8
- const environment = await driver.getEnvironment();
9
- const features = await driver.getFeatures();
8
+ const environment = await logger.withTime(driver.getEnvironment(), 'takeDomCapture.getEnvironment');
9
+ const features = await logger.withTime(driver.getFeatures(), 'takeDomCapture.getFeatures');
10
10
  const isLegacyBrowser = environment.isIE || environment.isEdgeLegacy;
11
11
  const arg = {
12
12
  chunkByteLength: (_a = settings === null || settings === void 0 ? void 0 : settings.chunkByteLength) !== null && _a !== void 0 ? _a : (Number(process.env.APPLITOOLS_SCRIPT_RESULT_MAX_BYTE_LENGTH) ||
@@ -21,8 +21,8 @@ async function takeDomCapture({ driver, settings, logger, }) {
21
21
  ? pollResult
22
22
  : `/* @applitools/dom-capture */return (${isLegacyBrowser ? pollResultForIE : pollResult}).apply(null, arguments);`,
23
23
  };
24
- const url = await driver.getUrl();
25
- const dom = await captureContextDom(driver.mainContext);
24
+ const url = await logger.withTime(driver.getUrl(), 'takeDomCapture.getUrl');
25
+ const dom = await logger.withTime(captureContextDom(driver.mainContext), 'takeDomCapture.captureContextDom');
26
26
  // TODO save debug DOM like we have for debug screenshots
27
27
  return dom;
28
28
  async function captureContextDom(context) {
@@ -29,25 +29,28 @@ const take_screenshot_1 = require("../../automation/utils/take-screenshot");
29
29
  const utils = __importStar(require("@applitools/utils"));
30
30
  async function takeScreenshots({ driver, settings, logger, }) {
31
31
  var _a, _b;
32
- const screenshot = await (0, take_screenshot_1.takeScreenshot)({ driver, settings, logger });
32
+ const screenshot = await logger.withTime((0, take_screenshot_1.takeScreenshot)({ driver, settings, logger }), 'takeScreenshot');
33
+ const name = await logger.withTime(driver.getTitle(), 'getTitle');
34
+ const source = await logger.withTime(driver.getUrl(), 'getUrl');
35
+ const image = await logger.withTime(screenshot.image.toPng(), 'toPng');
33
36
  const baseTarget = {
34
- name: await driver.getTitle(),
35
- source: await driver.getUrl(),
36
- image: await screenshot.image.toPng(),
37
+ name,
38
+ source,
39
+ image,
37
40
  locationInViewport: utils.geometry.location(screenshot.region),
38
41
  calculatedRegions: screenshot.calculatedRegions,
39
42
  isTransformed: true,
40
43
  };
41
- const environment = await driver.getEnvironment();
44
+ const environment = await logger.withTime(driver.getEnvironment(), 'getEnvironment');
42
45
  if (environment.isWeb && settings.domSettings) {
43
46
  if (settings.fully)
44
- await ((_a = screenshot.scrollingElement) === null || _a === void 0 ? void 0 : _a.setAttribute('data-applitools-scroll', 'true'));
47
+ await logger.withTime((_a = screenshot.scrollingElement) === null || _a === void 0 ? void 0 : _a.setAttribute('data-applitools-scroll', 'true'), 'setAttribute');
45
48
  else
46
- await ((_b = screenshot.element) === null || _b === void 0 ? void 0 : _b.setAttribute('data-applitools-scroll', 'true'));
47
- baseTarget.dom = await (0, take_dom_capture_1.takeDomCapture)({ driver, settings: settings.domSettings, logger }).catch(error => {
49
+ await logger.withTime((_b = screenshot.element) === null || _b === void 0 ? void 0 : _b.setAttribute('data-applitools-scroll', 'true'), 'setAttribute');
50
+ baseTarget.dom = await logger.withTime((0, take_dom_capture_1.takeDomCapture)({ driver, settings: settings.domSettings, logger }).catch(error => {
48
51
  logger.error('failed to capture DOM', error);
49
52
  return undefined;
50
- });
53
+ }), 'takeDomCapture');
51
54
  }
52
55
  if (settings.calculateView) {
53
56
  const scrollingElement = await driver.mainContext.getScrollingElement();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/core",
3
- "version": "4.56.1",
3
+ "version": "4.56.2",
4
4
  "homepage": "https://applitools.com",
5
5
  "bugs": {
6
6
  "url": "https://github.com/applitools/eyes.sdk.javascript1/issues"
@@ -48,9 +48,7 @@
48
48
  "lint": "run --top-level eslint '**/*.ts'",
49
49
  "build": "yarn build:dist",
50
50
  "build:dist": "run --top-level tsc --project ./tsconfig.build.json",
51
- "build:bin": "yarn build && sea",
52
- "build:bin:zip": "zip -j ./bin/core.zip $(find ./bin -type f -not -name '*.zip' -not -name '*.tar.gz' | xargs)",
53
- "build:bin:tgz": "tar -czf ./bin/core.tar.gz $(find ./bin -type f -not -name '*.zip' -not -name '*.tar.gz' | xargs)",
51
+ "build:bin": "bash ../../../scripts/build-binary-local.sh core",
54
52
  "test": "run --top-level mocha './test/**/*.spec.ts' --exclude './test/bin/**' --exclude './test/e2e/mocha-sync/**' --parallel --jobs ${MOCHA_JOBS:-15} --exit --require ./test/mocha-global-setup.js",
55
53
  "test:local": "MOCHA_OMIT_TAGS=sauce,browserstack run test",
56
54
  "test:sauce": "MOCHA_ONLY_TAGS=sauce,browserstack run test",
@@ -62,37 +60,20 @@
62
60
  "setup": "run --top-level browsers:setup && run --top-level xvfb:setup",
63
61
  "setup:standalone": "sh -c 'yarn chromedriver --port=4444 --verbose &'"
64
62
  },
65
- "sea": {
66
- "bin": "eyes-core",
67
- "certs": {
68
- "win": {
69
- "cert": "env.CODE_SIGNING_CERT_WIN",
70
- "pass": "env.CODE_SIGNING_PASS_WIN"
71
- }
72
- },
73
- "targets": {
74
- "node20.11-linux-x64-glibc-217": "./bin/core-linux",
75
- "node20-linux-x64-musl": "./bin/core-alpine",
76
- "node20-linux-arm64": "./bin/core-linux-arm64",
77
- "node20-darwin-x64": "./bin/core-macos",
78
- "node20-win-x64": "./bin/core-win.exe",
79
- "node20-darwin-arm64": "./bin/core-macos-arm64"
80
- }
81
- },
82
63
  "dependencies": {
83
- "@applitools/core-base": "1.31.1",
84
- "@applitools/dom-capture": "11.6.8",
85
- "@applitools/dom-snapshot": "4.15.7",
86
- "@applitools/driver": "1.25.0",
87
- "@applitools/ec-client": "1.12.17",
88
- "@applitools/logger": "2.2.7",
89
- "@applitools/nml-client": "1.11.15",
90
- "@applitools/req": "1.8.7",
91
- "@applitools/screenshoter": "3.12.12",
64
+ "@applitools/core-base": "1.31.2",
65
+ "@applitools/dom-capture": "11.6.9",
66
+ "@applitools/dom-snapshot": "4.15.8",
67
+ "@applitools/driver": "1.25.1",
68
+ "@applitools/ec-client": "1.12.18",
69
+ "@applitools/logger": "2.2.8",
70
+ "@applitools/nml-client": "1.11.16",
71
+ "@applitools/req": "1.8.8",
72
+ "@applitools/screenshoter": "3.12.13",
92
73
  "@applitools/snippets": "2.7.0",
93
- "@applitools/socket": "1.3.8",
94
- "@applitools/spec-driver-webdriver": "1.5.5",
95
- "@applitools/ufg-client": "1.19.0",
74
+ "@applitools/socket": "1.3.9",
75
+ "@applitools/spec-driver-webdriver": "1.5.6",
76
+ "@applitools/ufg-client": "1.19.1",
96
77
  "@applitools/utils": "1.14.1",
97
78
  "@types/ws": "8.5.5",
98
79
  "abort-controller": "3.0.0",
@@ -106,12 +87,11 @@
106
87
  },
107
88
  "devDependencies": {
108
89
  "@applitools/bongo": "^5.10.0",
109
- "@applitools/sea": "^1.0.0",
110
- "@applitools/spec-driver-puppeteer": "^1.7.0",
111
- "@applitools/spec-driver-selenium": "^1.7.11",
112
- "@applitools/test-server": "^1.3.5",
90
+ "@applitools/spec-driver-puppeteer": "^1.7.1",
91
+ "@applitools/spec-driver-selenium": "^1.7.12",
92
+ "@applitools/test-server": "^1.4.0",
113
93
  "@applitools/test-utils": "^1.5.17",
114
- "@applitools/tunnel-client": "^1.11.5",
94
+ "@applitools/tunnel-client": "^1.11.6",
115
95
  "@types/mocha": "^10.0.7",
116
96
  "@types/node": "^12.20.55",
117
97
  "@types/selenium-webdriver": "^4.1.2",
@@ -2,8 +2,9 @@ import type { Region } from '@applitools/utils';
2
2
  import type { ScreenshotSettings } from '../../classic/types';
3
3
  import { type Logger } from '@applitools/logger';
4
4
  import { type Driver, type Element, type ElementReference, type Selector, type SpecType } from '@applitools/driver';
5
+ import type { Image } from '@applitools/image';
5
6
  export type Screenshot<TSpec extends SpecType> = {
6
- image: any;
7
+ image: Image;
7
8
  region: Region;
8
9
  element: Element<TSpec>;
9
10
  scrollingElement: Element<TSpec>;