Skip to content

Releases: mermaid-js/mermaid

0.5.2

04 Oct 21:11
Compare
Choose a tag to compare

Changes in version 0.5.2

  • Support for hyperlink and tooltip
  • Possible to escape characters in sequenceDiagrams and flowcharts
  • Mermaid now possible to use in a requirejs/AMD environment
  • More correct xml for foreignobject whenusing html labels
  • Better wordwrapping for notes in sequence diagrams
  • Mermaid can now works in pages that use base tags
  • Updated styling posibilities from css

0.5.1

21 Jun 15:38
Compare
Choose a tag to compare

Changes in version 0.5.1

  • Version property removed from bower.json
  • Escaping of characters using double quotes as described in issue #170
  • Fix for problem with click event callbacks as described in issue #174
  • Autoscaling of all diagram types as described in issue #175
  • Auto line-wrap of notes in sequence diagrams as described in issue #178
  • Default style for clusters in flowcharts

0.5.0

07 Jun 15:32
Compare
Choose a tag to compare

Content of release:

  • Updated configuration handling
  • Any characters within quotes in link texts and node scriptions as described in issue #162
  • Option for whether or not to closeCssStyles as described in issue #157
  • Autoscaling for gantt diagrams and sequence diagrams as described in issue #150
  • Support for nested subgraphs as described in issue #161
    *Split between the web integration and core diagram rendering and exposure of a render method as discussed in issue #146
    *Updated bundling with smaller deliverables
    *Fix for accessDenied issue during cssRule cloning as described in issue #155
  • Modified the number of week for which the x-axis stays in week mode
  • Adjustment of init method for more fine grained integrations

Info regarding the change of the init method

Configuration are picked up from the mermaid object and is not passed as arguments. Same handling for all diagram types, sequenceDiagrams were handled in a different way before this commit.

When init is called with:

  • 0 arguments - all mermaid divs are processed
  • 1 argument - this is interpreted as a definition of what nodes to process
  • 2 arguments - for (some) backwards compatability the second argument is interpreted as the definition of nodes to process. The first argument (prrobably a sequence config is ignored)

A definition of nodes to process can be

  • a css selector for what elements to be processed
  • a list of nodes as in the result of a command like the one below
document.querySelectorAll('.tbProcessed');

Other issues affected by the release:

#37, #126, #129, #134, #135, #137

0.4.0

01 Mar 16:14
Compare
Choose a tag to compare

New functionality

  • Support for gantt diagrams
  • Yet more forgiving syntax for flow charts regarding spaces around links
  • Default mermaid.css included as well as less structure for simple theming,
    • run gulp mermaid-less to create new less files
  • default style for links is now possible

Issues closed:

  • Issue #122 - Add a css file, mermaid.css, with default styling
  • Issue #118 - Add capability for gantt diagrams
  • Issue #108 - lower case v causes error in the parser
  • Issue #67 - Label's css conflict with boostrap's .label

0.3.5

15 Feb 18:38
Compare
Choose a tag to compare

New functionality:

  • Possibility to style diagrams created with the CLI tool
  • Better support for Internet Explorer
  • More forgiving syntax for flow charts regarding spaces around links

0.3.3

25 Jan 16:05
Compare
Choose a tag to compare

Fix for issues:

  • Fixes for parsing characters discussed in issue #54 and #108. % in text, v in text ...!!!
  • Display of actors below sequence diagram as described in issue #106
  • Added the configuration parameter htmlLabels to the mermaid config. It defaults to true, but if set to false, all labels (in nodes and on edges) will be generated as SVG compatible text, not HTML. This resolves issue #58.
    *Isolated local CSS content to each mermaid SVG. This resolves issue #92.
    Started effort to break out the dagre-d3 dependency, in order to build a truly minimized mermaid. Not completed.
  • Require d3 directly to better support Node usage
  • Allow overriding sequence diagram configuration (SVG properties) as described in issue #103
  • Better handling of configuration for sequence diagrams. Possible to update this when rendering in a web page. This solved issue #109

Other updates:

  • API for validating syntax without rendering the diagram
  • Added preliminary reversed asymmetric shape - syntax is not completed though since it conflicts with other elements.

0.3.2

11 Jan 14:21
Compare
Choose a tag to compare
  • Added support for subgraphs and titles for subgraphs in flowcharts
  • Added notation for dotted links as described in issue #26 and support for thicker links for flowcharts
  • Added arrow head to async arrows for sequence diagrams
  • Making it possible to have style/% in class definitions as described in issue #54
  • Added the option to disable auto rendering via the mermaid namespace as described in issue #91
  • Support for linkStyles for link number > 9 as dewscribed in issue #95

0.3.1

05 Jan 14:45
Compare
Choose a tag to compare

Sequence diagrams

  • Addition of alt, opt statements in sequence diagrams
  • Addition async messages in sequence diagrams
  • Line breaks for all variations of br tags as described in issue #73

Flowcharts

  • Added ` as a valid character for flowcharts as described in issue #84
  • Added format for link text to look like the text is on the line as described in issue #53

Mermaid CLI

  • mermaid CLI shows help and version even if phantom isn't present. As described in issue #71

0.3.0

22 Dec 13:04
Compare
Choose a tag to compare

New features:

  • Client utility, issue #6
  • Support for sequence diagrams, issue #16

Bugfixes:

  • Backslash is now a valid character in nodes (mentioned in #54)

0.2.16

15 Dec 19:22
Compare
Choose a tag to compare

Resolved issues:

  • This characters failed the lexical parsing #46
  • Trailing whitespace at the end of lines is not ignored #55
  • Improve readability with new line as terminator and whitespace #38
  • Use classes instead of inline style for easy styling #24
  • Support for comments #47
    Sequence diagrams still in alpha but now support notes (to the right)