@applitools/eyes-puppeteer 1.20.0 → 1.22.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,221 @@
1
1
  # Changelog
2
2
 
3
+ ## [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)
4
+
5
+
6
+ ### Features
7
+
8
+ * 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))
9
+
10
+
11
+ ### Code Refactoring
12
+
13
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
14
+
15
+
16
+ ### Dependencies
17
+
18
+ * @applitools/utils bumped to 1.6.2
19
+ #### Code Refactoring
20
+
21
+ * 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))
22
+ * @applitools/logger bumped to 2.0.12
23
+ #### Code Refactoring
24
+
25
+ * 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))
26
+
27
+
28
+
29
+ * @applitools/socket bumped to 1.1.12
30
+ #### Code Refactoring
31
+
32
+ * 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))
33
+
34
+
35
+
36
+ * @applitools/req bumped to 1.6.2
37
+ #### Code Refactoring
38
+
39
+ * 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))
40
+
41
+
42
+
43
+ * @applitools/image bumped to 1.1.7
44
+ #### Bug Fixes
45
+
46
+ * avoid using ascii text decoder ([1b68d39](https://github.com/applitools/eyes.sdk.javascript1/commit/1b68d3945d96b17b9ab1f1a87d352206fd0c81d6))
47
+
48
+
49
+ #### Code Refactoring
50
+
51
+ * 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))
52
+
53
+
54
+
55
+ * @applitools/spec-driver-selenium bumped to 1.5.62
56
+
57
+ * @applitools/spec-driver-puppeteer bumped to 1.2.4
58
+ #### Code Refactoring
59
+
60
+ * 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))
61
+
62
+
63
+
64
+ * @applitools/ufg-client bumped to 1.9.6
65
+ #### Code Refactoring
66
+
67
+ * 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))
68
+ * drop jsdom dependency ([1b68d39](https://github.com/applitools/eyes.sdk.javascript1/commit/1b68d3945d96b17b9ab1f1a87d352206fd0c81d6))
69
+
70
+
71
+
72
+ * @applitools/core bumped to 4.0.0
73
+ #### ⚠ BREAKING CHANGES
74
+
75
+ * update core to v4 ([#1936](https://github.com/applitools/eyes.sdk.javascript1/issues/1936))
76
+
77
+ #### Features
78
+
79
+ * update core to v4 ([#1936](https://github.com/applitools/eyes.sdk.javascript1/issues/1936)) ([1b68d39](https://github.com/applitools/eyes.sdk.javascript1/commit/1b68d3945d96b17b9ab1f1a87d352206fd0c81d6))
80
+
81
+
82
+ #### Bug Fixes
83
+
84
+ * upgrade dom-snapshot ([#1969](https://github.com/applitools/eyes.sdk.javascript1/issues/1969)) ([458beb8](https://github.com/applitools/eyes.sdk.javascript1/commit/458beb803aec3e6d51484a557b3eed8f537a709d))
85
+
86
+
87
+ #### Code Refactoring
88
+
89
+ * 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))
90
+
91
+
92
+
93
+ * @applitools/nml-client bumped to 1.5.14
94
+
95
+ * @applitools/core-base bumped to 1.7.2
96
+ #### Code Refactoring
97
+
98
+ * 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))
99
+
100
+
101
+
102
+ * @applitools/spec-driver-webdriver bumped to 1.0.48
103
+
104
+ * @applitools/driver bumped to 1.14.4
105
+ #### Code Refactoring
106
+
107
+ * 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))
108
+
109
+
110
+
111
+ * @applitools/screenshoter bumped to 3.8.14
112
+ #### Bug Fixes
113
+
114
+ * allow css scrolling when taking screenshot of the webview ([2d3a257](https://github.com/applitools/eyes.sdk.javascript1/commit/2d3a2572768e7f979d16297ca316a79ab2538adb))
115
+
116
+
117
+ #### Code Refactoring
118
+
119
+ * 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))
120
+
121
+
122
+
123
+ * @applitools/tunnel-client bumped to 1.2.4
124
+ #### Code Refactoring
125
+
126
+ * 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))
127
+
128
+
129
+
130
+ * @applitools/ec-client bumped to 1.7.13
131
+ #### Code Refactoring
132
+
133
+ * 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))
134
+
135
+
136
+
137
+ * @applitools/eyes bumped to 1.11.0
138
+ #### Features
139
+
140
+ * added more iOS devices ([a84311f](https://github.com/applitools/eyes.sdk.javascript1/commit/a84311f88e6f532268543a96f841ae5ad87d5659))
141
+ * 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))
142
+
143
+
144
+ #### Code Refactoring
145
+
146
+ * 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))
147
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
148
+
149
+
150
+
151
+
152
+ ## [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)
153
+
154
+
155
+ ### Features
156
+
157
+ * 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))
158
+
159
+
160
+ ### Code Refactoring
161
+
162
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
163
+
164
+
165
+ ### Dependencies
166
+
167
+ * @applitools/spec-driver-webdriver bumped to 1.0.47
168
+
169
+ * @applitools/spec-driver-selenium bumped to 1.5.61
170
+
171
+ * @applitools/spec-driver-puppeteer bumped to 1.2.3
172
+
173
+ * @applitools/driver bumped to 1.14.3
174
+ #### Bug Fixes
175
+
176
+ * force native on get environment ([#1939](https://github.com/applitools/eyes.sdk.javascript1/issues/1939)) ([f42854e](https://github.com/applitools/eyes.sdk.javascript1/commit/f42854eacc769751447204143cb4d50113edc732))
177
+ * @applitools/screenshoter bumped to 3.8.13
178
+ #### Bug Fixes
179
+
180
+ * force native on get environment ([#1939](https://github.com/applitools/eyes.sdk.javascript1/issues/1939)) ([f42854e](https://github.com/applitools/eyes.sdk.javascript1/commit/f42854eacc769751447204143cb4d50113edc732))
181
+
182
+
183
+
184
+ * @applitools/nml-client bumped to 1.5.13
185
+
186
+ * @applitools/ec-client bumped to 1.7.12
187
+ #### Bug Fixes
188
+
189
+ * change expiration time of the tunnel ([c019241](https://github.com/applitools/eyes.sdk.javascript1/commit/c0192411410135b23f3ae47dd62fbef67be66f1a))
190
+
191
+
192
+ #### Code Refactoring
193
+
194
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
195
+ * use Uint8Array instead of Buffer for binary data representation ([#1928](https://github.com/applitools/eyes.sdk.javascript1/issues/1928)) ([d1472ab](https://github.com/applitools/eyes.sdk.javascript1/commit/d1472ab8fd49e9a240e99a44dbf1d180b6c7a54b))
196
+
197
+
198
+
199
+ * @applitools/core-base bumped to 1.7.1
200
+ #### Bug Fixes
201
+
202
+ * send domMapping payload with correct content encoding ([2bc8e39](https://github.com/applitools/eyes.sdk.javascript1/commit/2bc8e390de1d147d84d1de24df337b8652547b6a))
203
+ * @applitools/core bumped to 3.11.5
204
+
205
+ * @applitools/eyes bumped to 1.10.0
206
+ #### Features
207
+
208
+ * added more iOS devices ([a84311f](https://github.com/applitools/eyes.sdk.javascript1/commit/a84311f88e6f532268543a96f841ae5ad87d5659))
209
+ * 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))
210
+
211
+
212
+ #### Code Refactoring
213
+
214
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
215
+
216
+
217
+
218
+
3
219
  ## [1.20.0](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-puppeteer-v1.19.2...js/eyes-puppeteer@1.20.0) (2023-09-25)
4
220
 
5
221
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-puppeteer",
3
- "version": "1.20.0",
3
+ "version": "1.22.0",
4
4
  "description": "Applitools Eyes SDK for Puppeteer",
5
5
  "keywords": [
6
6
  "eyes-puppeteer",
@@ -34,13 +34,13 @@
34
34
  "up:framework": "yarn add --dev --caret puppeteer${APPLITOOLS_FRAMEWORK_VERSION:+@$APPLITOOLS_FRAMEWORK_VERSION}"
35
35
  },
36
36
  "dependencies": {
37
- "@applitools/eyes": "1.9.1",
38
- "@applitools/spec-driver-puppeteer": "1.2.2"
37
+ "@applitools/eyes": "1.11.0",
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;