mermaid patch mermaidAPI.getDiagramFromText() now returns a new db instance on each call for state diagrams