Repository navigation
v2.11.1
·
16 commits
to main
since this release
Added
drift,baselinePathandfailOnDriftstore a per-route baseline and report added,
removed, moved, changed, HTML-only and status-changed routes.htmlHashfor the exact written file andcontentHashfor a normalized fingerprint of
visible text, SEO metadata, links, images and JSON-LD. Ordinary script and style changes
do not count as content drift.report.driftwith per-routedriftStatusanddriftReasons, plus a baseline schema in
docs/report.md. The JSON report version is now 2.sitemapLastmodadds<lastmod>from the baseline. New and content-changed routes get the
build date; unchanged and HTML-only routes keep their previous date.- CLI flags
--drift,--baseline,--fail-on-drift,--fail-on-drift-statusand
--sitemap-lastmod.
Changed
- Baselines are written only after a complete, non-dry run. Incomplete builds and failed
failOnDriftruns keep the old baseline and preserve previous sitemap dates. - A baseline is kept outside the output directory by default so
cleanDestinationcannot
delete it.
Fixed
- Sitemap
lastmoduses the real build start instead offreezeTime, so a fixed content
clock no longer prevents deployment dates from advancing. - A failed
failOnDriftrun keeps the previous baseline, so the next run still compares
against the last accepted build.
Full changelog: https://github.com/sayakmukherjee080/snappy-prerender/blob/main/CHANGELOG.md