@percy/core 1.30.5 → 1.30.6-beta.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/dist/config.js CHANGED
@@ -16,6 +16,10 @@ export const configSchema = {
16
16
  },
17
17
  labels: {
18
18
  type: 'string'
19
+ },
20
+ skipBaseBuild: {
21
+ type: 'boolean',
22
+ default: false
19
23
  }
20
24
  }
21
25
  },
@@ -280,6 +284,10 @@ export const configSchema = {
280
284
  type: 'integer',
281
285
  minimum: 1
282
286
  },
287
+ snapshotConcurrency: {
288
+ type: 'integer',
289
+ minimum: 1
290
+ },
283
291
  retry: {
284
292
  type: 'boolean',
285
293
  default: false
package/dist/discovery.js CHANGED
@@ -499,7 +499,9 @@ export function createDiscoveryQueue(percy) {
499
499
  },
500
500
  saveResource: r => {
501
501
  snapshot.resources.set(r.url, r);
502
- cache.set(r.url, r);
502
+ if (!snapshot.discovery.disableCache) {
503
+ cache.set(r.url, r);
504
+ }
503
505
  }
504
506
  }
505
507
  });
package/dist/percy.js CHANGED
@@ -151,16 +151,13 @@ export class Percy {
151
151
  // replace arrays instead of merging
152
152
  return Array.isArray(next) && [path, next];
153
153
  });
154
-
155
- // adjust queue concurrency
156
- let {
157
- concurrency
158
- } = this.config.discovery;
154
+ const concurrency = this.config.discovery.concurrency;
155
+ const snapshotConcurrency = parseInt(process.env.PERCY_SNAPSHOT_UPLOAD_CONCURRENCY) || concurrency;
159
156
  _classPrivateFieldGet(_discovery, this).set({
160
157
  concurrency
161
158
  });
162
159
  _classPrivateFieldGet(_snapshots, this).set({
163
- concurrency
160
+ concurrency: snapshotConcurrency
164
161
  });
165
162
  return this.config;
166
163
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/core",
3
- "version": "1.30.5",
3
+ "version": "1.30.6-beta.0",
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": "latest"
12
+ "tag": "beta"
13
13
  },
14
14
  "engines": {
15
15
  "node": ">=14"
@@ -43,11 +43,11 @@
43
43
  "test:types": "tsd"
44
44
  },
45
45
  "dependencies": {
46
- "@percy/client": "1.30.5",
47
- "@percy/config": "1.30.5",
48
- "@percy/dom": "1.30.5",
49
- "@percy/logger": "1.30.5",
50
- "@percy/webdriver-utils": "1.30.5",
46
+ "@percy/client": "1.30.6-beta.0",
47
+ "@percy/config": "1.30.6-beta.0",
48
+ "@percy/dom": "1.30.6-beta.0",
49
+ "@percy/logger": "1.30.6-beta.0",
50
+ "@percy/webdriver-utils": "1.30.6-beta.0",
51
51
  "content-disposition": "^0.5.4",
52
52
  "cross-spawn": "^7.0.3",
53
53
  "extract-zip": "^2.0.1",
@@ -60,5 +60,5 @@
60
60
  "ws": "^8.17.1",
61
61
  "yaml": "^2.4.1"
62
62
  },
63
- "gitHead": "bf1c4a33777ea241f1f0256a70068d34983812a7"
63
+ "gitHead": "31c3cd95c0edcba3a3dcc04154481f6fc2e5787c"
64
64
  }