@percy/core 1.30.9-beta.3 → 1.30.9

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/dist/config.js CHANGED
@@ -26,6 +26,33 @@ export const configSchema = {
26
26
  snapshot: {
27
27
  type: 'object',
28
28
  additionalProperties: false,
29
+ definitions: {
30
+ configurationProperties: {
31
+ type: 'object',
32
+ additionalProperties: false,
33
+ properties: {
34
+ diffSensitivity: {
35
+ type: 'integer',
36
+ minimum: 0,
37
+ maximum: 4
38
+ },
39
+ imageIgnoreThreshold: {
40
+ type: 'number',
41
+ minimum: 0,
42
+ maximum: 1
43
+ },
44
+ carouselsEnabled: {
45
+ type: 'boolean'
46
+ },
47
+ bannersEnabled: {
48
+ type: 'boolean'
49
+ },
50
+ adsEnabled: {
51
+ type: 'boolean'
52
+ }
53
+ }
54
+ }
55
+ },
29
56
  properties: {
30
57
  widths: {
31
58
  type: 'array',
@@ -223,28 +250,7 @@ export const configSchema = {
223
250
  enum: ['standard', 'layout', 'ignore', 'intelliignore']
224
251
  },
225
252
  configuration: {
226
- type: 'object',
227
- additionalProperties: false,
228
- properties: {
229
- diffSensitivity: {
230
- type: 'integer',
231
- minimum: 0
232
- },
233
- imageIgnoreThreshold: {
234
- type: 'number',
235
- minimum: 0,
236
- maximum: 1
237
- },
238
- carouselsEnabled: {
239
- type: 'boolean'
240
- },
241
- bannersEnabled: {
242
- type: 'boolean'
243
- },
244
- adsEnabled: {
245
- type: 'boolean'
246
- }
247
- }
253
+ $ref: '#/definitions/configurationProperties'
248
254
  },
249
255
  assertion: {
250
256
  type: 'object',
@@ -260,6 +266,13 @@ export const configSchema = {
260
266
  },
261
267
  required: ['algorithm']
262
268
  }
269
+ },
270
+ algorithm: {
271
+ type: 'string',
272
+ enum: ['standard', 'layout', 'intelliignore']
273
+ },
274
+ algorithmConfiguration: {
275
+ $ref: '#/definitions/configurationProperties'
263
276
  }
264
277
  }
265
278
  },
@@ -469,6 +482,12 @@ export const snapshotSchema = {
469
482
  regions: {
470
483
  $ref: '/config/snapshot#/properties/regions'
471
484
  },
485
+ algorithm: {
486
+ $ref: '/config/snapshot#/properties/algorithm'
487
+ },
488
+ algorithmConfiguration: {
489
+ $ref: '/config/snapshot#/properties/algorithmConfiguration'
490
+ },
472
491
  scopeOptions: {
473
492
  $ref: '/config/snapshot#/properties/scopeOptions'
474
493
  },
@@ -1015,6 +1034,12 @@ export const comparisonSchema = {
1015
1034
  regions: {
1016
1035
  $ref: '/config/snapshot#/properties/regions'
1017
1036
  },
1037
+ algorithm: {
1038
+ $ref: '/config/snapshot#/properties/algorithm'
1039
+ },
1040
+ algorithmConfiguration: {
1041
+ $ref: '/config/snapshot#/properties/algorithmConfiguration'
1042
+ },
1018
1043
  consideredElementsData: {
1019
1044
  type: 'object',
1020
1045
  additionalProperties: false,
package/dist/utils.js CHANGED
@@ -53,6 +53,8 @@ export function percyAutomateRequestHandler(req, percy) {
53
53
  considerRegionSelectors: (_percy$config$snapsho5 = percy.config.snapshot.considerRegions) === null || _percy$config$snapsho5 === void 0 ? void 0 : _percy$config$snapsho5.considerRegionSelectors,
54
54
  considerRegionXpaths: (_percy$config$snapsho6 = percy.config.snapshot.considerRegions) === null || _percy$config$snapsho6 === void 0 ? void 0 : _percy$config$snapsho6.considerRegionXpaths,
55
55
  regions: percy.config.snapshot.regions,
56
+ algorithm: percy.config.snapshot.algorithm,
57
+ algorithmConfiguration: percy.config.snapshot.algorithmConfiguration,
56
58
  sync: percy.config.snapshot.sync,
57
59
  version: 'v2'
58
60
  }, camelCasedOptions], (path, prev, next) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/core",
3
- "version": "1.30.9-beta.3",
3
+ "version": "1.30.9",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "publishConfig": {
11
11
  "access": "public",
12
- "tag": "beta"
12
+ "tag": "latest"
13
13
  },
14
14
  "engines": {
15
15
  "node": ">=14"
@@ -43,12 +43,12 @@
43
43
  "test:types": "tsd"
44
44
  },
45
45
  "dependencies": {
46
- "@percy/client": "1.30.9-beta.3",
47
- "@percy/config": "1.30.9-beta.3",
48
- "@percy/dom": "1.30.9-beta.3",
49
- "@percy/logger": "1.30.9-beta.3",
50
- "@percy/monitoring": "1.30.9-beta.3",
51
- "@percy/webdriver-utils": "1.30.9-beta.3",
46
+ "@percy/client": "1.30.9",
47
+ "@percy/config": "1.30.9",
48
+ "@percy/dom": "1.30.9",
49
+ "@percy/logger": "1.30.9",
50
+ "@percy/monitoring": "1.30.9",
51
+ "@percy/webdriver-utils": "1.30.9",
52
52
  "content-disposition": "^0.5.4",
53
53
  "cross-spawn": "^7.0.3",
54
54
  "extract-zip": "^2.0.1",
@@ -61,5 +61,5 @@
61
61
  "ws": "^8.17.1",
62
62
  "yaml": "^2.4.1"
63
63
  },
64
- "gitHead": "06ceb56e04806677d41a22eb1ccbee81a8d32c15"
64
+ "gitHead": "bb6e994542280596015cb57f884fe3359be01c22"
65
65
  }