Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: microlinkhq/metascraper
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.53.0
Choose a base ref
...
head repository: microlinkhq/metascraper
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.54.0
Choose a head ref
  • 6 commits
  • 84 files changed
  • 3 contributors

Commits on Aug 2, 2026

  1. fix: keep the favicon body under reachable-url v2 (#865)

    v2 cancels the download once the headers answer reachability, so `body`
    comes back undefined whenever a server ignores `Range`. The resolver
    drops every favicon it probes without one, and nine tests here fail on
    the bump alone.
    
    `maxBody: 1` keeps the byte the check reads, and it is the byte the range
    request already asks for, so nothing extra is downloaded.
    
    Reading one byte narrows what an absent body means. It used to cover a
    transfer that stopped part way, because the whole entity was downloaded
    anyway; now it covers a server that announces an image and sends none of
    it. Keeping the wider meaning would have meant either buffering whatever
    a guessed URL answers with, or a size bound standing in for completion,
    and a favicon whose transfer wobbled is not worth either: the consumer
    refetches the URL regardless.
    
    `undefined if body is not present` asserts the narrower guarantee, and
    still fails without the check it covers.
    
    
    Claude-Session: https://claude.ai/code/session_018JDsM3McLV5LtR3rFd97Sb
    
    Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
    Kikobeats and claude authored Aug 2, 2026
    Configuration menu
    Copy the full SHA
    ce4536f View commit details
    Browse the repository at this point in the history
  2. chore(release): v5.53.1

    Kikobeats committed Aug 2, 2026
    Configuration menu
    Copy the full SHA
    12d78df View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2026

  1. ci(dependabot): ignore actions minor/patch

    Floating major tags already pick up those updates at runtime.
    Kikobeats committed Aug 3, 2026
    Configuration menu
    Copy the full SHA
    075aaf2 View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2026

  1. Configuration menu
    Copy the full SHA
    9c5e77b View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2026

  1. feat(helpers): add rule-level validate (like test) (#866)

    * feat(helpers): add per-call validate hook to findRule
    
    Allow callers to reject a rule result and continue to the next rule
    without throwing, so logo XSS fallthrough can skip hostile candidates.
    
    Co-authored-by: Cursor <[email protected]>
    
    * fix(helpers): scope validate hook and forward it through nested rules
    
    `validate` applied to every property, so a validator written for one
    field silently nulled unrelated ones. It now accepts an object keyed by
    property name; the function form still runs for every property.
    
    A throwing validator aborted the whole property through get-data's
    catch. It now rejects only the candidate that triggered it and the
    search resumes at the next rule, with the error logged under
    DEBUG=metascraper:find-rule.
    
    metascraper-video and metascraper-audio rebuilt the args object for
    their nested findRule calls, so validate never reached rules behind an
    iframe and per-candidate fallthrough did not happen there.
    
    Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
    Claude-Session: https://claude.ai/code/session_01VSEyFT3dw16tyvhRGVAWrx
    
    * refactor(video,audio): keep param destructuring in iframe rules
    
    Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
    Claude-Session: https://claude.ai/code/session_01VSEyFT3dw16tyvhRGVAWrx
    
    * refactor(helpers): share withIframe for audio/video
    
    Deduplicate nested iframe probing so validate keeps one code path,
    and tighten docs/tests from review feedback.
    
    Co-authored-by: Cursor <[email protected]>
    
    * refactor(helpers): move validate onto rules like test
    
    Scrape-time validate mixed a second control plane into the call.
    Bundle/rule validate matches test and needs no args forwarding.
    
    Co-authored-by: Cursor <[email protected]>
    
    * fix(metascraper): keep pkgName on inline mergeRules
    
    loadRules already copied bundle pkgName; mergeRules dropped it so
    inline bundles lost debug names and pkgName could become a prop key.
    
    Co-authored-by: Cursor <[email protected]>
    
    * feat(helpers): pass find-rule debug logger to validate
    
    Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
    Claude-Session: https://claude.ai/code/session_01VSEyFT3dw16tyvhRGVAWrx
    
    * refactor: simplify validate plumbing and its tests
    
    Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
    Claude-Session: https://claude.ai/code/session_01VSEyFT3dw16tyvhRGVAWrx
    
    * refactor: drop redundant meta guard and duplicated iframe tests
    
    Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
    Claude-Session: https://claude.ai/code/session_01VSEyFT3dw16tyvhRGVAWrx
    
    * test(helpers): require package entry like sibling tests
    
    Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
    Claude-Session: https://claude.ai/code/session_01VSEyFT3dw16tyvhRGVAWrx
    
    ---------
    
    Co-authored-by: Cursor <[email protected]>
    Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
    3 people authored Aug 7, 2026
    Configuration menu
    Copy the full SHA
    d40856b View commit details
    Browse the repository at this point in the history
  2. chore(release): v5.54.0

    Kikobeats committed Aug 7, 2026
    Configuration menu
    Copy the full SHA
    23db320 View commit details
    Browse the repository at this point in the history
Loading