Skip to content

3.0.0

Latest

Choose a tag to compare

@pastorsj pastorsj released this 31 Jan 20:42
· 1 commit to master since this release

What is in this release?

ESM Migration:

  • Convert to native ES modules with dual CJS/ESM package support
  • Use tsup for building both formats

FRED API v2 Support:

  • Add getObservationsForRelease() for v2/release/observations endpoint
  • Add getAllObservationsForRelease() with automatic pagination
  • v2 API uses Bearer token authentication via Authorization header

New Features:

  • Add start_time and end_time parameters to series/updates endpoint
  • Add endpoint-specific limit validation (100k observations, 10k dates, 500k v2)
  • Add exponential backoff with automatic retry for all endpoints
    • Retries on 429 (rate limit) and 503 (service unavailable)
    • Configurable: maxRetries, initialDelayMs, maxDelayMs, backoffMultiplier

TypeScript:

  • Update type definitions for v2 API types