Skip to content

Files

Latest commit

 

History

History
39 lines (26 loc) · 1.21 KB

CHANGELOG.md

File metadata and controls

39 lines (26 loc) · 1.21 KB

Changelog

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[UNRELEASED]

Changes

  • Removed validation of access token on initialization.
  • Set a 30 second default timeout for all requests
  • MermaidChart#resetAccessToken() no longer returns a Promise.

Added

  • Added requestTimeout option to configure timeout.

[0.2.0] - 2024-04-11

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.
  • Add MermaidChart#baseURL is now public.

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.

[0.1.1] - 2023-09-08

  • Browser-only build.