Skip to content

v0.1.14: OpenStates request caching and rate-budget guard

Choose a tag to compare

@cyanheads cyanheads released this 17 Jul 00:44
v0.1.14
94a42a8

OpenStates request caching and rate-budget guard

Caches successful fetchJson responses and enforces a daily request budget against the shared free-tier key rate limit; corrects a stale field-name reference in committee-search docs.

Added:

  • Response cache — SHA-256 URL-keyed, per-endpoint TTLs (10 min search, 12 h jurisdiction, 24 h geo) (#23)
  • Daily request-budget guard — fail-fast RateLimiter at the free-tier cap (250 / rolling 24 h) (#23)

Changed:

  • 429 and HTML block-page responses now fail fast (retryable: false) instead of retrying 4x (#23)

Fixed:

  • openstates_search_committees description and README named the stale coverage_note field instead of coverageNote (#24)

272 tests pass; bun run devcheck clean.

CHANGELOG v0.1.14