snapdrift 0.8.2 → 0.9.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/CHANGELOG.md +48 -0
- package/README.md +7 -2
- package/action.yml +10 -2
- package/actions/pr-diff/action.yml +92 -52
- package/actions/resolve-baseline/action.yml +36 -50
- package/actions/scope/action.yml +24 -1
- package/bin/snapdrift.mjs +6 -3
- package/docs/contracts.md +106 -7
- package/docs/integration-guide.md +48 -9
- package/docs/workflow-templates/refresh-baseline-on-merge.yml +1 -1
- package/lib/cli.mjs +125 -41
- package/lib/init-from-action.mjs +24 -13
- package/lib/outage-policy.mjs +35 -2
- package/lib/provider.mjs +20 -2
- package/lib/resolve-baseline-artifact.mjs +147 -0
- package/lib/resolve-baseline-paths.mjs +40 -0
- package/lib/snap-provider.mjs +896 -280
- package/package.json +13 -9
- package/types/visual-diff-types.d.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "snapdrift",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "SnapDrift captures, compares, and reports UI drift for Playwright-based app checks.",
|
|
@@ -25,12 +25,15 @@
|
|
|
25
25
|
"scripts": {
|
|
26
26
|
"lint": "eslint .",
|
|
27
27
|
"typecheck": "tsc --project tsconfig.json",
|
|
28
|
+
"check:package-types": "node scripts/check-package-types.mjs",
|
|
29
|
+
"check:package-runtime": "node scripts/check-package-runtime.mjs",
|
|
28
30
|
"validate:actions": "node scripts/validate-actions.mjs",
|
|
29
31
|
"validate:release": "node scripts/validate-release.mjs",
|
|
32
|
+
"check:pin-stale": "node scripts/check-pin-stale.mjs",
|
|
30
33
|
"test": "NODE_OPTIONS='--experimental-vm-modules' jest",
|
|
31
34
|
"test:coverage": "NODE_OPTIONS='--experimental-vm-modules' jest --coverage --runInBand",
|
|
32
35
|
"pack:check": "npm pack --dry-run --cache .npm-cache",
|
|
33
|
-
"ci": "npm run lint && npm run typecheck && npm run validate:actions && npm run test:coverage && npm run pack:check"
|
|
36
|
+
"ci": "npm run lint && npm run typecheck && npm run check:package-types && npm run check:package-runtime && npm run validate:actions && npm run test:coverage && npm run pack:check"
|
|
34
37
|
},
|
|
35
38
|
"engines": {
|
|
36
39
|
"node": ">=22"
|
|
@@ -41,7 +44,6 @@
|
|
|
41
44
|
"devDependencies": {
|
|
42
45
|
"@eslint/js": "^10.0.1",
|
|
43
46
|
"@types/jest": "^30.0.0",
|
|
44
|
-
"@types/js-yaml": "^4.0.9",
|
|
45
47
|
"@types/node": "^26.1.0",
|
|
46
48
|
"@types/pngjs": "^6.0.5",
|
|
47
49
|
"eslint": "^10.2.0",
|
|
@@ -80,9 +82,11 @@
|
|
|
80
82
|
"./lib/provider.mjs": "./lib/provider.mjs",
|
|
81
83
|
"./lib/outage-policy.mjs": "./lib/outage-policy.mjs",
|
|
82
84
|
"./lib/snap-provider.mjs": "./lib/snap-provider.mjs",
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
"./lib/migrate-baselines.mjs": "./lib/migrate-baselines.mjs",
|
|
86
|
+
"./lib/init-from-action.mjs": "./lib/init-from-action.mjs",
|
|
87
|
+
"./lib/resolve-baseline-paths.mjs": "./lib/resolve-baseline-paths.mjs",
|
|
88
|
+
"./lib/resolve-baseline-artifact.mjs": "./lib/resolve-baseline-artifact.mjs"
|
|
89
|
+
},
|
|
86
90
|
"files": [
|
|
87
91
|
"action.yml",
|
|
88
92
|
"actions/",
|
|
@@ -98,11 +102,11 @@
|
|
|
98
102
|
"registry": "https://registry.npmjs.org"
|
|
99
103
|
},
|
|
100
104
|
"dependencies": {
|
|
101
|
-
"@snapdrift/adapter-fs": "^1.0
|
|
105
|
+
"@snapdrift/adapter-fs": "^1.1.0",
|
|
102
106
|
"@snapdrift/adapter-report-md": "^1.1.0",
|
|
103
107
|
"@snapdrift/compare-core": "^1.0.0",
|
|
104
|
-
"@snapdrift/manifest": "^1.
|
|
105
|
-
"js-yaml": "^5.
|
|
108
|
+
"@snapdrift/manifest": "^1.3.0",
|
|
109
|
+
"js-yaml": "^5.4.0",
|
|
106
110
|
"playwright": "^1.59.1",
|
|
107
111
|
"pngjs": "^7.0.0"
|
|
108
112
|
}
|