-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Remove elkjs
dependency from mermaid package
#5654
Conversation
The ELK integration was moved to it's own package in #5049 to avoid pulling in a copyleft dependency by default. However the `elkjs` dependency is still present in the mermaid package, this patch removes it.
✅ Deploy Preview for mermaid-js ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #5654 +/- ##
=======================================
Coverage 5.85% 5.85%
=======================================
Files 274 273 -1
Lines 41112 41101 -11
Branches 488 512 +24
=======================================
Hits 2408 2408
+ Misses 38704 38693 -11
Flags with carried forward coverage won't be shown. Click here to find out more. |
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
@Gusted, Thank you for the contribution! |
- `elkjs` is a library that's imported by `mermaid`, although they have seperated this package to it's own mermaid package (mermaid-js/mermaid#5654), the stable version doesn't have this patch. - `elkjs` is licensed under the EPL-2.0 license (copyleft), which isn't compatible with GPL unless the license author explcitly allow this via a so called "secondary license". At the end of the day it cannot be released under a MIT or GPL license. - Use webpack's `externals` option to avoid bundling `elkjs` and instead leave it as a `require` code. - This is a 'dirty' way to ensure elkjs isn't bundled and has to be tested manually to ensure this for every release (via the `webpack-bundle-analyzer` plugin). If someone tries to use the elkjs render, it will result in a non-descriptive error being shown. (cherry picked from commit 510cbe2)
- `elkjs` is a library that's imported by `mermaid`, although they have seperated this package to it's own mermaid package (mermaid-js/mermaid#5654), the stable version doesn't have this patch. - `elkjs` is licensed under the EPL-2.0 license (copyleft), which isn't compatible with GPL unless the license author explcitly allow this via a so called "secondary license". At the end of the day it cannot be released under a MIT or GPL license. - Use webpack's `externals` option to avoid bundling `elkjs` and instead leave it as a `require` code. - This is a 'dirty' way to ensure elkjs isn't bundled and has to be tested manually to ensure this for every release (via the `webpack-bundle-analyzer` plugin). If someone tries to use the elkjs render, it will result in a non-descriptive error being shown. (cherry picked from commit 510cbe2)
- `elkjs` is a library that's imported by `mermaid`, although they have seperated this package to it's own mermaid package (mermaid-js/mermaid#5654), the stable version doesn't have this patch. - `elkjs` is licensed under the EPL-2.0 license (copyleft), which isn't compatible with GPL unless the license author explcitly allow this via a so called "secondary license". At the end of the day it cannot be released under a MIT or GPL license. - Use webpack's `externals` option to avoid bundling `elkjs` and instead leave it as a `require` code. - This is a 'dirty' way to ensure elkjs isn't bundled and has to be tested manually to ensure this for every release (via the `webpack-bundle-analyzer` plugin). If someone tries to use the elkjs render, it will result in a non-descriptive error being shown.
📑 Summary
The ELK integration was moved to it's own package in #5049 to avoid pulling in a copyleft dependency by default. However the
elkjs
dependency is still present in the mermaid package, this patch removes it.Resolves #5043 (comment)
📏 Design Decisions
N/A
📋 Tasks
Make sure you
MERMAID_RELEASE_VERSION
is used for all new features.develop
branch