Skip to content

v2.11.1

Choose a tag to compare

@sayakmukherjee080 sayakmukherjee080 released this 06 Nov 10:24
· 16 commits to main since this release

Added

  • drift, baselinePath and failOnDrift store a per-route baseline and report added,
    removed, moved, changed, HTML-only and status-changed routes.
  • htmlHash for the exact written file and contentHash for 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.drift with per-route driftStatus and driftReasons, plus a baseline schema in
    docs/report.md. The JSON report version is now 2.
  • sitemapLastmod adds <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-status and
    --sitemap-lastmod.

Changed

  • Baselines are written only after a complete, non-dry run. Incomplete builds and failed
    failOnDrift runs keep the old baseline and preserve previous sitemap dates.
  • A baseline is kept outside the output directory by default so cleanDestination cannot
    delete it.

Fixed

  • Sitemap lastmod uses the real build start instead of freezeTime, so a fixed content
    clock no longer prevents deployment dates from advancing.
  • A failed failOnDrift run 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