@applitools/eyes-cypress 3.27.9 → 3.28.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/index.d.ts +12 -12
  3. package/package.json +8 -8
package/CHANGELOG.md CHANGED
@@ -11,6 +11,13 @@
11
11
 
12
12
 
13
13
 
14
+
15
+ ## 3.28.0 - 2022/12/28
16
+
17
+ ### Features
18
+ - Support `strictNullChecks` in TypeScript configuration, by wrapping relevant types with NonNullable
19
+ ### Bug fixes
20
+
14
21
  ## 3.27.9 - 2022/12/21
15
22
 
16
23
  ### Features
package/index.d.ts CHANGED
@@ -14,28 +14,28 @@ interface CypressCheckSettings extends api.CheckSettingsAutomationPlain<Element,
14
14
  selector?: Selector
15
15
  element?: Element
16
16
 
17
- ignore?: MaybeArray<CypressCheckSettings['ignoreRegions'][number] | LegacyRegion>
18
- layout?: MaybeArray<CypressCheckSettings['layoutRegions'][number] | LegacyRegion>
19
- content?: MaybeArray<CypressCheckSettings['contentRegions'][number] | LegacyRegion>
20
- strict?: MaybeArray<CypressCheckSettings['strictRegions'][number] | LegacyRegion>
21
- floating?: MaybeArray<CypressCheckSettings['floatingRegions'][number] | (({element: Element} | Selector | LegacyRegion) & {maxUpOffset?: number; maxDownOffset?: number; maxLeftOffset?: number; maxRightOffset?: number})>
22
- accessibility?: MaybeArray<CypressCheckSettings['accessibilityRegions'][number] | (({element: Element} | Selector | LegacyRegion) & {accessibilityType?: api.AccessibilityRegionTypePlain})>
17
+ ignore?: MaybeArray<NonNullable<CypressCheckSettings['ignoreRegions']>[number] | LegacyRegion>
18
+ layout?: MaybeArray<NonNullable<CypressCheckSettings['layoutRegions']>[number] | LegacyRegion>
19
+ content?: MaybeArray<NonNullable<CypressCheckSettings['contentRegions']>[number] | LegacyRegion>
20
+ strict?: MaybeArray<NonNullable<CypressCheckSettings['strictRegions']>[number] | LegacyRegion>
21
+ floating?: MaybeArray<NonNullable<CypressCheckSettings['floatingRegions']>[number] | (({element: Element} | Selector | LegacyRegion) & {maxUpOffset?: number; maxDownOffset?: number; maxLeftOffset?: number; maxRightOffset?: number})>
22
+ accessibility?: MaybeArray<NonNullable<CypressCheckSettings['accessibilityRegions']>[number] | (({element: Element} | Selector | LegacyRegion) & {accessibilityType?: api.AccessibilityRegionTypePlain})>
23
23
  scriptHooks?: CypressCheckSettings['hooks']
24
24
  ignoreCaret?: boolean
25
25
  ignoreDisplacements?: boolean
26
26
  }
27
27
 
28
28
  interface CypressEyesConfig extends api.ConfigurationPlain<Element, Selector> {
29
- browser?: MaybeArray<CypressEyesConfig['browsersInfo'][number] | {deviceName: string; screenOrientation?: api.ScreenOrientationPlain; name?: string}>
29
+ browser?: MaybeArray<NonNullable<CypressEyesConfig['browsersInfo']>[number] | {deviceName: string; screenOrientation?: api.ScreenOrientationPlain; name?: string}>
30
30
 
31
- batchId?: CypressEyesConfig['batch']['id']
32
- batchName?: CypressEyesConfig['batch']['name']
33
- batchSequence?: CypressEyesConfig['batch']['sequenceName']
34
- notifyOnCompletion?: CypressEyesConfig['batch']['notifyOnCompletion']
31
+ batchId?: NonNullable<CypressEyesConfig['batch']>['id']
32
+ batchName?: NonNullable<CypressEyesConfig['batch']>['name']
33
+ batchSequence?: NonNullable<CypressEyesConfig['batch']>['sequenceName']
34
+ notifyOnCompletion?: NonNullable<CypressEyesConfig['batch']>['notifyOnCompletion']
35
35
 
36
36
  envName?: CypressEyesConfig['environmentName']
37
37
 
38
- accessibilitySettings?: CypressEyesConfig['defaultMatchSettings']['accessibilitySettings']
38
+ accessibilitySettings?: NonNullable<CypressEyesConfig['defaultMatchSettings']>['accessibilitySettings']
39
39
  }
40
40
 
41
41
  declare global {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-cypress",
3
- "version": "3.27.9",
3
+ "version": "3.28.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git://github.com/applitools/eyes.sdk.javascript1.git",
@@ -56,11 +56,11 @@
56
56
  }
57
57
  },
58
58
  "dependencies": {
59
- "@applitools/core": "1.3.4",
60
- "@applitools/eyes-api": "1.11.3",
61
- "@applitools/eyes-universal": "2.17.4",
59
+ "@applitools/core": "1.3.6",
60
+ "@applitools/eyes-api": "1.11.5",
61
+ "@applitools/eyes-universal": "2.18.0",
62
62
  "@applitools/functional-commons": "1.6.0",
63
- "@applitools/logger": "1.1.35",
63
+ "@applitools/logger": "1.1.36",
64
64
  "chalk": "3.0.0",
65
65
  "semver": "7.3.8",
66
66
  "uuid": "8.3.2",
@@ -72,9 +72,9 @@
72
72
  "@applitools/scripts": "1.2.0",
73
73
  "@applitools/sdk-coverage-tests": "^2.7.10",
74
74
  "@applitools/snaptdout": "1.0.1",
75
- "@applitools/test-server": "1.1.15",
76
- "@applitools/test-utils": "1.5.4",
77
- "@applitools/utils": "1.3.21",
75
+ "@applitools/test-server": "1.1.16",
76
+ "@applitools/test-utils": "1.5.5",
77
+ "@applitools/utils": "1.3.22",
78
78
  "@types/node": "12",
79
79
  "@types/which": "^2.0.1",
80
80
  "@types/ws": "^8.2.2",