Skip to content

v0.7.0: alert result limit, point/zone validation, station classification

Choose a tag to compare

@cyanheads cyanheads released this 30 Jun 23:52
v0.7.0
cc95336

alert result limit, point/zone validation, station classification

nws_search_alerts adds a caller-controlled result limit and validates point/zone locally; nws_get_observations no longer masks a missing station as no_observations.

Added:

  • nws_search_alerts: optional limit input (1-25, default 25) slices the response while totalCount still reports the full match count; client-side only, excluded from the applied-filters echo. (#21)

Fixed:

  • nws_search_alerts: point is validated against the strict NWS coordinate pattern locally (whitespace salvaged to the accepted lat,lon form) and zone is upper-cased, so malformed input fails as invalid_point instead of leaking a raw upstream 400. (#20)
  • nws_get_observations: the station-metadata and latest-observation legs run under Promise.allSettled with station-first classification, so a nonexistent station returns station_not_found even when the observations leg also 404s. (#19)

Dependency bumps:

  • @biomejs/biome ^2.5.0 → ^2.5.1
  • @types/node ^26.0.0 → ^26.0.1

262 tests pass; bun run devcheck clean.