Skip to content

v0.2.0-rc.1

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 27 Nov 13:18
· 15 commits to main since this release
v0.2.0-rc.1
0931a83

Omnisnap v0.2.0-rc.1

The candidate for v0.2.0, the first stable release. Nothing new goes in before v0.2.0. If this candidate passes, v0.2.0 ships the same code, with only the version strings and the docs changed.

Breaking changes

  • 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

  • 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.
  • 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 from 0.1.0-rc.7

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

What's Changed

  • release.yml: make a refused npm trusted-publishing run say why by @GerMP21 in #18
  • Backlog for leaving the release candidates; npm and PyPI homepage → omnisnap.org by @GerMP21 in #19
  • v0.2.0 groundwork: Windows Firefox install, release self-tests, DOM selectors, live-browser cap by @GerMP21 in #20
  • Pre-rc.1 fixes: npm dist-tag, shadow-root selectors, baseline interrupt, Action cap by @GerMP21 in #21
  • Prepare v0.2.0-rc.1: bump every version file and pinned tag by @GerMP21 in #22

Full Changelog: v0.1.0-rc.7...v0.2.0-rc.1