v1.0.0
What's Changed
Initial release with the following features:
Szumclient withrender()(returns SVG/PNG bytes) andsignedUrl().- Typed error hierarchy:
SzumErrorbase plusSzumAuthenticationError,SzumPermissionError,SzumInvalidRequestError,SzumRateLimitError,SzumAPIError,SzumConnectionError. - Automatic retry with exponential backoff + jitter for
429,502,503,504, and network errors.Retry-Afteris honored on429. - Constructor options:
apiKey,baseUrl,timeout,maxRetries. - Per-call
RequestOptions:timeout,signal(AbortSignalsupport). requestIdsurfaced on everySzumError.toJSON()on every error class.- Server-only runtime guard – constructor throws if instantiated in a browser (prevents API-key leakage).
SZUM_DEBUG=trueenv var for request/response logging tostderr.SCHEMA_VERSIONexport tied to the chart schema version the SDK was built against.
Full Changelog: https://github.com/szum-io/sdk/commits/v1.0.0