Skip to content

v0.1.13: Structured empty references, input validation, timeout enforcement

Choose a tag to compare

@cyanheads cyanheads released this 04 Jun 08:01
v0.1.13
a066dcc

Structured empty references, input validation, timeout enforcement

Three bugs resolved in this patch.

Fixed:

  • crossref_get_references: no longer throws NotFound when a DOI resolves but has no indexed
    reference list (#22). Returns { doi, referenceCount: 0, references: [] } and surfaces a
    coverage notice via ctx.enrich.notice().

  • crossref_search_journals issn, crossref_search_funders funder_doi: Zod regex validators
    added — malformed inputs fail at the tool boundary with ValidationError before any upstream
    call; patterns surface in JSON Schema (#25).

  • CrossrefService.request(): CROSSREF_TIMEOUT_MS now enforced on every upstream fetch via
    AbortSignal.any([ctx.signal, AbortSignal.timeout(timeoutMs)]) (#23).

110 tests pass; bun run devcheck clean.