The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Removed validation of access token on initialization.
- Set a 30 second default timeout for all requests
MermaidChart#resetAccessToken()
no longer returns aPromise
.
- Added
requestTimeout
option to configure timeout.
- 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. - Add
MermaidChart#baseURL
is now public.
- BREAKING: Fix
MCDocument
major
/minor
type tonumber
. - Add
code
field toMCDocument
type. MermaidChart#getAuthorizationData()
now correctly setsstate
in the URL by default.MermaidChart#handleAuthorizationResponse()
now supports relative URLs.
- Browser-only build.