v0.1.14: OpenStates request caching and rate-budget guard
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_committeesdescription and README named the stalecoverage_notefield instead ofcoverageNote(#24)
272 tests pass; bun run devcheck clean.