stateofpixel 1.5.1 → 1.6.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Vaibhav Acharya
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # stateofpixel
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/stateofpixel)](https://www.npmjs.com/package/stateofpixel)
4
+ [![npm downloads](https://img.shields.io/npm/dm/stateofpixel)](https://www.npmjs.com/package/stateofpixel)
5
+ [![node](https://img.shields.io/node/v/stateofpixel)](https://www.npmjs.com/package/stateofpixel)
6
+ [![license](https://img.shields.io/github/license/VaibhavAcharya/stateofpixel-cli)](https://github.com/VaibhavAcharya/stateofpixel-cli/blob/main/LICENSE)
7
+
3
8
  Catch UI regressions before they merge. Upload a folder of screenshots, review the changes on [stateofpixel.com](https://stateofpixel.com), and a GitHub check waits until every change is approved. [Require the check](https://stateofpixel.com/docs/checks#require-it) to block the merge until then.
4
9
 
5
10
  ![The stateofpixel review page, with the baseline and the new screenshot side by side and the changed pixels in green](https://stateofpixel.com/readme/review-page.png)
@@ -88,3 +93,7 @@ See [Storybook](https://stateofpixel.com/docs/storybook).
88
93
  - [`compare <dir> <baseline-dir>`](https://stateofpixel.com/docs/cli#compare): compare two folders locally and write an HTML report
89
94
 
90
95
  Requires Node 20 or newer.
96
+
97
+ ## Source
98
+
99
+ The source is at [VaibhavAcharya/stateofpixel-cli](https://github.com/VaibhavAcharya/stateofpixel-cli), a read-only mirror under the MIT license. Open an [issue](https://github.com/VaibhavAcharya/stateofpixel-cli/issues) for bugs and feature requests. Pull requests are closed.
package/dist/index.mjs CHANGED
@@ -8,7 +8,7 @@ import { createReadStream } from "node:fs";
8
8
  import { createServer } from "node:http";
9
9
 
10
10
  //#region package.json
11
- var version = "1.5.1";
11
+ var version = "1.6.0";
12
12
 
13
13
  //#endregion
14
14
  //#region src/compare.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stateofpixel",
3
- "version": "1.5.1",
3
+ "version": "1.6.0",
4
4
  "description": "Catch UI regressions before they merge. Visual regression testing for GitHub pull requests.",
5
5
  "keywords": [
6
6
  "visual-regression",
@@ -16,7 +16,12 @@
16
16
  "ci"
17
17
  ],
18
18
  "homepage": "https://stateofpixel.com",
19
- "license": "UNLICENSED",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/VaibhavAcharya/stateofpixel-cli.git"
22
+ },
23
+ "bugs": "https://github.com/VaibhavAcharya/stateofpixel-cli/issues",
24
+ "license": "MIT",
20
25
  "type": "module",
21
26
  "bin": {
22
27
  "stateofpixel": "dist/index.mjs"
@@ -56,9 +61,12 @@
56
61
  },
57
62
  "devDependencies": {
58
63
  "@playwright/test": "^1.63.0",
64
+ "@types/node": "^24.0.0",
59
65
  "@types/pngjs": "^6.0.5",
60
66
  "playwright": "^1.63.0",
61
- "tsdown": "^0.23.0"
67
+ "tsdown": "^0.23.0",
68
+ "typescript": "^6.0.3",
69
+ "vitest": "^5.0.1"
62
70
  },
63
71
  "optionalDependencies": {
64
72
  "odiff-bin": "^4.5.0"