@applitools/core 4.39.3 → 4.40.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.40.0](https://github.com/Applitools-Dev/sdk/compare/js/core@4.39.3...js/core@4.40.0) (2025-06-15)
4
+
5
+
6
+ ### Features
7
+
8
+ * update build script to include individual zip creation ([#3008](https://github.com/Applitools-Dev/sdk/issues/3008)) ([46a0cfc](https://github.com/Applitools-Dev/sdk/commit/46a0cfcc472ab69384560095d90a7fa58b4b9186))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * css media query group conditions | FLD-3151 ([#3023](https://github.com/Applitools-Dev/sdk/issues/3023)) ([56ec107](https://github.com/Applitools-Dev/sdk/commit/56ec107bcda6a5a330d19c278267d73de5d86d8b))
14
+ * export issues for ts js with legacy solution ([#3016](https://github.com/Applitools-Dev/sdk/issues/3016)) ([a3a9daf](https://github.com/Applitools-Dev/sdk/commit/a3a9daf9c3361bb1f253499c1335a1434ec520d1))
15
+ * extractLatestCommitInfo | FLD-3217 ([#3039](https://github.com/Applitools-Dev/sdk/issues/3039)) ([3f72a23](https://github.com/Applitools-Dev/sdk/commit/3f72a230fa0166046ea85ae004cfb544de86e628))
16
+ * handle error when sending started message in tunnel manager server ([#3019](https://github.com/Applitools-Dev/sdk/issues/3019)) ([2cdaad8](https://github.com/Applitools-Dev/sdk/commit/2cdaad896fd679187449b69abe529b006f6255ee))
17
+
18
+
19
+ ### Dependencies
20
+
21
+ * @applitools/dom-snapshot bumped to 4.11.22
22
+ #### Bug Fixes
23
+
24
+ * css media query group conditions | FLD-3151 ([#3023](https://github.com/Applitools-Dev/sdk/issues/3023)) ([56ec107](https://github.com/Applitools-Dev/sdk/commit/56ec107bcda6a5a330d19c278267d73de5d86d8b))
25
+
26
+
27
+
28
+ * @applitools/nml-client bumped to 1.9.5
29
+ #### Bug Fixes
30
+
31
+ * nml-client depends on core-base ([#2995](https://github.com/Applitools-Dev/sdk/issues/2995)) ([1f7cf69](https://github.com/Applitools-Dev/sdk/commit/1f7cf6930709a40a498dd1f525132648aa593af0))
32
+
33
+
34
+
35
+ * @applitools/tunnel-client bumped to 1.8.0
36
+ #### Features
37
+
38
+ * update build script to include individual zip creation ([#3008](https://github.com/Applitools-Dev/sdk/issues/3008)) ([46a0cfc](https://github.com/Applitools-Dev/sdk/commit/46a0cfcc472ab69384560095d90a7fa58b4b9186))
39
+
40
+
41
+
42
+ * @applitools/ufg-client bumped to 1.16.12
43
+ #### Bug Fixes
44
+
45
+ * remove safari-early-access browser version for js sdks | AD-10226 ([#3034](https://github.com/Applitools-Dev/sdk/issues/3034)) ([7ca09f5](https://github.com/Applitools-Dev/sdk/commit/7ca09f5c0c271570142058ea766533b86434dc2e))
46
+
47
+
48
+
49
+ * @applitools/req bumped to 1.7.13
50
+
51
+ * @applitools/dom-capture bumped to 11.5.6
52
+
53
+ * @applitools/spec-driver-webdriver bumped to 1.2.6
54
+
55
+ * @applitools/screenshoter bumped to 3.11.5
56
+
57
+ * @applitools/core-base bumped to 1.25.4
58
+ #### Bug Fixes
59
+
60
+ * Differentiate Between Invalid and Missing API Key Errors ([6ac17d4](https://github.com/Applitools-Dev/sdk/commit/6ac17d40d7aff45b3de5c949dc7d4673b9739bfd))
61
+ * export issues for ts js with legacy solution ([#3016](https://github.com/Applitools-Dev/sdk/issues/3016)) ([a3a9daf](https://github.com/Applitools-Dev/sdk/commit/a3a9daf9c3361bb1f253499c1335a1434ec520d1))
62
+
63
+
64
+
65
+ * @applitools/ec-client bumped to 1.10.15
66
+
67
+ * @applitools/test-server bumped to 1.2.3
68
+ #### Bug Fixes
69
+
70
+ * basic auth protected resources | FLD-2761 | FMRI-120 ([#2444](https://github.com/Applitools-Dev/sdk/issues/2444)) ([b48cf49](https://github.com/Applitools-Dev/sdk/commit/b48cf49dec50bbf1ed2ba111608a48cf09962565))
71
+ * export issues for ts js with legacy solution ([#3016](https://github.com/Applitools-Dev/sdk/issues/3016)) ([a3a9daf](https://github.com/Applitools-Dev/sdk/commit/a3a9daf9c3361bb1f253499c1335a1434ec520d1))
72
+ * storybook navigation timeouts ([#2701](https://github.com/Applitools-Dev/sdk/issues/2701)) ([64e3a40](https://github.com/Applitools-Dev/sdk/commit/64e3a40a524ae76ec457ae9c2d1170fbaea5e982))
73
+
74
+
75
+
76
+
3
77
  ## [4.39.3](https://github.com/Applitools-Dev/sdk/compare/js/core@4.39.2...js/core@4.39.3) (2025-05-20)
4
78
 
5
79
 
@@ -39,6 +39,8 @@ const merge_configs_1 = require("./merge-configs");
39
39
  const format_results_1 = require("../utils/format-results");
40
40
  const throat_1 = __importDefault(require("throat"));
41
41
  const os_1 = __importDefault(require("os"));
42
+ const extract_git_info_1 = require("../utils/extract-git-info");
43
+ const open_eyes_1 = require("../open-eyes");
42
44
  const throttledReadFile = (0, throat_1.default)(Number(process.env.APPLITOOLS_FILE_READING_CONCURRENCY) || 1000, fs_1.default.promises.readFile);
43
45
  function getConsoleLogLimit() {
44
46
  var _a;
@@ -238,6 +240,7 @@ async function runOfflineSnapshots(options) {
238
240
  async function openEyes(settings, environment, logger) {
239
241
  const eyes = await core.base.openEyes({
240
242
  settings: {
243
+ latestCommitInfo: await getLatestCommitInfo({ logger, execOptions: { cwd: offlineLocationPath } }),
241
244
  ...settings,
242
245
  environment: {
243
246
  ...settings.environment,
@@ -327,6 +330,7 @@ async function runOfflineSnapshots(options) {
327
330
  target: { ...baseTarget, isTransformed: true },
328
331
  settings: {
329
332
  ...settings,
333
+ latestCommitInfo: await getLatestCommitInfo({ logger, execOptions: { cwd: offlineLocationPath } }),
330
334
  environment: {
331
335
  ...settings.environment,
332
336
  ...actualEnvironment,
@@ -573,3 +577,12 @@ function formatEnvironment(environment) {
573
577
  return env.androidDeviceInfo;
574
578
  }
575
579
  }
580
+ async function getLatestCommitInfo({ logger, execOptions = { cwd: process.cwd() }, }) {
581
+ var _a;
582
+ const result = (_a = (0, open_eyes_1.getLatestCommitInfoFromEnvVars)(logger)) !== null && _a !== void 0 ? _a : (await (0, extract_git_info_1.extractLatestCommitInfo)({ execOptions, logger }));
583
+ if (result && !(0, extract_git_info_1.isISODate)(result.timestamp)) {
584
+ logger.warn(`latestCommitInfo.timestamp is an invalid ISO date string: ${result.timestamp} - ignoring`);
585
+ }
586
+ else
587
+ return result;
588
+ }
package/dist/open-eyes.js CHANGED
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.makeOpenEyes = void 0;
26
+ exports.getLatestCommitInfoFromEnvVars = exports.makeOpenEyes = void 0;
27
27
  const driver_1 = require("@applitools/driver");
28
28
  const core_1 = require("./classic/core");
29
29
  const core_2 = require("./ufg/core");
@@ -253,6 +253,7 @@ function getLatestCommitInfoFromEnvVars(logger) {
253
253
  logger.warn(`APPLITOOLS_GIT_LATEST_COMMIT_SHA was provided without APPLITOOLS_GIT_LATEST_COMMIT_TIMESTAMP. Not populating latestCommitInfo with the provided sha ${sha}.`);
254
254
  }
255
255
  }
256
+ exports.getLatestCommitInfoFromEnvVars = getLatestCommitInfoFromEnvVars;
256
257
  function isRealBatchId(batchId) {
257
258
  return !!batchId && !batchId.startsWith('generated');
258
259
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/core",
3
- "version": "4.39.3",
3
+ "version": "4.40.0",
4
4
  "homepage": "https://applitools.com",
5
5
  "bugs": {
6
6
  "url": "https://github.com/applitools/eyes.sdk.javascript1/issues"
@@ -42,10 +42,9 @@
42
42
  ],
43
43
  "scripts": {
44
44
  "lint": "run --top-level eslint '**/*.ts'",
45
- "build": "yarn build:dist && yarn build:bin",
46
- "build:short": "yarn build:dist",
45
+ "build": "yarn build:dist",
47
46
  "build:dist": "run --top-level tsc --project ./tsconfig.build.json",
48
- "build:bin": "sea",
47
+ "build:bin": "yarn build && sea",
49
48
  "build:bin:zip": "zip -j ./bin/core.zip $(find ./bin -type f -not -name '*.zip' -not -name '*.tar.gz' | xargs)",
50
49
  "build:bin:tgz": "tar -czf ./bin/core.tar.gz $(find ./bin -type f -not -name '*.zip' -not -name '*.tar.gz' | xargs)",
51
50
  "test": "run --top-level mocha './test/**/*.spec.ts' --exclude './test/bin/**' --parallel --jobs ${MOCHA_JOBS:-15} --exit",
@@ -76,19 +75,19 @@
76
75
  }
77
76
  },
78
77
  "dependencies": {
79
- "@applitools/core-base": "1.25.3",
80
- "@applitools/dom-capture": "11.5.5",
81
- "@applitools/dom-snapshot": "4.11.21",
78
+ "@applitools/core-base": "1.25.4",
79
+ "@applitools/dom-capture": "11.5.6",
80
+ "@applitools/dom-snapshot": "4.11.22",
82
81
  "@applitools/driver": "1.21.4",
83
- "@applitools/ec-client": "1.10.14",
82
+ "@applitools/ec-client": "1.10.15",
84
83
  "@applitools/logger": "2.1.4",
85
- "@applitools/nml-client": "1.9.4",
86
- "@applitools/req": "1.7.12",
87
- "@applitools/screenshoter": "3.11.4",
84
+ "@applitools/nml-client": "1.9.5",
85
+ "@applitools/req": "1.7.13",
86
+ "@applitools/screenshoter": "3.11.5",
88
87
  "@applitools/snippets": "2.6.5",
89
88
  "@applitools/socket": "1.2.5",
90
- "@applitools/spec-driver-webdriver": "1.2.5",
91
- "@applitools/ufg-client": "1.16.11",
89
+ "@applitools/spec-driver-webdriver": "1.2.6",
90
+ "@applitools/ufg-client": "1.16.12",
92
91
  "@applitools/utils": "1.8.2",
93
92
  "@types/ws": "8.5.5",
94
93
  "abort-controller": "3.0.0",
@@ -105,9 +104,9 @@
105
104
  "@applitools/sea": "^1.0.0",
106
105
  "@applitools/spec-driver-puppeteer": "^1.4.30",
107
106
  "@applitools/spec-driver-selenium": "^1.5.101",
108
- "@applitools/test-server": "^1.2.2",
107
+ "@applitools/test-server": "^1.2.3",
109
108
  "@applitools/test-utils": "^1.5.17",
110
- "@applitools/tunnel-client": "^1.7.0",
109
+ "@applitools/tunnel-client": "^1.8.0",
111
110
  "@types/mocha": "^10.0.7",
112
111
  "@types/node": "^12.20.55",
113
112
  "@types/selenium-webdriver": "^4.1.2",
@@ -28,4 +28,8 @@ export declare function makeOpenEyes<TSpec extends SpecType, TDefaultType extend
28
28
  target?: DriverTarget<TSpec> | undefined;
29
29
  logger?: Logger | undefined;
30
30
  }) => Promise<Eyes<TSpec, TType>>;
31
+ export declare function getLatestCommitInfoFromEnvVars(logger: Logger): {
32
+ timestamp: string;
33
+ sha: string;
34
+ } | undefined;
31
35
  export {};