@applitools/nml-client 1.7.2 → 1.8.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,49 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.8.0](https://github.com/Applitools-Dev/sdk/compare/js/nml-client@1.7.5...js/nml-client@1.8.0) (2024-04-10)
4
+
5
+
6
+ ### Features
7
+
8
+ * refactor check to have a modular structure ([#2307](https://github.com/Applitools-Dev/sdk/issues/2307)) ([b9818f4](https://github.com/Applitools-Dev/sdk/commit/b9818f46e0a579ad0a4a6beaf142171aea7ce0fd))
9
+
10
+ ## [1.7.5](https://github.com/Applitools-Dev/sdk/compare/js/nml-client@1.7.4...js/nml-client@1.7.5) (2024-03-18)
11
+
12
+
13
+ ### Dependencies
14
+
15
+ * @applitools/driver bumped to 1.16.5
16
+ #### Bug Fixes
17
+
18
+ * trigger js release again ([1695f3d](https://github.com/Applitools-Dev/sdk/commit/1695f3d9967c7ab7b5d8c8637e86faa935a9047f))
19
+ * @applitools/spec-driver-webdriver bumped to 1.1.3
20
+
21
+
22
+ ## [1.7.4](https://github.com/Applitools-Dev/sdk/compare/js/nml-client@1.7.3...js/nml-client@1.7.4) (2024-03-18)
23
+
24
+
25
+ ### Dependencies
26
+
27
+ * @applitools/driver bumped to 1.16.4
28
+ #### Bug Fixes
29
+
30
+ * trigger js release ([dbc9bf8](https://github.com/Applitools-Dev/sdk/commit/dbc9bf8da3ab5d93e570881ba2c61efa47a1b342))
31
+ * @applitools/spec-driver-webdriver bumped to 1.1.2
32
+
33
+
34
+ ## [1.7.3](https://github.com/Applitools-Dev/sdk/compare/js/nml-client@1.7.2...js/nml-client@1.7.3) (2024-03-17)
35
+
36
+
37
+ ### Dependencies
38
+
39
+ * @applitools/driver bumped to 1.16.3
40
+ #### Bug Fixes
41
+
42
+ * skip execution of getCurrentWorld and getWorlds when env var is set ([#2234](https://github.com/Applitools-Dev/sdk/issues/2234)) ([3a88602](https://github.com/Applitools-Dev/sdk/commit/3a886028b0437b73dae0474408d9bb74ba940dec))
43
+ * trigger build ([acb9c88](https://github.com/Applitools-Dev/sdk/commit/acb9c88161cf55e8b1e409425b5571d69a2e1d5c))
44
+ * @applitools/spec-driver-webdriver bumped to 1.1.1
45
+
46
+
3
47
  ## [1.7.2](https://github.com/applitools/eyes.sdk.javascript1/compare/js/nml-client@1.7.1...js/nml-client@1.7.2) (2024-02-29)
4
48
 
5
49
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/nml-client",
3
- "version": "1.7.2",
3
+ "version": "1.8.0",
4
4
  "description": "Client to integrate the SDKs to the Native Mobile Library (NML)",
5
5
  "homepage": "https://applitools.com",
6
6
  "bugs": {
@@ -41,7 +41,7 @@
41
41
  "@applitools/utils": "1.7.0"
42
42
  },
43
43
  "devDependencies": {
44
- "@applitools/spec-driver-webdriver": "^1.1.0",
44
+ "@applitools/spec-driver-webdriver": "^1.1.3",
45
45
  "@applitools/test-server": "^1.2.2",
46
46
  "@applitools/test-utils": "^1.5.17",
47
47
  "@types/node": "^12.20.55",
@@ -11,7 +11,7 @@ export interface NMLRequests {
11
11
  takeSnapshots<TSnapshot extends IOSSnapshot | AndroidSnapshot = IOSSnapshot | AndroidSnapshot>(options: {
12
12
  settings: SnapshotSettings;
13
13
  logger?: Logger;
14
- }): Promise<TSnapshot[]>;
14
+ }): Promise<TSnapshot extends any ? TSnapshot[] : never>;
15
15
  }
16
16
  export declare function makeNMLRequests({ settings, logger: mainLogger, }: {
17
17
  settings: BrokerServerSettings;
@@ -8,5 +8,5 @@ type Options = {
8
8
  export declare function makeTakeSnapshots({ requests, logger: defaultLogger }: Options): <TSnapshot extends IOSSnapshot | AndroidSnapshot = IOSSnapshot | AndroidSnapshot>({ settings, logger, }: {
9
9
  settings: SnapshotSettings;
10
10
  logger?: Logger | undefined;
11
- }) => Promise<TSnapshot[]>;
11
+ }) => Promise<TSnapshot extends any ? TSnapshot[] : never>;
12
12
  export {};
package/types/types.d.ts CHANGED
@@ -12,7 +12,7 @@ export interface NMLClient {
12
12
  takeSnapshots<TSnapshot extends IOSSnapshot | AndroidSnapshot = IOSSnapshot | AndroidSnapshot>(options: {
13
13
  settings: SnapshotSettings;
14
14
  logger?: Logger;
15
- }): Promise<TSnapshot[]>;
15
+ }): Promise<TSnapshot extends any ? TSnapshot[] : never>;
16
16
  }
17
17
  export interface BrokerServerSettings {
18
18
  brokerUrl: string;