Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump Mermaid Version 9.3.0 -> 10.9.0 #6869

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

Squiddim
Copy link

@Squiddim Squiddim commented May 4, 2024

Hey,

so i bumped the Mermaid Version from 9.3.0 to 10.9.0 to be able to use the new Chart Types.
There have been Breaking Changes in 10.0.0 which i implemented the suggested fix for
(see https://github.com/mermaid-js/mermaid/blob/master/CHANGELOG.md#1000 )
also removed "@types/mermaid since its deprecated and mermaid provides them anyways

I have tested my fix and the only issue i found is that the xychart-beta seems to get cropped a bit. All other charts/diagrams work fine tho

Implement Fixes for Breaking Changes in  Mermaid >10.0.0
@auto-assign auto-assign bot requested a review from tommoor May 4, 2024 00:03
@CLAassistant
Copy link

CLAassistant commented May 4, 2024

CLA assistant check
All committers have signed the CLA.

@tommoor
Copy link
Member

tommoor commented May 4, 2024

This has been attempted several times … if you can get it to work without a massive increase in bundle size then there will be some grateful folks

@Squiddim
Copy link
Author

Squiddim commented May 4, 2024

Not gonna lie this is way above my league ill take a look at the bundle size but if i cant figure it out ill probably end up just building my own image with this fix for now.

@@ -66,7 +66,7 @@ class MermaidRenderer {
const cacheKey = `${isDark ? "dark" : "light"}-${text}`;
const cache = Cache.get(cacheKey);
if (cache) {
element.classList.remove("parse-error", "empty");
elemƒent.classList.remove("parse-error", "empty");
Copy link

@twliqiang twliqiang May 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change the variable name by mistake ?

@willunio
Copy link

I would go as far as to say that outline should remove mermaid support if migrating to 10.x is not going to happen. I've given up with mermaid - everything I do is now in diagrams.net / drawio.

@tommoor
Copy link
Member

tommoor commented May 20, 2024

That really makes no sense, it's not like we're running a years old version – the version of Mermaid in Outline supports all but the latest couple of graph types and is widely used by customers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants