@applitools/eyes 1.21.0 → 1.22.1

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,75 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.22.1](https://github.com/Applitools-Dev/sdk/compare/js/eyes@1.22.0...js/eyes@1.22.1) (2024-08-12)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * update ios devices enums ([9b4614f](https://github.com/Applitools-Dev/sdk/commit/9b4614f09bbbe42cf99824d76893f9067aab2cc4))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * @applitools/dom-capture bumped to 11.3.1
14
+ #### Performance Improvements
15
+
16
+ * link tag without href ([#2450](https://github.com/Applitools-Dev/sdk/issues/2450)) ([523c3cd](https://github.com/Applitools-Dev/sdk/commit/523c3cd1cb003e9144015885b522e1d82e616b7a))
17
+ * @applitools/core bumped to 4.18.1
18
+ #### Bug Fixes
19
+
20
+ * layoutbreakpoints stale dom ([#2456](https://github.com/Applitools-Dev/sdk/issues/2456)) ([a4329d6](https://github.com/Applitools-Dev/sdk/commit/a4329d6d280d27763e0c8ff6374bd26861183939))
21
+
22
+
23
+
24
+
25
+ ## [1.22.0](https://github.com/Applitools-Dev/sdk/compare/js/eyes@1.21.0...js/eyes@1.22.0) (2024-07-23)
26
+
27
+
28
+ ### Features
29
+
30
+ * disable broker url cache ([#2428](https://github.com/Applitools-Dev/sdk/issues/2428)) ([cb8d5fe](https://github.com/Applitools-Dev/sdk/commit/cb8d5fefb13d3ab42984d2bd4d4ac3d4e10646b0))
31
+
32
+
33
+ ### Dependencies
34
+
35
+ * @applitools/driver bumped to 1.18.0
36
+ #### Features
37
+
38
+ * disable broker url cache ([#2428](https://github.com/Applitools-Dev/sdk/issues/2428)) ([cb8d5fe](https://github.com/Applitools-Dev/sdk/commit/cb8d5fefb13d3ab42984d2bd4d4ac3d4e10646b0))
39
+
40
+
41
+ #### Bug Fixes
42
+
43
+ * executing web script on mobile environment ([#2380](https://github.com/Applitools-Dev/sdk/issues/2380)) ([da2e551](https://github.com/Applitools-Dev/sdk/commit/da2e551e01082d3cc21b9da5b43e6680233c080d))
44
+ * @applitools/spec-driver-webdriver bumped to 1.1.11
45
+
46
+ * @applitools/spec-driver-selenium bumped to 1.5.82
47
+
48
+ * @applitools/screenshoter bumped to 3.8.35
49
+
50
+ * @applitools/ufg-client bumped to 1.12.3
51
+ #### Bug Fixes
52
+
53
+ * update makeUploadResource to include apiKey in the cache key ([#2411](https://github.com/Applitools-Dev/sdk/issues/2411)) ([4114c58](https://github.com/Applitools-Dev/sdk/commit/4114c58ec16fa855374b23810cef1e36d4bb53a7))
54
+
55
+
56
+ #### Performance Improvements
57
+
58
+ * trim file content when logging it ([#2437](https://github.com/Applitools-Dev/sdk/issues/2437)) ([02ec1f7](https://github.com/Applitools-Dev/sdk/commit/02ec1f79a323af2e89a7428b75212707c761d1ca))
59
+ * @applitools/spec-driver-puppeteer bumped to 1.4.11
60
+
61
+ * @applitools/nml-client bumped to 1.8.9
62
+
63
+ * @applitools/ec-client bumped to 1.9.3
64
+
65
+ * @applitools/core bumped to 4.18.0
66
+ #### Features
67
+
68
+ * disable broker url cache ([#2428](https://github.com/Applitools-Dev/sdk/issues/2428)) ([cb8d5fe](https://github.com/Applitools-Dev/sdk/commit/cb8d5fefb13d3ab42984d2bd4d4ac3d4e10646b0))
69
+
70
+
71
+
72
+
3
73
  ## [1.21.0](https://github.com/Applitools-Dev/sdk/compare/js/eyes@1.20.1...js/eyes@1.21.0) (2024-06-26)
4
74
 
5
75
 
@@ -4,39 +4,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.IosDeviceNameEnum = void 0;
5
5
  var IosDeviceNameEnum;
6
6
  (function (IosDeviceNameEnum) {
7
- IosDeviceNameEnum["iPad_5"] = "iPad (5th generation)";
8
- IosDeviceNameEnum["iPad_6"] = "iPad (6th generation)";
9
7
  IosDeviceNameEnum["iPad_7"] = "iPad (7th generation)";
10
- IosDeviceNameEnum["iPad_8"] = "iPad (8th generation)";
11
8
  IosDeviceNameEnum["iPad_9"] = "iPad (9th generation)";
12
- IosDeviceNameEnum["iPad_10"] = "iPad (10th generation)";
13
- IosDeviceNameEnum["iPad_Air_2"] = "iPad Air 2";
14
- IosDeviceNameEnum["iPad_Air_3"] = "iPad Air (3rd generation)";
15
9
  IosDeviceNameEnum["iPad_Air_4"] = "iPad Air (4th generation)";
16
- IosDeviceNameEnum["iPad_Air_5"] = "iPad Air (5th generation)";
17
- IosDeviceNameEnum["iPad_mini_4"] = "iPad mini 4";
18
- IosDeviceNameEnum["iPad_mini_5"] = "iPad mini (5th generation)";
19
- IosDeviceNameEnum["iPad_mini_6"] = "iPad mini (6th generation)";
20
- IosDeviceNameEnum["iPad_Pro_9_7_inch_1"] = "iPad Pro (9.7-inch)";
21
- IosDeviceNameEnum["iPad_Pro_10_5_inch_1"] = "iPad Pro (10.5-inch)";
22
- IosDeviceNameEnum["iPad_Pro_11_inch_1"] = "iPad Pro (11-inch) (1st generation)";
23
- IosDeviceNameEnum["iPad_Pro_12_9_inch_1"] = "iPad Pro (12.9-inch) (1st generation)";
24
- IosDeviceNameEnum["iPad_Pro_11_inch_2"] = "iPad Pro (11-inch) (2nd generation)";
25
- IosDeviceNameEnum["iPad_Pro_12_9_inch_2"] = "iPad Pro (12.9-inch) (2nd generation)";
26
- IosDeviceNameEnum["iPad_Pro_11_inch_3"] = "iPad Pro (11-inch) (3rd generation)";
27
10
  /** @deprecated use {@link iPad_Pro_12_9_inch_3 } instead */
28
11
  IosDeviceNameEnum["iPad_Pro_3"] = "iPad Pro (12.9-inch) (3rd generation)";
29
12
  IosDeviceNameEnum["iPad_Pro_12_9_inch_3"] = "iPad Pro (12.9-inch) (3rd generation)";
30
13
  /** @deprecated use {@link iPad_Pro_11_inch_4 } instead */
31
14
  IosDeviceNameEnum["iPad_Pro_4"] = "iPad Pro (11-inch) (4th generation)";
32
15
  IosDeviceNameEnum["iPad_Pro_11_inch_4"] = "iPad Pro (11-inch) (4th generation)";
33
- IosDeviceNameEnum["iPad_Pro_12_9_inch_4"] = "iPad Pro (12.9-inch) (4th generation)";
34
- IosDeviceNameEnum["iPad_Pro_12_9_inch_5"] = "iPad Pro (12.9-inch) (5th generation)";
35
- IosDeviceNameEnum["iPad_Pro_12_9_inch_6"] = "iPad Pro (12.9-inch) (6th generation)";
36
- IosDeviceNameEnum["iPhone_6s"] = "iPhone 6s";
37
- IosDeviceNameEnum["iPhone_6s_Plus"] = "iPhone 6s Plus";
38
- IosDeviceNameEnum["iPhone_7"] = "iPhone 7";
39
- IosDeviceNameEnum["iPhone_7_Plus"] = "iPhone 7 Plus";
40
16
  IosDeviceNameEnum["iPhone_8"] = "iPhone 8";
41
17
  IosDeviceNameEnum["iPhone_8_Plus"] = "iPhone 8 Plus";
42
18
  IosDeviceNameEnum["iPhone_X"] = "iPhone X";
@@ -44,7 +20,6 @@ var IosDeviceNameEnum;
44
20
  /** @deprecated use {@link iPhone_Xs } instead */
45
21
  IosDeviceNameEnum["iPhone_XS"] = "iPhone Xs";
46
22
  IosDeviceNameEnum["iPhone_Xs"] = "iPhone Xs";
47
- IosDeviceNameEnum["iPhone_Xs_Max"] = "iPhone Xs Max";
48
23
  IosDeviceNameEnum["iPhone_11"] = "iPhone 11";
49
24
  IosDeviceNameEnum["iPhone_11_Pro_Max"] = "iPhone 11 Pro Max";
50
25
  IosDeviceNameEnum["iPhone_11_Pro"] = "iPhone 11 Pro";
@@ -53,21 +28,10 @@ var IosDeviceNameEnum;
53
28
  IosDeviceNameEnum["iPhone_12_Pro_Max"] = "iPhone 12 Pro Max";
54
29
  IosDeviceNameEnum["iPhone_12_Pro"] = "iPhone 12 Pro";
55
30
  IosDeviceNameEnum["iPhone_13"] = "iPhone 13";
56
- IosDeviceNameEnum["iPhone_13_mini"] = "iPhone 13 mini";
57
31
  IosDeviceNameEnum["iPhone_13_Pro_Max"] = "iPhone 13 Pro Max";
58
32
  IosDeviceNameEnum["iPhone_13_Pro"] = "iPhone 13 Pro";
59
33
  IosDeviceNameEnum["iPhone_14"] = "iPhone 14";
60
- IosDeviceNameEnum["iPhone_14_Plus"] = "iPhone 14 Plus";
61
- IosDeviceNameEnum["iPhone_14_Pro"] = "iPhone 14 Pro";
62
34
  IosDeviceNameEnum["iPhone_14_Pro_Max"] = "iPhone 14 Pro Max";
63
35
  IosDeviceNameEnum["iPhone_15"] = "iPhone 15";
64
- IosDeviceNameEnum["iPhone_15_Plus"] = "iPhone 15 Plus";
65
- IosDeviceNameEnum["iPhone_15_Pro"] = "iPhone 15 Pro";
66
36
  IosDeviceNameEnum["iPhone_15_Pro_Max"] = "iPhone 15 Pro Max";
67
- /** @deprecated use {@link iPhone_SE_1 } instead */
68
- IosDeviceNameEnum["iPhone_SE"] = "iPhone SE (1st generation)";
69
- IosDeviceNameEnum["iPhone_SE_1"] = "iPhone SE (1st generation)";
70
- IosDeviceNameEnum["iPhone_SE_2"] = "iPhone SE (2nd generation)";
71
- IosDeviceNameEnum["iPhone_SE_3"] = "iPhone SE (3rd generation)";
72
- IosDeviceNameEnum["iPod_touch_7"] = "iPod touch (7th generation)";
73
37
  })(IosDeviceNameEnum || (exports.IosDeviceNameEnum = IosDeviceNameEnum = {}));
@@ -969,6 +969,19 @@ class ConfigurationData {
969
969
  this.dontCloseBatches = dontCloseBatches;
970
970
  return this;
971
971
  }
972
+ get disableNMLUrlCache() {
973
+ return this._config.disableNMLUrlCache;
974
+ }
975
+ set disableNMLUrlCache(disableNMLUrlCache) {
976
+ this._config.disableNMLUrlCache = disableNMLUrlCache;
977
+ }
978
+ getDisableNMLUrlCache() {
979
+ return this.disableNMLUrlCache;
980
+ }
981
+ setDisableNMLUrlCache(disableNMLUrlCache) {
982
+ this.disableNMLUrlCache = disableNMLUrlCache;
983
+ return this;
984
+ }
972
985
  /** @internal */
973
986
  toObject() {
974
987
  return this._config;
@@ -1009,6 +1022,7 @@ class ConfigurationData {
1009
1022
  ignoreGitBranching: this.ignoreGitMergeBase,
1010
1023
  saveDiffs: this.saveDiffs,
1011
1024
  keepBatchOpen: this.dontCloseBatches,
1025
+ disableBrokerUrlCache: this.disableNMLUrlCache,
1012
1026
  }),
1013
1027
  screenshot: utils.general.removeUndefinedProps({
1014
1028
  fully: this.forceFullPageScreenshot,
@@ -1030,7 +1044,8 @@ class ConfigurationData {
1030
1044
  }),
1031
1045
  check: utils.general.removeUndefinedProps({
1032
1046
  environments: (_b = this.browsersInfo) === null || _b === void 0 ? void 0 : _b.map(browserInfo => {
1033
- if (utils.types.has(browserInfo, 'iosDeviceInfo')) {
1047
+ if (utils.types.has(browserInfo, 'iosDeviceInfo') &&
1048
+ utils.types.has(browserInfo.iosDeviceInfo, 'iosVersion')) {
1034
1049
  const { iosVersion, ...iosDeviceInfo } = browserInfo.iosDeviceInfo;
1035
1050
  return { iosDeviceInfo: { ...iosDeviceInfo, version: iosVersion } };
1036
1051
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes",
3
- "version": "1.21.0",
3
+ "version": "1.22.1",
4
4
  "keywords": [
5
5
  "applitools",
6
6
  "eyes",
@@ -45,7 +45,7 @@
45
45
  "test": "run --top-level mocha './test/**/*.spec.ts'"
46
46
  },
47
47
  "dependencies": {
48
- "@applitools/core": "4.17.0",
48
+ "@applitools/core": "4.18.1",
49
49
  "@applitools/logger": "2.0.18",
50
50
  "@applitools/utils": "1.7.4"
51
51
  },
@@ -1,37 +1,13 @@
1
1
  export declare enum IosDeviceNameEnum {
2
- iPad_5 = "iPad (5th generation)",
3
- iPad_6 = "iPad (6th generation)",
4
2
  iPad_7 = "iPad (7th generation)",
5
- iPad_8 = "iPad (8th generation)",
6
3
  iPad_9 = "iPad (9th generation)",
7
- iPad_10 = "iPad (10th generation)",
8
- iPad_Air_2 = "iPad Air 2",
9
- iPad_Air_3 = "iPad Air (3rd generation)",
10
4
  iPad_Air_4 = "iPad Air (4th generation)",
11
- iPad_Air_5 = "iPad Air (5th generation)",
12
- iPad_mini_4 = "iPad mini 4",
13
- iPad_mini_5 = "iPad mini (5th generation)",
14
- iPad_mini_6 = "iPad mini (6th generation)",
15
- iPad_Pro_9_7_inch_1 = "iPad Pro (9.7-inch)",
16
- iPad_Pro_10_5_inch_1 = "iPad Pro (10.5-inch)",
17
- iPad_Pro_11_inch_1 = "iPad Pro (11-inch) (1st generation)",
18
- iPad_Pro_12_9_inch_1 = "iPad Pro (12.9-inch) (1st generation)",
19
- iPad_Pro_11_inch_2 = "iPad Pro (11-inch) (2nd generation)",
20
- iPad_Pro_12_9_inch_2 = "iPad Pro (12.9-inch) (2nd generation)",
21
- iPad_Pro_11_inch_3 = "iPad Pro (11-inch) (3rd generation)",
22
5
  /** @deprecated use {@link iPad_Pro_12_9_inch_3 } instead */
23
6
  iPad_Pro_3 = "iPad Pro (12.9-inch) (3rd generation)",
24
7
  iPad_Pro_12_9_inch_3 = "iPad Pro (12.9-inch) (3rd generation)",
25
8
  /** @deprecated use {@link iPad_Pro_11_inch_4 } instead */
26
9
  iPad_Pro_4 = "iPad Pro (11-inch) (4th generation)",
27
10
  iPad_Pro_11_inch_4 = "iPad Pro (11-inch) (4th generation)",
28
- iPad_Pro_12_9_inch_4 = "iPad Pro (12.9-inch) (4th generation)",
29
- iPad_Pro_12_9_inch_5 = "iPad Pro (12.9-inch) (5th generation)",
30
- iPad_Pro_12_9_inch_6 = "iPad Pro (12.9-inch) (6th generation)",
31
- iPhone_6s = "iPhone 6s",
32
- iPhone_6s_Plus = "iPhone 6s Plus",
33
- iPhone_7 = "iPhone 7",
34
- iPhone_7_Plus = "iPhone 7 Plus",
35
11
  iPhone_8 = "iPhone 8",
36
12
  iPhone_8_Plus = "iPhone 8 Plus",
37
13
  iPhone_X = "iPhone X",
@@ -39,7 +15,6 @@ export declare enum IosDeviceNameEnum {
39
15
  /** @deprecated use {@link iPhone_Xs } instead */
40
16
  iPhone_XS = "iPhone Xs",
41
17
  iPhone_Xs = "iPhone Xs",
42
- iPhone_Xs_Max = "iPhone Xs Max",
43
18
  iPhone_11 = "iPhone 11",
44
19
  iPhone_11_Pro_Max = "iPhone 11 Pro Max",
45
20
  iPhone_11_Pro = "iPhone 11 Pro",
@@ -48,22 +23,11 @@ export declare enum IosDeviceNameEnum {
48
23
  iPhone_12_Pro_Max = "iPhone 12 Pro Max",
49
24
  iPhone_12_Pro = "iPhone 12 Pro",
50
25
  iPhone_13 = "iPhone 13",
51
- iPhone_13_mini = "iPhone 13 mini",
52
26
  iPhone_13_Pro_Max = "iPhone 13 Pro Max",
53
27
  iPhone_13_Pro = "iPhone 13 Pro",
54
28
  iPhone_14 = "iPhone 14",
55
- iPhone_14_Plus = "iPhone 14 Plus",
56
- iPhone_14_Pro = "iPhone 14 Pro",
57
29
  iPhone_14_Pro_Max = "iPhone 14 Pro Max",
58
30
  iPhone_15 = "iPhone 15",
59
- iPhone_15_Plus = "iPhone 15 Plus",
60
- iPhone_15_Pro = "iPhone 15 Pro",
61
- iPhone_15_Pro_Max = "iPhone 15 Pro Max",
62
- /** @deprecated use {@link iPhone_SE_1 } instead */
63
- iPhone_SE = "iPhone SE (1st generation)",
64
- iPhone_SE_1 = "iPhone SE (1st generation)",
65
- iPhone_SE_2 = "iPhone SE (2nd generation)",
66
- iPhone_SE_3 = "iPhone SE (3rd generation)",
67
- iPod_touch_7 = "iPod touch (7th generation)"
31
+ iPhone_15_Pro_Max = "iPhone 15 Pro Max"
68
32
  }
69
33
  export type IosDeviceName = `${IosDeviceNameEnum}`;
@@ -84,6 +84,7 @@ export type Configuration<TSpec extends Core.SpecType = Core.SpecType> = {
84
84
  };
85
85
  disableBrowserFetching?: boolean;
86
86
  waitBeforeCapture?: number;
87
+ disableNMLUrlCache?: boolean;
87
88
  };
88
89
  export declare class ConfigurationData<TSpec extends Core.SpecType = Core.SpecType> implements Required<Configuration<TSpec>> {
89
90
  protected static readonly _spec: Core.SpecDriver<Core.SpecType>;
@@ -379,6 +380,10 @@ export declare class ConfigurationData<TSpec extends Core.SpecType = Core.SpecTy
379
380
  getDontCloseBatches(): boolean;
380
381
  /** @undocumented */
381
382
  setDontCloseBatches(dontCloseBatches: boolean): this;
383
+ get disableNMLUrlCache(): boolean;
384
+ set disableNMLUrlCache(disableNMLUrlCache: boolean);
385
+ getDisableNMLUrlCache(): boolean;
386
+ setDisableNMLUrlCache(disableNMLUrlCache: boolean): this;
382
387
  /** @internal */
383
388
  toObject(): Configuration<TSpec>;
384
389
  /** @internal */
@@ -47,7 +47,9 @@ export type AndroidDeviceInfo = {
47
47
  };
48
48
  };
49
49
  export type IOSMultiDeviceInfo = {
50
- deviceName: IosMultiDeviceTarget;
50
+ iosDeviceInfo: {
51
+ deviceName: IosMultiDeviceTarget;
52
+ };
51
53
  };
52
54
  export type RenderInfoLegacy = RenderInfoBase & (DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo | AndroidDeviceInfo | ChromeEmulationInfoLegacy);
53
55
  export type RenderInfo = RenderInfoBase & (DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo | AndroidDeviceInfo | IOSMultiDeviceInfo);