Skip to content

v2.0.0

Choose a tag to compare

@bprusinowski bprusinowski released this 06 May 19:40
· 2 commits to main since this release

What's Changed

⚠️ Breaking changes

  • Removed signedUrl(config, options). The HMAC signed-URL system has been retired on the server.
  • Added a charts namespace as the replacement:
    • charts.create(config, options) posts to POST /api/charts and returns { url, id }. The URL points at https://szum.io/c/<id> and resolves to a rendered chart image. Same auth/error semantics as render().
    • charts.delete(id, options) posts to DELETE /api/charts/<id> to revoke a single chart by id.

Migration

- const url = await szum.signedUrl(config);
+ const { url, id } = await szum.charts.create(config);

// Revoke later:
+ await szum.charts.delete(id);

Full Changelog: v1.0.1...v2.0.0