Skip to content

v0.1.6: Field-test bug fixes

Choose a tag to compare

@cyanheads cyanheads released this 24 May 12:29
v0.1.6
a49f032

Field-test bug fixes

Three fixes from field-testing: a crash on invalid API input, a flag that was always false, and inaccurate pagination counts when filtering aggregates.

Fixed:

  • Error envelope array unwrap in getData — WB error responses are wrapped in an array; accessing .message on the outer array caused TypeError on invalid indicator/country
  • isAggregate lookup now checks countryiso3code (ISO3, e.g. AFE) in addition to country.id (ISO2); aggregate entries were always flagged false
  • listCountries with include_aggregates: false over-fetches all entries and re-paginates client-side; total and pages now reflect the filtered set

32 tests pass; bun run devcheck clean.