mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-11-04 04:44:08 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			52 lines
		
	
	
		
			849 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
		
			849 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
# Breaking changes
 | 
						|
**Edit this Page** [](https://github.com/mermaid-js/mermaid/blob/develop/docs/breakingChanges.md)
 | 
						|
### 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 need to add CSS file to your HTML:
 | 
						|
 | 
						|
```html
 | 
						|
<link rel="stylesheet" href="mermaid.min.css">
 | 
						|
```
 | 
						|
 | 
						|
or
 | 
						|
 | 
						|
```html
 | 
						|
<link rel="stylesheet" href="mermaid.forest.min.css">
 | 
						|
```
 | 
						|
 | 
						|
Now it is not needed to do so. And there are no more CSS files in distrubtion files.
 | 
						|
 | 
						|
You just
 | 
						|
 | 
						|
```javascript
 | 
						|
mermaid.initialize({
 | 
						|
    theme: 'forest'
 | 
						|
})
 | 
						|
```
 | 
						|
 | 
						|
and it works like a charm.
 | 
						|
 | 
						|
This is because now the CSS is inline with SVG for portability.
 |