@applitools/eyes-puppeteer 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,164 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.22.1](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-puppeteer@1.22.0...js/eyes-puppeteer@1.22.1) (2023-10-19)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * @applitools/eyes bumped to 1.11.1
9
+ #### Bug Fixes
10
+
11
+ * fixed `serverUrl` configuration propagation ([247b7d8](https://github.com/applitools/eyes.sdk.javascript1/commit/247b7d88853dd1a9068d2d963582ad795752ace4))
12
+
13
+ ## [1.22.0](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-puppeteer-v1.21.1...js/eyes-puppeteer@1.22.0) (2023-10-17)
14
+
15
+
16
+ ### Features
17
+
18
+ * rework log event on opent eyes ([#1842](https://github.com/applitools/eyes.sdk.javascript1/issues/1842)) ([532756b](https://github.com/applitools/eyes.sdk.javascript1/commit/532756b75c1023967c3781316148c890dbcfaac8))
19
+
20
+
21
+ ### Code Refactoring
22
+
23
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
24
+
25
+
26
+ ### Dependencies
27
+
28
+ * @applitools/utils bumped to 1.6.2
29
+ #### Code Refactoring
30
+
31
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
32
+ * @applitools/logger bumped to 2.0.12
33
+ #### Code Refactoring
34
+
35
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
36
+
37
+
38
+
39
+ * @applitools/socket bumped to 1.1.12
40
+ #### Code Refactoring
41
+
42
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
43
+
44
+
45
+
46
+ * @applitools/req bumped to 1.6.2
47
+ #### Code Refactoring
48
+
49
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
50
+
51
+
52
+
53
+ * @applitools/image bumped to 1.1.7
54
+ #### Bug Fixes
55
+
56
+ * avoid using ascii text decoder ([1b68d39](https://github.com/applitools/eyes.sdk.javascript1/commit/1b68d3945d96b17b9ab1f1a87d352206fd0c81d6))
57
+
58
+
59
+ #### Code Refactoring
60
+
61
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
62
+
63
+
64
+
65
+ * @applitools/spec-driver-selenium bumped to 1.5.62
66
+
67
+ * @applitools/spec-driver-puppeteer bumped to 1.2.4
68
+ #### Code Refactoring
69
+
70
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
71
+
72
+
73
+
74
+ * @applitools/ufg-client bumped to 1.9.6
75
+ #### Code Refactoring
76
+
77
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
78
+ * drop jsdom dependency ([1b68d39](https://github.com/applitools/eyes.sdk.javascript1/commit/1b68d3945d96b17b9ab1f1a87d352206fd0c81d6))
79
+
80
+
81
+
82
+ * @applitools/core bumped to 4.0.0
83
+ #### ⚠ BREAKING CHANGES
84
+
85
+ * update core to v4 ([#1936](https://github.com/applitools/eyes.sdk.javascript1/issues/1936))
86
+
87
+ #### Features
88
+
89
+ * update core to v4 ([#1936](https://github.com/applitools/eyes.sdk.javascript1/issues/1936)) ([1b68d39](https://github.com/applitools/eyes.sdk.javascript1/commit/1b68d3945d96b17b9ab1f1a87d352206fd0c81d6))
90
+
91
+
92
+ #### Bug Fixes
93
+
94
+ * upgrade dom-snapshot ([#1969](https://github.com/applitools/eyes.sdk.javascript1/issues/1969)) ([458beb8](https://github.com/applitools/eyes.sdk.javascript1/commit/458beb803aec3e6d51484a557b3eed8f537a709d))
95
+
96
+
97
+ #### Code Refactoring
98
+
99
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
100
+
101
+
102
+
103
+ * @applitools/nml-client bumped to 1.5.14
104
+
105
+ * @applitools/core-base bumped to 1.7.2
106
+ #### Code Refactoring
107
+
108
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
109
+
110
+
111
+
112
+ * @applitools/spec-driver-webdriver bumped to 1.0.48
113
+
114
+ * @applitools/driver bumped to 1.14.4
115
+ #### Code Refactoring
116
+
117
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
118
+
119
+
120
+
121
+ * @applitools/screenshoter bumped to 3.8.14
122
+ #### Bug Fixes
123
+
124
+ * allow css scrolling when taking screenshot of the webview ([2d3a257](https://github.com/applitools/eyes.sdk.javascript1/commit/2d3a2572768e7f979d16297ca316a79ab2538adb))
125
+
126
+
127
+ #### Code Refactoring
128
+
129
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
130
+
131
+
132
+
133
+ * @applitools/tunnel-client bumped to 1.2.4
134
+ #### Code Refactoring
135
+
136
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
137
+
138
+
139
+
140
+ * @applitools/ec-client bumped to 1.7.13
141
+ #### Code Refactoring
142
+
143
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
144
+
145
+
146
+
147
+ * @applitools/eyes bumped to 1.11.0
148
+ #### Features
149
+
150
+ * added more iOS devices ([a84311f](https://github.com/applitools/eyes.sdk.javascript1/commit/a84311f88e6f532268543a96f841ae5ad87d5659))
151
+ * rework log event on opent eyes ([#1842](https://github.com/applitools/eyes.sdk.javascript1/issues/1842)) ([532756b](https://github.com/applitools/eyes.sdk.javascript1/commit/532756b75c1023967c3781316148c890dbcfaac8))
152
+
153
+
154
+ #### Code Refactoring
155
+
156
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
157
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
158
+
159
+
160
+
161
+
3
162
  ## [1.21.0](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-puppeteer-v1.20.1...js/eyes-puppeteer@1.21.0) (2023-09-29)
4
163
 
5
164
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-puppeteer",
3
- "version": "1.21.0",
3
+ "version": "1.22.1",
4
4
  "description": "Applitools Eyes SDK for Puppeteer",
5
5
  "keywords": [
6
6
  "eyes-puppeteer",
@@ -30,17 +30,17 @@
30
30
  "build": "run --top-level tspc --project ./tsconfig.build.json",
31
31
  "generate:tests": "NODE_OPTIONS='--experimental-import-meta-resolve --experimental-loader=@applitools/generic/dist/code-loader.js' generic ./test/generic/config.mjs",
32
32
  "test": "yarn test:coverage",
33
- "test:coverage": "APPLITOOLS_BATCH_NAME='JS Coverage Tests: eyes-puppeteer' APPLITOOLS_BATCH_ID=$(uuidgen) MOCHA_GROUP=coverage run --top-level mocha './test/generated-coverage/*.spec.js' --parallel --jobs ${MOCHA_JOBS:-15} --exit",
34
- "up:framework": "yarn add --dev --caret puppeteer${APPLITOOLS_FRAMEWORK_VERSION:+@$APPLITOOLS_FRAMEWORK_VERSION}"
33
+ "test:coverage": "APPLITOOLS_SHOW_LOGS=true APPLITOOLS_LOG_FILE=\"./logs/$(uuidgen).log\" APPLITOOLS_BATCH_NAME='JS Coverage Tests: eyes-puppeteer' APPLITOOLS_BATCH_ID=$(uuidgen) MOCHA_GROUP=coverage run --top-level mocha './test/generated-coverage/*.spec.js' --parallel --jobs ${MOCHA_JOBS:-15} --exit",
34
+ "up:framework": "echo \"$(jq '.devDependencies.puppeteer = $ENV.APPLITOOLS_FRAMEWORK_VERSION' ./package.json)\" > ./package.json"
35
35
  },
36
36
  "dependencies": {
37
- "@applitools/eyes": "1.10.0",
38
- "@applitools/spec-driver-puppeteer": "1.2.3"
37
+ "@applitools/eyes": "1.11.1",
38
+ "@applitools/spec-driver-puppeteer": "1.2.4"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@applitools/api-extractor": "^1.2.22",
42
- "@applitools/bongo": "^5.6.1",
43
- "@applitools/generic": "^3.3.10",
42
+ "@applitools/bongo": "^5.7.0",
43
+ "@applitools/generic": "^3.4.1",
44
44
  "@applitools/test-utils": "^1.5.17",
45
45
  "@types/node": "^12.20.55",
46
46
  "puppeteer": "^19.11.1"
package/types/index.d.ts CHANGED
@@ -47,7 +47,7 @@ export class Eyes {
47
47
  check(name: string, checkSettings: CheckSettingsAutomation): Promise<MatchResult>;
48
48
  check(name: string, checkSettings: CheckSettingsImage): Promise<MatchResult>;
49
49
  check(target: {
50
- image: string | Buffer | URL;
50
+ image: string | URL | Buffer;
51
51
  name?: undefined | string;
52
52
  dom?: undefined | string;
53
53
  locationInViewport?: undefined | LocationPlain;
@@ -63,16 +63,16 @@ export class Eyes {
63
63
  checkElementBy(selector: EyesSelector<Selector>, timeout?: undefined | number, name?: undefined | string): Promise<MatchResult>;
64
64
  checkRegion(region: RegionPlain, name?: undefined | string, timeout?: undefined | number): Promise<MatchResult>;
65
65
  checkRegion(image: string, region: RegionPlain, name?: undefined | string, ignoreMismatch?: undefined | boolean): Promise<MatchResult>;
66
- checkRegion(image: Buffer, region: RegionPlain, name?: undefined | string, ignoreMismatch?: undefined | boolean): Promise<MatchResult>;
67
66
  checkRegion(image: URL, region: RegionPlain, name?: undefined | string, ignoreMismatch?: undefined | boolean): Promise<MatchResult>;
67
+ checkRegion(image: Buffer, region: RegionPlain, name?: undefined | string, ignoreMismatch?: undefined | boolean): Promise<MatchResult>;
68
68
  checkRegionByElement(element: Element, name?: undefined | string, timeout?: undefined | number): Promise<MatchResult>;
69
69
  checkRegionBy(selector: EyesSelector<Selector>, name?: undefined | string, timeout?: undefined | number, fully?: undefined | boolean): Promise<MatchResult>;
70
70
  checkRegionInFrame(frame: number, selector: EyesSelector<Selector>, timeout?: undefined | number, name?: undefined | string, fully?: undefined | boolean): Promise<MatchResult>;
71
71
  checkRegionInFrame(frame: Element, selector: EyesSelector<Selector>, timeout?: undefined | number, name?: undefined | string, fully?: undefined | boolean): Promise<MatchResult>;
72
72
  checkRegionInFrame(frame: EyesSelector<Selector>, selector: EyesSelector<Selector>, timeout?: undefined | number, name?: undefined | string, fully?: undefined | boolean): Promise<MatchResult>;
73
73
  checkImage(image: string, name?: undefined | string, ignoreMismatch?: undefined | boolean): Promise<MatchResult>;
74
- checkImage(image: Buffer, name?: undefined | string, ignoreMismatch?: undefined | boolean): Promise<MatchResult>;
75
74
  checkImage(image: URL, name?: undefined | string, ignoreMismatch?: undefined | boolean): Promise<MatchResult>;
75
+ checkImage(image: Buffer, name?: undefined | string, ignoreMismatch?: undefined | boolean): Promise<MatchResult>;
76
76
  locate<TLocator extends string>(target: {
77
77
  image: string | Uint8Array | URL;
78
78
  size?: undefined | { width: number; height: number; };
@@ -1067,7 +1067,7 @@ export type CheckSettingsImagePlain = {
1067
1067
  };
1068
1068
  export class CheckSettingsImage {
1069
1069
  constructor(settings?: undefined | CheckSettingsImagePlain, target?: undefined | {
1070
- image: string | Buffer | URL;
1070
+ image: string | URL | Buffer;
1071
1071
  name?: undefined | string;
1072
1072
  dom?: undefined | string;
1073
1073
  locationInViewport?: undefined | LocationPlain;
@@ -1075,7 +1075,7 @@ export class CheckSettingsImage {
1075
1075
  fullViewSize?: undefined | RectangleSizePlain;
1076
1076
  });
1077
1077
  constructor(settings?: undefined | CheckSettingsImage, target?: undefined | {
1078
- image: string | Buffer | URL;
1078
+ image: string | URL | Buffer;
1079
1079
  name?: undefined | string;
1080
1080
  dom?: undefined | string;
1081
1081
  locationInViewport?: undefined | LocationPlain;
@@ -1083,8 +1083,8 @@ export class CheckSettingsImage {
1083
1083
  fullViewSize?: undefined | RectangleSizePlain;
1084
1084
  });
1085
1085
  image(image: string): CheckSettingsImage;
1086
- image(image: Buffer): CheckSettingsImage;
1087
1086
  image(image: URL): CheckSettingsImage;
1087
+ image(image: Buffer): CheckSettingsImage;
1088
1088
  buffer(imageBuffer: Buffer): CheckSettingsImage;
1089
1089
  base64(imageBase64: Buffer): CheckSettingsImage;
1090
1090
  path(imagePath: string): CheckSettingsImage;
@@ -1185,8 +1185,8 @@ export class CheckSettingsImage {
1185
1185
  }
1186
1186
  export type TargetImage = {
1187
1187
  image(image: string): CheckSettingsImage;
1188
- image(image: Buffer): CheckSettingsImage;
1189
1188
  image(image: URL): CheckSettingsImage;
1189
+ image(image: Buffer): CheckSettingsImage;
1190
1190
  buffer(imageBuffer: Buffer): CheckSettingsImage;
1191
1191
  base64(imageBase64: string): CheckSettingsImage;
1192
1192
  path(imagePath: string): CheckSettingsImage;
@@ -1195,8 +1195,8 @@ export type TargetImage = {
1195
1195
  };
1196
1196
  export const TargetImage: {
1197
1197
  image(image: string): CheckSettingsImage;
1198
- image(image: Buffer): CheckSettingsImage;
1199
1198
  image(image: URL): CheckSettingsImage;
1199
+ image(image: Buffer): CheckSettingsImage;
1200
1200
  buffer(imageBuffer: Buffer): CheckSettingsImage;
1201
1201
  base64(imageBase64: string): CheckSettingsImage;
1202
1202
  path(imagePath: string): CheckSettingsImage;