Skip to content

Commit

Permalink
chore(sdk): publish @mermaidchart/sdk v0.2.0
Browse files Browse the repository at this point in the history
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
aloisklink committed Apr 11, 2024
1 parent e493dca commit 8a8eeb4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions packages/sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [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 digram in a project.
- 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

- Fix `MCDocument` `major`/`minor` type to `number`.
- Add `code` field to `MCDocument` type

### 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.
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mermaidchart/sdk",
"version": "0.1.1",
"version": "0.2.0",
"description": "Access the MermaidChart services with OAuth and type safety.",
"browser": "dist/bundle.iife.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit 8a8eeb4

Please sign in to comment.