@surea11y/puppeteer 1.4.0 → 1.4.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/README.md +3 -3
- package/package.json +3 -4
package/README.md
CHANGED
|
@@ -8,9 +8,9 @@ A Puppeteer binding for [`@surea11y/core`](https://github.com/SureA11y/core) —
|
|
|
8
8
|
npm install @surea11y/puppeteer puppeteer
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
`@surea11y/core` 1.12.0 or later comes with it as a
|
|
11
|
+
`@surea11y/core` 1.12.0 or later, the engine, comes with it as a regular dependency, so the line above is all you need, whatever your package manager.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
If your project uses core directly too, to write a SARIF log or an HTML report (`@surea11y/core/sarif`, `/report`), read the rule catalogue, or keep a baseline, keep one copy of it, so those read results with the same core that produced them. A compatible range in your own `package.json` (`"@surea11y/core": "^1.12.0"`) is enough: npm installs core once. When yours can't match the binding's range, as with a linked checkout (`file:../core`) or a fork, add `"overrides": { "@surea11y/core": "$@surea11y/core" }` beside it, and the binding uses your copy, which needs to be 1.12.0 or later. 1.4.0 made core a peer dependency instead; 1.4.1 undoes that, because Yarn, npm 6 and npm with `legacy-peer-deps` don't install peers, and a project with an older core pinned couldn't install the binding at all.
|
|
14
14
|
|
|
15
15
|
Puppeteer downloads its own bundled Chrome as part of `npm install` — unlike the Playwright binding, there's no separate browser-install step needed for `npm test` to work.
|
|
16
16
|
|
|
@@ -40,7 +40,7 @@ await browser.close();
|
|
|
40
40
|
|
|
41
41
|
`results` is `@surea11y/core`'s own native result shape — see its [`OUTPUT_SCHEMA.md`](https://github.com/SureA11y/core/blob/main/docs/OUTPUT_SCHEMA.md) — not the `violations`/`passes`/`incomplete`/`inapplicable` shape used by other popular accessibility testing tools. The builder's *method names* are modeled on common conventions in this space for migration familiarity; the richer result schema is kept as-is. `results.engine.version` names the `@surea11y/core` release that produced it (such as `"1.12.0"`); quote it in a bug report.
|
|
42
42
|
|
|
43
|
-
From 1.4.0 this package needs `@surea11y/core` 1.12.0 or later, which
|
|
43
|
+
From 1.4.0 this package needs `@surea11y/core` 1.12.0 or later, which it installs with it (see [Install](#install)). Core's rules and messages change between its releases; see [What changes with `@surea11y/core` 1.12](#what-changes-with-surea11ycore-112) below and core's [changelog](https://github.com/SureA11y/core/blob/main/CHANGELOG.md).
|
|
44
44
|
|
|
45
45
|
Also see `examples/basic-scan.js` for a runnable script (`npm run example -- <url>`).
|
|
46
46
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@surea11y/puppeteer",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "Accessibility (a11y, WCAG) checks for Puppeteer scripts and tests: scan the live page with new A11yCoreBuilder({ page }).analyze() and get only proven violations, with findings that need human review listed separately.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accessibility",
|
|
@@ -45,14 +45,13 @@
|
|
|
45
45
|
"LICENSE"
|
|
46
46
|
],
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@surea11y/binding-base": "^1.4.0"
|
|
48
|
+
"@surea11y/binding-base": "^1.4.0",
|
|
49
|
+
"@surea11y/core": "^1.12.0"
|
|
49
50
|
},
|
|
50
51
|
"peerDependencies": {
|
|
51
|
-
"@surea11y/core": ">=1.12.0",
|
|
52
52
|
"puppeteer": ">=22.0.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@surea11y/core": "^1.12.0",
|
|
56
55
|
"@types/node": "^20.19.43",
|
|
57
56
|
"puppeteer": "^25.13.0",
|
|
58
57
|
"typescript": "^7.0.2"
|