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

Remove elkjs dependency from mermaid package #5654

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

Gusted
Copy link
Contributor

@Gusted Gusted commented Jul 19, 2024

📑 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

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.
Copy link

netlify bot commented Jul 19, 2024

Deploy Preview for mermaid-js ready!

Name Link
🔨 Latest commit f20d89e
🔍 Latest deploy log https://app.netlify.com/sites/mermaid-js/deploys/669a9f79a69407000819eab7
😎 Deploy Preview https://deploy-preview-5654--mermaid-js.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Jul 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 5.85%. Comparing base (3c3d28d) to head (f20d89e).

Additional details and impacted files

Impacted file tree graph

@@           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     
Flag Coverage Δ
unit 5.85% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 1 file with indirect coverage changes

Copy link

argos-ci bot commented Jul 19, 2024

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ✅ No changes detected - Jul 19, 2024, 5:28 PM

@sidharthv96 sidharthv96 merged commit fca35a3 into mermaid-js:develop Jul 22, 2024
20 checks passed
Copy link

mermaid-bot bot commented Jul 22, 2024

@Gusted, Thank you for the contribution!
You are now eligible for a year of Premium account on MermaidChart.
Sign up with your GitHub account to activate.

DennisRasey pushed a commit to DennisRasey/forgejo that referenced this pull request Jul 25, 2024
- `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)
DennisRasey pushed a commit to DennisRasey/forgejo that referenced this pull request Jul 25, 2024
- `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)
DennisRasey pushed a commit to DennisRasey/forgejo that referenced this pull request Jul 25, 2024
- `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.
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.

Move ELK to external package
2 participants