@percy/core 1.32.0-beta.9 → 1.32.1
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/snapshot.js +18 -0
- 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.
|
|
3
|
+
"version": "1.32.1",
|
|
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": "
|
|
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.
|
|
50
|
-
"@percy/config": "1.32.
|
|
51
|
-
"@percy/dom": "1.32.
|
|
52
|
-
"@percy/logger": "1.32.
|
|
53
|
-
"@percy/monitoring": "1.32.
|
|
54
|
-
"@percy/webdriver-utils": "1.32.
|
|
49
|
+
"@percy/client": "1.32.1",
|
|
50
|
+
"@percy/config": "1.32.1",
|
|
51
|
+
"@percy/dom": "1.32.1",
|
|
52
|
+
"@percy/logger": "1.32.1",
|
|
53
|
+
"@percy/monitoring": "1.32.1",
|
|
54
|
+
"@percy/webdriver-utils": "1.32.1",
|
|
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.
|
|
70
|
+
"@percy/cli-doctor": "1.32.1"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "a6c8730bc89f5ba6a562b2afe317d534fb66d6eb"
|
|
73
73
|
}
|