barrierlab-cliv0.1.0

Changelog

Generated from CHANGELOG.md in the project repository. Never maintained twice.

Unreleased

  • addedAudit: barrierlab <url|file> fetches a page, parses it without a browser and runs the structure, semantics and stylesheet rules of a11y-rules.
  • addedOutput: text report through runemark, or --json with the a11y-report model; exit code 1 when a rule fails.
  • addedContrast: styles are computed from the page's stylesheets with style-cascade; contrast is checked where colours can be determined and reported as undetermined otherwise.
  • addedAudit: --base-url resolves linked stylesheets of a local file; --width and --dark set the media-query environment.
  • addedExit code: --fail-on review also exits 1 when a finding needs review.
  • addedInput: a stylesheet that cannot be loaded is listed under inputs in --json and in the text report, with the reason; contrast is then untested instead of passed.
  • addedFetching: page and stylesheet bodies are size-limited (10 MiB and 2 MiB).
  • addedFetching: browser-like request headers, retries with back-off, --bot and --user-agent.
  • changedAudit: parsing, stylesheet discovery (<link media>, disabled, rel=alternate, <style media>, hidden) and the cascade wiring come from a11y-static; the CLI only fetches.
  • changedDependencies: barrierlab crates come from crates.io (a11y-static 0.1, a11y-report 0.28) instead of a sibling checkout; cargo install --git works on its own.
  • changedDependencies: runemark 0.10. In a terminal, an empty NO_COLOR no longer turns colour off, and TERM=dumb does; piped output is unchanged.
  • changedDependencies: a11y-static 0.2; a sheet that cannot be loaded is passed as Sheet::failed with its reason, so the CLI no longer rewrites the report notes itself.