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

[pull] develop from mermaid-js:develop #11

Merged
merged 1,363 commits into from
Dec 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1363 commits
Select commit Hold shift + click to select a range
bb521f7
chore: Remove unnecessary ts-ignores
sidharthv96 Oct 2, 2024
df1fba7
chore: Ignore broken types
sidharthv96 Oct 2, 2024
c5bcd2f
Reworked code comments
ReneLombard Oct 2, 2024
a4878d0
Merge branch 'bug/5487-add-support-for-nested-classes' of https://git…
ReneLombard Oct 2, 2024
07d7704
Merge branch 'develop' into bug/5487-add-support-for-nested-classes
ReneLombard Oct 2, 2024
760ea1e
chore: Remove unused default exports
sidharthv96 Oct 2, 2024
43e8f83
fix: Shape aliases in docs
sidharthv96 Oct 2, 2024
46419f7
Added section about merging blocks horizontally.
iSparsh Oct 2, 2024
2cebf09
Updated code to show nested blocks and added it to the correct section.
iSparsh Oct 2, 2024
d50a6cf
[autofix.ci] apply automated fixes
autofix-ci[bot] Oct 2, 2024
f6adca9
Merge pull request #5849 from ReneLombard/bug/5487-add-support-for-ne…
sidharthv96 Oct 3, 2024
c7382af
Merge pull request #5916 from iSparsh/docs/5836_add-horizontal-block-…
sidharthv96 Oct 3, 2024
1d14f46
Merge pull request #5909 from mermaid-js/renovate/eslint
sidharthv96 Oct 3, 2024
b503c2c
Merge branch 'develop' into patch-2
sidharthv96 Oct 3, 2024
be0bbe9
Merge branch 'develop' into patch-1
sidharthv96 Oct 3, 2024
16847ea
Merge pull request #5802 from jbriales/patch-2
sidharthv96 Oct 3, 2024
ef8c002
Merge pull request #5801 from jbriales/patch-1
sidharthv96 Oct 3, 2024
0cbc000
docs: Fix inconsistency in Block Diagram doc example
vorburger Oct 3, 2024
719685b
[autofix.ci] apply automated fixes
autofix-ci[bot] Oct 3, 2024
fce77a1
update product hunt badge for whiteboard and mermaid chart page
huynhicode Oct 3, 2024
14d9d92
Merge pull request #5920 from mermaid-js/update-product-hunt-badge-fo…
sidharthv96 Oct 3, 2024
02cf111
Merge pull request #5825 from mermaid-js/knsv/new-shapes
sidharthv96 Oct 3, 2024
460db0a
fix: Link checker
sidharthv96 Oct 3, 2024
4776f97
Merge pull request #5921 from mermaid-js/develop
sidharthv96 Oct 3, 2024
0bc1f52
Fix package name
sidharthv96 Oct 3, 2024
0cb88c2
Version Packages
github-actions[bot] Oct 3, 2024
be57484
Merge pull request #5922 from mermaid-js/changeset-release/master
sidharthv96 Oct 3, 2024
c5a19f6
chore: Organize shape handling
sidharthv96 Oct 3, 2024
339c670
docs: Update new shape registration doc
sidharthv96 Oct 3, 2024
218bfe1
chore: Update import path
sidharthv96 Oct 3, 2024
0ae4f97
test: Update nodes test
sidharthv96 Oct 3, 2024
e5a28de
fix: Hard code handDrawnSeed
sidharthv96 Oct 3, 2024
cda48a7
Merge branch 'develop' into sidv/refactorShapes
sidharthv96 Oct 3, 2024
6e0fe03
chore: move handDrawnSeed to mermaidUrl function
sidharthv96 Oct 3, 2024
e247404
Merge branch 'develop' into sidv/refactorShapes
sidharthv96 Oct 3, 2024
8fc36d2
chore: Split cypress tests locally
sidharthv96 Oct 3, 2024
b777c12
chore: Add timings file
sidharthv96 Oct 3, 2024
38a3ad3
chore: Add timing update action
sidharthv96 Oct 3, 2024
5a3e0cc
chore: rebuild
sidharthv96 Oct 3, 2024
4b98dab
chore: Update test name
sidharthv96 Oct 3, 2024
ddf18dd
chore: Disable architecture diagram test
sidharthv96 Oct 4, 2024
2401eea
Merge branch 'develop' into sidv/parallelCypress
sidharthv96 Oct 4, 2024
d9a26ff
Merge branch 'develop' into sidv/refactorShapes
sidharthv96 Oct 4, 2024
2d7686e
#5342 Initial commit
knsv Oct 4, 2024
72d60d2
Fix TypeScript dependencies
remcohaszing Oct 4, 2024
fabdfd9
5432 WIP, parsing works
knsv Oct 6, 2024
fb44e76
5432 WIP, rendering sections
knsv Oct 6, 2024
93f2c24
5432 WIP, rendering items
knsv Oct 6, 2024
0b8f27e
Updated icon shape to use css color style instead of stroke
saurabhg772244 Oct 7, 2024
d330823
updated test case for icon shape
saurabhg772244 Oct 7, 2024
9cc309b
Apply suggestions from code review
sidharthv96 Oct 7, 2024
e55880a
Merge pull request #5925 from mermaid-js/sidv/parallelCypress
sidharthv96 Oct 7, 2024
1b12ac1
chore: Split newshape test
sidharthv96 Oct 7, 2024
86a9159
Upgrade @argos-ci
sidharthv96 Oct 7, 2024
b83b778
Merge pull request #5933 from remcohaszing/fix-types-dependencies
sidharthv96 Oct 8, 2024
51be99c
fix: Remove duplicates, add documentation, rename legacyAlias
sidharthv96 Oct 8, 2024
a827fb1
fix: Argos index numbering
sidharthv96 Oct 8, 2024
9904afc
chore(deps): update dependency vite to v5.4.6 [security]
renovate[bot] Oct 8, 2024
c71b56e
chore(deps): update dependency express to v4.20.0 [security]
renovate[bot] Oct 8, 2024
f99e2c9
fix: Add internalAliases
sidharthv96 Oct 8, 2024
1296840
chore(deps): update eslint to v9.12.0
renovate[bot] Oct 8, 2024
1b51fbf
Revert "chore: Split newshape test"
sidharthv96 Oct 8, 2024
58e8f65
Merge pull request #5935 from mermaid-js/renovate/eslint
sidharthv96 Oct 8, 2024
0f2301f
Merge pull request #5938 from mermaid-js/renovate/npm-vite-vulnerability
sidharthv96 Oct 8, 2024
926f971
Merge pull request #5939 from mermaid-js/renovate/npm-express-vulnera…
sidharthv96 Oct 8, 2024
ce586e1
chore(deps): update dependency eslint-plugin-unicorn to v56
renovate[bot] Oct 8, 2024
3ac93af
Merge pull request #5936 from mermaid-js/renovate/major-eslint
sidharthv96 Oct 8, 2024
1c6304b
chore(deps): update all patch dependencies
renovate[bot] Oct 8, 2024
a20c292
[autofix.ci] apply automated fixes
autofix-ci[bot] Oct 8, 2024
c24028f
chore: Separate dompurify updates
sidharthv96 Oct 8, 2024
2f65429
chore: Rollback dompurify update range
sidharthv96 Oct 8, 2024
c38d9a6
Merge pull request #5808 from mermaid-js/renovate/patch-all-patch
sidharthv96 Oct 8, 2024
29b9d30
Merge branch 'develop' into sidv/refactorShapes
sidharthv96 Oct 8, 2024
4062813
Added docs for icon-shape
saurabhg772244 Oct 8, 2024
d424a44
Merge branch 'develop' into update-class-diagram
yari-dewalt Oct 8, 2024
11fb806
[autofix.ci] apply automated fixes
autofix-ci[bot] Oct 8, 2024
9bac464
Use tropical-fish icon with MIT license in e2e tests
saurabhg772244 Oct 9, 2024
a98290a
remove doc for icon shape
saurabhg772244 Oct 9, 2024
3c5a19d
Merge branch 'develop' into saurabh/icon-shape-style-fix
saurabhg772244 Oct 9, 2024
a001619
Move MIT license just before icon definition
saurabhg772244 Oct 9, 2024
8df2729
Merge branch 'saurabh/icon-shape-style-fix' of https://github.com/mer…
saurabhg772244 Oct 9, 2024
17b7831
Added pnpm changeset
saurabhg772244 Oct 9, 2024
463ba6e
Merge pull request #5923 from mermaid-js/sidv/refactorShapes
sidharthv96 Oct 9, 2024
2506c29
Merge pull request #5937 from mermaid-js/saurabh/icon-shape-style-fix
aloisklink Oct 9, 2024
76138cf
chore: Decouple build logic
sidharthv96 Oct 3, 2024
3720e1a
docs: Auto generate shape docs
sidharthv96 Oct 3, 2024
1bc4540
chore: Generate shape doc before verification
sidharthv96 Oct 3, 2024
efa47e3
fix: Docs vitepress build
sidharthv96 Oct 3, 2024
14524e1
docs: Optimise document generation
sidharthv96 Oct 9, 2024
b452247
Merge branch 'develop' into sidv/autoGenerateShapeDocs
sidharthv96 Oct 9, 2024
2b86750
Merge pull request #5924 from mermaid-js/sidv/autoGenerateShapeDocs
sidharthv96 Oct 9, 2024
09ecf76
Updated doc for image and icon shapes
saurabhg772244 Oct 9, 2024
2933eb5
fix: Build options
sidharthv96 Oct 9, 2024
351ce30
Merge branch 'develop' of https://github.com/mermaid-js/mermaid into …
saurabhg772244 Oct 10, 2024
9f6f1e9
Added new doc for registering icon pack in mermaid
saurabhg772244 Oct 10, 2024
ca88502
Moved position for icon config and added major version in icon docs
saurabhg772244 Oct 10, 2024
a4fd422
Use relative URL in linking docs
saurabhg772244 Oct 10, 2024
f859772
Merge pull request #5945 from mermaid-js/saurabh/doc-update
sidharthv96 Oct 10, 2024
4f97c8c
docs(architecture): update icon name for database in exemple
gbremond Oct 10, 2024
2655be0
[autofix.ci] apply automated fixes
autofix-ci[bot] Oct 10, 2024
2c31a59
docs(architecture): use right icon for database in exemple
gbremond Oct 10, 2024
290c678
Adding ticket handling
knsv Oct 10, 2024
991d403
Typescript fixes
knsv Oct 10, 2024
742531a
Merge pull request #5951 from gbremond/docs/5949_update-icon-name-for…
sidharthv96 Oct 11, 2024
02be63e
Refactoring and cleanup including updated unit tests
knsv Oct 11, 2024
7353be3
Remove extraneous period
TomasHubelbauer Oct 11, 2024
c69ab34
[autofix.ci] apply automated fixes
autofix-ci[bot] Oct 11, 2024
4cce43f
Bullet lists should not be code blocks
yihui Oct 16, 2024
e102483
[autofix.ci] apply automated fixes
autofix-ci[bot] Oct 16, 2024
8aa87c7
docs(integrations): fix listing order
eitsupi Oct 16, 2024
86c7532
Merge branch 'develop' into update-class-diagram
yari-dewalt Oct 16, 2024
e54d10c
docs(ecosystem): Add Zed extension zed-mermaid to community integrations
gabeidx Oct 17, 2024
33029c8
[autofix.ci] apply automated fixes
autofix-ci[bot] Oct 17, 2024
cfe7cce
refactor: improve types of `shapes`
aloisklink Oct 17, 2024
9afb181
refactor: correct shapes types
aloisklink Oct 17, 2024
bfea287
Register and update classBox shape
yari-dewalt Oct 17, 2024
b7ef8b2
Refactor to make code more clear
yari-dewalt Oct 17, 2024
6041729
Add suport for start and end labels (cardinality) in elk renderer
yari-dewalt Oct 17, 2024
cf2c7f7
Update tests
yari-dewalt Oct 17, 2024
6f506c3
[autofix.ci] apply automated fixes
autofix-ci[bot] Oct 17, 2024
b0f4ace
refactor: convert `rendering-elements/nodes` to TS
aloisklink Oct 17, 2024
62fd359
refactor: convert `shapes/util.js` to TypeScript
aloisklink Oct 17, 2024
16a5fc0
refactor: remove some `any` types from render()
aloisklink Oct 17, 2024
606ecf8
[autofix.ci] apply automated fixes
autofix-ci[bot] Oct 17, 2024
1e8e4e4
Merge branch 'develop' into patch-2
aloisklink Oct 18, 2024
ffc1fef
Merge pull request #5957 from TomasHubelbauer/patch-1
aloisklink Oct 18, 2024
cfd097b
Merge pull request #5967 from yihui/patch-1
aloisklink Oct 18, 2024
df948bc
Merge pull request #5968 from eitsupi/fix-ssg
aloisklink Oct 18, 2024
97820a5
Merge pull request #5918 from vorburger/patch-2
aloisklink Oct 18, 2024
d16e46a
Merge pull request #5972 from gabeidx/zed-mermaid
aloisklink Oct 18, 2024
38eed7c
product hunt promo material updates
huynhicode Oct 18, 2024
74695d2
Fix undesired wrapping on notes
yari-dewalt Oct 18, 2024
b7d66bb
Add elk and handDrawn specific test files
yari-dewalt Oct 18, 2024
10f11e0
Merge branch 'update-class-diagram' of github.com:yari-dewalt/mermaid…
yari-dewalt Oct 18, 2024
0e819ae
Change cssClasses to use concatenated string instead of array to pick…
yari-dewalt Oct 18, 2024
bfdd0f2
Fix tests to work with new cssClasses attribute
yari-dewalt Oct 18, 2024
4bc70b7
refactor: use more standard types
aloisklink Oct 21, 2024
6cc0132
refactor(elk): add `LabelData` type for layout-elk
aloisklink Oct 21, 2024
75e796f
Merge branch 'develop' into update-class-diagram
yari-dewalt Oct 21, 2024
64bc7f4
Add fix for flipped edge markers
yari-dewalt Oct 21, 2024
be3da0b
Update testing file
yari-dewalt Oct 21, 2024
fd6b875
Fix subgraph / cluster node width based off of label
yari-dewalt Oct 21, 2024
6df1fa1
update taglines
huynhicode Oct 22, 2024
e3ec6ed
Merge pull request #5987 from mermaid-js/update-promos
sidharthv96 Oct 22, 2024
bb97fdb
refactor: use `parseFontSize()`
aloisklink Oct 22, 2024
f8746be
refactor: move `MaybePromise` type to src/types.ts
aloisklink Oct 22, 2024
fb86e5c
Merge branch 'develop' into knsv/5342-kanban
knsv Oct 25, 2024
56cc372
End to end tests and docs
knsv Oct 25, 2024
742ad7c
Adding changeset and kanban in the docs sidenav
knsv Oct 28, 2024
e62d268
[autofix.ci] apply automated fixes
autofix-ci[bot] Oct 28, 2024
948ec4d
#5342 Handing of wide section texts
knsv Oct 28, 2024
e07e9b9
Merge branch 'knsv/5342-kanban' of github.com:mermaid-js/mermaid into…
knsv Oct 28, 2024
d790e35
#5432 Theme based text color for labels
knsv Oct 28, 2024
0af0827
#5232 Enabling handdrawn mode
knsv Oct 28, 2024
2c676b6
Moving kanbanItem out of the shapes doc
knsv Oct 28, 2024
da12ace
[autofix.ci] apply automated fixes
autofix-ci[bot] Oct 28, 2024
b5cd101
Merge branch 'develop' into refactor/improving-rendering-shape-types
sidharthv96 Oct 28, 2024
e765007
Merge pull request #5974 from aloisklink/refactor/improving-rendering…
sidharthv96 Oct 28, 2024
7401cb8
Merge branch 'develop' into knsv/5342-kanban
knsv Oct 28, 2024
e6ea4ea
Fix for missing function
knsv Oct 28, 2024
7fa8b35
refactor: convert if-statements to switch..case
aloisklink Oct 18, 2024
17e2f9e
refactor: fix `addVertex` `type` parameter
aloisklink Oct 18, 2024
5fabd41
fix: error `mermaid.parse` on invalid shapes
aloisklink Oct 18, 2024
848be3d
[autofix.ci] apply automated fixes
autofix-ci[bot] Oct 28, 2024
b315d70
Merge branch 'develop' into update-class-diagram and fix conflicts
yari-dewalt Oct 28, 2024
3f85b61
Merge pull request #5999 from mermaid-js/knsv/5342-kanban
ashishjain0512 Oct 29, 2024
75ca802
Merge branch 'develop' into update-class-diagram
knsv Oct 29, 2024
bdf145f
Merge pull request #5880 from yari-dewalt/update-class-diagram
knsv Oct 29, 2024
f6c32b6
Merge branch 'develop' into fix/make-parse-error-on-invalid-shape
knsv Oct 29, 2024
8d0902d
Merge pull request #6002 from aloisklink/fix/make-parse-error-on-inva…
knsv Oct 29, 2024
d752240
Fix a configuration example in gantt.md
michaelbaudino Oct 28, 2024
8cb1c68
[autofix.ci] apply automated fixes
autofix-ci[bot] Oct 28, 2024
054f929
refactor: remove unused param from `labelHelper()`
aloisklink Oct 29, 2024
f33ebfa
refactor: fix broken generic on `insertLabel()`
aloisklink Oct 29, 2024
9168d5d
refactor(types): fix some type errors in kanbanItem
aloisklink Oct 29, 2024
dffaf9f
fix for kanban section shape
ashishjain0512 Oct 29, 2024
ef30283
refactor: fix more type errors in kanbanItem
aloisklink Oct 29, 2024
0197c08
revert adding kanban section to shape
ashishjain0512 Oct 29, 2024
34e8946
refactor(types): fix kanbanItem circular types
aloisklink Oct 29, 2024
124d2f7
Fix for icon borders
knsv Oct 29, 2024
01a41ef
Merge branch 'release/11.4.0' of github.com:mermaid-js/mermaid into r…
knsv Oct 29, 2024
73bbde8
Update of the background-fix
knsv Oct 29, 2024
fe8932e
Set node.centerLabel before using labelHelper()
yari-dewalt Oct 29, 2024
8f0e0b9
Change useHtmlLabels to use general config's htmlLabels attribute not…
yari-dewalt Oct 29, 2024
c34fd15
Add handling for ' characters in non-html text so they don't get sani…
yari-dewalt Oct 29, 2024
dd42305
Merge branch 'develop' into fix-note-non-html-text
yari-dewalt Oct 29, 2024
ece3b25
Merge pull request #6006 from yari-dewalt/fix-note-non-html-text
knsv Oct 30, 2024
93e20fd
Merge from develop
ashishjain0512 Oct 30, 2024
a381ab6
refactor(types): separate `ClusterNode`s
aloisklink Oct 30, 2024
143806b
refactor(types): assert `insertNode` returns non-empty
aloisklink Oct 30, 2024
953d288
refactor(types): fix kanbanRenderer types
aloisklink Oct 30, 2024
c1ca351
Fix (tmp) for handling of config of htmlLabels ion note. MOvint class…
knsv Oct 30, 2024
8ef5d32
Typescript fixes
knsv Oct 30, 2024
1c66237
test(unit): update docs unit test snapshot
aloisklink Oct 30, 2024
97c61d8
added changeset for class diagram
ashishjain0512 Oct 30, 2024
b022943
[autofix.ci] apply automated fixes
autofix-ci[bot] Oct 30, 2024
c6e1271
Merge pull request #6007 from mermaid-js/release/11.4.0
ashishjain0512 Oct 30, 2024
8a0ecc1
chore: update changeset for #5880
aloisklink Oct 30, 2024
ef9cbb6
Merge pull request #6009 from mermaid-js/chore/fix-changeset-for-#5880
knsv Oct 30, 2024
d4e5acc
Version Packages
github-actions[bot] Oct 30, 2024
56f522e
Merge pull request #6008 from mermaid-js/changeset-release/master
knsv Oct 30, 2024
bbf6ab1
update whiteboard tagline
huynhicode Oct 30, 2024
1dd7bcb
minor update
huynhicode Oct 30, 2024
7e71b85
update blog page
huynhicode Nov 1, 2024
cb0a470
fix(#5952): initial fix for architecture diagrams with extreme heights
NicolasNewman Nov 3, 2024
63ff5b1
update utm
huynhicode Nov 5, 2024
f471333
minor fix
huynhicode Nov 5, 2024
9966beb
Merge pull request #6016 from mermaid-js/update-blog
sidharthv96 Nov 6, 2024
f507dbb
Merge pull request #6010 from mermaid-js/update-whiteboard-tagline
sidharthv96 Nov 6, 2024
c218e36
Merge pull request #6032 from mermaid-js/master
ashishjain0512 Nov 7, 2024
16c448b
Typo kanban.md
docxml Nov 8, 2024
7cbd80a
[autofix.ci] apply automated fixes
autofix-ci[bot] Nov 8, 2024
7576274
Fix for intersection issue
knsv Nov 8, 2024
1388662
Added changeset
knsv Nov 8, 2024
c8ce416
Merge pull request #6038 from mermaid-js/fix-for-tilted-cylinder-inte…
aloisklink Nov 8, 2024
193fdb2
the ELK imports break the dev playground, drop them
agokhale Nov 13, 2024
6b23647
#6058 Casting task-id and assigned fields to string after yaml parsing
knsv Nov 14, 2024
01b5079
Adding changeset
knsv Nov 14, 2024
8328f74
Merge pull request #6059 from mermaid-js/6058-task-id-as-a-number
ashishjain0512 Nov 14, 2024
885ac6f
fix(#5952): handled additional edge cases
NicolasNewman Nov 15, 2024
570ae78
cicd(#5952): added test case for diagram that instigated the issue
NicolasNewman Nov 15, 2024
082de76
Merge branch 'mermaid-js:develop' into 5952/architecture-extreme-height
NicolasNewman Nov 16, 2024
2a91849
chore(#5952): changeset
NicolasNewman Nov 16, 2024
fe3cffb
chore: update dompurify to `^3.2.1`
aloisklink Nov 25, 2024
255279e
#6080: Fix for issue with diamond intersections when using elk-layout
knsv Nov 25, 2024
68f41f6
Added changeset
knsv Nov 25, 2024
d3b2c7e
Revert "#6080: Fix for issue with diamond intersections when using el…
knsv Nov 25, 2024
69973ea
Merge branch 'develop' into 6080-fix
knsv Nov 25, 2024
c7ae08a
#6080: Fix for issue with diamond intersections when using elk-layout
knsv Nov 25, 2024
3753831
Added cypress test
knsv Nov 25, 2024
dfaaf36
Merge pull request #6079 from aloisklink/chore/update-to-dompurify-3.2.1
ashishjain0512 Nov 26, 2024
cc29437
Merge pull request #6081 from mermaid-js/6080-fix
ashishjain0512 Nov 26, 2024
0dff4ca
chore: broken link clean up. Enable flowchart elk tests
ashishjain0512 Nov 27, 2024
0b4f852
Merge pull request #6083 from mermaid-js/release/11.4.1
sidharthv96 Nov 27, 2024
d8bf155
Version Packages
github-actions[bot] Nov 27, 2024
4e17da0
fix: Add layout-elk in example.html
sidharthv96 Nov 27, 2024
95964b5
Merge pull request #6055 from agokhale/no-dev-elk-import
sidharthv96 Nov 27, 2024
b4879d1
Merge pull request #6036 from docxml/patch-1
sidharthv96 Nov 27, 2024
9868f3a
Merge pull request #6084 from mermaid-js/changeset-release/master
knsv Nov 27, 2024
65f9b29
Merge back master 11.4.1 to develop
ashishjain0512 Nov 27, 2024
bff3282
Merge pull request #6064 from NicolasNewman/5952/architecture-extreme…
sidharthv96 Nov 27, 2024
1e67286
#6088 Updated offset calculations
knsv Nov 27, 2024
654097c
Added changeset
knsv Nov 27, 2024
b29081d
Merge pull request #6090 from mermaid-js/hotfix/elk-0.1.7
knsv Nov 27, 2024
cb5c1ae
Version Packages
github-actions[bot] Nov 27, 2024
b4f5b8d
Update CHANGELOG.md
ashishjain0512 Nov 27, 2024
54d485f
Merge branch 'develop' into patch-1
sidharthv96 Nov 27, 2024
becadf0
Merge pull request #6091 from mermaid-js/changeset-release/master
knsv Nov 27, 2024
64554a6
Merge pull request #6092 from mermaid-js/master
ashishjain0512 Nov 27, 2024
df636c6
Merge pull request #6001 from michaelbaudino/patch-1
sidharthv96 Nov 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
16 changes: 11 additions & 5 deletions .build/common.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
export interface PackageOptions {
name: string;
packageName: string;
file: string;
}

/**
* Shared common options for both ESBuild and Vite
*/
Expand All @@ -22,9 +28,9 @@ export const packageOptions = {
packageName: 'mermaid-zenuml',
file: 'detector.ts',
},
'mermaid-flowchart-elk': {
name: 'mermaid-flowchart-elk',
packageName: 'mermaid-flowchart-elk',
file: 'detector.ts',
'mermaid-layout-elk': {
name: 'mermaid-layout-elk',
packageName: 'mermaid-layout-elk',
file: 'layouts.ts',
},
} as const;
} as const satisfies Record<string, PackageOptions>;
1 change: 1 addition & 0 deletions .build/jisonTransformer.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import jison from 'jison';

export const transformJison = (src: string): string => {
// @ts-ignore - Jison is not typed properly
const parser = new jison.Generator(src, {
moduleType: 'js',
'token-stack': true,
Expand Down
2 changes: 2 additions & 0 deletions .build/jsonSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ const MERMAID_CONFIG_DIAGRAM_KEYS = [
'xyChart',
'requirement',
'mindmap',
'kanban',
'timeline',
'gitGraph',
'c4',
'sankey',
'block',
'packet',
'architecture',
] as const;

/**
Expand Down
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
5 changes: 5 additions & 0 deletions .changeset/angry-bags-brake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'mermaid': patch
---

fix: architecture diagrams no longer grow to extreme heights due to conflicting alignments
12 changes: 12 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": ["@changesets/changelog-github", { "repo": "mermaid-js/mermaid" }],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"bumpVersionsWithWorkspaceProtocolOnly": true,
"ignore": ["@mermaid-js/docs", "@mermaid-js/webpack-test", "@mermaid-js/mermaid-example-diagram"]
}
9 changes: 9 additions & 0 deletions .cspell/code-terms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ concat
controlx
controly
CSSCLASS
curv
CYLINDEREND
CYLINDERSTART
DAGA
datakey
DEND
descr
Expand All @@ -54,6 +56,7 @@ GENERICTYPE
getBoundarys
grammr
graphtype
halign
iife
interp
introdcued
Expand All @@ -65,6 +68,7 @@ Kaufmann
keyify
LABELPOS
LABELTYPE
layoutstop
lcov
LEFTOF
Lexa
Expand All @@ -90,6 +94,7 @@ reqs
rewritelinks
rgba
RIGHTOF
roughjs
sankey
sequencenumber
shrc
Expand All @@ -109,6 +114,7 @@ strikethrough
stringifying
struct
STYLECLASS
STYLEDEF
STYLEOPTS
subcomponent
subcomponents
Expand All @@ -117,6 +123,8 @@ SUBROUTINEEND
SUBROUTINESTART
Subschemas
substr
SVGG
SVGSVG
TAGEND
TAGSTART
techn
Expand All @@ -133,6 +141,7 @@ tsdoc
typeof
typestr
unshift
urlsafe
verifymethod
VERIFYMTHD
WARN_DOCSDIR_DOESNT_MATCH
Expand Down
3 changes: 3 additions & 0 deletions .cspell/cspell.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ dictionaryDefinitions:
- name: suggestions
words:
- none
- disp
- subproc
- tria
suggestWords:
- seperator:separator
- vertice:vertex
Expand Down
4 changes: 4 additions & 0 deletions .cspell/libraries.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ Doctave
DokuWiki
dompurify
elkjs
fcose
fontawesome
Foswiki
Gitea
graphlib
Grav
icones
iconify
Inkdrop
jiti
Expand All @@ -55,8 +57,10 @@ presetAttributify
pyplot
redmine
rehype
roughjs
rscratch
shiki
Slidev
sparkline
sphinxcontrib
ssim
Expand Down
6 changes: 6 additions & 0 deletions .cspell/mermaid-terms.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
Adamiecki
arrowend
Bendpoints
bmatrix
braintree
catmull
compositTitleSize
curv
doublecircle
elems
gantt
gitgraph
gzipped
handDrawn
kanban
knsv
Knut
marginx
Expand All @@ -17,10 +21,12 @@ Markdownish
mermaidjs
mindmap
mindmaps
mrtree
multigraph
nodesep
NOTEGROUP
Pinterest
procs
rankdir
ranksep
rect
Expand Down
5 changes: 4 additions & 1 deletion .cspell/misc-terms.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
BRANDES
handdrawn
circo
handDrawn
KOEPF
neato
newbranch
validify
9 changes: 6 additions & 3 deletions .esbuild/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ import { defaultOptions, getBuildConfig } from './util.js';
const shouldVisualize = process.argv.includes('--visualize');

const buildPackage = async (entryName: keyof typeof packageOptions) => {
const commonOptions = { ...defaultOptions, entryName } as const;
const buildConfigs = [
const commonOptions: MermaidBuildOptions = {
...defaultOptions,
options: packageOptions[entryName],
} as const;
const buildConfigs: MermaidBuildOptions[] = [
// package.mjs
{ ...commonOptions },
// package.min.mjs
Expand Down Expand Up @@ -40,7 +43,7 @@ const buildPackage = async (entryName: keyof typeof packageOptions) => {
continue;
}
const fileName = Object.keys(metafile.outputs)
.find((file) => !file.includes('chunks') && file.endsWith('js'))
.find((file) => !file.includes('chunks') && file.endsWith('js'))!
.replace('dist/', '');
// Upload metafile into https://esbuild.github.io/analyze/
await writeFile(`stats/${fileName}.meta.json`, JSON.stringify(metafile));
Expand Down
9 changes: 7 additions & 2 deletions .esbuild/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,18 @@ import { generateLangium } from '../.build/generateLangium.js';
import { defaultOptions, getBuildConfig } from './util.js';

const configs = Object.values(packageOptions).map(({ packageName }) =>
getBuildConfig({ ...defaultOptions, minify: false, core: false, entryName: packageName })
getBuildConfig({
...defaultOptions,
minify: false,
core: false,
options: packageOptions[packageName],
})
);
const mermaidIIFEConfig = getBuildConfig({
...defaultOptions,
minify: false,
core: false,
entryName: 'mermaid',
options: packageOptions.mermaid,
format: 'iife',
});
configs.push(mermaidIIFEConfig);
Expand Down
17 changes: 11 additions & 6 deletions .esbuild/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ import { fileURLToPath } from 'url';
import type { BuildOptions } from 'esbuild';
import { readFileSync } from 'fs';
import jsonSchemaPlugin from './jsonSchemaPlugin.js';
import { packageOptions } from '../.build/common.js';
import type { PackageOptions } from '../.build/common.js';
import { jisonPlugin } from './jisonPlugin.js';

const __dirname = fileURLToPath(new URL('.', import.meta.url));

export interface MermaidBuildOptions {
export interface MermaidBuildOptions extends BuildOptions {
minify: boolean;
core: boolean;
metafile: boolean;
format: 'esm' | 'iife';
entryName: keyof typeof packageOptions;
options: PackageOptions;
}

export const defaultOptions: Omit<MermaidBuildOptions, 'entryName'> = {
export const defaultOptions: Omit<MermaidBuildOptions, 'entryName' | 'options'> = {
minify: false,
metafile: false,
core: false,
Expand Down Expand Up @@ -52,9 +52,14 @@ const getFileName = (fileName: string, { core, format, minify }: MermaidBuildOpt
};

export const getBuildConfig = (options: MermaidBuildOptions): BuildOptions => {
const { core, entryName, metafile, format, minify } = options;
const {
core,
metafile,
format,
minify,
options: { name, file, packageName },
} = options;
const external: string[] = ['require', 'fs', 'path'];
const { name, file, packageName } = packageOptions[entryName];
const outFileName = getFileName(name, options);
const output: BuildOptions = buildOptions({
absWorkingDir: resolve(__dirname, `../packages/${packageName}`),
Expand Down
5 changes: 4 additions & 1 deletion .github/lychee.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ exclude = [
"https://chromewebstore.google.com",

# Drupal 403
"https://(www.)?drupal.org"
"https://(www.)?drupal.org",

# Swimm returns 404, eventhough the link is valid
"https://docs.swimm.io"
]

# Exclude all private IPs from checking.
Expand Down
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ Make sure you
- [ ] :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://mermaid.js.org/community/contributing.html#update-documentation) is used for all new features.
- [ ] :bookmark: targeted `develop` branch
- [ ] :butterfly: If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running `pnpm changeset` and following the prompts. Changesets that add features should be `minor` and those that fix bugs should be `patch`. Please prefix changeset messages with `feat:`, `fix:`, or `chore:`.
36 changes: 0 additions & 36 deletions .github/release-drafter.yml

This file was deleted.

12 changes: 8 additions & 4 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,24 @@ name: autofix.ci # needed to securely identify the workflow

on:
pull_request:
branches-ignore:
- 'renovate/**'
permissions:
contents: read

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
autofix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- uses: pnpm/action-setup@v4
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
# uses version from "packageManager" field in package.json

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
cache: pnpm
node-version-file: '.node-version'
Expand All @@ -38,4 +42,4 @@ jobs:
working-directory: ./packages/mermaid
run: pnpm run docs:build

- uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a
- uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c # main
Loading
Loading