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(deps-dev): update typescript requirement from ^4.8.3 to ^4.8.4 by @dependabot in #3573
- chore(deps-dev): update @applitools/eyes-cypress requirement from ^3.25.7 to ^3.27.1 by @dependabot in #3568
- chore(deps-dev): update vite requirement from ^3.0.9 to ^3.1.4 by @dependabot in #3570
- chore(deps-dev): update eslint-plugin-jest requirement from ^27.0.4 to ^27.1.0 by @dependabot in #3571
- chore(deps-dev): update @commitlint/config-conventional requirement from ^17.0.0 to ^17.1.0 by @dependabot in #3572
- Fix
docs:build
anddocs:verify
scripts by @aloisklink in #3534 - Fix husky
pre-commit
rules by @aloisklink in #3536 - Fix typos in README.md by @elv-nate in #3538
- fix(tests): E2E by @sidharthv96 in #3574
- fix: pnpm clean in windows by @arpansaha13 in #3595
- Update Cypress to v10 and fix E2E errors by @aloisklink in #3459
- ci(e2e-applitols): add applitools CI action by @aloisklink in #3483
- Remove webpack & babel by @sidharthv96 in #3452
- Add vitepress plugin by @emersonbottero in #3476
- ci(e2e): fix e2e action when running from fork by @aloisklink in #3519
- chore(deps-dev): update @vitest/ui requirement from ^0.23.2 to ^0.23.4 by @dependabot in #3549
- chore: Update demo diagrams for monorepo by @weedySeaDragon in #3545
- Sync
docs/
withpackages/mermaid/src/docs
by @aloisklink in #3586 - chore: Add volta by @sidharthv96 in #3628
- chore: Node 18 by @sidharthv96 in #3630
- Configure Renovate by @renovate in #3627
Docs
- Added mermerd to integrations documentation by @KarnerTh in #3399
- Fix typo in documentation by @dbartholomae in #3403
- Update duplicate copy pasted directive description by @mrmanc in #3415
- Docs/bug 3417 by @weedySeaDragon in #3419
- Docs: add '..auto generated..' to .html documentation files by @weedySeaDragon in #3420
- Mention obsidian has native support for mermaid by @IanLee1521 in #3513
- docs: replace
yarn
withpnpm
in dev guide by @aloisklink in #3535 - Corrected theme variables reference table layout by @marcastel in #3541
- Working New Documentation Vitepress by @emersonbottero in #3515
- CODE_OF_CONDUCT Uploaded by @swoyam2609 in #3578
- Automated docs spell-checking via GitHub Actions (and address all reported issues) by @SeanKilleen in #3600
- docs:Improved keywords in index.html by @aryandeelwal in #3579
- Contribution.md updates by @Aniket1026 in #3614
- docs: Add mermaid version to script URL by @sidharthv96 in #3596
New Contributors
- @KarnerTh made their first contribution in #3399
- @mrmanc made their first contribution in #3415
- @elliot-nelson made their first contribution in #3479
- @emersonbottero made their first contribution in #3476
- @pje made their first contribution in #3509
- @IanLee1521 made their first contribution in #3513
- @ashleybartlett made their first contribution in #3524
- @pbrolin47 made their first contribution in #3533
- @elv-nate made their first contribution in #3538
- @marcastel made their first contribution in #3541
- @AndrewL-64 made their first contribution in #3544
- @swoyam2609 made their first contribution in #3578
- @SeanKilleen made their first contribution in #3600
- @aryandeelwal made their first contribution in #3579
- @Aniket1026 made their first contribution in #3614
Full Changelog: v9.1.7...v9.2.0