Skip to content

v0.6.5: structured hazard-end (ends) field on alerts

Choose a tag to compare

@cyanheads cyanheads released this 21 Jun 23:22
v0.6.5
24db843

structured hazard-end (ends) field on alerts

Adds the missing end-of-hazard time to nws_search_alerts; expires stays the message-refresh time.

Added:

  • nws_search_alerts: structured ends field (ISO 8601) — hazard-end time, mapped in parseAlert (previously dropped), surfaced on the Alert type, the output schema, and a Hazard ends: line in format(). Nullable — null marks an open-ended hazard ("until further notice"). Distinct from expires (the CAP message-refresh time), which can fall before onset on pre-issued alerts. (#18)

253 tests pass; bun run devcheck clean.