Skip to content

v0.4.2: content[] truncation parity — recalls, adverse events, device clearances, drug approvals, drug shortages, NDC lookup

Choose a tag to compare

@cyanheads cyanheads released this 11 Jul 10:09
v0.4.2
88fae2e

content[] truncation parity — recalls, adverse events, device clearances, drug approvals, drug shortages, NDC lookup

Removes the shared 300-char field-renderer cap and six tool-specific truncation sites so content[] matches the full structuredContent data already exposed.

Fixed:

  • formatRemainingFields (format-utils.ts) dropped its 300-char default cap on the catch-all "remaining fields" renderer shared by every search tool's format(). (#21)
  • openfda_lookup_ndc renders every packaging[] entry (was capped at 5).
  • openfda_search_adverse_events renders the full mdr_text[].text narrative (was 500 chars) and JSON fallback dump (was 1000 chars).
  • openfda_search_device_clearances renders the full statement_or_summary (was 500 chars) and JSON fallback dump (was 500 chars).
  • openfda_search_drug_approvals renders every submissions[] entry (was capped at 10).
  • openfda_search_drug_shortages renders full availability (was 400 chars) and contact_info (was 200 chars).
  • openfda_search_recalls renders full product_description and reason_for_recall (was 300 chars each).

338 tests pass; bun run devcheck clean.

CHANGELOG v0.4.2