Skip to content

v2.1.0

Latest

Choose a tag to compare

@bprusinowski bprusinowski released this 22 May 19:58

What's Changed

Added

  • charts.create() now returns an embedUrl alongside url and id. url points at the chart page (https://szum.io/c/<id>); embedUrl points at the embeddable variant (https://szum.io/e/<id>) suitable for <iframe> use.
- const { url, id } = await szum.charts.create(config);
+ const { url, embedUrl, id } = await szum.charts.create(config);

A missing embedUrl in the server response now throws SzumAPIError, matching the existing behavior for url and id.

Full Changelog: v2.0.0...v2.1.0