@applitools/driver 1.14.1 → 1.14.2

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,32 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.14.2](https://github.com/applitools/eyes.sdk.javascript1/compare/js/driver@1.14.1...js/driver@1.14.2) (2023-09-25)
4
+
5
+
6
+ ### Code Refactoring
7
+
8
+ * 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))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * @applitools/utils bumped to 1.6.1
14
+ #### Bug Fixes
15
+
16
+ * add browser entry point declaration and test ([#1933](https://github.com/applitools/eyes.sdk.javascript1/issues/1933)) ([5ba0720](https://github.com/applitools/eyes.sdk.javascript1/commit/5ba0720d62a9af8a9a2e1c2437c569e6ab19afd8))
17
+
18
+
19
+ #### Code Refactoring
20
+
21
+ * 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))
22
+ * @applitools/logger bumped to 2.0.11
23
+ #### Bug Fixes
24
+
25
+ * add browser entry point declaration and test ([#1933](https://github.com/applitools/eyes.sdk.javascript1/issues/1933)) ([5ba0720](https://github.com/applitools/eyes.sdk.javascript1/commit/5ba0720d62a9af8a9a2e1c2437c569e6ab19afd8))
26
+
27
+
28
+
29
+
3
30
  ## [1.14.1](https://github.com/applitools/eyes.sdk.javascript1/compare/js/driver@1.14.0...js/driver@1.14.1) (2023-09-21)
4
31
 
5
32
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/driver",
3
- "version": "1.14.1",
3
+ "version": "1.14.2",
4
4
  "description": "Applitools universal framework wrapper",
5
5
  "keywords": [
6
6
  "applitools",
@@ -73,9 +73,9 @@
73
73
  "test": "run --top-level mocha './test/**/*.spec.ts'"
74
74
  },
75
75
  "dependencies": {
76
- "@applitools/logger": "2.0.10",
76
+ "@applitools/logger": "2.0.11",
77
77
  "@applitools/snippets": "2.4.24",
78
- "@applitools/utils": "1.6.0",
78
+ "@applitools/utils": "1.6.1",
79
79
  "semver": "7.5.4"
80
80
  },
81
81
  "devDependencies": {
package/types/driver.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { Size, Region } from '@applitools/utils';
3
2
  import type { DriverInfo, Capabilities, UserAgent, Environment, Viewport, Features, ScreenOrientation, Cookie } from './types';
4
3
  import { type Selector } from './selector';
@@ -72,7 +71,7 @@ export declare class Driver<T extends SpecType> {
72
71
  switchToChildContext(...references: ContextReference<T>[]): Promise<Context<T>>;
73
72
  normalizeRegion(region: Region): Promise<Region>;
74
73
  getRegionInViewport(context: Context<T>, region: Region): Promise<Region>;
75
- takeScreenshot(): Promise<Buffer>;
74
+ takeScreenshot(): Promise<Uint8Array>;
76
75
  getViewportSize(): Promise<Size>;
77
76
  setViewportSize(size: Size): Promise<void>;
78
77
  getDisplaySize(): Promise<Size | undefined>;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { Size } from '@applitools/utils';
3
2
  import type { DriverInfo } from '../types';
4
3
  export type Driver = any;
@@ -28,7 +27,7 @@ export declare function getElementText(_driver: Driver, element: Element): Promi
28
27
  export declare function mainContext(driver: Driver): Promise<Driver>;
29
28
  export declare function parentContext(driver: Driver): Promise<Driver>;
30
29
  export declare function childContext(driver: Driver, element: Element): Promise<Driver>;
31
- export declare function takeScreenshot(driver: Driver): Promise<Buffer | string>;
30
+ export declare function takeScreenshot(driver: Driver): Promise<Uint8Array | string>;
32
31
  export declare function getDriverInfo(driver: Driver): Promise<DriverInfo>;
33
32
  export declare function getWindowSize(driver: Driver): Promise<Size>;
34
33
  export declare function setWindowSize(driver: Driver, size: Size): Promise<void>;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { Size, Region } from '@applitools/utils';
3
2
  import type { DriverInfo, Capabilities, ScreenOrientation, Cookie } from './types';
4
3
  import { type CommonSelector } from './selector';
@@ -124,7 +123,7 @@ export interface SpecDriver<T extends SpecType> {
124
123
  getUrl?(driver: T['driver']): Promise<string>;
125
124
  visit?(driver: T['driver'], url: string): Promise<void>;
126
125
  performAction?(driver: T['driver'], steps: any[]): Promise<void>;
127
- takeScreenshot(driver: T['driver']): Promise<Buffer | string>;
126
+ takeScreenshot(driver: T['driver']): Promise<Uint8Array | string>;
128
127
  getCurrentWorld?(driver: T['driver']): Promise<string>;
129
128
  getWorlds?(driver: T['driver']): Promise<string[]>;
130
129
  switchWorld?(driver: T['driver'], id: string): Promise<void>;