Repository navigation
v0.2.2: Portion display order, barcode digit forms, and per-ID batch fallback
Portion display order, barcode digit forms, and per-ID batch fallback
usda_get_foodportions follow FDC's display order (ascendingsequenceNumber, unnumbered last), soservingInfo,unit: "serving",allPortions, and theusda://food/{fdcId}portionsno longer take FDC's array-first portion (#40)usda_search_foodsmatches a bare 12-14-digit barcode with a valid check digit against its 12-, 13-, and 14-digit forms and its 12-digit form without the check digit, in one upstream call (#41)- A
/foodsbatch attempt that times out at 15 s is refetched per ID, at most 10 in flight per process, inside the call's 45 s deadline;usda_get_foodsand the newusda_compare_foodsdeferredIdslist IDs unanswered at the deadline, or whose retries ran out on a transient failure while another ID answered. A non-transient 4xx or a complete body of the wrong shape fails the call (#42) usda_compare_foodsraisestoo_few_foods(withdeferredIds) only when even answers for the deferred IDs could not make 2 foods, andretry_deadline_exceededotherwise (#42)- Record requests (
usda_get_food,usda://food/{fdcId}, a one-ID batch, a refetch) run to the call's 45 s deadline instead of being cut at 15 s, so a first attempt that hangs fails at 45 s, where 0.2.1 retried at 15 s (#42) - A complete FDC 200 body that is not JSON is
ServiceUnavailablewithretryable: false, sent once;retry_deadline_exceededreadsFDC <path> request exceeded …and carries a recovery hint on every tool and the resource (#42); the bare-codeno_resultshint points to a product-name search (#41) - deps:
@biomejs/biome^2.6.6 → ^2.6.7 (dev)
CHANGELOG v0.2.2 · release PR #45