-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Refactor: Change flowDB to class based architecture. #6161
base: develop
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for mermaid-js ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
commit: |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #6161 +/- ##
=======================================
Coverage 4.47% 4.48%
=======================================
Files 383 383
Lines 54142 54124 -18
Branches 596 596
=======================================
Hits 2425 2425
+ Misses 51717 51699 -18
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 ↗︎ Awaiting the start of a new Argos build… |
🦋 Changeset detectedLatest commit: 6cc31b7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
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.
Looks good!
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.
Looks great! Thank you for making this PR as easy to review as possible!
My biggest issues that I've spotted are:
- We're using class fields and arrow functions instead of class methods, which is a bit strange and not as well supported on browsers. Why can't we just use normal class methods?
- I think we need a changeset entry. Maybe we can make a
fix: XXXXX
orpatch
changeset release? Saying that thedb
returned frommermaid.mermaidAPI.getDiagramFromText()
is now unique for flowcharts? From doing a search, it looks like ~27 people are usingmermaidAPI.getDiagramFromText()
already: https://github.com/search?q=mermaidAPI.getDiagramFromText&type=code
Co-authored-by: Alois Klink <[email protected]>
Co-authored-by: Alois Klink <[email protected]>
…saurabh/refactor/convert-flowDb-to-class
📑 Summary
diagramObject.db
is called.📏 Design Decisions
flow.jison
📋 Tasks
Make sure you
MERMAID_RELEASE_VERSION
is used for all new features.pnpm changeset
and following the prompts. Changesets that add features should beminor
and those that fix bugs should bepatch
. Please prefix changeset messages withfeat:
,fix:
, orchore:
.