Skip to content

v5.7.7

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Dec 10:05

DonSeTch v5.7.7

Fixed

  • Prevent background photo galleries and low-coverage widgets from hijacking pages as # replay <host> (#498):
    • Grounded, coverage-gated contract mining (crates/fetch/src/mine.rs): restricted link matching to actual navigational links (a[href], area[href], ignoring <img src> / <script src> / <iframe src>), skipped script/style and telemetry/analytics transcript entries, required the chosen title_field to appear in visible text, enforced minimum visible-text coverage (>= 25% of <main> or document text and >= 150 matched chars on pages >= 400 chars, plus >= 2 matched items on 4+ item arrays) for Collection contracts, and added proportional coverage / multi-field grounding gates for HtmlFragment and EntityJson.
    • Reject bare media galleries & auto-heal stale state: refused linkless, detail-free photo-gallery / sponsored image-strip arrays (such as Unsplash/Getty creative strips or park media carousels) in both mine.rs and synthesize.rs, and auto-dropped any pre-existing media-gallery contract in v5/state.json inside replay_contract before making a network call.
    • Stop circular transcript-fusion self-confirmation (crates/fetch/src/fetch.rs): verified the V8-rendered DOM first so fuse_dom_and_transcript no longer injects background widgets into pages that already pass the contract with >= 600 chars, and mined against the real rendered DOM whenever it has >= 400 chars of its own substance.
    • Preserve cookie-unlocked full HTML in Tier-2 browser harvest (src/fetch/browser/harvest.rs): skipped mining a route = "replay" contract when harvested cookies alone already unlocked the full HTML document as Class::Content + ContentOk.
    • Contract shape & extraction polish: expanded parameter_segment route-prefix exclusions (articles, photos, images, products, categories, parks, campgrounds, etc.) across all path depths, guarded empty item_keys intersections, fixed a leading-space typo in synthesize.rs's security_report skip list, and fixed the fuzz/fuzz_targets/extract.rs Cow<'_, str> type mismatch that broke the nightly fuzz (extract) CI job.