Skip to content

Commit

Permalink
Move mermaid-parser to @mermaid-js/parser
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Nov 26, 2023
1 parent 733d6fe commit fd0f519
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/mermaid/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mermaid",
"version": "11.0.0-alpha.5",
"version": "11.0.0-alpha.6",
"description": "Markdown-ish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.",
"type": "module",
"module": "./dist/mermaid.core.mjs",
Expand Down
3 changes: 1 addition & 2 deletions packages/mermaid/src/diagrams/common/populateCommonDb.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { DiagramAST } from 'mermaid-parser';

import type { DiagramAST } from '@mermaid-js/parser';
import type { DiagramDB } from '../../diagram-api/types.js';

export function populateCommonDb(ast: DiagramAST, db: DiagramDB) {
Expand Down
4 changes: 2 additions & 2 deletions packages/mermaid/src/diagrams/info/infoParser.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Info } from 'mermaid-parser';
import { parse } from 'mermaid-parser';
import type { Info } from '@mermaid-js/parser';
import { parse } from '@mermaid-js/parser';

import { log } from '../../logger.js';
import type { ParserDefinition } from '../../diagram-api/types.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/parser/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Mermaid Parser
Mermaid parser package
<p>

[![NPM](https://img.shields.io/npm/v/mermaid-parser)](https://www.npmjs.com/package/mermaid-parser)
[![NPM](https://img.shields.io/npm/v/@mermaid-js/parser)](https://www.npmjs.com/package/@mermaid-js/parser)

## How the package works

Expand Down
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fd0f519

Please sign in to comment.