mermaid/docs/breakingChanges.md

52 lines
844 B
Markdown
Raw Normal View History

# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT. Please edit the corresponding file in packages/mermaid/src/docs.
2022-09-03 13:05:47 +05:30
2022-09-03 09:13:37 +05:30
# Breaking changes
### Breaking changes from history version to latest version:
## #1
```javascript
mermaid.initialize({
sequenceDiagram:{
...
}
})
```
has been changed to
```javascript
mermaid.initialize({
sequence:{
...
}
})
```
## #2
In old versions you needed to reference a CSS file in your HTML:
```html
2022-09-03 13:05:47 +05:30
<link rel="stylesheet" href="mermaid.min.css" />
2022-09-03 09:13:37 +05:30
```
or
```html
2022-09-03 13:05:47 +05:30
<link rel="stylesheet" href="mermaid.forest.min.css" />
2022-09-03 09:13:37 +05:30
```
Now it is not needed, and there are no more CSS files in the distribution files.
You just:
```javascript
mermaid.initialize({
2022-09-03 13:30:16 +05:30
theme: 'forest',
2022-09-03 13:05:47 +05:30
});
2022-09-03 09:13:37 +05:30
```
and it works like a charm because now the CSS is inline with the SVG to allow simpler portability.