@percy/core 1.30.5-beta.0 → 1.31.0-alpha.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
@@ -280,6 +280,10 @@ export const configSchema = {
280
280
  type: 'integer',
281
281
  minimum: 1
282
282
  },
283
+ snapshotConcurrency: {
284
+ type: 'integer',
285
+ minimum: 1
286
+ },
283
287
  retry: {
284
288
  type: 'boolean',
285
289
  default: false
package/dist/discovery.js CHANGED
@@ -491,7 +491,9 @@ export function createDiscoveryQueue(percy) {
491
491
  },
492
492
  saveResource: r => {
493
493
  snapshot.resources.set(r.url, r);
494
- cache.set(r.url, r);
494
+ if (!snapshot.discovery.disableCache) {
495
+ cache.set(r.url, r);
496
+ }
495
497
  }
496
498
  }
497
499
  });
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
+ 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-beta.0",
3
+ "version": "1.31.0-alpha.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": "beta"
12
+ "tag": "alpha"
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-beta.0",
47
- "@percy/config": "1.30.5-beta.0",
48
- "@percy/dom": "1.30.5-beta.0",
49
- "@percy/logger": "1.30.5-beta.0",
50
- "@percy/webdriver-utils": "1.30.5-beta.0",
46
+ "@percy/client": "1.31.0-alpha.0",
47
+ "@percy/config": "1.31.0-alpha.0",
48
+ "@percy/dom": "1.31.0-alpha.0",
49
+ "@percy/logger": "1.31.0-alpha.0",
50
+ "@percy/webdriver-utils": "1.31.0-alpha.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": "46870b6b3259c3770ca2c5563ca9ad8f1d725681"
63
+ "gitHead": "c53d22eed0481ebf681db4390a575ee094003a9a"
64
64
  }