@applitools/core 4.58.1 → 4.59.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,162 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.59.0](https://github.com/Applitools-Dev/sdk/compare/js/core@4.58.2...js/core@4.59.0) (2026-03-29)
4
+
5
+
6
+ ### Features
7
+
8
+ * use branch name env vars for CI ([#3687](https://github.com/Applitools-Dev/sdk/issues/3687)) ([229609e](https://github.com/Applitools-Dev/sdk/commit/229609e83b2b2c55fdb26657085aa94f84e4af73))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
14
+ * remove NMG takeSnapshots functionality and all related dead code ([2e74475](https://github.com/Applitools-Dev/sdk/commit/2e74475934b1c94723f7381df0047f5dbddd2246)), closes [#3654](https://github.com/Applitools-Dev/sdk/issues/3654)
15
+ * remove spec parameter from makeTakeSnapshots calls to match function signature ([e47fb33](https://github.com/Applitools-Dev/sdk/commit/e47fb338d1e387c3b2a5898f008f1298f8118388))
16
+
17
+
18
+ ### Dependencies
19
+
20
+ * @applitools/utils bumped to 1.14.3
21
+ #### Bug Fixes
22
+
23
+ * exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
24
+ * @applitools/logger bumped to 2.2.10
25
+ #### Bug Fixes
26
+
27
+ * exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
28
+
29
+
30
+
31
+ * @applitools/dom-snapshot bumped to 4.16.2
32
+ #### Bug Fixes
33
+
34
+ * exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
35
+
36
+
37
+
38
+ * @applitools/socket bumped to 1.3.11
39
+ #### Bug Fixes
40
+
41
+ * exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
42
+
43
+
44
+
45
+ * @applitools/req bumped to 1.9.2
46
+ #### Bug Fixes
47
+
48
+ * exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
49
+
50
+
51
+
52
+ * @applitools/image bumped to 1.2.9
53
+ #### Bug Fixes
54
+
55
+ * exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
56
+
57
+
58
+
59
+ * @applitools/snippets bumped to 2.8.1
60
+ #### Bug Fixes
61
+
62
+ * exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
63
+ * @applitools/dom-capture bumped to 11.6.13
64
+ #### Bug Fixes
65
+
66
+ * exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
67
+
68
+
69
+
70
+ * @applitools/driver bumped to 1.25.4
71
+ #### Bug Fixes
72
+
73
+ * exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
74
+
75
+
76
+
77
+ * @applitools/spec-driver-webdriver bumped to 1.5.9
78
+ #### Bug Fixes
79
+
80
+ * exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
81
+
82
+
83
+
84
+ * @applitools/spec-driver-selenium bumped to 1.7.15
85
+ #### Bug Fixes
86
+
87
+ * exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
88
+
89
+
90
+
91
+ * @applitools/spec-driver-puppeteer bumped to 1.7.4
92
+ #### Bug Fixes
93
+
94
+ * exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
95
+
96
+
97
+
98
+ * @applitools/screenshoter bumped to 3.12.17
99
+ #### Bug Fixes
100
+
101
+ * exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
102
+
103
+
104
+
105
+ * @applitools/nml-client bumped to 1.11.22
106
+ #### Bug Fixes
107
+
108
+ * exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
109
+
110
+
111
+
112
+ * @applitools/tunnel-client bumped to 1.11.9
113
+ #### Bug Fixes
114
+
115
+ * exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
116
+ * tunnel client network test | AD-12582 ([#3699](https://github.com/Applitools-Dev/sdk/issues/3699)) ([f0b01f9](https://github.com/Applitools-Dev/sdk/commit/f0b01f9d7614a3e14d77a77dd76cb58b712d3a0a))
117
+
118
+
119
+
120
+ * @applitools/ufg-client bumped to 1.20.1
121
+ #### Bug Fixes
122
+
123
+ * exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
124
+ * strip logger from resources before passing to checkResources ([#3638](https://github.com/Applitools-Dev/sdk/issues/3638)) ([5491e9f](https://github.com/Applitools-Dev/sdk/commit/5491e9f0b2cf5eb1ca0e5c5a381407d3f5c24f3f))
125
+
126
+
127
+
128
+ * @applitools/core-base bumped to 1.32.4
129
+ #### Bug Fixes
130
+
131
+ * exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
132
+
133
+
134
+
135
+ * @applitools/ec-client bumped to 1.12.24
136
+ #### Bug Fixes
137
+
138
+ * exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
139
+
140
+
141
+
142
+ * @applitools/test-server bumped to 1.4.2
143
+ #### Bug Fixes
144
+
145
+ * exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
146
+
147
+
148
+
149
+
150
+ ## [4.58.2](https://github.com/Applitools-Dev/sdk/compare/js/core@4.58.1...js/core@4.58.2) (2026-03-16)
151
+
152
+
153
+ ### Dependencies
154
+
155
+ * @applitools/dom-snapshot bumped to 4.16.1
156
+ #### Bug Fixes
157
+
158
+ * capture slot assigned nodes in custom shadow roots | FLD-4226 ([#3666](https://github.com/Applitools-Dev/sdk/issues/3666)) ([a794617](https://github.com/Applitools-Dev/sdk/commit/a79461719b76a551838198a426f4b0b8b6d0df51))
159
+
3
160
  ## [4.58.1](https://github.com/Applitools-Dev/sdk/compare/js/core@4.58.0...js/core@4.58.1) (2026-03-16)
4
161
 
5
162
 
package/dist/core.js CHANGED
@@ -88,7 +88,7 @@ function makeCore({ spec, clients, base: defaultBase, concurrency = utils.genera
88
88
  openEyes: (0, open_eyes_1.makeOpenEyes)({ spec, clients, core, cores, environment, asyncCache, cwd, concurrency, logger }),
89
89
  closeBatch: (0, close_batch_1.makeCloseBatch)({ core, logger }),
90
90
  deleteTest: (0, delete_test_1.makeDeleteTest)({ core, logger }),
91
- takeSnapshots: spec && (0, take_snapshots_1.makeTakeSnapshots)({ spec, core: cores.ufg, logger }),
91
+ takeSnapshots: spec && (0, take_snapshots_1.makeTakeSnapshots)({ core: cores.ufg, logger }),
92
92
  };
93
93
  });
94
94
  }
@@ -58,7 +58,7 @@ function makeCheckAndClose({ eyes, target: defaultTarget, environments: defaultE
58
58
  let snapshots;
59
59
  let driver;
60
60
  if (spec && (0, driver_1.isDriver)(target, spec)) {
61
- const takeSnapshots = (0, take_snapshots_1.makeTakeSnapshots)({ core: eyes.core, spec, signal, logger });
61
+ const takeSnapshots = (0, take_snapshots_1.makeTakeSnapshots)({ core: eyes.core, signal, logger });
62
62
  driver = await (0, driver_1.makeDriver)({ spec, driver: target, logger });
63
63
  snapshots = await takeSnapshots({
64
64
  driver,
package/dist/ufg/check.js CHANGED
@@ -58,7 +58,7 @@ function makeCheck({ eyes, target: defaultTarget, environments: defaultEnvironme
58
58
  let snapshots;
59
59
  let driver;
60
60
  if (spec && (0, driver_1.isDriver)(target, spec)) {
61
- const takeSnapshots = (0, take_snapshots_1.makeTakeSnapshots)({ core: eyes.core, spec, signal, logger });
61
+ const takeSnapshots = (0, take_snapshots_1.makeTakeSnapshots)({ core: eyes.core, signal, logger });
62
62
  driver = await (0, driver_1.makeDriver)({ spec, driver: target, logger });
63
63
  snapshots = await takeSnapshots({
64
64
  driver,
package/dist/ufg/core.js CHANGED
@@ -47,7 +47,7 @@ function makeCore({ spec, clients, base: defaultBase, asyncCache, offlineLocatio
47
47
  base: base,
48
48
  getViewportSize: spec && (0, get_viewport_size_1.makeGetViewportSize)({ spec, logger }),
49
49
  setViewportSize: spec && (0, set_viewport_size_1.makeSetViewportSize)({ spec, logger }),
50
- takeSnapshots: spec && (0, take_snapshots_1.makeTakeSnapshots)({ spec, core, fetchConcurrency, logger }),
50
+ takeSnapshots: spec && (0, take_snapshots_1.makeTakeSnapshots)({ core, fetchConcurrency, logger }),
51
51
  locate: (0, locate_1.makeLocate)({ spec, core, logger }),
52
52
  locateText: (0, locate_text_1.makeLocateText)({ spec, core, logger }),
53
53
  extractText: (0, extract_text_1.makeExtractText)({ spec, core, logger }),
@@ -1,13 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.makeTakeSnapshots = void 0;
4
- const driver_1 = require("@applitools/driver");
5
4
  const take_dom_snapshots_1 = require("./utils/take-dom-snapshots");
6
5
  const to_safe_check_settings_1 = require("./utils/to-safe-check-settings");
7
6
  const to_generated_selectors_1 = require("./utils/to-generated-selectors");
8
7
  const abort_error_1 = require("../errors/abort-error");
9
8
  const filterStaleElements_1 = require("./utils/filterStaleElements");
10
- function makeTakeSnapshots({ core, spec, fetchConcurrency, signal, logger: mainLogger, }) {
9
+ function makeTakeSnapshots({ core, fetchConcurrency, signal, logger: mainLogger, }) {
11
10
  const MAX_LOGGED_ERRORS_PER_SNAPSHOT = 10;
12
11
  return async function takeSnapshots({ driver, settings = {}, account, logger = mainLogger, }) {
13
12
  var _a, _b;
@@ -27,9 +26,6 @@ function makeTakeSnapshots({ core, spec, fetchConcurrency, signal, logger: mainL
27
26
  const { elementReferencesToMark, getGeneratedSelectors } = (0, to_generated_selectors_1.toGeneratedSelectors)({
28
27
  elementReferences,
29
28
  logger,
30
- logDeprecations,
31
- // dead code - `transformElementReference` was used for NMG but it's not longer used anywhere
32
- transformElementReference: elementReference => { var _a; return ((0, driver_1.isSelector)(elementReference) && ((_a = spec === null || spec === void 0 ? void 0 : spec.toSimpleCommonSelector) === null || _a === void 0 ? void 0 : _a.call(spec, elementReference))) || undefined; },
33
29
  });
34
30
  let snapshots;
35
31
  if (environment.isWeb) {
@@ -79,21 +75,7 @@ function makeTakeSnapshots({ core, spec, fetchConcurrency, signal, logger: mainL
79
75
  }
80
76
  }
81
77
  else {
82
- // dead code - used for NMG
83
- logDeprecations('takeSnapshots: taking native snapshots is no longer supported. How did you reach this message? (dead code)');
84
- const nmlClient = await core.getNMLClient({
85
- driver,
86
- settings: { ...account.eyesServer, supportedEnvironmentsUrl: account.supportedEnvironmentsUrl },
87
- logger,
88
- });
89
- snapshots = await nmlClient.takeSnapshots({
90
- settings: {
91
- ...account.eyesServer,
92
- waitBeforeCapture: settings.waitBeforeCapture,
93
- environments: uniqueEnvironments,
94
- },
95
- logger,
96
- });
78
+ throw new Error('Taking native (non-web) snapshots via VisualGridRunner is no longer supported. Please use ClassicRunner for native apps.');
97
79
  }
98
80
  await currentContext.focus();
99
81
  const url = await driver.getUrl();
@@ -129,19 +111,6 @@ function makeTakeSnapshots({ core, spec, fetchConcurrency, signal, logger: mainL
129
111
  title,
130
112
  userAgent,
131
113
  }));
132
- function logDeprecations(...args) {
133
- core.logEvent({
134
- settings: {
135
- level: 'Error',
136
- event: {
137
- type: 'SDK.unreachableCodeReached',
138
- message: args.join(' '),
139
- },
140
- ...account.eyesServer,
141
- },
142
- logger,
143
- });
144
- }
145
114
  };
146
115
  }
147
116
  exports.makeTakeSnapshots = makeTakeSnapshots;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.toGeneratedSelectors = void 0;
4
- function toGeneratedSelectors({ elementReferences, logger, transformElementReference, logDeprecations, }) {
4
+ function toGeneratedSelectors({ elementReferences, logger, }) {
5
5
  var _a, _b, _c;
6
6
  const elementReferencesToMark = [
7
7
  (_a = elementReferences.target) !== null && _a !== void 0 ? _a : [],
@@ -10,7 +10,7 @@ function toGeneratedSelectors({ elementReferences, logger, transformElementRefer
10
10
  ].flat();
11
11
  return { elementReferencesToMark, getGeneratedSelectors };
12
12
  function getGeneratedSelectors(generatedSelectors) {
13
- var _a, _b, _c;
13
+ var _a, _b;
14
14
  let target = undefined;
15
15
  let scrolling = undefined;
16
16
  let calculate = [];
@@ -51,17 +51,6 @@ function toGeneratedSelectors({ elementReferences, logger, transformElementRefer
51
51
  };
52
52
  });
53
53
  }
54
- else if (target || scrolling || calculate.length) {
55
- // the entire else statement should be a dead code that was used for NMG, will be removed later
56
- logDeprecations('toGeneratedSelectors: `transformElementReference` was unexpectedly called.');
57
- target = elementReferences.target && transformElementReference(elementReferences.target);
58
- scrolling = elementReferences.scrolling && transformElementReference(elementReferences.scrolling);
59
- calculate = ((_c = elementReferences.calculate) !== null && _c !== void 0 ? _c : []).map(elementReference => {
60
- var _a;
61
- const selector = (_a = transformElementReference(elementReference)) !== null && _a !== void 0 ? _a : null;
62
- return { originalSelector: selector, safeSelector: selector };
63
- });
64
- }
65
54
  return { target, scrolling, calculate };
66
55
  }
67
56
  }
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
26
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.extractBranchLookupFallbackList = exports.isISODate = exports.extractBranchingTimestamp = exports.extractBuildIdFromCI = exports.extractGitRepo = exports.extractGitBranch = exports.extractLatestCommitInfo = exports.getPrimaryRemoteName = exports.cacheKey = void 0;
29
+ exports.extractBranchLookupFallbackList = exports.isISODate = exports.extractBranchingTimestamp = exports.extractBuildIdFromCI = exports.extractCIBranchName = exports.extractGitRepo = exports.extractGitBranch = exports.extractLatestCommitInfo = exports.getPrimaryRemoteName = exports.cacheKey = void 0;
30
30
  const utils = __importStar(require("@applitools/utils"));
31
31
  const fs_1 = __importDefault(require("fs"));
32
32
  const path_1 = __importDefault(require("path"));
@@ -89,20 +89,24 @@ exports.extractLatestCommitInfo = utils.general.cachify(async function ({ execOp
89
89
  }
90
90
  }, () => exports.cacheKey);
91
91
  exports.extractGitBranch = utils.general.cachify(async function ({ execOptions, logger = (0, logger_1.makeLogger)() }) {
92
- if (process.env.GITHUB_HEAD_REF) {
93
- return process.env.GITHUB_HEAD_REF;
94
- }
95
- if (process.env.GITHUB_REF) {
96
- return process.env.GITHUB_REF.split('/').splice(2).join('/');
92
+ // 1. Try CI environment variables first (fast, no subprocess, handles detached HEAD in CI)
93
+ const ciBranch = extractCIBranchName();
94
+ if (ciBranch) {
95
+ logger.log(`Extracted branch name from CI environment: "${ciBranch}"`);
96
+ return ciBranch;
97
97
  }
98
+ // 2. Fall back to git command (works when on an actual branch locally)
98
99
  const result = await executeWithLog('git branch --show-current', { execOptions, logger });
99
100
  if (result.stderr) {
100
101
  logger.log(`Error during extracting current branch from git`, result.stderr);
101
102
  }
102
103
  else {
103
104
  const branch = result.stdout.trim();
104
- logger.log(`Extracted current git branch: "${branch}"`);
105
- return branch;
105
+ if (branch) {
106
+ logger.log(`Extracted current git branch: "${branch}"`);
107
+ return branch;
108
+ }
109
+ logger.log('git branch --show-current returned empty (detached HEAD), no branch name available');
106
110
  }
107
111
  }, args => { var _a, _b, _c; return ({ cwd: (_b = (_a = args[0]) === null || _a === void 0 ? void 0 : _a.execOptions) === null || _b === void 0 ? void 0 : _b.cwd, ignoreGitBranching: (_c = args[0]) === null || _c === void 0 ? void 0 : _c.ignoreGitBranching }); });
108
112
  exports.extractGitRepo = utils.general.cachify(async function ({ execOptions, logger = (0, logger_1.makeLogger)() }) {
@@ -139,6 +143,17 @@ exports.extractGitRepo = utils.general.cachify(async function ({ execOptions, lo
139
143
  }
140
144
  }
141
145
  }, () => exports.cacheKey);
146
+ function extractCIBranchName() {
147
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
148
+ return ((_j = (_h = (_g = (_f = (_e = (_d = (_c = (_b = (_a = (process.env.GITHUB_HEAD_REF || // github (pull requests)
149
+ extractGithubRefBranch() || // github (push events)
150
+ process.env.CI_COMMIT_REF_NAME)) !== null && _a !== void 0 ? _a : process.env.CIRCLE_BRANCH) !== null && _b !== void 0 ? _b : process.env.BRANCH_NAME) !== null && _c !== void 0 ? _c : process.env.GIT_BRANCH) !== null && _d !== void 0 ? _d : process.env.BUILD_SOURCEBRANCHNAME) !== null && _e !== void 0 ? _e : process.env.BITBUCKET_BRANCH) !== null && _f !== void 0 ? _f : process.env.TRAVIS_BRANCH) !== null && _g !== void 0 ? _g : process.env.BUILDKITE_BRANCH) !== null && _h !== void 0 ? _h : process.env.CODEBUILD_WEBHOOK_HEAD_REF) !== null && _j !== void 0 ? _j : undefined);
151
+ }
152
+ exports.extractCIBranchName = extractCIBranchName;
153
+ function extractGithubRefBranch() {
154
+ var _a;
155
+ return (_a = process.env.GITHUB_REF) === null || _a === void 0 ? void 0 : _a.split('/').splice(2).join('/');
156
+ }
142
157
  async function extractBuildIdFromCI() {
143
158
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
144
159
  return ((_k = (_j = (_h = (_g = (_f = (_e = (_d = (_c = (_b = (_a = process.env.GITHUB_RUN_ID) !== null && _a !== void 0 ? _a : process.env.CI_JOB_ID) !== null && _b !== void 0 ? _b : process.env.CIRCLE_BUILD_NUM) !== null && _c !== void 0 ? _c : process.env.BUILD_BUILDID) !== null && _d !== void 0 ? _d : process.env.BITBUCKET_BUILD_NUMBER) !== null && _e !== void 0 ? _e : process.env.CODEBUILD_BUILD_ID) !== null && _f !== void 0 ? _f : process.env.BUILD_ID) !== null && _g !== void 0 ? _g : process.env.BUILD_NUMBER) !== null && _h !== void 0 ? _h : process.env.TRAVIS_BUILD_ID) !== null && _j !== void 0 ? _j : process.env.BUILDKITE_BUILD_ID) !== null && _k !== void 0 ? _k : process.env.BAMBOO // TODO: Bamboo
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/core",
3
- "version": "4.58.1",
3
+ "version": "4.59.0",
4
4
  "homepage": "https://applitools.com",
5
5
  "bugs": {
6
6
  "url": "https://github.com/applitools/eyes.sdk.javascript1/issues"
@@ -60,19 +60,19 @@
60
60
  "setup:standalone": "sh -c 'yarn chromedriver --port=4444 --verbose &'"
61
61
  },
62
62
  "dependencies": {
63
- "@applitools/core-base": "1.32.3",
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.23",
68
- "@applitools/logger": "2.2.9",
69
- "@applitools/nml-client": "1.11.21",
70
- "@applitools/req": "1.9.1",
71
- "@applitools/screenshoter": "3.12.16",
72
- "@applitools/snippets": "2.8.0",
73
- "@applitools/socket": "1.3.10",
74
- "@applitools/ufg-client": "1.20.0",
75
- "@applitools/utils": "1.14.2",
63
+ "@applitools/core-base": "1.32.4",
64
+ "@applitools/dom-capture": "11.6.13",
65
+ "@applitools/dom-snapshot": "4.16.2",
66
+ "@applitools/driver": "1.25.4",
67
+ "@applitools/ec-client": "1.12.24",
68
+ "@applitools/logger": "2.2.10",
69
+ "@applitools/nml-client": "1.11.22",
70
+ "@applitools/req": "1.9.2",
71
+ "@applitools/screenshoter": "3.12.17",
72
+ "@applitools/snippets": "2.8.1",
73
+ "@applitools/socket": "1.3.11",
74
+ "@applitools/ufg-client": "1.20.1",
75
+ "@applitools/utils": "1.14.3",
76
76
  "abort-controller": "3.0.0",
77
77
  "chalk": "4.1.2",
78
78
  "node-fetch": "2.6.7",
@@ -81,11 +81,11 @@
81
81
  },
82
82
  "devDependencies": {
83
83
  "@applitools/bongo": "^5.10.0",
84
- "@applitools/spec-driver-puppeteer": "^1.7.3",
85
- "@applitools/spec-driver-selenium": "^1.7.14",
86
- "@applitools/test-server": "^1.4.1",
84
+ "@applitools/spec-driver-puppeteer": "^1.7.4",
85
+ "@applitools/spec-driver-selenium": "^1.7.15",
86
+ "@applitools/test-server": "^1.4.2",
87
87
  "@applitools/test-utils": "^1.5.17",
88
- "@applitools/tunnel-client": "^1.11.8",
88
+ "@applitools/tunnel-client": "^1.11.9",
89
89
  "@types/mocha": "^10.0.7",
90
90
  "@types/node": "^12.20.55",
91
91
  "@types/selenium-webdriver": "^4.1.2",
@@ -1,15 +1,14 @@
1
1
  import type { Core, SnapshotSettings, Account, Snapshot } from './types';
2
2
  import { type AbortSignal } from 'abort-controller';
3
3
  import { type Logger } from '@applitools/logger';
4
- import { type SpecType, type SpecDriver, type Driver } from '@applitools/driver';
4
+ import { type SpecType, type Driver } from '@applitools/driver';
5
5
  type Options<TSpec extends SpecType> = {
6
6
  core: Core<TSpec>;
7
- spec: SpecDriver<TSpec>;
8
7
  fetchConcurrency?: number;
9
8
  signal?: AbortSignal;
10
9
  logger: Logger;
11
10
  };
12
- export declare function makeTakeSnapshots<TSpec extends SpecType>({ core, spec, fetchConcurrency, signal, logger: mainLogger, }: Options<TSpec>): ({ driver, settings, account, logger, }: {
11
+ export declare function makeTakeSnapshots<TSpec extends SpecType>({ core, fetchConcurrency, signal, logger: mainLogger, }: Options<TSpec>): ({ driver, settings, account, logger, }: {
13
12
  driver: Driver<TSpec>;
14
13
  settings?: SnapshotSettings<TSpec> | undefined;
15
14
  account: Account;
@@ -1,15 +1,13 @@
1
1
  import { type SpecType, type ElementReference } from '@applitools/driver';
2
2
  import type { Logger } from '@applitools/logger';
3
3
  import { type Selector as UFGSelector } from '@applitools/ufg-client';
4
- export declare function toGeneratedSelectors<TSpec extends SpecType>({ elementReferences, logger, transformElementReference, logDeprecations, }: {
4
+ export declare function toGeneratedSelectors<TSpec extends SpecType>({ elementReferences, logger, }: {
5
5
  elementReferences: {
6
6
  target?: ElementReference<TSpec>;
7
7
  scrolling?: ElementReference<TSpec>;
8
8
  calculate?: ElementReference<TSpec>[];
9
9
  };
10
- transformElementReference: (elementReference: ElementReference<TSpec>) => UFGSelector | undefined;
11
10
  logger: Logger;
12
- logDeprecations: (...args: string[]) => void;
13
11
  }): {
14
12
  elementReferencesToMark: (string | TSpec["element"] | TSpec["secondary"]["element"] | TSpec["selector"] | TSpec["secondary"]["selector"] | {
15
13
  selector: string | TSpec["selector"] | TSpec["secondary"]["selector"];
@@ -66,6 +66,7 @@ export declare const extractGitRepo: (({ execOptions, logger }: Options) => Prom
66
66
  clearCache(): void;
67
67
  TTL?: number | undefined;
68
68
  };
69
+ export declare function extractCIBranchName(): string | undefined;
69
70
  export declare function extractBuildIdFromCI(): Promise<string | undefined>;
70
71
  export declare const extractBranchingTimestamp: (({ branchName, parentBranchName, execOptions, logger, }: ExtractGitBranchingTimestampOptions) => Promise<string | undefined>) & {
71
72
  getCachedValues(): Promise<string | undefined>[];