Skip to content

v1.0.0

Choose a tag to compare

@bprusinowski bprusinowski released this 19 Apr 16:54
· 8 commits to main since this release

What's Changed

Initial release with the following features:

  • Szum client with render() (returns SVG/PNG bytes) and signedUrl().
  • Typed error hierarchy: SzumError base plus SzumAuthenticationError, SzumPermissionError, SzumInvalidRequestError, SzumRateLimitError, SzumAPIError, SzumConnectionError.
  • Automatic retry with exponential backoff + jitter for 429, 502, 503, 504, and network errors. Retry-After is honored on 429.
  • Constructor options: apiKey, baseUrl, timeout, maxRetries.
  • Per-call RequestOptions: timeout, signal (AbortSignal support).
  • requestId surfaced on every SzumError.
  • toJSON() on every error class.
  • Server-only runtime guard – constructor throws if instantiated in a browser (prevents API-key leakage).
  • SZUM_DEBUG=true env var for request/response logging to stderr.
  • SCHEMA_VERSION export tied to the chart schema version the SDK was built against.

Full Changelog: https://github.com/szum-io/sdk/commits/v1.0.0