Skip to Content
🎉 ShotSweep is live! Launched on NFSFU234 Open Source Day.
DocsUpgrading to 1.3

Upgrading to 1.3

terminal
npm install -g @nfsfu234/shotsweep@latest

No command or flag was removed in 1.3. A few defaults changed, though, and they can change what your existing runs produce.

What may behave differently

ChangeWhat you may noticeWhat to do
Pages are scrolled before captureScroll-reveal sections and lazy images that used to come out blank now appear, so screenshots (and diffs against old baselines) differRe-capture your baseline with 1.3. Use --no-scroll to keep the old behaviour
A page that only misses load is captured with a warning instead of failingRuns that used to fail with Timeout 30000ms exceeded now succeed, with a warning in the manifestUse --strict-load to keep failing on it
--bearer and --header go only to the captured siteAn API on an unrelated domain no longer receives your tokenAdd --headers-all-origins if you need the old behaviour
Folder names for URLs with a port, query string or non-ASCII path changedlocalhost:3000 captures now land in localhost_3000/, and ?q= URLs get a hash suffixUpdate any script that reads screenshots by path. Use manifest.json instead of guessing paths
manifest.json entries are replaced per jobOld error entries no longer pile up on re-runsNothing. Your manifest now reflects the folder
manifest.json paths use /Windows manifests are readable on LinuxNothing
diff counts unreadable screenshots as errorsA missing or corrupt screenshot now fails the diff instead of crashing itNothing, unless you relied on the crash
A broken shotsweep.config.json stops the runA config typo is no longer silently ignoredFix the file. Unknown keys are warnings

Re-baselining

If you run shotsweep diff in CI against a stored baseline, capture a new baseline with 1.3 and commit or upload it before relying on diffs again:

terminal
shotsweep capture --sitemap https://example.com/sitemap.xml --out ./screenshots/baseline

Keep the baseline and the current run on the same ShotSweep version and runner image. Environment drift warns when they differ.

New in 1.3

Last updated on