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

Vitest #3427

Merged
merged 19 commits into from
Sep 21, 2022
Merged

Vitest #3427

merged 19 commits into from
Sep 21, 2022

Conversation

sidharthv96
Copy link
Member

@sidharthv96 sidharthv96 commented Sep 7, 2022

📑 Summary

Replaces jest with vitest as the unit test runner.

📏 Design Decisions

Jest lacks native support for ESM & Typescript, which forces us to use some workarounds to get everything running.
Vitest has native support for ESM & TS, and was supposed to be much faster than jest.

But there seems to be something I'm missing, because the speed is only marginally faster than jest.

Runner Time
Jest + Babel ~10s
Jest + Esbuild ~3s
Vitest ~8s

It's almost 3 times slower than Jest + esbuild, although it is also using esbuild internally.
Will have to investigate on what the issue is.

One advantage is that Vitest gives accurate coverage reports out of the box. Jest + esbuild currently only shows coverage for .jison files and not js or ts files. Might be some config issue with jest.

Jest coverage
---------------------------|---------|----------|---------|---------|-----------------------------------------------------
File                       | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s                                   
---------------------------|---------|----------|---------|---------|-----------------------------------------------------
All files                  |   58.13 |    56.34 |   51.92 |   54.77 |                                                     
 c4/parser                 |   32.29 |    31.86 |   46.87 |   31.61 |                                                     
  c4Diagram.jison          |   32.29 |    31.86 |   46.87 |   31.61 | ...,883-884,887-888,894-904,906-914,916,938-943,946 
 class/parser              |   63.56 |     62.7 |   59.37 |   59.21 |                                                     
  classDiagram.jison       |   63.56 |     62.7 |   59.37 |   59.21 | ...-850,852,854,856,858-870,872-880,882,904-909,912 
 er/parser                 |   66.37 |    63.67 |   59.37 |   63.93 |                                                     
  erDiagram.jison          |   66.37 |    63.67 |   59.37 |   63.93 | ...,748,750,752,754,756-760,762,764,766,788-793,796 
 flowchart/parser          |   66.58 |    68.66 |    62.5 |   59.45 |                                                     
  flow.jison               |   66.58 |    68.66 |    62.5 |   59.45 | ...010,1012,1014-1016,1018,1020,1022,1044-1049,1052 
 gantt/parser              |   56.09 |     51.8 |   46.87 |   53.08 |                                                     
  gantt.jison              |   56.09 |     51.8 |   46.87 |   53.08 | ...-740,742-744,746,748,750-752,754-756,778-783,786 
 git/parser                |    46.9 |    45.83 |   46.87 |   43.95 |                                                     
  gitGraph.jison           |    46.9 |    45.83 |   46.87 |   43.95 | ...-937,939-943,945-953,959,961,963,965,989-994,997 
 info/parser               |      54 |    45.34 |   40.62 |   51.48 |                                                     
  info.jison               |      54 |    45.34 |   40.62 |   51.48 | ...-541,550-571,580,582-584,586,588-590,612-617,620 
 mindmap/parser            |   60.46 |    54.36 |   46.87 |   56.79 |                                                     
  mindmap.jison            |   60.46 |    54.36 |   46.87 |   56.79 | ...,638,642,644,646-650,652,654,656-658,680-685,688 
 pie/parser                |   65.77 |     58.2 |    62.5 |   61.91 |                                                     
  pie.jison                |   65.77 |     58.2 |    62.5 |   61.91 | ...-628,630,632,638,644,646-648,650,652,674-679,682 
 requirement/parser        |   61.98 |    61.08 |   46.87 |   57.79 |                                                     
  requirementDiagram.jison |   61.98 |    61.08 |   46.87 |   57.79 | ...,770,772,774,776-778,780,782-788,790,812-817,820 
 sequence/parser           |   72.38 |    71.52 |   59.37 |   66.92 |                                                     
  sequenceDiagram.jison    |   72.38 |    71.52 |   59.37 |   66.92 | ...,901,903,905,907,909,911,913,915-917,939-944,947 
 state/parser              |   62.31 |    60.15 |      50 |   56.75 |                                                     
  stateDiagram.jison       |   62.31 |    60.15 |      50 |   56.75 | ...,809,811,813,815,817,819,821,823-825,847-852,855 
 user-journey/parser       |   57.41 |     51.7 |   46.87 |   54.12 |                                                     
  journey.jison            |   57.41 |     51.7 |   46.87 |   54.12 | ...,639,641,647,649,651,653-655,657-659,681-686,689 
---------------------------|---------|----------|---------|---------|-----------------------------------------------------
Vitest coverage

 % Coverage report from c8
-----------------------------|---------|----------|---------|---------|---------------------------------------------------
File                         | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s                                 
-----------------------------|---------|----------|---------|---------|---------------------------------------------------
All files                    |   44.58 |    81.24 |   44.49 |   44.58 |                                                   
 __mocks__                   |   97.14 |      100 |   88.23 |   97.14 |                                                   
  d3.ts                      |   97.01 |      100 |   88.23 |   97.01 | 54-55                                             
  dagre-d3.ts                |     100 |      100 |     100 |     100 |                                                   
 src                         |   74.57 |    76.72 |   53.52 |   74.57 |                                                   
  Diagram.ts                 |   88.73 |     87.5 |      50 |   88.73 | 51-53,63-64,67-69                                 
  accessibility.js           |   58.62 |        0 |     100 |   58.62 | 18-29                                             
  assignWithDepth.js         |     100 |      100 |     100 |     100 |                                                   
  commonDb.ts                |     100 |      100 |     100 |     100 |                                                   
  config.ts                  |   92.41 |    82.85 |   95.23 |   92.41 | 67-70,165-166,177-178,184,193-200                 
  defaultConfig.ts           |   91.88 |      100 |     7.4 |   91.88 | ...4-1749,1752-1757,1760-1765,1768-1773,1776-1781 
  errorRenderer.ts           |      26 |      100 |       0 |      26 | 14-15,24-95                                       
  interactionDb.ts           |      50 |      100 |      50 |      50 | 6-10                                              
  logger.ts                  |   67.46 |    58.82 |   58.82 |   67.46 | 12,31-35,45,48-51,53-56,58-61,63-66,68-71         
  mermaid.ts                 |   79.81 |    44.44 |   83.33 |   79.81 | ...99-100,116-117,123-128,132-136,141-142,164-165 
  mermaidAPI.ts              |    42.8 |    65.51 |   58.33 |    42.8 | ...21-374,401-407,417-418,435-445,453-458,462-465 
  setupGraphViewbox.js       |   55.42 |      100 |      75 |   55.42 | 47-83                                             
  styles.ts                  |   39.63 |      100 |   66.66 |   39.63 | 38-104                                            
  utils.ts                   |    61.9 |     70.4 |      42 |    61.9 | ...26-834,843-844,846,848-849,852-854,856,876-878 
 src/__mocks__               |   91.48 |      100 |      50 |   91.48 |                                                   
  mermaidAPI.ts              |   91.48 |      100 |      50 |   91.48 | 39-40,42-43                                       
 src/dagre-wrapper           |   24.96 |    79.82 |    16.9 |   24.96 |                                                   
  clusters.js                |    12.7 |      100 |       0 |    12.7 | ...18-187,190-216,223-226,228-233,236-237,240-244 
  createLabel.js             |   22.34 |      100 |       0 |   22.34 | 14-18,24-46,48-92                                 
  edges.js                   |   19.13 |       50 |    12.5 |   19.13 | ...61-263,283-285,287-288,290-292,305-344,348-554 
  index.js                   |   16.95 |      100 |       0 |   16.95 | 18-147,150-161                                    
  markers.js                 |   11.19 |      100 |       0 |   11.19 | ...96-121,123-139,141-173,175-212,214-249,251-263 
  mermaid-graphlib.js        |   89.17 |    85.41 |   91.66 |   89.17 | ...88,203-204,208-209,281-305,333-335,390-392,407 
  nodes.js                   |    8.56 |      100 |       0 |    8.56 | ...8-1007,1038-1067,1069-1070,1072-1073,1076-1098 
 src/dagre-wrapper/intersect |    51.4 |      100 |       0 |    51.4 |                                                   
  index.js                   |     100 |      100 |     100 |     100 |                                                   
  intersect-circle.js        |      75 |      100 |       0 |      75 | 9-11                                              
  intersect-ellipse.js       |   26.66 |      100 |       0 |   26.66 | 8-29                                              
  intersect-line.js          |   19.23 |      100 |       0 |   19.23 | 10-69,75-77                                       
  intersect-node.js          |      60 |      100 |       0 |      60 | 6-9                                               
  intersect-polygon.js       |     100 |      100 |     100 |     100 |                                                   
  intersect-rect.js          |    9.37 |      100 |       0 |    9.37 | 2-30                                              
 src/dagre-wrapper/shapes    |   21.29 |      100 |       0 |   21.29 |                                                   
  note.js                    |   24.13 |      100 |       0 |   24.13 | 6-27                                              
  util.js                    |   20.25 |      100 |       0 |   20.25 | 7-52,55-58,67-79                                  
 src/diagram-api             |   83.97 |    81.57 |    62.5 |   83.97 |                                                   
  detectType.ts              |   86.58 |    85.71 |     100 |   86.58 | 57-60,62-65,67-69                                 
  diagram-orchestration.ts   |     100 |      100 |     100 |     100 |                                                   
  diagramAPI.ts              |   81.34 |    73.33 |      50 |   81.34 | ...78-179,182-185,196-201,209-214,222-224,235-236 
 src/diagrams/c4             |   19.57 |       45 |   11.11 |   19.57 |                                                   
  c4Db.js                    |   29.91 |     42.1 |   27.58 |   29.91 | ...71-675,677-678,680-681,684-686,689-690,697-698 
  c4Renderer.js              |   14.53 |      100 |       0 |   14.53 | ...09-312,331-396,399-408,411-438,448-567,577-674 
  styles.js                  |    37.5 |      100 |       0 |    37.5 | 2-6                                               
  svgDraw.js                 |   13.98 |      100 |       0 |   13.98 | ...71-776,789-797,809-834,846-870,876-882,884-885 
 src/diagrams/class          |    34.7 |    83.33 |      50 |    34.7 |                                                   
  classDb.js                 |   77.57 |    85.71 |      68 |   77.57 | ...77,210-211,227,261-298,301-304,320-351,357-358 
  classRenderer-v2.js        |   18.24 |      100 |       0 |   18.24 | 37-136,145-236,245-250,258-263,274-409,418-440    
  classRenderer.js           |   17.89 |      100 |       0 |   17.89 | 26-31,39-138,149-253                              
  styles.js                  |    2.01 |      100 |       0 |    2.01 | 2-147                                             
  svgDraw.js                 |   34.39 |    80.55 |    62.5 |   34.39 | 8-147,159-285,317-319,340-342,385-387,405-416     
 src/diagrams/common         |   77.71 |       90 |   47.61 |   77.71 |                                                   
  common.ts                  |   77.71 |       90 |   47.61 |   77.71 | ...4,32-36,44,53-58,69-70,80,89-90,99-100,109-122 
 src/diagrams/er             |   22.15 |      100 |   31.57 |   22.15 |                                                   
  erDb.js                    |      98 |      100 |      75 |      98 | 31-32                                             
  erMarkers.js               |   14.11 |      100 |       0 |   14.11 | 19-158                                            
  erRenderer.js              |   13.16 |      100 |       0 |   13.16 | ...13-367,371-386,389-390,400-403,418-540,551-647 
  styles.js                  |    9.37 |      100 |       0 |    9.37 | 2-30                                              
 src/diagrams/flowchart      |   55.64 |    83.61 |   60.52 |   55.64 |                                                   
  flowChartShapes.js         |   82.88 |      100 |      52 |   82.88 | ...51-152,173-174,197-198,224-225,273-292,326-349 
  flowDb.js                  |   78.41 |    83.33 |      75 |   78.41 | ...34,538-575,578-579,581-585,695-697,704,709-711 
  flowRenderer-v2.js         |   12.35 |      100 |       0 |   12.35 | 17-21,34-183,193-325,335-344,354-502              
  flowRenderer.js            |   50.85 |    79.59 |      60 |   50.85 | ...10,213-214,216-217,227,233-235,277-286,297-519 
  styles.ts                  |   24.07 |      100 |       0 |   24.07 | 20-101                                            
 src/diagrams/gantt          |   35.94 |    93.75 |   66.66 |   35.94 |                                                   
  ganttDb.js                 |   79.34 |    93.75 |   71.42 |   79.34 | ...47,446-463,528,555-585,596-602,605-611,635-638 
  ganttRenderer.js           |    4.08 |      100 |       0 |    4.08 | 20-21,25-656                                      
  styles.js                  |    1.13 |      100 |       0 |    1.13 | 2-262                                             
 src/diagrams/git            |   41.58 |    96.61 |      40 |   41.58 |                                                   
  gitGraphAst.js             |   70.99 |    96.49 |   52.17 |   70.99 | ...62-339,388-395,398-428,430-433,471-479,487-488 
  gitGraphDetector.ts        |     100 |      100 |     100 |     100 |                                                   
  gitGraphRenderer.js        |   17.29 |      100 |       0 |   17.29 | ...02-316,328-347,358-438,441-453,462-508,517-557 
  styles.js                  |    5.26 |      100 |       0 |    5.26 | 2-55                                              
 src/diagrams/info           |    50.5 |      100 |      20 |    50.5 |                                                   
  infoDb.js                  |   80.55 |      100 |      25 |   80.55 | 9-11,14-15,22-23                                  
  infoRenderer.js            |      30 |      100 |       0 |      30 | 15-56                                             
  styles.js                  |     100 |      100 |     100 |     100 |                                                   
 src/diagrams/mindmap        |   29.09 |    89.28 |   22.22 |   29.09 |                                                   
  mindmapDb.js               |   86.75 |    88.46 |      60 |   86.75 | 99,104-105,118-134                                
  mindmapDetector.ts         |     100 |      100 |     100 |     100 |                                                   
  mindmapRenderer.js         |   25.09 |      100 |       0 |   25.09 | ...91-113,115-128,131-147,154-198,204-211,221-267 
  styles.js                  |    7.89 |      100 |       0 |    7.89 | 4-52,55-75                                        
  svgDraw.js                 |    9.31 |      100 |       0 |    9.31 | ...15-145,147-153,155-163,173-280,283-311,314-320 
 src/diagrams/pie            |   32.02 |    83.33 |      50 |   32.02 |                                                   
  pieDb.js                   |   90.27 |    83.33 |    62.5 |   90.27 | 34-35,38-39,46-48                                 
  pieRenderer.js             |   12.08 |      100 |       0 |   12.08 | 19-178                                            
  styles.js                  |   11.11 |      100 |       0 |   11.11 | 2-25                                              
 src/diagrams/requirement    |   34.33 |      100 |   44.82 |   34.33 |                                                   
  requirementDb.js           |   98.88 |      100 |   81.25 |   98.88 | 56-57                                             
  requirementMarkers.js      |   15.94 |      100 |       0 |   15.94 | 7-64                                              
  requirementRenderer.js     |   10.18 |      100 |       0 |   10.18 | ...96-238,241-274,277-283,286-302,305-306,309-369 
  styles.js                  |    6.52 |      100 |       0 |    6.52 | 2-44                                              
 src/diagrams/sequence       |    71.4 |    76.31 |   74.78 |    71.4 |                                                   
  sequenceDb.js              |   88.93 |    90.72 |   84.61 |   88.93 | ...82,300-302,310,319-338,341-346,393-394,426-427 
  sequenceRenderer.ts        |   72.97 |    72.36 |      80 |   72.97 | ...4,1119,1219-1228,1238-1260,1267-1272,1280-1289 
  styles.js                  |     2.5 |      100 |       0 |     2.5 | 2-118                                             
  svgDraw.js                 |    69.2 |    69.04 |   64.28 |    69.2 | ...4,943-951,963-986,998-1022,1028-1034,1036-1037 
 src/diagrams/state          |   18.52 |    83.33 |    9.61 |   18.52 |                                                   
  id-cache.js                |    87.5 |      100 |       0 |    87.5 | 4-5                                               
  shapes.js                  |   14.82 |      100 |       0 |   14.82 | ...75-291,294-312,315-342,352-361,372-398,402-526 
  stateDb.js                 |      45 |    83.33 |   20.83 |      45 | ...97-198,200-201,204-225,228-234,237-242,262-263 
  stateRenderer-v2.js        |   12.42 |      100 |       0 |   12.42 | 12-16,28-34,37-189,192-220,222-232,242-332        
  stateRenderer.js           |   13.18 |      100 |       0 |   13.18 | 24-35,46-99,101-102,105-306                       
  styles.js                  |     1.5 |      100 |       0 |     1.5 | 2-197                                             
 src/diagrams/user-journey   |   26.31 |      100 |   20.45 |   26.31 |                                                   
  journeyDb.js               |    92.3 |      100 |   69.23 |    92.3 | 25-26,99-107                                      
  journeyRenderer.ts         |   15.92 |      100 |       0 |   15.92 | ...54-180,182-193,195-197,199-200,202-204,210-265 
  styles.js                  |    2.15 |      100 |       0 |    2.15 | 2-137                                             
  svgDraw.js                 |   19.45 |      100 |       0 |   19.45 | ...47-356,369-396,408-434,440-447,449-450,454-465 
 src/tests                   |    90.9 |    83.33 |     100 |    90.9 |                                                   
  setup.ts                   |     100 |      100 |     100 |     100 |                                                   
  util.ts                    |   89.47 |    83.33 |     100 |   89.47 | 10-11                                             
 src/themes                  |   41.51 |     80.2 |   42.85 |   41.51 |                                                   
  index.js                   |     100 |      100 |     100 |     100 |                                                   
  theme-base.js              |     3.2 |      100 |       0 |     3.2 | 5-22,24-222,224-244,247-250                       
  theme-dark.js              |   97.18 |       25 |     100 |   97.18 | 224-228,233,240                                   
  theme-default.js           |   92.36 |     92.3 |     100 |   92.36 | 218-225,268-281                                   
  theme-forest.js            |     3.2 |      100 |       0 |     3.2 | 5-89,91-222,224-244,247-250                       
  theme-helpers.js           |     100 |       50 |     100 |     100 | 4                                                 
  theme-neutral.js           |     4.1 |      100 |       0 |     4.1 | 9-102,104-264,266-286,289-292                     
-----------------------------|---------|----------|---------|---------|---------------------------------------------------

📋 Tasks

Make sure you

  • 📖 have read the contribution guidelines
  • 💻 have added unit/e2e tests (if appropriate)
  • 🔖 targeted develop branch

* develop: (37 commits)
  fix JSDOC @param, @returns; fixed a few minor typos in comments
  Update after lint comments
  Regenerate the directive docs as I changed them
  chore(deps-dev): bump typescript from 4.7.4 to 4.8.2
  Update duplicate copy pasted directive description
  chore(deps-dev): bump babel-jest from 29.0.1 to 29.0.2
  Lint fixes
  Removing requirement to add ids for nodes with a shape
  Merged typescript changes
  Updated with cloud and bang shapes
  Adding cloud and bang shapes
  fix(git): support numeric branch names
  Fix for unit tests after refactoring
  Documenting classes and icons
  Startingpoint for the documentation
  Some theming/styling fixes
  Adding some rendering tests
  ...
* sidv/esbuild:
  Fix doc formatting
  Fix mermaidAPI mock
@sidharthv96 sidharthv96 self-assigned this Sep 7, 2022
* sidv/esbuild: (115 commits)
  cleanup
  Fix docs
  Fix coverage
  Fix for issues in errorhandling and class diagrams after refactoring
  Replace GoogleAnalytics with Plausible
  chore(deps): bump dompurify from 2.3.10 to 2.4.0 (#3444)
  chore(deps): bump stylis from 4.1.1 to 4.1.2 (#3439)
  chore(deps-dev): bump webpack-dev-server from 4.10.1 to 4.11.0 (#3450)
  fix(git): support single character branch names
  Cleanup unused variables and some commented out code
  Cleanup fixing som lingering issues
  Remove extension
  Apply suggestions from code review
  chore(deps-dev): bump eslint-plugin-jest from 27.0.1 to 27.0.4 (#3458)
  chore(deps-dev): bump @typescript-eslint/eslint-plugin (#3457)
  chore(deps-dev): bump concurrently from 7.3.0 to 7.4.0 (#3445)
  chore(deps-dev): bump @babel/preset-env from 7.18.10 to 7.19.0 (#3442)
  chore(deps-dev): bump @typescript-eslint/parser from 5.36.1 to 5.37.0 (#3451)
  chore(deps-dev): bump @babel/core from 7.18.13 to 7.19.0 (#3447)
  chore(deps-dev): bump jest-environment-jsdom from 29.0.2 to 29.0.3 (#3441)
  ...
* develop: (23 commits)
  Revert #3475
  chore: updyaate browsers list
  Support EMPTYSTR in jison parser, add unit tests for git graph parser
  Use undefined to mean default tagging behavior
  feat(git): allow cherry-pick to suppress tag altogether
  Update src/diagrams/git/parser/gitGraph.jison
  fix(git): fix cherry-pick regex parsing error
  test(git): add basic parsing test for cherry-pick
  feat(git): cherry-pick keyword supports tag attribute
  ci(e2e-applitols): add applitools CI action
  Test docs:verify
  Cleanup docs
  Fixed Linting issues
  ci(e2e): re-enable e2e tests
  style: fix .github/workflow/e2e styling
  chore: upgrade cypress to v10
  fix(flowchart-v2): fix arrowMarkerAbsolute=true
  test(e2e): fix most arrowMarkerAbsolute tests
  text(e2e): give git tests consistent commit id
  test(e2e): widen flowchart width to within 10%
  ...
@sidharthv96 sidharthv96 changed the base branch from sidv/esbuild to develop September 21, 2022 05:42
* develop: (28 commits)
  fix(docs): update link
  Revert "unify Jison tranformers"
  Update yarn.lock
  Revert "fix(test): No esm exports"
  fix(test): No esm exports
  fix(docs): `mmd` detection
  Hope this fails
  unify Jison tranformers
  Fix jest
  Remove `docs:build` from postbuild.
  Add verification log
  This should fail CI
  fix: imports in HTML
  Revert "Add diagramAPI to outfile"
  Add `type: module` to package.json
  chore(deps-dev): bump @types/lodash from 4.14.184 to 4.14.185
  Update integrations.md
  Add vitepress pluin
  Update mermaid version
  Fix ports
  ...
* develop:
  chore(deps-dev): bump esbuild from 0.15.6 to 0.15.8
@sidharthv96 sidharthv96 marked this pull request as ready for review September 21, 2022 07:15
@knsv
Copy link
Collaborator

knsv commented Sep 21, 2022

I suspect that the coverage reports are the reson for the speed issue.

@knsv knsv merged commit d08882d into develop Sep 21, 2022
fuxingloh referenced this pull request in fuxingloh/contented Nov 10, 2022
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [mermaid](https://github.com/mermaid-js/mermaid) | [`9.1.7` ->
`9.2.2`](https://renovatebot.com/diffs/npm/mermaid/9.1.7/9.2.2) |
[![age](https://badges.renovateapi.com/packages/npm/mermaid/9.2.2/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/mermaid/9.2.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/mermaid/9.2.2/compatibility-slim/9.1.7)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/mermaid/9.2.2/confidence-slim/9.1.7)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>mermaid-js/mermaid</summary>

###
[`v9.2.2`](https://github.com/mermaid-js/mermaid/releases/tag/v9.2.2):
9.2.2

[Compare
Source](https://github.com/mermaid-js/mermaid/compare/v9.2.1...v9.2.2)

#### What's Changed

- \[9.2] fix(mermaid): fix `mermaid.render` types by
[@&#8203;aloisklink](https://github.com/aloisklink) in
[https://github.com/mermaid-js/mermaid/pull/3768](https://github.com/mermaid-js/mermaid/pull/3768)
- \[9.2] fix(mermaid): default mermaid back to CommonJS by
[@&#8203;aloisklink](https://github.com/aloisklink) in
[https://github.com/mermaid-js/mermaid/pull/3767](https://github.com/mermaid-js/mermaid/pull/3767)
- Fix lazy loading in webpack by
[@&#8203;sidharthv96](https://github.com/sidharthv96) in
[https://github.com/mermaid-js/mermaid/pull/3774](https://github.com/mermaid-js/mermaid/pull/3774)

**Full Changelog**:
mermaid-js/mermaid@v9.2.1...v9.2.2

###
[`v9.2.1`](https://github.com/mermaid-js/mermaid/releases/tag/v9.2.1):
9.2.1

[Compare
Source](https://github.com/mermaid-js/mermaid/compare/v9.2.0...v9.2.1)

#### What's Changed

- \~~fix
[#&#8203;3757](https://github.com/mermaid-js/mermaid/issues/3757) :
Remove dynamic imports for lazy load causing issues for webpack~~
- chore: Update bug report template by
[@&#8203;gibson042](https://github.com/gibson042) in
[https://github.com/mermaid-js/mermaid/pull/3727](https://github.com/mermaid-js/mermaid/pull/3727)
- Use issue templates and add diagram, theme and syntax proposal issue
forms by [@&#8203;Andre601](https://github.com/Andre601) in
[https://github.com/mermaid-js/mermaid/pull/2739](https://github.com/mermaid-js/mermaid/pull/2739)

#### New Contributors

- [@&#8203;Andre601](https://github.com/Andre601) made their first
contribution in
[https://github.com/mermaid-js/mermaid/pull/2739](https://github.com/mermaid-js/mermaid/pull/2739)

**Full Changelog**:
mermaid-js/mermaid@v9.2.0...v9.2.1

###
[`v9.2.0`](https://github.com/mermaid-js/mermaid/releases/tag/v9.2.0):
9.2.0

[Compare
Source](https://github.com/mermaid-js/mermaid/compare/v9.1.7...v9.2.0)

#### What's Changed

##### Features

- Mindmaps by [@&#8203;knsv](https://github.com/knsv) in
[https://github.com/mermaid-js/mermaid/pull/3410](https://github.com/mermaid-js/mermaid/pull/3410)
- Introducing TypeScript by
[@&#8203;sidharthv96](https://github.com/sidharthv96) in
[https://github.com/mermaid-js/mermaid/pull/3336](https://github.com/mermaid-js/mermaid/pull/3336)
- Auto transform `mermaid-example` in docs. by
[@&#8203;sidharthv96](https://github.com/sidharthv96) in
[https://github.com/mermaid-js/mermaid/pull/3401](https://github.com/mermaid-js/mermaid/pull/3401)
- Creating detectors and moving out diagram specific code from the diag…
by [@&#8203;knsv](https://github.com/knsv) in
[https://github.com/mermaid-js/mermaid/pull/3436](https://github.com/mermaid-js/mermaid/pull/3436)
- feat(git): cherry-pick keyword supports tag attribute by
[@&#8203;elliot-nelson](https://github.com/elliot-nelson) in
[https://github.com/mermaid-js/mermaid/pull/3479](https://github.com/mermaid-js/mermaid/pull/3479)
- Mindmaps replacing rendering algoritm with cose-bilkent by
[@&#8203;knsv](https://github.com/knsv) in
[https://github.com/mermaid-js/mermaid/pull/3559](https://github.com/mermaid-js/mermaid/pull/3559)
- 3561 theme color scales by [@&#8203;knsv](https://github.com/knsv)
in
[https://github.com/mermaid-js/mermaid/pull/3562](https://github.com/mermaid-js/mermaid/pull/3562)
- ESBuild by [@&#8203;sidharthv96](https://github.com/sidharthv96) in
[https://github.com/mermaid-js/mermaid/pull/3386](https://github.com/mermaid-js/mermaid/pull/3386)
- (Beta) Lazy load import by [@&#8203;knsv](https://github.com/knsv)
in
[https://github.com/mermaid-js/mermaid/pull/3592](https://github.com/mermaid-js/mermaid/pull/3592),
[https://github.com/mermaid-js/mermaid/pull/3598](https://github.com/mermaid-js/mermaid/pull/3598)
- 3061 making a monorepo by [@&#8203;knsv](https://github.com/knsv) in
[https://github.com/mermaid-js/mermaid/pull/3531](https://github.com/mermaid-js/mermaid/pull/3531)

##### Fixes

- Feature decimal duration in second for gantt diagram by
[@&#8203;vallsv](https://github.com/vallsv) in
[https://github.com/mermaid-js/mermaid/pull/3360](https://github.com/mermaid-js/mermaid/pull/3360)
- fix: fix passing a single Node to mermaid.init() by
[@&#8203;aloisklink](https://github.com/aloisklink) in
[https://github.com/mermaid-js/mermaid/pull/3396](https://github.com/mermaid-js/mermaid/pull/3396)
- fix
[#&#8203;3407](https://github.com/mermaid-js/mermaid/issues/3407)
Replace `div` with `pre` and format by
[@&#8203;sidharthv96](https://github.com/sidharthv96) in
[https://github.com/mermaid-js/mermaid/pull/3408](https://github.com/mermaid-js/mermaid/pull/3408)
- fix(git): support numeric branch names by
[@&#8203;aloisklink](https://github.com/aloisklink) in
[https://github.com/mermaid-js/mermaid/pull/3392](https://github.com/mermaid-js/mermaid/pull/3392)
- Add tests for C4 system context macros by
[@&#8203;dbartholomae](https://github.com/dbartholomae) in
[https://github.com/mermaid-js/mermaid/pull/3367](https://github.com/mermaid-js/mermaid/pull/3367)
- Add nested test for parseGenericTypes by
[@&#8203;sidharthv96](https://github.com/sidharthv96) in
[https://github.com/mermaid-js/mermaid/pull/3354](https://github.com/mermaid-js/mermaid/pull/3354)
- Fix memoize by [@&#8203;sidharthv96](https://github.com/sidharthv96)
in
[https://github.com/mermaid-js/mermaid/pull/3434](https://github.com/mermaid-js/mermaid/pull/3434)
- fix(git): support single character branch names by
[@&#8203;aloisklink](https://github.com/aloisklink) in
[https://github.com/mermaid-js/mermaid/pull/3464](https://github.com/mermaid-js/mermaid/pull/3464)
- Replace GoogleAnalytics with Plausible by
[@&#8203;sidharthv96](https://github.com/sidharthv96) in
[https://github.com/mermaid-js/mermaid/pull/3466](https://github.com/mermaid-js/mermaid/pull/3466)
- Fix for issues in errorhandling and class diagrams after refactoring
by [@&#8203;knsv](https://github.com/knsv) in
[https://github.com/mermaid-js/mermaid/pull/3470](https://github.com/mermaid-js/mermaid/pull/3470)
- 3409 Fix for truncated tags in GitGraph by
[@&#8203;ashishjain0512](https://github.com/ashishjain0512) in
[https://github.com/mermaid-js/mermaid/pull/3454](https://github.com/mermaid-js/mermaid/pull/3454)
- Fix broken cherry-pick parsing in gitgraph by
[@&#8203;aloisklink](https://github.com/aloisklink) in
[https://github.com/mermaid-js/mermaid/pull/3480](https://github.com/mermaid-js/mermaid/pull/3480)
- Fix CI `docs:lint` by
[@&#8203;sidharthv96](https://github.com/sidharthv96) in
[https://github.com/mermaid-js/mermaid/pull/3493](https://github.com/mermaid-js/mermaid/pull/3493)
- Fix user-journey leaking css by
[@&#8203;lishid](https://github.com/lishid) in
[https://github.com/mermaid-js/mermaid/pull/3510](https://github.com/mermaid-js/mermaid/pull/3510)
- \[sequenceDiagrams] Support dashes in participant names by
[@&#8203;ashleybartlett](https://github.com/ashleybartlett) in
[https://github.com/mermaid-js/mermaid/pull/3524](https://github.com/mermaid-js/mermaid/pull/3524)
- fix: ER dark theme attribute colors by
[@&#8203;weedySeaDragon](https://github.com/weedySeaDragon) in
[https://github.com/mermaid-js/mermaid/pull/3512](https://github.com/mermaid-js/mermaid/pull/3512)
- feat: ER diagram: allow other chars in a quoted entity name by
[@&#8203;weedySeaDragon](https://github.com/weedySeaDragon) in
[https://github.com/mermaid-js/mermaid/pull/3516](https://github.com/mermaid-js/mermaid/pull/3516)
- Arrow tip aligned to edge of box by
[@&#8203;pbrolin47](https://github.com/pbrolin47) in
[https://github.com/mermaid-js/mermaid/pull/3533](https://github.com/mermaid-js/mermaid/pull/3533)
- Fixed labelText undefined behavior by
[@&#8203;AndrewL-64](https://github.com/AndrewL-64) in
[https://github.com/mermaid-js/mermaid/pull/3544](https://github.com/mermaid-js/mermaid/pull/3544)
- Fix failing vitest unit tests by
[@&#8203;aloisklink](https://github.com/aloisklink) in
[https://github.com/mermaid-js/mermaid/pull/3587](https://github.com/mermaid-js/mermaid/pull/3587)
- fix: Import diagram by
[@&#8203;sidharthv96](https://github.com/sidharthv96) in
[https://github.com/mermaid-js/mermaid/pull/3589](https://github.com/mermaid-js/mermaid/pull/3589)
- Fix file name during "pnpm run dev" script by
[@&#8203;vallsv](https://github.com/vallsv) in
[https://github.com/mermaid-js/mermaid/pull/3608](https://github.com/mermaid-js/mermaid/pull/3608)
- fix Detect diagram fallback by
[@&#8203;sidharthv96](https://github.com/sidharthv96) in
[https://github.com/mermaid-js/mermaid/pull/3591](https://github.com/mermaid-js/mermaid/pull/3591)
- fix: Dirty fix for sync render. by
[@&#8203;sidharthv96](https://github.com/sidharthv96) in
[https://github.com/mermaid-js/mermaid/pull/3633](https://github.com/mermaid-js/mermaid/pull/3633)
- fix: Converts mindmapDB to TS by
[@&#8203;sidharthv96](https://github.com/sidharthv96) in
[https://github.com/mermaid-js/mermaid/pull/3683](https://github.com/mermaid-js/mermaid/pull/3683)
- Support `lazyLoadedDiagrams` when calling `initThrowsErrors` by
[@&#8203;aloisklink](https://github.com/aloisklink) in
[https://github.com/mermaid-js/mermaid/pull/3702](https://github.com/mermaid-js/mermaid/pull/3702)
- \[9.2.0] Support `lazyLoadedDiagrams` when calling
`initThrowsErrorsAsync` by
[@&#8203;aloisklink](https://github.com/aloisklink) in
[https://github.com/mermaid-js/mermaid/pull/3731](https://github.com/mermaid-js/mermaid/pull/3731)

##### Chores

- build: run `build:prod` on `yarn prepare` by
[@&#8203;aloisklink](https://github.com/aloisklink) in
[https://github.com/mermaid-js/mermaid/pull/3404](https://github.com/mermaid-js/mermaid/pull/3404)
- chore(deps-dev): bump
[@&#8203;types/dompurify](https://github.com/types/dompurify) from
2.3.3 to 2.3.4 by [@&#8203;dependabot](https://github.com/dependabot)
in
[https://github.com/mermaid-js/mermaid/pull/3414](https://github.com/mermaid-js/mermaid/pull/3414)
- chore(deps-dev): bump jest-environment-jsdom from 29.0.1 to 29.0.2 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3413](https://github.com/mermaid-js/mermaid/pull/3413)
- chore(deps-dev): bump typescript from 4.7.4 to 4.8.2 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3411](https://github.com/mermaid-js/mermaid/pull/3411)
- chore(deps-dev): bump babel-jest from 29.0.1 to 29.0.2 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3412](https://github.com/mermaid-js/mermaid/pull/3412)
- chore: fix JSDOC [@&#8203;param](https://github.com/param),
[@&#8203;returns](https://github.com/returns) lint errors by
[@&#8203;weedySeaDragon](https://github.com/weedySeaDragon) in
[https://github.com/mermaid-js/mermaid/pull/3422](https://github.com/mermaid-js/mermaid/pull/3422)
- style: forbid using `console` in mermaid src code by
[@&#8203;aloisklink](https://github.com/aloisklink) in
[https://github.com/mermaid-js/mermaid/pull/3405](https://github.com/mermaid-js/mermaid/pull/3405)
- Introduce stricter typescript linting by
[@&#8203;sidharthv96](https://github.com/sidharthv96) in
[https://github.com/mermaid-js/mermaid/pull/3393](https://github.com/mermaid-js/mermaid/pull/3393)
- Esbuild: backwards-compatible `mermaid.core.mjs` by
[@&#8203;aloisklink](https://github.com/aloisklink) in
[https://github.com/mermaid-js/mermaid/pull/3437](https://github.com/mermaid-js/mermaid/pull/3437)
- fix(git): support unusual prefixes in branch name by
[@&#8203;aloisklink](https://github.com/aloisklink) in
[https://github.com/mermaid-js/mermaid/pull/3438](https://github.com/mermaid-js/mermaid/pull/3438)
- Re-enable coverage upload to coveralls by
[@&#8203;aloisklink](https://github.com/aloisklink) in
[https://github.com/mermaid-js/mermaid/pull/3431](https://github.com/mermaid-js/mermaid/pull/3431)
- chore(deps): bump actions/checkout from 2 to 3 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3449](https://github.com/mermaid-js/mermaid/pull/3449)
- chore(deps-dev): bump typescript from 4.8.2 to 4.8.3 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3446](https://github.com/mermaid-js/mermaid/pull/3446)
- chore(deps-dev): bump eslint from 8.23.0 to 8.23.1 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3440](https://github.com/mermaid-js/mermaid/pull/3440)
- chore(deps-dev): bump babel-jest from 29.0.2 to 29.0.3 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3448](https://github.com/mermaid-js/mermaid/pull/3448)
- chore(deps-dev): bump jest-environment-jsdom from 29.0.2 to 29.0.3 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3441](https://github.com/mermaid-js/mermaid/pull/3441)
- chore(deps-dev): bump
[@&#8203;babel/core](https://github.com/babel/core) from 7.18.13 to
7.19.0 by [@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3447](https://github.com/mermaid-js/mermaid/pull/3447)
- chore(deps-dev): bump
[@&#8203;typescript-eslint/parser](https://github.com/typescript-eslint/parser)
from 5.36.1 to 5.37.0 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3451](https://github.com/mermaid-js/mermaid/pull/3451)
- chore(deps-dev): bump
[@&#8203;babel/preset-env](https://github.com/babel/preset-env) from
7.18.10 to 7.19.0 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3442](https://github.com/mermaid-js/mermaid/pull/3442)
- chore(deps-dev): bump concurrently from 7.3.0 to 7.4.0 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3445](https://github.com/mermaid-js/mermaid/pull/3445)
- chore(deps-dev): bump
[@&#8203;typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/eslint-plugin)
from 5.36.1 to 5.37.0 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3457](https://github.com/mermaid-js/mermaid/pull/3457)
- chore(deps-dev): bump eslint-plugin-jest from 27.0.1 to 27.0.4 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3458](https://github.com/mermaid-js/mermaid/pull/3458)
- Cleanup & fix eslint warnings by
[@&#8203;sidharthv96](https://github.com/sidharthv96) in
[https://github.com/mermaid-js/mermaid/pull/3453](https://github.com/mermaid-js/mermaid/pull/3453)
- chore(deps-dev): bump webpack-dev-server from 4.10.1 to 4.11.0 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3450](https://github.com/mermaid-js/mermaid/pull/3450)
- chore(deps): bump stylis from 4.1.1 to 4.1.2 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3439](https://github.com/mermaid-js/mermaid/pull/3439)
- chore(deps): bump dompurify from 2.3.10 to 2.4.0 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3444](https://github.com/mermaid-js/mermaid/pull/3444)
- chore(deps-dev): bump
[@&#8203;types/lodash](https://github.com/types/lodash) from 4.14.184
to 4.14.185 by [@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3489](https://github.com/mermaid-js/mermaid/pull/3489)
- chore(deps-dev): bump esbuild from 0.15.6 to 0.15.8 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3490](https://github.com/mermaid-js/mermaid/pull/3490)
- chore(deps-dev): bump eslint from 8.23.1 to 8.24.0 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3521](https://github.com/mermaid-js/mermaid/pull/3521)
- chore(deps-dev): bump
[@&#8203;types/prettier](https://github.com/types/prettier) from 2.7.0
to 2.7.1 by [@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3520](https://github.com/mermaid-js/mermaid/pull/3520)
- chore: fix demo chart pages by
[@&#8203;weedySeaDragon](https://github.com/weedySeaDragon) in
[https://github.com/mermaid-js/mermaid/pull/3523](https://github.com/mermaid-js/mermaid/pull/3523)
- Vitest by [@&#8203;sidharthv96](https://github.com/sidharthv96) in
[https://github.com/mermaid-js/mermaid/pull/3427](https://github.com/mermaid-js/mermaid/pull/3427)
- Build mermaid using Vite by
[@&#8203;sidharthv96](https://github.com/sidharthv96) in
[https://github.com/mermaid-js/mermaid/pull/3503](https://github.com/mermaid-js/mermaid/pull/3503)
- Add "Debug Current Test File" configuration for VSCode by
[@&#8203;pje](https://github.com/pje) in
[https://github.com/mermaid-js/mermaid/pull/3509](https://github.com/mermaid-js/mermaid/pull/3509)
- \[DevOps] Parallel E2E by
[@&#8203;sidharthv96](https://github.com/sidharthv96) in
[https://github.com/mermaid-js/mermaid/pull/3498](https://github.com/mermaid-js/mermaid/pull/3498)
- chore(deps-dev): update lint-staged requirement from ^13.0.0 to
^13.0.3 by [@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3551](https://github.com/mermaid-js/mermaid/pull/3551)
- chore(deps-dev): update start-server-and-test requirement from ^1.12.6
to ^1.14.0 by [@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3553](https://github.com/mermaid-js/mermaid/pull/3553)
- chore(deps-dev): update jsdom requirement from ^20.0.0 to ^20.0.1 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3552](https://github.com/mermaid-js/mermaid/pull/3552)
- chore(deps-dev): update
[@&#8203;types/express](https://github.com/types/express) requirement
from ^4.17.13 to ^4.17.14 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3555](https://github.com/mermaid-js/mermaid/pull/3555)
- chore(deps-dev): update
[@&#8203;types/lodash](https://github.com/types/lodash) requirement
from ^4.14.185 to ^4.14.186 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3556](https://github.com/mermaid-js/mermaid/pull/3556)
- chore(deps-dev): update vitest requirement from ^0.23.1 to ^0.23.4 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3557](https://github.com/mermaid-js/mermaid/pull/3557)
- chore(deps-dev): update husky requirement from ^8.0.0 to ^8.0.1 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3558](https://github.com/mermaid-js/mermaid/pull/3558)
- chore(deps-dev): update
[@&#8203;typescript-eslint/parser](https://github.com/typescript-eslint/parser)
requirement from ^5.37.0 to ^5.39.0 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3564](https://github.com/mermaid-js/mermaid/pull/3564)
- chore(deps-dev): update
[@&#8203;typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/eslint-plugin)
requirement from ^5.37.0 to ^5.39.0 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3565](https://github.com/mermaid-js/mermaid/pull/3565)
- chore(deps): update
[@&#8203;types/node](https://github.com/types/node) requirement from
^18.7.21 to ^18.8.1 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3566](https://github.com/mermaid-js/mermaid/pull/3566)
- chore(deps-dev): update
[@&#8203;vitest/coverage-c8](https://github.com/vitest/coverage-c8)
requirement from ^0.23.2 to ^0.23.4 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3567](https://github.com/mermaid-js/mermaid/pull/3567)
- chore(deps-dev): update esbuild requirement from ^0.15.8 to ^0.15.10
by [@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3569](https://github.com/mermaid-js/mermaid/pull/3569)
- chore(deps-dev): update typescript requirement from ^4.8.3 to ^4.8.4
by [@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3573](https://github.com/mermaid-js/mermaid/pull/3573)
- chore(deps-dev): update
[@&#8203;applitools/eyes-cypress](https://github.com/applitools/eyes-cypress)
requirement from ^3.25.7 to ^3.27.1 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3568](https://github.com/mermaid-js/mermaid/pull/3568)
- chore(deps-dev): update vite requirement from ^3.0.9 to ^3.1.4 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3570](https://github.com/mermaid-js/mermaid/pull/3570)
- chore(deps-dev): update eslint-plugin-jest requirement from ^27.0.4 to
^27.1.0 by [@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3571](https://github.com/mermaid-js/mermaid/pull/3571)
- chore(deps-dev): update
[@&#8203;commitlint/config-conventional](https://github.com/commitlint/config-conventional)
requirement from ^17.0.0 to ^17.1.0 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3572](https://github.com/mermaid-js/mermaid/pull/3572)
- Fix `docs:build` and `docs:verify` scripts by
[@&#8203;aloisklink](https://github.com/aloisklink) in
[https://github.com/mermaid-js/mermaid/pull/3534](https://github.com/mermaid-js/mermaid/pull/3534)
- Fix husky `pre-commit` rules by
[@&#8203;aloisklink](https://github.com/aloisklink) in
[https://github.com/mermaid-js/mermaid/pull/3536](https://github.com/mermaid-js/mermaid/pull/3536)
- Fix typos in README.md by
[@&#8203;elv-nate](https://github.com/elv-nate) in
[https://github.com/mermaid-js/mermaid/pull/3538](https://github.com/mermaid-js/mermaid/pull/3538)
- fix(tests): E2E by
[@&#8203;sidharthv96](https://github.com/sidharthv96) in
[https://github.com/mermaid-js/mermaid/pull/3574](https://github.com/mermaid-js/mermaid/pull/3574)
- fix: pnpm clean in windows by
[@&#8203;arpansaha13](https://github.com/arpansaha13) in
[https://github.com/mermaid-js/mermaid/pull/3595](https://github.com/mermaid-js/mermaid/pull/3595)
- Update Cypress to v10 and fix E2E errors by
[@&#8203;aloisklink](https://github.com/aloisklink) in
[https://github.com/mermaid-js/mermaid/pull/3459](https://github.com/mermaid-js/mermaid/pull/3459)
- ci(e2e-applitols): add applitools CI action by
[@&#8203;aloisklink](https://github.com/aloisklink) in
[https://github.com/mermaid-js/mermaid/pull/3483](https://github.com/mermaid-js/mermaid/pull/3483)
- Remove webpack & babel by
[@&#8203;sidharthv96](https://github.com/sidharthv96) in
[https://github.com/mermaid-js/mermaid/pull/3452](https://github.com/mermaid-js/mermaid/pull/3452)
- Add vitepress plugin by
[@&#8203;emersonbottero](https://github.com/emersonbottero) in
[https://github.com/mermaid-js/mermaid/pull/3476](https://github.com/mermaid-js/mermaid/pull/3476)
- ci(e2e): fix e2e action when running from fork by
[@&#8203;aloisklink](https://github.com/aloisklink) in
[https://github.com/mermaid-js/mermaid/pull/3519](https://github.com/mermaid-js/mermaid/pull/3519)
- chore(deps-dev): update
[@&#8203;vitest/ui](https://github.com/vitest/ui) requirement from
^0.23.2 to ^0.23.4 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/mermaid-js/mermaid/pull/3549](https://github.com/mermaid-js/mermaid/pull/3549)
- chore: Update demo diagrams for monorepo by
[@&#8203;weedySeaDragon](https://github.com/weedySeaDragon) in
[https://github.com/mermaid-js/mermaid/pull/3545](https://github.com/mermaid-js/mermaid/pull/3545)
- Sync `docs/` with `packages/mermaid/src/docs` by
[@&#8203;aloisklink](https://github.com/aloisklink) in
[https://github.com/mermaid-js/mermaid/pull/3586](https://github.com/mermaid-js/mermaid/pull/3586)
- chore: Add volta by
[@&#8203;sidharthv96](https://github.com/sidharthv96) in
[https://github.com/mermaid-js/mermaid/pull/3628](https://github.com/mermaid-js/mermaid/pull/3628)
- chore: Node 18 by
[@&#8203;sidharthv96](https://github.com/sidharthv96) in
[https://github.com/mermaid-js/mermaid/pull/3630](https://github.com/mermaid-js/mermaid/pull/3630)
- Configure Renovate by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/mermaid-js/mermaid/pull/3627](https://github.com/mermaid-js/mermaid/pull/3627)

##### Docs

- Added mermerd to integrations documentation by
[@&#8203;KarnerTh](https://github.com/KarnerTh) in
[https://github.com/mermaid-js/mermaid/pull/3399](https://github.com/mermaid-js/mermaid/pull/3399)
- Fix typo in documentation by
[@&#8203;dbartholomae](https://github.com/dbartholomae) in
[https://github.com/mermaid-js/mermaid/pull/3403](https://github.com/mermaid-js/mermaid/pull/3403)
- Update duplicate copy pasted directive description by
[@&#8203;mrmanc](https://github.com/mrmanc) in
[https://github.com/mermaid-js/mermaid/pull/3415](https://github.com/mermaid-js/mermaid/pull/3415)
- Docs/bug 3417 by
[@&#8203;weedySeaDragon](https://github.com/weedySeaDragon) in
[https://github.com/mermaid-js/mermaid/pull/3419](https://github.com/mermaid-js/mermaid/pull/3419)
- Docs: add '..auto generated..' to .html documentation files by
[@&#8203;weedySeaDragon](https://github.com/weedySeaDragon) in
[https://github.com/mermaid-js/mermaid/pull/3420](https://github.com/mermaid-js/mermaid/pull/3420)
- Mention obsidian has native support for mermaid by
[@&#8203;IanLee1521](https://github.com/IanLee1521) in
[https://github.com/mermaid-js/mermaid/pull/3513](https://github.com/mermaid-js/mermaid/pull/3513)
- docs: replace `yarn` with `pnpm` in dev guide by
[@&#8203;aloisklink](https://github.com/aloisklink) in
[https://github.com/mermaid-js/mermaid/pull/3535](https://github.com/mermaid-js/mermaid/pull/3535)
- Corrected theme variables reference table layout by
[@&#8203;marcastel](https://github.com/marcastel) in
[https://github.com/mermaid-js/mermaid/pull/3541](https://github.com/mermaid-js/mermaid/pull/3541)
- Working New Documentation Vitepress by
[@&#8203;emersonbottero](https://github.com/emersonbottero) in
[https://github.com/mermaid-js/mermaid/pull/3515](https://github.com/mermaid-js/mermaid/pull/3515)
- CODE_OF_CONDUCT Uploaded by
[@&#8203;swoyam2609](https://github.com/swoyam2609) in
[https://github.com/mermaid-js/mermaid/pull/3578](https://github.com/mermaid-js/mermaid/pull/3578)
- Automated docs spell-checking via GitHub Actions (and address all
reported issues) by
[@&#8203;SeanKilleen](https://github.com/SeanKilleen) in
[https://github.com/mermaid-js/mermaid/pull/3600](https://github.com/mermaid-js/mermaid/pull/3600)
- docs:Improved keywords in index.html by
[@&#8203;aryandeelwal](https://github.com/aryandeelwal) in
[https://github.com/mermaid-js/mermaid/pull/3579](https://github.com/mermaid-js/mermaid/pull/3579)
- Contribution.md updates by
[@&#8203;Aniket1026](https://github.com/Aniket1026) in
[https://github.com/mermaid-js/mermaid/pull/3614](https://github.com/mermaid-js/mermaid/pull/3614)
- docs: Add mermaid version to script URL by
[@&#8203;sidharthv96](https://github.com/sidharthv96) in
[https://github.com/mermaid-js/mermaid/pull/3596](https://github.com/mermaid-js/mermaid/pull/3596)

#### New Contributors

- [@&#8203;KarnerTh](https://github.com/KarnerTh) made their first
contribution in
[https://github.com/mermaid-js/mermaid/pull/3399](https://github.com/mermaid-js/mermaid/pull/3399)
- [@&#8203;mrmanc](https://github.com/mrmanc) made their first
contribution in
[https://github.com/mermaid-js/mermaid/pull/3415](https://github.com/mermaid-js/mermaid/pull/3415)
- [@&#8203;elliot-nelson](https://github.com/elliot-nelson) made their
first contribution in
[https://github.com/mermaid-js/mermaid/pull/3479](https://github.com/mermaid-js/mermaid/pull/3479)
- [@&#8203;emersonbottero](https://github.com/emersonbottero) made
their first contribution in
[https://github.com/mermaid-js/mermaid/pull/3476](https://github.com/mermaid-js/mermaid/pull/3476)
- [@&#8203;pje](https://github.com/pje) made their first contribution
in
[https://github.com/mermaid-js/mermaid/pull/3509](https://github.com/mermaid-js/mermaid/pull/3509)
- [@&#8203;IanLee1521](https://github.com/IanLee1521) made their first
contribution in
[https://github.com/mermaid-js/mermaid/pull/3513](https://github.com/mermaid-js/mermaid/pull/3513)
- [@&#8203;ashleybartlett](https://github.com/ashleybartlett) made
their first contribution in
[https://github.com/mermaid-js/mermaid/pull/3524](https://github.com/mermaid-js/mermaid/pull/3524)
- [@&#8203;pbrolin47](https://github.com/pbrolin47) made their first
contribution in
[https://github.com/mermaid-js/mermaid/pull/3533](https://github.com/mermaid-js/mermaid/pull/3533)
- [@&#8203;elv-nate](https://github.com/elv-nate) made their first
contribution in
[https://github.com/mermaid-js/mermaid/pull/3538](https://github.com/mermaid-js/mermaid/pull/3538)
- [@&#8203;marcastel](https://github.com/marcastel) made their first
contribution in
[https://github.com/mermaid-js/mermaid/pull/3541](https://github.com/mermaid-js/mermaid/pull/3541)
- [@&#8203;AndrewL-64](https://github.com/AndrewL-64) made their first
contribution in
[https://github.com/mermaid-js/mermaid/pull/3544](https://github.com/mermaid-js/mermaid/pull/3544)
- [@&#8203;swoyam2609](https://github.com/swoyam2609) made their first
contribution in
[https://github.com/mermaid-js/mermaid/pull/3578](https://github.com/mermaid-js/mermaid/pull/3578)
- [@&#8203;SeanKilleen](https://github.com/SeanKilleen) made their
first contribution in
[https://github.com/mermaid-js/mermaid/pull/3600](https://github.com/mermaid-js/mermaid/pull/3600)
- [@&#8203;aryandeelwal](https://github.com/aryandeelwal) made their
first contribution in
[https://github.com/mermaid-js/mermaid/pull/3579](https://github.com/mermaid-js/mermaid/pull/3579)
- [@&#8203;Aniket1026](https://github.com/Aniket1026) made their first
contribution in
[https://github.com/mermaid-js/mermaid/pull/3614](https://github.com/mermaid-js/mermaid/pull/3614)

**Full Changelog**:
mermaid-js/mermaid@v9.1.7...v9.2.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [x] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/BirthdayResearch/contented).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMi4wIiwidXBkYXRlZEluVmVyIjoiMzQuMTkuMCJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@Yokozuna59 Yokozuna59 deleted the sidv/vitest branch August 11, 2023 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants