Skip to content

v2.7.0

Choose a tag to compare

@sayakmukherjee080 sayakmukherjee080 released this 31 Oct 04:08
· 31 commits to main since this release

Added

  • Site audit for route health, links, metadata, sitemap and CSP. Findings are report-only
    unless failOnAuditError is set; auditIgnoreLinks excludes dynamic links.
  • reportPath / --report writes a versioned JSON report with per-route records, audit,
    verification, sitemap, preload manifest, truncation and traces.
  • routesFile and routesFromSitemap seed routes from text, JSON or a sitemap. Sitemap
    indexes are followed one level, and relative paths resolve against the config file.
  • Deterministic BFS crawling when maxRoutes or routePriority is set.
    truncated.droppedRoutes lists the routes that did not fit.
  • routeOverrides for per-route timeout, wait, readiness, crawl and storage state.
  • transformHtml, sync or async, runs before preload and CSP injection.
  • Framework detection for React, Vue, Svelte and Preact, with framework-specific hydration
    messages and firstMismatch details.
  • preloadLinks for runtime chunks, fonts and the LCP image.
  • Sitemap hreflang alternates, image entries and sitemap.locs in the report.
  • Head JSON-LD, lang/dir and hreflang alternates.
  • App-declared 404 pages via <meta name="prerender-status-code" content="404">.
  • csp: 'hash' adds a meta policy with SHA-256 hashes for inline scripts and styles.
  • retries, retryDelay and traceOnError for failed renders.
  • init migration for a legacy reactSnap block.
  • CLI flags and documentation for the new options.

Changed

  • Verification reports the detected framework and uses its hydration message patterns.
  • SVG <title> elements are no longer counted as page titles.
  • Page metadata, audit findings and sitemap entries use the final HTML after transform and
    preload injection.
  • Route sources resolve relative paths against the config file. Sitemap base and origin
    handling is stricter.
  • The JSON report includes the verification summary, uses crawl acceptance order for
    order, and redacts credentials, query strings and the storage-state path.

Fixed

  • A configured notFoundRoute may return HTTP 404 and is still written as 404.html;
    verification accepts that status for the same route.
  • An explicit framework selects its hydration message patterns during verification.
  • A non-string transformHtml result fails that route with a clear error.
  • routeOverrides ignores undefined values instead of clearing base settings.
  • audit.linksChecked counts every link pair considered, and route-health findings are
    included in the audit.
  • preloadLinks does not preload scripts removed by removeScriptTags or transformHtml.
  • CSP hash mode warns when the generated policy blocks a browser request.
  • init normalises a single-string reactSnap.include.
  • The image sitemap collects srcset and <picture><source> candidates.
  • New no-op option combinations produce configuration warnings.