* next: (100 commits)
Resolves E2E testing issues and issue #5343
Fix spelling
Fix community integrations
Fix docs
docs: Fix config
Update all minor dependencies
Amend docs to document gitgraph parallel commits
Fix lint
Use Yarn Add COREPACK_ENABLE_STRICT
Added link to Blazorade Mermaid to the community integrations page.
Bump node version
Add lcov to cspell
Correcting path to docker-entrypoint.sh
Update recommended Vitest extension
Replace mermaid-js.github.io links
Replace links to docs with links to webhelp
Link to contributing page on webhelp
Changes to timeline.md 1. Added colons to all 'NOTES' for consistency.
Changes to timeline.md 1. Updates the Wikipedia citation to include a link. 2. Removed periods from documentation sections to be consistent (some had periods, some didn't) 3. Added a space to a coding example for spacing consistency.
Replace version number placeholder
...
* develop: (99 commits)
Fix spelling
Fix community integrations
Fix docs
docs: Fix config
Update all minor dependencies
Amend docs to document gitgraph parallel commits
Fix lint
Use Yarn Add COREPACK_ENABLE_STRICT
Added link to Blazorade Mermaid to the community integrations page.
Bump node version
Add lcov to cspell
Correcting path to docker-entrypoint.sh
Update recommended Vitest extension
Replace mermaid-js.github.io links
Replace links to docs with links to webhelp
Link to contributing page on webhelp
Changes to timeline.md 1. Added colons to all 'NOTES' for consistency.
Changes to timeline.md 1. Updates the Wikipedia citation to include a link. 2. Removed periods from documentation sections to be consistent (some had periods, some didn't) 3. Added a space to a coding example for spacing consistency.
Replace version number placeholder
Fix link to Contributors section in README
...
* develop:
Fix lint
Use Yarn Add COREPACK_ENABLE_STRICT
Updated chrome extension url's to new store
add name only when present in rectData
make name optional
feat: add name field to the actors
Changes to intro.md 1. Removed the Slack link 2. Updated the Discord invite link
Changes to intro.md 1. Removed the Slack invite and left only the Discord invite
Changes to intro.md 1. Added a link to the Discord server
Updated contributions file
#3358 Layoutfix for growing parent when children spans new rows due to updated columns widths
Update docs
Mermaid version 10.8.0
* master:
Changes to intro.md 1. Removed the Slack link 2. Updated the Discord invite link
Changes to intro.md 1. Removed the Slack invite and left only the Discord invite
Changes to intro.md 1. Added a link to the Discord server
Updated contributions file
Update docs
Mermaid version 10.8.0
Replace each link to mermaid-js.github.io with corresponding link
at the webhelp (/ website), using the redirects to get these links.
(The redirects are to the http:// sites. I replace it with the https://
links of course.)
The docs are availabe as webhelp, which is a nicer viewer than
the plain markdown at GitHub. So a little search & replace:
- "(./docs" --> "https://mermaid.js.org"
vim command ":%s/(.\/docs/(https:\/\/mermaid.js.org/g"
- ".md)" --> ".html)"
vim command ":%s/.md)/.html)/g"
The constributing page is not a plain markdown any more.
It is part of the generated webhelp, so link to this. Some of the links
were still to the symbolic link at the root of the repository.
1. Updates the Wikipedia citation to include a link.
2. Removed periods from documentation sections to be consistent (some had periods, some didn't)
3. Added a space to a coding example for spacing consistency.
The dashes are also part of the link to this section in the GitHub
webview and without the link does not work on GitHub.
Although, the additional dashes could not fix the link for other editors
(e.g. VSCodium with "Markdwn All in One" or an JetBrains IDE).
- covert `cSpell.json` to `cspell.config.yaml`
- break up the word list into multiple dictionary files
- fix spelling issues
- Enable spell checking code for non-test files
* 'add-pie-langium-parser' of github.com:Yokozuna59/mermaid: (48 commits)
make pie parser async
Changes to gantt.html 1. Added a Gantt diagram that demonstrates to users that hashtages and semicolons can be added to titles, sections, and task data. Changes to gantt.spec.js 1. Added unit tests to ensure that semicolons and hashtags didn't break the functionality of the gantt diagram when used in titles, sections or task data. Changes to /parser/gantt.spec.js 1. Added rendering tests to ensure that semicolons and hashtags in titles, sections, and task data didn't break the rendering of Gantt diagrams.
perf: prevent adding multiple DOMPurify hooks
Update docs
chore: Update tests
Fix types
refactor: Make parser.parse async
refactor: Support async parsers Add `Diagram.fromText`
Lint
Remove echo
RefTest
Echo event
Update cypress
Fix applitools
Fix applitools
add sequenceDiagram link e2e test
fix sequence diagram popup
Changes to gantt.jison 1. Consistent spacing on line 30
Changes to gantt.jison 1. Removed typo
Changes to gnatt.jison 1. Removed the hash and semicolon symbols from the title regex to allow for their use. 2. Removed the hash and semicolon symbols from the section regex to allow for their use. 3. Removed the hash and semicolon symbols for the taskTxt regex to allow for their use. I did not remove the colon because the parser fails to recognize when the actual taskData begins if that distinctions isn't kept. 4. Removed the regex \#[^\n]* which skipped comments to fix some bugs with hash symbols in the taskTxt. I tested this changed by putting it back and using the comment to see if it was recognized as a comment, but I would receive a syntax error and the diagram would not be rendered. So, I think we can safely remove that line, BUT it would be best practice if someone else tested this change to ensure that this will not break anyone's Gantt diagrams.
...
* Changes to flow.jison
1. Added support for the plus symbol.
* Changes to errorRenderer.ts
1. Fixed a typo where 'renering' instead 'rendering'
* Revert "Changes to flow.jison"
This reverts commit 28b9dc897f.
* develop:
Update container
Update container
Remove pnpm cache
Use `.node-version` file in workflows
Remove node version from matrix
Update to Node v20
Update to Node v20
* develop:
Update container
Update container
Remove pnpm cache
Use `.node-version` file in workflows
fix: Redirect of old URLs
Remove node version from matrix
Update to Node v20
Update to Node v20
fix lint
add latest blog post
update discord invite link
remove holiday promo text
* develop: (47 commits)
Changes to gantt.html 1. Added a Gantt diagram that demonstrates to users that hashtages and semicolons can be added to titles, sections, and task data. Changes to gantt.spec.js 1. Added unit tests to ensure that semicolons and hashtags didn't break the functionality of the gantt diagram when used in titles, sections or task data. Changes to /parser/gantt.spec.js 1. Added rendering tests to ensure that semicolons and hashtags in titles, sections, and task data didn't break the rendering of Gantt diagrams.
Lint
Remove echo
RefTest
Echo event
Update cypress
Fix applitools
docs: fix lint
docs: move community to Discord
Swap condition blocks to avoid using negation
Reposition const declaration to ideal place
Change repetitive values into consts
docs: fix swimm link
add sequenceDiagram link e2e test
Fix Update Browserslist
Use pnpm/action-setup@v2
Fix lint
Delete docs/syntax/gantt.html
Add more detailed docs for Gantt tasks
Update docs
...
1. Added a Gantt diagram that demonstrates to users that hashtages and semicolons can be added to titles, sections, and task data.
Changes to gantt.spec.js
1. Added unit tests to ensure that semicolons and hashtags didn't break the functionality of the gantt diagram when used in titles, sections or task data.
Changes to /parser/gantt.spec.js
1. Added rendering tests to ensure that semicolons and hashtags in titles, sections, and task data didn't break the rendering of Gantt diagrams.
Currently, everytime `removeScript()` is called, the same DOMPurify
hooks are getting added again and again.
Co-authored-by: Alois Klink <alois@aloisklink.com>
* next: (35 commits)
docs: fix lint
docs: move community to Discord
Swap condition blocks to avoid using negation
Reposition const declaration to ideal place
Change repetitive values into consts
docs: fix swimm link
Fix Update Browserslist
Use pnpm/action-setup@v2
Fix lint
Delete docs/syntax/gantt.html
Add more detailed docs for Gantt tasks
Update docs
Update packages/mermaid/src/docs/syntax/flowchart.md
Update flowchart.md #5195
Add tests for gitgraphs with unconnected branches
Include logic for gitgraph with unconnected branches
Include undefined on findClosestParent return types and update the function
Remove unnecessary argument on findClosestParent call
Use already defined const instead of method call
Fix pnpm-lock by resetting it, sorry!
...
* develop: (35 commits)
docs: fix lint
docs: move community to Discord
Swap condition blocks to avoid using negation
Reposition const declaration to ideal place
Change repetitive values into consts
docs: fix swimm link
Fix Update Browserslist
Use pnpm/action-setup@v2
Fix lint
Delete docs/syntax/gantt.html
Add more detailed docs for Gantt tasks
Update docs
Update packages/mermaid/src/docs/syntax/flowchart.md
Update flowchart.md #5195
Add tests for gitgraphs with unconnected branches
Include logic for gitgraph with unconnected branches
Include undefined on findClosestParent return types and update the function
Remove unnecessary argument on findClosestParent call
Use already defined const instead of method call
Fix pnpm-lock by resetting it, sorry!
...
* 'develop' of github.com:mermaid-js/mermaid:
Use pnpm/action-setup@v2
Fix pnpm-lock by resetting it, sorry!
chore: update browsers list
Update update-browserlist.yml
Update update-browserlist.yml to install pnpm
Update update-browserlist.yml to fix deprecation and action fails
* next: (194 commits)
Use pixelmatch for image comparison
Run all tests
Fix lint
Update lockfile
E2E test
Use cache to store snapshots
chore(deps): update all patch dependencies
Change string concatenation to template literal
Revert "Revert 5041 feature/4935 subgraph title margin config option"
build(deps-dev): bump follow-redirects from 1.15.2 to 1.15.5
Draft release on master
docs: Add release version
Revert "fix: render the participants in same order as they are created"
Revert "Feature/4935 subgraph title margin config option"
Fix typo
Run dev docs without npx
Remove npx completely from run script
Update docs
Fix linters
Removed volta requirement, leave pnpm only
...
* develop: (50 commits)
Use pixelmatch for image comparison
Run all tests
Fix lint
Update lockfile
E2E test
Use cache to store snapshots
chore(deps): update all patch dependencies
Change string concatenation to template literal
Revert "Revert 5041 feature/4935 subgraph title margin config option"
build(deps-dev): bump follow-redirects from 1.15.2 to 1.15.5
Run dev docs without npx
Remove npx completely from run script
Update docs
Fix linters
Removed volta requirement, leave pnpm only
Fixed dead link
build
Update docs
Updated contributing docs after review, minor fixes
Updated gantt chart docs to show all config options
...
* develop: (62 commits)
Draft release on master
docs: Add release version
Revert "fix: render the participants in same order as they are created"
Revert "Feature/4935 subgraph title margin config option"
Fix typo
add inadvertent tracking removal
update announcement bar
Update integrations-community.md (Add Codemia to the list of productivity tools using Mermaid.)
v10.7.0
10.6.2-rc.3
docs: Remove broken integration
chore: Minor cleanup of imperativeState
chore(deps): update all minor dependencies
adds corresponding change in docs/ecosystem
Adds Unison programming language to community integrations list
update verbiage
update verbiage
add jetbrains blog post
additional updates
Fixed parser/tests
...
* 'develop' of github.com:mermaid-js/mermaid:
Revert "fix: render the participants in same order as they are created"
Revert "Feature/4935 subgraph title margin config option"
Update integrations-community.md (Add Codemia to the list of productivity tools using Mermaid.)
* 'master' of github.com:mermaid-js/mermaid:
add inadvertent tracking removal
update announcement bar
* 'release/10.7.0' of github.com:mermaid-js/mermaid:
* 'develop' of github.com:mermaid-js/mermaid:
chore: Minor cleanup of imperativeState
fix: replace functional approaches with oop
chore: fix autogen docs
chore(sequence): Update packages/mermaid/src/docs/syntax/sequenceDiagram.md
chore(sequence): update doc for actors/participant creation/deletion fix
chore: remove unused e2e tests file
chore: add e2e test that shows db cleanup problem
chore: add e2e test that shows db cleanup problem
fix: add imperativeState and replace sequenceDb global variables with it
* master:
add jetbrains blog post
additional updates
update latest news pages
fix addl broken link
fix link
build: use `tsx` instead of `ts-node-esm`
verbiage updates
feat: Track outbound links in plausible
update getting started page
add blog post
chore: Update promo link
docs: Holiday promo v2
Update packages/mermaid/src/docs/.vitepress/components/TopBar.vue
update announcements page
update announcement bar verbiage
* develop: (200 commits)
chore(deps): update all minor dependencies
adds corresponding change in docs/ecosystem
Adds Unison programming language to community integrations list
Fixed parser/tests
Update docs
Update classDiagram.md
Update classDiagram.md
Update docs
Update packages/mermaid/src/diagrams/class/classDb.ts
Update packages/mermaid/src/docs/syntax/classDiagram.md
Update packages/mermaid/src/diagrams/class/classDb.ts
chore(deps): update all minor dependencies
Update generics docs
Update docs
Address potential undefined
refactor: Move maxEdges out of flowchart config.
refactor: Move maxEdges out of flowchart config.
chore: Add maxEdges to secure list
Update docs
Update NiceGuy.io links in integrations-community.md
...
* develop:
Update docs
Update NiceGuy.io links in integrations-community.md
build(deps-dev): bump vite from 4.4.9 to 4.4.12
Changes to .prettierignore 1. Added 'demos/dev/**' to be ignored by Prettier. 2. Added '!/demos/dev/example.html' so that Prettier ensures no one changes the example.html in a way that doesn't obey the Prettier code formatting rules.
build: use `tsx` instead of `ts-node-esm`
fix: #5100 Add viewbox to sankey
fix: Check if parentCommit is provided
Condition of Parent Id Without Merge Commit Added
Error Hash Removed
Linting Issue Fixed
Updated gitgraph.md
Linting Issue Fixed
Documentation Modified New Ex Added
e2e test case added
Merge Conflict Resolved
Suggested Changes FOR PR DONE
documentation added, Tests Fixed
All Unit Tests Passing
Unit Test Cases Added
Parser and Logic For Parent Commit Added
* develop: (192 commits)
build(deps-dev): bump vite from 4.4.9 to 4.4.12
Changes to .prettierignore 1. Added 'demos/dev/**' to be ignored by Prettier. 2. Added '!/demos/dev/example.html' so that Prettier ensures no one changes the example.html in a way that doesn't obey the Prettier code formatting rules.
build: use `tsx` instead of `ts-node-esm`
chore: Downgrade node to 18.18.2
fix: #5100 Add viewbox to sankey
chore(deps): update all minor dependencies
chore: Rename test
test: Add unit test for generic classname and namespace
fix: Check if parentCommit is provided
Split type from generic class name
Condition of Parent Id Without Merge Commit Added
Referenced the PmWiki's Cookbook recipe enabling MermaidJs schematics in wiki pages
test(e2e): fix pie chart E2E tests for PR #4288
Add dummy commit to trigger GH checks
chore: Revert unnecessary export
refactor: Remove unnecessary calculations
chore: Fix computeWidth function
chore: Cleanup setupGraphViewbox
Update docs
update mermaidAPI to cleanup the text before passing to getDiagramFromText
...
* develop: (70 commits)
build(deps-dev): bump vite from 4.4.9 to 4.4.12
Changes to .prettierignore 1. Added 'demos/dev/**' to be ignored by Prettier. 2. Added '!/demos/dev/example.html' so that Prettier ensures no one changes the example.html in a way that doesn't obey the Prettier code formatting rules.
build: use `tsx` instead of `ts-node-esm`
chore: Downgrade node to 18.18.2
fix: #5100 Add viewbox to sankey
chore(deps): update all minor dependencies
chore: Rename test
test: Add unit test for generic classname and namespace
fix: Check if parentCommit is provided
Split type from generic class name
Condition of Parent Id Without Merge Commit Added
Referenced the PmWiki's Cookbook recipe enabling MermaidJs schematics in wiki pages
test(e2e): fix pie chart E2E tests for PR #4288
Add dummy commit to trigger GH checks
chore: Revert unnecessary export
refactor: Remove unnecessary calculations
chore: Fix computeWidth function
chore: Cleanup setupGraphViewbox
Update docs
update mermaidAPI to cleanup the text before passing to getDiagramFromText
...
1. Added 'demos/dev/**' to be ignored by Prettier.
2. Added '!/demos/dev/example.html' so that Prettier ensures no one changes the example.html in a way that doesn't obey the Prettier code formatting rules.
* develop: (47 commits)
chore(deps): update all minor dependencies
chore: Rename test
test: Add unit test for generic classname and namespace
Split type from generic class name
Referenced the PmWiki's Cookbook recipe enabling MermaidJs schematics in wiki pages
test(e2e): fix pie chart E2E tests for PR #4288
Add dummy commit to trigger GH checks
chore: Revert unnecessary export
refactor: Remove unnecessary calculations
chore: Fix computeWidth function
chore: Cleanup setupGraphViewbox
Update docs
update mermaidAPI to cleanup the text before passing to getDiagramFromText
Add test for subgraphs with title margins and edge labels
Modify margin logic to avoid creating unnecessary space in subgraph
review fixes
add test
remove unused variable
fix: clean comments in text in getDiagramFromText API so flowchart works well
chore(deps): update all minor dependencies
...
1. Removed the hash and semicolon symbols from the title regex to allow for their use.
2. Removed the hash and semicolon symbols from the section regex to allow for their use.
3. Removed the hash and semicolon symbols for the taskTxt regex to allow for their use. I did not remove the colon because the parser fails to recognize when the actual taskData begins if that distinctions isn't kept.
4. Removed the regex \#[^\n]* which skipped comments to fix some bugs with hash symbols in the taskTxt. I tested this changed by putting it back and using the comment to see if it was recognized as a comment, but I would receive a syntax error and the diagram would not be rendered. So, I think we can safely remove that line, BUT it would be best practice if someone else tested this change to ensure that this will not break anyone's Gantt diagrams.
* develop: (596 commits)
chore(deps): update all minor dependencies
chore(deps): update all patch dependencies
fix: flowchart image without text
fix Types
chore: Update pnpm-lock
chore: Add tests for calculateDeltaAndAngle
fix: #5064 Handle case when line has only one point
reset the testTimeout to 5 seconds and change it directly in the test
update testTimeout from 5 seconds to 10 seconds
Update all patch dependencies
fix broken link
add latest blog post
Update all minor dependencies
Update all patch dependencies
Fix docs
Update packages/mermaid/src/docs/community/questions-and-suggestions.md
Update packages/mermaid/src/diagrams/class/classRenderer-v2.ts
update edge ids
draw top actors with lines first followed by messages
Bump GitHub workflow actions to latest versions
...
* develop:
fix broken link
add latest blog post
fix linting
fix: set proper shiki theme for light and dark modes
fix: change shiki theme to github-light
add latest blog post
add latest blog post
* next: (39 commits)
reset the testTimeout to 5 seconds and change it directly in the test
update testTimeout from 5 seconds to 10 seconds
Update all patch dependencies
fix broken link
add latest blog post
Update all minor dependencies
fix linting
fix: set proper shiki theme for light and dark modes
fix: change shiki theme to github-light
add latest blog post
GitGraph: made reroute fn more readable
GitGraph: simplified branch check in arrow rerouting fn
GitGraph: added commit IDs to e2e test to remove false positives
GitGraph: Moved branch curve check to within reroute check fn
GitGraph: corrected minor typo in comment.
GitGraph: added 2x e2e tests for branches not used immediately
GitGraph: added branch checking to rerouting
GitGraph: Added e2e tests for deferred branch use.
GitGraph: e2e tests, added commit IDs to test graphs
GitGraph: fixed an e2e branch for vertical branch
...
* develop: (39 commits)
reset the testTimeout to 5 seconds and change it directly in the test
update testTimeout from 5 seconds to 10 seconds
Update all patch dependencies
fix broken link
add latest blog post
Update all minor dependencies
fix linting
fix: set proper shiki theme for light and dark modes
fix: change shiki theme to github-light
add latest blog post
GitGraph: made reroute fn more readable
GitGraph: simplified branch check in arrow rerouting fn
GitGraph: added commit IDs to e2e test to remove false positives
GitGraph: Moved branch curve check to within reroute check fn
GitGraph: corrected minor typo in comment.
GitGraph: added 2x e2e tests for branches not used immediately
GitGraph: added branch checking to rerouting
GitGraph: Added e2e tests for deferred branch use.
GitGraph: e2e tests, added commit IDs to test graphs
GitGraph: fixed an e2e branch for vertical branch
...
* master:
fix broken link
add latest blog post
fix linting
fix: set proper shiki theme for light and dark modes
fix: change shiki theme to github-light
add latest blog post
add latest blog post
* develop: (164 commits)
Update all patch dependencies
Fix docs
Update packages/mermaid/src/docs/community/questions-and-suggestions.md
Update packages/mermaid/src/diagrams/class/classRenderer-v2.ts
update edge ids
draw top actors with lines first followed by messages
Bump GitHub workflow actions to latest versions
Update docs
Documentation: clarify sentence
Fix lint
Fix typo
fix typo
Add new Atlassian integrations
chore(deps): update all patch dependencies
Update demos/sequence.html
chore: release v10.6.1
fix
fix
fix: render the participants in same order as they are created
fix(flow): fix invalid ellipseText regex
...
* next: (193 commits)
Update all patch dependencies
Fix docs
Update packages/mermaid/src/docs/community/questions-and-suggestions.md
Update packages/mermaid/src/diagrams/class/classRenderer-v2.ts
update edge ids
draw top actors with lines first followed by messages
Bump GitHub workflow actions to latest versions
Update docs
Documentation: clarify sentence
Fix lint
Fix typo
fix typo
Add new Atlassian integrations
chore(deps): update all patch dependencies
Update demos/sequence.html
chore: release v10.6.1
fix
fix
fix: render the participants in same order as they are created
fix(flow): fix invalid ellipseText regex
...
* develop: (126 commits)
Update all patch dependencies
Fix docs
Update packages/mermaid/src/docs/community/questions-and-suggestions.md
Update packages/mermaid/src/diagrams/class/classRenderer-v2.ts
update edge ids
draw top actors with lines first followed by messages
Bump GitHub workflow actions to latest versions
Update docs
Documentation: clarify sentence
Fix lint
Fix typo
fix typo
Add new Atlassian integrations
chore(deps): update all patch dependencies
Update demos/sequence.html
chore: release v10.6.1
fix
fix
fix: render the participants in same order as they are created
fix(flow): fix invalid ellipseText regex
...
* develop: (155 commits)
chore(deps): update all patch dependencies
chore: release v10.6.1
fix(flow): fix invalid ellipseText regex
review fixes
Update XYChart's nav link in the docs template
add comment for ts ignore
move decodeEntities to utils
review fixes
chore(deps): update all minor dependencies
chore: Point to correct changelog
add spec
fix: getMessageAPI so it considers entity codes
chore(deps): update all patch dependencies
Update integrations-community.md
docs: upate the list of tools with native support of mermaid
Fix typo in build-docs.yml
Updated mermaid version
Limiting the number of edges that are allowed in the flowchart
Update README.md
Update README.md
...
Pre-commit lint hook had made the use of ternaries harder to read
than I'd originally intended so I introduced an additional
variable which explains what is being checked and keeps ternaries
from becoming obscured.
Based on review by @nirname. I had originally been trying
to minimise number of new arguments being passed to
rerouting check but as the branch curve check is not used
elsewhere and is part of the same rerouting check it makes
sense for them to be together.
Position information now passed to rerouting fn instead.
My focus earlier on had been on relationship to `main` branch
so this is to ensure that we have some tests that cover
relationship between a pair of branches that doesn't
include `main`.
Hypothesised that working out which branch needed checking for
overlapping commits might be missing, so added that as a
nested ternary and passed result as new argument to rerouting
check.
If commits are found on the branch which will be getting the
curve (whichever branch is lower or more to the right of main
than the other, for now), then the arrow will be rerouted.
I may refactor in a follow-up commit and I think there's scope
to simplify the logic but this is a test for now.
In these tests, a new branch is created but then a commit is made
on the main branch before the new branch gets a commit. This
important to see what happens with rerouting of arrows.
Suggested by @nirname in PR review of #4927.
Followed practice of other tests so that commit IDs are
stabilised (i.e., not randomly generated) and therefore
don't show repeatedly in Cypress diff output screenshots
Checking if branch was same as main turned out to be redundant
for now, since there don't seem to be any cases where routing
curves into main.
This fixes issue found in review by @nirname and avoids a
situation where branching from the same commit results in
unnecessary rerouting.
The function also now does an additional check to see
if source branch in overlap check is on main.
As we're no longer purely checking for an overlap and
the only use of this function is to reroute the arrows
to avoid running over commits, this more literal name
should be clearer.
On previous rewrite, I had created new functions within the
overlapping functions but these were being recreated on each
iteration of Object.some(). I moved them outside this for
clarity and so they're not recreated each iteration.
Changed argument names from commit1 and commit2 to
commitA and commitB respectively to prevent confusion
with seq number values.
Replaced Array filter method with array some method
so that as soon as one overlap is found, function is
finished.
Used Object.entries instead of Object.keys to reduce
number of variables needed and make function easier
to read.
Originally, the function was checking if any commits were on the
same branch as `commit2`, the destination commit.
However, in order to avoid a conflict, we should only need to
check whether any commits are on the same branch as `commit 1`.
Updated and moved commenting as well.
Position the tooltip centered, just below the node being hovered.
Update packages/mermaid/src/diagrams/flowchart/flowDb.js
Co-authored-by: Sidharth Vinod <sidharthv96@gmail.com>
window.scrollY is already account for which means document.body.scrollTop incorrectly offsets the tooltip vertically.
The same is not true for horizontal position.
Replace the `TimonVS/pr-labeler-action` with
`release-drafter/release-drafter` as it has an [`autolabeler`][1]
option that can autolabel PRs for us.
This should fix labeling PRs from forks,
see https://github.com/TimonVS/pr-labeler-action/issues/25.
I've kept the `.github/pr-labeler.yml` configuration file, so that
links to it from the https://mermaid.js.org website continue to work.
I've also kept everything in the same
`.github/workflows/pr-labeler.yml` GitHub Actions workflow to make the
`git diff` easier to review, and to keep the GitHub Actions permissions
the same.
[1]: ff929b5ceb/README.md (autolabeler)
* develop:
Bump version
chore: Fix type in 'getLineFunctionsWithOffset'
Update cypress/platform/marker_unique_id.html
refactor: Add getLineFunctionsWithOffset function
refactor: Move EdgeData to types
fix: PointStart marker refX
Added cypress test
chore(deps): update all patch dependencies
refactor: Fix typings in utils.ts
Give markers unique id's per graph
chore: Add @internal to createCSSStyles
chore: Bump version
refactor: Remove unused variables
fix: #4818 support `getClasses` in external diagrams.
* develop:
Remove unnecessary tests
Remove optional chaining
refactor: Use `||` instead of `??`
core: Adapt changes from 3f7bafb2d7
Update cypress/helpers/util.js
chore: Add deprecation notices, improve types
chore: Cleanup gitGraph tests
Update README.md
refactor: Move setWrap to individual diagrams as necessary.
refactor: Remove directives from grammar
refactor: Update DBs to remove directive handling
refactor: Move directive processing before parsing
I refactored the code to improve its time complexity by removing unnecessary code and optimizing the existing code.
* develop:
Update flowchart.md (#4798)
Update flowchart.md (#4792)
chore: Update docs
Added missing integration tests and release version in docs.
chore: Fix warning formatting
docs: Disable showValues in sankey example
Added support for millisecond and second to gantt tickInterval
Use utf8 encoding in Jupyter example
* develop:
chore: Align with convention
add additional test case
added test case
add sanitize text
Update docs
modifications to generic parser
improvements to parseGenericTypes
Update packages/mermaid/src/diagrams/class/svgDraw.js
return comment
add tsdoc comments
update tests
apply suggesitons
Update packages/mermaid/src/diagrams/class/classTypes.ts
Update packages/mermaid/src/diagrams/class/classTypes.ts
update tests and db name
Fix tests
spec changes
update classes to handle , in generic
Update and add tests
Create new type for member handling
Currently (in Mermaid v10), pretty much all enum types in the
MermaidConfig have generic `string` or `number` fallbacks,
for backwards compatibility.
This commit drops this. The MermaidConfig TypeScript types now expects
a limited amount of values.
BREAKING-CHANGE: Remove `MermaidConfig` generic type fallbacks for
enum values.
* next: (70 commits)
chore: Add comment for `yy`.
chore: Increase heap size when building
chore: increase `test-util.ts` converage by returning `undefined`
chore: add `vitest` imports to `test-util.ts`
chore: run `pnpm lint:fix`
create `noErrorsOrAlternatives` parser helper function
chore: export `InfoModule` from `infoModule.ts`
docs: Fix link
Update docs
fix(pie): align slices and legend orders
Mermaid version v10.4.0
unique batches every time, if not repeated tests end up in the same batch
Added missed .md
Increase JS heap
More tests for redirects + prettier
Fixed redirects inside vitepress, extended tests
chore: Explain redirect.ts clearly
docs: Fix npmjs link
chore: Update editor.bash to build latest version
chore: Build after clone
...
* next:
chore: Increase heap size when building
fix(er): bug if relationship is declared first
test(er): add cypress test on entity name alias
feat(er): use square brackets to add aliases
docs(er): add release version for entity name aliases
feat(er): add entity name alias
* develop:
fix(er): bug if relationship is declared first
test(er): add cypress test on entity name alias
feat(er): use square brackets to add aliases
docs(er): add release version for entity name aliases
feat(er): add entity name alias
* develop:
Fixed docs according review
chore: Fix type imports
Fixed links
Split development documentation in several separate pages, fixes for the sidebar menu
* develop:
chore: Remove circular dependency
Update docs
docs: Add frontmatter config demos
docs: Add frontmatter config docs
fix: XSS vulnerability
chore: Minor typo fixes
chore: Add test with both frontmatter and directive
Update docs
feat: Add support for config in frontmatter
chore: Fix type in assignWithDepth
refactor: Move `sanitizeDirective` into `addDirective`
refactor: Rename and cleanup `directiveSanitizer`
* develop: (56 commits)
chore: Add comments on redirectMaps
remove `chart` from `pie.spec.ts` description
Update docs
change `defaultConfig` type to `RequiredDeep` and use it in `pieDb`
use `DiagramStylesProvider` in `pieStyles.ts`
remove `setConfig` and `resetConfig` in pie
add `structuredClone` in pie `getConfig`
cleanAndMerge pieConfig
remove cleanClone
feat: Add cleanAndMerge and tests
chore: Rename utils.spec.ts
move db assignment from `beforeEach` to `beforeAll`
create `structuredCleanClone` helper function
add more types to pieRenderer
add `resetConfig` to `clear` in pieDb
rename `reset` to `resetConfig`
use `structedClone` in `pieDb`
remove `PieDiagramConfig` and import generated one
remove unnecessary lines in pie files
remove unused `HTML` import in pieRenderer
...
* develop:
Update all minor dependencies
Update all patch dependencies
make more `RectData` required and remove optional assignment
use lineBreakRegex in `svgDrawCommon`
fix svgDrawCommon import by adding `.js`
add types to `svgDrawCommon.ts`
convert `svgDrawCommon` to TS
@@ -12,7 +12,7 @@ Describe the way your implementation works or what design decisions you made if
Make sure you
- [ ] :book: have read the [contribution guidelines](https://github.com/mermaid-js/mermaid/blob/develop/CONTRIBUTING.md)
- [ ] :book: have read the [contribution guidelines](https://mermaid.js.org/community/contributing.html)
- [ ] :computer: have added necessary unit/e2e tests.
- [ ] :notebook: have added documentation. Make sure [`MERMAID_RELEASE_VERSION`](https://github.com/mermaid-js/mermaid/blob/develop/packages/mermaid/src/docs/community/development.md#3-update-documentation) is used for all new features.
- [ ] :notebook: have added documentation. Make sure [`MERMAID_RELEASE_VERSION`](https://mermaid.js.org/community/contributing.html#update-documentation) is used for all new features.
# This Action will scan dependency manifest files that change as part of a Pull Reqest, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging.
# This Action will scan dependency manifest files that change as part of a Pull Request, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging.
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
find . -mindepth 2 -type d -name "*__diff_output__*" -exec sh -c 'mv "$0"/*.png ../errors/' {} \;
- name:Upload Error snapshots
if:${{ needs.e2e.result == 'failure' }}
uses:actions/upload-artifact@v4
id:upload-artifacts
with:
name:error-snapshots
path:cypress/snapshots/**/__diff_output__/*
retention-days:10
path:errors/
- name:Notify Users
if:${{ needs.e2e.result == 'failure' }}
run:|
echo "::error title=Visual tests failed::You can view images that failed by downloading the error-snapshots artifact: ${{ steps.upload-artifacts.outputs.artifact-url }}"
Please read in detail about how to contribute documentation and code on the [Mermaid documentation site.](https://mermaid-js.github.io/mermaid/#/development)
---
# Mermaid contribution cheat-sheet
## Requirements
- [volta](https://volta.sh/) to manage node versions.
Documentation is necessary for all non bugfix/refactoring changes.
Only make changes to files that are in [`/packages/mermaid/src/docs`](packages/mermaid/src/docs)
**_DO NOT CHANGE FILES IN `/docs` MANUALLY_**
The `/docs` folder will be rebuilt and committed as part of a pre-commit hook.
[Join our slack community if you want closer contact!](https://join.slack.com/t/mermaid-talk/shared_invite/enQtNzc4NDIyNzk4OTAyLWVhYjQxOTI2OTg4YmE1ZmJkY2Y4MTU3ODliYmIwOTY3NDJlYjA0YjIyZTdkMDMyZTUwOGI0NjEzYmEwODcwOTE)
@@ -42,7 +42,23 @@ Try Live Editor previews of future releases: <a href="https://develop.git.mermai
**Thanks to all involved, people committing pull requests, people answering questions! 🙏**
<ahref="https://mermaid-js.github.io/mermaid/landing/"><imgsrc="https://github.com/mermaid-js/mermaid/blob/master/docs/intro/img/book-banner-post-release.jpg"alt="Explore Mermaid.js in depth, with real-world examples, tips & tricks from the creator... The first official book on Mermaid is available for purchase. Check it out!"></a>
<ahref="https://mermaid.js.org/landing/"><imgsrc="https://github.com/mermaid-js/mermaid/blob/master/docs/intro/img/book-banner-post-release.jpg"alt="Explore Mermaid.js in depth, with real-world examples, tips & tricks from the creator... The first official book on Mermaid is available for purchase. Check it out!"></a>
## Table of content
<details>
<summary>Expand contents</summary>
- [About](#about)
- [Examples](#examples)
- [Release](#release)
- [Related projects](#related-projects)
- [Contributors](#contributors---)
- [Security and safe diagrams](#security-and-safe-diagrams)
@@ -58,12 +74,12 @@ Mermaid addresses this problem by enabling users to create easily modifiable dia
<br/>
Mermaid allows even non-programmers to easily create detailed diagrams through the [Mermaid Live Editor](https://mermaid.live/).<br/>
For video tutorials, visit our [Tutorials](./docs/config/Tutorials.md) page.
Use Mermaid with your favorite applications, check out the list of [Integrations and Usages of Mermaid](./docs/ecosystem/integrations-community.md).
For video tutorials, visit our [Tutorials](https://mermaid.js.org/ecosystem/tutorials.html) page.
Use Mermaid with your favorite applications, check out the list of [Integrations and Usages of Mermaid](https://mermaid.js.org/ecosystem/integrations-community.html).
You can also use Mermaid within [GitHub](https://github.blog/2022-02-14-include-diagrams-markdown-files-mermaid/) as well many of your other favorite applications—check out the list of [Integrations and Usages of Mermaid](./docs/ecosystem/integrations-community.md).
You can also use Mermaid within [GitHub](https://github.blog/2022-02-14-include-diagrams-markdown-files-mermaid/) as well many of your other favorite applications—check out the list of [Integrations and Usages of Mermaid](https://mermaid.js.org/ecosystem/integrations-community.html).
For a more detailed introduction to Mermaid and some of its more basic uses, look to the [Beginner's Guide](./docs/intro/getting-started.md), [Usage](./docs/config/usage.md) and [Tutorials](./docs/config/Tutorials.md).
For a more detailed introduction to Mermaid and some of its more basic uses, look to the [Beginner's Guide](https://mermaid.js.org/intro/getting-started.html), [Usage](https://mermaid.js.org/config/usage.html) and [Tutorials](https://mermaid.js.org/ecosystem/tutorials.html).
In our release process we rely heavily on visual regression tests using [applitools](https://applitools.com/). Applitools is a great service which has been easy to use and integrate with our tests.
@@ -75,11 +91,11 @@ In our release process we rely heavily on visual regression tests using [applito
## Examples
**The following are some examples of the diagrams, charts and graphs that can be made using Mermaid. Click here to jump into the [text syntax](https://mermaid-js.github.io/mermaid/#/n00b-syntaxReference).**
**The following are some examples of the diagrams, charts and graphs that can be made using Mermaid. Click here to jump into the [text syntax](https://mermaid.js.org/intro/syntax-reference.html).**
@@ -389,7 +405,7 @@ The above command generates files into the `dist` folder and publishes them to <
Mermaid is a growing community and is always accepting new contributors. There's a lot of different ways to help out and we're always looking for extra hands! Look at [this issue](https://github.com/mermaid-js/mermaid/issues/866) if you want to know where to start helping out.
Detailed information about how to contribute can be found in the [contribution guide](CONTRIBUTING.md)
Detailed information about how to contribute can be found in the [contribution guide](https://mermaid.js.org/community/contributing.html)
<ahref="https://mermaid-js.github.io/mermaid/landing/"><imgsrc="https://github.com/mermaid-js/mermaid/blob/master/docs/intro/img/book-banner-post-release.jpg"alt="Explore Mermaid.js in depth, with real-world examples, tips & tricks from the creator... The first official book on Mermaid is available for purchase. Check it out!"></a>
<ahref="https://mermaid.js.org/landing/"><imgsrc="https://github.com/mermaid-js/mermaid/blob/master/docs/intro/img/book-banner-post-release.jpg"alt="Explore Mermaid.js in depth, with real-world examples, tips & tricks from the creator... The first official book on Mermaid is available for purchase. Check it out!"></a>
Some files were not shown because too many files have changed in this diff
Show More
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.