Skip to content

v1.1.0

Latest

Choose a tag to compare

@github-actions github-actions released this 13 Nov 07:57
2dc4b7f
  • Added CachedPreviewProvider, a PSR-16 (psr/simple-cache ^3.0, suggested)
    decorator over any LinkPreviewer: successful previews are cached under a
    hash of the cache namespace and URL (default TTL 1 h, configurable; null
    is the backend's default; cacheNamespace argument, default 'preview',
    scopes entries so differently configured decorators can share a backend),
    failed fetches are never cached, and fromHtml() passes through uncached.
    A garbage cache value is a miss, never an error; a cache backend that
    throws on read or write never fails the preview.
  • Mutation testing now counts uncovered code (composer mutation runs Infection
    with --with-uncovered). Tests name every class they exercise in #[Covers],
    and new tests pin diagnostics, JSON-LD ranking and merging, HTML document
    helpers and the small JSON/oEmbed helpers. No changes in src/.