-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
CI: disable pinning dependencies #3735
Merged
sidharthv96
merged 2 commits into
mermaid-js:develop
from
aloisklink:ci/disable-pinning-dependencies
Nov 17, 2022
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Knut mentioned there were issues with rendering pie charts with some d3 versions.
Can you please test if pie charts render properly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The latest version of
d3
is7.6.1
, so using^7.6.1
changes nothing, at least untild3
releases an update (even then, somebody/renovate would need to update thepnpm-lock.yaml
file for us to use the new version), see https://github.com/d3/d3/releasesImportant
As far as I'm aware,
overrides
only affect our local environment, it won't affect people doingnpm install mermaid
. They'll have two versions ofd3
:^7.0.0
version specified independencies
(unchanged in this PR):mermaid/packages/mermaid/package.json
Line 56 in 653682a
Maybe pie charts won't work with older versions ofWorks with^7.0.0
? I'll test this and make another PR if this is the case.7.0.4
, so it should be fine to leave as^7.0.0
.^5.14
version specified bymermaid
'sdagre-d3
dependency (also unchanged in this PR)This needs to be fixed by replacing
dagre-d3
with another package.dagre-d3-es
seems good, but we may need to fork it/make a PR since it doesn't export all the functions we need, see Update packages to fix vulnerabilities #3712 (review) and Update packages to fix vulnerabilities #3712 (comment))It seems to work fine when I run the following commands:
git clean -fxd # make sure nothing is cached pnpm install pnpm run dev
Then going to http://localhost:9000/pie.html shows:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we should move on from abandoned packages.
3 of our core deps, all 3 deprecated. :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pie charts still work with
"d3": "7.0.4"
, so I think it's fine to leave"d3": "^7.0.0"
in mermaid'sdependencies
.Again, that wouldn't change anything with the older version of
d3
found innode_modules/dagre-d3/node_modules/d3
, which has"d3": "^5.14
, which will happen when runningnpm/yarn/pnpm install mermaid
(their package manager will ignoremermaid
's"resolutions": {"d3": "^7.6.1"}
field).