Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(sdk): publish @mermaidchart/sdk v0.2.0
Added ----- - Compile an ESM version of this codebase for Node.JS v18. - Add `MermaidChart#getDiagram(diagramID)` function to get a diagram. - Add `MermaidChart#createDocument(projectID)` function to create a diagram in a project. - Add `MermaidChart#setDocument(document)` function to update a diagram. - Add `MermaidChart#deleteDocument(documentID)` function to delete a diagram. Fixed ----- - **BREAKING**: Fix `MCDocument` `major`/`minor` type to `number`. - Add `code` field to `MCDocument` type. - `MermaidChart#getAuthorizationData()` now correctly sets `state` in the URL by default. - `MermaidChart#handleAuthorizationResponse()` now supports relative URLs.
- Loading branch information