@applitools/core 4.57.2 → 4.58.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,64 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.58.0](https://github.com/Applitools-Dev/sdk/compare/js/core@4.57.2...js/core@4.58.0) (2026-03-12)
4
+
5
+
6
+ ### Features
7
+
8
+ * support coded regions within iframes and shadow DOM | FLD-4019 ([#3542](https://github.com/Applitools-Dev/sdk/issues/3542)) ([7c5639a](https://github.com/Applitools-Dev/sdk/commit/7c5639a8a4c135bc9331d9ff93f1824906549568))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * enhance NML error messages for better user-facing diagnostics | FLD-4279 ([#3622](https://github.com/Applitools-Dev/sdk/issues/3622)) ([2aef039](https://github.com/Applitools-Dev/sdk/commit/2aef0395875fd0ff0b4f657d769bda23d66660ad))
14
+ * logEventBatch leaks to console | FLD-4175 ([#3608](https://github.com/Applitools-Dev/sdk/issues/3608)) ([f749d28](https://github.com/Applitools-Dev/sdk/commit/f749d287bf8a8e91ab819c04b13f8246f3d3a244))
15
+
16
+
17
+ ### Dependencies
18
+
19
+ * @applitools/dom-snapshot bumped to 4.16.0
20
+ #### Features
21
+
22
+ * support coded regions within iframes and shadow DOM | FLD-4019 ([#3542](https://github.com/Applitools-Dev/sdk/issues/3542)) ([7c5639a](https://github.com/Applitools-Dev/sdk/commit/7c5639a8a4c135bc9331d9ff93f1824906549568))
23
+
24
+
25
+
26
+ * @applitools/snippets bumped to 2.8.0
27
+ #### Features
28
+
29
+ * support coded regions within iframes and shadow DOM | FLD-4019 ([#3542](https://github.com/Applitools-Dev/sdk/issues/3542)) ([7c5639a](https://github.com/Applitools-Dev/sdk/commit/7c5639a8a4c135bc9331d9ff93f1824906549568))
30
+ * @applitools/dom-capture bumped to 11.6.12
31
+ #### Bug Fixes
32
+
33
+ * prevent [object Object] in DOM capture for CORS iframes | FLD-4181 ([#3620](https://github.com/Applitools-Dev/sdk/issues/3620)) ([afe91e7](https://github.com/Applitools-Dev/sdk/commit/afe91e7b26e9ad5d37d2098b17ecf139794075ef))
34
+ * @applitools/driver bumped to 1.25.3
35
+ #### Bug Fixes
36
+
37
+ * enhance NML error messages for better user-facing diagnostics | FLD-4279 ([#3622](https://github.com/Applitools-Dev/sdk/issues/3622)) ([2aef039](https://github.com/Applitools-Dev/sdk/commit/2aef0395875fd0ff0b4f657d769bda23d66660ad))
38
+
39
+
40
+
41
+ * @applitools/ufg-client bumped to 1.20.0
42
+ #### Features
43
+
44
+ * support coded regions within iframes and shadow DOM | FLD-4019 ([#3542](https://github.com/Applitools-Dev/sdk/issues/3542)) ([7c5639a](https://github.com/Applitools-Dev/sdk/commit/7c5639a8a4c135bc9331d9ff93f1824906549568))
45
+ * @applitools/spec-driver-webdriver bumped to 1.5.8
46
+
47
+ * @applitools/spec-driver-selenium bumped to 1.7.14
48
+
49
+ * @applitools/spec-driver-puppeteer bumped to 1.7.3
50
+
51
+ * @applitools/screenshoter bumped to 3.12.16
52
+
53
+ * @applitools/nml-client bumped to 1.11.20
54
+
55
+ * @applitools/core-base bumped to 1.32.2
56
+ #### Bug Fixes
57
+
58
+ * logEventBatch leaks to console | FLD-4175 ([#3608](https://github.com/Applitools-Dev/sdk/issues/3608)) ([f749d28](https://github.com/Applitools-Dev/sdk/commit/f749d287bf8a8e91ab819c04b13f8246f3d3a244))
59
+ * @applitools/ec-client bumped to 1.12.22
60
+
61
+
3
62
  ## [4.57.2](https://github.com/Applitools-Dev/sdk/compare/js/core@4.57.1...js/core@4.57.2) (2026-03-08)
4
63
 
5
64
 
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.makeGetNMLClient = exports.clearNMLClients = void 0;
4
4
  const nml_client_1 = require("@applitools/nml-client");
5
+ const utils_1 = require("@applitools/utils");
5
6
  const clients = new Map();
6
7
  // for tests
7
8
  function clearNMLClients() {
@@ -27,6 +28,10 @@ function makeGetNMLClient({ client, logger: mainLogger }) {
27
28
  const brokerUrl = await driver.extractBrokerUrl();
28
29
  if (!brokerUrl)
29
30
  throw new Error('Unable to extract broker url from the device');
31
+ if (utils_1.types.has(brokerUrl, 'error')) {
32
+ logger.error('Broker url extraction has failed with error', brokerUrl.error);
33
+ throw new Error(brokerUrl.error);
34
+ }
30
35
  const nmlClient = (0, nml_client_1.makeNMLClient)({ settings: { brokerUrl, ...settings }, logger });
31
36
  clients.set(cacheKey, nmlClient);
32
37
  return nmlClient;
@@ -203,6 +203,7 @@ function makeCheckAndClose({ eyes, target: defaultTarget, environments: defaultE
203
203
  },
204
204
  ...eyes.test.eyesServer,
205
205
  },
206
+ logger: environmentLogger,
206
207
  });
207
208
  }
208
209
  await baseEyes.checkAndClose({
@@ -138,7 +138,7 @@ function makeCheck({ eyes, target: defaultTarget, environments: defaultEnvironme
138
138
  }
139
139
  }
140
140
  exports.makeCheck = makeCheck;
141
- async function logAmmutabilityIfNeeded({ eyes, baseEyes, settings, }) {
141
+ async function logAmmutabilityIfNeeded({ eyes, baseEyes, settings, logger, }) {
142
142
  var _a;
143
143
  if (settings.assumesMutability) {
144
144
  await eyes.core.logEvent({
@@ -163,6 +163,7 @@ async function logAmmutabilityIfNeeded({ eyes, baseEyes, settings, }) {
163
163
  },
164
164
  ...eyes.test.eyesServer,
165
165
  },
166
+ logger,
166
167
  });
167
168
  settings.assumesMutability = false; // prevent from logging this message again for the same check
168
169
  }
@@ -180,6 +181,7 @@ async function checkEnvironment({ eyes, driver, target, environment, signal, log
180
181
  eyes,
181
182
  baseEyes,
182
183
  settings,
184
+ logger: environmentLogger,
183
185
  });
184
186
  try {
185
187
  if (signal === null || signal === void 0 ? void 0 : signal.aborted) {
@@ -172,6 +172,7 @@ function makeCheckAndClose({ eyes, target: defaultTarget, environments: defaultE
172
172
  },
173
173
  ...eyes.test.eyesServer,
174
174
  },
175
+ logger: environmentLogger,
175
176
  });
176
177
  }
177
178
  await baseEyes.checkAndClose({
package/dist/ufg/check.js CHANGED
@@ -172,6 +172,7 @@ function makeCheck({ eyes, target: defaultTarget, environments: defaultEnvironme
172
172
  },
173
173
  ...eyes.test.eyesServer,
174
174
  },
175
+ logger: environmentLogger,
175
176
  });
176
177
  }
177
178
  try {
@@ -113,6 +113,7 @@ function makeTakeSnapshots({ core, spec, fetchConcurrency, signal, logger: mainL
113
113
  },
114
114
  ...account.eyesServer,
115
115
  },
116
+ logger,
116
117
  });
117
118
  }
118
119
  }
@@ -138,6 +139,7 @@ function makeTakeSnapshots({ core, spec, fetchConcurrency, signal, logger: mainL
138
139
  },
139
140
  ...account.eyesServer,
140
141
  },
142
+ logger,
141
143
  });
142
144
  }
143
145
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/core",
3
- "version": "4.57.2",
3
+ "version": "4.58.0",
4
4
  "homepage": "https://applitools.com",
5
5
  "bugs": {
6
6
  "url": "https://github.com/applitools/eyes.sdk.javascript1/issues"
@@ -47,12 +47,12 @@
47
47
  "lint": "run --top-level eslint '**/*.ts'",
48
48
  "build": "yarn build:dist",
49
49
  "build:dist": "run --top-level tsc --project ./tsconfig.build.json",
50
- "test": "run --top-level mocha './test/**/*.spec.ts' --exclude './test/e2e/mocha-sync/**' --parallel --jobs ${MOCHA_JOBS:-15} --exit --require ./test/mocha-global-setup.js",
50
+ "test": "run --top-level mocha './test/**/*.spec.ts' --exclude 'test/e2e/mocha-sync/**' --parallel --jobs ${MOCHA_JOBS:-15} --exit --require ./test/mocha-global-setup.js",
51
51
  "test:local": "MOCHA_OMIT_TAGS=sauce,browserstack run test",
52
52
  "test:sauce": "MOCHA_ONLY_TAGS=sauce,browserstack run test",
53
53
  "test:bin": "MOCHA_GROUP=bin run --top-level mocha './test/bin/**/*.spec.ts' --parallel --jobs ${MOCHA_JOBS:-15} --require ./test/mocha-global-setup.js",
54
- "test:e2e": "MOCHA_OMIT_TAGS=http2 MOCHA_GROUP=e2e run --top-level mocha './test/e2e/**/*.spec.ts' --exclude './test/e2e/mocha-sync/**' --parallel --jobs ${MOCHA_JOBS:-15} --exit --require ./test/mocha-global-setup.js",
55
- "test:e2e:http2": "APPLITOOLS_HTTP_VERSION=2 MOCHA_OMIT_TAGS=http1,sauce,browserstack MOCHA_GROUP=e2e run --top-level mocha './test/e2e/**/*.spec.ts' --exclude './test/e2e/mocha-sync/**' --parallel --jobs ${MOCHA_JOBS:-15} --exit --require ./test/mocha-global-setup.js",
54
+ "test:e2e": "MOCHA_OMIT_TAGS=http2 MOCHA_GROUP=e2e run --top-level mocha './test/e2e/**/*.spec.ts' --exclude 'test/e2e/mocha-sync/**' --parallel --jobs ${MOCHA_JOBS:-15} --exit --require ./test/mocha-global-setup.js",
55
+ "test:e2e:http2": "APPLITOOLS_HTTP_VERSION=2 MOCHA_OMIT_TAGS=http1,sauce,browserstack MOCHA_GROUP=e2e run --top-level mocha './test/e2e/**/*.spec.ts' --exclude 'test/e2e/mocha-sync/**' --parallel --jobs ${MOCHA_JOBS:-15} --exit --require ./test/mocha-global-setup.js",
56
56
  "test:it": "MOCHA_GROUP=it run --top-level mocha './test/it/**/*.spec.ts' --require ./test/mocha-global-setup.js",
57
57
  "test:e2e:sync": "MOCHA_GROUP=e2e SYNC=true run --top-level mocha './test/e2e/mocha-sync/**/*.spec.ts' --exit --require ./test/mocha-global-setup.js",
58
58
  "test:unit": "MOCHA_GROUP=unit run --top-level mocha './test/unit/**/*.spec.ts' --require ./test/mocha-global-setup.js",
@@ -60,18 +60,18 @@
60
60
  "setup:standalone": "sh -c 'yarn chromedriver --port=4444 --verbose &'"
61
61
  },
62
62
  "dependencies": {
63
- "@applitools/core-base": "1.32.1",
64
- "@applitools/dom-capture": "11.6.11",
65
- "@applitools/dom-snapshot": "4.15.11",
66
- "@applitools/driver": "1.25.2",
67
- "@applitools/ec-client": "1.12.21",
63
+ "@applitools/core-base": "1.32.2",
64
+ "@applitools/dom-capture": "11.6.12",
65
+ "@applitools/dom-snapshot": "4.16.0",
66
+ "@applitools/driver": "1.25.3",
67
+ "@applitools/ec-client": "1.12.22",
68
68
  "@applitools/logger": "2.2.9",
69
- "@applitools/nml-client": "1.11.19",
69
+ "@applitools/nml-client": "1.11.20",
70
70
  "@applitools/req": "1.9.1",
71
- "@applitools/screenshoter": "3.12.15",
72
- "@applitools/snippets": "2.7.1",
71
+ "@applitools/screenshoter": "3.12.16",
72
+ "@applitools/snippets": "2.8.0",
73
73
  "@applitools/socket": "1.3.10",
74
- "@applitools/ufg-client": "1.19.4",
74
+ "@applitools/ufg-client": "1.20.0",
75
75
  "@applitools/utils": "1.14.2",
76
76
  "abort-controller": "3.0.0",
77
77
  "chalk": "4.1.2",
@@ -81,8 +81,8 @@
81
81
  },
82
82
  "devDependencies": {
83
83
  "@applitools/bongo": "^5.10.0",
84
- "@applitools/spec-driver-puppeteer": "^1.7.2",
85
- "@applitools/spec-driver-selenium": "^1.7.13",
84
+ "@applitools/spec-driver-puppeteer": "^1.7.3",
85
+ "@applitools/spec-driver-selenium": "^1.7.14",
86
86
  "@applitools/test-server": "^1.4.1",
87
87
  "@applitools/test-utils": "^1.5.17",
88
88
  "@applitools/tunnel-client": "^1.11.8",
@@ -3,5 +3,8 @@ export declare function generateSafeSelectors<TSpec extends SpecType>({ context,
3
3
  context: Context<TSpec>;
4
4
  elementReferences?: ElementReference<TSpec>[];
5
5
  }): Promise<{
6
- generatedSelectors: string[][][];
6
+ generatedSelectors: {
7
+ selector: string;
8
+ kind: string;
9
+ }[][][];
7
10
  }>;