Skip to content

v0.2.0-rc.5

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 28 Nov 22:42
v0.2.0-rc.5
234b957

Omnisnap v0.2.0-rc.5

The candidate for v0.2.0, the first stable release. rc.5 is rc.4 with a redesigned website. The omnisnap binary, the packages and the Action work as in rc.4. If this candidate passes, v0.2.0 ships the same code, with only the version strings and the docs changed.

New in rc.5

  • A new omnisnap.org. The first screen shows a real finding from rc.4's release run: one paragraph on corrosion-vst.org wraps to 7 lines in Chrome and 6 in WebKitGTK. The page also shows a screenshot of the report viewer, which links to the live demo.
  • The guides are easier to move around in. Each guide page links to the other two and lists its own sections. The schema list says what each schema describes.
  • Light and dark themes. The site follows your system's setting, and a switch in the header overrides it on every page.
  • Copy buttons and install tabs. Code blocks have a copy button that leaves out the $ prompt, and the install methods are tabs. With JavaScript off, every page still shows all its content: the install methods are listed one after another.
  • Nothing from third parties. The fonts (IBM Plex, under the SIL Open Font License) and the script are served from omnisnap.org itself. There is no analytics.

New in rc.4

  • Safari captures on machines where its window draws no text. On GitHub's macOS runners (macOS 26.7.2, Safari 27.2), Safari laid every page out, but its window drew no text and no images. When a capture's screenshot holds none of the page's text, Omnisnap now takes it again with WebDriver element screenshots of <html>, which Safari paints by another path, and keeps it if it is painted. The report lists a note for that capture. Nothing on your Mac is changed. On a machine with this fault, canvas and WebGL content stays blank in the retaken screenshot. A screenshot that is still unpainted fails as in rc.3.

New in rc.3 (not on npm or PyPI)

  • A browser that paints nothing is a failed capture. On one macOS runner image, Safari laid every page out but its screenshots held no text and no images, and Omnisnap compared them anyway, which produced false "Drawn differently" causes. Now, when fewer than 10% of a page's visible text boxes (at least 10 of them) have any ink in the screenshot, the capture fails with "the browser painted none of the page's text". It is listed under Not checked as capture failed, it produces no causes, and it counts toward exit code 3. The Action and report.yml self-tests fail on it, so a release can't publish from such a runner.
  • The report no longer prints null. It appeared in the top-left corner of every screenshot pane, and under the summary table when no engine was skipped.

Breaking changes (since 0.1.0-rc.7)

  • Selectors follow the DOM. :nth-of-type(N) is now the element's position in the page, hidden siblings included. Before, it counted only the elements Omnisnap captured, so a hidden first card made the second card's selector point at the first. Every selector is valid CSS: ids, classes and tag names are escaped like CSS.escape() (Tailwind's md:w-1/2, React's :r1:). The same element now gets the same selector in every engine, and DOM-audit findings use the same selectors as causes. A selector you recorded from a 0.1.0 candidate may change. Don't merge bundles from a 0.1.0 candidate with bundles from 0.2.0.
  • Elements inside an open shadow root are named by their shadow host. document.querySelector can't reach inside a shadow root, so the selector now selects the host. Before, it could select a different element.
  • At most three browsers run at once. A job with more engines than that captures them in groups; the baseline is always in the first group. Use --max-browsers N on omnisnap <url> and omnisnap run to change it. The job file is unchanged. For jobs with more than three engines, --json progress events come in a different order; their format is the same.

Fixes and improvements (since 0.1.0-rc.7)

  • Linux: under memory pressure, the kernel kills Omnisnap's browsers before your other processes.
  • Windows: a Firefox installed with omnisnap install firefox is now found, and omnisnap uninstall firefox waits up to a second for a Firefox that is still closing.
  • Interrupts: Ctrl-C while the baseline browser is starting exits with 4 (internal error or interrupt) instead of 2. Use --resume to finish the job.
  • GitHub Action: it runs up to four browsers at once, so macOS (Chrome, Edge, Firefox, Safari) captures in one group, about 80 s instead of about 100 s.
  • Releases: the Action and report.yml self-tests now run in the release run with the tag, and npm and PyPI publish only after both pass.

Upgrading

  • GitHub Action: change the ref to report.yml@v0.2.0-rc.5 or action@v0.2.0-rc.5. Nothing else changes.
  • npm: npm i omnisnap@0.2.0-rc.5 (it is also latest). A ^0.1.0-rc.7 range won't move by itself.
  • PyPI: pip install --pre omnisnap==0.2.0rc5.

What's Changed

  • v0.2.0-rc.5: redesigned omnisnap.org by @GerMP21 in #26

Full Changelog: v0.2.0-rc.4...v0.2.0-rc.5