Skip to content

v0.2.0: hucCd optional on water_find_sites

Choose a tag to compare

@cyanheads cyanheads released this 17 Jul 07:13
v0.2.0
ae4240e

hucCd optional on water_find_sites

water_find_sites and the usgs-water://site/{siteId} resource now omit hucCd for sites USGS NWIS assigns no Hydrologic Unit Code, instead of backfilling an empty string.

Breaking Changes:

  • hucCd is now optional on water_find_sites sites[].hucCd and the usgs-water://site/{siteId} resource. It is omitted when NWIS assigns the site no HUC (previously an empty string). Migration: treat hucCd as possibly-absent, guarding for undefined and reading absence as "no HUC assigned" rather than the former "" placeholder. (#22)

Fixed:

  • Bare **HUC:** label / hucCd: "" for sites with no HUC. hucCd is now omitted like every sparse sibling field (stateCd, countyCd, drainageArea, altitude, contributingArea); the HUC/State/County line renders only the parts present, and canvas staging carries huc_cd: null. (#22)

123 tests pass; bun run devcheck clean.

CHANGELOG v0.2.0