@percy/core 1.32.0-beta.9 → 1.32.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 (2) hide show
  1. package/dist/snapshot.js +18 -0
  2. package/package.json +10 -10
package/dist/snapshot.js CHANGED
@@ -476,6 +476,21 @@ export function createSnapshotsQueue(percy) {
476
476
  });
477
477
  await runDoctorOnFailure(percy);
478
478
  } else if ((_build2 = build) !== null && _build2 !== void 0 && _build2.id) {
479
+ if (build.layoutUsed) {
480
+ percy.log.warn('Tip: VRA is Percy\'s recommended visual review mode — more accurate and adaptable than Layout. Learn more: https://www.browserstack.com/docs/percy/ai-agents/visual-review-agent/overview.');
481
+
482
+ // instrument the recommendation; telemetry must never fail a build
483
+ try {
484
+ await percy.client.sendBuildEvents(build.id, {
485
+ message: 'VRA recommendation shown for a build using Layout review mode'
486
+ }, {}, {
487
+ eventName: 'percy_cli_vra_recommendation_emitted',
488
+ category: 'percy:cli'
489
+ });
490
+ } catch (err) {
491
+ percy.log.debug('VRA recommendation telemetry failed', err);
492
+ }
493
+ }
479
494
  await percy.client.finalizeBuild(build.id);
480
495
  percy.log.info(`Finalized build #${build.number}: ${build.url}`, {
481
496
  build
@@ -502,6 +517,9 @@ export function createSnapshotsQueue(percy) {
502
517
  meta
503
518
  } = snapshot;
504
519
 
520
+ // track layout usage to tip about VRA when the build is finalized
521
+ if (snapshot.enableLayout) build.layoutUsed = true;
522
+
505
523
  // log immediately when not deferred or dry-running
506
524
  if (!percy.deferUploads) percy.log.info(`Snapshot taken: ${snapshotLogName(name, meta)}`, meta);
507
525
  if (percy.dryRun) percy.log.info(`Snapshot found: ${snapshotLogName(name, meta)}`, meta);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/core",
3
- "version": "1.32.0-beta.9",
3
+ "version": "1.32.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": "latest"
13
13
  },
14
14
  "engines": {
15
15
  "node": ">=14"
@@ -46,12 +46,12 @@
46
46
  "dependencies": {
47
47
  "@grpc/grpc-js": "^1.14.3",
48
48
  "@grpc/proto-loader": "^0.8.0",
49
- "@percy/client": "1.32.0-beta.9",
50
- "@percy/config": "1.32.0-beta.9",
51
- "@percy/dom": "1.32.0-beta.9",
52
- "@percy/logger": "1.32.0-beta.9",
53
- "@percy/monitoring": "1.32.0-beta.9",
54
- "@percy/webdriver-utils": "1.32.0-beta.9",
49
+ "@percy/client": "1.32.0",
50
+ "@percy/config": "1.32.0",
51
+ "@percy/dom": "1.32.0",
52
+ "@percy/logger": "1.32.0",
53
+ "@percy/monitoring": "1.32.0",
54
+ "@percy/webdriver-utils": "1.32.0",
55
55
  "busboy": "^1.6.0",
56
56
  "content-disposition": "^0.5.4",
57
57
  "cross-spawn": "^7.0.3",
@@ -67,7 +67,7 @@
67
67
  "yaml": "^2.4.1"
68
68
  },
69
69
  "optionalDependencies": {
70
- "@percy/cli-doctor": "1.32.0-beta.9"
70
+ "@percy/cli-doctor": "1.32.0"
71
71
  },
72
- "gitHead": "cc176ec0fa5e36551db037a14186ea8b7cd07ff6"
72
+ "gitHead": "87f5058139cf3f9a44cd6649d797e6f95571b749"
73
73
  }