Releases: mermaid-js/mermaid
9.2.2
What's Changed
- [9.2] fix(mermaid): fix
mermaid.render
types by @aloisklink in #3768 - [9.2] fix(mermaid): default mermaid back to CommonJS by @aloisklink in #3767
- Fix lazy loading in webpack by @sidharthv96 in #3774
Full Changelog: v9.2.1...v9.2.2
9.2.1
What's Changed
fix #3757 : Remove dynamic imports for lazy load causing issues for webpack- chore: Update bug report template by @gibson042 in #3727
- Use issue templates and add diagram, theme and syntax proposal issue forms by @Andre601 in #2739
New Contributors
Full Changelog: v9.2.0...v9.2.1
9.2.0
What's Changed
Features
- Mindmaps by @knsv in #3410
- Introducing TypeScript by @sidharthv96 in #3336
- Auto transform
mermaid-example
in docs. by @sidharthv96 in #3401 - Creating detectors and moving out diagram specific code from the diag… by @knsv in #3436
- feat(git): cherry-pick keyword supports tag attribute by @elliot-nelson in #3479
- Mindmaps replacing rendering algoritm with cose-bilkent by @knsv in #3559
- 3561 theme color scales by @knsv in #3562
- ESBuild by @sidharthv96 in #3386
- (Beta) Lazy load import by @knsv in #3592, #3598
- 3061 making a monorepo by @knsv in #3531
Fixes
- Feature decimal duration in second for gantt diagram by @vallsv in #3360
- fix: fix passing a single Node to mermaid.init() by @aloisklink in #3396
- fix #3407 Replace
div
withpre
and format by @sidharthv96 in #3408 - fix(git): support numeric branch names by @aloisklink in #3392
- Add tests for C4 system context macros by @dbartholomae in #3367
- Add nested test for parseGenericTypes by @sidharthv96 in #3354
- Fix memoize by @sidharthv96 in #3434
- fix(git): support single character branch names by @aloisklink in #3464
- Replace GoogleAnalytics with Plausible by @sidharthv96 in #3466
- Fix for issues in errorhandling and class diagrams after refactoring by @knsv in #3470
- 3409 Fix for truncated tags in GitGraph by @ashishjain0512 in #3454
- Fix broken cherry-pick parsing in gitgraph by @aloisklink in #3480
- Fix CI
docs:lint
by @sidharthv96 in #3493 - Fix user-journey leaking css by @lishid in #3510
- [sequenceDiagrams] Support dashes in participant names by @ashleybartlett in #3524
- fix: ER dark theme attribute colors by @weedySeaDragon in #3512
- feat: ER diagram: allow other chars in a quoted entity name by @weedySeaDragon in #3516
- Arrow tip aligned to edge of box by @pbrolin47 in #3533
- Fixed labelText undefined behavior by @AndrewL-64 in #3544
- Fix failing vitest unit tests by @aloisklink in #3587
- fix: Import diagram by @sidharthv96 in #3589
- Fix file name during "pnpm run dev" script by @vallsv in #3608
- fix Detect diagram fallback by @sidharthv96 in #3591
- fix: Dirty fix for sync render. by @sidharthv96 in #3633
- fix: Converts mindmapDB to TS by @sidharthv96 in #3683
- Support
lazyLoadedDiagrams
when callinginitThrowsErrors
by @aloisklink in #3702 - [9.2.0] Support
lazyLoadedDiagrams
when callinginitThrowsErrorsAsync
by @aloisklink in #3731
Chores
- build: run
build:prod
onyarn prepare
by @aloisklink in #3404 - chore(deps-dev): bump @types/dompurify from 2.3.3 to 2.3.4 by @dependabot in #3414
- chore(deps-dev): bump jest-environment-jsdom from 29.0.1 to 29.0.2 by @dependabot in #3413
- chore(deps-dev): bump typescript from 4.7.4 to 4.8.2 by @dependabot in #3411
- chore(deps-dev): bump babel-jest from 29.0.1 to 29.0.2 by @dependabot in #3412
- chore: fix JSDOC @param, @returns lint errors by @weedySeaDragon in #3422
- style: forbid using
console
in mermaid src code by @aloisklink in #3405 - Introduce stricter typescript linting by @sidharthv96 in #3393
- Esbuild: backwards-compatible
mermaid.core.mjs
by @aloisklink in #3437 - fix(git): support unusual prefixes in branch name by @aloisklink in #3438
- Re-enable coverage upload to coveralls by @aloisklink in #3431
- chore(deps): bump actions/checkout from 2 to 3 by @dependabot in #3449
- chore(deps-dev): bump typescript from 4.8.2 to 4.8.3 by @dependabot in #3446
- chore(deps-dev): bump eslint from 8.23.0 to 8.23.1 by @dependabot in #3440
- chore(deps-dev): bump babel-jest from 29.0.2 to 29.0.3 by @dependabot in #3448
- chore(deps-dev): bump jest-environment-jsdom from 29.0.2 to 29.0.3 by @dependabot in #3441
- chore(deps-dev): bump @babel/core from 7.18.13 to 7.19.0 by @dependabot in #3447
- chore(deps-dev): bump @typescript-eslint/parser from 5.36.1 to 5.37.0 by @dependabot in #3451
- chore(deps-dev): bump @babel/preset-env from 7.18.10 to 7.19.0 by @dependabot in #3442
- chore(deps-dev): bump concurrently from 7.3.0 to 7.4.0 by @dependabot in #3445
- chore(deps-dev): bump @typescript-eslint/eslint-plugin from 5.36.1 to 5.37.0 by @dependabot in #3457
- chore(deps-dev): bump eslint-plugin-jest from 27.0.1 to 27.0.4 by @dependabot in #3458
- Cleanup & fix eslint warnings by @sidharthv96 in #3453
- chore(deps-dev): bump webpack-dev-server from 4.10.1 to 4.11.0 by @dependabot in #3450
- chore(deps): bump stylis from 4.1.1 to 4.1.2 by @dependabot in #3439
- chore(deps): bump dompurify from 2.3.10 to 2.4.0 by @dependabot in #3444
- chore(deps-dev): bump @types/lodash from 4.14.184 to 4.14.185 by @dependabot in #3489
- chore(deps-dev): bump esbuild from 0.15.6 to 0.15.8 by @dependabot in #3490
- chore(deps-dev): bump eslint from 8.23.1 to 8.24.0 by @dependabot in #3521
- chore(deps-dev): bump @types/prettier from 2.7.0 to 2.7.1 by @dependabot in #3520
- chore: fix demo chart pages by @weedySeaDragon in #3523
- Vitest by @sidharthv96 in #3427
- Build mermaid using Vite by @sidharthv96 in #3503
- Add "Debug Current Test File" configuration for VSCode by @pje in #3509
- [DevOps] Parallel E2E by @sidharthv96 in #3498
- chore(deps-dev): update lint-staged requirement from ^13.0.0 to ^13.0.3 by @dependabot in #3551
- chore(deps-dev): update start-server-and-test requirement from ^1.12.6 to ^1.14.0 by @dependabot in #3553
- chore(deps-dev): update jsdom requirement from ^20.0.0 to ^20.0.1 by @dependabot in #3552
- chore(deps-dev): update @types/express requirement from ^4.17.13 to ^4.17.14 by @dependabot in #3555
- chore(deps-dev): update @types/lodash requirement from ^4.14.185 to ^4.14.186 by @dependabot in #3556
- chore(deps-dev): update vitest requirement from ^0.23.1 to ^0.23.4 by @dependabot in #3557
- chore(deps-dev): update husky requirement from ^8.0.0 to ^8.0.1 by @dependabot in #3558
- chore(deps-dev): update @typescript-eslint/parser requirement from ^5.37.0 to ^5.39.0 by @dependabot in #3564
- chore(deps-dev): update @typescript-eslint/eslint-plugin requirement from ^5.37.0 to ^5.39.0 by @dependabot in #3565
- chore(deps): update @types/node requirement from ^18.7.21 to ^18.8.1 by @dependabot in #3566
- chore(deps-dev): update @vitest/coverage-c8 requirement from ^0.23.2 to ^0.23.4 by @dependabot in #3567
- chore(deps-dev): update esbuild requirement from ^0.15.8 to ^0.15.10 by @dependabot in #3569
- chore(de...
9.1.7
Release Notes
Features & Bug Fixes
- 3238 gitgraph merge commits (#3379) @ashishjain0512
- feat(git): allow custom merge commit ids (#3361) @aloisklink
- 3056 chrome compatibility (#3380) @ashishjain0512
- Fix gitGraph findLane function error (#3383) @hughli-git
- Fix error handling in Mermaid bootstrap(#3395) @knsv
- Load configured diagrams even when initialized has not been called (#3428) @knsv
Dependencies Updates
- chore(deps-dev): bump webpack-dev-server from 4.10.0 to 4.10.1 (#3387) @dependabot
- chore(deps-dev): bump terser-webpack-plugin from 5.3.4 to 5.3.5 (#3343) @dependabot
- chore(deps-dev): bump terser-webpack-plugin from 5.3.5 to 5.3.6 (#3389) @dependabot
- chore(deps-dev): bump @commitlint/cli from 17.0.3 to 17.1.1 (#3376) @dependabot
- chore(deps-dev): bump @commitlint/cli from 17.1.1 to 17.1.2 (#3390) @dependabot
🎉 Thanks to all contributors helping with this release! 🎉
9.1.6
Release Notes
Bug fixes
- #3308 Allowing br tags in tooltips (#3331) @knsv
- Fix for GitGraphs not working for Mermaid Live Editor (#3330) @ashishjain0512
- code syntax improvment (initialize func) (#3277) @alguerocode
Docs
Chores
- Remove two ~HEAD docs (#3327) @jayvdb
- chore(deps-dev): bump eslint from 8.21.0 to 8.22.0 (#3320) @dependabot
- chore(deps-dev): bump eslint-plugin-jest from 26.8.0 to 26.8.2 (#3319) @dependabot
- chore(deps-dev): bump eslint-plugin-jsdoc from 39.3.4 to 39.3.6 (#3322) @dependabot
- chore(deps-dev): bump terser-webpack-plugin from 5.3.3 to 5.3.4 (#3318) @dependabot
- chore(deps-dev): bump webpack-dev-server from 4.9.3 to 4.10.0 (#3321) @dependabot
🎉 Thanks to all contributors helping with this release! 🎉
9.1.5
Release Notes
Bugfixes
- Fix for unintended update to structure of thrown error from init (#3314) @knsv
- fix(Diagram): fix persisted data due to db not being cleared before parsing (#3310) @hrgui
Documentation updates
- Update year to 2022 in license file (#3293) @simonplattner
- add Jetsbrain/Pycharm to the list (#3294) @namgivu
Dependency updates
- chore(deps): bump parse-url from 6.0.0 to 6.0.5 (#3300) @dependabot
- chore(deps-dev): bump eslint-plugin-jest from 26.7.0 to 26.8.0 (#3299) @dependabot
🎉 Thanks to all contributors helping with this release! 🎉
9.1.4
Release Notes
Updates
- fix: add font-awesome css to docsify index.html (#3271) @heyfirst
- fix: remove right padding when a label contains HTML entities (#3222) @leon19
- fix: rotate class id when branch more than 8 (#3150) @faisalarbain
- chore: refactoring and modularisation (#3210) @knsv
- Fix #3011: Support left- and right-alignment for multi-line messages and notes (#3194) @hype09
- chore: Using diagram api to add gitGraph (#3240) @knsv
- fix #3184: Inject xlink in mermaidAPI. (#3185) @sidharthv96
documentation
- Example of spaces in stateDiagram (#3272) @Olshansk
- Fix broken links (#3268) @zaaath
- Fix references to docs from readme (#3278) @andrew-demb
- Fix typo (#3249) @jolting
Dependency updates
- chore(deps): bump dompurify from 2.3.8 to 2.3.10 (#3255) @dependabot
- chore(deps): bump terser from 5.10.0 to 5.14.2 (#3244) @dependabot
- chore(deps-dev): bump @applitools/eyes-cypress from 3.26.3 to 3.26.4 (#3219) @dependabot
- chore(deps-dev): bump @applitools/eyes-cypress from 3.26.6 to 3.27.1 (#3281) @dependabot
- chore(deps-dev): bump @babel/core from 7.18.5 to 7.18.6 (#3201) @dependabot
- chore(deps-dev): bump @babel/core from 7.18.6 to 7.18.10 (#3280) @dependabot
- chore(deps-dev): bump @babel/eslint-parser from 7.18.2 to 7.18.9 (#3282) @dependabot
- chore(deps-dev): bump @babel/preset-env from 7.18.2 to 7.18.6 (#3197) @dependabot
- chore(deps-dev): bump @babel/preset-env from 7.18.6 to 7.18.10 (#3283) @dependabot
- chore(deps-dev): bump @babel/register from 7.17.7 to 7.18.6 (#3196) @dependabot
- chore(deps-dev): bump @babel/register from 7.18.6 to 7.18.9 (#3254) @dependabot
- chore(deps-dev): bump babel-jest from 28.1.1 to 28.1.2 (#3198) @dependabot
- chore(deps-dev): bump babel-jest from 28.1.2 to 28.1.3 (#3231) @dependabot
- chore(deps-dev): bump concurrently from 7.2.2 to 7.3.0 (#3257) @dependabot
- chore(deps-dev): bump cypress from 10.2.0 to 10.3.0 (#3199) @dependabot
- chore(deps-dev): bump cypress from 9.7.0 to 10.4.0 (#3284) @dependabot
- chore(deps-dev): bump eslint from 8.18.0 to 8.19.0 (#3202) @dependabot
- chore(deps-dev): bump eslint from 8.19.0 to 8.21.0 (#3276) @dependabot
- chore(deps-dev): bump eslint-plugin-html from 6.2.0 to 7.1.0 (#3288) @dependabot
- chore(deps-dev): bump eslint-plugin-jest from 26.5.3 to 26.7.0 (#3275) @dependabot
- chore(deps-dev): bump eslint-plugin-jsdoc from 39.3.3 to 39.3.4 (#3285) @dependabot
- chore(deps-dev): bump eslint-plugin-markdown from 2.2.1 to 3.0.0 (#3236) @dependabot
- chore(deps-dev): bump eslint-plugin-prettier from 4.0.0 to 4.2.1 (#3204) @dependabot
- chore(deps-dev): bump jest from 28.1.1 to 28.1.2 (#3195) @dependabot
- chore(deps-dev): bump jest from 28.1.2 to 28.1.3 (#3230) @dependabot
- chore(deps-dev): bump jest-environment-jsdom from 28.1.1 to 28.1.2 (#3200) @dependabot
- chore(deps-dev): bump jest-environment-jsdom from 28.1.2 to 28.1.3 (#3232) @dependabot
- chore(deps-dev): bump moment from 2.29.3 to 2.29.4 (#3220) @dependabot
- chore(deps-dev): bump webpack from 5.73.0 to 5.74.0 (#3286) @dependabot
- chore(deps-dev): bump webpack-dev-server from 4.9.2 to 4.9.3 (#3203) @dependabot
🎉 Thanks to all contributors helping with this release! 🎉
9.1.3
Release Notes
Features and fixes
- #3095 Added support for commit & tag label font size (#3140) @ashishjain0512
- Add C4 Diagram. Compatible with C4-PlantUML syntax (2). #3038 (#3151) @pinghe
- fix #3019 Add word boundary to FK&PK. (#3168) @sidharthv96
- fix: De-duplicates dependencies (#3167) @tommoor
Documentation
- Add dev install section in contributing.md (#3175) @ajthinking
- Fix typo (#3176) @yutotnh
- Update links to
mermaid.live
(#3163) @sidharthv96
Chores
- Disable Testomatio for forks (#3165) @sidharthv96
- chore(deps): bump actions/dependency-review-action from 1 to 2 (#3161) @dependabot
- chore(deps): bump got from 11.8.3 to 11.8.5 (#3172) @dependabot
- chore(deps-dev): bump @applitools/eyes-cypress from 3.26.2 to 3.26.3 (#3155) @dependabot
- chore(deps-dev): bump @commitlint/cli from 17.0.2 to 17.0.3 (#3180) @dependabot
- chore(deps-dev): bump @commitlint/config-conventional from 17.0.2 to 17.0.3 (#3179) @dependabot
- chore(deps-dev): bump concurrently from 7.2.1 to 7.2.2 (#3159) @dependabot
- chore(deps-dev): bump cypress from 10.1.0 to 10.2.0 (#3178) @dependabot
- chore(deps-dev): bump cypress from 9.7.0 to 10.1.0 (#3135) @dependabot
- chore(deps-dev): bump eslint from 8.17.0 to 8.18.0 (#3156) @dependabot
- chore(deps-dev): bump eslint-plugin-jsdoc from 39.3.2 to 39.3.3 (#3157) @dependabot
- chore(deps-dev): bump lint-staged from 13.0.1 to 13.0.2 (#3158) @dependabot
- chore(deps-dev): bump lint-staged from 13.0.2 to 13.0.3 (#3177) @dependabot
- chore(deps-dev): bump prettier from 2.6.2 to 2.7.1 (#3160) @dependabot
- update doc typos/clarity (#3145) @commai
🎉 Thanks to all contributors helping with this release! 🎉
9.1.2
Release Notes
🚀 Features
-
Add support for cyclic themeVariable rotation when more than 8 branches (#3049) @ashishjain0512
-
#3060 support cherry commit in gitgraph (#3115) @ashishjain0512
-
#3080 Adding rotated commit label functionality (#3113) @ashishjain0512
-
feat: adding "Critical Region"/"Option" and "Break" blocks to sequence diagram (#3063) @financelurker
-
[Experimental] Add C4 Diagram. Compatible with C4-PlantUML syntax. (#3038) @pinghe
Bug Fixes & Cleanup
- #3050 Renaming setTitle to setAccTitle (#3051) @knsv
- Fix for case where a compound state has a transition to it self. (#3092) @knsv
- Handle diagram paddings in a consistent way (#3118) @knsv
- Separation between title and accessibility title (sometimes) (#3075) @knsv
- Removed unnecessary textLength attribute. (#3057) @mgenereu
- Removed the Sass files (#3114) @siddhant-tripathy1
Documentation
- Make initThrowsErrors available to clients (#3052) @MindaugasLaganeckas
- Styling links default (#3120) @flywire
- [Documentation] Re-order theme variables (#3030) @sylhare
- [Documentation] Use actual theme name (#3054) @sylhare
- Fixed whitespace typo in Class diagram (#3035) @SlideeScherz
- Fixing various typos (#3094) @deining
- docs: fix capitalisation of well known technologies (#3064) @detj
- docs: remove edit on GitHub duplicate (#3059) @schmelto
- typos in configuration.md corrected (#3122) @activus-d
Dependecy updates
- chore(deps): bump dompurify from 2.3.6 to 2.3.8 (#3045) @dependabot
- chore(deps-dev): bump @applitools/eyes-cypress from 3.25.7 to 3.26.0 (#3071) @dependabot
- chore(deps-dev): bump @applitools/eyes-cypress from 3.26.0 to 3.26.1 (#3105) @dependabot
- chore(deps-dev): bump @applitools/eyes-cypress from 3.26.1 to 3.26.2 (#3136) @dependabot
- chore(deps-dev): bump @babel/core from 7.17.10 to 7.18.0 (#3069) @dependabot
- chore(deps-dev): bump @babel/core from 7.18.0 to 7.18.2 (#3083) @dependabot
- chore(deps-dev): bump @babel/core from 7.18.2 to 7.18.5 (#3134) @dependabot
- chore(deps-dev): bump @babel/eslint-parser from 7.17.0 to 7.18.2 (#3087) @dependabot
- chore(deps-dev): bump @babel/preset-env from 7.17.10 to 7.18.0 (#3068) @dependabot
- chore(deps-dev): bump @babel/preset-env from 7.18.0 to 7.18.2 (#3084) @dependabot
- chore(deps-dev): bump @commitlint/cli from 16.2.4 to 16.3.0 (#3040) @dependabot
- chore(deps-dev): bump @commitlint/cli from 16.3.0 to 17.0.0 (#3070) @dependabot
- chore(deps-dev): bump @commitlint/cli from 17.0.0 to 17.0.1 (#3086) @dependabot
- chore(deps-dev): bump @commitlint/cli from 17.0.1 to 17.0.2 (#3102) @dependabot
- chore(deps-dev): bump @commitlint/config-conventional from 16.2.4 to 17.0.0 (#3067) @dependabot
- chore(deps-dev): bump @commitlint/config-conventional from 17.0.0 to 17.0.2 (#3104) @dependabot
- chore(deps-dev): bump babel-jest from 28.1.0 to 28.1.1 (#3137) @dependabot
- chore(deps-dev): bump concurrently from 7.1.0 to 7.2.0 (#3039) @dependabot
- chore(deps-dev): bump concurrently from 7.2.0 to 7.2.1 (#3065) @dependabot
- chore(deps-dev): bump cypress from 9.6.0 to 9.6.1 (#3041) @dependabot
- chore(deps-dev): bump cypress from 9.6.1 to 9.7.0 (#3082) @dependabot
- chore(deps-dev): bump eslint from 8.15.0 to 8.16.0 (#3066) @dependabot
- chore(deps-dev): bump eslint from 8.16.0 to 8.17.0 (#3103) @dependabot
- chore(deps-dev): bump eslint from 8.4.1 to 8.15.0 (#3042) @dependabot
- chore(deps-dev): bump eslint-plugin-jest from 26.1.5 to 26.2.2 (#3044) @dependabot
- chore(deps-dev): bump eslint-plugin-jest from 26.2.2 to 26.4.5 (#3085) @dependabot
- chore(deps-dev): bump eslint-plugin-jest from 26.4.5 to 26.5.3 (#3110) @dependabot
- chore(deps-dev): bump eslint-plugin-jsdoc from 39.2.9 to 39.3.0 (#3072) @dependabot
- chore(deps-dev): bump eslint-plugin-jsdoc from 39.3.0 to 39.3.2 (#3088) @dependabot
- chore(deps-dev): bump jest from 28.1.0 to 28.1.1 (#3131) @dependabot
- chore(deps-dev): bump jest-environment-jsdom from 28.1.0 to 28.1.1 (#3129) @dependabot
- chore(deps-dev): bump lint-staged from 12.4.1 to 12.4.2 (#3081) @dependabot
- chore(deps-dev): bump lint-staged from 12.4.2 to 13.0.0 (#3109) @dependabot
- chore(deps-dev): bump lint-staged from 13.0.0 to 13.0.1 (#3132) @dependabot
- chore(deps-dev): bump terser-webpack-plugin from 5.3.1 to 5.3.3 (#3106) @dependabot
- chore(deps-dev): bump webpack from 5.72.0 to 5.72.1 (#3043) @dependabot
- chore(deps-dev): bump webpack from 5.72.1 to 5.73.0 (#3108) @dependabot
- chore(deps-dev): bump webpack-cli from 4.9.2 to 4.10.0 (#3130) @dependabot
- chore(deps-dev): bump webpack-dev-server from 4.9.0 to 4.9.1 (#3107) @dependabot
- chore(deps-dev): bump webpack-dev-server from 4.9.1 to 4.9.2 (#3133) @dependabot
🎉 Thanks to all contributors helping with this release! 🎉
9.1.1
Release Notes
- Fix for #3025 @ashishjain0512
🎉 Thanks to all contributors helping with this release! 🎉